/* satranc.app — the stylesheet (v3 "Aydınlık", 2026-09-15; the owner's canvas, UI/site-redesign).
   The app's light chrome on a calm page: a rail of six words on the left, one column of
   content, 15 px text on the rebuilt pages, 44 px controls, r8 chips · r14 controls ·
   r20 cards, neutral words. Phones: the rail becomes a bottom bar, boards run edge to edge.
   The v2 classes (13 px, panels, three columns) still dress the pages not yet rebuilt
   and leave with them. Type: Bricolage Grotesque for titles, Manrope for text,
   JetBrains Mono for numbers. */

:root{
  color-scheme:light;
  --ground:#EFEDE8; --bg-image:none;
  --panel:#FCFBF9; --panel2:#F8F7F4; --dialog:#FCFBF9; --surface:var(--panel); --surface2:var(--panel2);
  --ink:#1C2431; --ink3:#4A5462; --meta:#67707F; --dim:#8A919D; --hair:rgba(28,36,49,.12); --hair2:rgba(28,36,49,.07);
  --accent:#3A5AB0; --accent-ink:#2E4890; --tint:rgba(58,90,176,.12); --on-accent:#F7F9FE;
  --win:#3F6B2E; --loss:#93483E; --warn:#8A5C17;
  --sq-l:#E2E6EB; --sq-d:#7E8895;
  --sans:"Manrope",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --disp:"Bricolage Grotesque","Manrope",system-ui,sans-serif;
  --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --board:min(616px, calc(100vh - 210px)); /* THE board: one size on every board page (owner, 2026-09-15) — desktops and tablets; phones take the full width */
  /* the aliases the board island reads (board.css) */
  --sq-light:var(--sq-l); --sq-dark:var(--sq-d); --hl:var(--accent); --card:var(--dialog); --line:var(--hair);
  --fill:#E4E1DA; --body:var(--sans); --mut2:var(--dim); --muted:var(--meta); --ink2:var(--meta);
  --radius:6px; --radius-lg:8px; --display:var(--disp);
}

