/* World Championship live page (blunderstop.app/live).
   Look and tokens from blunderstop.app's styles.css: printed chess book, a bit playful. No boxes; square edges,
   chequered dividers, hard offset shadows. Board colors as the app's brown board.
   Sizes: font sizes are --text steps, gaps are --space steps; other numbers only inside the board and for
   hairline details (borders, shadows, small markers). */
:root{
  --bg:#fbf7f2;--fg:#1d1716;--muted:#6b5f5d;--line:#e3d8d2;--accent:#d81b20;--accent-ink:#fff;
  --good:#1b7a2a;--bad:#d81b20;--warn:#b35c00;--hard:#1d1716;
  --flash:rgba(216,27,32,.14);--current:rgba(216,27,32,.06);
  --wash:rgba(251,247,242,.52);--warn-bg:#b35c00;--warn-ink:#fff;
  --display:ui-rounded,"SF Pro Rounded",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  --body:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  /* Type: 13 · 15 · 17 · 20 · 24 · 32 · up to 48 px */
  --text-xs:.8125rem;--text-s:.9375rem;--text-m:1.0625rem;--text-l:1.25rem;--text-xl:1.5rem;--text-2xl:2rem;
  --text-3xl:clamp(2rem,1.2rem + 4vw,3rem);
  /* Space: 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96 px */
  --space-1:.25rem;--space-2:.5rem;--space-3:.75rem;--space-4:1rem;--space-5:1.5rem;--space-6:2rem;
  --space-7:3rem;--space-8:4rem;--space-9:6rem;
}
@media (prefers-color-scheme:dark){:root{
  --bg:#141111;--fg:#f5eeea;--muted:#a99d9b;--line:#332c2a;--accent:#ff5a4b;--accent-ink:#1a0d0c;
  --good:#6ad874;--bad:#ff6b5d;--warn:#ffa24d;--hard:#000;
  --flash:rgba(255,90,75,.2);--current:rgba(255,90,75,.08);
  --wash:rgba(20,17,17,.5);--warn-bg:#ffa24d;--warn-ink:#1a0d0c;
}}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:var(--text-m)/1.55 var(--body);-webkit-font-smoothing:antialiased}
.wrap{--gutter:var(--space-5);max-width:1160px;margin:0 auto;padding:0 var(--gutter)}
a{color:var(--accent);text-underline-offset:3px;text-decoration-thickness:1.5px}
.skip{position:absolute;left:-999px}.skip:focus{left:var(--space-4);top:var(--space-2);background:var(--bg);padding:var(--space-1) var(--space-2);z-index:9}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
h1,h2,h3,.brand{font-family:var(--display)}
h1{font-size:var(--text-2xl);line-height:1.1;letter-spacing:-.02em;margin:var(--space-1) 0 var(--space-3);font-weight:800}
h2{font-size:var(--text-xl);line-height:1.25;letter-spacing:-.01em;margin:0 0 var(--space-3);font-weight:750}
p{margin:0 0 var(--space-4)}
.note{color:var(--muted);font-size:var(--text-s)}
.eyebrow{color:var(--accent);font-size:var(--text-xs);font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin:0}

/* Header and footer (as on blunderstop.app) */
header{display:flex;gap:var(--space-2) var(--space-4);align-items:center;justify-content:space-between;padding:var(--space-4) 0;border-bottom:2px solid var(--fg)}
.brand{display:flex;align-items:center;gap:var(--space-3);font-weight:800;font-size:var(--text-l);color:var(--fg);text-decoration:none}
.brand img{width:32px;height:32px;border-radius:7px}
header nav{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1) var(--space-5);font-size:var(--text-s)}
.lang{display:inline-flex;border:2px solid var(--fg)}
.lang button{border:0;background:none;color:var(--fg);cursor:pointer;padding:var(--space-1) var(--space-2);font:700 var(--text-xs)/1.6 var(--body)}
.lang button[aria-pressed=true]{background:var(--fg);color:var(--bg)}
footer{border-top:2px solid var(--fg);margin-top:var(--space-7);padding:var(--space-4) 0 var(--space-7);color:var(--muted);font-size:var(--text-s);display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);justify-content:space-between}
footer span{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-4)}
footer a{color:var(--muted);text-decoration:none}
footer a:hover{color:var(--fg)}
@media (max-width:640px){
  .wrap{--gutter:var(--space-4)}
  header{padding:var(--space-3) 0}
}
main{padding:var(--space-5) 0 0}

