:root{
  color-scheme:dark;
  --page:#10131d;--card:#171b28;--card-alt:#1b2030;--stroke:#2b3243;
  --text:#f1f2f6;--muted:#939db2;--soft:#b3bccb;
  --red:#f07780;--blue:#6dbfe9;--green:#87d9a6;--ink:#354059;
  --lime:#d7fc93;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--page);color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}
body::before{content:"";position:fixed;z-index:-1;pointer-events:none;inset:0;background:radial-gradient(ellipse 75% 35% at 48% -10%,#31334d55,transparent)}
button,input{font:inherit}button{cursor:pointer}
button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid var(--lime);outline-offset:3px}
[hidden]{display:none!important}
.page-shell{width:min(1264px,calc(100% - 72px));margin:auto}
.site-header{height:91px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #292e3c}
.brand{color:var(--text);text-decoration:none;display:flex;align-items:center;gap:14px;font-size:26px;letter-spacing:-1.5px;font-weight:850}
.brand-accent{color:var(--lime)}
.brand-symbol{width:32px;height:32px;display:grid;grid-template-columns:repeat(2,1fr);gap:4px;transform:rotate(-10deg)}
.brand-symbol i{border-radius:4px}.brand-symbol i:nth-child(1){background:var(--red)}.brand-symbol i:nth-child(2){background:var(--blue)}.brand-symbol i:nth-child(3){background:var(--green)}.brand-symbol i:nth-child(4){background:var(--lime)}
.edition,.section-kicker,.eyebrow,.stat-label,.keyboard-hint,.player-card label,.personal-best>span,.win-kicker,.site-footer{font-size:11px;letter-spacing:1.65px;font-weight:750}
.edition{color:#bdc5d1;display:flex;align-items:center;gap:10px}.live-dot,.foot-dot{width:7px;height:7px;border-radius:50%;background:var(--lime);box-shadow:0 0 10px #d7fc9360;display:inline-block;flex:none}.edition-divider{color:#555d6c}
.hero{padding:52px 0 41px}.eyebrow{margin:0 0 12px;color:var(--lime);display:flex;align-items:center;gap:10px}.dash{height:1px;width:24px;background:var(--lime)}
h1{font-size:clamp(37px,4.2vw,63px);line-height:1.1;letter-spacing:-2.7px;max-width:920px;margin:0 0 14px;font-weight:800}h1 em,.rules-heading em{font-style:normal;color:var(--lime)}.intro{font-size:16px;color:#aeb7c7;margin:0;max-width:640px}
.play-layout{display:grid;grid-template-columns:minmax(0,1.63fr) minmax(290px,.87fr);gap:22px;align-items:start}
.game-card,.side-card{background:var(--card);border:1px solid var(--stroke);border-radius:18px}
.game-card{padding:24px}.game-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:21px}
.section-kicker{color:var(--lime);font-size:10px;letter-spacing:1.45px}.game-head h2,.side-card h2{font-size:23px;letter-spacing:-.7px;line-height:1.15;margin:7px 0 0}
.stats{display:flex;gap:25px;align-items:center}.stat{display:flex;flex-direction:column;gap:3px;align-items:flex-end}.stat-value{font-size:27px;font-weight:800;letter-spacing:-.8px;line-height:1}.stat-label{font-size:9px;color:#8f9ab0;letter-spacing:1.4px}.stat-denom{color:#707d91;font-size:15px;font-weight:600}
.board-frame{background:#0c1018;border:1px solid #32394c;padding:8px;border-radius:12px;position:relative;overflow:hidden}
.board{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:3px;aspect-ratio:1/1;user-select:none;touch-action:manipulation;isolation:isolate}
.tile{min-width:0;min-height:0;border-radius:3px;cursor:pointer;transition:filter .12s ease,box-shadow .12s ease;background:var(--tile);position:relative}
.tile:hover{filter:brightness(1.24);z-index:2}.tile.is-territory{box-shadow:inset 0 0 0 1px #ffffff65}
.board-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:18px}
.board-foot p{margin:0;font-size:12px;color:#b2bac9;display:flex;align-items:center;gap:9px}.board-foot .foot-dot{width:6px;height:6px}
.text-btn{background:none;border:0;color:#d4dbe6;font-size:12px;font-weight:700;display:flex;align-items:center;gap:7px;white-space:nowrap;padding:6px 0}.text-btn:hover{color:var(--lime)}
.sidebar{display:grid;gap:18px}.side-card{padding:23px}.side-card h2{font-size:24px}.title-period{color:var(--lime)}.muted{color:var(--muted);font-size:13px;margin:11px 0 20px}
.color-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.color-option{border:1px solid transparent;color:#10131d;border-radius:10px;min-height:73px;padding:12px 13px;display:flex;flex-direction:column;justify-content:space-between;text-align:left;position:relative;transition:transform .15s ease,filter .15s ease,opacity .15s ease}.color-option:hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.09)}.color-option:disabled{opacity:.42;cursor:not-allowed}
.color-red{background:var(--red)}.color-blue{background:var(--blue)}.color-green{background:var(--green)}.color-dark{background:var(--ink);color:#eef2fa}
.color-key{height:22px;width:22px;display:inline-flex;align-items:center;justify-content:center;border:1px solid currentColor;border-radius:5px;font-size:11px;font-weight:800;opacity:.85}
.color-name{font-size:15px;font-weight:800;letter-spacing:-.25px}.color-arrow{position:absolute;right:13px;bottom:13px;font-size:18px;line-height:1}
.keyboard-hint{color:#818ea3;display:flex;align-items:center;gap:6px;margin:20px 0 0;font-size:9px;letter-spacing:1px}.keyboard-hint span{background:#2c3548;border:1px solid #46506a;padding:3px 7px;border-radius:4px;color:#cbd4e4;font-size:10px}
.player-card label{display:block;color:#b9c5d6;font-size:9px;margin:19px 0 8px}
.player-card input{display:block;width:100%;padding:11px 13px;background:#111724;border:1px solid #343e54;color:var(--text);border-radius:8px;outline-offset:2px}.player-card input:focus{border-color:var(--lime)}
.player-note{color:#8994a6;font-size:12px;margin:9px 0 18px}.personal-best{border-top:1px solid var(--stroke);padding-top:15px;display:flex;align-items:baseline;gap:9px}.personal-best span:first-child{color:#8f9aae;flex:1;font-size:9px}.personal-best strong{font-size:29px;font-weight:800;color:var(--lime)}.personal-best span:last-child{font-size:11px;color:#adb6c7;letter-spacing:0}
.scores-top{display:flex;align-items:start;justify-content:space-between;gap:8px}.local-pill{border:1px solid #394454;color:#9cacc0;font-size:10px;padding:4px 7px;border-radius:5px;font-weight:750;letter-spacing:1px}
.score-list{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:0}.score-list li{display:flex;align-items:center;gap:12px;min-height:38px;border-bottom:1px solid #2a3241}.score-list li:last-child{border-bottom:0}.score-rank{font-size:11px;color:#8492a7;width:25px}.score-rank.top{color:var(--lime)}.score-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#d3d9e3}.score-value{font-size:13px;font-weight:800}.score-suffix{font-size:10px;font-weight:500;color:#8997ac}.empty-scores{padding:8px 0 4px;color:#8f9aae;font-size:13px}
.scores-note{font-size:11px;color:#7f8ca0;margin:15px 0 0}
.rules-strip{border-top:1px solid #2a3040;border-bottom:1px solid #2a3040;margin:60px 0 0;padding:29px 0 33px;display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:35px}.rules-heading h2{font-size:21px;line-height:1.2;letter-spacing:-.55px;margin:9px 0 0}.rule-num{font-size:12px;font-weight:800;color:var(--lime)}.rule p{font-size:13px;color:#9eabbd;margin:7px 0 0}.rule strong{color:#e3e8f1;font-weight:650}
.site-footer{color:#647289;display:flex;justify-content:space-between;padding:26px 0 36px;font-size:9px}
.win-overlay{position:absolute;inset:0;z-index:10;background:#0c1018df;backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:22px}.win-emblem{height:62px;width:62px;border-radius:18px;background:#d7fc9318;border:1px solid #d7fc9370;color:var(--lime);font-size:36px;display:grid;place-items:center;margin-bottom:18px}.win-kicker{color:var(--lime)}.win-overlay h2{font-size:clamp(32px,5vw,50px);margin:10px 0 4px;letter-spacing:-1px}.win-overlay p{color:#b7c3d6;font-size:14px;max-width:280px}.win-overlay strong{color:var(--text)}.primary-btn{border:0;border-radius:9px;background:var(--lime);color:#172016;padding:13px 19px;margin-top:18px;font-size:13px;font-weight:850;display:flex;gap:24px;align-items:center}.primary-btn:hover{filter:brightness(1.09)}
@media(max-width:1060px){.page-shell{width:min(930px,calc(100% - 42px))}.play-layout{grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr)}.stats{gap:14px}.game-card{padding:18px}.rules-strip{grid-template-columns:repeat(2,1fr);gap:20px}}
@media(max-width:760px){.page-shell{width:calc(100% - 30px)}.site-header{height:73px}.brand{font-size:23px}.edition{font-size:9px;letter-spacing:.8px}.hero{padding:36px 0 29px}.hero h1{letter-spacing:-1.9px;font-size:clamp(32px,7vw,48px)}.intro{font-size:14px}.play-layout{grid-template-columns:1fr}.sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.controls-card{grid-column:1/-1}.color-options{grid-template-columns:repeat(4,minmax(0,1fr))}.color-option{min-height:78px}.rules-strip{margin-top:36px}.site-footer{gap:18px}}
@media(max-width:500px){.page-shell{width:calc(100% - 22px)}.brand-symbol{width:27px;height:27px}.edition-divider{display:none}.edition{font-size:9px}.hero{padding-top:29px}.hero h1{font-size:35px;letter-spacing:-1.4px}.game-head{align-items:end}.game-head h2{font-size:19px}.section-kicker{font-size:9px}.stats{gap:10px}.stat-value{font-size:22px}.stat-label{font-size:8px;letter-spacing:.6px}.game-card{padding:10px;border-radius:12px}.game-head{padding:9px 7px 0}.board-frame{padding:5px}.board{gap:2px}.tile{border-radius:2px}.board-foot{padding:13px 7px 4px}.board-foot p{max-width:66%;font-size:11px}.text-btn{font-size:11px}.sidebar{grid-template-columns:1fr}.color-options{grid-template-columns:repeat(2,1fr)}.side-card{padding:20px}.rules-strip{grid-template-columns:1fr 1fr;gap:23px}.rules-heading{grid-column:1/-1}.site-footer{flex-direction:column;gap:7px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