/* ---- base ---- */
*{box-sizing:border-box}
[hidden]{display:none!important}
html{background:var(--ground)}
body{margin:0;min-height:100vh;padding-left:88px;background:var(--ground);color:var(--ink);font:400 13px/1.45 var(--sans);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
a:hover{color:var(--accent-ink)}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
a.q{cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
a,button,label,ch-board,ch-replay{-webkit-tap-highlight-color:transparent}
h1,h2,h3,h4,p,ul,ol,figure{margin:0}
ul,ol{padding:0;list-style:none}
img{max-width:100%}
summary{list-style:none;cursor:pointer}
summary::-webkit-details-marker{display:none}
.num,.mono{font-variant-numeric:tabular-nums}
.mono{font-family:var(--mono)}
.inline{display:inline}
.meta{color:var(--meta);font-size:12px}
.dim{color:var(--dim)}
.label{font:600 10.5px/1 var(--sans);letter-spacing:.09em;text-transform:uppercase;color:var(--meta)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ico{display:inline-grid;place-items:center;flex:none}
.ico svg{width:18px;height:18px;display:block}

/* ---- chrome (2026-09-15): the rail on desktop; the top bar and the tab bar on phones ---- */
.wrap{width:100%;max-width:1232px;margin:0 auto;padding:0 48px}
.page{display:flex;flex-direction:column;min-height:100vh}
main.wrap{flex:1;padding-top:36px}
.rail{position:fixed;left:0;top:0;bottom:0;width:88px;display:flex;flex-direction:column;align-items:center;padding:18px 0 14px;background:var(--panel2);border-right:1px solid var(--hair);z-index:20}
.rail .mark{display:grid;place-items:center;width:40px;height:40px}
.rail .mark img{display:block;border-radius:9px}
.rail-items{display:flex;flex-direction:column;gap:2px;margin-top:14px}
.rail-me{margin-top:auto}
.rail a:not(.mark),.tabbar a{display:flex;flex-direction:column;align-items:center;gap:6px;width:64px;padding:6px 0 8px;color:var(--meta);font:600 10px/1 var(--sans);letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.rail a .ico,.tabbar a .ico{width:40px;height:40px;border-radius:12px;color:var(--ink3)}
.rail a .ico svg,.tabbar a .ico svg{width:22px;height:22px}
.rail a:hover,.tabbar a:hover{color:var(--ink)}
.rail a.on,.tabbar a.on{color:var(--accent-ink)}
.rail a.on .ico,.tabbar a.on .ico{background:var(--tint);color:var(--accent-ink)}
.topbar,.tabbar{display:none}
.topbar .mark{display:inline-flex;align-items:center;gap:9px;font:600 17px/1 var(--disp);letter-spacing:-.01em;color:var(--ink)}
.topbar .mark img{display:block;border-radius:7px}
.topme{font:600 13px/1 var(--sans);color:var(--accent-ink)}
.av{display:inline-grid;place-items:center;flex:none;border-radius:50%;background:var(--tint);color:var(--accent-ink);font:600 11px/1 var(--sans);width:24px;height:24px;overflow:hidden}
.av img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.av.m{width:32px;height:32px;font-size:13px}
.av.l{width:40px;height:40px;font-size:15px}
.av.xl{width:72px;height:72px;font-size:26px}
.crumb{font-size:12px;color:var(--meta);margin-bottom:12px}
.crumb a:hover{color:var(--ink)}

/* ---- words ---- */
.title{font:600 26px/1.15 var(--disp);letter-spacing:-.015em;text-wrap:balance}
.title.h{font-size:26px}
.thead{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:8px 0 16px}
.thead p{font-size:13px;color:var(--meta);margin-top:4px}
.lead{font-size:13px;line-height:1.5;color:var(--meta);margin:4px 0 16px;max-width:64ch}
.intro{font-size:13px;line-height:1.5;color:var(--meta);max-width:72ch;margin:0 0 16px}
.hint{font-size:12px;color:var(--meta);margin:8px 0 0}
.hint a,.q,.link{color:var(--accent-ink);font-weight:600}
.link{font-size:12px}
.refusal{color:var(--loss);font-weight:500;margin-bottom:12px}
.ok{color:var(--win);font-weight:500;margin-bottom:12px}
.draft{color:var(--warn);font-size:12px;font-weight:600;margin-bottom:12px}
.chip{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:5px;background:var(--tint);color:var(--accent-ink);font:600 11px/1 var(--sans);white-space:nowrap}
.chip.live{background:rgba(111,203,142,.16);color:var(--win)}
.tag{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:5px;background:var(--panel2);border:1px solid var(--hair);color:var(--meta);font:500 11px/1 var(--sans);white-space:nowrap}
.tags{display:flex;flex-wrap:wrap;gap:6px}
.tags a,.tags span{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:5px;background:var(--panel2);border:1px solid var(--hair);color:var(--meta);font:500 11px/1 var(--sans)}
.tags a:hover{border-color:var(--accent);color:var(--accent-ink)}
.delta{font-family:var(--mono);font-weight:600;font-variant-numeric:tabular-nums}
.delta.up{color:var(--win)}
.delta.down{color:var(--loss)}
.turn{color:var(--win);font-weight:600}

/* ---- controls ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:30px;padding:0 12px;border-radius:6px;background:var(--accent);color:var(--on-accent);font:600 12.5px/1 var(--sans);white-space:nowrap;cursor:pointer}
.btn:hover{background:var(--accent-ink);color:var(--on-accent)}
.btn.big{height:36px;padding:0 16px;font-size:13px}
.btn.w{width:100%}
.ghost,.btn2,.pill,.verb{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:30px;padding:0 11px;border-radius:6px;border:1px solid var(--hair);color:var(--ink);font:600 12.5px/1 var(--sans);white-space:nowrap;background:var(--panel2);cursor:pointer}
.ghost:hover,.btn2:hover,.pill:hover,.verb:hover{border-color:var(--accent);color:var(--accent-ink)}
.ghost.w{width:100%}
.ghost.big{height:36px}
.pill{height:26px;font-size:12px}
.verb svg{width:15px;height:15px}
.linkbtn{font:600 12px var(--sans);color:var(--meta);padding:4px;cursor:pointer}
.linkbtn:hover{color:var(--ink)}
.seg{display:inline-flex;flex-wrap:wrap;gap:2px;padding:2px;border-radius:6px;background:var(--hair2)}
.seg label{position:relative}
.seg input{position:absolute;inset:0;opacity:0;cursor:pointer}
.seg span{display:inline-flex;align-items:center;height:26px;padding:0 9px;border-radius:5px;font:600 11.5px/1 var(--sans);color:var(--meta)}
.seg input:checked+span{color:var(--ink);background:var(--panel);box-shadow:0 1px 2px rgba(0,0,0,.3)}
.seg input:focus-visible+span{outline:2px solid var(--accent)}
.field,.form input:not([type=checkbox]),.form select,.form textarea,.searchform input,.sharebox input,.composer textarea{border:1px solid var(--hair);border-radius:6px;background:var(--ground);color:var(--ink);padding:0 10px;font:400 12.5px var(--sans)}
.form input:not([type=checkbox]),.form select,.searchform input,.sharebox input{height:34px}
.form textarea,.composer textarea{padding:8px 10px;line-height:1.5;resize:vertical;width:100%}
.form input:focus,.form select:focus,.form textarea:focus,.searchform input:focus,.sharebox input:focus,.composer textarea:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
.form form{display:flex;flex-direction:column;gap:12px}
.form label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600;color:var(--meta)}
.form .check{flex-direction:row;align-items:center;gap:8px;font-weight:400;color:var(--ink)}
.form .check a{color:var(--accent-ink);font-weight:600}
.form .btn{align-self:flex-start}
.form .two{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:12px}
.bar2{height:6px;border-radius:3px;background:var(--hair2);overflow:hidden}
.bar2 i{display:block;height:100%;background:var(--accent)}
.tabs{display:flex;gap:2px;border-bottom:1px solid var(--hair);padding:0 8px}
.tabs a,.tabs span{display:inline-flex;align-items:center;height:36px;padding:0 10px;font:600 12.5px/1 var(--sans);color:var(--meta);border-bottom:2px solid transparent;margin-bottom:-1px}
.tabs a.on,.tabs span.on{color:var(--ink);border-color:var(--accent)}
.tabs a:hover{color:var(--ink)}

/* ---- panels, rows, tables ---- */
.panel{display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--hair);border-radius:8px;overflow:hidden}
.ph{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:38px;padding:0 12px;border-bottom:1px solid var(--hair);font:600 13px/1 var(--sans)}
.ph .q,.ph .link{font-size:11px}
.ph .meta{font-weight:400}
.pb{padding:12px}
.pb.tight{padding:0}
.stack{display:flex;flex-direction:column;gap:16px}
.rows>li,.row{display:flex;align-items:center;gap:10px;min-height:36px;padding:6px 12px;border-bottom:1px solid var(--hair2);font-size:12.5px}
.rows>li:last-child,.row:last-child{border-bottom:0}
.rows .grow,.row .grow{flex:1;min-width:0}
.rows .name,.row .name{font-weight:500}
.rows .name b,.row .name b,.r{font:400 12px var(--mono);font-variant-numeric:tabular-nums;color:var(--meta);margin-left:4px}
.rows .r{margin:0}
.rows .sub,.row .sub{display:block;font-size:12px;color:var(--meta)}
.rows li>a.q,.row>a.q{font-size:12px}
.rows .open{color:var(--win);font-weight:600;font-size:11px}
.tbl,.table{width:100%;border-collapse:collapse;font-size:12.5px}
.tbl th,.table th{text-align:left;font:600 10.5px/1 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--meta);padding:10px 10px 8px;border-bottom:1px solid var(--hair);white-space:nowrap}
.tbl td,.table td{padding:0 10px;height:34px;border-bottom:1px solid var(--hair2);white-space:nowrap;vertical-align:middle}
.tbl tr:last-child td,.table tr:last-child td{border-bottom:0}
.tbl tr:hover td,.table tr:hover td{background:var(--panel2)}
.tbl th.num,.tbl td.num,.table th.num,.table td.num{text-align:right;font-variant-numeric:tabular-nums}
.tbl td.num,.table td.num{font-family:var(--mono)}
.tbl td.meta,.table td.meta{color:var(--meta);font-size:12px}
.tbl a,.table a{font-weight:500}
.tbl .rating,.table .rating{font:400 12px var(--mono);color:var(--meta);margin-left:4px}
.cards{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:16px}
.cards.four{grid-template-columns:repeat(4, minmax(0, 1fr))}
.cards.two{grid-template-columns:repeat(2, minmax(0, 1fr))}
.card{display:flex;flex-direction:column;gap:8px;padding:16px;background:var(--panel);border:1px solid var(--hair);border-radius:8px;color:inherit}
.card:hover{border-color:var(--accent);color:inherit}
.card b{font:600 17px/1.25 var(--disp);text-wrap:balance}
.card .chip{align-self:flex-start}
.card>span{font-size:12.5px;color:var(--meta);line-height:1.45}
.card .foot{margin-top:auto;font-size:11px;color:var(--dim)}
.card .diagram{border-radius:3px;overflow:hidden}

/* ---- the play controls ---- */
.tgrid{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));gap:6px}
.tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:46px;border:1px solid var(--hair);border-radius:6px;background:var(--panel2);color:var(--ink);font:inherit;cursor:pointer}
.tile b{font:500 15px/1 var(--mono);font-variant-numeric:tabular-nums}
.tile span{font:500 10px/1 var(--sans);color:var(--meta)}
.tile:hover{border-color:var(--accent);background:var(--tint);color:var(--ink)}
.quick{display:flex;flex-direction:column;gap:10px}
.optrow{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 12px;border-bottom:1px solid var(--hair2)}
.optrow:last-child{border-bottom:0}
.optrow .grow{flex:1;min-width:0}
.optrow b{display:block;font-weight:600}
.optrow .sub{display:block;font-size:12px;color:var(--meta)}
.panes{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:16px}
.pane .pb{display:flex;flex-direction:column;gap:10px}
.pane .pb .rowx{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.bots{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));gap:6px}
.bot{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:6px;background:var(--panel2);border:1px solid var(--hair);font:inherit;cursor:pointer;text-align:left;width:100%;color:var(--ink)}
.bot:hover{border-color:var(--accent);background:var(--tint);color:var(--ink)}
.bot .grow{flex:1;min-width:0}
.bot .name{font-weight:600;font-size:12.5px;white-space:nowrap}
.bot .r{font:400 11px var(--mono);color:var(--meta);margin:0}
.bot .go{font-size:12px;font-weight:600;color:var(--accent-ink)}
.botform{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.radar{display:flex;flex-direction:column;align-items:center;gap:14px;padding:48px 24px;text-align:center}
.radar .title{font-size:22px}
.radar .lead{margin:0}
.radar .inline{display:flex;gap:8px}
.pulse{position:relative;width:72px;height:72px}
.pulse::before{content:"";position:absolute;inset:24px;border-radius:50%;background:var(--accent)}
.pulse::after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid var(--accent);animation:radar 1.8s ease-out infinite}
@keyframes radar{0%{transform:scale(.6);opacity:.9}100%{transform:scale(1.8);opacity:0}}
.bot-door{opacity:0;transition:opacity .6s ease;pointer-events:none}
.bot-door.on{opacity:1;pointer-events:auto}

