/* Hallmark · component-scope app UI · theme: Hum tokens · phone-first PoC. Tokens live in tokens.css. */
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: 16px; line-height: 1.65; font-feature-settings: "palt"; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-style: normal; letter-spacing: -0.01em; line-height: 1.3; overflow-wrap: anywhere; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.screen { max-width: 30rem; margin-inline: auto; padding: var(--space-md) var(--space-md) calc(var(--space-2xl) + env(safe-area-inset-bottom)); display: grid; gap: var(--space-md); }
.mono { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.muted { color: var(--color-muted); font-size: var(--text-sm); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); border: 2px solid var(--color-ink); background: var(--color-accent); font-weight: 700; white-space: nowrap; cursor: pointer; transition: transform var(--dur-micro) var(--ease-out); }
.btn:active { transform: translateY(2px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--wide { width: 100%; }
.btn--quiet { background: transparent; border-color: var(--color-rule); font-weight: 500; }
.btn--sm { min-height: 40px; padding-inline: var(--space-md); font-size: var(--text-sm); }
.linkish { background: none; border: 0; padding: var(--space-xs) 0; color: var(--color-muted); font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; min-height: 44px; }

/* ---------- home ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); font-family: var(--font-display); font-weight: 700; font-size: var(--text-md); }
.brand i { width: 16px; height: 18px; background: var(--color-accent); clip-path: polygon(50% 0, 92% 22%, 100% 100%, 0 100%, 8% 22%); }
.pills { display: flex; gap: var(--space-xs); }
.pill { padding: 2px 10px; border-radius: var(--radius-pill); background: var(--color-paper-2); font-size: var(--text-xs); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card { background: var(--color-paper-2); border-radius: var(--radius-card); padding: var(--space-md); display: grid; gap: var(--space-sm); }
.card--due { background: var(--color-accent); border: 2px solid var(--color-ink); }
.card h2 { font-size: var(--text-md); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.choices--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice { padding: var(--space-xs) var(--space-sm); min-height: 56px; border-radius: 14px; border: 2px solid transparent; background: var(--color-paper); text-align: left; display: grid; gap: 0; cursor: pointer; line-height: 1.35; }
.choice small { color: var(--color-muted); font-size: var(--text-xs); }
.choice[aria-pressed="true"] { border-color: var(--color-ink); background: var(--color-accent); }
.choice[aria-pressed="true"] small { color: var(--color-ink); }
.choices--4 .choice { min-height: 44px; text-align: center; place-items: center; padding: var(--space-2xs); font-size: var(--text-sm); }
.list { display: grid; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-rule); width: 100%; background: none; border-inline: 0; border-top: 0; text-align: left; cursor: pointer; min-height: 48px; }
.row:last-child { border-bottom: 0; }
.tagbar { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--space-sm); font-size: var(--text-sm); }
textarea { width: 100%; min-height: 110px; padding: var(--space-sm); border-radius: var(--radius-input); border: 2px solid var(--color-rule); background: var(--color-paper); font: inherit; font-size: 16px; }

/* ---------- board ---------- */
.playerbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); min-height: 40px; }
.who { display: flex; align-items: center; gap: var(--space-xs); font-weight: 700; font-size: var(--text-sm); white-space: nowrap; }
.who .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-rule); }
.who .dot.on { background: var(--color-mint); animation: pulse 900ms var(--ease-in-out) infinite alternate; }
@keyframes pulse { from { opacity: 0.35; } to { opacity: 1; } }
.hand { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; min-height: 36px; align-items: center; }
.hand--mine { justify-content: flex-start; }
.handpiece { position: relative; width: 34px; height: 38px; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 8px; }
.handpiece[disabled] { cursor: default; }
.handpiece[aria-pressed="true"] { background: var(--color-accent); }
.handpiece b { position: absolute; right: -1px; top: -1px; min-width: 15px; height: 15px; border-radius: 8px; background: var(--color-ink); color: var(--color-paper); font-size: 10px; line-height: 15px; text-align: center; font-family: var(--font-mono); }

