/* InfiniCard · 舞台库的样式。类名前缀对应 stages.js 里的舞台：
   fl 流向  lp 闭环  tl 时间线  stt 数字  ch 对话  sc 散乱→收拢  ly 分层  ob 环绕  cp 对比  bd 看板  tm 终端  stm 大字
   颜色只用引擎的令牌（--ic-*）和当前元素的角色色（--c / --c-soft / --c-ink）。手机画布下的调整写在 .ic-tall 里。 */

/* ---------- flow ---------- */
.fl-n { position: absolute; display: grid; align-content: center; gap: 2px; padding: 0 16px; border-radius: 16px; background: var(--ic-soft); border: 1.5px solid var(--ic-line-2); transition: border-color .35s, box-shadow .35s, background .35s, transform .5s var(--ic-spring); }
.fl-n b { font-size: 16px; font-weight: 750; color: var(--c-ink); letter-spacing: -.01em; line-height: 1.25; }
.fl-n span { font-size: 11.5px; color: var(--ic-ink-2); text-wrap: balance; line-height: 1.4; }
.fl-n.on { border-color: var(--c); background: var(--c-soft); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 16%, transparent); transform: scale(1.025); }
.fl-n.sm b { font-size: 13.5px; }
.fl-n.ghost { border-style: dashed; background: var(--ic-page); }
.fl-e { fill: none; stroke: var(--ic-line-2); stroke-width: 1.5; transition: stroke .35s, stroke-width .35s; }
.fl-e.dash { stroke-dasharray: 4 5; }
.fl-e.on { stroke: var(--ic-accent); stroke-width: 2; }
.ic-tall .fl-n { padding: 0 10px; border-radius: 13px; }
.ic-tall .fl-n b { font-size: 13.5px; }
.ic-tall .fl-n span { font-size: 10.5px; }
.ic-tall .ic-cap { left: 8px; right: 8px; top: 10px; padding: 10px 12px; }
.ic-tall .ic-cap span { font-size: 12.5px; }

/* ---------- loop ---------- */
.lp-bg { fill: none; stroke: var(--ic-line-2); stroke-width: 1.5; stroke-dasharray: 3 6; }
.lp-fg { fill: none; stroke: var(--ic-accent); stroke-width: 2.5; stroke-linecap: round; transition: stroke-dashoffset .9s var(--ic-out); }
.lp-orb { fill: var(--ic-accent); filter: drop-shadow(0 0 7px var(--ic-accent)); }
.lp-n { position: absolute; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; display: grid; place-content: center; justify-items: center; background: var(--ic-surface); border: 2px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: var(--ic-sh-card); transition: transform .5s var(--ic-spring), background .35s, border-color .35s, box-shadow .35s; }
.lp-n small { font: 600 9.5px var(--ic-mono); color: var(--ic-ink-4); line-height: 1; }
.lp-n b { font-size: 14px; font-weight: 700; color: var(--c-ink); line-height: 1.3; white-space: nowrap; }
.lp-n.done { border-color: var(--c); }
.lp-n.on { transform: scale(1.22); background: var(--c-soft); border-color: var(--c); box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 16%, transparent), var(--ic-sh-lift); }
.lp-c { position: absolute; padding: 16px 18px; border-radius: 20px; background: var(--ic-surface); border: 1px solid var(--ic-line-2); box-shadow: var(--ic-sh-pop); display: grid; align-content: start; gap: 6px; transition: opacity .25s, transform .3s; }
.lp-c.swap { opacity: 0; transform: scale(.97); }
.lp-c .chip { justify-self: start; }
.lp-c b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.lp-c p { font-size: 12.5px; color: var(--ic-ink-2); line-height: 1.55; }
.lp-c code { margin-top: auto; font: 500 10.5px var(--ic-mono); color: var(--ic-ink-3); padding-top: 7px; border-top: 1px dashed var(--ic-line-2); }
.ic-tall .lp-n { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.ic-tall .lp-n b { font-size: 12px; }
.ic-tall .lp-n.on { transform: scale(1.16); }
.ic-tall .lp-c p { font-size: 13px; }

/* ---------- timeline ---------- */
.tl { position: absolute; inset: 0; overflow: hidden; }
.tl-in { position: relative; padding: 34px 40px 48px 34px; transition: transform .7s var(--ic-out); }
.tl-in::before { content: ""; position: absolute; left: 41px; top: 42px; bottom: 48px; width: 2px; background: var(--ic-line-2); }
.tl-i { position: relative; padding: 0 0 26px 40px; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ic-out); }
.tl-i.show { opacity: .5; transform: none; }
.tl-i.on { opacity: 1; }
.tl-dot { position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ic-surface); border: 3px solid var(--ic-idle); transition: border-color .3s, box-shadow .3s, background .3s; }
.tl-i.show .tl-dot { border-color: var(--c); }
.tl-i.on .tl-dot { background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent); }
.tl-h { display: grid; gap: 2px; }
.tl-w { font: 600 12px var(--ic-mono); color: var(--ic-ink-3); }
.tl-h b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; transition: color .3s; }
.tl-i.on .tl-h b { color: var(--c-ink); }
.tl-h em { font-style: normal; font-size: 13.5px; color: var(--ic-ink-2); }
.tl-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ic-out); }
.tl-b > div { overflow: hidden; min-height: 0; }
.tl-i.on .tl-b { grid-template-rows: 1fr; }
.tl-b p { margin-top: 10px; font-size: 14.5px; line-height: 1.62; color: var(--ic-ink-2); text-wrap: pretty; }
.tl-b .tl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ic-tall .tl-in { padding: 20px 18px 40px 16px; }
.ic-tall .tl-in::before { left: 23px; top: 28px; bottom: 40px; }
.ic-tall .tl-i { padding: 0 0 20px 32px; }
.ic-tall .tl-h b { font-size: 16.5px; }
.ic-tall .tl-b p { font-size: 13px; }