/* Buttons: square, with a hard shadow that you can press */
.button{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);min-height:44px;padding:var(--space-2) var(--space-4);
  border:2px solid var(--fg);border-radius:0;box-shadow:4px 4px 0 var(--fg);
  background:var(--accent);color:var(--accent-ink);font:inherit;font-size:var(--text-s);font-weight:700;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;
  transition:transform .08s,box-shadow .08s}
.button:hover{transform:translate(-1px,-1px);box-shadow:5px 5px 0 var(--fg)}
.button:active{transform:translate(3px,3px);box-shadow:1px 1px 0 var(--fg)}
.button.secondary{background:var(--bg);color:var(--fg)}
.button:disabled{opacity:.45;cursor:default;box-shadow:none;transform:none}
.link-button{border:0;background:none;padding:0;color:var(--accent);font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* Chequered divider */
.checker{height:12px;margin:var(--space-5) 0;background:repeating-conic-gradient(var(--fg) 0 25%,transparent 0 50%) 0 0/12px 12px;opacity:.85}

/* Match: title, score, games 1-14 */
.match{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:var(--space-3) var(--space-6)}
.match-title{min-width:0}
.score{display:flex;align-items:baseline;gap:var(--space-3);margin:0;font-family:var(--display);font-weight:800;font-size:var(--text-xl);line-height:1.2;font-variant-numeric:tabular-nums}
.score b{font-size:var(--text-2xl)}
.score .dash{color:var(--muted)}
.next{margin:var(--space-1) 0 0;color:var(--muted);font-size:var(--text-s)}
.games{list-style:none;margin:var(--space-4) 0 0;padding:0;display:grid;grid-template-columns:repeat(14,minmax(0,1fr));border:2px solid var(--fg)}
.games li+li{border-left:1px solid var(--line)}
.game-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:100%;min-height:56px;padding:var(--space-1) 0;border:0;background:none;color:var(--fg);cursor:pointer;font:inherit}
.game-btn b{font-family:var(--display);font-size:var(--text-l);line-height:1.1}
.game-btn span{font-size:var(--text-xs);color:var(--muted);line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums}
.game-btn:hover:not(:disabled){background:var(--current)}
.game-btn[aria-current=true]{background:var(--fg);color:var(--bg)}
.game-btn[aria-current=true] span{color:var(--bg)}
.game-btn:disabled{cursor:default;color:var(--muted);opacity:.55}
.game-btn .is-live{color:var(--accent);font-weight:700;display:inline-flex;align-items:center;gap:3px}
.game-btn .is-live::before{content:"";width:7px;height:7px;background:currentColor}
.game-btn[aria-current=true] .is-live{color:var(--accent)}
@media (prefers-reduced-motion:no-preference){.is-live::before{animation:blink 1.6s steps(2) infinite}}
@keyframes blink{50%{opacity:.2}}
@media (max-width:800px){.games{grid-template-columns:repeat(7,minmax(0,1fr))}.games li:nth-child(8){border-left:0}.games li:nth-child(n+8){border-top:1px solid var(--line)}}

/* Two columns: board left, commentary right; one column below 860px */
/* The board column is exactly as wide as the board, the text sits right next to it */
.live{display:grid;grid-template-columns:auto minmax(320px,1fr);gap:var(--space-6);align-items:start;margin-top:var(--space-6)}
.feed-col{max-width:40rem}
.board-col{position:sticky;top:var(--space-4);min-width:0}
@media (max-width:860px){
  /* One column as a block (not a grid), so the board can stick to the top over the whole commentary */
  .live{display:block;margin-top:var(--space-5)}
  .feed-col{margin-top:var(--space-5)}
  .board-col{position:static}
}
.board-area{width:max(300px,min(calc(100svh - 330px),680px,calc(100vw - 27rem)))}
@media (max-width:860px){.board-area{width:min(100% - 6px,620px);min-width:0}}
/* Phones, both views (WM-020/022/023): small board on the left, players, legend and links next to it, move bar below.
   Board width ≈ 38.2 % of the screen height minus the move bar, so the board block takes about the smaller golden
   section and the text below the larger one. While a variation is shown the column layout above applies. */