/* ---- boards ---- */
.diagram{width:100%}
.diagram svg{display:block;width:100%;height:auto}
.minis{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));gap:12px}
.mini{display:flex;flex-direction:column;gap:6px;color:inherit;min-width:0}
.mini:hover{color:inherit}
.mini .diagram{border-radius:3px;overflow:hidden}
.mini .who{display:flex;flex-direction:column;gap:2px;font-size:11.5px;line-height:1.3}
.mini .who span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini .who .r{font-size:10.5px;margin:0}
.featured{display:grid;grid-template-columns:300px minmax(0, 1fr);gap:14px;align-items:stretch}
.featured .diagram{border-radius:3px;overflow:hidden}
.featured .side{display:flex;flex-direction:column;gap:10px;min-width:0}
.featured .side .top{display:flex;align-items:center;justify-content:space-between}
.featured .foot{margin-top:auto;display:flex;gap:8px}
.puzcard{display:flex;flex-direction:column;gap:10px}
.puzcard .diagram{border-radius:4px;overflow:hidden}
.puzcard .line{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pline{display:flex;align-items:center;gap:8px;min-height:32px}
.pline .name{font-weight:600;font-size:13.5px}
.pline .rating{font:400 12px var(--mono);color:var(--meta)}
.taken{display:inline-flex;align-items:center;margin-left:2px;min-height:14px}
.taken:empty{display:none}
.taken svg{width:15px;height:15px;display:block;margin-left:-3px;opacity:.9}
.clock{display:flex;align-items:center;justify-content:flex-end;height:56px;padding:0 14px;border-radius:6px;border:1px solid var(--hair);background:var(--panel2);font:500 34px/1 var(--mono);font-variant-numeric:tabular-nums;letter-spacing:-.03em;color:var(--meta);white-space:nowrap}
.clock.on{background:var(--tint);border:1.5px solid var(--accent);color:var(--ink)}
.clock.low{color:var(--loss);border-color:var(--loss)}
.clock.daily{font-size:20px;letter-spacing:-.01em}
.rp-moves,.moves{display:grid;grid-template-columns:34px minmax(0, 1fr) minmax(0, 1fr);gap:0;align-content:start;margin:0;padding:0;font:400 12.5px/1.3 var(--mono);font-variant-numeric:tabular-nums;overflow:auto}
.rp-moves li{padding:3px 6px}
.rp-moves li.n{color:var(--dim);text-align:right;padding:3px 6px 3px 0;font-size:11.5px}
.rp-moves li:nth-child(6n+1),.rp-moves li:nth-child(6n+2),.rp-moves li:nth-child(6n+3){background:var(--hair2)}
.rp-moves li:nth-child(6n+1){border-radius:4px 0 0 4px}
.rp-moves li:nth-child(6n+3){border-radius:0 4px 4px 0}
.rp-moves li:has(button.on){background:var(--tint)}
.rp-moves button{padding:0;border:0;background:transparent;cursor:pointer;font:inherit;color:var(--ink);text-align:left;border-radius:0}
.rp-moves button:hover{color:var(--accent-ink);background:transparent}
.rp-moves button.on{color:var(--accent-ink);font-weight:500;background:transparent}
.rp-moves button i{font-style:normal;color:var(--loss);margin-left:2px}
.rp-moves .gap{color:var(--dim)}
.rp-controls{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));gap:6px;margin-top:8px}
.rp-controls button{height:34px;border:1px solid var(--hair);border-radius:6px;background:var(--panel2);color:var(--ink);font:600 15px/1 var(--sans);cursor:pointer}
.rp-controls button:hover{border-color:var(--accent);color:var(--accent-ink)}
.rp-controls button:disabled{opacity:.35;cursor:default;border-color:var(--hair);color:var(--ink)}
ch-replay{display:block}
ch-replay:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
ch-replay>.rp-moves{margin-top:8px;max-height:240px;padding:6px 8px;background:var(--panel);border:1px solid var(--hair);border-radius:6px}
.md-board{margin:1.4em 0;max-width:420px}
.md-board svg{display:block;width:100%;height:auto;border-radius:4px}
.md-game{margin:1.4em 0;max-width:520px}