/* ---------- stats ---------- */
.stt { position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.stt-t { font-size: 13px; font-weight: 650; color: var(--ic-ink-3); letter-spacing: .04em; }
.stt-g { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 14px; }
.stt-i { padding: 20px 22px; border-radius: 20px; background: var(--ic-surface); border: 1px solid var(--ic-line-2); box-shadow: var(--ic-sh-card); display: grid; gap: 4px; align-content: start; opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .5s, transform .6s var(--ic-spring); }
.stt-i.on { opacity: 1; transform: none; }
.stt-v { font-size: 50px; font-weight: 750; letter-spacing: -.03em; line-height: 1.08; color: var(--c-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stt-v small { font-size: .44em; font-weight: 700; margin: 0 2px; letter-spacing: 0; }
.stt-l { font-size: 14.5px; font-weight: 650; }
.stt-i em { font-style: normal; font-size: 12px; color: var(--ic-ink-3); line-height: 1.5; text-wrap: pretty; }
.stt-bar { display: block; margin-top: 8px; height: 6px; border-radius: 3px; background: var(--ic-strong); overflow: hidden; }
.stt-bar i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: 3px; background: var(--c); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s var(--ic-out) .2s; }
.stt-i.on .stt-bar i { transform: none; }
.ic-tall .stt { padding: 8px; gap: 10px; }
.ic-tall .stt-g { gap: 10px; }
.ic-tall .stt-i { padding: 14px; border-radius: 16px; }
.ic-tall .stt-v { font-size: 36px; }
.ic-tall .stt-l { font-size: 13.5px; }

/* ---------- chat ---------- */
.ch { position: absolute; inset: 0; display: flex; flex-direction: column; }
.ch-h { flex: none; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--ic-line); }
.ch-av { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; background: var(--ic-accent); color: var(--ic-on-accent); }
.ch-h b { flex: 1; font-size: 14px; font-weight: 700; }
.ch-box { flex: 1; min-height: 0; overflow: hidden; }
.ch-list { padding: 18px 20px 8px; display: flex; flex-direction: column; gap: 12px; transition: transform .45s var(--ic-out); }
.ch-m { display: flex; gap: 9px; align-items: flex-start; max-width: 84%; animation: ch-in .4s var(--ic-out) both; }
@keyframes ch-in { from { opacity: 0; transform: translateY(10px); } }
.ch-m.me { align-self: flex-end; }
.ch-a { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11.5px; font-weight: 700; background: var(--c-soft); color: var(--c-ink); }
.ch-b { min-width: 0; padding: 9px 13px; border-radius: 4px 16px 16px 16px; background: var(--ic-soft); border: 1px solid var(--ic-line); font-size: 13.5px; line-height: 1.55; display: grid; gap: 6px; }
.ch-b small { font-size: 11px; font-weight: 650; color: var(--c-ink); }
.ch-m.me .ch-b { border-radius: 16px 16px 4px 16px; background: var(--ic-accent); color: var(--ic-on-accent); border-color: transparent; }
.ch-dots { display: flex; gap: 4px; padding: 6px 0; }
.ch-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ic-ink-4); animation: ch-dot 1s ease-in-out infinite; }
.ch-dots i:nth-child(2) { animation-delay: .15s; } .ch-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ch-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.ch-rows { min-width: 240px; border-radius: 10px; background: var(--ic-surface); border: 1px solid var(--ic-line-2); overflow: hidden; font-size: 12.5px; }
.ch-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 11px; }
.ch-rows div + div { border-top: 1px solid var(--ic-line); }
.ch-rows span { color: var(--ic-ink-3); white-space: nowrap; }
.ch-rows b { font-weight: 650; text-align: right; }
.ch-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-in { position: relative; flex: none; margin: 8px 16px 16px; min-height: 44px; padding: 10px 46px 10px 16px; border-radius: 22px; background: var(--ic-soft); border: 1px solid var(--ic-line-2); font-size: 13.5px; line-height: 1.6; }
.ch-send { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; background: var(--ic-accent); color: var(--ic-on-accent); transition: transform .2s; }
.ch-send.go { transform: scale(.8); }
.ic-tall .ch-list { padding: 14px 12px 6px; }
.ic-tall .ch-m { max-width: 92%; }
.ic-tall .ch-rows { min-width: 200px; }
.ic-tall .ch-in { margin: 6px 10px 10px; }

