:root{--bg:#0e1113;--panel:#171c1f;--panel2:#1d2428;--text:#f4f5f5;--muted:#9ca8ae;--line:#323c42;--x:#f05b4f;--o:#20b6d2;--ease:cubic-bezier(.22,1,.36,1);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:dark}*{box-sizing:border-box}html{min-height:100%;background:var(--bg);scrollbar-gutter:stable}body{margin:0;color:var(--text);font-size:15px;line-height:1.5;min-height:100svh;-webkit-tap-highlight-color:transparent}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0}button:disabled{cursor:default;opacity:.42}a{color:inherit;text-decoration:none}button,a,select,input{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--o);outline-offset:5px}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-weight:540;letter-spacing:-.065em;line-height:1.03;font-size:clamp(44px,5vw,66px)}h2{font-size:32px;line-height:1.12;letter-spacing:-.045em;font-weight:560;margin:5px 0 20px}h3{font-size:22px;font-weight:550}.muted{color:var(--muted);line-height:1.65}.micro{color:var(--muted);font-size:12px;line-height:1.65}.eyebrow,.field-label,.tiny{font-size:10px;font-weight:650;letter-spacing:.17em;text-transform:uppercase}.eyebrow{color:var(--muted);margin-bottom:22px}.x{color:var(--x)}.o{color:var(--o)}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.wide{width:100%}.primary,.secondary{min-height:48px;padding:13px 20px;border-radius:13px;transition:background .2s,box-shadow .2s,transform .2s;text-align:center;font-size:13px;font-weight:650}.primary{background:#ecf1f2;color:#141b1f;box-shadow:0 0 0 1px #ffffff12}.primary:hover{background:white;box-shadow:0 8px 28px #ffffff13}.secondary{background:#ffffff04;border:1px solid #ffffff20}.secondary:hover{background:#ffffff09;border-color:#ffffff38}.text-btn,.icon-btn,.home-links button{background:transparent}.text-btn{font-size:12px;font-weight:550;padding:12px;color:var(--muted);border-radius:10px}.text-btn:hover{color:white;background:#ffffff06}.icon-btn{height:42px;min-width:42px;border-radius:50%;display:inline-grid;place-items:center;font-size:19px;border:1px solid #ffffff13;color:#c4cdd1}.icon-btn:hover{border-color:#ffffff3c;background:#ffffff05}.lang{font-size:11px;font-weight:650;letter-spacing:.09em}.topbar{height:88px;max-width:1220px;padding:0 42px;margin:auto;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:2}.brand{background:none;padding:8px 0;display:flex;align-items:center}.brand img{width:128px;height:auto}.top-tools{display:flex;align-items:center;gap:9px}.network{font-size:11px;color:var(--muted);max-width:220px}.ambient{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}.aura{position:absolute;width:650px;height:650px;border-radius:50%;opacity:.12;filter:blur(90px);animation:drift 22s ease-in-out infinite alternate}.aura.coral{background:radial-gradient(circle,#923427,transparent 67%);top:-330px;left:25%}.aura.cyan{background:radial-gradient(circle,#146072,transparent 65%);bottom:-340px;right:-80px;animation-delay:-8s}.grid-field{position:absolute;inset:0;background-image:linear-gradient(#ffffff02 1px,transparent 1px),linear-gradient(90deg,#ffffff02 1px,transparent 1px);background-size:80px 80px;mask-image:linear-gradient(180deg,transparent,#0009,transparent)}main,footer{position:relative;z-index:1}.screen{animation:enter .48s var(--ease) both}.home-screen{max-width:1190px;margin:auto;min-height:calc(100svh - 185px);display:grid;grid-template-columns:1fr 1fr;align-items:center;position:relative;padding:60px 48px 90px;gap:32px}.home-copy{z-index:1;max-width:460px}.home-copy h1{font-size:clamp(60px,6.8vw,90px);white-space:nowrap;font-weight:500}.hero-lead{font-size:18px;line-height:1.65;color:#c8d2d7;max-width:360px;margin-top:24px}.sublead{font-size:13px;color:var(--muted);margin-top:8px}.home-actions{margin-top:34px;max-width:360px;display:grid;gap:12px}.big{min-height:60px}.home-actions>.primary{display:flex;justify-content:space-between;align-items:center;padding:0 24px;font-size:14px}.home-actions>.primary>span:last-child{font-size:23px;font-weight:400}.home-actions .two .secondary{display:flex;flex-direction:column;justify-content:center;gap:3px;font-size:13px;padding:14px 10px;background:linear-gradient(140deg,#ffffff06,#ffffff02)}.home-actions small{font-size:10px;font-weight:400;color:var(--muted)}.resume{display:flex;justify-content:space-between;color:#c0dbe0;background:transparent;border:1px solid #20b6d233;padding:12px 18px;border-radius:12px;font-size:12px}.home-links{display:flex;align-items:center;gap:16px;margin-top:25px}.home-links button{padding:5px 0;color:var(--muted);font-size:12px}.home-links button:hover{color:white}.home-links i{height:12px;width:1px;background:var(--line)}.home-bottom{position:absolute;bottom:24px;left:48px;right:48px;display:flex;justify-content:space-between;border-top:1px solid #ffffff09;padding-top:22px;color:#79878e}.home-bottom .tiny{font-size:9px;letter-spacing:.14em}.showcase{position:relative;min-height:430px;display:grid;place-items:center;perspective:1100px}.demo-stage{width:330px;transform:rotateX(49deg) rotateZ(-31deg);transform-style:preserve-3d;animation:float 9s ease-in-out infinite;position:relative}.demo-board{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;background:#171d22;border:1px solid #63707955;padding:12px;border-radius:25px;box-shadow:-9px 13px 0 #0a0f12,-10px 14px 0 #4c5c6430,-20px 32px 40px #0008;transform-style:preserve-3d}.demo-cell{aspect-ratio:1;border:1px solid #62717935;border-radius:12px;background:linear-gradient(145deg,#212b31,#171e23);position:relative;transform-style:preserve-3d}.demo-token{position:absolute;inset:11%;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center;background:#192227;font-size:28px;line-height:1;box-shadow:0 5px 0 #0b1013,0 6px 0 currentColor;transform:translateZ(var(--lift,14px));text-shadow:0 0 15px currentColor;animation:demoDrop .7s var(--ease) both;backface-visibility:hidden}.demo-token.x{background:linear-gradient(135deg,#652e2b,#312125)}.demo-token.o{background:linear-gradient(135deg,#15414c,#18262f)}.demo-cell.locked .demo-token{border-radius:10px;background:#271b1d;box-shadow:0 6px 0 #0a1013,0 7px 0 #f05b4f88}.demo-cell.won{border-color:var(--x);box-shadow:0 0 17px #f05b4f33;transition:all .8s}.orbit{position:absolute;border:1px solid #63737e13;border-radius:50%;width:420px;height:420px}.orbit2{width:505px;height:505px;border-style:dashed;border-color:#63737e12;animation:orbit 120s linear infinite}.orbit1::before{content:'';position:absolute;width:6px;height:6px;top:60px;right:65px;background:var(--o);box-shadow:0 0 13px #20b6d299;border-radius:50%}.demo-caption{position:absolute;bottom:0;width:290px;display:flex;gap:15px;align-items:center;color:#c0c9ce;letter-spacing:.18em;font-size:11px}.demo-step{color:var(--x)}.demo-rule{height:1px;background:#52606955;flex:1}.demo-counter{color:#59666d}.contained{max-width:1130px;margin:auto;padding:24px 40px 60px}.section-heading{margin-bottom:35px}.section-heading .eyebrow{margin-bottom:14px}.section-heading .muted{margin-top:16px}.back-btn{margin:0 0 25px -12px}.setup-layout{display:grid;grid-template-columns:1.65fr 1fr;gap:32px;align-items:start}.panel{background:linear-gradient(145deg,#1b2328d9,#141a1eee);border:1px solid #ffffff10;border-radius:20px;padding:25px}.setup-options{position:sticky;top:22px}.field-label{display:block;color:var(--muted);margin:0 0 12px}.variant-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.variant-card{text-align:left;min-height:135px;border-radius:16px;padding:20px;background:#ffffff04;border:1px solid #ffffff15;position:relative;overflow:hidden;transition:background .2s,border-color .2s}.variant-card:hover{background:#ffffff06}.variant-card[aria-pressed=true]{border-color:#20b6d282;background:linear-gradient(135deg,#20b6d213,#20b6d204)}.variant-card[aria-pressed=true]::after{content:'✓';position:absolute;top:16px;right:16px;color:var(--o);font-size:12px}.variant-card b{display:block;font-size:15px;font-weight:550;margin:9px 0 6px}.variant-card small{display:block;font-size:11px;line-height:1.65;color:var(--muted);max-width:210px}.variant-card .variant-glyph{font-size:16px;font-weight:400;color:#b2c5cf;font-family:ui-monospace,monospace}.variant-card:first-child{grid-column:1/-1;min-height:115px}.variant-card:first-child .variant-glyph{float:left;width:53px;font-size:25px;margin-top:16px}.variant-card:first-child small{max-width:none}.setup-options select{width:100%;background:#11181c;border:1px solid #42515b;color:#ecf2f3;border-radius:11px;height:46px;padding:0 12px;font-size:13px;margin-bottom:20px}.segment{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:22px}.segment button{border-radius:10px;padding:11px;border:1px solid #ffffff16;background:none;font-size:20px}.segment button:first-child{color:var(--x)}.segment button:last-child{color:var(--o)}.segment button[aria-pressed=true]{background:#ffffff07;border-color:#ffffff66}.segment small{display:block;font-size:9px;color:var(--muted)}.setup-summary{border-top:1px solid #ffffff10;margin-top:10px;padding:20px 0;font-size:13px}.setup-summary strong{font-weight:550}.setup-summary p{color:var(--muted);font-size:12px;line-height:1.7;margin-top:8px}.setup-options .micro{margin-top:-10px;margin-bottom:17px}.setup-summary .micro{margin:10px 0 0}.join-box{margin-top:25px;border-top:1px solid #ffffff10;padding-top:20px}.input-row{display:flex;gap:8px}.input-row input{min-width:0;width:100%;border:1px solid var(--line);border-radius:10px;background:#10171a;color:white;text-transform:uppercase;letter-spacing:.17em;padding:10px;font-family:ui-monospace,monospace}.error-text{font-size:12px;color:#f89e96;margin-top:15px}.narrow{max-width:450px;margin:30px auto 70px;padding:0 24px;text-align:center}.narrow>.back-btn{display:block;text-align:left}.lobby-orbit{height:120px;display:flex;align-items:center;justify-content:center;gap:22px}.lobby-orbit .player-icon{width:66px;height:66px;font-size:34px}.lobby-orbit i{width:46px;height:1px;background:linear-gradient(90deg,var(--x),var(--o));animation:lobbyPulse 2s ease infinite}.narrow h1{font-size:40px;margin-bottom:18px}.room-code{font-family:ui-monospace,monospace;letter-spacing:.3em;font-size:38px;margin:28px 0 10px;padding-left:.3em}.narrow .two,.narrow>.primary{margin:28px 0 16px}.narrow input{width:100%;margin-top:16px;background:var(--panel);color:white;border:1px solid var(--line);border-radius:8px;padding:10px;font-size:11px}.game-screen{max-width:590px;margin:0 auto;padding:5px 24px 35px}.game-top{display:flex;align-items:center;gap:14px;margin-bottom:24px}.game-top .icon-btn{font-size:16px}.game-rule{flex:1;display:flex;flex-direction:column;gap:3px}.game-rule strong{font-weight:500;font-size:14px}.game-rule small,.move-number{font-size:10px;color:var(--muted);letter-spacing:.035em}.scoreboard{display:flex;align-items:center;gap:10px;margin-bottom:22px}.player-card{display:flex;align-items:center;gap:10px;flex:1;border:1px solid #ffffff10;border-radius:13px;padding:12px;min-width:0;background:#141b20;transition:border-color .3s,background .3s}.player-card.active.x{border-color:#f05b4f70;background:linear-gradient(110deg,#f05b4f0a,#141b20)}.player-card.active.o{border-color:#20b6d270;background:linear-gradient(110deg,#20b6d20a,#141b20)}.player-card div{min-width:0;color:var(--text)}.player-card b{display:block;font-weight:500;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-card small{display:block;font-size:11px;color:var(--muted)}.player-icon{display:inline-grid;place-items:center;width:35px;height:35px;flex-shrink:0;border:1px solid currentColor;border-radius:50%;font-size:21px;line-height:1;font-weight:500}.player-icon.x{border-radius:10px}.score-divider{text-align:center;min-width:32px}.score-divider>span{display:block;margin:auto;width:4px;height:4px;background:#58666d;border-radius:50%}.score-divider small{font-size:8px;color:var(--muted);display:block;max-width:47px;margin-top:6px}.turn-status{min-height:51px;margin-bottom:10px}.turn-status>p:first-child{font-size:15px;font-weight:500;letter-spacing:-.01em}.turn-status .micro{font-size:11px;margin-top:3px}.turn-status .thinking::after{content:' ···';display:inline-block;animation:lobbyPulse 1.5s ease infinite}.clock{font-size:20px;font-variant-numeric:tabular-nums;margin-left:auto;font-weight:500;color:var(--text)}.clock.urgent{color:#f39786}.supply{display:flex;justify-content:space-between;font-size:10px;margin-bottom:10px;letter-spacing:.035em}.board-shell{position:relative;border-radius:23px;padding:12px;background:linear-gradient(145deg,#242d34,#151b20);border:1px solid #56677366;box-shadow:0 3px 0 #080c0f,0 4px 0 #57636b44,0 23px 65px #0004;isolation:isolate}.board{display:grid;grid-template-columns:repeat(var(--n,4),1fr);gap:9px}.cell{position:relative;aspect-ratio:1;border:1px solid #ffffff12;background:linear-gradient(145deg,#1b2329,#141b20);border-radius:13px;color:#45535b;overflow:hidden;opacity:1!important;touch-action:manipulation;transition:background .15s,border-color .15s;min-width:0;padding:0}.cell.legal:hover{border-color:#94aab555;background:#28353c}.cell.legal::after{content:'';position:absolute;inset:auto 48% 48%;height:4px;width:4px;border-radius:50%;background:#5a6c7666}.cell.occupied::after{display:none}.cell>small{position:absolute;top:7px;left:9px;color:#75878f;font-size:8px;font-family:ui-monospace,monospace;z-index:7;line-height:1}.cell .token{position:absolute;inset:23% 20% 17%;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center;font-size:clamp(23px,4.2vw,38px);font-weight:450;line-height:1;transform:translateY(calc(var(--layer,0)*-7px));box-shadow:0 3px 0 #080d10,0 4px 0 currentColor;z-index:var(--z,1);background:linear-gradient(135deg,#29404a,#16252d)}.cell .token.x{background:linear-gradient(135deg,#54302e,#291d20);border-color:#f05b4f80}.cell .token.o{border-color:#20b6d280}.cell .token.buried{color:#6b7e87;font-size:0;background:#1d2a30;border-color:#60727c66}.cell .token.buried.x{background:#312527;border-color:#82515088}.cell .token.buried.o{background:#19303a;border-color:#32647488}.cell .token.enter{animation:pieceDrop .36s var(--ease) both}.cell .pips{position:absolute;bottom:6px;left:0;right:0;display:flex;justify-content:center;gap:3px;height:3px;z-index:7}.pips i{width:6px;height:2px;border-radius:1px;background:#ffffff13}.pips i.filled{background:currentColor;opacity:.7}.cell.owner-x{color:var(--x)}.cell.owner-o{color:var(--o)}.cell .lock-plate{position:absolute;inset:15%;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg,#3d2426,#231b20);border:1px solid #f05b4f77;box-shadow:inset 0 1px 0 #ffffff12,0 4px 0 #0a0f12;font-size:38px;z-index:6;line-height:1}.cell.owner-o .lock-plate{border-color:#20b6d277;background:linear-gradient(135deg,#173942,#14252d)}.cell.locked{border-color:#f05b4f40}.cell.locked.owner-o{border-color:#20b6d240}.cell .lock-label{position:absolute;bottom:7px;left:0;right:0;font-size:6px;font-weight:700;letter-spacing:.15em;z-index:8;color:currentColor}.cell.lock-hit::before,.cell.take-hit::before{content:'';position:absolute;inset:2px;border:1px solid currentColor;border-radius:12px;z-index:10;pointer-events:none;animation:impact .65s var(--ease) both}.cell.lock-hit .lock-plate{animation:lockPress .42s var(--ease)}.cell.blocked{border:1px dashed #a4b6c055}.cell.blocked .ban{position:absolute;right:6px;top:6px;font-size:10px;color:#bdcbd1;z-index:10}.cell.hint{box-shadow:inset 0 0 0 2px #e9eff0}.cell.source{box-shadow:inset 0 0 0 2px #9b87df}.cell.winning{border-color:currentColor;box-shadow:inset 0 0 20px color-mix(in srgb,currentColor 12%,transparent);animation:claim .8s var(--ease) both;animation-delay:calc(var(--order)*100ms)}.win-lines{position:absolute;inset:12px;width:calc(100% - 24px);height:calc(100% - 24px);z-index:9;pointer-events:none;overflow:visible}.win-lines path{fill:none;stroke:currentColor;stroke-width:1;stroke-linecap:round;stroke-dasharray:150;stroke-dashoffset:150;animation:trace .8s var(--ease) .24s forwards;filter:drop-shadow(0 0 1px currentColor)}.action-strip{display:flex;justify-content:space-between;gap:10px;min-height:36px;margin:13px 3px 5px;font-size:10px;color:var(--muted);letter-spacing:.05em}.connection::before{content:'●';color:var(--o);font-size:7px;margin-right:5px}.game-buttons{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;min-height:43px}.game-buttons .secondary{min-height:37px;font-size:11px;padding:8px 15px}.game-buttons .armed{background:#9b87df18;border-color:#9b87df}.hint-text{font-size:11px;text-align:center;margin-top:12px;color:#bdd4dc;min-height:17px}.game-screen #onlineFeedback{text-align:center}.countdown{position:absolute;inset:0;background:#101619de;border-radius:22px;z-index:12;display:grid;place-items:center;font-size:86px;color:white;font-weight:300;backdrop-filter:blur(6px)}.countdown.pop{animation:countPop .6s var(--ease)}body.playing .ambient{opacity:.35}body.playing .aura{animation-play-state:paused}body.playing footer{display:none}body.playing .topbar{height:70px}.game-screen .board-shell{animation:boardIn .6s var(--ease)}dialog{color:var(--text);background:linear-gradient(145deg,#202a30,#121a1f);border:1px solid #5d727b66;padding:30px;width:min(430px,calc(100% - 32px));max-height:calc(100svh - 38px);overflow-y:auto;border-radius:23px;box-shadow:0 35px 120px #0008;position:fixed}dialog[open]{animation:dialogIn .25s var(--ease)}dialog::backdrop{background:#05090ccb;backdrop-filter:blur(8px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading .eyebrow{margin:0}.close{margin:-9px -10px 12px 15px;border:0;font-size:26px}.toggle{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid #ffffff0d;padding:17px 0}.toggle b{display:block;font-weight:550;font-size:14px}.toggle small{display:block;font-size:11px;color:var(--muted);line-height:1.6;margin-top:4px}.toggle input{appearance:none;width:39px;height:23px;border-radius:20px;background:#41525b;flex-shrink:0;position:relative;cursor:pointer;margin:0;transition:background .2s}.toggle input::after{content:'';width:17px;height:17px;position:absolute;top:3px;left:3px;border-radius:50%;background:#eaf0f2;transition:transform .2s}.toggle input:checked{background:#21798b}.toggle input:checked::after{transform:translateX(16px)}.volume{display:flex;align-items:center;gap:15px;margin:0 0 10px;font-size:11px;color:var(--muted)}.volume input{width:100%;accent-color:var(--o)}dialog>.two{margin-top:17px}dialog>.primary{margin-top:15px}dialog .micro{margin:8px 0 14px}.menu-link{display:block;border-bottom:1px solid #ffffff0c;background:none;width:100%;padding:16px 0;text-align:left;font-size:13px;color:#d5dfe2}.file-label{cursor:pointer}.file-label input{display:none}.result-close{position:absolute;top:20px;right:22px}.result-emblem{width:80px;height:80px;font-size:50px;margin:10px auto 22px;border-radius:22px;border:1px solid currentColor;background:#ffffff03;display:grid;place-items:center;box-shadow:0 0 50px #ffffff05}.result-emblem.o{border-radius:50%}#resultDialog{text-align:center;padding:35px 28px 22px}#resultDialog h2{font-size:35px;line-height:1.13;margin:6px 0 15px}#resultDialog .eyebrow{margin:0}#resultDialog .muted{font-size:13px}.result-score{display:flex;justify-content:center;gap:35px;margin:25px 0;font-size:22px;font-variant-numeric:tabular-nums}.result-score small{display:block;font-size:10px;color:var(--muted);font-weight:400}.result-score>span{min-width:60px}.tutorial-tile{width:125px;height:125px;display:block;margin:24px auto;border:1px solid #ffffff20;border-radius:19px;background:#10181c;position:relative}.tutorial-tile .token{position:absolute;inset:24%;border:1px solid currentColor;border-radius:50%;font-size:35px;background:#19252b;display:grid;place-items:center;transform:translateY(calc(var(--layer,0)*-9px));box-shadow:0 4px 0 #060b0d;animation:pieceDrop .4s var(--ease)}.tutorial-tile .locked{border-radius:12px}.tutorial-tile.line-demo{display:flex;align-items:center;justify-content:center;gap:8px;width:240px;color:var(--x)}.tutorial-tile.line-demo span{border:1px solid #f05b4f77;border-radius:8px;width:43px;height:48px;font-size:24px;display:grid;place-items:center}.tutorial-progress{display:flex;justify-content:center;gap:7px;margin-bottom:20px}.tutorial-progress i{width:24px;height:2px;background:#354851}.tutorial-progress i.active{background:var(--o)}#tutorialDialog h3{text-align:center;margin-bottom:13px}#tutorialDialog .muted{font-size:13px;min-height:83px}.toast{position:fixed;left:50%;bottom:calc(25px + env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);padding:13px 22px;border-radius:13px;border:1px solid #60737d60;background:#223039;color:#eef5f6;z-index:50;font-size:12px;box-shadow:0 10px 45px #0007;pointer-events:none}.toast{animation:toastIn .3s var(--ease)}footer{max-width:1130px;margin:auto;padding:27px 30px 32px;display:flex;justify-content:space-between;align-items:center;color:#85949c;gap:20px}footer nav{display:flex;flex-wrap:wrap;gap:20px;align-items:center;font-size:10px}.footer-brand{font-size:9px;letter-spacing:.15em}footer a:hover{color:white}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}.motion-off *,.motion-off *::before,.motion-off *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.motion-off .win-lines path{stroke-dashoffset:0}.motion-off .demo-stage{transform:rotateX(49deg) rotateZ(-31deg)}
@keyframes enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes drift{to{transform:translate(80px,50px)}}@keyframes float{50%{transform:rotateX(49deg) rotateZ(-29deg) translateY(-12px)}}@keyframes orbit{to{transform:rotate(360deg)}}@keyframes demoDrop{from{opacity:0;transform:translateZ(95px)}to{opacity:1;transform:translateZ(var(--lift,14px))}}@keyframes pieceDrop{from{opacity:0;translate:0 -26px;scale:.9}to{opacity:1;translate:0 0;scale:1}}@keyframes lockPress{0%{scale:1.13;opacity:.5}55%{scale:.94}100%{scale:1;opacity:1}}@keyframes impact{0%{opacity:.7;scale:.72}100%{opacity:0;scale:1.11}}@keyframes trace{to{stroke-dashoffset:0}}@keyframes claim{from{background:#ffffff13}to{background:#ffffff04}}@keyframes boardIn{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}@keyframes lobbyPulse{50%{opacity:.35}}@keyframes dialogIn{from{opacity:0;translate:0 16px;scale:.98}to{opacity:1;translate:0 0;scale:1}}@keyframes countPop{from{opacity:0;scale:1.13}20%{opacity:1}to{opacity:1;scale:.98}}@keyframes toastIn{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
@media(max-width:850px){.topbar{padding:0 26px}.home-screen{padding:40px 30px 75px;gap:0;grid-template-columns:1.1fr 1fr}.home-copy h1{font-size:61px}.hero-lead{font-size:16px}.demo-stage{width:260px}.demo-board{gap:6px;padding:9px;border-radius:20px}.demo-cell{border-radius:9px}.demo-token{font-size:24px}.orbit1{width:290px;height:290px}.orbit2{width:345px;height:345px}.showcase{min-height:340px}.demo-caption{width:225px;font-size:10px}.home-bottom{left:30px;right:30px}.setup-layout{gap:20px;grid-template-columns:1.3fr 1fr}.contained{padding:15px 26px 40px}.variant-card{padding:16px}.setup-options{padding:19px}}
@media(max-width:640px){html{scrollbar-gutter:auto}.topbar{height:73px;padding:0 22px}.brand img{width:112px}.top-tools{gap:6px}.icon-btn{height:37px;min-width:37px}.home-screen{min-height:auto;padding:28px 24px 25px;display:flex;flex-direction:column;overflow:hidden}.home-copy{width:100%;text-align:center;max-width:400px}.home-copy .eyebrow{font-size:8px;letter-spacing:.17em;margin-bottom:18px}.home-copy h1{font-size:60px;letter-spacing:-.065em;white-space:normal}.hero-lead{font-size:14px;max-width:270px;line-height:1.65;margin:17px auto 0}.sublead{font-size:11px;margin-top:8px}.home-actions{margin:25px auto 0;max-width:360px}.home-actions .big{min-height:54px}.home-links{justify-content:center;margin-top:20px}.showcase{min-height:260px;width:100%;order:2;max-width:360px;margin:20px auto 28px}.demo-stage{width:214px}.demo-board{gap:5px;border-radius:17px;padding:8px}.demo-cell{border-radius:7px}.demo-token{font-size:20px}.orbit1{width:242px;height:242px}.orbit2{width:284px;height:284px}.orbit1::before{top:30px;right:37px}.demo-caption{bottom:1px;width:225px;font-size:9px}.home-bottom{position:static;order:3;width:100%;padding-top:16px}.home-bottom .tiny{font-size:7px;letter-spacing:.08em}.home-bottom>.tiny:last-child{display:none}footer{padding:15px 24px 28px;flex-direction:column;gap:15px}footer nav{justify-content:center;gap:17px;font-size:9px}.footer-brand{display:none}.contained{padding:4px 20px 35px}.section-heading{margin-bottom:24px}.section-heading h1{font-size:43px}.section-heading .muted{font-size:12px;margin-top:12px}.section-heading .eyebrow{font-size:8px}.back-btn{margin-bottom:17px}.setup-layout{display:flex;flex-direction:column;gap:25px}.rules-panel,.setup-options{width:100%}.variant-grid{gap:9px}.variant-card{min-height:125px;padding:15px}.variant-card small{font-size:10px}.variant-card b{font-size:14px}.variant-card:first-child{min-height:110px}.setup-options{position:static;padding:22px}.game-screen{padding:3px 16px 24px}.game-top{margin-bottom:18px}.game-rule strong{font-size:13px}.game-rule small{font-size:9px}.move-number{font-size:9px}.scoreboard{gap:7px;margin-bottom:18px}.player-card{padding:10px;gap:8px}.player-card b{font-size:11px}.player-icon{height:30px;width:30px;font-size:18px}.score-divider{min-width:12px}.score-divider small{font-size:7px}.board-shell{padding:9px;border-radius:18px}.board{gap:7px}.cell{border-radius:10px}.cell>small{top:6px;left:7px;font-size:7px}.cell .token{inset:26% 19% 19%;font-size:29px;transform:translateY(calc(var(--layer,0)*-5px))}.cell .lock-plate{font-size:30px;border-radius:8px}.cell .lock-label{bottom:6px;font-size:5px}.cell .pips{bottom:5px}.pips i{width:5px}.win-lines{inset:9px;width:calc(100% - 18px);height:calc(100% - 18px)}.clock{font-size:15px}.turn-status{min-height:47px;margin-bottom:8px}.turn-status>p:first-child{font-size:14px}.turn-status .micro{font-size:10px}.action-strip{font-size:9px;margin-top:13px;min-height:25px}.game-buttons{gap:8px}.game-buttons .text-btn{font-size:11px}.game-buttons .primary{font-size:11px;min-height:42px}.hint-text{font-size:10px}body.playing .topbar{height:64px}.network{display:none}dialog{padding:25px 23px;border-radius:20px}dialog h2{font-size:29px}.narrow h1{font-size:37px}.aura{filter:blur(60px);opacity:.08}.game-screen .board-shell{box-shadow:0 3px 0 #080c0f,0 4px 0 #57636b44,0 16px 30px #0003}dialog::backdrop{backdrop-filter:none}.showcase{pointer-events:none}}
@media(max-width:360px){.home-copy h1{font-size:51px}.home-screen{padding-left:20px;padding-right:20px}.cell .token{font-size:23px}.player-card{padding:8px}.game-buttons{gap:3px}.clock{font-size:14px}}
@media(prefers-reduced-motion:reduce){:root:not(.motion-enabled) *,:root:not(.motion-enabled) *::before,:root:not(.motion-enabled) *::after{animation:none!important;transition:none!important}:root:not(.motion-enabled) .win-lines path{stroke-dashoffset:0}}

@media(max-width:640px){.setup-options{order:0}.rules-panel{order:1}}