/* ---- board pages: one 3-column grid; the board sized by the viewport ---- */
.room-grid,.puz-grid{display:grid;grid-template-columns:280px var(--board) 320px;gap:16px;justify-content:center;align-items:start}
.gp-left,.gp-right{display:flex;flex-direction:column;gap:12px;min-width:0}
.gp-mid{display:flex;flex-direction:column;gap:8px;width:100%;min-width:0}
.gp-mid ch-board,.boardcol ch-board{border-radius:4px}
.gp-mid .head,.gp-mid .foot{display:flex;align-items:center;gap:10px;min-height:32px;margin:0}
.gp-mid .foot .btn2,.gp-mid .foot .ghost{margin-left:auto}
.info .row .meta{font-size:12.5px}
.info .row .val{margin-left:auto;text-align:right}
.tools{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:6px}
.room{display:block}
.room-strip{font-size:12px;color:var(--meta);padding:0 0 10px;text-align:center}
.room-side{display:flex;flex-direction:column;gap:8px;height:calc(var(--board) + 80px)}
.room-side .panel{flex:1;min-height:0}
.room-side .panel .ph .state{font-weight:400;color:var(--meta)}
.room-moves{flex:1;min-height:0;padding:6px 8px}
.room-cards{display:flex;flex-direction:column;gap:6px;padding:8px 8px 0}
.room-cards:empty{display:none}
.room-card{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--hair);border-radius:6px;background:var(--panel2);font-size:12.5px;color:var(--meta)}
.room-card.refusal{color:var(--loss);margin:0}
.room-card form{display:inline}
.room-card .btn{height:26px;padding:0 10px;font-size:12px}
.room-verbs{display:grid;grid-template-columns:repeat(auto-fit, minmax(90px, 1fr));gap:6px;padding:8px;border-top:1px solid var(--hair)}
.room-verbs form{display:contents}
.room-player .delta{font-size:12px}
.ask{font:600 24px/1.15 var(--disp);letter-spacing:-.01em}
.days li{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:36px;padding:6px 12px;border-bottom:1px solid var(--hair2);font-size:12.5px}
.days li:last-child{border-bottom:0}
.days li a{font-weight:500}
.days li span{color:var(--meta);font:400 12px var(--mono)}
.foot-verbs{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:6px;padding:8px}

/* the flipped room: the lines and the clocks swap with the board */
.room.flipped .gp-mid>.room-player.top{order:3}
.room.flipped .gp-mid>ch-board{order:2}
.room.flipped .gp-mid>.room-player:not(.top){order:1}
.room-side>.panel{order:2}
.room.flipped .room-side>.clock:first-child{order:3}
.room.flipped .room-side>.clock:last-child{order:1}

/* the finished game: the replay's parts become grid items */
.gamepage{display:grid;grid-template-columns:280px var(--board) 320px;grid-template-rows:auto minmax(0, 1fr) auto;gap:8px 16px;justify-content:center;align-items:start}
.gamepage.with-bar{grid-template-columns:280px 16px var(--board) 320px}
.gamepage>ch-replay{display:contents}
.gamepage .gp-left{grid-column:1;grid-row:1 / 4}
.gamepage .eval-bar{grid-column:2;grid-row:1 / 3;align-self:stretch;display:flex;flex-direction:column;align-items:center;gap:4px;width:16px}
.gamepage ch-board{grid-column:2;grid-row:1 / 3;width:var(--board)}
.gamepage.with-bar ch-board{grid-column:3}
.gamepage .rp-controls{grid-column:2;grid-row:3;margin:0}
.gamepage.with-bar .rp-controls{grid-column:3}
.gamepage .gp-chart{grid-column:3;grid-row:1;padding:8px 10px;background:var(--panel);border:1px solid var(--hair);border-radius:8px 8px 0 0;border-bottom:0}
.gamepage.with-bar .gp-chart{grid-column:4}
.gamepage .rp-moves{grid-column:3;grid-row:2 / 4;align-self:stretch;max-height:none;margin:0;padding:6px 8px;background:var(--panel);border:1px solid var(--hair);border-radius:8px}
.gamepage.with-bar .rp-moves{grid-column:4;border-radius:0 0 8px 8px}
.gamepage>ch-replay>script{display:none}
.eval-bar .eval-track{flex:1;position:relative;width:14px;min-height:200px;background:#0F1218;border:1px solid var(--hair);border-radius:3px;overflow:hidden}
.eval-bar .eval-white{position:absolute;left:0;right:0;bottom:0;height:50%;background:#E6E8EC;transition:height 200ms ease}
.eval-bar .eval-num{display:block;width:34px;margin-left:-9px;font:600 10px/1 var(--mono);text-align:center;color:var(--meta);white-space:nowrap}
.result{font:600 20px/1.2 var(--disp);letter-spacing:-.01em}
.player{display:flex;align-items:center;gap:8px;min-height:32px}
.player .name{font-weight:600;font-size:13.5px}
.player .name b{font:400 12px var(--mono);color:var(--meta);margin-left:4px}
.player .flag{font-size:11px}
.player .delta{margin-left:auto}
.acc{display:flex;flex-direction:column;gap:10px}
.acc .l{display:flex;justify-content:space-between;font-size:12px}
.acc .bar2{margin-top:4px}
.acc .bar2.b i{background:var(--meta)}
.chart{color:var(--accent)}
.chart svg{display:block;width:100%;height:auto}
.analysis .meta{margin-top:4px}

/* ---- lessons ---- */
.learn-grid{display:grid;grid-template-columns:260px minmax(0, 1fr);gap:16px;align-items:start}
.tracknav a{display:flex;align-items:center;gap:8px;height:34px;padding:0 12px;font-size:12.5px;border-bottom:1px solid var(--hair2)}
.tracknav a:last-child{border-bottom:0}
.tracknav a .n{width:16px;text-align:center;font:400 10px var(--mono);color:var(--dim)}
.tracknav a.on{background:var(--tint);color:var(--accent-ink);font-weight:600}
.tracknav a.on .n{color:var(--accent-ink)}
.tracknav h3{font:600 10.5px/1 var(--sans);letter-spacing:.09em;text-transform:uppercase;color:var(--meta);padding:12px 12px 6px}
.tracks{display:flex;flex-direction:column}
.step{display:grid;grid-template-columns:calc(var(--board) + 24px) minmax(0, 1fr);border-top:1px solid var(--hair)}
.step:first-child{border-top:0}
.step .boardcol{padding:12px;border-right:1px solid var(--hair)}
.step .boardcol ch-board,.step .boardcol .diagram{width:var(--board);border-radius:4px;overflow:hidden}
.step .foot{display:flex;flex-direction:column;gap:12px;padding:20px;margin:0;min-height:0;align-items:flex-start}
.step .foot p{font-size:16px;line-height:1.5}
.step.done .foot p{color:var(--win)}
.step .foot .chip{align-self:flex-start}
.answer summary{font-weight:600;color:var(--accent-ink);font-size:12px}
.answer span{display:block;margin-top:6px;font-size:13px}
.pager{display:flex;justify-content:space-between;gap:8px;padding:12px;border-top:1px solid var(--hair)}
.pager.small{padding:0;border:0;gap:12px;font-size:12px;font-weight:600;color:var(--accent-ink)}
.lessons li{border-bottom:1px solid var(--hair2)}
.lessons li:last-child{border-bottom:0}
.lessons li a{display:flex;align-items:center;gap:12px;min-height:36px;padding:6px 12px}
.lessons li a:hover b{color:var(--accent-ink)}
.lessons .num{width:20px;color:var(--dim);font:400 11px var(--mono)}
.lessons b{flex:1;font-weight:500}
.lessons .meta{font-size:12px}
.tlist a{display:flex;align-items:center;gap:8px;min-height:30px;font-size:12.5px}
.tlist a .n{width:16px;height:16px;border-radius:50%;display:inline-grid;place-items:center;background:var(--hair2);color:var(--dim);font-size:9px;flex:none}

/* ---- the stream and the threads ---- */
.feed-grid{display:grid;grid-template-columns:240px minmax(0, 1fr) 300px;gap:16px;align-items:start}
.sidenav a{display:flex;align-items:center;gap:8px;height:36px;padding:0 12px;font-size:12.5px;font-weight:500}
.sidenav a.on{background:var(--tint);color:var(--accent-ink);font-weight:600}
.composer{display:flex;gap:10px;padding:12px 16px;align-items:flex-start}
.composer textarea{flex:1;min-height:34px}
.composer .row{display:flex;flex-direction:column;gap:8px;padding:0;border:0;min-height:0}
.composer .check{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--meta);white-space:nowrap}
.compose{display:flex;align-items:center;gap:10px;padding:12px 16px;font-size:12.5px;color:var(--meta)}
.compose a{color:var(--accent-ink);font-weight:600}
.streamtabs{display:flex;gap:2px;border-bottom:1px solid var(--hair);padding:0 8px}
.streamtabs a{display:inline-flex;align-items:center;height:36px;padding:0 10px;font:600 12.5px/1 var(--sans);color:var(--meta);border-bottom:2px solid transparent;margin-bottom:-1px}
.streamtabs a.on{color:var(--ink);border-color:var(--accent)}
.post{display:grid;grid-template-columns:32px minmax(0, 1fr);gap:10px;padding:14px 16px;border-bottom:1px solid var(--hair)}
.post:last-child{border-bottom:0}
.post .av{width:32px;height:32px;font-size:13px}
.post .hd{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--meta);flex-wrap:wrap}
.post .hd b{color:var(--ink);font-weight:600}
.post .hd .num{font-family:var(--mono)}
.post .hd .chip{margin-left:auto}
.post .q{font:600 17px/1.3 var(--disp);letter-spacing:-.005em;margin:4px 0 2px;text-wrap:balance}
.post .q a{color:inherit}
.post .q a:hover{color:var(--accent-ink)}
.post h1.q{font-size:24px}
.post .body{font-size:14px;line-height:1.5;margin-top:4px}
.post .ft{display:flex;gap:16px;margin-top:10px;font-size:12px;color:var(--meta)}
.post .ft a:hover{color:var(--ink)}
.post .ft form{display:inline}
.post .att{max-width:240px;margin-top:10px}
.post .att .diagram{border-radius:3px;overflow:hidden}
.post .att-img{display:block;max-width:100%;max-height:480px;border-radius:8px;margin-top:10px}
.gcard{display:grid;grid-template-columns:120px minmax(0, 1fr);gap:12px;margin-top:10px;padding:10px;border:1px solid var(--hair);border-radius:8px;background:var(--panel2);color:inherit}
.gcard:hover{border-color:var(--accent);color:inherit}
.gcard .diagram{border-radius:3px;overflow:hidden}
.gcard .gline{font-size:12.5px;font-weight:600}
.gcard .gmeta{font-size:12px;color:var(--meta);margin-top:2px}
.lead-post{padding:20px 20px 12px}
.likeform{padding:0 16px 12px}
.replies .ph .seg{margin-left:auto}
.more{padding:12px 16px}
.reply{display:grid;grid-template-columns:28px minmax(0, 1fr);gap:10px;padding:14px 16px;border-top:1px solid var(--hair2)}
.reply .av{width:28px;height:28px;font-size:12px}
.reply .hd{font-size:12px;color:var(--meta);display:flex;gap:6px;align-items:center}
.reply .hd b{color:var(--ink);font-weight:600}
.reply p{font-size:13.5px;line-height:1.5;margin-top:3px}
.best{font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--win)}
.qlist li{display:flex;flex-direction:column;gap:2px;padding:8px 12px;border-bottom:1px solid var(--hair2);font-size:12.5px;line-height:1.35}
.qlist li:last-child{border-bottom:0}
.qlist li a{font-weight:500}
.qlist li span{font-size:12px;color:var(--meta)}
.alist li{display:flex;flex-direction:column;gap:2px;padding:8px 12px;border-bottom:1px solid var(--hair2);font-size:12.5px;line-height:1.35}
.alist li:last-child{border-bottom:0}
.alist li a{font-weight:600}
.alist li span{font-size:12px;color:var(--meta)}