/* ---------- scatter ---------- */
.sc-w {
  position: absolute; left: var(--x); top: var(--y); width: 176px; height: 108px; transform: rotate(var(--r)); z-index: 1;
  background: var(--ic-surface); border: 1px solid var(--ic-line-2); border-radius: 14px; box-shadow: var(--ic-sh-lift); overflow: hidden;
  transition: left .9s var(--ic-spring), top .9s var(--ic-spring), width .9s var(--ic-out), height .9s var(--ic-out), transform .9s var(--ic-spring), box-shadow .3s, border-color .3s;
  transition-delay: calc(var(--i) * 40ms);
}
.sc-w.focus { z-index: 5; border-color: var(--ic-accent); box-shadow: var(--ic-sh-pop), 0 0 0 4px color-mix(in srgb, var(--ic-accent) 16%, transparent); }
.sc-wh { height: 30px; display: flex; align-items: center; gap: 4px; padding: 0 30px 0 10px; background: var(--ic-soft); border-bottom: 1px solid var(--ic-line); }
.sc-wh i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ic-idle); }
.sc-wh b { margin-left: 5px; font-size: 11.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-wb { padding: 11px 12px; display: grid; gap: 7px; }
.sc-wb i { height: 7px; border-radius: 4px; background: var(--ic-strong); }
.sc-wb i:nth-child(2) { width: 72%; } .sc-wb i:nth-child(3) { width: 48%; }
.sc-badge { position: absolute; right: 8px; top: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; font: 700 10.5px var(--ic-mono); background: var(--ic-bad); color: #fff; transition: background .4s, transform .2s; }
.sc-badge.bump { transform: scale(1.35); }
.sc-note { position: absolute; z-index: 8; padding: 6px 11px; border-radius: 12px 12px 12px 3px; font-size: 12.5px; font-weight: 600; background: var(--ic-note-bg); color: var(--ic-note-ink); box-shadow: var(--ic-sh-card); opacity: 0; transform: translateY(8px) scale(.94); transition: opacity .3s, transform .35s var(--ic-spring); white-space: nowrap; }
.sc-note.show { opacity: 1; transform: none; }
.sc-hub { position: absolute; left: 150px; top: 74px; width: 500px; min-height: 272px; padding: 20px 22px; border-radius: 22px; background: var(--ic-surface); border: 1px solid var(--ic-line-2); box-shadow: var(--ic-sh-pop); opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .6s .35s, transform .7s var(--ic-spring) .35s; z-index: 6; }
.sc-hh { display: flex; align-items: center; gap: 10px; }
.sc-hh b { font-size: 15px; font-weight: 700; flex: 1; }
.sc-goal { margin-top: 16px; min-height: 62px; padding: 11px 14px; border-radius: 14px; background: var(--ic-soft); border: 1px solid var(--ic-line); font-size: 14px; line-height: 1.55; }
.sc-gl { margin-right: 8px; font-size: 11.5px; font-weight: 700; color: var(--ic-accent-ink); }
.sc-parts { margin-top: 14px; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px; }
.sc-p { padding: 9px 12px; border-radius: 12px; background: var(--c-soft); display: grid; gap: 1px; opacity: .35; transform: translateY(4px); transition: opacity .4s, transform .5s var(--ic-spring); }
.sc-p.on { opacity: 1; transform: none; }
.sc-p b { font-size: 13.5px; color: var(--c-ink); } .sc-p span { font-size: 11px; color: var(--ic-ink-2); line-height: 1.4; }
.sc-f { margin-top: 13px; font-size: 12px; color: var(--ic-ink-3); }
.calm .sc-w { left: var(--cx); top: var(--cy); width: var(--cw); height: 38px; transform: none; box-shadow: var(--ic-sh-card); border-color: var(--ic-line-2); }
.calm .sc-wh { height: 100%; background: transparent; border: 0; padding: 0 26px 0 10px; }
.calm .sc-wh i { display: none; } .calm .sc-wh b { margin-left: 0; font-size: 10.5px; }
.calm .sc-wb { display: none; }
.calm .sc-badge { top: 11px; right: 7px; background: var(--ic-idle); font-size: 0; min-width: 15px; width: 15px; height: 15px; padding: 0; }
.calm .sc-badge.ok { background: var(--ic-ok); } .calm .sc-badge.ok::after { content: "✓"; font-size: 9.5px; color: #fff; }
.calm .sc-hub { opacity: 1; transform: none; }
.calm .sc-note { opacity: 0; }
.cur em:empty { display: none; }
.ic-tall .sc-w { width: 150px; height: 94px; }
.ic-tall .calm .sc-w { width: var(--cw); height: 38px; }
.ic-tall .sc-hub { left: 12px; top: 26px; width: 376px; min-height: 0; padding: 16px; }
.ic-tall .sc-parts { gap: 6px; } .ic-tall .sc-p { padding: 8px 9px; } .ic-tall .sc-p b { font-size: 12.5px; }

/* ---------- layers ---------- */
.ly-iso { position: absolute; left: var(--cx); top: var(--cy); width: 300px; height: 300px; margin: -150px 0 0 -150px; transform-style: preserve-3d; transform: scale(var(--sc)) rotateX(58deg) rotateZ(45deg); }
.ly-p { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--z) * var(--sp) + 110px)); opacity: 0; transition: transform 1s var(--ic-spring), opacity .45s; }
.ly-p.in { transform: translateZ(calc(var(--z) * var(--sp))); opacity: 1; }
.ly-f {
  position: absolute; inset: 0; border-radius: 30px; padding: 28px;
  background: color-mix(in srgb, var(--c) 9%, var(--ic-surface)); border: 1.5px solid color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ic-surface) 50%, transparent), 26px 26px 46px -14px rgba(var(--ic-sh), .32);
  opacity: .95; animation: ly-bob 7s ease-in-out infinite; animation-delay: calc(var(--z) * -1.3s);
}
@keyframes ly-bob { 50% { transform: translateZ(12px); } }
.ly-nodes { height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); place-items: center; background: linear-gradient(var(--ic-line-2) 0 0) 50% 12.5% / 75% 1.5px no-repeat, linear-gradient(var(--ic-line-2) 0 0) 50% 37.5% / 75% 1.5px no-repeat, linear-gradient(var(--ic-line-2) 0 0) 50% 62.5% / 75% 1.5px no-repeat, linear-gradient(var(--ic-line-2) 0 0) 50% 87.5% / 75% 1.5px no-repeat, linear-gradient(var(--ic-line-2) 0 0) 12.5% 50% / 1.5px 75% no-repeat, linear-gradient(var(--ic-line-2) 0 0) 87.5% 50% / 1.5px 75% no-repeat; }
.ly-nodes i { width: 16px; height: 16px; border-radius: 50%; background: var(--ic-surface); border: 3px solid var(--c); }
.ly-nodes i:nth-child(3n+1) { animation: ly-pulse 2.6s ease-in-out infinite; animation-delay: calc(var(--k, 0) * 1s); background: var(--c); }
.ly-nodes i:nth-child(4) { --k: .5; } .ly-nodes i:nth-child(7) { --k: 1.1; } .ly-nodes i:nth-child(10) { --k: 1.7; } .ly-nodes i:nth-child(13) { --k: .8; }
@keyframes ly-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 45%, transparent); } 50% { box-shadow: 0 0 0 9px transparent; } }
.ly-rows { height: 100%; display: grid; align-content: space-between; }
.ly-rows i { position: relative; height: 20px; width: var(--w); border-radius: 7px; background: color-mix(in srgb, var(--c) 24%, transparent); overflow: hidden; }
.ly-rows i::before { content: ""; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.ly-rows i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ic-surface) 75%, transparent), transparent); transform: translateX(-100%); animation: ly-shim 3.4s ease-in-out infinite; }
@keyframes ly-shim { 40%, 100% { transform: translateX(100%); } }
.ly-cards { height: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ly-cards i { border-radius: 16px; background: color-mix(in srgb, var(--c) 16%, var(--ic-surface)); border: 1.5px solid color-mix(in srgb, var(--c) 40%, transparent); animation: ly-card 6s ease-in-out infinite; }
.ly-cards i:nth-child(2) { animation-delay: 1.5s; } .ly-cards i:nth-child(4) { animation-delay: 3s; } .ly-cards i:nth-child(3) { animation-delay: 4.5s; }
@keyframes ly-card { 0%, 18%, 100% { background: color-mix(in srgb, var(--c) 16%, var(--ic-surface)); } 6% { background: var(--c); } }
.ly-r { position: absolute; width: 12px; height: 12px; border-radius: 4px; background: var(--c); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--c) 60%, transparent); opacity: 0; }
.live .ly-r { animation: ly-rise 3.4s linear infinite; }
.live .ly-r.down { animation-name: ly-sink; }
@keyframes ly-rise { 0% { transform: translateZ(4px); opacity: 0; } 12%, 85% { opacity: 1; } 100% { transform: translateZ(calc(var(--rise) + 4px)); opacity: 0; } }
@keyframes ly-sink { 0% { transform: translateZ(calc(var(--rise) + 4px)); opacity: 0; } 12%, 85% { opacity: 1; } 100% { transform: translateZ(4px); opacity: 0; } }
.ly-c { position: absolute; left: 580px; width: 216px; display: grid; gap: 1px; opacity: 0; transform: translateX(12px); transition: opacity .5s .15s, transform .6s var(--ic-out) .15s; }
.ly-c.in { opacity: 1; transform: none; }
.ly-c::before { content: ""; position: absolute; left: -26px; top: 13px; width: 18px; height: 1.5px; background: var(--c); }
.ly-c b { font-size: 21px; font-weight: 750; letter-spacing: -.01em; color: var(--c-ink); line-height: 1.25; }
.ly-c span { font-size: 13px; color: var(--ic-ink-2); line-height: 1.45; }
.ly-base { position: absolute; left: 0; width: 600px; top: 548px; text-align: center; font-size: 12.5px; color: var(--ic-ink-3); letter-spacing: .02em; opacity: 0; transition: opacity .8s; }
.live .ly-base { opacity: 1; }
.ic-tall .ly-c { left: 264px; width: 132px; }
.ic-tall .ly-c::before { left: -18px; width: 12px; top: 10px; }
.ic-tall .ly-c b { font-size: 15.5px; } .ic-tall .ly-c span { font-size: 11.5px; }
.ic-tall .ly-base { width: 100%; top: auto; bottom: 4px; font-size: 11px; }