.boardwrap { position: relative; }
.board { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); grid-template-rows: repeat(9, minmax(0, 1fr)); aspect-ratio: 1 / 1.06; background: var(--color-board); border: 2px solid var(--color-board-line); border-radius: 6px; overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.cell { position: relative; display: grid; place-items: center; padding: 0; border: 0; border-right: 1px solid var(--color-board-line); border-bottom: 1px solid var(--color-board-line); background: transparent; cursor: pointer; }
.cell:nth-child(9n) { border-right: 0; }
.cell:nth-last-child(-n+9) { border-bottom: 0; }
.cell.last { background: oklch(84% 0.09 85); }
.cell.sel { background: var(--color-accent); }
.cell.target::after { content: ""; position: absolute; width: 28%; height: 26%; border-radius: 50%; background: var(--color-ink); opacity: 0.5; }
.cell.target.hasp::after { width: 86%; height: 86%; background: none; border: 3px solid var(--color-ink); opacity: 0.6; }
.cell.good { background: var(--color-mint); }
.cell.bad { background: oklch(82% 0.1 25); }
.cell.pop .pc { animation: pop 200ms var(--ease-out); }
@keyframes pop { from { transform: scale(1.22); } to { transform: scale(1); } }
.pc { width: 88%; height: 92%; display: grid; place-items: center; background: var(--color-piece); clip-path: polygon(50% 0, 88% 16%, 100% 100%, 0 100%, 12% 16%); font-family: var(--font-display); font-weight: 700; font-size: clamp(14px, 5.1vw, 25px); line-height: 1; color: var(--color-ink); padding-top: 12%; }
.pc.gote { rotate: 180deg; }
.pc.pro { color: var(--color-error); }
.handpiece .pc { width: 100%; height: 100%; font-size: 19px; }
.arrows { position: absolute; inset: 0; pointer-events: none; width: 100%; height: 100%; }

/* ---------- game ---------- */
.actions { display: flex; gap: var(--space-xs); justify-content: space-between; }
.sheet { position: fixed; inset: auto 0 0 0; background: var(--color-paper); border-top: 2px solid var(--color-ink); padding: var(--space-lg) var(--space-md) calc(var(--space-lg) + env(safe-area-inset-bottom)); display: grid; gap: var(--space-sm); z-index: var(--z-sticky); animation: rise var(--dur-short) var(--ease-out); }
.sheet > * { width: 100%; max-width: 28rem; margin-inline: auto; }
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
.progress { height: 12px; border-radius: var(--radius-pill); background: var(--color-paper-3); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--color-mint); border-radius: inherit; transform-origin: left; transition: transform var(--dur-short) var(--ease-out); }

/* ---------- review ---------- */
.badge { display: inline-block; padding: 1px 10px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 700; white-space: nowrap; }
.badge--good { background: var(--color-mint); }
.badge--missed { background: var(--color-accent-2-soft); }
.badge--mistake { background: oklch(88% 0.08 25); }
.badge--plain { background: var(--color-paper-3); }
.graph { width: 100%; height: 76px; display: block; touch-action: none; cursor: pointer; }
.graph .zero { stroke: var(--color-rule); stroke-width: 1; }
.graph .line { fill: none; stroke: var(--color-ink); stroke-width: 1.5; }
.graph .area { fill: var(--color-mint-soft); }
.graph .areab { fill: oklch(92% 0.05 25); }
.graph .mark { fill: var(--color-accent-3); }
.graph .markm { fill: var(--color-accent-2); }
.graph .markd { fill: var(--color-muted); }
.graph .cursor { stroke: var(--color-ink); stroke-width: 1.5; }
.graph .markg { fill: var(--color-success); }
.steps { display: flex; gap: 4px; }
.steps i { flex: 1; height: 6px; border-radius: 3px; background: var(--color-paper-3); }
.steps i.on { background: var(--color-ink); }
.q { font-family: var(--font-display); font-weight: 700; font-size: var(--text-md); line-height: 1.4; }
.chips { display: grid; gap: var(--space-xs); }
.chipbtn { min-height: 48px; padding: var(--space-xs) var(--space-md); border-radius: 14px; border: 2px solid var(--color-rule); background: var(--color-paper); text-align: left; font-weight: 500; cursor: pointer; }
.chipbtn:active { background: var(--color-accent); }
.note { padding: var(--space-sm) var(--space-md); border-radius: 14px; font-size: var(--text-sm); display: grid; gap: 2px; }
.note b { font-size: var(--text-base); }
.note--best { background: var(--color-mint-soft); }
.note--better { background: var(--color-accent-2-soft); }
.note--same, .note--worse { background: oklch(93% 0.04 25); }
.note--plain { background: var(--color-paper-2); }
.cand { width: 100%; display: grid; gap: var(--space-2xs); padding: var(--space-sm) var(--space-md); border-radius: 14px; border: 2px solid transparent; background: var(--color-paper-2); text-align: left; cursor: pointer; }
.cand[aria-pressed="true"] { border-color: var(--color-ink); }
.cand__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-xs); }
.cand__move { font-weight: 700; font-size: var(--text-md); white-space: nowrap; }
.cand p { font-size: var(--text-sm); }
.cand__who { font-size: var(--text-xs); color: var(--color-muted); font-weight: 700; }
.line { font-family: var(--font-display); font-size: var(--text-sm); display: flex; flex-wrap: wrap; gap: 2px var(--space-xs); }
.line span { padding: 0 4px; border-radius: 6px; }
.line span.now { background: var(--color-accent); font-weight: 700; }
.player { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); }
.update { background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-card); padding: var(--space-md); display: grid; gap: var(--space-xs); }
.update .mono { color: var(--color-on-dark-muted); }
.lesson { font-weight: 700; }
.xp { font-weight: 700; color: var(--color-success); }
.fine { font-size: var(--text-xs); color: var(--color-muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 150ms !important; animation-iteration-count: 1 !important; transition-duration: 150ms !important; }
}