/* ---- reading ---- */
.read-grid{display:grid;grid-template-columns:200px minmax(0, 1fr) 300px;gap:32px;align-items:start;padding-top:8px}
.toc{position:sticky;top:16px}
.toc a{display:block;padding:5px 0 5px 10px;border-left:2px solid transparent;font-size:12.5px;color:var(--meta)}
.toc a:hover{color:var(--ink)}
.toc a.on{border-color:var(--accent);color:var(--ink)}
article.reading{max-width:720px;min-width:0}
.arthead{display:flex;flex-direction:column;gap:14px;margin-bottom:28px}
.arthead .kicker{font-size:12px;color:var(--meta)}
.arthead .kicker a{color:var(--accent-ink);font-weight:600}
.arthead .title{font:700 40px/1.1 var(--disp);letter-spacing:-.02em}
.arthead .lead{font-size:18px;line-height:1.5;margin:0;max-width:56ch}
.byline{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--meta);flex-wrap:wrap}
.byline .av{width:28px;height:28px;font-size:12px}
.byline b{color:var(--ink);font-weight:600}
.byline .acts{margin-left:auto;display:flex;gap:6px}
.prose{font-size:16px;line-height:1.7;max-width:66ch}
.prose p+p{margin-top:1em}
.prose h2{font:600 22px/1.3 var(--disp);letter-spacing:-.01em;margin:1.6em 0 .5em;scroll-margin-top:20px}
.prose h3{font:600 18px/1.35 var(--disp);margin:1.3em 0 .5em}
.prose a{color:var(--accent-ink)}
.prose ul,.prose ol{padding-left:1.2em;margin:1em 0}
.prose ul{list-style:disc}
.prose ol{list-style:decimal}
.prose blockquote{margin:1.4em 0;padding-left:14px;border-left:2px solid var(--accent);color:var(--meta)}
.prose figure{margin:1.6em 0}
.prose figcaption{font-size:13px;color:var(--meta);margin-top:8px;max-width:420px;line-height:1.5}
.prose code{font:400 .9em var(--mono)}
.artfoot{display:flex;flex-wrap:wrap;gap:6px;margin-top:28px}
.artfoot a{display:inline-flex;align-items:center;height:30px;padding:0 11px;border:1px solid var(--hair);border-radius:6px;background:var(--panel2);font:600 12.5px/1 var(--sans);color:var(--ink)}
.artfoot a:hover{border-color:var(--accent);color:var(--accent-ink)}
.replies{margin-top:28px;padding-top:20px;border-top:1px solid var(--hair)}
.author{display:flex;align-items:center;gap:10px}
.author b{display:block;font-weight:600}
.author span{font-size:12px;color:var(--meta)}
.author span a{color:var(--accent-ink);font-weight:600}
.leadart{display:grid;grid-template-columns:minmax(0, 1fr) 240px;overflow:hidden;color:inherit;background:var(--panel);border:1px solid var(--hair);border-radius:8px}
.leadart:hover{border-color:var(--accent);color:inherit}
.leadart .txt{padding:16px 20px;display:flex;flex-direction:column;gap:8px}
.leadart .txt .chip{align-self:flex-start}
.leadart h2{font:600 22px/1.2 var(--disp);letter-spacing:-.015em;text-wrap:balance}
.leadart p{font-size:13.5px;line-height:1.5;color:var(--meta)}
.leadart .txt .meta{margin-top:auto}
.leadart .cover{background:var(--panel2);display:grid;place-items:center;overflow:hidden;max-height:180px}
.leadart .cover img{width:100%;height:100%;object-fit:cover}
.leadart.nocover{grid-template-columns:1fr}
.prohead{display:flex;align-items:center;gap:16px;padding:20px}
.prohead .grow{flex:1;min-width:0}
.prohead .bio{margin-top:8px;font-size:13.5px;max-width:60ch}
.prohead .bio a{color:var(--accent-ink)}
.prohead .acts{display:flex;gap:8px}
.ratings{display:grid;grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));border-top:1px solid var(--hair)}
.ratings li{padding:12px 20px;border-right:1px solid var(--hair)}
.ratings li:last-child{border-right:0}
.ratings li b{display:flex;align-items:baseline;gap:8px;margin-top:6px;font:500 22px/1 var(--mono);font-variant-numeric:tabular-nums}
.ratings li .meta{display:block;font-size:11px;margin-top:2px}
.cities{columns:5;column-gap:32px}
.cities li{break-inside:avoid}
.cities a{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--hair2);font-size:12.5px}
.themes{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));gap:16px}
.themeline{font-size:13px;line-height:1.5;color:var(--meta)}
.narrow{max-width:720px}
.narrow.wide{max-width:760px}
.center{display:flex;gap:64px;justify-content:center;align-items:flex-start;padding:48px 0}
.authcard{width:420px;flex:none}
.authcard .pb{display:flex;flex-direction:column;gap:14px;padding:28px}
.authcard .or{display:flex;align-items:center;gap:10px;color:var(--dim);font-size:11px}
.authcard .or::before,.authcard .or::after{content:"";flex:1;height:1px;background:var(--hair)}
.why{display:flex;flex-direction:column;gap:18px;max-width:380px;padding-top:12px}
.why h2{font:600 22px/1.2 var(--disp)}
.why .it{display:flex;gap:12px}
.why .it .ico{width:32px;height:32px;border-radius:8px;background:var(--tint);color:var(--accent-ink)}
.why .it b{font-weight:600;display:block}
.google{margin-top:4px}
.settings-grid{display:grid;grid-template-columns:240px minmax(0, 1fr);gap:16px;align-items:start}
.notifs li.unread{background:var(--tint)}
.searchform{display:flex;gap:8px;margin:0 0 12px}
.searchform input{flex:1;height:44px;font-size:15px}
.hits .kind{font-size:10.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--meta);min-width:56px}
.sharebox{display:flex;flex-wrap:wrap;gap:8px;align-items:center;width:100%}
.sharebox input{flex:1 1 200px;min-width:0;font-family:var(--mono);font-size:12px}
.invite .pb{display:flex;flex-direction:column;gap:14px;padding:28px;align-items:flex-start}
.invite .title{font-size:24px}
.notfound{display:flex;gap:48px;align-items:center;justify-content:center;padding:64px 0}
.notfound .diagram{width:240px}

