/* ---------- PALETTE: change these six values to re-theme the whole site ---------- */
:root{
  --brand:#4F46E5;      /* indigo: logo, links, active states */
  --accent:#C6F432;     /* lime: the main button and the timer */
  --ink:#111827;        /* text and dark panels */
  --ground:#F5F6FA;     /* page background */
  --card:#FFFFFF;
  --muted:#475569;
  --line:#E2E6EF;--soft:#CBD5E1;--panel2:#1F2937;--ok:#16A34A;--bad:#DC2626;
  --font:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--ground);color:var(--ink);font-family:var(--font);min-height:100vh;display:flex;flex-direction:column}
button,input{font-family:inherit}
button{cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
[hidden]{display:none!important}

/* ---------- header ---------- */
.top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 32px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:23px;letter-spacing:-.5px;color:var(--ink);text-decoration:none}
.brand i{font-style:normal;color:var(--brand)}
.brand svg{flex:none}
.nav{display:flex;gap:4px;background:var(--card);border-radius:999px;padding:6px;font-weight:600;font-size:15px;overflow-x:auto;max-width:100%}
.nav a{color:var(--muted);text-decoration:none;padding:10px 18px;border-radius:999px;white-space:nowrap}
.nav a:hover{color:var(--ink)}
.nav a.on{background:var(--ink);color:#fff}
.top-right{display:flex;align-items:center;gap:14px}
.date{font-size:14px;font-weight:600;color:var(--muted);white-space:nowrap}
.pill-btn{background:var(--brand);color:#fff;border:0;border-radius:999px;padding:0 20px;height:46px;font-weight:700;font-size:15px;display:flex;align-items:center;gap:8px;white-space:nowrap}
.pill-btn:hover{filter:brightness(1.1)}

/* ---------- layout ---------- */
main{flex:1;padding:4px 32px 28px;display:flex;flex-direction:column;gap:22px;max-width:1500px;width:100%;margin:0 auto}
.grid{display:grid;grid-template-columns:1.25fr 1fr;gap:22px}
.grid>*{min-width:0}
@media(max-width:1000px){.grid{grid-template-columns:1fr}.top{padding:16px}main{padding:4px 16px 24px}}

/* ---------- hero question ---------- */
.hero{background:var(--ink);color:#fff;border-radius:28px;padding:34px 38px;display:flex;flex-direction:column;gap:22px;min-height:470px}
.hero-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.tag{border:1.5px solid #64748B;color:#fff;font-weight:700;font-size:13px;letter-spacing:1.2px;padding:7px 14px;border-radius:999px;text-transform:uppercase}
.count{font-weight:600;font-size:15px;color:var(--soft)}
.hero-mid{flex:1;display:flex;flex-direction:column;justify-content:center;gap:18px}
.qimg{max-height:190px;max-width:320px;border-radius:12px;border:2px solid #334155;background:#fff;align-self:flex-start}
.qtext{margin:0;font-weight:800;letter-spacing:-1.5px;line-height:1.08;font-size:60px;overflow-wrap:anywhere}
.qtext.m{font-size:46px;letter-spacing:-1px}.qtext.s{font-size:36px;letter-spacing:-.6px}.qtext.xs{font-size:28px;letter-spacing:-.3px;line-height:1.2}
.note{font-size:14px;color:var(--soft)}
.tf{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-width:520px}
.tf button{height:64px;border-radius:16px;border:2.5px solid #64748B;background:var(--panel2);color:#fff;font-weight:800;font-size:20px;letter-spacing:1px}
.tf button.ok{border-color:var(--accent);background:var(--accent);color:var(--ink)}
.tf button.bad{border-color:#F87171;color:#FCA5A5}
.answer{background:var(--panel2);border-radius:18px;padding:16px 20px;animation:pop .28s ease}
@keyframes pop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
.a-main{font-weight:800;font-size:28px;color:var(--accent);letter-spacing:-.4px;overflow-wrap:anywhere}
.a-exp{font-size:16px;color:#E2E8F0;margin-top:6px;line-height:1.45;font-weight:500}
.hero-bot{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.btns{display:flex;gap:10px;flex-wrap:wrap}
.btn-main{background:var(--accent);color:var(--ink);border:0;border-radius:16px;height:60px;padding:0 30px;font-weight:800;font-size:18px}
.btn-main:hover{filter:brightness(1.06)}
.btn-ghost{background:transparent;color:#fff;border:2px solid #475569;border-radius:16px;height:60px;padding:0 22px;font-weight:700;font-size:16px}
.btn-ghost:hover{border-color:#fff}

/* ---------- timer ---------- */
.timer-wrap{display:flex;align-items:center;gap:12px}
.tchips{display:flex;flex-direction:column;gap:6px}
.tchips button{background:transparent;border:1.5px solid #475569;color:var(--soft);border-radius:999px;font-size:12px;font-weight:700;padding:4px 10px;min-width:44px;min-height:26px}
.tchips button.on{border-color:var(--accent);color:var(--accent)}
.timer{position:relative;width:84px;height:84px;border:0;background:none;padding:0;color:#fff;flex:none}
.timer svg{width:100%;height:100%;display:block}
.timer .trk{fill:none;stroke:#334155;stroke-width:9}
.timer .arc{fill:none;stroke:var(--accent);stroke-width:9;stroke-linecap:round;stroke-dasharray:263.9;transform:rotate(-90deg);transform-origin:50px 50px;transition:stroke-dashoffset .25s linear}
.timer .tnum{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:28px}
.timer.done .arc{stroke:#F87171}.timer.done .tnum{color:#FCA5A5}
.timer.big{width:190px;height:190px}.timer.big .tnum{font-size:76px;letter-spacing:-2px}

/* ---------- category picker ---------- */
.picker{display:flex;flex-direction:column;gap:14px}
.picker h3{margin:0;font-size:22px;font-weight:800;letter-spacing:-.4px}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px;flex:1;align-content:start}
.tile{background:var(--card);color:var(--ink);border:2px solid transparent;border-radius:20px;padding:14px 16px;text-align:left;display:flex;align-items:center;gap:14px;min-height:78px;transition:transform .12s,border-color .12s}
.tile:hover{transform:translateY(-2px);border-color:var(--brand)}
.tile.on{border-color:var(--brand);background:#EEF0FF}
.tile.dash{border:2px dashed #94A3B8;background:transparent}
.tile .ic{width:44px;height:44px;border-radius:12px;background:#EEF0FF;display:flex;align-items:center;justify-content:center;flex:none}
.tile.on .ic{background:var(--brand)}.tile.on .ic svg{stroke:#fff}
.tile svg{stroke:var(--brand)}
.tile b{display:block;font-weight:800;font-size:17px}
.tile small{display:block;font-weight:500;font-size:13px;color:var(--muted);margin-top:1px}

/* ---------- footer cards ---------- */
.cardbox{background:var(--card);border-radius:22px;padding:18px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.label{font-size:12px;font-weight:700;letter-spacing:1.2px;color:var(--brand);text-transform:uppercase}
.thought{font-size:18px;font-weight:600;margin-top:6px;line-height:1.35}
.round-btn{flex:none;width:48px;height:48px;border-radius:50%;border:0;background:var(--ground);display:flex;align-items:center;justify-content:center}
.round-btn:hover{background:#E6E9F5}
.teams{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.team{display:flex;align-items:center;gap:8px;background:var(--ground);border-radius:16px;padding:8px}
.team input{width:92px;border:0;background:transparent;font-weight:700;font-size:15px;color:inherit;padding:6px 8px;border-radius:8px}
.team .sc{font-weight:800;font-size:26px;min-width:30px;text-align:center}
.team button{width:44px;height:44px;border-radius:12px;border:0;background:var(--ink);color:#fff;font-weight:800;font-size:20px}
.team button.minus{background:transparent;color:var(--muted);border:1.5px solid var(--soft)}
.team-tools{display:flex;flex-wrap:wrap;grid-column:1/-1;justify-content:flex-end}
.cardbox .teams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;flex:1;min-width:0}
.cardbox .team{justify-content:space-between;min-width:0}.cardbox .team input{flex:1;min-width:0;width:40px}
@media(max-width:520px){.cardbox .teams{grid-template-columns:1fr}}
.link-btn{background:none;border:0;color:var(--muted);font-weight:600;font-size:13px;text-decoration:underline;padding:8px}
.site-foot{text-align:center;color:var(--muted);font-size:13px;padding:0 16px 22px}

/* ---------- board mode ---------- */
#board{position:fixed;inset:0;z-index:50;background:#0B1020;color:#fff;display:grid;grid-template-columns:92px 1fr 300px}
.rail{background:#111831;padding:20px 0;display:flex;flex-direction:column;align-items:center;gap:8px;overflow-y:auto}
.rail button{width:56px;height:56px;border-radius:16px;border:2px solid transparent;background:transparent;display:flex;align-items:center;justify-content:center;flex:none}
.rail button svg{stroke:#AEB8D6}
.rail button:hover{background:#1B2447}
.rail button.on{border-color:var(--accent);background:#1B2447}.rail button.on svg{stroke:var(--accent)}
.rail .exit{margin-top:auto}
.bmain{padding:40px 52px;display:flex;flex-direction:column;gap:26px;min-width:0;overflow-y:auto}
.bmain .hero-top{justify-content:flex-start;gap:16px}
.bmain .tag{background:var(--accent);color:#0B1020;border:0;font-size:14px;padding:9px 16px}
.bmain .hero-mid{gap:26px}
.bmain .qtext{font-size:96px;letter-spacing:-3px;line-height:1.02}
.bmain .qtext.m{font-size:72px;letter-spacing:-2px}.bmain .qtext.s{font-size:54px;letter-spacing:-1.2px}.bmain .qtext.xs{font-size:40px;letter-spacing:-.6px}
.bmain .qimg{max-height:300px;max-width:520px}
.bmain .tf{max-width:none}.bmain .tf button{height:104px;font-size:38px;border-radius:24px;background:#131B3A}
.bmain .tf button.ok{background:var(--accent)}
.bmain .answer{background:#131B3A;padding:22px 28px}.bmain .a-main{font-size:48px}.bmain .a-exp{font-size:22px}
.keys{font-size:14px;font-weight:600;color:#AEB8D6}
.keys kbd{border:1.5px solid #4A5788;border-radius:6px;padding:3px 8px;color:#fff;font-family:inherit;margin:0 4px 0 10px}
.side{background:#111831;padding:36px 24px;display:flex;flex-direction:column;gap:24px;align-items:stretch;overflow-y:auto}
.side .timer-wrap{flex-direction:column}.side .tchips{flex-direction:row}
.side .teams{flex-direction:column;align-items:stretch}
.side .team{background:#1B2447;justify-content:space-between}.side .team button{background:var(--brand)}
.side .team button.minus{background:transparent;color:#AEB8D6;border-color:#4A5788}
.side .btn-main{margin-top:auto;width:100%}
.side .btn-ghost{width:100%}
@media(max-width:900px){#board{grid-template-columns:64px 1fr}.side{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;padding:16px}.bmain{padding:20px}.bmain .qtext{font-size:44px}.rail button{width:48px;height:48px}}

/* ---------- Countdown Quest ---------- */
.cq{background:var(--ink);color:#fff;border-radius:28px;padding:32px 36px;display:flex;flex-direction:column;gap:22px}
.seg{display:inline-flex;background:var(--panel2);border-radius:999px;padding:5px;gap:4px;align-self:flex-start}
.seg button{border:0;background:transparent;color:var(--soft);font-weight:700;font-size:15px;padding:10px 20px;border-radius:999px}
.seg button.on{background:#fff;color:var(--ink)}
.cq h2{margin:0;font-size:34px;font-weight:800;letter-spacing:-.8px}
.cq p{margin:0;color:var(--soft);font-size:16px;font-weight:500;max-width:720px;line-height:1.45}
.cards{display:flex;gap:10px;flex-wrap:wrap}
.cardn{width:92px;height:104px;border-radius:16px;background:var(--panel2);border:2px solid #334155;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:40px}
.cardn.fill{background:#fff;color:var(--ink);border-color:#fff;animation:pop .2s ease}
.cardn.letter{width:74px;height:90px;font-size:44px}
.target{font-weight:800;font-size:84px;letter-spacing:-2px;color:var(--accent);line-height:1}
.cq-row{display:flex;align-items:center;gap:28px;flex-wrap:wrap}
.wl{display:grid;grid-template-columns:1.25fr 1fr;gap:22px}
@media(max-width:1000px){.wl{grid-template-columns:1fr}}
.wl-game{background:var(--ink);color:#fff;border-radius:28px;padding:30px 24px;display:flex;flex-direction:column;align-items:center;gap:18px}
.wl-game h2{margin:0;font-size:34px;font-weight:800;letter-spacing:-.8px}
.wl-grid{display:grid;grid-template-columns:repeat(5,60px);gap:9px}
.wl-cell{width:60px;height:60px;border-radius:50%;border:2.5px solid #475569;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:26px}
.wl-cell.live{border-color:#94A3B8}
.wl-cell.ok{background:var(--accent);border-color:var(--accent);color:var(--ink)}
.wl-cell.near{background:var(--brand);border-color:#A5B4FC;color:#fff}
.wl-cell.no{background:#374151;border-color:#374151;color:#CBD5E1}
.wl-msg{min-height:26px;font-weight:700;font-size:17px;color:var(--accent);text-align:center}
.wl-keys{display:flex;flex-direction:column;gap:7px;align-items:center;max-width:100%}
.wl-keys div{display:flex;gap:6px}
.wl-keys button{min-width:40px;height:50px;padding:0 8px;border-radius:10px;border:0;background:#E5E7EB;color:var(--ink);font-weight:800;font-size:15px}
.wl-keys button.ok{background:var(--accent)}.wl-keys button.near{background:var(--brand);color:#fff}.wl-keys button.no{background:#374151;color:#9CA3AF}
.wl-done{margin:0;font-weight:600;color:var(--soft);text-align:center}
.wl-game .seg{align-self:center}
.wl-restart{font-size:14px;font-weight:600;color:var(--soft);display:flex;align-items:center;gap:4px;flex-wrap:wrap;justify-content:center}
.wl-restart .link-btn{color:var(--soft);font-size:14px}.wl-restart .link-btn:hover{color:#fff}
.wl-help{background:var(--card);border-radius:22px;padding:26px 28px;align-self:start}
.wl-help h3{margin:0 0 12px;font-size:22px;font-weight:800}
.wl-help p,.wl-help li{font-size:16px;font-weight:500;color:var(--muted);line-height:1.5}
.wl-help ul{margin:6px 0 0;padding-left:20px}
.wl-leg{display:flex;align-items:center;gap:12px;margin:10px 0;font-weight:600}
.wl-leg .wl-cell{width:34px;height:34px;font-size:15px;flex:none}
@media(max-width:480px){.wl-grid{grid-template-columns:repeat(5,48px)}.wl-cell{width:48px;height:48px;font-size:21px}.wl-keys button{min-width:28px;padding:0 5px;font-size:13px}.wl-keys div{gap:4px}}
.theme{background:var(--card);border-radius:18px;padding:12px 16px}
.theme-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.theme-chip{font-size:12px;font-weight:800;letter-spacing:1.1px;text-transform:uppercase;padding:7px 12px;border-radius:999px;background:var(--ground);color:var(--muted);white-space:nowrap}
.theme-chip.live{background:var(--accent);color:var(--ink)}
.theme-txt{flex:1;min-width:200px;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.theme-txt b{font-size:17px;font-weight:800}.theme-txt span{font-size:14px;font-weight:500;color:var(--muted)}
.theme-btn{border:1.5px solid var(--line);background:transparent;color:var(--ink);font-weight:700;font-size:14px;border-radius:999px;padding:0 16px;height:44px}
.theme-btn:hover{border-color:var(--brand)}
.theme-panel{border-top:1px solid var(--line);margin-top:12px;padding-top:14px;display:flex;flex-direction:column;gap:12px}
.seg.light{background:var(--ground)}.seg.light button{color:var(--muted)}.seg.light button.on{background:var(--ink);color:#fff}
.theme-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px 28px}
.theme-list li{display:flex;gap:12px;align-items:baseline;font-size:15px;padding:5px 0}
.theme-list span{min-width:112px;color:var(--muted);font-weight:600;font-size:14px}
.theme-list b{font-weight:700;flex:1}.theme-list i{font-style:normal;font-size:12px;font-weight:700;color:var(--brand);text-transform:uppercase;letter-spacing:.8px}
@media(max-width:800px){.theme-list{grid-template-columns:1fr}}
/* ---------- board mode for Countdown Quest and Word Loop: the game fills the screen ---------- */
#bmExit{display:none}
body.bm{background:#0B1020}
body.bm .top,body.bm .site-foot{display:none}
body.bm #bmExit{display:block;position:fixed;top:16px;right:20px;z-index:60;background:transparent;color:#AEB8D6;border:1.5px solid #4A5788;border-radius:999px;height:44px;padding:0 18px;font-weight:700;font-size:14px}
body.bm #bmExit:hover{color:#fff;border-color:#fff}
body.bm main{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:center;gap:28px;max-width:none;min-height:100vh;padding:16px 36px}
body.bm .foot{display:block;align-self:center}
body.bm .foot [data-thought]{display:none}
body.bm .foot .cardbox{flex-direction:column;align-items:stretch;background:#111831;color:#fff;padding:22px}
body.bm .foot .label{color:#AEB8D6!important;max-width:none!important}
body.bm .cardbox .teams{grid-template-columns:1fr}
body.bm .team{background:#1B2447}body.bm .team button{background:var(--brand)}
body.bm .team button.minus{background:transparent;color:#AEB8D6;border-color:#4A5788}
body.bm .link-btn{color:#AEB8D6}
body.bm .cq{background:transparent;padding:10px 20px;gap:clamp(14px,2.6vh,30px)}
body.bm .cq h2{display:none}body.bm .cq p{font-size:19px;max-width:900px}
body.bm .cardn{width:clamp(96px,9vw,128px);height:clamp(104px,15vh,146px);font-size:clamp(44px,6.5vh,60px);border-radius:22px}
body.bm .cardn.letter{width:104px;height:128px;font-size:64px}
body.bm .target{font-size:clamp(90px,15vh,140px)}
body.bm .cq .timer{width:130px;height:130px}body.bm .cq .timer .tnum{font-size:46px}
body.bm .cq .a-main{font-size:44px}body.bm .sol{font-size:27px}
body.bm .cq .seg button{font-size:17px;padding:12px 24px}
body.bm .wl{grid-template-columns:1fr}body.bm .wl-help{display:none}
body.bm .wl-game{background:transparent;padding:0;gap:clamp(8px,1.8vh,20px)}
body.bm .wl-game h2{display:none}
body.bm .wl-grid{grid-template-columns:repeat(5,clamp(44px,8.4vh,92px));gap:clamp(5px,1vh,12px)}
body.bm .wl-cell{width:clamp(44px,8.4vh,92px);height:clamp(44px,8.4vh,92px);font-size:clamp(22px,4.2vh,42px);border-width:3px}
body.bm .wl-msg{font-size:clamp(17px,2.6vh,26px);min-height:1.4em}
body.bm .wl-keys button{min-width:clamp(38px,3.6vw,58px);height:clamp(38px,5.4vh,60px);font-size:clamp(14px,2vh,19px)}
@media(max-width:900px){body.bm main{grid-template-columns:1fr}}
.sol{font-family:ui-monospace,Consolas,monospace;font-size:19px;line-height:1.7;color:#fff}

/* ---------- page title, reading text and footer (the parts search engines read) ---------- */
.intro{max-width:1500px;width:100%;margin:0 auto;padding:0 32px 16px}
.intro h1{margin:0;font-size:24px;font-weight:800;letter-spacing:-.5px}
.intro p{margin:5px 0 0;color:var(--muted);font-size:15px;font-weight:500;max-width:900px;line-height:1.5}
.more{max-width:1500px;width:100%;margin:0 auto;padding:10px 32px 34px;display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:22px;align-items:start}
.more section{background:var(--card);border-radius:24px;padding:26px 28px}
.more h2{margin:0 0 12px;font-size:20px;font-weight:800;letter-spacing:-.3px}
.more h3{margin:16px 0 4px;font-size:16px;font-weight:800}
.more p,.more li,.more dd,.more summary{color:var(--muted);font-size:15px;line-height:1.6;font-weight:500}
.more p{margin:0 0 10px}.more p:last-child{margin-bottom:0}
.more ul,.more ol{margin:0;padding-left:20px}.more li{margin-bottom:4px}
.more dl{margin:0}.more dt{font-weight:700;font-size:15px;line-height:1.5}.more dd{margin:0 0 10px}
.more b,.more strong{color:var(--ink)}
.more details{border-top:1px solid var(--line);padding:10px 0}.more details:last-child{padding-bottom:0}
.more summary{cursor:pointer;font-weight:700;color:var(--ink)}
.more details ul{margin-top:8px}
.more a,.site-foot a{color:var(--brand);font-weight:700;text-decoration:none}
.more a:hover,.site-foot a:hover{text-decoration:underline}
.more .wide{grid-column:1/-1}
.site-foot nav{display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:center;margin-bottom:8px;font-size:14px}
.site-foot p{margin:4px 0}
.about{max-width:900px;grid-template-columns:1fr}
.about h1{margin:0 0 10px;font-size:34px;font-weight:800;letter-spacing:-.8px}
.about .lead{font-size:18px;color:var(--ink)}
noscript p{background:var(--card);border-radius:16px;padding:18px 22px;font-weight:600}
@media(max-width:1000px){.intro,.more{padding-left:16px;padding-right:16px}}
a.pill-btn{text-decoration:none}
.date{white-space:nowrap}
.intro{padding-bottom:14px}
.intro h1{font-size:22px}
.intro p{font-size:14px;max-width:none;margin-top:3px;white-space:normal}
/* ---------- "For teachers" band: full-width strip under the activity ---------- */
.band{background:#ECEDFB;border-top:1px solid #DADDF6;margin-top:28px;padding:40px 0 46px}
.band-in{max-width:1500px;margin:0 auto;padding:0 32px}
.band-label{margin:0 0 4px;font-size:12px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;color:var(--brand)}
.band .band-label{margin:0 0 4px;font-size:12px;font-weight:800;line-height:1.4;color:var(--brand)}
.band h2{margin:0;font-size:26px;font-weight:800;letter-spacing:-.6px}
.band-open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:22px}
.band-open section,.band-folds{background:var(--card);border-radius:24px;padding:26px 30px}
.band h3{margin:0 0 10px;font-size:19px;font-weight:800;letter-spacing:-.3px}
.band p,.band li,.band dd{color:var(--muted);font-size:15px;line-height:1.6;font-weight:500}
.band p{margin:0 0 10px}.band p:last-child{margin-bottom:0}
.band ul,.band ol{margin:0;padding-left:20px}.band li{margin-bottom:4px}
.band dl{margin:0}.band dt{font-weight:700;font-size:15px;line-height:1.5}.band dd{margin:0 0 10px}
.band b{color:var(--ink)}
.band a{color:var(--brand);font-weight:700;text-decoration:none}.band a:hover{text-decoration:underline}
.band-folds{margin-top:22px;padding-top:4px;padding-bottom:4px}
.band-folds>details{border-top:1px solid var(--line)}.band-folds>details:first-child{border-top:0}
.band summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;font-size:17px;font-weight:800;letter-spacing:-.2px}
.band summary::-webkit-details-marker{display:none}
.band summary::after{content:'+';font-size:24px;font-weight:600;color:var(--brand);line-height:1}
.band details[open]>summary::after{content:'\2212'}
.band summary:hover{color:var(--brand)}
.fold{padding:0 0 20px;max-width:980px}
.fold details{border-top:1px solid var(--line)}
.fold details summary{font-size:15px;padding:11px 0}
.fold details ul{padding-bottom:12px}
.band+.site-foot{padding-top:24px}
@media(max-width:1000px){.band-in{padding:0 16px}.band-open{grid-template-columns:1fr}.band{padding:30px 0 34px}}
body.bm .intro,body.bm .more,body.bm .band{display:none}
/* ---------- Today: eight at once ---------- */
.e8-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.e8-bar .seg{align-self:center;background:var(--card)}
.e8-bar .seg button{font-size:14px;padding:9px 16px}
.e8-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.e8-mins{display:flex;background:var(--card);border-radius:999px;padding:5px}
.e8-mins button{border:0;background:transparent;color:var(--muted);font-weight:700;font-size:13px;padding:8px 13px;border-radius:999px}
.e8-mins button.on{background:var(--ink);color:#fff}
.e8-time{border:0;background:var(--ink);color:var(--accent);border-radius:999px;height:46px;min-width:86px;padding:0 16px;font-weight:800;font-size:20px;letter-spacing:.5px}
.e8-time.done{color:#FCA5A5}
.e8-all{border:0;background:var(--accent);color:var(--ink);border-radius:999px;height:46px;padding:0 22px;font-weight:800;font-size:15px}
.e8-new{border:1.5px solid var(--line);background:var(--card);color:var(--ink);border-radius:999px;height:46px;padding:0 18px;font-weight:700;font-size:14px}
.e8-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.e8-card{background:var(--card);border-radius:22px;padding:16px 20px;display:flex;flex-direction:column;gap:8px;min-height:clamp(190px,calc((100vh - 262px) / 2),300px);min-width:0}
.e8-top{display:flex;align-items:center;gap:10px}
.e8-n{width:28px;height:28px;border-radius:50%;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;flex:none}
.e8-tag{font-size:11px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:var(--brand);flex:1;min-width:0}
.e8-zoom{border:0;background:transparent;color:var(--soft);width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex:none}
.e8-zoom:hover{background:var(--ground);color:var(--brand)}
.e8-mid{flex:1;display:flex;flex-direction:column;justify-content:center;gap:8px;min-height:0}
.e8-flag{height:clamp(48px,8vh,84px);align-self:flex-start;border-radius:8px;border:2px solid var(--soft)}
.e8-note{font-size:13px;color:var(--muted);font-weight:600}
.e8-q{margin:0;font-weight:800;font-size:clamp(17px,1.5vw,24px);line-height:1.2;letter-spacing:-.4px;overflow-wrap:anywhere}
.e8-q.s{font-size:clamp(15px,1.25vw,20px)}.e8-q.xs{font-size:clamp(14px,1.05vw,17px)}
.e8-reveal{align-self:flex-start;border:2px solid var(--brand);background:transparent;color:var(--brand);border-radius:12px;min-height:40px;padding:0 16px;font-weight:800;font-size:14px}
.e8-reveal:hover{background:var(--brand);color:#fff}
.e8-ans{border:0;text-align:left;background:#EEF0FE;border-radius:12px;padding:10px 14px;display:flex;flex-direction:column;gap:2px;font-family:inherit}
.e8-ans b{font-weight:800;font-size:17px;line-height:1.2;color:var(--brand);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.e8-ans span{font-size:12.5px;font-weight:500;color:var(--muted);line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.grid.foot.one{grid-template-columns:1fr}
.timer.long .tnum{font-size:20px}.timer.big.long .tnum{font-size:52px}
#board.zoom .rail button:not(.exit),#board.zoom .tchips{display:none}
@media(max-width:1100px){.e8-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.e8-grid{grid-template-columns:1fr}.e8-card{min-height:0}}
/* eight at once in Board mode: the grid fills the screen */
body.bm.e8v main{flex:none;display:flex;flex-direction:column;align-items:stretch;gap:14px;height:100vh;min-height:0;padding:16px 26px 20px;overflow:hidden}
body.bm.e8v .theme,body.bm.e8v .foot,body.bm.e8v .e8-bar .seg{display:none}
body.bm.e8v .e8-bar{justify-content:flex-start}
body.bm.e8v .e8-mins{background:#1B2447}body.bm.e8v .e8-mins button{color:#AEB8D6}body.bm.e8v .e8-mins button.on{background:#fff;color:var(--ink)}
body.bm.e8v .e8-time{background:#1B2447}
body.bm.e8v .e8-new{background:transparent;color:#AEB8D6;border-color:#4A5788}
body.bm.e8v .e8-grid{flex:1;min-height:0;grid-template-rows:repeat(2,minmax(0,1fr));gap:14px}
body.bm.e8v .e8-card{min-height:0;overflow:hidden;padding:clamp(12px,1.9vh,26px) clamp(16px,1.6vw,28px)}
body.bm.e8v .e8-mid{overflow:hidden}
body.bm.e8v .e8-q{font-size:clamp(18px,min(2.05vw,3.5vh),40px)}
body.bm.e8v .e8-q.s{font-size:clamp(16px,min(1.6vw,2.8vh),31px)}body.bm.e8v .e8-q.xs{font-size:clamp(14px,min(1.3vw,2.3vh),25px)}
body.bm.e8v .e8-flag{height:clamp(56px,10vh,130px)}
body.bm.e8v .e8-tag{font-size:clamp(11px,.85vw,15px)}
body.bm.e8v .e8-ans{flex:none}
body.bm.e8v .e8-ans b{font-size:clamp(16px,min(1.6vw,2.8vh),30px)}body.bm.e8v .e8-ans span{font-size:clamp(12px,min(.95vw,1.7vh),17px)}
body.bm.e8v .e8-reveal{font-size:clamp(14px,1vw,18px);flex:none}
@media(max-width:1100px){body.bm.e8v main{height:auto;overflow:visible}body.bm.e8v .e8-grid{grid-template-rows:none}body.bm.e8v .e8-card{overflow:visible}}