/* ---------- orbit ---------- */
.ob-l { stroke: var(--ic-line-2); stroke-width: 1.2; stroke-dasharray: 3 6; opacity: 0; transition: opacity .6s; animation: ob-flow 3s linear infinite; }
.ob-l.core { stroke: var(--ic-accent); stroke-width: 2; stroke-dasharray: 5 7; }
.ob-l.in { opacity: 1; } .ob-l.core.in { opacity: .7; }
@keyframes ob-flow { to { stroke-dashoffset: -36; } }
.ob-c { position: absolute; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 1px; padding: 0 10px; background: var(--c-soft); border: 2px solid var(--c); box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 12%, transparent), var(--ic-sh-lift); opacity: 0; scale: .6; transition: opacity .4s, scale .7s var(--ic-spring); animation: ob-float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -2s); z-index: 2; }
.ob-c.solo { width: 156px; height: 156px; margin: -78px 0 0 -78px; }
.ob-c b { font-size: 15px; font-weight: 750; color: var(--c-ink); line-height: 1.25; } .ob-c span { font-size: 11px; color: var(--ic-ink-2); line-height: 1.35; }
.ob-c.solo b { font-size: 21px; letter-spacing: -.01em; } .ob-c.solo span { font-size: 12px; }
.ob-s { position: absolute; width: 112px; min-height: 46px; margin: -23px 0 0 -56px; padding: 5px 6px; border-radius: 14px; display: grid; place-content: center; text-align: center; background: var(--ic-surface); border: 1px solid var(--ic-line-2); box-shadow: var(--ic-sh-card); opacity: 0; scale: .7; transition: opacity .4s, scale .6s var(--ic-spring); animation: ob-float 7s ease-in-out infinite; animation-delay: calc(var(--i) * -.8s); z-index: 1; }
.ob-s b { font-size: 12.5px; font-weight: 700; line-height: 1.3; } .ob-s span { font-size: 10.5px; color: var(--ic-ink-3); line-height: 1.3; }
.ob-s.hl { border: 1.5px solid var(--c); background: var(--c-soft); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 12%, transparent), var(--ic-sh-card); }
.ob-s.hl b { color: var(--c-ink); } .ob-s.hl span { color: var(--ic-ink-2); }
.ob-c.in, .ob-s.in { opacity: 1; scale: 1; }
@keyframes ob-float { 50% { translate: 0 -6px; } }
.ic-tall .ob-s { width: 100px; margin-left: -50px; }
.ic-tall .ob-c { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.ic-tall .ob-c.solo { width: 132px; height: 132px; margin: -66px 0 0 -66px; }
.ic-tall .ob-c.solo b { font-size: 18px; }

/* ---------- compare ---------- */
.cp { position: absolute; inset: 0; padding: 22px 26px; display: flex; flex-direction: column; justify-content: center; gap: 12px; --lw: 124px; }
.cp-r { display: grid; grid-template-columns: var(--lw) repeat(var(--n), minmax(0, 1fr)); gap: 12px; }
.cp-h { opacity: 0; transition: opacity .5s; margin-bottom: 2px; }
.cp-h.in { opacity: 1; }
.cp-c { padding: 9px 10px; text-align: center; }
.cp-c b { display: block; font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.cp-c em { display: block; font-style: normal; font-size: 11.5px; color: var(--ic-ink-3); }
.cp-c.win b { color: var(--ic-accent-ink); }
.cp-row { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ic-out); }
.cp-row.in { opacity: 1; transform: none; }
.cp-l { align-self: center; font-size: 13px; font-weight: 650; color: var(--ic-ink-2); line-height: 1.35; text-wrap: balance; }
.cp-x { display: flex; gap: 9px; align-items: center; padding: 14px 13px; border-radius: 14px; background: var(--ic-soft); border: 1px solid var(--ic-line); font-size: 13.5px; font-weight: 550; line-height: 1.4; opacity: 0; transform: scale(.94); transition: opacity .3s, transform .4s var(--ic-spring); }
.cp-x.in { opacity: 1; transform: none; }
.cp-x i { flex: none; width: 18px; height: 18px; border-radius: 50%; display: none; place-items: center; font-style: normal; font-size: 10.5px; font-weight: 700; }
.cp-x.yes i, .cp-x.no i, .cp-x.meh i { display: grid; }
.cp-x.yes i { background: var(--ic-ok-bg); color: var(--ic-ok); } .cp-x.yes i::after { content: "✓"; }
.cp-x.no i { background: var(--ic-bad-bg); color: var(--ic-bad); } .cp-x.no i::after { content: "✕"; }
.cp-x.meh i { background: var(--ic-warn-bg); color: var(--ic-warn); } .cp-x.meh i::after { content: "–"; }
.cp-x.no span { color: var(--ic-ink-2); }
.cp-win { position: absolute; border-radius: 18px; border: 2px solid var(--ic-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ic-accent) 15%, transparent); opacity: 0; transform: scale(.97); transition: opacity .5s, transform .6s var(--ic-spring); pointer-events: none; z-index: 2; }
.cp-win.in { opacity: 1; transform: none; }
.cp-v { margin-top: 12px; text-align: center; font-size: 15px; font-weight: 700; text-wrap: balance; opacity: 0; transform: translateY(6px); transition: opacity .6s .2s, transform .6s var(--ic-out) .2s; }
.cp-v.in { opacity: 1; transform: none; }
.ic-tall .cp { padding: 12px 10px; gap: 6px; --lw: 62px; }
.ic-tall .cp-r { gap: 5px; }
.ic-tall .cp-c { padding: 6px 2px; } .ic-tall .cp-c b { font-size: 13px; } .ic-tall .cp-c em { font-size: 10px; }
.ic-tall .cp-l { font-size: 11.5px; }
.ic-tall .cp-x { padding: 7px 6px; gap: 5px; font-size: 11px; border-radius: 10px; flex-direction: column; }
.ic-tall .cp-x i { width: 16px; height: 16px; }
.ic-tall .cp-v { font-size: 13.5px; }