/* ---- footer: small, dim, a screen below the content (owner, 2026-09-15) ---- */
.sitefoot{padding:56px 0 20px;font:500 10px/1 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--meta);opacity:.75}
.sitefoot .wrap{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.sitefoot .fl{display:flex;gap:16px;flex-wrap:wrap}
.sitefoot a{color:inherit}
.sitefoot a:hover{color:var(--ink)}

@media (prefers-reduced-motion:no-preference){.tile,.rail a,.tabbar a,.btn,.ghost,.btn2,.pill,.verb,.bot,.card,.rd .primary,.rd .secondary,.rd .chips span,.rd .brow{transition:background-color .12s,border-color .12s,color .12s}}
@media (prefers-reduced-motion:reduce){.pulse::after{animation:none;opacity:.4}}

/* ==== narrower desktops ==== */
@media (max-width:1240px){
  .cols3{grid-template-columns:260px minmax(0, 1fr) 280px}
  .room-grid,.puz-grid{grid-template-columns:240px var(--board) 300px}
  .gamepage{grid-template-columns:240px var(--board) 300px}
  .gamepage.with-bar{grid-template-columns:240px 16px var(--board) 300px}
  .minis{grid-template-columns:repeat(3, minmax(0, 1fr))}
  .cards{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .cards.four{grid-template-columns:repeat(3, minmax(0, 1fr))}
  .themes{grid-template-columns:repeat(3, minmax(0, 1fr))}
  .cities{columns:4}
}
.cols3{display:grid;grid-template-columns:300px minmax(0, 1fr) 320px;gap:16px;align-items:start}
.cols2{display:grid;grid-template-columns:minmax(0, 1fr) 320px;gap:16px;align-items:start}
.cols2.read{grid-template-columns:minmax(0, 760px) 300px;justify-content:start}
.cols2.read.wide{grid-template-columns:minmax(0, 1fr) 300px}

/* ==== mobile: its own layout ==== */
@media (max-width:900px){
  .wrap{padding:0 12px}
  main.wrap{padding-top:8px}
  :root{--board:100vw}
  body{padding-left:0;padding-bottom:calc(64px + env(safe-area-inset-bottom))}
  .rail{display:none}
  .topbar{display:flex;align-items:center;justify-content:space-between;height:52px;padding:0 16px}
  .tabbar{position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;align-items:stretch;height:calc(64px + env(safe-area-inset-bottom));padding:4px 4px env(safe-area-inset-bottom);background:var(--panel2);border-top:1px solid var(--hair)}
  .tabbar a{flex:1;width:auto;height:56px;padding:0;justify-content:center;gap:4px;letter-spacing:.06em}
  .tabbar a .ico{width:44px;height:28px;border-radius:8px}
  .tabbar a .ico svg{width:20px;height:20px}
  .sitefoot{padding:40px 0 16px}
  .sitefoot .fl:first-child{display:none}
  .cols3,.cols2,.cols2.read,.cols2.read.wide,.room-grid,.puz-grid,.gamepage,.gamepage.with-bar,.learn-grid,.feed-grid,.read-grid,.settings-grid,.panes,.cards,.cards.four,.cards.two,.featured,.leadart{grid-template-columns:1fr;gap:12px}
  .stack{gap:12px}
  .minis{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .themes{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .cities{columns:2}
  .center{flex-direction:column;gap:24px;padding:12px 0;align-items:stretch}
  .authcard{width:100%}
  .why{max-width:none}
  .toc{display:none}
  .arthead .title{font-size:28px}
  .arthead .lead{font-size:16px}
  .leadart .cover{display:none}
  .prose{font-size:15px}
  .tbl th:nth-child(n+4),.tbl td:nth-child(n+4),.table th:nth-child(n+4),.table td:nth-child(n+4){display:none}
  .tbl td,.table td{height:40px}
  .rows>li,.row,.optrow{min-height:44px}
  .btn,.ghost,.btn2,.verb,.tile{min-height:40px}
  .tile{height:52px}
  .tile b{font-size:16px}
  .seg span{height:32px}
  .prohead{flex-direction:column;align-items:flex-start;gap:12px;padding:16px}
  .prohead .acts{width:100%}
  .prohead .acts .btn,.prohead .acts .ghost{flex:1}
  .ratings{grid-template-columns:repeat(3, minmax(0, 1fr))}
  /* the focus pages: the board full-bleed, the columns after it */
  .focus .crumb{display:none}
  .gp-mid{order:1}
  .gp-right{order:2}
  .gp-left{order:3}
  .room-side{height:auto;order:2}
  .room-side .panel{min-height:0}
  .room-moves{max-height:200px}
  .room-side .clock{height:44px;font-size:24px}
  .room-grid .gp-left{order:3}
  .gamepage,.gamepage.with-bar{display:flex;flex-direction:column;gap:8px;align-items:stretch}
  .gamepage ch-board,.gamepage.with-bar ch-board{order:2}
  .gamepage .eval-bar{flex-direction:row;width:auto;height:14px;order:1}
  .gamepage .rp-controls{order:3}
  .gamepage .gp-chart{order:4}
  .gamepage .rp-moves{order:5}
  .gamepage .gp-left{order:6}
  .gamepage .eval-bar .eval-track{min-height:0;height:12px;width:auto}
  .gamepage .eval-bar .eval-white{left:0;right:auto;top:0;bottom:0;height:auto;width:50%}
  .gamepage .rp-moves{max-height:220px}
  .gamepage .gp-chart{border-radius:8px 8px 0 0}
  .step{grid-template-columns:1fr}
  .step .boardcol{padding:0;border-right:0}
  .step .boardcol ch-board,.step .boardcol .diagram{border-radius:0}
  .step .foot{padding:14px 16px}
  .learn-grid .tracknav{display:none}
  .feed-grid .sidenav{display:none}
  .composer{padding:10px 12px}
  .read-grid{gap:16px}
  .tools{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .room-strip{padding:8px 12px}
}

/* ---- the kit (2026-09-15, the owner's canvas UI/site-redesign): the rebuilt pages are .rd —
   15 px text, 44 px controls, r8 chips · r14 controls · r20 cards, neutral words. ---- */
.rd{display:flex;flex-direction:column;gap:28px;font:400 15px/1.45 var(--sans)}
.rd .h1{font:600 28px/1.15 var(--disp);letter-spacing:-.015em;text-wrap:balance}
.rd .h2{font:600 20px/1.2 var(--disp);letter-spacing:-.01em}
.rd .lbl{font:600 11px/1 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--meta)}
.rd .meta{font-size:13px;line-height:1.4}
.rd .card{display:flex;flex-direction:column;gap:14px;padding:20px;border-radius:20px;background:var(--panel);border:1px solid var(--hair);color:inherit}
.rd a.card:hover{color:inherit;border-color:var(--accent)}
.rd .card>b,.rd .rowx .grow>b{font:600 15px/1.25 var(--sans);text-wrap:balance}
.rd .blk{display:flex;flex-direction:column;gap:8px}
.rd .stackx{display:flex;flex-direction:column;gap:20px}
.rd .hr{height:1px;background:var(--hair2)}
.rd .rowx{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.rd .grow{flex:1;min-width:0}
.rd .primary,.rd .secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 20px;border-radius:14px;font:600 15px/1 var(--sans);white-space:nowrap;cursor:pointer}
.rd .primary{background:var(--accent);color:var(--on-accent)}
.rd .primary:hover{background:var(--accent-ink);color:var(--on-accent)}
.rd .secondary{border:1px solid var(--accent);color:var(--accent-ink);background:transparent}
.rd .secondary:hover{background:var(--tint);color:var(--accent-ink)}
.rd .primary svg,.rd .secondary svg{width:18px;height:18px}
.rd .w{width:100%}
.rd .chips{display:flex;flex-wrap:wrap;gap:6px}
.rd .chips label{position:relative;display:flex}
.rd .chips input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0}
.rd .chips span{display:inline-flex;align-items:center;justify-content:center;flex:1;height:36px;min-width:44px;padding:0 12px;border-radius:8px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--hair);font:500 13px/1 var(--mono);font-variant-numeric:tabular-nums;color:var(--ink);cursor:pointer}
.rd .chips input:checked+span{background:var(--tint);color:var(--accent-ink);box-shadow:inset 0 0 0 1.5px var(--accent)}
.rd .chips input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.rd .mini{width:64px;flex:none;border-radius:8px;overflow:hidden}
.rd .mini svg{display:block;width:100%;height:auto}
.rd .cards3{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:14px}
.rd .cards3 .card{padding:18px;gap:12px}
.rd .brows{display:flex;flex-direction:column;gap:6px}
.rd .brow{display:flex;align-items:center;gap:10px;height:44px;padding:0 14px;border-radius:14px;border:1px solid var(--hair);background:var(--panel);color:var(--ink);width:100%;text-align:left;font:inherit;cursor:pointer}
.rd .brow:hover{border-color:var(--accent)}
.rd .brow b{font:600 15px/1 var(--sans)}
.rd .brow .sub{font-size:13px;color:var(--meta)}
.rd .brow .r{margin-left:auto;font:400 13px/1 var(--mono);font-variant-numeric:tabular-nums;color:var(--meta)}
.rd .rows>li{font-size:14px;padding:8px 0}
.rd .refusal{margin:0}
.rd .fieldx{display:flex;align-items:center;height:44px;padding:0 14px;border-radius:14px;background:var(--panel2);border:1px dashed var(--hair);color:var(--ink);font:400 13px/1 var(--mono);min-width:0;width:100%;outline:0;-webkit-appearance:none;appearance:none}
.rd .fieldx::placeholder{color:var(--meta)}
.rd .fieldx:focus{border-style:solid;border-color:var(--accent)}
.rd .invite{flex-wrap:nowrap}
.artcover{display:block;width:100%;max-height:220px;object-fit:cover;border-radius:8px;margin-bottom:16px}
@media (max-width:900px){.artcover{max-height:140px;border-radius:6px}}
.board-page{display:flex;gap:40px;align-items:flex-start;justify-content:center}
.board-page .diagram{width:var(--board);flex:none}
.board-page .side{display:flex;flex-direction:column;gap:20px;width:320px;flex:none}
.board-page .side .invite{flex-direction:column;align-items:stretch}
.board-page .side .invite .primary{width:100%}
@media (max-width:900px){
  .rd{gap:22px;padding:0}
  .rd .h1{font-size:26px}
  .rd .h1.home{display:none}
  .rd .rowx>.primary,.rd .rowx>.secondary,.rd .rowx>.chips{width:100%}
  .rd .rowx>.chips label{flex:1}
  .rd .invite{flex-wrap:wrap}
  .rd .invite .primary{width:100%}
  .rd .cards3{grid-template-columns:1fr;gap:12px}
  .board-page{flex-direction:column;gap:20px;margin:0}
  .board-page .diagram svg{border-radius:0}
  .board-page .side{width:auto;padding:0}
  .board-page.puz .boardcol ch-board,.board-page.adv .boardcol ch-board{border-radius:0}
  .board-page.adv .side{min-height:0}
  .board-page.puz .segwrap{padding:0 12px}
  .board-page.puz .side{min-height:0}
}

/* ==== tablets (901–1240, the rail is up): one column — the board, the panels under it (owner, 2026-09-15) ==== */
@media (min-width:901px) and (max-width:1240px){
  :root{--board:min(616px, calc(100vh - 210px), calc(100vw - 184px))}
  .learn-grid{grid-template-columns:1fr}
  .learn-grid .tracknav{display:none}
  .step{grid-template-columns:1fr}
  .step .boardcol{width:var(--board);justify-self:center;padding:12px 0;border-right:0}
  .board-page{flex-direction:column;align-items:center}
  .board-page .side{width:100%;max-width:616px}
  .board-page.puz .side{min-height:0}
  .room-grid,.puz-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);justify-content:stretch}
  .room-grid .gp-mid,.puz-grid .gp-mid{grid-column:1 / -1;grid-row:1;justify-self:center;width:var(--board)}
  .room-grid .gp-left,.puz-grid .gp-left{grid-row:2;grid-column:1}
  .room-grid .room-side,.room-grid .gp-right,.puz-grid .gp-right{grid-row:2;grid-column:2}
  .room-side{height:auto}
  .gamepage,.gamepage.with-bar{display:flex;flex-direction:column;align-items:center;gap:12px}
  .gamepage ch-board,.gamepage.with-bar ch-board{width:var(--board);order:2}
  .gamepage .eval-bar{flex-direction:row;width:var(--board);height:14px;order:1}
  .gamepage .eval-bar .eval-track{min-height:0;height:12px;width:auto}
  .gamepage .eval-bar .eval-white{left:0;right:auto;top:0;bottom:0;height:auto;width:50%}
  .gamepage .rp-controls{order:3;width:var(--board);margin:0}
  .gamepage .gp-chart{order:4;width:var(--board)}
  .gamepage .rp-moves{order:5;width:var(--board);max-height:240px}
  .gamepage .gp-left{order:6;width:var(--board)}
}
.room-card[data-card="end"]{font:600 15px/1.3 var(--sans);color:var(--ink);background:var(--tint);border-color:var(--accent)}