/* ---------- numbers ---------- */
.up { color: var(--color-success); }
.down { color: var(--color-error); }
.meter { display: grid; gap: var(--space-2xs); }
.meter__top { display: flex; align-items: baseline; gap: var(--space-xs); }
.meter__num { font-family: var(--font-mono); font-weight: 700; font-size: var(--text-lg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter__bar { height: 8px; border-radius: var(--radius-pill); background: oklch(82% 0.1 25); overflow: hidden; }
.meter__bar i { display: block; height: 100%; background: var(--color-success); transform-origin: left; transition: transform var(--dur-long) var(--ease-out); }
#rv-dyn { display: grid; gap: var(--space-xs); }
.rvinfo { display: grid; gap: var(--space-xs); min-height: 40px; }
.rvmove { display: flex; align-items: center; gap: var(--space-xs); }
.rvmove__l { font-size: var(--text-md); white-space: nowrap; }
.rvmove__d { margin-inline-start: auto; font-size: var(--text-sm); }
.scrub { display: grid; gap: 0; background: var(--color-paper-2); border-radius: 14px; padding: var(--space-xs) var(--space-sm) 0; }
.scrub input[type=range] { width: 100%; height: 28px; margin: 0; accent-color: var(--color-ink); }
.scrub__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-sm); font-size: var(--text-xs); color: var(--color-muted); justify-content: center; }
.legend .k { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.legend .mark { background: var(--color-accent-3); }
.legend .markm { background: var(--color-accent-2); }
.legend .markg { background: var(--color-success); }
.peaks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.peak { display: grid; justify-items: center; padding: var(--space-xs); border: 0; border-radius: 14px; background: var(--color-paper-2); cursor: pointer; }
.peak b { font-family: var(--font-mono); font-size: var(--text-lg); line-height: 1.3; }
.peak small { font-size: var(--text-xs); color: var(--color-muted); }
details > summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.recs { display: grid; margin-top: var(--space-xs); max-height: 50vh; overflow-y: auto; }
.rec { display: grid; grid-template-columns: 2.2em 1fr auto 4.4em; align-items: center; gap: var(--space-xs); min-height: 40px; padding: 0 var(--space-2xs); border: 0; border-bottom: 1px solid var(--color-rule); background: none; text-align: left; cursor: pointer; }
.rec.on { background: var(--color-accent); }
.rec__l { font-weight: 700; white-space: nowrap; }
.rec__l.opp { font-weight: 400; color: var(--color-muted); }
.rec__s { text-align: right; font-size: var(--text-sm); }

/* ---------- the line playing on the board ---------- */
.caption { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); border-radius: 14px; background: var(--color-ink); color: var(--color-paper); min-height: 56px; }
.caption .mono { color: var(--color-on-dark-muted); }
.caption .muted { color: var(--color-on-dark-muted); }
.caption .up { color: var(--color-mint); }
.caption .down { color: oklch(80% 0.14 25); }
.caption__txt { font-size: var(--text-sm); line-height: 1.5; }
.caption__btns { display: flex; gap: 2px; }
.iconbtn { width: 40px; height: 44px; border: 0; border-radius: 10px; background: var(--color-dark-2); color: var(--color-paper); cursor: pointer; font-size: var(--text-sm); }
.iconbtn:active { background: var(--color-dark-rule); }
.got { display: flex; gap: var(--space-sm); font-size: var(--text-xs); font-weight: 700; }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-2xs); }
.tab { display: grid; justify-items: center; gap: 0; padding: var(--space-xs) var(--space-2xs); border-radius: 12px; border: 2px solid transparent; background: var(--color-paper-2); cursor: pointer; line-height: 1.3; min-height: 64px; }
.tab small { font-size: 11px; color: var(--color-muted); white-space: nowrap; }
.tab b { font-size: var(--text-sm); white-space: nowrap; }
.tab .mono { font-weight: 700; }
.tab[aria-pressed="true"] { border-color: var(--color-ink); background: var(--color-accent); }
.tab[aria-pressed="true"] small { color: var(--color-ink); }
.say { font-weight: 700; line-height: 1.5; }
.more { font-size: var(--text-sm); color: var(--color-ink-soft); }
.more summary { font-weight: 500; color: var(--color-muted); }
.more p { margin-top: var(--space-2xs); }

