/* 等我说停 · the room. One screen per role, no page scrolling while a round is on:
   说停 sees TA on top, a pad in the middle and three sheets at the bottom; 忍住 sees a big light and a few buttons.
   Colour is heat: --phase is hot rose (继续), warm apricot (慢一点) or cool violet (停). */

.room { --phase: var(--gold); --head: 58px; position: relative; min-height: 100dvh; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }

/* While a round is on, the whole screen takes the light's colour, top and bottom. */
.room::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1s, background 1s;
  background: radial-gradient(110% 50% at 50% 0%, color-mix(in srgb, var(--tint, var(--go)) 26%, transparent), transparent 70%),
    radial-gradient(110% 45% at 50% 100%, color-mix(in srgb, var(--tint, var(--go)) 20%, transparent), transparent 72%); }
.room[data-view="play"]::before { opacity: 1; }
.room:has(.room-stage[data-cue="fast"]) { --tint: var(--go); }
.room:has(.room-stage[data-cue="slow"]) { --tint: var(--slow); }
.room:has(.room-stage[data-cue="stop"]) { --tint: var(--stop); }

/* ---------- Head ---------- */
.room-head { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px; min-height: var(--head); padding: calc(6px + env(safe-area-inset-top)) 0 6px;
  background: none; }
.rm-back { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--soft); flex: none; }
.rm-back svg { width: 20px; height: 20px; }
.room-heading { min-width: 0; flex: 1; }
.room-head h1 { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-head-actions { display: flex; align-items: center; gap: 2px; }
.rm-tool { position: relative; display: grid; justify-items: center; gap: 1px; min-width: 44px; height: 46px; padding: 4px 4px 2px; border-radius: 14px; color: var(--soft); font-size: 10.5px; line-height: 1.1;
  transition: background-color .2s, color .2s, transform .3s var(--spring); }
.rm-tool svg, .rm-tool [data-icon] svg { width: 20px; height: 20px; }
.rm-tool:active { transform: scale(.92); }
.rm-tool[aria-expanded="true"], .rm-tool[aria-pressed="true"] { color: var(--gold-2); background: #ff8fb117; }
.rm-tool.primary { color: var(--gold-ink); background: var(--rose-grad); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(-2px); box-shadow: 0 6px 20px #ff6f9f55; } }
.rm-tool[data-badge]::after { content: attr(data-badge); position: absolute; top: 0; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--go); color: #fff;
  font-size: 10px; font-weight: 750; display: grid; place-items: center; box-shadow: 0 0 10px var(--go); animation: pop-in .4s var(--spring); }
.rm-leave { margin-left: 4px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid #ff7a7a55; background: #ff7a7a14; color: #ffc9c9; font-size: 13px; font-weight: 650; }
.admin-reminder { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; padding: 12px 14px; border-radius: var(--r-2); background: #ffad6b14; border: 1px solid #ffad6b44; color: var(--soft); font-size: 13px; }
.admin-reminder-close { margin-left: auto; color: var(--dim); }
@media (max-width: 420px) { .room-heading { display: none; } .room-head-actions { flex: 1; justify-content: flex-end; } .rm-tool { min-width: 42px; } }
body:has(#lobby[hidden]) .header { display: none; }

/* ---------- Layout ----------
   Phone, in a round: one column that fills the screen. The stage takes whatever is left, so the controls
   and the talk panel are always in reach without scrolling. */
.room-grid, .playfield { display: grid; gap: 10px; }
.stage-stack { display: flex; flex-direction: column; gap: 10px; }
.room[data-view="play"] .stage-stack { height: calc(100dvh - var(--head) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); min-height: 600px; }
.room[data-view="play"] .room-stage { flex: 1 1 auto; min-height: 190px; }
.room[data-view="play"] .partner-strip, .room[data-view="play"] .control-dock, .room[data-view="play"] .room-talk { flex: none; }
.room[data-view="meet"][data-role="lead"] .room-stage, .room[data-view="meet"][data-role="follow"] .room-stage { display: none; }

/* ---------- 说停: TA's state (one row and the live gauge) ---------- */
.partner-strip { display: grid; gap: 8px; padding: 10px 14px 12px; border-radius: var(--r-3); border: 1px solid var(--hair); background: linear-gradient(140deg, #ff4f8f12, transparent 60%), var(--ink-1);
  transition: border-color .4s, box-shadow .4s; }
.partner-strip[data-level="4"], .partner-strip[data-level="5"] { border-color: #ff4f8f77; box-shadow: 0 0 0 1px #ff4f8f33, 0 0 40px #ff4f8f22; animation: edge-glow 1.4s ease-in-out infinite; }
@keyframes edge-glow { 50% { box-shadow: 0 0 0 1px #ff4f8f55, 0 0 60px #ff4f8f44; } }
.ps-who { display: flex; align-items: center; gap: 10px; }
.ps-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--rose-grad); color: var(--gold-ink); font-size: 15px; flex: none; }
.ps-name { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.ps-name strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-name small { color: var(--dim); font-size: 12px; white-space: nowrap; }
.ps-ask { min-height: 32px; padding: 4px 12px; border-radius: 99px; border: 1px solid #ffad6b66; color: var(--slow); background: #ffad6b12; font-size: 13px; font-weight: 600; transition: transform .3s var(--spring); }
.ps-ask:active { transform: scale(.92); }

/* Meter: how close the one holding on is */
.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.meter-cell { height: 9px; border-radius: 99px; background: var(--veil-2); transition: background .4s, box-shadow .4s, transform .3s var(--spring); }
.meter-cell[data-on="true"] { background: linear-gradient(90deg, var(--slow), var(--go)); box-shadow: 0 0 12px #ff4f8f66; }
.meter[data-level="5"] .meter-cell[data-on="true"] { animation: throb .9s ease-in-out infinite; }
@keyframes throb { 50% { filter: brightness(1.4); } }
button.meter-cell { height: 46px; display: grid; place-items: center; color: var(--dim); font-size: 12px; font-weight: 650; border-radius: 14px; padding: 0 2px; }
button.meter-cell span { line-height: 1.2; }
button.meter-cell[data-on="true"] { color: #fff; }
button.meter-cell[aria-pressed="true"] { transform: scale(1.04); box-shadow: 0 0 0 2px #fff6, 0 0 22px #ff4f8f88; }
button.meter-cell:active { transform: scale(.92); }
.meter.asked { animation: ask 1s ease-in-out 3; }
@keyframes ask { 50% { filter: brightness(1.45); transform: scale(1.02); } }

/* 爆发进度: a glowing tube; the colour runs apricot → rose → hot red, it breathes faster as it rises,
   and past 90 it throbs and the edge marker lights. */
.heat { --v: 0; --breath: 2.4s; display: flex; align-items: center; gap: 10px; }
.heat-track { position: relative; flex: 1; height: 26px; border-radius: 99px; background: #1a0c1b99; border: 1px solid var(--hair-2); overflow: hidden; box-shadow: inset 0 2px 8px #0006; }
.heat-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 1%); border-radius: inherit;
  background: linear-gradient(90deg, #ffad6b 0%, #ff8fb1 45%, #ff4f8f 75%, #ff2d55 100%); background-size: calc(10000% / max(var(--v), 1)) 100%;
  box-shadow: 0 0 calc(6px + var(--v) * .22px) #ff4f8f; animation: heat-breath var(--breath) ease-in-out infinite; }
.heat[data-ready] .heat-fill { transition: width .35s cubic-bezier(.2,.8,.2,1); }
.heat-fill::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 14px; border-radius: 99px; background: #fff; opacity: .7; filter: blur(5px); }
.heat-edge { position: absolute; left: 90%; top: 3px; bottom: 3px; width: 2px; border-radius: 2px; background: #ffffff44; }
.heat-pct { position: absolute; left: clamp(8px, calc(var(--v) * 1% + 8px), calc(100% - 44px)); top: 50%; transform: translateY(-50%); transition: left .35s; font-size: 12px; font-weight: 750; color: #fff; text-shadow: 0 1px 4px #000; font-variant-numeric: tabular-nums; }
.heat[data-zone="high"] .heat-track { border-color: #ff4f8f66; }
.heat[data-zone="edge"] .heat-track { border-color: #ff2d55; box-shadow: inset 0 2px 8px #000a, 0 0 22px #ff2d5588; animation: throb .6s ease-in-out infinite; }
.heat[data-zone="edge"] .heat-edge { background: #fff; box-shadow: 0 0 10px #fff; }
@keyframes heat-breath { 50% { filter: brightness(1.35) saturate(1.2); } }
.heat-heart { position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; touch-action: manipulation; -webkit-user-select: none; user-select: none;
  background: radial-gradient(circle at 35% 30%, #ffb3c9, var(--go) 60%, #a8164f); box-shadow: 0 8px 26px #ff4f8f66, inset 0 2px 0 #fff6; animation: heart calc(var(--breath) * .55) ease-in-out infinite; }
.heat-heart svg { width: 26px; height: 26px; }
.heat-heart.tap { animation: heart-tap .32s cubic-bezier(.2,.9,.2,1); }
.heat-heart.thump { animation: heart-tap .45s cubic-bezier(.2,.9,.2,1); }
.heat { position: relative; }
.heat-combo { position: absolute; right: 64px; top: -22px; color: #fff; font-family: var(--serif); font-size: 20px; font-weight: 700; text-shadow: 0 0 12px var(--go), 0 0 24px var(--go); pointer-events: none; opacity: 0; }
.heat-combo.pop { animation: combo .9s cubic-bezier(.2,.9,.2,1) forwards; }
@keyframes combo { 0% { opacity: 0; transform: scale(2) rotate(-8deg); } 20% { opacity: 1; transform: scale(1) rotate(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.heat-heart.pressing { transform: scale(.9); filter: brightness(.85); box-shadow: 0 0 0 6px #9488ff44, 0 8px 26px #9488ff66; }
@keyframes heart-tap { 40% { transform: scale(1.22); filter: brightness(1.3); } }
.heat[data-source="partner"] .heat-track { height: 22px; }
.follow[data-heat-zone="edge"] .big-button.edge, .solo-board[data-heat-zone="edge"] .big-button.edge { animation: edge-breathe .7s ease-in-out infinite; }
.partner-strip[data-level="5"] .ps-level { color: #ff6f91; }

/* ---------- Stage ---------- */
.room-stage { --heat: 0; position: relative; overflow: hidden; isolation: isolate; min-height: 300px; display: grid; place-items: center; text-align: center; padding: 28px 18px 32px;
  border-radius: var(--r-4); border: 1px solid var(--hair);
  background: radial-gradient(75% 70% at 50% 38%, color-mix(in srgb, var(--phase) calc(22% + var(--heat) * 4%), transparent), transparent 72%), #2a13284d;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .9s ease, border-color .9s; }
.room[data-view="play"] .room-stage { flex: 1; border-color: color-mix(in srgb, var(--phase) 30%, transparent); }
.room-stage[data-cue="fast"] { --phase: var(--go); }
.room-stage[data-cue="slow"] { --phase: var(--slow); }
.room-stage[data-cue="stop"] { --phase: var(--stop); }
.room-stage[data-cue="stop"]::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 42%, transparent 30%, #05020acc 100%); animation: hush 3.2s ease-in-out infinite; }
@keyframes hush { 50% { opacity: .55; } }
.room-stage[data-sprint] { --phase: var(--go); animation: sprint-shake .26s linear infinite; }
.room-stage[data-sprint="final"] { animation-duration: .16s; }
@keyframes sprint-shake { 25% { transform: translate(.6px, -.4px); } 75% { transform: translate(-.6px, .4px); } }
.time-label { position: absolute; top: 14px; right: 18px; font-variant-numeric: tabular-nums; color: var(--soft); font-size: 15px; font-weight: 650; letter-spacing: .04em; }
.progress { position: absolute; left: 18px; right: 18px; bottom: 14px; height: 3px; border-radius: 99px; background: var(--veil-2); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--phase); box-shadow: 0 0 12px var(--phase); transition: width 1s linear, background .8s; }
.stage-content { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; width: 100%; }
.stage-content > h2 { font-family: var(--serif); font-size: clamp(26px, 7vw, 36px); font-weight: 600; letter-spacing: .1em; }
.stage-content > p { color: var(--soft); max-width: 30em; line-height: 1.7; }
.stage-enter > * { animation: rise-in .7s var(--out) both; }
.stage-enter > *:nth-child(2) { animation-delay: .05s; } .stage-enter > *:nth-child(3) { animation-delay: .1s; } .stage-enter > *:nth-child(4) { animation-delay: .15s; } .stage-enter > *:nth-child(5) { animation-delay: .2s; }
.stage-enter > .light { animation: light-in .9s var(--spring) both; }
@keyframes light-in { from { opacity: .4; transform: scale(.82); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.orb { position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; color: var(--phase);
  background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--phase) 38%, transparent), color-mix(in srgb, var(--phase) 10%, transparent) 70%); box-shadow: 0 0 40px color-mix(in srgb, var(--phase) 30%, transparent); }
.orb svg { width: 34px; height: 34px; }
.loading-orb::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; background: var(--phase); filter: blur(14px); opacity: .4; z-index: -1; animation: ring 2s ease-out infinite; }
.stage-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.stage-badges span { padding: 3px 10px; border-radius: 99px; background: var(--veil-2); color: var(--soft); font-size: 12px; }
.stage-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* The light. The ripple carries the beat; --heat (strength) makes everything glow harder. */
.light { position: relative; width: 168px; height: 168px; display: grid; place-items: center; margin-bottom: 2px; }
.light .light-halo { position: absolute; inset: -32%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--phase) calc(38% + var(--heat) * 6%), transparent), transparent 66%);
  animation: breathe 3.4s ease-in-out infinite; transition: background .8s; }
/* No hairlines: the light is glow only. */
.light .light-ring { display: none; }
.light .light-core { position: absolute; inset: 21%; border-radius: 50%; background: radial-gradient(circle at 36% 32%, #fff 0%, var(--phase) 38%, color-mix(in srgb, var(--phase) 42%, #000) 100%);
  box-shadow: 0 0 calc(36px + var(--heat) * 8px) var(--phase), 0 0 calc(90px + var(--heat) * 16px) color-mix(in srgb, var(--phase) 50%, transparent); transition: background .8s, box-shadow .8s; }
.light .light-ripple { position: absolute; inset: 18%; border-radius: 50%; background: var(--phase); filter: blur(16px); opacity: 0; pointer-events: none; }
.light[data-cue="stop"] .light-core { animation: hold 3.2s ease-in-out infinite; }
@keyframes hold { 50% { transform: scale(.92); filter: brightness(.78); } }
@keyframes breathe { 0%, 100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes ring { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.cue-word { font-size: clamp(46px, 13vw, 72px); letter-spacing: .16em; line-height: 1.05; text-shadow: 0 0 40px color-mix(in srgb, var(--phase) 55%, transparent); margin-top: 2px; }
.cue-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--phase) 55%, transparent); color: var(--phase); font-size: 12.5px; letter-spacing: .08em; font-weight: 650; font-variant-numeric: tabular-nums; }
.cue-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--phase); box-shadow: 0 0 8px var(--phase); animation: pulse 1.2s ease-in-out infinite; }
.cue-instruction { max-width: 21em; font-size: clamp(18px, 5vw, 22px); line-height: 1.6; color: var(--text); }
.cue-sub { color: var(--dim); font-size: 13px; }
.phase-bar { --left: 1; width: min(220px, 60%); height: 3px; border-radius: 99px; background: var(--veil-2); overflow: hidden; }
.phase-bar i { display: block; height: 100%; width: calc(var(--left) * 100%); border-radius: inherit; background: var(--phase); box-shadow: 0 0 10px var(--phase); transition: width .3s linear; }
.room-stage[data-role="lead"] .phase-bar { width: 100%; }
.stage-meta { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; min-height: 0; }
.cue-hold { padding: 3px 12px; border-radius: 99px; background: #9488ff22; color: #d6d0ff; font-size: 13px; font-variant-numeric: tabular-nums; }

/* Strength: lit pips. A change makes them jump. */
.strength { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 99px; background: #ff4f8f14; border: 1px solid #ff4f8f33; }
.strength b { color: var(--soft); font-size: 12px; font-weight: 600; margin-right: 2px; }
.strength i { width: 9px; height: 9px; border-radius: 50%; background: var(--veil-2); transition: background .3s, box-shadow .3s, transform .4s var(--spring); }
.strength i[data-on="true"] { background: var(--go); box-shadow: 0 0 10px var(--go); }
.strength em { margin-left: 3px; color: #fff; font-style: normal; font-weight: 750; font-variant-numeric: tabular-nums; }
.strength.shift-up { animation: strength-up .9s var(--spring); }
.strength.shift-up i[data-on="true"] { animation: pip 0.6s var(--spring) both; }
.strength.shift-up i:nth-of-type(2) { animation-delay: .05s; } .strength.shift-up i:nth-of-type(3) { animation-delay: .1s; } .strength.shift-up i:nth-of-type(4) { animation-delay: .15s; } .strength.shift-up i:nth-of-type(5) { animation-delay: .2s; }
.strength.shift-down { animation: strength-down .8s var(--out); }
@keyframes strength-up { 30% { transform: scale(1.25); box-shadow: 0 0 40px #ff4f8faa; } }
@keyframes strength-down { 30% { transform: scale(.88); opacity: .6; } }
@keyframes pip { from { transform: scale(2.2); } }

.room-stage[data-role="lead"] .cue-instruction::before { content: "TA 看到："; color: var(--dim); font-family: var(--sans); font-size: 12px; }

/* (Phone and tablet room layouts moved to night.css.) */

/* ---------- Effects on the stage and over the room ---------- */
.stage-fx, .fx-layer, .watch-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; z-index: 2; }
.fx-layer { position: fixed; z-index: 48; border-radius: 0; }
.beat-veil { position: absolute; inset: 0; opacity: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 45%, color-mix(in srgb, var(--phase) 38%, transparent) 100%); }
.room[data-view="play"] .fx-layer { --phase: var(--go); }
.room:has(.room-stage[data-cue="slow"]) .fx-layer { --phase: var(--slow); }
.room:has(.room-stage[data-cue="stop"]) .fx-layer { --phase: var(--stop); }
.bloom { position: absolute; left: var(--x); top: var(--y); width: 60vmax; height: 60vmax; margin: -30vmax 0 0 -30vmax; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, var(--c, var(--go)) 0%, color-mix(in srgb, var(--c, var(--go)) 30%, transparent) 30%, transparent 62%); animation: bloom 1.4s var(--out) forwards; mix-blend-mode: screen; }
.bloom.big { animation-duration: 1.7s; }
.bloom-hot { --c: var(--go); } .bloom-warm { --c: var(--slow); } .bloom-cool { --c: var(--stop); } .bloom-gold { --c: var(--champagne); }
@keyframes bloom { 0% { opacity: .0; transform: scale(.15); } 18% { opacity: .55; } 100% { opacity: 0; transform: scale(1.1); } }
.stage-banner { position: absolute; left: 0; right: 0; top: 22%; font-size: clamp(30px, 9vw, 44px); letter-spacing: .14em; color: #fff; text-shadow: 0 0 24px var(--c, var(--go)), 0 0 60px var(--c, var(--go));
  animation: banner 2.4s var(--out) forwards; }
.stage-banner.tone-hot { --c: var(--go); } .stage-banner.tone-warm { --c: var(--slow); } .stage-banner.tone-cool { --c: var(--stop); }
@keyframes banner { 0% { opacity: 0; transform: scale(1.6); filter: blur(10px); } 18% { opacity: 1; transform: scale(1); filter: none; } 72% { opacity: 1; } 100% { opacity: 0; transform: translateY(-24px); } }
.card-fly { --c: var(--blush); position: absolute; left: 50%; top: 46%; width: min(300px, 82%); padding: 18px 20px 20px; border-radius: 22px; text-align: center; font-size: 19px; line-height: 1.55; color: #fff;
  background: linear-gradient(160deg, #2c1424f2, #1a0b14f2); border: 1px solid color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 30px 80px #000c, 0 0 50px color-mix(in srgb, var(--c) 35%, transparent);
  animation: card-fly 3.3s var(--spring) forwards; }
.card-fly[data-cue="fast"] { --c: var(--go); } .card-fly[data-cue="slow"] { --c: var(--slow); } .card-fly[data-cue="stop"] { --c: var(--stop); }
.card-fly small { display: block; margin-bottom: 6px; color: var(--c); font-family: var(--sans); font-size: 12px; letter-spacing: .2em; }
@keyframes card-fly { 0% { opacity: 0; transform: translate(-50%, 40%) rotate(-8deg) scale(.7); } 14% { opacity: 1; transform: translate(-50%, -50%) rotate(1deg) scale(1.02); } 22% { transform: translate(-50%, -50%) rotate(0) scale(1); }
  82% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(-50%, -70%) scale(.9); filter: blur(4px); } }
.floater { position: absolute; bottom: 18%; left: calc(8% + var(--lane, 0%)); max-width: 70%; padding: 8px 14px; border-radius: 18px; font-size: 15px; line-height: 1.4; color: #fff;
  background: #2a1422e6; border: 1px solid #ff8fb155; box-shadow: 0 10px 30px #0008; animation: float-up 3.3s var(--out) forwards; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.floater[data-side="right"] { left: auto; right: calc(6% + var(--lane, 0%)); }
.floater-reply { font-family: var(--serif); font-size: 17px; border-color: #ff4f8f88; box-shadow: 0 0 24px #ff4f8f44; }
.floater-mark { border-color: #9488ff88; color: #e2ddff; }
.floater-ack { font-size: 13px; color: var(--soft); background: #1c0e17e6; }
.floater-cheer, .floater-cheer-harsh { background: none; border: 0; box-shadow: none; font-size: 21px; font-family: var(--serif); text-shadow: 0 0 16px #ff8fb1, 0 0 30px #ff4f8f99; }
.floater-cheer-harsh { color: #ff4f6e; font-size: 24px; font-weight: 700; text-shadow: 0 0 10px #ff2d55, 0 0 30px #ff2d55aa; animation: float-up 3.3s var(--out) forwards, jolt .18s linear 6; }
@keyframes jolt { 25% { margin-left: -3px; } 75% { margin-left: 3px; } }
.phrases.harsh .phrase { border-color: #ff4f6e66; color: #ffc2cc; background: #ff2d5512; }
@keyframes float-up { 0% { opacity: 0; transform: translate(0, 30px) scale(.8); } 12% { opacity: 1; transform: translate(0, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--drift, 0), -220px) scale(.96); } }
.peer-feedback { position: absolute; z-index: 3; left: 50%; top: 40px; transform: translateX(-50%); width: max-content; max-width: min(88%, 26em); padding: 10px 18px; border-radius: 20px; background: #1a0b14e6; border: 1px solid #ff8fb166;
  color: var(--gold-2); font-family: var(--serif); font-size: 17px; line-height: 1.5; text-align: center; box-shadow: 0 0 30px #ff6f9f33; animation: whisper .8s var(--spring); }
.peer-feedback::before { content: "TA："; color: var(--dim); font-family: var(--sans); font-size: 12px; }
@keyframes whisper { from { opacity: 0; transform: translateY(10px) scale(.95); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
.sprint-burst { position: absolute; top: 14px; left: 18px; z-index: 3; color: var(--go); font-weight: 750; letter-spacing: .1em; }

/* Slam: 3 · 2 · 1 · 开始 and the last ten seconds. Big, fast, with a shock ring and sparks. */
.slam { --c: var(--go); position: absolute; left: 50%; top: 42%; z-index: 3; font-family: var(--serif); font-weight: 700; line-height: 1; color: #fff; white-space: nowrap;
  font-size: clamp(120px, 38vw, 200px); text-shadow: 0 0 24px var(--c), 0 0 70px var(--c), 0 0 140px var(--c); animation: slam 1s cubic-bezier(.2,.9,.2,1) forwards; }
.slam-go { font-size: clamp(76px, 24vw, 130px); letter-spacing: .14em; animation-name: slam-go; animation-duration: 1.3s; }
.slam-final { top: 30%; font-size: clamp(80px, 26vw, 130px); opacity: .9; }
.tone-hot { --c: var(--go); } .tone-warm { --c: var(--slow); } .tone-cool { --c: var(--stop); } .tone-gold { --c: var(--champagne); }
@keyframes slam { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2.6); filter: blur(14px); } 16% { opacity: 1; transform: translate(-50%, -50%) scale(.92); filter: none; }
  26% { transform: translate(-50%, -50%) scale(1.04); } 34% { transform: translate(-50%, -50%) scale(1); } 72% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.82); filter: blur(4px); } }
@keyframes slam-go { 0% { opacity: 0; transform: translate(-50%, -50%) scale(3); filter: blur(18px); letter-spacing: .6em; } 18% { opacity: 1; transform: translate(-50%, -50%) scale(.94); filter: none; letter-spacing: .14em; }
  30% { transform: translate(-50%, -50%) scale(1.06); } 40% { transform: translate(-50%, -50%) scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -64%) scale(1.3); filter: blur(10px); } }
.shock { position: absolute; left: 50%; top: 42%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 3px solid var(--c, var(--go)); box-shadow: 0 0 30px var(--c, var(--go));
  animation: shock .85s cubic-bezier(.1,.7,.3,1) forwards; }
@keyframes shock { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(4.2); border-width: 1px; } }
.spark { --c: var(--go); position: absolute; width: calc(7px * var(--s, 1)); height: calc(7px * var(--s, 1)); margin: -3px 0 0 -3px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 8px var(--c), 0 0 18px var(--c); animation: spark .95s cubic-bezier(.15,.7,.3,1) forwards; }
.spark-warm { --c: var(--slow); } .spark-cool { --c: var(--stop); } .spark-gold { --c: var(--champagne); }
@keyframes spark { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2); } }
@media (prefers-reduced-motion: reduce) { .slam, .slam-go { animation: none; opacity: 1; transform: translate(-50%, -50%); } }

/* Full-screen signals: 快到了, 准许, the ending. */
.signal-layer { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.signal { position: absolute; inset: 0; display: grid; align-content: safe center; justify-items: center; overflow-y: auto; padding: 24px 22px calc(24px + env(safe-area-inset-bottom)); pointer-events: auto; text-align: center;
  background: radial-gradient(90% 70% at 50% 45%, color-mix(in srgb, var(--c, var(--go)) 34%, #1f0d1ee0), #1a0c1bf2 75%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: signal-in .6s var(--spring); }
.signal.leaving { pointer-events: none; animation: signal-out .4s var(--out) forwards; }
.signal[data-kind="grant"] { --c: var(--champagne); }
.signal[data-kind="came"] { --c: var(--go); pointer-events: none; }
.signal-glow { pointer-events: none; position: absolute; left: 50%; top: 44%; width: 240px; height: 240px; margin: -120px 0 0 -120px; border-radius: 50%; background: radial-gradient(circle, #fff, var(--c, var(--go)) 30%, transparent 70%);
  filter: blur(6px); opacity: .6; animation: heartbeat .9s ease-in-out infinite; }
.signal-body { position: relative; display: grid; gap: 10px; justify-items: center; max-width: 360px; }
.signal-kicker { color: var(--soft); letter-spacing: .3em; font-size: 13px; }
.signal h2 { font-size: clamp(44px, 13vw, 64px); letter-spacing: .12em; color: #fff; text-shadow: 0 0 30px var(--c, var(--go)), 0 0 80px var(--c, var(--go)); }
.signal p { color: var(--soft); }
.signal-actions { display: grid; gap: 10px; justify-items: center; width: 100%; margin-top: 12px; }
.signal-actions .big-button { width: min(280px, 80vw); }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.18); } 28% { transform: scale(1); } 42% { transform: scale(1.1); } }
@keyframes signal-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes signal-out { to { opacity: 0; transform: scale(.97); visibility: hidden; } }

/* ---------- Dock ---------- */
.control-dock { border-radius: var(--r-4); }
.control-dock:empty { display: none; }

/* 说停: the pad on the left, one-tap moves on the right. ⚡冲刺 is the loudest thing on the console. */
.lead { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-4); border: 1px solid var(--hair); background: var(--ink-1); }
.lead-pad { display: grid; justify-items: center; gap: 6px; }
.pad { position: relative; width: clamp(140px, 41vw, 200px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #ffffff12, #ffffff05 60%, transparent 72%); box-shadow: inset 0 2px 18px #ffffff0d, inset 0 -10px 30px #0000004d, 0 12px 30px #0000004d; }
@media (max-height: 760px) { .pad { width: clamp(130px, 37vw, 168px); } }
.pad-key { position: absolute; display: grid; place-items: center; color: var(--soft); transition: transform .3s var(--spring), color .2s, text-shadow .2s; }
.pad-key b { font-size: 17px; font-weight: 700; }
.pad-key:not(:disabled):active { transform: scale(.86); color: #fff; text-shadow: 0 0 14px var(--go); }
.pad-key.up { left: 34%; right: 34%; top: 3%; height: 28%; }
.pad-key.down { left: 34%; right: 34%; bottom: 3%; height: 28%; }
.pad-key.left { top: 34%; bottom: 34%; left: 3%; width: 28%; }
.pad-key.right { top: 34%; bottom: 34%; right: 3%; width: 28%; }
.pad-key.left b, .pad-key.right b { color: var(--gold-2); }
.pad-key.up::after, .pad-key.down::after, .pad-key.left::after, .pad-key.right::after { content: ""; position: absolute; width: 6px; height: 6px; border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor; opacity: .35; }
.pad-key.up::after { top: 9%; transform: rotate(45deg); } .pad-key.down::after { bottom: 9%; transform: rotate(-135deg); }
.pad-key.left::after { left: 9%; transform: rotate(-45deg); } .pad-key.right::after { right: 9%; transform: rotate(135deg); }
.pad-key.stop { left: 30%; top: 30%; width: 40%; height: 40%; border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 38% 32%, #c9c2ff, var(--stop) 58%, #4a3cb8); box-shadow: 0 10px 40px #9488ff66, inset 0 2px 0 #fff6; }
.pad-key.stop b { font-size: 26px; }
.pad-key.stop[aria-pressed="true"] { box-shadow: 0 0 0 6px #9488ff33, 0 10px 50px #9488ff99; animation: hold 3s ease-in-out infinite; }
.pad-readout { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pad-readout .strength { padding: 3px 9px; gap: 4px; }
.pad-readout .strength b { display: none; }
.pad-readout .strength i { width: 7px; height: 7px; }
.pad-bpm strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.pad-bpm small { margin-left: 3px; color: var(--dim); font-size: 11px; }
.lead-tools { display: grid; gap: 7px; align-content: center; }
.tool-sprint-wrap { position: relative; display: grid; }
.tool-sprint { position: relative; overflow: hidden; isolation: isolate; display: grid; justify-items: start; gap: 1px; min-height: 64px; padding: 9px 48px 9px 14px; border-radius: 18px; text-align: left; color: #fff;
  background: linear-gradient(135deg, #ff9a3c, #ff4f8f 55%, #c21f6b); box-shadow: 0 10px 28px #ff4f8f55, inset 0 1px 0 #fff6; transition: transform .3s var(--spring); animation: sprint-glow 2s ease-in-out infinite; }
.tool-sprint::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, #fff8 50%, transparent 70%); transform: translateX(-130%); animation: sheen 3s ease-in-out infinite; }
.tool-sprint b { font-size: 19px; letter-spacing: .14em; }
.tool-sprint b i { font-style: normal; margin-right: 4px; }
.tool-sprint small { font-size: 11.5px; opacity: .9; }
.tool-sprint:active { transform: scale(.95); }
.tool-sprint.on { padding-right: 14px; background: linear-gradient(135deg, #ff4f8f, #ff2d55); animation: throb .5s ease-in-out infinite; }
.tool-sprint.on em { font-style: normal; font-size: 11px; opacity: .8; }
.tool-sprint-time { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 12px; background: #0006; color: #fff; font-size: 12px; font-weight: 700; border: 1px solid #fff4; }
@keyframes sprint-glow { 50% { box-shadow: 0 10px 40px #ff4f8f99, inset 0 1px 0 #fff6; } }
.tool-btn { min-height: 40px; padding: 6px 12px; border-radius: 14px; border: 1px solid var(--hair-2); background: var(--veil); color: var(--text); font-size: 13.5px; font-weight: 600; text-align: center;
  transition: transform .3s var(--spring), background-color .2s, border-color .2s; }
.tool-btn:active { transform: scale(.95); }
.tool-btn.on { color: var(--dim); font-weight: 500; }
.tool-btn.resume { background: var(--rose-grad); color: var(--gold-ink); border-color: transparent; }
.tool-btn.gold { background: linear-gradient(135deg, #fff0db, var(--champagne) 60%, #c99a66); color: var(--champagne-ink); border-color: transparent; animation: edge-breathe 1.8s ease-in-out infinite; }
.tool-note { color: var(--champagne); font-size: 12.5px; text-align: center; }
.desk-deck, .desk-replies { display: none; }

/* 忍住: the board */
.follow { display: grid; gap: 10px; padding: 12px; border-radius: var(--r-4); border: 1px solid var(--hair); background: var(--ink-1); }
.follow-prompt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 18px; background: #f2cb9f14; border: 1px solid #f2cb9f44; animation: pop-in .5s var(--spring); }
.follow-prompt span { flex: 1; color: var(--champagne-2); font-size: 14px; }
.follow-main { display: grid; grid-template-columns: minmax(0, 1fr) 68px; gap: 8px; }
.follow-lost { border-radius: 20px; border: 1px dashed var(--hair-2); background: none; color: var(--dim); font-size: 12.5px; line-height: 1.3; padding: 6px; }
.big-button { width: 100%; display: grid; place-items: center; gap: 2px; min-height: 74px; border-radius: 24px; font-size: 22px; font-weight: 750; letter-spacing: .12em; color: #fff;
  background: radial-gradient(120% 140% at 30% 0%, #ff9fc0, var(--go) 52%, #a8164f); box-shadow: 0 14px 44px #ff4f8f55, inset 0 2px 0 #fff5; transition: transform .35s var(--spring), filter .2s; }
.big-button small { font-size: 12px; font-weight: 500; letter-spacing: .04em; opacity: .88; }
.big-button:not(:disabled):active { transform: scale(.95); filter: brightness(1.15); }
.big-button.edge { animation: edge-breathe 2.4s ease-in-out infinite; }
@keyframes edge-breathe { 50% { box-shadow: 0 14px 64px #ff4f8f88, inset 0 2px 0 #fff5; } }
.big-button.edge.sent { animation: squeeze .7s var(--spring); }
@keyframes squeeze { 30% { transform: scale(.9); filter: brightness(1.4); } }
.big-button.mark { background: radial-gradient(120% 140% at 30% 0%, #d8d2ff, var(--stop) 55%, #4a3cb8); box-shadow: 0 14px 44px #9488ff55, inset 0 2px 0 #fff6; }
.big-button.mark:disabled { opacity: .75; }
.big-button.gold { background: radial-gradient(120% 140% at 30% 0%, #fff2df, var(--champagne) 55%, #b98657); color: var(--champagne-ink); box-shadow: 0 14px 44px #f2cb9f55; animation: edge-breathe 1.6s ease-in-out infinite; }
.big-button.cool { background: radial-gradient(120% 140% at 30% 0%, #d8d2ff, var(--stop) 55%, #4a3cb8); }
.big-button.deny { background: linear-gradient(150deg, #3a1628, #1a0d13); border: 1px solid #9488ff55; color: #e2ddff; box-shadow: none; }
.follow-meter { display: grid; gap: 6px; }
.follow-meter small { color: var(--dim); font-size: 12px; }
.follow-meter.asked small { color: var(--slow); font-weight: 650; }
.text-button.warn { color: #ffc9c9; }

/* ---------- Meeting ---------- */
.meet { display: grid; gap: 14px; animation: rise-in .6s var(--out); }
.meet-hero { position: relative; height: 92px; }
.meet-orb { position: absolute; top: 24px; width: 44px; height: 44px; border-radius: 50%; }
.meet-orb.you { left: calc(50% - 22px); background: radial-gradient(circle at 36% 32%, #fff, var(--gold) 45%, #8a2c55); box-shadow: 0 0 30px var(--gold); animation: drift-left 3.6s ease-in-out infinite; }
.meet-orb.them { left: calc(50% - 22px); background: radial-gradient(circle at 36% 32%, #fff, var(--blush) 45%, #4f3399); box-shadow: 0 0 30px var(--blush); animation: drift-right 3.6s ease-in-out infinite; }
.meet-spark { position: absolute; left: 50%; top: 46px; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 20px #fff, 0 0 40px var(--gold); animation: meet-spark 3.6s ease-in-out infinite; }
@keyframes drift-left { 0%, 100% { transform: translateX(-54px); } 50% { transform: translateX(-16px); } }
@keyframes drift-right { 0%, 100% { transform: translateX(54px); } 50% { transform: translateX(16px); } }
@keyframes meet-spark { 0%, 30%, 70%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(2.2); } }
.meet-kicker { text-align: center; color: var(--gold-2); font-size: 20px; letter-spacing: .14em; margin-top: -8px; }
.meet-card { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-4); border: 1px solid var(--hair); background: linear-gradient(150deg, #ff4f8f10, transparent 55%), var(--ink-1); }
.meet-who { display: flex; align-items: center; gap: 12px; }
.meet-avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--rose-grad); color: var(--gold-ink); font-size: 22px; flex: none; box-shadow: 0 0 24px #ff6f9f44; }
.meet-who strong { display: block; font-size: 21px; font-weight: 600; }
.meet-who small { display: block; color: var(--dim); font-size: 12.5px; }
.meet-state { margin-left: auto; padding: 4px 12px; border-radius: 99px; background: var(--veil-2); color: var(--dim); font-size: 12.5px; white-space: nowrap; }
.meet-state[data-on="true"] { background: #ff4f8f22; color: #ffc6d8; animation: sent .6s var(--spring); }
.consent-group { display: grid; gap: 6px; }
.consent-group > small { color: var(--dim); font-size: 12px; letter-spacing: .08em; }
.consent-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.consent-chip { padding: 5px 12px; border-radius: 99px; background: var(--veil-2); color: var(--soft); font-size: 13px; }
.consent-chip[data-kind="ask"] { background: #ff8fb11f; color: var(--gold-2); }
.consent-chip[data-kind="bound"] { background: #d6a6ff1f; color: #ecd9ff; }
.consent-chip[data-kind="kit"] { background: #ffad6b1a; color: #ffd8b5; }
.consent-chip[data-kind="style"] { background: #ff8fb11f; color: var(--gold-2); }
.meet-note, .meet-line { color: var(--soft); font-size: 14px; line-height: 1.7; }
.meet-line { padding: 0 4px; color: var(--dim); }
/* The partner left the page (11-24): said at once, with what happens next. */
.meet-state[data-away] { color: var(--slow) !important; border-color: #ffa66e66 !important; }
.meet-away { margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: #ffa66e14; color: #ffd2b0; font-size: 13px; line-height: 1.6; }
/* What the match promised about the mic, with the one step it needs (11-24). */
.meet-voice { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 16px;
  background: #ff8fb114; border: 1px solid #ff8fb140; }
.meet-voice[data-voice="off"] { background: #ffffff08; border-color: var(--hair); }
.meet-voice-text { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.meet-voice-text [data-icon] svg { width: 17px; height: 17px; color: var(--gold); }
.meet-voice .button { min-height: 36px; padding: 6px 14px; font-size: 13.5px; }
.meet-voice small { color: var(--dim); font-size: 12.5px; }
.meet-bar { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 5; display: grid; gap: 8px; padding: 10px; border-radius: 24px; background: #1d0d17ee; border: 1px solid var(--hair-2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 18px 50px #000a; }
.meet-bar > .button { width: 100%; min-height: 54px; font-size: 16px; }
.meet-more { display: flex; flex-wrap: wrap; gap: 8px; }
.meet-more .button { flex: 1; min-height: 40px; padding: 8px 12px; font-size: 13px; }

/* Going public: both sides' choice, and an ask–answer flow. */
.watch-consent { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-3); border: 1px solid var(--hair); background: var(--veil); }
.consent-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center; }
.consent-copy strong { display: block; font-size: 14.5px; }
.consent-copy small { color: var(--dim); font-size: 12.5px; }
.consent-row[data-live="true"] .consent-copy small { color: var(--go); font-weight: 650; }
.consent-row[data-pending="true-in"] { padding: 10px; margin: -4px; border-radius: 16px; background: #ff8fb114; box-shadow: inset 0 0 0 1px #ff8fb155; animation: pop-in .5s var(--spring); }
.consent-row[data-pending="true-in"] .consent-copy small { color: var(--gold-2); }
.consent-dots { display: flex; gap: 6px; }
.consent-dot { display: inline-flex; align-items: center; gap: 4px; color: var(--dim); font-size: 12px; }
.consent-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--hair-2); }
.consent-dot[data-on="true"] { color: var(--text); }
.consent-dot[data-on="true"]::before { background: var(--go); border-color: var(--go); box-shadow: 0 0 8px var(--go); }
.consent-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.consent-actions .button { flex: 1; min-height: 40px; padding: 8px 14px; font-size: 13.5px; }
.consent-note { color: var(--dim); font-size: 12px; line-height: 1.6; }

/* ---------- Verdict & after ---------- */
.verdict { display: grid; justify-items: center; gap: 12px; padding: 26px 18px 22px; border-radius: var(--r-4); border: 1px solid var(--hair); background: var(--ink-1); text-align: center; animation: rise-in .6s var(--out); }
.verdict-kicker { color: var(--soft); letter-spacing: .24em; font-size: 13.5px; }
.verdict-card { position: relative; width: 148px; height: 196px; border-radius: 26px; display: grid; place-items: center; font-size: 42px; background: linear-gradient(150deg, #3a1628, #170a12);
  border: 1px solid #ff8fb144; color: var(--gold-2); }
.verdict[data-result="allow"] .verdict-card { background: radial-gradient(120% 120% at 30% 10%, #fff2df, var(--champagne) 60%, #b98657); color: var(--champagne-ink); box-shadow: 0 0 80px #f2cb9f66; }
.verdict[data-result="deny"] .verdict-card { background: linear-gradient(150deg, #2b2066, #120b2a); color: #e2ddff; box-shadow: 0 0 60px #9488ff44; }
.verdict[data-result="lost"] .verdict-card { background: linear-gradient(150deg, #5b1838, #22091a); color: #ffc6d8; box-shadow: 0 0 60px #ff4f8f44; }
.verdict.revealed .verdict-card { animation: flip 1s var(--spring); }
@keyframes flip { from { transform: perspective(800px) rotateY(100deg) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.verdict-card.waiting { animation: shuffle .6s ease-in-out infinite alternate; }
@keyframes shuffle { from { transform: rotate(-3deg); } to { transform: rotate(3deg) translateY(-4px); } }
.verdict-line { color: var(--soft); font-size: 17px; }
.verdict-stats { color: var(--dim); font-size: 13px; }
.verdict-choices { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.after-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; margin-top: 12px; }
.after-actions .button { min-height: 52px; }
.after-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.after-more .button { flex: 1; min-height: 42px; padding: 8px 12px; font-size: 13.5px; }
.report-link { display: block; margin: 10px auto 2px; color: var(--dim); font-size: 12.5px; }
.control-dock > .watch-consent { margin-top: 12px; }
.bound-ask { display: grid; gap: 10px; margin-top: 12px; padding: 16px; border-radius: var(--r-3); border: 1px solid #d6a6ff33; background: #d6a6ff0d; text-align: center; animation: rise-in .6s var(--out); }
.bound-ask p { font-size: 16px; }
.bound-options { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bound-ask small { color: var(--dim); font-size: 12px; }
.chip-button.quiet-danger { color: #ffc9c9; border-color: #ff7a7a44; }

/* 这一局的曲线 */
.curve-card { display: grid; gap: 10px; margin-top: 12px; padding: 16px 14px 14px; border-radius: var(--r-4); border: 1px solid var(--hair); background: linear-gradient(170deg, #ff4f8f0d, transparent 40%), var(--ink-1); }
.curve-head { display: flex; align-items: center; justify-content: space-between; }
.curve-head h3 { font-size: 18px; letter-spacing: .08em; }
.curve-head .text-button { font-size: 13px; color: var(--gold-2); }
.curve-caption { color: var(--soft); font-size: 14px; line-height: 1.6; }
.curve-caption b { color: #fff; font-weight: 700; }
.curve-chart { display: block; width: 100%; height: auto; overflow: visible; }
.curve-chart .cv-line { fill: none; stroke: url(#cvLine); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len); filter: drop-shadow(0 0 5px #ff6f9faa); }
.curve-chart .cv-dot { filter: drop-shadow(0 0 4px #fff); }
.curve-chart .cv-heart { transform-box: fill-box; transform-origin: center; animation: heart 1.15s ease-in-out 2.6s infinite; }
.curve-chart.wait .cv-line, .curve-chart.anim .cv-line { stroke-dashoffset: var(--len); }
.curve-chart.anim .cv-line { animation: cv-draw 2s cubic-bezier(.45,.05,.3,1) .15s forwards; }
.curve-chart.wait .cv-area, .curve-chart.wait .cv-pin, .curve-chart.wait .cv-tag { opacity: 0; }
.curve-chart.anim .cv-area { animation: cv-fade 1s ease 1.3s both; }
.curve-chart.anim .cv-pin { transform-box: fill-box; transform-origin: center; animation: cv-pin .5s cubic-bezier(.2,1.6,.4,1) both; animation-delay: var(--d); }
.curve-chart.anim .cv-tag { animation: cv-fade .5s ease both; animation-delay: var(--d); }
@keyframes cv-draw { to { stroke-dashoffset: 0; } }
@keyframes cv-fade { from { opacity: 0; } }
@keyframes cv-pin { from { opacity: 0; transform: scale(.2); } }
.curve-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--dim); font-size: 11.5px; }
.curve-legend span { display: inline-flex; align-items: center; gap: 5px; }
.curve-legend i { width: 10px; height: 6px; border-radius: 2px; }
.curve-legend i.ln { width: 16px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #ffad6b, #ff7fa6, #b48cff); }
.curve-legend i.go { background: var(--go); } .curve-legend i.slow { background: var(--slow); } .curve-legend i.stop { background: var(--stop); }
.curve-legend i.dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; }
.curve-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.curve-stats div { padding: 10px 8px; border-radius: var(--r-1); background: var(--veil); text-align: center; }
.curve-stats b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; color: #fff; }
.curve-stats small { color: var(--dim); font-size: 11.5px; }
.curve-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 6px; border-left: 2px solid var(--hair-2); }
.curve-timeline li { position: relative; padding-left: 14px; color: var(--soft); font-size: 13.5px; }
.curve-timeline li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--hair-2); }
.curve-timeline li[data-kind=""]::before, .curve-timeline li[data-kind="hot"]::before { background: #fff; box-shadow: 0 0 6px #fff; }
.curve-timeline li[data-kind="hot"] { color: #ff9aae; }
.curve-timeline li[data-kind="grant"]::before { background: var(--champagne); }
.curve-timeline li[data-kind="sprint"]::before { background: #ff9a3c; }
.curve-timeline li[data-kind="end"] { color: #fff; font-weight: 650; }
.curve-timeline li[data-kind="end"]::before { background: var(--go); box-shadow: 0 0 8px var(--go); }
.curve-timeline time { display: inline-block; min-width: 3.2em; color: var(--dim); font-variant-numeric: tabular-nums; }
.report-dialog .curve-card { margin: 12px 0; }

/* The preview of the result screen (?demo=result on the test site). */
.demo-bar { display: grid; gap: 8px; margin: 4px 0 12px; padding: 12px 14px; border-radius: var(--r-3); border: 1px dashed #ff8fb155; background: #ff8fb10a; }
.demo-bar > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.demo-bar small { color: var(--dim); font-size: 12px; margin-right: 4px; }
.demo-bar p { color: var(--dim); font-size: 12px; }
.demo-chip { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--hair-2); color: var(--soft); font-size: 13px; text-decoration: none; }
.demo-chip[aria-current="true"] { border-color: var(--gold); background: #ff8fb122; color: #fff; }
.demo-result { max-width: 560px; margin: 0 auto; }

/* 快到了: the leader's choices on the full-screen signal. */
.signal-row { display: flex; gap: 8px; width: min(340px, 90vw); justify-content: center; align-items: center; }
.signal-choice { flex: 1; display: grid; gap: 2px; padding: 12px 10px; border-radius: 18px; color: #fff; text-align: center; }
.signal-choice b { font-size: 17px; letter-spacing: .08em; }
.signal-choice small { font-size: 11.5px; opacity: .85; }
.signal-choice.sprint { background: linear-gradient(135deg, #ff9a3c, #ff4f8f 55%, #c21f6b); box-shadow: 0 10px 28px #ff4f8f66; animation: sprint-glow 1.4s ease-in-out infinite; }
.signal-choice.allow { background: linear-gradient(135deg, #fff0db, var(--champagne) 60%, #c99a66); color: var(--champagne-ink); box-shadow: 0 10px 28px #f2cb9f55; }
.signal-choice.allow:disabled { background: var(--veil-2); color: var(--dim); box-shadow: none; opacity: 1; }
.signal-choice.done { background: #f2cb9f22; color: var(--champagne-2); }
.signal-choice:active { transform: scale(.95); }

/* ---------- Sheets ---------- */
.room-sheet { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; max-height: 74dvh; overscroll-behavior: contain;
  border-radius: 30px 30px 0 0; background: linear-gradient(180deg, #34182f, #241120 70%); border: 1px solid var(--hair-2); border-bottom: 0; box-shadow: 0 -30px 90px #000c, inset 0 1px 0 #ffffff14;
  transform: translateY(105%); visibility: hidden; transition: transform .55s var(--spring), visibility 0s .55s; }
.room[data-room-panel="voice"] [data-sheet="voice"], .room[data-room-panel="chat"] [data-sheet="chat"], .room[data-room-panel="info"] [data-sheet="info"],
.room[data-room-panel="cards"] [data-sheet="cards"], .room[data-room-panel="words"] [data-sheet="words"], .room[data-room-panel="replies"] [data-sheet="replies"],
.room[data-room-panel="tools"] [data-sheet="tools"] { transform: none; visibility: visible; transition: transform .55s var(--spring), visibility 0s; }
.sheet-head { position: relative; flex: none; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 16px 14px 6px 20px; }
.sheet-head .sheet-handle { display: block; position: absolute; left: 50%; top: 8px; width: 44px; height: 5px; margin: 0 0 0 -22px; border-radius: 99px; background: var(--hair-2); }
.sheet-head h2 { font-size: 19px; font-weight: 600; letter-spacing: .08em; }
.sheet-close { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--veil-2); color: var(--soft); flex: none; }
.sheet-close svg { width: 17px; height: 17px; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 14px; padding: 6px 18px calc(20px + env(safe-area-inset-bottom)); }
.room-panel-backdrop { position: fixed; inset: 0; z-index: 55; background: #07030580; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.room[data-room-panel] .room-panel-backdrop { opacity: 1; pointer-events: auto; }
.room-sheet.dragging { transition: none; }
@media (min-width: 900px) {
  .room-sheet { left: auto; right: 24px; bottom: 24px; width: 440px; max-height: min(78dvh, 760px); border-radius: 28px; border-bottom: 1px solid var(--hair-2); }
  .sheet-head .sheet-handle { display: none; }
}
.sheet-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.sheet-tabs::-webkit-scrollbar { display: none; }
.sheet-tab { flex: none; min-height: 36px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--hair-2); color: var(--dim); font-size: 13.5px; transition: all .25s var(--out); }
.sheet-tab[aria-selected="true"] { color: #fff; border-color: var(--gold); background: linear-gradient(135deg, #ff8fb133, #d6a6ff1f); }
.sheet-note, .sheet-empty { color: var(--dim); font-size: 12.5px; line-height: 1.6; }
.deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; animation: view-in .35s var(--out); }
.deck-card { --c: var(--gold); position: relative; min-height: 78px; padding: 12px 12px 12px 18px; border-radius: 16px; text-align: left; font-size: 14px; line-height: 1.55; color: var(--text); background: var(--veil);
  border: 1px solid var(--hair); transition: transform .3s var(--spring), border-color .2s, background-color .2s; }
.deck-card::before { content: ""; position: absolute; left: 8px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.deck-card[data-cue="fast"] { --c: var(--go); } .deck-card[data-cue="slow"] { --c: var(--slow); } .deck-card[data-cue="stop"] { --c: var(--stop); } .deck-card[data-cue="any"] { --c: var(--blush); }
.deck-card:active { transform: scale(.95); background: color-mix(in srgb, var(--c) 14%, transparent); }
.deck-card[aria-pressed="true"] { border-color: color-mix(in srgb, var(--c) 70%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
/* 指令卡 (11-24): each card carries its own star; your own cards can be deleted; ＋ writes a new one in this kind. */
.deck-item { position: relative; display: grid; min-width: 0; }
.deck-item .deck-card { width: 100%; height: 100%; padding-right: 36px !important; }
.deck-star { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #f0d9e380; font-size: 17px; line-height: 1; }
.deck-star[aria-pressed="true"] { color: #ffd27a; text-shadow: 0 0 10px #ffd27a80; }
.deck-remove { position: absolute; right: 8px; bottom: 6px; padding: 2px 6px; border-radius: 99px; color: var(--dim); font-size: 11.5px; }
.deck-remove:hover { color: #ffb3b3; }
.deck-add { width: 100%; min-height: 48px; margin-top: 8px; border-radius: 16px; border: 1px dashed #ff8fb166; color: #ffc6d8; font-size: 14px; letter-spacing: .06em; }
.deck-add:active { transform: scale(.98); }
.sheet-tab[data-cue="fast"][aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--go); }
.sheet-tab[data-cue="slow"][aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--slow); }
.sheet-tab[data-cue="stop"][aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--stop); }
.sheet-tab[data-cue="fav"][aria-selected="true"] { box-shadow: inset 0 -2px 0 #ffd27a; }
/* The five card tabs share the row instead of scrolling (收藏 was cut off at 390 px). */
.sheet-tabs:has(.sheet-tab[data-sheet="cards"]) { display: grid; grid-template-columns: repeat(5, minmax(0, auto)); justify-content: stretch; }
.sheet-tab[data-sheet="cards"] { padding: 6px 6px; font-size: 13px; white-space: nowrap; }
.sheet-tab[data-sheet="cards"] small { margin-left: 2px; }
.card-form { display: grid; gap: 14px; }
.card-form textarea { width: 100%; min-height: 84px; font-size: 16px; }
.phrases { display: flex; flex-wrap: wrap; gap: 8px; animation: view-in .35s var(--out); }
.phrase { min-height: 40px; font-size: 14px; }
.own-words { display: flex; gap: 8px; }
.own-words input { min-height: 48px; }
.own-words .button { min-height: 48px; padding: 10px 20px; }
.tool-group { display: grid; gap: 8px; }
.tool-group > small { color: var(--dim); font-size: 12.5px; letter-spacing: .06em; }

/* 更多 sheet */
.side-block { display: grid; gap: 10px; }
.side-block h3 { font-family: var(--serif); font-size: 16px; font-weight: 600; letter-spacing: .08em; color: var(--soft); }
.side-block h3 small { color: var(--dim); font-family: var(--sans); font-size: 12px; font-weight: 400; }
.side-block.danger { padding-top: 6px; border-top: 1px solid var(--hair); }
.side-note { color: var(--dim); font-size: 12.5px; line-height: 1.6; }
.side-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.side-actions .button { flex: 1; min-height: 44px; font-size: 14px; }
.participant { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-2); background: var(--veil); }
.participant > div { flex: 1; min-width: 0; display: grid; gap: 3px; justify-items: start; }
.participant strong { font-size: 15px; }
.participant strong em { margin-left: 6px; padding: 0 8px; border-radius: 99px; background: var(--veil-2); color: var(--dim); font-size: 11px; font-style: normal; }
.participant small { color: var(--dim); font-size: 12.5px; }
.participant .avatar { width: 38px; height: 38px; background: var(--rose-grad); color: var(--gold-ink); font-size: 16px; flex: none; }
.participant .voice-play { min-height: 34px; padding: 4px 12px; font-size: 12.5px; }
.mic-status { color: var(--dim); }
.mic-status.enabled { color: var(--go); }
.room-code-line { color: var(--soft); font-size: 13.5px; }
.room-code { margin-left: 8px; font-size: 22px; letter-spacing: .3em; font-family: var(--serif); color: var(--gold-2); }
.pref-toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: var(--r-2); background: var(--veil); text-align: left; }
.pref-toggle span { flex: 1; display: grid; gap: 1px; }
.pref-toggle strong { font-size: 14.5px; font-weight: 600; }
.pref-toggle small { color: var(--dim); font-size: 12px; }
.pref-toggle i { position: relative; flex: none; width: 46px; height: 28px; border-radius: 99px; background: var(--ink-3); border: 1px solid var(--hair-2); transition: background .3s; }
.pref-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--soft); transition: transform .4s var(--spring), background .3s; }
.pref-toggle[aria-pressed="true"] i { background: var(--rose-grad); border-color: transparent; box-shadow: 0 0 14px #ff6f9f55; }
.pref-toggle[aria-pressed="true"] i::after { transform: translateX(18px); background: #fff; }

/* Voice sheet */
.room-voice .sheet-body { gap: 12px; }
.room-voice-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #ff8fb11a; color: var(--gold); }
.room-voice[data-incoming] .room-voice-icon { animation: heartbeat 1.2s ease-in-out infinite; background: var(--rose-grad); color: var(--gold-ink); }
.room-voice-copy h2 { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.room-voice-copy p { color: var(--soft); font-size: 14px; margin-top: 4px; }
.room-voice-copy small { display: block; color: var(--dim); font-size: 12px; line-height: 1.6; margin-top: 6px; }
.voice-actions, .voice-audience { display: flex; flex-wrap: wrap; gap: 8px; }
.voice-actions .button { flex: 1; }
.voice-nudge, .public-audio-settings { color: var(--soft); font-size: 13px; line-height: 1.6; }
.voice-play { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- The talk panel: always on screen in a room ----------
   A few lines of the conversation (chat, replies, words, cards and alerts in one timeline), the role's
   one-tap phrases, then the input. Tap the header to open it taller. */
.room-safety { flex: none; padding: 0 0 6px; }
.room-safety .button { min-height: 44px; border-color: #f59bbf; color: #ffdbeb; }
.room-talk { display: flex; flex-direction: column; border-radius: var(--r-3); border: 1px solid var(--hair); background: #2a13289e; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); overflow: hidden; }
.room-talk .room-chat { display: flex; flex-direction: column; min-height: 0; }
.talk-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 14px 3px; color: var(--dim); font-size: 12px; text-align: left; }
.talk-head .chat-title { font-weight: 650; color: var(--soft); letter-spacing: .1em; }
.talk-head .chat-scope { padding: 1px 8px; border-radius: 99px; background: var(--veil-2); font-size: 11px; }
.talk-head .chat-scope.public { background: #ff4f8f22; color: #ffc6d8; }
.talk-grip { margin-left: auto; width: 26px; height: 4px; border-radius: 99px; background: var(--hair-2); }
.room-talk .chat-scroll { min-height: 48px; max-height: clamp(52px, 11dvh, 120px); padding: 2px 12px 4px; transition: max-height .45s var(--out); }
.room-talk .chat-meta { display: flex; gap: 6px; }
.room[data-view="meet"] .room-talk .chat-scroll, .room[data-view="result"] .room-talk .chat-scroll { max-height: 26dvh; }
.room[data-talk="open"] .room-talk .chat-scroll { max-height: 46dvh; }
.room[data-talk="open"] .talk-grip { background: var(--gold); }
.room-talk .chat-empty { padding: 6px 0; font-size: 12.5px; }
.room-talk .chat-log { gap: 4px; }
.room-talk .chat-bubble { padding: 6px 12px; font-size: 14px; }
.room-talk .chat-meta { font-size: 10.5px; }
.room-talk .chat-form { padding: 4px 8px 8px; gap: 6px; }
.room-talk .chat-compose input { min-height: 42px; }
.room-talk .chat-send { width: 42px; height: 42px; }
.room[data-view="play"] .room-talk .chat-quick { display: none; }
.chat-slot { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chat-slot::-webkit-scrollbar { display: none; }
.chat-slot:empty { display: none; }
.rail-chip { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 5px 13px; border-radius: 99px; border: 1px solid var(--hair-2); background: var(--veil); color: var(--text);
  font-size: 13.5px; white-space: nowrap; transition: transform .25s var(--spring), background-color .2s, border-color .2s; }
.rail-chip:active { transform: scale(.92); background: #ff8fb133; }
.rail-chip[aria-pressed="true"] { border-color: var(--gold); background: #ff8fb122; }
.rail-chip.warn { border-color: #ff7a7a66; color: #ffc9c9; background: #ff7a7a12; }
.rail-chip.harsh { border-color: #ff4f6e66; color: #ffc2cc; background: #ff2d5512; }
.rail-chip.more { color: var(--gold-2); border-style: dashed; }
.rail-chip.cards { background: var(--rose-grad); color: var(--gold-ink); border-color: transparent; font-weight: 650; }
.rail-chip.group { color: var(--blush); border-color: #d6a6ff55; background: #d6a6ff12; font-weight: 600; }
.chat-note { display: flex; gap: 8px; align-items: baseline; padding: 2px 2px; font-size: 13.5px; animation: pop-in .35s var(--spring); }
.chat-note.mine { justify-content: flex-end; }
.chat-note-label { flex: none; color: var(--dim); font-size: 11px; }
.chat-note-text { padding: 3px 10px; border-radius: 12px; background: #ff8fb114; color: var(--gold-2); font-family: var(--serif); }
.chat-note[data-kind="card"] .chat-note-text { background: #ffad6b14; color: #ffd8b5; }
.chat-note[data-kind="harsh"] .chat-note-text { background: #ff2d5518; color: #ff9aae; }
.chat-note[data-kind="edge"] .chat-note-text { background: #ff4f8f2a; color: #fff; font-weight: 700; }
.chat-note[data-kind="ask"] .chat-note-text { background: #ffad6b1a; color: var(--slow); }
.chat-note[data-kind="grant"] .chat-note-text { background: #f2cb9f22; color: var(--champagne-2); }
.chat-note[data-kind="warn"] .chat-note-text { background: #ff7a7a1f; color: #ffc9c9; }
.chat-note.mine .chat-note-label { order: 2; }

/* ---------- Queue ---------- */
.queue-board { width: 100%; max-width: 420px; display: grid; gap: 12px; }
.queue-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; width: 100%; }
.queue-stats > * { padding: 12px; border-radius: var(--r-1); background: var(--veil); }
.queue-stats strong { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.queue-stats span, .queue-stats small, .queue-note, .queue-estimate { color: var(--dim); font-size: 12.5px; }
.queue-clock { display: grid; justify-items: center; }
.queue-clock small { color: var(--dim); font-size: 12px; }
.queue-clock, .queue-elapsed, .match-elapsed { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--serif); }
.queue-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.room[data-view="queue"] .orb { width: 120px; height: 120px; --phase: var(--gold); }
.room[data-view="queue"] .orb::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; background: #ff8fb1; filter: blur(20px); opacity: .3; z-index: -1; animation: ring 2.4s ease-out infinite .8s; }
.standby-panel, .standby-heading { color: var(--soft); }

/* ---------- Solo ---------- */
.room-grid.practice .control-dock:empty { display: none; }
.solo-board { display: grid; gap: 12px; padding: 14px; border-radius: var(--r-4); border: 1px solid var(--hair); background: var(--ink-1); }
.solo-row { display: flex; justify-content: space-between; gap: 8px; padding: 0 4px; }
.solo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.solo-stats div { padding: 10px; border-radius: var(--r-1); background: var(--veil); text-align: center; }
.solo-stats strong { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.solo-stats small { color: var(--dim); font-size: 12px; }

/* Ending card (solo) */
.ending { text-align: center; }
.ending-kicker { color: var(--soft); letter-spacing: .2em; margin-bottom: 18px; }
.ending-card { position: relative; width: 150px; height: 200px; margin: 0 auto; perspective: 900px; }
.ending-face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 24px; font-size: 44px; backface-visibility: hidden; transition: transform 1s var(--spring); }
.ending-face.front { background: linear-gradient(150deg, #3a1628, #170a12); border: 1px solid #ff8fb144; color: var(--gold); }
.ending-face.back { transform: rotateY(180deg); background: radial-gradient(120% 120% at 30% 10%, #fff2df, var(--champagne) 60%, #b98657); color: var(--champagne-ink); box-shadow: 0 0 70px #f2cb9f55; }
.ending[data-result="deny"] .ending-face.back { background: linear-gradient(150deg, #2b2066, #120b2a); color: #e2ddff; box-shadow: 0 0 60px #9488ff44; }
.ending[data-draw="true"]:not(.revealed) .ending-face.front { animation: shuffle .5s ease-in-out infinite alternate; }
.ending.revealed .ending-face.front { transform: rotateY(-180deg); }
.ending.revealed .ending-face.back { transform: none; }
.ending-line { margin: 22px 0 4px; font-family: var(--serif); font-size: 20px; opacity: 0; transition: opacity .8s .5s; }
.ending-by { color: var(--dim); opacity: 0; transition: opacity .8s .8s; }
.ending.revealed .ending-line, .ending.revealed .ending-by { opacity: 1; }
.ending .dialog-actions[inert] { visibility: hidden; }
.ending.revealed .dialog-actions:not([inert]) { animation: view-in .25s var(--out); }
@media (prefers-reduced-motion: reduce) {
  .ending .ending-face, .ending .ending-line, .ending .ending-by, .ending.revealed .dialog-actions:not([inert]) { animation: none; transition: none; }
}

/* ---------- Spectator ---------- */
.watch-panel { --phase: var(--gold); position: relative; display: grid; gap: 12px; min-height: 100dvh; padding: calc(10px + env(safe-area-inset-top)) 0 calc(170px + env(safe-area-inset-bottom)); }
.watch-heading { display: flex; align-items: center; gap: 10px; }
.watch-heading h2 { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .1em; }
.watch-heading h2::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--dim); vertical-align: middle; }
.watch-heading h2[data-playing="true"]::before { background: var(--go); box-shadow: 0 0 10px var(--go); animation: pulse 1.4s ease-in-out infinite; }
.watch-heading .button { min-height: 38px; padding: 6px 14px; font-size: 13px; }
.watch-viewers { margin-left: auto; color: var(--dim); font-size: 12.5px; }
.watch-stage { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 54dvh; padding: 24px 16px 28px; border-radius: var(--r-4);
  border: 1px solid var(--hair); text-align: center; background: radial-gradient(75% 70% at 50% 40%, color-mix(in srgb, var(--phase) 22%, transparent), transparent 72%), var(--ink-1); transition: background .9s; }
.watch-stage[data-cue="fast"] { --phase: var(--go); } .watch-stage[data-cue="slow"] { --phase: var(--slow); } .watch-stage[data-cue="stop"] { --phase: var(--stop); }
.watch-light { --heat: 0; position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.watch-light .light-halo { position: absolute; inset: -32%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--phase) 40%, transparent), transparent 66%); animation: breathe 3.4s ease-in-out infinite; }
.watch-light .light-ring { display: none; }
.watch-light .light-core { position: absolute; inset: 21%; border-radius: 50%; background: radial-gradient(circle at 36% 32%, #fff 0%, var(--phase) 38%, color-mix(in srgb, var(--phase) 42%, #000) 100%);
  box-shadow: 0 0 40px var(--phase), 0 0 100px color-mix(in srgb, var(--phase) 50%, transparent); transition: background .8s, box-shadow .8s; }
.watch-light .light-ripple { position: absolute; inset: 18%; border-radius: 50%; background: var(--phase); filter: blur(16px); opacity: 0; }
.watch-stage.sprinting { --phase: var(--go); animation: sprint-shake .26s linear infinite; }
.watch-phase { color: var(--dim); font-size: 12.5px; letter-spacing: .2em; }
.watch-cue { font-family: var(--serif); font-size: clamp(40px, 12vw, 60px); letter-spacing: .16em; text-shadow: 0 0 40px color-mix(in srgb, var(--phase) 55%, transparent); min-height: 1.1em; }
.watch-stage time { position: absolute; top: 14px; right: 18px; color: var(--soft); font-variant-numeric: tabular-nums; font-weight: 650; }
.watch-players { color: var(--soft); font-size: 13.5px; }
.watch-interaction { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.watch-interaction > div { padding: 12px 14px; border-radius: var(--r-2); background: var(--veil); border: 1px solid var(--hair); }
.watch-interaction h3 { color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: .1em; margin-bottom: 6px; }
.watch-controls span { color: var(--gold-2); font-size: 14px; }
.watch-hint { color: var(--soft); font-size: 13px; margin-top: 4px; }
.watch-reply { font-family: var(--serif); font-size: 17px; color: var(--gold-2); }
.watch-panel .room-chat { max-height: 30dvh; padding: 12px 14px; border-radius: var(--r-3); border: 1px solid var(--hair); background: var(--veil); }
.watch-panel .room-chat .chat-head h3 { font-size: 15px; }
.watch-panel .chat-scroll { min-height: 80px; max-height: 20dvh; }
.watch-heat { --v: 0; position: relative; height: 10px; margin-top: 8px; border-radius: 99px; background: #1a0c1b99; overflow: hidden; }
.watch-heat i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); border-radius: inherit; background: linear-gradient(90deg, #ffad6b, #ff8fb1, #ff4f8f, #ff2d55); box-shadow: 0 0 10px #ff4f8f; transition: width .6s; }
.watch-heat[data-zone="edge"] { animation: throb .6s ease-in-out infinite; }
.cheer-group { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cheer-group small { color: var(--dim); font-size: 11px; }
.cheer-group[data-group="羞"] .cheer { border-color: #ff4f6e66; background: #ff2d5514; color: #ffc2cc; }
.watch-cheers { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; padding: 8px;
  border-radius: 24px; background: #1d0d17ee; border: 1px solid var(--hair-2); box-shadow: 0 18px 50px #000b; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.watch-cheers::-webkit-scrollbar { display: none; }
.cheer { flex: none; min-height: 38px; padding: 4px 13px; border-radius: 99px; border: 1px solid #ff8fb155; background: #ff8fb114; color: var(--gold-2); font-family: var(--serif); font-size: 15px; transition: transform .3s var(--spring), opacity .2s; }
.cheer:active, .cheer.sent { transform: scale(.9); background: #ff8fb133; }
.cheer:disabled:not(.sent) { opacity: .45; }
@media (min-width: 900px) { .watch-cheers { left: 50%; right: auto; transform: translateX(-50%); max-width: 640px; } }
.watch-status { color: var(--dim); font-size: 13px; }
.watch-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.monitor-speakers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.monitor-speakers section { padding: 10px 12px; border-radius: var(--r-1); background: var(--veil); font-size: 13px; }

/* (Wide-screen room layouts moved to night.css.) */

@media (min-width: 900px) {
  .watch-panel { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); grid-template-areas: "head head" "stage side" "stage chat"; align-items: start; column-gap: 16px; max-width: 1200px; margin: 0 auto; }
  .watch-heading { grid-area: head; }
  .watch-stage { grid-area: stage; min-height: calc(100dvh - 190px); }
  .watch-interaction { grid-area: side; grid-template-columns: 1fr; }
  .watch-panel .room-chat { grid-area: chat; max-height: none; }
  .watch-panel .chat-scroll { max-height: 40dvh; }
}

@media (prefers-reduced-motion: reduce) {
  .room-stage[data-sprint], .watch-stage.sprinting, .big-button.edge, .big-button.gold { animation: none !important; }
}