/* ---- the puzzle page on the kit (2026-09-15): one page for the daily, the stream and a theme ---- */
.rd .segm{display:flex;gap:4px;padding:4px;border-radius:14px;background:var(--fill)}
.rd .segm a{flex:1;display:flex;align-items:center;justify-content:center;height:36px;border-radius:10px;font:600 13px/1 var(--sans);color:var(--ink3);white-space:nowrap}
.rd .segm a.on{background:var(--tint);color:var(--accent-ink);box-shadow:inset 0 0 0 1.5px var(--accent)}
.rd .chipa{display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:8px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--hair);font:600 13px/1 var(--sans);color:var(--ink);white-space:nowrap}
.rd .chipa:hover{box-shadow:inset 0 0 0 1px var(--accent);color:var(--accent-ink)}
.board-page.puz .boardcol{display:flex;flex-direction:column;gap:12px;width:var(--board);flex:none}
.board-page.puz .boardcol ch-board{width:100%;border-radius:4px}
.board-page.puz .side{min-height:calc(var(--board) + 48px)}
.rd .lbl.h1,.rd h1.lbl{margin:0}
.puz-days{display:flex;gap:14px;font:600 11px/1 var(--sans);letter-spacing:.06em;text-transform:uppercase}
.puz-days a{color:var(--meta)}
.puz-days a:hover{color:var(--ink)}
.puz-foot{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.puz-foot [data-done]{font:600 15px/1 var(--sans);color:var(--win);text-align:center}
.puz-foot [data-solution]{align-self:center;font:600 13px/1 var(--sans);color:var(--meta);text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:6px}

/* ---- Gelişmiş (2026-09-15): the editor, the box, the engine ---- */
.rd .fieldx.area{height:auto;min-height:96px;padding:12px 14px;font:400 13px/1.45 var(--mono);white-space:pre-wrap;resize:vertical;color:var(--ink)}
.rd .fieldx.area::placeholder{color:var(--meta)}
.palette{display:flex;flex-wrap:wrap;gap:6px}
.palette button{display:grid;place-items:center;width:40px;height:40px;border-radius:8px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--hair);color:var(--meta)}
.palette button.on{box-shadow:inset 0 0 0 1.5px var(--accent);background:var(--tint);color:var(--accent-ink)}
.palette svg{width:30px;height:30px;display:block}
.palette [data-piece="x"] svg{width:20px;height:20px}
.rd .chips button.chipa{cursor:pointer}
.rd .rowx2{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:8px}
.board-page.adv .boardcol{width:var(--board);flex:none}
.board-page.adv .boardcol ch-board{width:100%;border-radius:4px}
.board-page.adv ch-replay{display:block;width:100%}
.board-page.adv .side{min-height:var(--board)}
.board-page.adv .analysis{border:0;background:transparent}

/* ==== the one board on phones (owner, 2026-09-15): every board page bleeds its board to the full width from the same 12px wrap — one rule, last, so no page-specific margin can move it ==== */
@media (max-width:900px){
  .board-page .diagram,.board-page.puz .boardcol,.board-page.adv .boardcol,.gp-mid ch-board,.gamepage ch-board,.step .boardcol{width:100vw;max-width:none;margin-inline:calc(50% - 50vw);border-radius:0}
  .board-page.puz .boardcol ch-board,.board-page.adv .boardcol ch-board,.step .boardcol ch-board,.step .boardcol .diagram{width:100%;margin:0}
  .board-page.adv .boardcol .rp-controls,.board-page.adv .boardcol .rp-moves,.board-page.adv .boardcol .eval-bar{margin:0 12px}
  .learn-grid>.panel{border-left:0;border-right:0;border-radius:0}
}