/* ---------- check ---------- */
.cell.incheck { background: oklch(72% 0.2 25); animation: checkpulse 800ms var(--ease-in-out) infinite alternate; }
@keyframes checkpulse { from { background: oklch(82% 0.13 25); } to { background: oklch(64% 0.23 25); } }
.cell.checker { box-shadow: inset 0 0 0 3px var(--color-error); }
.cell.answer::before { content: ""; position: absolute; inset: 1px; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--color-accent-2); pointer-events: none; }
.handpiece.answer { box-shadow: inset 0 0 0 2px var(--color-accent-2); }
.checknote { display: grid; gap: 0; padding: var(--space-xs) var(--space-sm); border-radius: 12px; background: oklch(90% 0.07 25); font-size: var(--text-sm); }
.checknote b { color: var(--color-error); }
.checknote--good { background: var(--color-mint-soft); }
.checknote--good b { color: var(--color-success); }
@media (prefers-reduced-motion: reduce) {
  .cell.incheck { animation: none; }
}

/* ---------- promotion: right next to the destination square ---------- */
.promo-scrim { position: absolute; inset: 0; border: 0; padding: 0; background: oklch(20% 0.012 250 / 0.28); cursor: pointer; z-index: 2; }
.promo { position: absolute; z-index: 3; transform: translateX(-50%); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xs); width: min(62%, 15rem); padding: var(--space-2xs); border-radius: 14px; background: var(--color-ink); box-shadow: var(--shadow-ambient); animation: promoin var(--dur-short) var(--ease-out); }
@keyframes promoin { from { opacity: 0; } to { opacity: 1; } }
.promo__b { display: grid; justify-items: center; gap: 2px; min-height: 84px; padding: var(--space-xs) var(--space-2xs); border: 0; border-radius: 10px; background: var(--color-paper-2); font-size: var(--text-sm); font-weight: 700; cursor: pointer; line-height: 1.2; }
.promo__b--yes { background: var(--color-accent); }
.promo__b:active { transform: translateY(1px); }
.promo__b .pc { width: 40px; height: 44px; font-size: 22px; }

/* ---------- effect layer (docs/12-juice-design.md) ---------- */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: var(--z-toast); overflow: hidden; }
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-float { position: absolute; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; white-space: nowrap; padding: 0 var(--space-xs); border-radius: var(--radius-pill); }
.fx-float--gain { color: var(--color-paper); background: var(--color-success); }
.fx-float--loss { color: var(--color-paper); background: var(--color-muted); font-size: 1.15rem; }
.fx-call { position: fixed; left: 50%; top: 40%; padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-card); font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 11vw, 3.2rem); letter-spacing: 0.02em; white-space: nowrap; color: var(--color-paper); }
.fx-call--good { background: var(--color-success); }
.fx-call--bad { background: var(--color-error); }
.fx-call--gold { background: var(--color-accent); color: var(--color-ink); border: 3px solid var(--color-ink); }
.fx-fly { position: fixed; display: grid; place-items: center; }
.fx-fly .pc { font-size: clamp(14px, 5.1vw, 25px); }
.fx-say { position: fixed; max-width: 62vw; padding: 4px var(--space-sm); border-radius: 12px; background: var(--color-ink); color: var(--color-paper); font-size: var(--text-sm); font-weight: 700; line-height: 1.4; transform-origin: left center; }
.cell.fx-top { z-index: 5; overflow: visible; }
.board:has(.fx-top) { overflow: visible; }