/* ---------- board ---------- */
.bd { position: absolute; inset: 0; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.bd-g { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; }
.bd-col { min-height: 0; border-radius: 16px; background: var(--ic-soft); border: 1px solid var(--ic-line); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.bd-h { display: flex; align-items: center; gap: 7px; padding: 2px 4px 2px; }
.bd-h i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.bd-h b { flex: 1; font-size: 13px; font-weight: 700; color: var(--c-ink); }
.bd-h em { font: 600 11px var(--ic-mono); font-style: normal; color: var(--ic-ink-3); }
.bd-list { display: flex; flex-direction: column; gap: 8px; }
.bd-card { position: relative; padding: 10px 11px; border-radius: 12px; background: var(--ic-surface); border: 1px solid var(--ic-line-2); border-left: 3px solid var(--c); box-shadow: var(--ic-sh-card); display: grid; gap: 7px; opacity: 0; transform: translateY(10px) scale(.96); transition: transform .7s var(--ic-spring), opacity .35s, box-shadow .3s, border-color .4s; }
.bd-card.in { opacity: 1; transform: none; }
.bd-card.moved { z-index: 5; box-shadow: var(--ic-sh-pop); }
.bd-card p { font-size: 12.5px; font-weight: 600; line-height: 1.42; }
.bd-f { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ic-ink-3); min-height: 18px; }
.bd-f:empty { display: none; }
.bd-who { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 700; background: var(--c-soft); color: var(--c-ink); }
.bd-f .chip { margin-left: auto; }
.bd-note { flex: none; min-height: 36px; padding: 8px 14px; border-radius: 12px; background: var(--ic-deep); color: var(--ic-on-deep); font-size: 13px; font-weight: 600; text-align: center; transition: opacity .2s; }
.bd-note.swap { opacity: 0; }
.ic-tall .bd { padding: 8px; gap: 8px; }
.ic-tall .bd-g { gap: 6px; }
.ic-tall .bd-col { padding: 6px; border-radius: 12px; }
.ic-tall .bd-h b { font-size: 11.5px; }
.ic-tall .bd-card { padding: 7px 8px; gap: 5px; border-radius: 10px; }
.ic-tall .bd-card p { font-size: 11px; }
.ic-tall .bd-f span:not(.chip) { display: none; }
.ic-tall .bd-f .chip { height: 17px; padding: 0 6px; font-size: 9.5px; }
.ic-tall .bd-note { font-size: 12px; padding: 7px 10px; }

/* ---------- terminal：深浅色下都是深色 ---------- */
.ic-stage.framed[data-stage='terminal'] { background: #10161d; border-color: rgba(255, 255, 255, .09); }
.tm { position: absolute; inset: 0; display: flex; flex-direction: column; color: #d7dde4; font: 13px/1.75 var(--ic-mono); }
.tm-h { flex: none; height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.tm-h i { width: 10px; height: 10px; border-radius: 50%; background: #39424d; }
.tm-h b { margin-left: 8px; font: 600 12px var(--ic-sans); color: #8b96a3; }
.tm-box { flex: 1; min-height: 0; overflow: hidden; }
.tm-in { padding: 16px 20px 18px; transition: transform .3s var(--ic-out); }
.tm-c { color: #fff; }
.tm-p { margin-right: 10px; color: color-mix(in srgb, var(--ic-accent-base) 60%, #fff); }
.tm-o { color: #aab4bf; white-space: pre-wrap; }
.tm-o.ok { color: #7fd0a2; } .tm-o.dim { color: #66717d; } .tm-o.warn { color: #e7b962; } .tm-o.acc { color: color-mix(in srgb, var(--ic-accent-base) 55%, #fff); }
.tm .caret { background: #d7dde4; }
.ic-tall .tm { font-size: 11.5px; }
.ic-tall .tm-in { padding: 12px 12px 14px; }

/* ---------- statement ---------- */
.stm { position: absolute; inset: 0; display: grid; align-content: center; gap: 10px; padding: 0 30px; }
.stm-k { font-size: 13px; font-weight: 650; letter-spacing: .04em; color: var(--ic-accent-ink); margin-bottom: 6px; opacity: 0; transition: opacity .6s; }
.stm-l { font-size: 46px; font-weight: 750; letter-spacing: -.025em; line-height: 1.18; text-wrap: balance; opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .7s, transform .8s var(--ic-out), filter .7s; }
.stm-l.sm { font-size: 25px; font-weight: 650; color: var(--ic-ink-2); letter-spacing: -.01em; }
.stm-l[class*='c-'] { color: var(--c-ink); }
.stm-l mark { color: inherit; padding: 0 .06em; background: linear-gradient(color-mix(in srgb, var(--ic-accent) 34%, transparent) 0 0) no-repeat 0 86% / 0% 36%; transition: background-size .8s var(--ic-out) .45s; }
.stm-l.in mark { background-size: 100% 36%; }
.stm-s { margin-top: 14px; max-width: 560px; font-size: 16px; color: var(--ic-ink-2); line-height: 1.65; text-wrap: pretty; opacity: 0; transition: opacity .8s; }
.stm-k.in, .stm-s.in { opacity: 1; }
.stm-l.in { opacity: 1; transform: none; filter: none; }
.ic-tall .stm { padding: 0 12px; }
.ic-tall .stm-l { font-size: 31px; } .ic-tall .stm-l.sm { font-size: 19px; }
.ic-tall .stm-s { font-size: 14.5px; }

@media (prefers-reduced-motion: reduce) {
  .ly-f, .ly-r, .ob-c, .ob-s, .ob-l, .ly-nodes i, .ly-rows i::after, .ly-cards i { animation: none !important; }
}

/* ---------- picture：一幅配图 ---------- */
.pc-v { position: absolute; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, var(--c-soft), color-mix(in srgb, var(--c) 34%, var(--ic-surface))); box-shadow: var(--ic-sh-pop); opacity: 0; transform: translateY(14px) scale(.975); transition: opacity .7s var(--ic-out), transform .9s var(--ic-out); }
.pc-v.in { opacity: 1; transform: none; }
.pc-v img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; transform: scale(1.09); transition: transform 14s cubic-bezier(.2, .6, .3, 1); animation: pc-show .8s var(--ic-out) both; }
.pc-v.in img { transform: scale(1); }
/* 图还没到：底色上一道慢慢扫过的光 */
.pc-v:not(:has(img))::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, color-mix(in srgb, var(--ic-surface) 42%, transparent) 50%, transparent 65%) 0 0 / 300% 100%; animation: pc-wait 2.2s linear infinite; }
.ic-tall .pc-v { border-radius: 18px; }
@keyframes pc-show { from { opacity: 0; } }
@keyframes pc-wait { from { background-position: 150% 0; } to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .pc-v img { transform: none; transition: none; } .pc-v::after { animation: none !important; } }

/* ---------- shot：截图 + 聚光框 ---------- */
.sh-f { position: absolute; border-radius: 14px; overflow: hidden; background: var(--ic-surface); border: 1px solid var(--ic-line-2); box-shadow: var(--ic-sh-pop); }
.sh-f.plain { border-radius: 12px; }
.sh-f.phone { border-radius: 30px; padding: 8px; background: #11161d; border-color: rgba(255, 255, 255, .12); }
.sh-f.phone .sh-v { border-radius: 23px; }
.sh-bar { height: 30px; display: flex; align-items: center; gap: 5px; padding: 0 12px; background: var(--ic-soft); border-bottom: 1px solid var(--ic-line); }
.sh-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--ic-idle); }
.sh-bar b { margin-left: 8px; font-size: 11.5px; font-weight: 600; color: var(--ic-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-v { position: relative; overflow: hidden; background: var(--ic-strong); }
.sh-v img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; }
/* 聚光框：框本身是亮的，巨大的外阴影把框外压暗 */
.sh-spot { position: absolute; border-radius: 8px; border: 2px solid var(--ic-accent); box-shadow: 0 0 0 9999px rgba(10, 14, 20, .58), 0 0 0 5px color-mix(in srgb, var(--ic-accent) 30%, transparent); transition: left .7s var(--ic-out), top .7s var(--ic-out), width .7s var(--ic-out), height .7s var(--ic-out), opacity .4s, box-shadow .5s; left: 0; top: 0; width: 100%; height: 100%; }
.sh-spot.off { opacity: 0; box-shadow: 0 0 0 9999px transparent; }