@media (max-width:860px){
  .live{--bw:clamp(150px,38.2svh - 76px,55vw)}
  /* Whole-pixel squares: board width (without its 2px border) a multiple of 8 */
  @supports (width:round(down,10px,8px)){.live{--bw:calc(round(down,clamp(150px,38.2svh - 76px,55vw) - 4px,8px) + 4px)}}
  .live .board-area{display:grid;width:100%;column-gap:var(--space-3);
    grid-template-columns:var(--bw) minmax(0,1fr);grid-template-rows:auto 1fr auto auto;
    grid-template-areas:"board top" "board links" "board bottom" "legend legend"}
  .live .board-row{grid-area:board}
  .live .evalbar,.live .eval-label,.live .back-live{display:none}
  .live #player-top{grid-area:top}
  .live #player-bottom{grid-area:bottom}
  .live .player{flex-wrap:wrap;gap:0 var(--space-2);margin:0;padding-left:0}
  .live .player .elo,.live .player .think{display:none}
  /* Name takes its own line, the clock always goes below it (a running clock squeezed "Gukesh" to "G", 30.11.2026) */
  .live .player .name{flex:1 1 calc(100% - 24px - var(--space-2))}
  .live .player .clock{flex-basis:100%;margin-left:0;padding:var(--space-1) 0;font-size:var(--text-s)}
  .live .player.to-move .clock{padding:var(--space-1) var(--space-2);flex-basis:auto}
  /* Jan, 30.11.2026: "Drohungslabel links unters Brett". The line keeps its height when a move has no arrow, so the
     board block does not jump while swiping through the moves. */
  .live .legend{grid-area:legend;margin-top:var(--space-2);height:1.25rem;align-items:center;flex-wrap:nowrap;overflow:hidden;white-space:nowrap}
  .live .legend.empty{display:flex;visibility:hidden}
  .live #game-links{grid-area:links;flex-direction:column;gap:var(--space-1);margin:var(--space-2) 0;font-size:var(--text-xs)}
  .live .move-bar{grid-area:bar;margin-top:var(--space-1)}
  /* A variation keeps this layout (Jan, 30.11.2026, WM-043: "Zwischen diesen beiden Ansichten sind zu viele UI
     änderungen"): players, links and board stay; the line stands in the legend row, its steps in the move bar's
     places (« ‹ move › » and ✕ where the flip button is). */
  .live.varying .legend,.live.varying .var-note,.live.varying .var-links{display:none}
  .live.varying .var-bar{display:contents}
  .live.varying .var-head{grid-area:legend;margin-top:var(--space-2);min-height:1.25rem;align-items:center;font-size:var(--text-xs)}
  .live.varying .var-chip{line-height:1.25rem}
  .live.varying .var-actions{grid-area:bar;margin-top:var(--space-1);gap:var(--space-1)}
  .live.varying .var-edge{display:block}
  .live.varying .var-pos{display:flex}
  .live.varying .var-back{margin-left:var(--space-1)}
  /* Trial (Jan, 2.12.2026): the move bar (and the steps of a variation in its place) sits at the bottom of the
     screen, within thumb reach; the board block above keeps only board, players, links and the legend line. */
  .live .move-bar,.live.varying .var-actions{position:fixed;left:0;right:0;bottom:0;z-index:20;margin:0;
    padding:var(--space-2) var(--gutter) calc(var(--space-2) + env(safe-area-inset-bottom));
    background:var(--bg);border-top:2px solid var(--fg)}
  footer{padding-bottom:calc(var(--space-7) + 64px + env(safe-area-inset-bottom))}
}
/* ... and the board block stays at the top, only the text scrolls (not on very low screens, e.g. landscape) */
@media (max-width:860px) and (min-height:500px){
  .live .board-col{position:sticky;top:0;z-index:5;background:var(--bg);margin:0 calc(-1 * var(--gutter));padding:var(--space-2) var(--gutter);border-bottom:2px solid var(--fg)}
}
.player{display:flex;align-items:center;gap:var(--space-2) var(--space-3);margin:var(--space-2) 0;min-height:32px;padding-left:calc(14px + var(--space-2))}
.player::before{content:"";flex:none;width:14px;height:14px;border:2px solid var(--fg);background:var(--side)}
.player[data-side=w]{--side:#fff}.player[data-side=b]{--side:#2b2b2e}
.player .name{font-family:var(--display);font-weight:750;font-size:var(--text-m);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.player .elo{color:var(--muted);font-size:var(--text-s);font-variant-numeric:tabular-nums}
.player .clock{margin-left:auto;font:700 var(--text-m)/1 var(--display);font-variant-numeric:tabular-nums;padding:var(--space-1) var(--space-2);border:2px solid transparent}
.player.to-move .clock{border-color:var(--fg);background:var(--fg);color:var(--bg)}
.player .name{flex:0 1 auto}
/* WM-028: quick taps on ‹ › must not double-tap-zoom the page in Safari (pinch zoom stays) */
button,a,.card{touch-action:manipulation}
/* WM-029: stopwatch of the player to move, right of the running clock (also on phones, where the past think time hides) */
.player .think.running{order:5;color:var(--fg);font-weight:700}
.live .player .think.running{display:inline;font-size:var(--text-s)}
.player .think{color:var(--muted);font-size:var(--text-xs);font-variant-numeric:tabular-nums;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
@media (max-width:480px){.think-word{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}}
.board-row{display:flex;gap:var(--space-2);align-items:stretch}
.board-row .board{flex:1;min-width:0;align-self:start} /* never stretched taller than wide by a taller column next to it (WM-028) */

/* Evaluation bar: white from below, black from above */
.evalbar{position:relative;flex:none;width:16px;border:2px solid var(--fg);background:#2b2b2e;overflow:hidden}
.evalbar .white{position:absolute;left:0;right:0;bottom:0;height:var(--white,50%);background:#fff;transition:height .35s ease}
.live.flipped .evalbar .white{bottom:auto;top:0}
.evalbar::after{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:var(--accent);opacity:.7}
.eval-label{font:700 var(--text-xs)/1 var(--display);font-variant-numeric:tabular-nums;color:var(--muted);margin:0;min-width:3.5em}

/* Board: a printed diagram with a hard shadow (blunderstop.app) */
/* Rows as fixed as the columns: with auto rows (one square high each) Safari rounded the row heights and left white
   hairlines between the ranks (iPhone, 30.11.2026). The board colour behind the squares hides any rest. */
.board{position:relative;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));aspect-ratio:1;background:#b58863;border:2px solid var(--fg);box-shadow:6px 6px 0 var(--hard);touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
@media (prefers-color-scheme:dark){.board{box-shadow:6px 6px 0 var(--accent)}}
.sq{position:relative;border:0;padding:0;margin:0;min-width:0;aspect-ratio:1;display:block;cursor:default;font:inherit;-webkit-tap-highlight-color:transparent}
.sq.light{background:#f0d9b5}.sq.dark{background:#b58863}
.sq.last::before{content:"";position:absolute;inset:0;background:rgba(155,199,0,.41)}
.co{position:absolute;font-size:clamp(9px,1.9vw,12px);font-weight:700;line-height:1;pointer-events:none}.co.r{left:4px;top:4px}.co.f{right:4px;bottom:3px}
.sq.light .co{color:#b58863}.sq.dark .co{color:#f0d9b5}
.sq .pc{position:absolute;inset:3%;width:94%;height:94%;pointer-events:none;filter:drop-shadow(0 1px 1px rgba(0,0,0,.25))}
.pc-body{stroke:#1c1c1f;stroke-width:24;stroke-linejoin:round}
.pc-w .pc-body{fill:#fff}.pc-b .pc-body{fill:#2b2b2e}
.pc-w .pc-dot{fill:#1c1c1f}.pc-b .pc-dot{fill:#e6e6e6}
/* Arrows, colors as in the app: best green, game move red, try orange, reply blue */
.arrows{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}
.arrow line{stroke-width:.17;stroke-linecap:round;stroke:currentColor}
.arrow polygon{fill:currentColor}
.arrow{opacity:.82}
.arrow-best{color:#15781b}.arrow-played{color:#d0191f}.arrow-try{color:#e8810a}.arrow-reply{color:#1d6fd8}
.legend.empty{display:none}
/* Jan, 30.11.2026: coordinates off by default, a small switch below the commentary turns them on (WM-042) */
.live:not(.coords) .board .co{display:none}
.prefs{margin:var(--space-3) 0 0}
.pref-btn{border:0;background:none;padding:var(--space-2) 0;color:var(--muted);font:inherit;font-size:var(--text-xs);cursor:pointer}
.pref-btn::before{content:"☐ "}
.pref-btn[aria-pressed=true]::before{content:"☑ "}
.pref-btn:hover{color:var(--fg)}
.legend{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-4);font-size:var(--text-xs);color:var(--muted);margin:var(--space-2) 0 0}
.legend-item{display:inline-flex;align-items:center;gap:var(--space-2)}
.legend-item::before{content:"";width:14px;height:4px}
.lg-best::before{background:#15781b}.lg-played::before{background:#d0191f}.lg-try::before{background:#e8810a}.lg-reply::before{background:#1d6fd8}

/* Variation: a line from the text on the board. The board fades (pieces stay clear), its frame turns dashed,
   a bar says "Variation" and leads back to the game. */
.board.variation{border-style:dashed;box-shadow:6px 6px 0 var(--line)}
.board.variation::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:var(--wash)}
.board.variation .pc{z-index:2}
.board.variation .sq.last::before{z-index:2;background:rgba(232,129,10,.5)}
.arrow-line{color:#e8810a}
.live.varying .evalbar{opacity:.3}
@media (min-width:861px){.live.varying #link-analysis{display:none}}
.var-bar{margin:var(--space-3) 0 0;display:flex;flex-direction:column;gap:var(--space-2)}
.var-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-1) var(--space-2);margin:0;font-size:var(--text-s)}
.var-chip{flex:none;font:700 var(--text-xs)/1.5 var(--body);letter-spacing:.08em;text-transform:uppercase;padding:0 var(--space-2);background:var(--warn-bg);color:var(--warn-ink)}
.var-line{min-width:0;font-weight:600;color:var(--muted);overflow-wrap:anywhere}
.var-line .now{color:var(--fg);font-weight:800;text-decoration:underline;text-decoration-color:#e8810a;text-decoration-thickness:2.5px;text-underline-offset:3px}
.var-line .later{opacity:.75}
.var-note{margin:0;font-size:var(--text-xs);color:var(--muted)}
.var-actions{display:flex;align-items:center;gap:var(--space-2)}
.var-back{position:relative;margin-left:auto;font-size:var(--text-m)}
.var-back.has-new::after{content:"";position:absolute;top:-5px;right:-5px;width:10px;height:10px;border-radius:50%;background:var(--accent,#d81b20);border:2px solid var(--bg)}
@media (prefers-reduced-motion:no-preference){.var-back.has-new::after{animation:blink 1.6s steps(2) infinite}}
.var-links{margin:0}
/* « » and the move between ‹ ›: only in the phone layout, where the steps take the move bar's places */
.var-edge,.var-pos{display:none}

/* Move navigation */
.move-bar{display:flex;align-items:center;gap:var(--space-2);margin-top:var(--space-4)}
.mb-btn{flex:none;width:44px;height:44px;border:2px solid var(--fg);background:var(--bg);color:var(--fg);font:700 var(--text-l)/1 var(--display);cursor:pointer}
.mb-btn:disabled{opacity:.35;cursor:default}
.mb-btn:not(:disabled):hover{background:var(--fg);color:var(--bg)}
.mb-flip{margin-left:var(--space-2)}
.mb-flip[aria-pressed=true]{background:var(--fg);color:var(--bg)}
.mb-pos{flex:1;min-width:0;text-align:center;font:700 var(--text-m)/1.2 var(--display);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mb-pos>span{overflow:hidden;text-overflow:ellipsis}
.mb-eval{display:none}
@media (max-width:860px){
  .move-bar{margin-top:var(--space-3)}
  .mb-pos{display:flex;flex-direction:column;align-items:center}
  .mb-eval{display:block;font:700 var(--text-xs)/1.3 var(--display);color:var(--muted);font-variant-numeric:tabular-nums}
  .eval-label{display:none}
  .move-bar{gap:var(--space-1)}
  .mb-flip{margin-left:var(--space-1)}
}
/* Very narrow: the number alone under the move ("+0,35"), the word stays for screen readers */
@media (max-width:420px){.mb-eval-word{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}}
.back-live{margin-top:var(--space-4);width:100%}
.links{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-5);margin:var(--space-4) 0 0;font-size:var(--text-s)}
.links a{font-weight:700;text-decoration:none}
.links a::after{content:" ↗"}
.links a:hover{text-decoration:underline}
/* Jan, 30.11.2026: "die links zumindest mal kleiner oder in unauffälligere Schrift, das viele rot da ist zu viel" */
#game-links a,.var-links a{color:var(--muted);font-weight:500}

/* Commentary column */
.feed-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:var(--space-2) var(--space-4)}
.feed-head h2{margin:0}
/* List order: only where the list is shown (desktop, phone in "List") */
.feed-order{margin-left:auto;min-height:32px;padding:var(--space-1) var(--space-3);border:2px solid var(--fg);background:var(--bg);color:var(--fg);font:700 var(--text-xs)/1.2 var(--body);cursor:pointer;white-space:nowrap}
.feed-order:hover{background:var(--fg);color:var(--bg)}
.live.strip-mode .feed-order{display:none}
.conn{font-size:var(--text-xs);font-weight:700;color:var(--warn)}
.how{margin:var(--space-3) 0 var(--space-4);font-size:var(--text-s);border-bottom:1px solid var(--line);padding-bottom:var(--space-3)}
.how summary{cursor:pointer;color:var(--fg);font-weight:700}
.how ol{margin:var(--space-2) 0 0;padding-left:var(--space-5);color:var(--muted)}
.how li+li{margin-top:var(--space-1)}
.badge-key{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-4);margin:var(--space-3) 0 0}
.admin-bar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-4);margin:0 0 var(--space-4);padding:var(--space-2) var(--space-3);border:2px dashed var(--accent);font-size:var(--text-s)}
.admin-bar b{color:var(--accent)}
.admin-bar label{display:inline-flex;align-items:center;gap:var(--space-2);cursor:pointer}
.admin-bar .link-button{margin-left:auto}
.notice{font-size:var(--text-s);color:var(--warn);font-weight:600;margin:0 0 var(--space-3)}
.feed{list-style:none;margin:0;padding:0}

/* View on phones: "move by move" (strip) or "list". The toggle only exists below 861px. */
.view-toggle{display:none}
@media (max-width:860px){
  .view-toggle{display:inline-flex;margin-left:auto;border:2px solid var(--fg)}
  .view-toggle button{border:0;background:none;color:var(--fg);cursor:pointer;min-height:32px;padding:var(--space-1) var(--space-3);font:700 var(--text-xs)/1.2 var(--body)}
  .view-toggle button[aria-pressed=true]{background:var(--fg);color:var(--bg)}
  .feed-head{align-items:center}
  /* Strip: the text of the move on the board right under the board; everything else follows it */
  .live.strip-mode .feed-col{display:flex;flex-direction:column;margin-top:var(--space-3)}
  .live.strip-mode .notice{order:1}
  .live.strip-mode .feed{order:2}
  .live.strip-mode .empty{order:2}
  /* Heading (for screen readers) and toggle under the strip, so nothing stands between board and text */
  .live.strip-mode .feed-head{order:3;margin-top:var(--space-3)}
  .live.strip-mode .feed-head h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .live.strip-mode .how{order:5;margin-top:var(--space-5)}
  .live.strip-mode .prefs{order:7}
  .live.strip-mode .admin-bar{order:6}
}
/* One card per move, side by side; the neighbours peek in at the edges. Height: the card in view (app.js). */
.feed.strip{display:flex;align-items:flex-start;gap:var(--space-2);overflow-x:auto;overflow-y:hidden;
  margin:0 calc(-1 * var(--gutter));padding:0 var(--gutter);scroll-padding:0 var(--gutter);
  scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;transition:height .2s ease}
.feed.strip::-webkit-scrollbar{display:none}
.feed.strip .card{flex:0 0 calc(100% - var(--space-4));scroll-snap-align:center;scroll-snap-stop:always;
  border:2px solid var(--line);padding:var(--space-3) var(--space-4)}
.feed.strip .card:hover{background:none}
.feed.strip .card[aria-current=true]{border-color:var(--fg);background:none}
.feed.strip .card.lvl-3{padding-top:var(--space-5)}
.feed.strip .card.lvl-3::before{left:0}
@media (prefers-reduced-motion:reduce){.feed.strip{transition:none}}
.feed.only-ai .card:not(.st-ai){display:none}
.empty{color:var(--muted);font-size:var(--text-s)}

/* Comment card: no box; separated by hairlines, key moments get a chequered strip */
.card{position:relative;padding:var(--space-4) var(--space-3);border-bottom:1px solid var(--line);border-left:4px solid transparent;cursor:pointer}
.card:hover{background:var(--current)}
.card[aria-current=true]{border-left-color:var(--accent);background:var(--current)}
.card-head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1) var(--space-2);margin-bottom:var(--space-2)}
.card-move{border:0;background:none;padding:0;color:var(--fg);cursor:pointer;font:750 var(--text-m)/1.3 var(--display);text-align:left}
.card-move:hover{color:var(--accent)}
.status-badge{margin-left:auto;display:inline-flex;align-items:center;gap:var(--space-1);font-size:var(--text-xs);font-weight:700;color:var(--muted);white-space:nowrap}
.status-badge::before{content:"";width:9px;height:9px;border:1.5px solid currentColor}
.st-approved .status-badge{color:var(--good)}.st-approved .status-badge::before{background:currentColor}
.st-edited .status-badge{color:var(--accent)}.st-edited .status-badge::before{background:currentColor}
.st-hidden .status-badge{color:var(--bad)}
.st-hidden .card-text{text-decoration:line-through;opacity:.6}
.card-text{margin:0;overflow-wrap:anywhere}
.card-foot{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-3);margin-top:var(--space-3);font-size:var(--text-xs);color:var(--muted)}
.fb{display:inline-flex;gap:var(--space-2);margin-left:auto}
/* Feedback (WM-021): two quiet thumbs in one color, no counters; filled and a short pop once chosen */
.fb button{display:inline-grid;place-items:center;width:36px;height:36px;padding:0;border:0;background:none;color:var(--muted);cursor:pointer}
.fb button:hover:not(:disabled),.fb button:focus-visible{color:var(--fg)}
.fb button:disabled{cursor:default;opacity:.3}
.fb button[aria-pressed=true]{color:var(--fg)}
.thumb{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.fb-down .thumb{transform:rotate(180deg)}
.fb button[aria-pressed=true] .thumb{fill:currentColor}
@media (prefers-reduced-motion:no-preference){
  .fb button.pop .thumb{animation:thumb-pop .45s cubic-bezier(.3,1.6,.5,1)}
  .fb-down.pop .thumb{animation-name:thumb-pop-down}
}
@keyframes thumb-pop{0%{transform:scale(1)}40%{transform:scale(1.35) rotate(-8deg)}100%{transform:scale(1)}}
@keyframes thumb-pop-down{0%{transform:rotate(180deg) scale(1)}40%{transform:rotate(180deg) scale(1.35) rotate(-8deg)}100%{transform:rotate(180deg) scale(1)}}
.fb-why{margin-top:var(--space-3);padding-top:var(--space-3);border-top:1px dashed var(--line);display:flex;flex-direction:column;gap:var(--space-3);cursor:auto}
.fb-q{display:flex;align-items:center;justify-content:space-between;margin:0;font-size:var(--text-xs);font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.fb-close{border:0;background:none;color:var(--muted);font-size:var(--text-m);line-height:1;width:32px;height:32px;cursor:pointer}
.fb-close:hover{color:var(--fg)}
.fb-chips{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.fb-chip{min-height:32px;padding:var(--space-1) var(--space-3);border:1.5px solid var(--line);background:var(--bg);color:var(--fg);font:600 var(--text-xs)/1.2 var(--body);cursor:pointer}
.fb-chip:hover{border-color:var(--fg)}
.fb-chip[aria-pressed=true]{border-color:var(--fg);background:var(--fg);color:var(--bg)}
.fb-text{display:flex;flex-direction:column;gap:var(--space-2)}
.fb-text label.field{display:flex;flex-direction:column;gap:var(--space-1);font-size:var(--text-xs);font-weight:700;letter-spacing:.06em;text-transform:uppercase}
textarea{font:inherit;font-size:var(--text-s);text-transform:none;letter-spacing:normal;font-weight:400;padding:var(--space-2);border:2px solid var(--fg);border-radius:0;background:var(--bg);color:var(--fg);width:100%;resize:vertical;min-height:4.5em}
textarea:focus{outline:none;box-shadow:4px 4px 0 var(--accent)}
.form-actions{display:flex;flex-wrap:wrap;gap:var(--space-3);align-items:center}
.fb-msg{margin:var(--space-2) 0 0;font-size:var(--text-s);font-weight:600;color:var(--good)}
.fb-msg.error{color:var(--bad)}

/* Level 0: one compact, muted line; level 3: a key moment */
.card.lvl-3{padding-top:var(--space-5)}
.card.lvl-3::before{content:"";position:absolute;left:-4px;right:0;top:0;height:8px;background:repeating-conic-gradient(var(--fg) 0 25%,transparent 0 50%) 0 0/8px 8px;opacity:.85}
.card.lvl-3 .card-move{font-size:var(--text-l)}
.card.lvl-3 .card-text{font-size:var(--text-m);line-height:1.6}
@media (prefers-reduced-motion:no-preference){.card.flash{animation:flash 2.2s ease-out}}
@media (prefers-reduced-motion:reduce){.card.flash{outline:2px solid var(--accent);outline-offset:-2px}}
@keyframes flash{0%,25%{background:var(--flash)}100%{background:transparent}}

/* Moves in the text: tap or hover shows the position (blunderstop.app's note-move) */
.note-move{border:0;margin:0;padding:0 2px;background:none;color:var(--accent);font:inherit;font-weight:700;cursor:pointer;
  text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px;white-space:nowrap}
.note-move:hover{text-decoration-thickness:2.5px}
.note-move[aria-current=true]{background:var(--accent);color:var(--accent-ink);text-decoration:none}

/* Admin */
.admin{margin-top:var(--space-3);padding-top:var(--space-3);border-top:1px dashed var(--accent);display:flex;flex-direction:column;gap:var(--space-2);font-size:var(--text-s);cursor:auto}
.admin-actions{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.admin-actions button{min-height:32px;padding:var(--space-1) var(--space-3);border:2px solid var(--fg);background:var(--bg);color:var(--fg);font:700 var(--text-xs)/1.2 var(--body);cursor:pointer}
.admin-actions button:hover{background:var(--fg);color:var(--bg)}
.admin-actions .approve{border-color:var(--good);color:var(--good)}
.admin-actions .hide{border-color:var(--bad);color:var(--bad)}
.admin-fb{color:var(--muted);font-size:var(--text-xs);margin:0}
.admin-fb ul{margin:var(--space-1) 0 0;padding-left:var(--space-4)}
.admin-edit{display:flex;flex-direction:column;gap:var(--space-2)}
.admin-edit label{display:flex;flex-direction:column;gap:var(--space-1);font-size:var(--text-xs);font-weight:700}
.admin-ai{font-size:var(--text-xs);color:var(--muted);margin:0}