/* ---------- characters ---------- */
.ava { display: inline-block; width: 30px; height: 33px; flex: none; }
.ava--think svg { animation: thinkbob 1100ms var(--ease-in-out) infinite alternate; }
@keyframes thinkbob { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.pill--btn { border: 0; cursor: pointer; min-height: 28px; }
.pill--btn[aria-pressed="false"] { color: var(--color-muted); }

/* ---------- result ---------- */
.result { position: fixed; inset: 0; z-index: var(--z-sticky); display: grid; place-items: center; padding: var(--space-md); background: oklch(20% 0.012 250 / 0.45); animation: resfade var(--dur-short) var(--ease-out); overflow-y: auto; }
@keyframes resfade { from { opacity: 0; } to { opacity: 1; } }
.res__card { width: min(100%, 26rem); display: grid; gap: var(--space-sm); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper); justify-items: center; text-align: center; animation: respop var(--dur-long) cubic-bezier(.2,1.3,.4,1); }
.res__card--flat { width: 100%; margin-top: var(--space-xl); background: var(--color-paper-2); }
@keyframes respop { from { transform: translateY(24px) scale(.94); } to { transform: none; } }
.result--win .res__card { border: 3px solid var(--color-ink); }
.res__ava { width: 84px; height: 92px; animation: avaIn 500ms cubic-bezier(.2,1.5,.4,1); }
.result--win .res__ava { animation: avaBow 900ms 200ms var(--ease-in-out); }
@keyframes avaIn { from { transform: scale(.5); } to { transform: scale(1); } }
@keyframes avaBow { 0%, 100% { transform: rotate(0); } 40%, 65% { transform: rotate(18deg) translateY(6px); } }
.res__line { font-weight: 700; padding: 2px var(--space-sm); border-radius: 12px; background: var(--color-paper-2); }
.res__title { font-size: var(--text-2xl); }
.result--win .res__title { font-size: var(--text-3xl); }
.res__stats { display: flex; gap: var(--space-lg); justify-content: center; font-variant-numeric: tabular-nums; }
.res__stats > div { display: grid; }
.res__stats small, .res__caps small { font-size: var(--text-xs); color: var(--color-muted); }
.res__stats b { font-size: var(--text-lg); }
.res__streak { animation: avaIn 500ms 500ms cubic-bezier(.2,1.8,.4,1) both; }
.res__caps { display: grid; gap: var(--space-2xs); justify-items: center; }
.res__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.res__p { width: 30px; height: 34px; opacity: 0; animation: capIn 280ms calc(350ms + var(--i) * 70ms) cubic-bezier(.2,1.5,.4,1) forwards; }
.res__p .pc { width: 100%; height: 100%; font-size: 17px; }
@keyframes capIn { from { opacity: 0; transform: translateY(-14px) scale(1.4); } to { opacity: 1; transform: none; } }
.btn--bounce { animation: ctaIn 500ms 500ms cubic-bezier(.2,1.6,.4,1) both; }
@keyframes ctaIn { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.learned { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); text-align: left; width: 100%; }
.learned li { display: grid; gap: 2px; justify-items: start; padding: var(--space-xs) var(--space-sm); border-radius: 12px; background: var(--color-paper); font-weight: 700; font-size: var(--text-sm); }
@media (prefers-reduced-motion: reduce) {
  .ava--think svg, .res__ava, .res__streak { animation: none; }
  .res__p { opacity: 1; animation: none; }
}

/* ---------- coordinates ---------- */
.bframe { display: grid; gap: 1px; }
.bfiles { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); padding-right: 16px; font-family: var(--font-mono); font-size: 11px; line-height: 1.2; color: var(--color-muted); text-align: center; }
.bmid { display: grid; grid-template-columns: minmax(0, 1fr) 14px; gap: 2px; }
.branks { display: grid; grid-template-rows: repeat(9, minmax(0, 1fr)); font-size: 11px; color: var(--color-muted); text-align: center; align-items: center; }

/* ---------- the coach ---------- */
.coach { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-sm); align-items: start; }
.coach__ava { width: 44px; height: 48px; }
.coach__body { display: grid; gap: var(--space-xs); padding: var(--space-sm) var(--space-md); border-radius: 4px 16px 16px 16px; background: var(--color-paper-2); min-height: 92px; align-content: space-between; }
.coach__say { font-weight: 700; line-height: 1.55; animation: sayin var(--dur-short) var(--ease-out); }
@keyframes sayin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.coach__dots { display: flex; gap: 3px; }
.coach__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-paper-3); }
.coach__dots i.on { background: var(--color-ink); }
.cell.hint { background: var(--color-mint); animation: hintpulse 800ms var(--ease-in-out) infinite alternate; }
@keyframes hintpulse { from { background: var(--color-mint-soft); } to { background: var(--color-mint); } }
@media (prefers-reduced-motion: reduce) { .cell.hint, .coach__say { animation: none; } }

/* ---------- review autoplay ---------- */
.iconbtn--light { background: var(--color-paper-2); color: var(--color-ink); flex: none; }
.iconbtn--light:active { background: var(--color-paper-3); }
.rv-play { flex: 1; font-variant-numeric: tabular-nums; }
.scrub__nav { gap: var(--space-2xs); }
