:root{color-scheme:dark;--bg:#111b18;--panel:#19251f;--panel2:#1e2c24;--line:#334238;--ink:#f0f0e4;--muted:#9ca99d;--lime:#c1ed83;--gold:#e6c580;--blue:#89adc6;--radius:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.5}button,input{font:inherit}button,a{touch-action:manipulation}button{color:var(--ink);background:transparent;border:1px solid var(--line);border-radius:9px;padding:12px 18px;cursor:pointer;transition:background .15s,border-color .15s}button:hover:not(:disabled){background:#2b3d2c;border-color:#789267}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--lime);outline-offset:4px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.primary{background:var(--lime);border-color:var(--lime);color:#172017;font-weight:700;display:inline-flex;align-items:center;justify-content:space-between;gap:30px}.primary:hover:not(:disabled){background:#d5f5a8;border-color:#d5f5a8}.secondary{background:#27372a;font-weight:600}.quiet{border:0;background:#1d2b23}.text-button,.back-link{border:0;padding:8px 0;font-size:12px}.text-button:hover:not(:disabled),.back-link:hover:not(:disabled){background:transparent;color:var(--lime)}.danger{color:#e4ab94}.muted,.fine-print{color:var(--muted)}.fine-print{font-size:11px;line-height:1.6}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:650;color:var(--muted)}.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--lime);margin-right:8px}.site-header{max-width:1392px;margin:auto;padding:0 48px;height:94px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:24px}.brand{display:flex;align-items:center;gap:12px;font-size:15px;line-height:1.1;letter-spacing:1.7px;font-weight:800}.brand b{font-size:10px;letter-spacing:3.6px}.brand-symbol{font-size:35px;letter-spacing:-3px;color:var(--lime);font-weight:900;position:relative}.brand-symbol>span{position:absolute;font-size:18px;top:0;right:-7px}.site-header nav{display:flex;gap:6px}.nav-link{border:0;padding:10px 16px;color:var(--muted);font-size:12px}.nav-link.active{color:var(--ink);background:#26352a}.profile-button{display:flex;align-items:center;gap:8px;font-size:12px;border-color:var(--line);padding:9px 14px}.profile-dot{width:8px;height:8px;border-radius:50%;background:var(--lime)}main{max-width:1296px;margin:0 auto;padding:36px 0 48px}.page{min-height:65vh}.home-heading,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:24px}.home-heading{margin-bottom:26px}.build-label{color:var(--muted);font-size:10px;letter-spacing:.5px}.hero{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center;min-height:424px}.hero-copy h1{font-size:clamp(55px,5.5vw,78px);line-height:1.01;letter-spacing:-4px;font-weight:550;margin:16px 0 24px}.hero-copy h1 em{font-style:normal;color:var(--lime)}.hero-copy>p{max-width:410px;color:var(--muted);font-size:16px;line-height:1.7}.hero-actions{display:flex;gap:12px;margin-top:30px}.hero-actions button{padding:15px 22px}.hero-proof{display:flex;gap:16px;flex-wrap:wrap;font-size:9px;color:#92a38f;margin-top:24px}.hero-proof span:before{content:'· ';color:var(--lime)}.hero-art{border:1px solid var(--line);background:radial-gradient(ellipse at 75% 30%,#2a3b28 0,transparent 65%),#142119;border-radius:20px;position:relative;overflow:hidden;align-self:stretch;display:flex;flex-direction:column;justify-content:center}.art-tag{font-size:9px;letter-spacing:2px;color:#94a390;position:absolute;top:24px;left:26px}.snake-art{width:100%;max-height:420px;margin-top:20px}.art-caption{display:flex;justify-content:space-between;padding:0 26px 23px;font-size:10px;color:var(--muted)}.art-caption span:first-child{color:var(--ink)}.continue-card{display:flex;justify-content:space-between;align-items:center;background:#263526;border:1px solid #779261;border-radius:var(--radius);padding:20px 26px;margin-top:32px}.continue-card h2{margin:3px 0;font-size:22px}.continue-card p{font-size:12px;color:var(--muted);margin:4px 0}.play-section{margin-top:60px}.section-heading{margin-bottom:24px}.section-heading h2{font-size:25px;letter-spacing:-.7px;margin:5px 0}.section-heading>.muted{font-size:12px}.mode-cards{display:grid;grid-template-columns:1fr 1fr .92fr;gap:18px}.mode-card{text-align:left;background:var(--panel);border-radius:var(--radius);padding:24px;overflow:hidden}.mode-card.selected{border-color:#8dac67}.mode-card:hover{background:#1e2e23!important}.mode-no{font-size:9px;letter-spacing:1.3px;color:var(--muted)}.mode-card h3{display:flex;justify-content:space-between;font-size:25px;letter-spacing:-.5px;margin:19px 0 8px;font-weight:550}.mode-card h3 span{color:var(--lime);font-size:22px}.mode-card p{font-size:12px;color:var(--muted);max-width:280px;line-height:1.7;margin:0 0 18px}.card-meta{font-size:9px;letter-spacing:.3px;color:#becab7}.mini-arena,.mini-world{height:122px;margin:22px 0 10px;background-image:linear-gradient(#40513e55 1px,transparent 1px),linear-gradient(90deg,#40513e55 1px,transparent 1px);background-size:18px 18px;position:relative;border:1px solid #53634b88;border-radius:7px}.mini-arena i{position:absolute;left:20%;top:34%;width:42%;height:45%;border-left:13px solid #bbdc86;border-top:13px solid #bbdc86;border-radius:6px 0 0 0}.mini-arena b{position:absolute;right:14%;top:12%;width:21%;height:63%;border-bottom:9px solid #7d9eaf;border-right:9px solid #7d9eaf;border-radius:0 0 6px 0}.mini-arena>span{position:absolute;left:37%;top:62%;color:var(--gold);font-size:9px}.mini-world{background-size:25px 25px;border-style:dashed}.mini-world>div{position:absolute;inset:13px 55px;border:1px solid #91ad75;box-shadow:0 0 0 90px #111b1877;background:#4d644522}.mini-world>span{position:absolute;left:50%;top:30%;color:var(--lime);font-size:35px;transform:translateX(-50%)}.friends-card{border:1px solid var(--line);background:#1d2a22;border-radius:var(--radius);padding:26px;display:flex;flex-direction:column;align-items:flex-start}.friends-card h3{font-size:32px;font-weight:500;line-height:1.15;letter-spacing:-1px;margin:16px 0}.friends-card p{font-size:12px;color:var(--muted);line-height:1.7;margin:0 0 21px}.friends-card .secondary{width:100%;text-align:left;font-size:12px}.friends-card .text-button{margin:6px 0 10px;color:var(--ink)}.friends-card small{font-size:10px;color:#8e9c91;line-height:1.5;margin-top:auto}.how-strip{margin-top:50px;padding:38px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:grid;grid-template-columns:.8fr 1.8fr;gap:36px}.how-strip h2{font-size:29px;font-weight:500;letter-spacing:-.6px;line-height:1.2;margin:14px 0}.how-strip ol{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;list-style:none;padding:0;margin:0;align-items:center}.how-strip li>span{font-size:10px;color:var(--lime);border:1px solid #57744d;border-radius:50%;width:30px;height:30px;display:grid;place-items:center}.how-strip h3{font-size:15px;margin:15px 0 8px;font-weight:600}.how-strip p{font-size:12px;color:var(--muted);line-height:1.7;margin:0}.recent-section{margin-top:42px}.empty-state{border:1px dashed var(--line);border-radius:var(--radius);padding:32px;color:var(--muted);display:flex;align-items:center;gap:20px}.empty-symbol{font-size:32px;color:#6d8565}.empty-state h3{color:var(--ink);font-size:16px;margin:0 0 5px}.empty-state p{font-size:12px;margin:0}.history-list{display:grid;gap:12px}.history-row{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:20px;border:1px solid var(--line);border-radius:12px;padding:18px 22px;background:var(--panel)}.history-icon{height:38px;width:38px;display:grid;place-items:center;background:#2c3f29;border-radius:10px;color:var(--lime)}.history-row h3{font-size:14px;margin:0 0 4px}.history-row p,.history-row time{font-size:10px;color:var(--muted);margin:0}.history-result{font-size:12px;text-align:right}.history-result.win{color:var(--lime)}.history-result small{font-size:10px;display:block;color:var(--muted);margin-top:4px}.page-title{font-size:48px;font-weight:500;letter-spacing:-2px;line-height:1.1;margin:12px 0 16px}.panel{border:1px solid var(--line);border-radius:var(--radius);padding:28px;background:var(--panel)}.panel h2{font-size:24px;letter-spacing:-.6px;font-weight:550}.panel p{color:var(--muted);font-size:13px;line-height:1.8}.pill{border:1px solid #526347;padding:7px 12px;border-radius:100px;font-size:9px;letter-spacing:1px;color:var(--lime)}.lobby-layout{display:grid;grid-template-columns:1.6fr 1fr;gap:22px}.lobby-players{display:grid;grid-template-columns:1fr 1fr;gap:12px}.lobby-player{border:1px solid var(--line);border-radius:12px;padding:19px;display:flex;gap:12px;align-items:center;background:#152019}.lobby-player .avatar{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;color:#15201a;font-size:18px;font-weight:750}.lobby-player b{font-size:13px}.lobby-player small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.lobby-note{display:flex;align-items:center;gap:15px;margin-top:25px;padding-top:18px;border-top:1px solid var(--line)}.lobby-note>span{font-size:27px;color:var(--lime)}.lobby-note p{font-size:12px;margin:0}.lobby-controls>.primary,.lobby-controls>.secondary{width:100%;margin-top:15px}.lobby-controls>.text-button{display:block}.room-code{display:flex;flex-wrap:wrap;align-items:center;gap:9px;border:1px solid var(--line);border-radius:10px;padding:15px;margin-top:25px}.room-code>span{font-size:9px;color:var(--muted);letter-spacing:1px}.room-code b{margin-left:auto;font-size:22px;letter-spacing:3px;font-variant-numeric:tabular-nums}.room-code button{width:100%;font-size:11px;padding:8px}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:30px 0}.stat-grid span{font-size:11px;color:var(--muted)}.stat-grid b{display:block;font-size:39px;font-weight:550;margin-top:10px}.guide-layout{display:grid;grid-template-columns:1.5fr 1fr;gap:22px;margin-top:36px}.guide-layout>div{display:grid;gap:16px}.guide-layout .panel h2{font-size:22px;margin-top:0}.guide-aside{align-self:start;position:sticky;top:20px}.guide-aside .primary{width:100%}.guide-aside hr{border:0;border-top:1px solid var(--line);margin:30px 0}.guide-aside h3{font-weight:550}.game-page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;font-size:12px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px}.board-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#131f17}.board-top,.board-bottom{height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;gap:12px;color:var(--muted);font-size:10px;letter-spacing:.5px}.board-top b{color:var(--ink);font-size:10px;white-space:nowrap}.hud-right{display:flex;align-items:center;gap:12px}.hud-right button{border:0;padding:6px;font-size:10px;white-space:nowrap}.hud-right>span{white-space:nowrap;font-variant-numeric:tabular-nums}.canvas-wrap{height:520px;display:flex;padding:9px;background:#0e1811;position:relative}canvas{width:100%;height:100%;display:block;touch-action:none}.overlay{position:absolute;inset:0;background:#0c150dae;display:flex;align-items:center;justify-content:center;text-align:center}.overlay-box{background:#19261ff2;border:1px solid #63784d;border-radius:16px;padding:28px;max-width:min(440px,85%);box-shadow:0 16px 70px #0005}.overlay-box h2{font-size:26px;line-height:1.2;font-weight:550;letter-spacing:-.8px}.overlay-box p{font-size:13px;color:var(--muted);line-height:1.7}.overlay-box button{width:100%;margin-top:14px}.pot-card,.seats,.activity{border:1px solid var(--line);border-radius:12px;padding:20px;background:var(--panel)}.pot-card h2{font-size:42px;margin:10px 0;font-weight:500}.pot-card>div{display:flex;justify-content:space-between;color:var(--muted);font-size:10px}.seats,.activity{margin-top:12px}.section-title{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;color:var(--muted);margin-bottom:10px}.seat{border-top:1px solid var(--line);padding:11px 0;display:flex;align-items:center;gap:10px}.seat .avatar{width:27px;height:27px;border-radius:7px;display:grid;place-items:center;color:#142117;font-weight:800}.seat .name{font-size:12px;flex:1}.seat .money{text-align:right;font-size:12px}.seat small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.seat.out{opacity:.42}.seat.active .name:after{content:' •';color:var(--lime)}#log{height:66px;overflow:hidden;font-size:11px;line-height:2;color:var(--muted)}.decision{padding:16px 22px;background:var(--panel);border:1px solid var(--line);border-radius:12px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:14px;min-height:125px}.decision h3{font-size:26px;margin:5px 0;font-weight:550}.decision h3 small{color:var(--lime)}.decision p{font-size:11px;color:var(--muted);margin:0}.bet-panel{display:none}.betting .bet-panel{display:block;border:1px solid var(--line);border-radius:10px;background:#152219;padding:12px;width:min(740px,100%)}.bet-panel.is-turn{border-color:var(--lime);background:#20321f}.bet-heading{display:flex;justify-content:space-between;gap:12px;font-size:11px;letter-spacing:.3px}.bet-heading b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bet-heading span{color:var(--lime);white-space:nowrap;font-variant-numeric:tabular-nums;flex-shrink:0}.bet-panel #bet-detail{font-size:10px;margin:6px 0 3px;line-height:1.4}.bet-panel #bet-rule{font-size:10px;line-height:1.4;color:var(--gold);margin:0 0 9px;max-height:30px;overflow:auto}.actions{display:flex;gap:8px}.actions button{flex:1;min-height:44px;padding:9px 14px;font-size:12px}.actions #raise{background:var(--lime);color:#142113;border-color:var(--lime);font-weight:700}.actions #call{background:#30472c;border-color:#69865b}.actions #allin{color:var(--gold)}.dpad{display:none;text-align:center}.dpad button,.tutorial-dpad button{min-width:48px;min-height:44px;padding:7px 12px;margin:2px;touch-action:none}.game-footer{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted);margin-top:13px}.game-footer button{font-size:10px}.warning{color:var(--gold)!important}.counting{color:var(--lime)}body.game-focus{overflow:hidden}body.game-focus .site-header,body.game-focus .site-footer,body.game-focus .game-page-heading,body.game-focus .game-aside,body.game-focus .game-footer,body.game-focus .board-bottom{display:none}body.game-focus .board-card{position:fixed;inset:0 0 calc(150px + env(safe-area-inset-bottom));z-index:20;border:0;border-radius:0;display:flex;flex-direction:column}body.game-focus .board-top{height:42px;min-height:42px}body.game-focus .canvas-wrap{height:auto;min-height:0;flex:1;padding:4px 12px}body.game-focus .decision{position:fixed;inset:auto 0 0;min-height:0;height:calc(150px + env(safe-area-inset-bottom));padding:12px 20px calc(12px + env(safe-area-inset-bottom));margin:0;border:0;border-top:1px solid var(--line);border-radius:0;z-index:21;justify-content:center}body.game-focus.betting .player-position{display:none}.betting .dpad{display:none}.tutorial-layout{display:grid;grid-template-columns:1.25fr 1fr;gap:22px}.tutorial-canvas{height:480px;padding:12px;background:#0e1811}.tutorial-instructions h2{font-size:30px;line-height:1.2;margin:16px 0}.tutorial-instructions>small{display:block;color:var(--muted);font-size:10px;margin-top:18px}.tutorial-instructions #tutorial-actions{display:grid;gap:10px;margin:24px 0}.tutorial-dpad{text-align:center;margin-top:18px}.tutorial-dpad button{background:#26382a}.site-footer{max-width:1296px;margin:0 auto;padding:24px 0 30px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;align-items:center;color:#859486;font-size:10px}.brand-small{font-size:11px;letter-spacing:1.5px;font-weight:700;color:var(--ink)}dialog{background:var(--panel);color:var(--ink);border:1px solid #52684d;border-radius:16px;padding:30px;width:min(470px,calc(100vw - 32px));box-shadow:0 30px 100px #0008}dialog::backdrop{background:#07110ad0}dialog h2{font-size:28px;letter-spacing:-.7px;line-height:1.2;margin:12px 0 16px;font-weight:550}dialog p{font-size:13px;color:var(--muted);line-height:1.7}dialog label{display:block;font-size:11px;color:var(--muted);margin:20px 0}input{display:block;width:100%;padding:13px 15px;background:#101d15;color:var(--ink);border:1px solid #4b6344;border-radius:8px;margin-top:8px}#code-input{text-transform:uppercase;letter-spacing:4px;font-size:23px}.dialog-actions{display:flex;gap:10px;margin-top:25px}.dialog-actions button{flex:1;justify-content:center;font-size:12px}.form-error{color:#efb297}.form-error:empty{display:none}#notice{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#293b25;border:1px solid #87a35e;color:var(--ink);font-size:12px;line-height:1.5;padding:13px 18px;border-radius:10px;max-width:min(600px,calc(100vw - 30px));z-index:99;box-shadow:0 8px 40px #0005}body.game-focus #notice{bottom:170px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:1392px){main,.site-footer{margin-left:48px;margin-right:48px}.site-header{padding:0 48px}}@media(max-width:1000px){main,.site-footer{margin-left:28px;margin-right:28px}.site-header{padding:0 28px}.hero{gap:28px}.hero-copy h1{font-size:58px;letter-spacing:-3px}.hero-copy>p{font-size:14px}.hero-actions{flex-wrap:wrap}.mode-cards{grid-template-columns:1fr 1fr}.friends-card{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:0 30px}.friends-card h3{grid-column:1;margin:10px 0}.friends-card p{grid-column:1}.friends-card .secondary,.friends-card .text-button,.friends-card small{grid-column:2}.friends-card .secondary{grid-row:2;align-self:center}.friends-card .text-button{grid-row:3;align-self:start}.friends-card small{grid-row:3;align-self:end}.how-strip{grid-template-columns:1fr}.how-strip>div{display:flex;align-items:center;justify-content:space-between;gap:20px}.how-strip>div .eyebrow{max-width:120px}.lobby-layout{grid-template-columns:1.4fr 1fr}.game-layout{grid-template-columns:1fr 230px}.canvas-wrap{height:440px}.game-aside .pot-card,.game-aside .seats,.game-aside .activity{padding:15px}.tutorial-layout{grid-template-columns:1.2fr 1fr}}
@media(max-width:760px){.site-header{height:78px;padding:0 20px;flex-wrap:wrap;gap:12px}.site-header nav{order:3;position:relative;width:100%;justify-content:center;padding:8px 0;border-bottom:1px solid var(--line)}.site-header{margin-bottom:48px}.nav-link{font-size:11px;padding:9px 14px}.brand{font-size:12px}.brand-symbol{font-size:31px}.brand b{font-size:9px}.profile-button{font-size:11px;padding:8px 10px}main,.site-footer{margin-left:20px;margin-right:20px}main{padding-top:24px}.home-heading .build-label{display:none}.hero{grid-template-columns:1fr;gap:24px;min-height:0}.hero-copy h1{font-size:60px;margin:12px 0 20px}.hero-copy>p{max-width:460px;font-size:15px}.hero-actions{margin-top:24px;flex-wrap:nowrap}.hero-actions button{font-size:12px;padding:13px 17px;gap:15px}.hero-proof{gap:7px 13px;font-size:9px;margin-top:20px}.hero-art{max-height:280px}.snake-art{margin-top:0;max-height:245px}.art-tag{top:15px;left:18px;font-size:8px}.art-caption{padding:0 18px 15px;font-size:9px}.play-section{margin-top:36px}.section-heading h2{font-size:23px}.section-heading>.muted{display:none}.mode-cards{gap:12px}.mode-card{padding:17px}.mode-card h3{font-size:21px}.mode-no{font-size:8px}.mini-arena,.mini-world{height:92px;margin-top:16px}.mode-card p{font-size:11px;line-height:1.6;min-height:70px}.card-meta{font-size:8px;line-height:1.4;display:block}.mini-world>div{inset:12px 25px}.friends-card{padding:24px;grid-template-columns:1fr;display:flex;gap:0}.friends-card h3 br{display:none}.friends-card h3{font-size:27px}.friends-card p{max-width:440px}.friends-card .secondary{max-width:400px}.friends-card .text-button{margin:10px 0}.friends-card small{max-width:450px}.how-strip{margin-top:32px;padding:28px 0;gap:24px}.how-strip>div{display:block}.how-strip h2{font-size:27px}.how-strip h2 br{display:none}.how-strip ol{grid-template-columns:1fr;gap:24px}.how-strip li{display:flex;gap:16px}.how-strip li>span{flex-shrink:0;margin-top:2px}.how-strip h3{margin:0 0 5px}.how-strip p{font-size:12px}.continue-card{padding:18px;gap:15px}.continue-card h2{font-size:19px}.continue-card .primary{font-size:11px;padding:10px;gap:7px}.page-title{font-size:36px;letter-spacing:-1.4px}.lobby-layout,.guide-layout,.tutorial-layout{grid-template-columns:1fr}.lobby-players{gap:10px}.lobby-player{padding:14px;gap:10px}.lobby-player .avatar{width:31px;height:31px;font-size:15px}.lobby-player b{font-size:12px}.panel{padding:21px}.guide-aside{position:static}.stat-grid{gap:10px}.stat-grid .panel{padding:16px}.stat-grid span{font-size:10px}.stat-grid b{font-size:29px}.history-row{grid-template-columns:auto 1fr auto;gap:12px;padding:16px}.history-row time{display:none}.history-row h3{font-size:12px}.history-result{font-size:11px}.history-icon{width:30px;height:30px}.empty-state{padding:24px;gap:15px}.empty-state h3{font-size:14px}.empty-state p{font-size:11px}.site-footer{flex-wrap:wrap;font-size:9px;gap:10px;padding-bottom:25px}.site-footer>span:nth-child(2){order:3;width:100%}.game-layout{grid-template-columns:1fr}.game-aside{display:grid;grid-template-columns:1fr 1.5fr;gap:12px}.game-aside .seats{margin:0}.game-aside .activity{display:none}.game-aside .pot-card{align-self:start}.canvas-wrap{height:410px}.decision{padding:14px;min-height:130px;flex-wrap:wrap}.dpad{display:block;text-align:center}.dpad button{background:#26372a}.betting .player-position{display:none}.game-footer{flex-wrap:wrap;gap:6px}.game-footer #connection{width:100%}.game-page-heading{font-size:10px}.board-top,.board-bottom{padding:0 10px;font-size:8px}.board-top b{font-size:8px}.hud-right{gap:7px}.hud-right button{font-size:9px}.actions button{padding:10px 7px;font-size:11px}.bet-heading{font-size:10px}.bet-panel #bet-rule{font-size:9px;max-height:30px}body.game-focus .board-card{bottom:calc(180px + env(safe-area-inset-bottom))}body.game-focus .decision{height:calc(180px + env(safe-area-inset-bottom));padding:9px 10px calc(9px + env(safe-area-inset-bottom));justify-content:space-between;flex-wrap:nowrap}body.game-focus .canvas-wrap{padding:4px}body.game-focus .player-position{max-width:calc(100% - 170px)}body.game-focus .player-position p{font-size:10px}body.game-focus .bet-panel{width:100%;padding:10px}body.game-focus #notice{bottom:200px}.tutorial-canvas{height:340px}.tutorial-layout{gap:15px}.tutorial-instructions h2{font-size:25px}.tutorial-dpad{display:block}.tutorial-instructions #tutorial-actions{margin:18px 0}.pill{font-size:8px}.section-heading{gap:15px}.page-tutorial .section-heading{align-items:flex-start}}
@media(max-width:380px){main,.site-footer{margin-left:14px;margin-right:14px}.hero-copy h1{font-size:52px}.hero-actions{gap:7px}.hero-actions button{padding:12px;font-size:11px}.mode-card{padding:13px}.mode-card h3{font-size:18px}.mode-card p{font-size:10px}.board-top b{font-size:7px}.hud-right{gap:4px}.dpad button{min-width:43px;padding:5px 8px}.actions{gap:5px}.actions button{font-size:10px;padding:8px 4px}.history-row{padding:13px}.history-result{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Keep compact navigation actions readable and touchable on narrow screens. */
.section-heading>.text-button{white-space:nowrap;min-height:44px;flex-shrink:0}.friends-card>.text-button{min-height:44px}
@media(max-height:500px) and (min-width:650px){
 body.game-focus .board-card{inset:0 190px 0 0}
 body.game-focus .decision{inset:0 0 0 auto;width:190px;height:100dvh;padding:12px;flex-direction:column;justify-content:center;border-top:0;border-left:1px solid var(--line);gap:16px;overflow:auto}
 body.game-focus .player-position{max-width:100%;width:100%}
 body.game-focus .player-position p{font-size:10px}
 body.game-focus .dpad{display:block;text-align:center}
 body.game-focus.betting .dpad{display:none}
 body.game-focus .bet-panel{padding:8px;width:100%}
 body.game-focus .bet-heading{flex-direction:column;align-items:flex-start}
 body.game-focus .actions{display:grid;grid-template-columns:1fr 1fr}
 body.game-focus .actions button{min-height:44px;padding:6px;font-size:10px}
 body.game-focus #notice{bottom:16px;max-width:calc(100vw - 220px)}
}
.cup-card{display:flex;gap:30px;align-items:center;justify-content:space-between;margin-top:24px;background:linear-gradient(110deg,#1d2c27,#1c2823);border-color:#425447}.cup-card h2{font-size:25px;letter-spacing:-.7px;margin:7px 0}.cup-card p{max-width:690px;margin:0;color:var(--muted);font-size:12px}.cup-card button{flex-shrink:0}#cup-dialog{width:min(580px,calc(100vw - 32px));max-height:85dvh}#cup-standings{max-height:47dvh;overflow:auto;margin-bottom:15px}.cup-standing{display:flex;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.cup-standing>b{flex:1;font-weight:600}.cup-standing small{display:block;color:var(--muted);font-size:9px;font-weight:400}#cup-overview{padding:0;min-height:28px;color:var(--lime)}@media(max-width:760px){.cup-card{display:block}.cup-card button{margin-top:18px;font-size:12px}.cup-card h2{font-size:23px}}
#cup-position{display:block;font-size:10px;color:var(--lime);margin:2px 0 5px}#cup-overview,#cup-pause{font-size:10px;padding:0 7px 0 0;min-height:28px}.cup-live-warning{color:var(--gold);border-left:3px solid var(--gold);padding-left:12px;font-weight:600}
.cup-controls{display:flex;align-items:center;gap:10px;margin-bottom:3px}.cup-controls:has(button:not([hidden])){min-height:28px}.cup-controls:has(button:not([hidden]))+.eyebrow{display:block}
.lobby-players.cup-roster{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.cup-roster .lobby-player{padding:11px;gap:8px}.cup-roster .lobby-player b{font-size:11px}.cup-roster .avatar{width:28px;height:28px;font-size:12px}.cup-roster small{font-size:8px}@media(max-width:760px){.lobby-players.cup-roster{grid-template-columns:repeat(2,minmax(0,1fr))}}
#revoke-session{min-height:44px}#cup-dialog{scrollbar-gutter:stable}

.market-section{margin:60px 0;padding-top:20px;scroll-margin-top:100px}.account-balance{text-align:right;display:grid;gap:4px}.account-balance strong{font-size:38px;color:var(--lime,#c1ed83)}.account-balance span,.account-balance small{color:#acb9ad}.market-tables{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0}.market-table{padding:24px;border:1px solid #3a5041;border-radius:18px;background:#1b2821}.market-table h3{font-size:30px;margin:12px 0}.market-table p{color:#b2c2b5;min-height:42px}.market-table button{width:100%;margin-top:12px}.market-entry{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px;margin:16px 0;border:1px solid #65834e;border-radius:16px;background:#253322}.market-entry p{margin:8px 0;color:#c2cdbf}.profile-badge{display:inline-flex;gap:12px;align-items:center;padding:18px;border:1px solid #b9d68a;border-radius:14px;margin:12px 12px 12px 0}.profile-badge b{color:#d5eaa9}.reentry-panel{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:18px;border:2px solid #c1ed83}.game-focus .reentry-panel{position:fixed;z-index:30;bottom:0;left:0;right:0;margin:0;border-radius:0;background:#1b3022;padding:16px 24px}.game-focus:has(.reentry-panel:not([hidden])) .decision{visibility:hidden}#saved-profiles{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}#saved-profiles button{min-height:44px}.market-section button:disabled{opacity:.5}.market-entry .actions{flex-wrap:wrap}.market-table small{color:#a6b8a7}@media(max-width:700px){.market-tables{grid-template-columns:repeat(2,1fr);gap:10px}.market-table{padding:16px}.market-table h3{font-size:26px}.market-entry{align-items:stretch;flex-direction:column}.market-entry button{min-height:44px}.market-section .section-heading{align-items:center}.account-balance strong{font-size:30px}.reentry-panel{display:block}.reentry-panel .actions{margin-top:12px}.game-focus .reentry-panel{max-height:40vh;overflow:auto}.profile-badge{width:100%;margin-right:0}}

.lounge{padding:18px;margin:16px 0}.lounge .section-heading{margin-bottom:6px;gap:8px}.lounge h3{font-size:18px}.lounge ol{list-style:none;margin:12px 0;padding:0;max-height:280px;overflow:auto}.lounge li{margin:12px 0;padding:10px;border-radius:8px;background:#233328;overflow-wrap:anywhere}.lounge li b{display:block;color:#c5e89a;font-size:12px;margin-bottom:5px}.lounge li span{white-space:pre-wrap;font-size:14px}.lounge form{display:grid;gap:8px}.lounge input{min-width:0;width:100%;padding:12px;background:#132018;color:white;border:1px solid #587046;border-radius:8px}.game-focus #lounge{display:none!important}

.game-focus:has(.reentry-panel:not([hidden])) .board-card{inset:0 0 min(260px,40dvh)}.game-focus .reentry-panel{height:min(260px,40dvh);max-height:none;overflow:auto;box-sizing:border-box}

.competition-section{margin:3rem 0}.competition-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem}.competition-grid p{overflow-wrap:anywhere}.competition-grid button{margin:.3rem;min-height:44px}@media(max-width:700px){.competition-grid{grid-template-columns:1fr}}

.open-world-card{margin:2rem 0}.open-heading,.open-bottom{display:flex;align-items:center;justify-content:space-between;gap:1rem}.open-heading h2{margin:.3rem 0}.open-page{max-width:1400px;margin:auto}.open-canvas-wrap{height:65vh;min-height:250px;background:#0e1611;border:1px solid #45503a}.open-canvas-wrap canvas{width:100%;height:100%;display:block}.open-bottom{padding:.7rem 0}.open-bottom button{min-width:44px;min-height:44px}.open-focus #page-open{position:fixed;inset:0;z-index:80;background:#0e1611;padding:12px;display:flex;flex-direction:column;max-width:none}.open-focus .open-canvas-wrap{flex:1;min-height:0;height:auto}.open-focus .open-heading h2{font-size:1.2rem}.open-focus #open-status{margin:4px 0;font-size:.8rem}.open-focus .open-bottom{flex-wrap:wrap;font-size:.8rem}@media(max-width:650px){.open-heading{gap:.3rem}.open-heading .actions{gap:.25rem}.open-heading button{font-size:.7rem;padding:.5rem}.open-bottom{flex-direction:column;align-items:stretch}.open-bottom .actions{justify-content:center}.open-focus .open-heading .eyebrow{display:none}}

.social-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #3b4939}.social-row>div{display:flex;gap:8px;flex-wrap:wrap}.social-row button{min-height:44px}.speaking:before{content:'● ';color:#c0ef83}#friends-dialog,#voice-dialog{max-height:85dvh;overflow:auto;width:min(620px,94vw)}#voice-peers{margin-top:16px}@media(max-width:600px){.social-row{align-items:flex-start;flex-direction:column}.site-header{flex-wrap:wrap}#voice-dialog .actions{flex-wrap:wrap}.board-top{gap:4px}.hud-right{gap:5px}}

@media(max-width:600px){#voice-dialog .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#voice-dialog .actions button{min-width:0;min-height:48px;white-space:normal}#voice-join{grid-column:1/-1}}

.raise-editor{margin:8px 0}.raise-input-row{display:flex;align-items:center;gap:12px}.raise-input-row label{font-size:12px;color:var(--ink)}#raise-to{width:130px;min-height:42px;margin:0;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink);font-size:17px}.raise-presets{display:flex;gap:6px;margin:6px 0}.raise-presets button{min-height:36px;padding:5px 16px;font-size:12px}.raise-editor p{margin:3px 0;font-size:10px;color:var(--muted)}#raise-feedback{min-height:15px}body.game-focus.betting .board-card{bottom:270px}body.game-focus.betting .decision{height:270px}body.game-focus.betting #notice{bottom:285px}@media(max-width:760px){body.game-focus.betting .board-card{bottom:calc(320px + env(safe-area-inset-bottom))}body.game-focus.betting .decision{height:calc(320px + env(safe-area-inset-bottom));overflow:auto}.raise-input-row{justify-content:space-between}.raise-input-row label{font-size:11px}.raise-presets button{min-height:44px;flex:1}.raise-editor p{font-size:10px}body.game-focus.betting #notice{bottom:335px}}@media(max-height:500px) and (min-width:650px){body.game-focus.betting .board-card{inset:0 245px 0 0}body.game-focus.betting .decision{width:245px;height:100dvh;justify-content:flex-start;overflow:auto}.raise-input-row{display:block}#raise-to{width:100%}.raise-presets button{padding:5px 9px;flex:1}}
.warmup-bar{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#14291f;border-bottom:1px solid #355545;font-size:13px}.warmup-bar span{flex:1}.warmup-bar button{min-height:40px}.warmup .pot-card,.warmup .money,.warmup .bet-panel{display:none!important}.warmup .player-position{max-width:100%}.warmup .board-card{display:flex;flex-direction:column}.warmup .canvas-wrap{flex:1;min-height:0}.warmup.game-focus .canvas-wrap{height:calc(100% - 128px)}
@media(max-width:600px){.warmup-bar{flex-wrap:wrap;padding:7px 10px;gap:6px}.warmup-bar span{flex-basis:100%}.warmup-bar button{flex:1;min-height:44px}.warmup.game-focus .canvas-wrap{height:calc(100% - 162px)}}
.warmup .warmup-bar[hidden]{display:none}.warmup .game-aside .activity{display:none}
.spectator #page-game .bet-panel,.spectator #page-game .dpad{display:none!important}

/* Feedback stays in the portal, outside the playing surface. */
#page-feedback {max-width:850px;margin-inline:auto}
#page-feedback label {display:grid;gap:8px;margin-block:18px}
#page-feedback textarea {width:100%;box-sizing:border-box;font:inherit;color:inherit;background:var(--panel,#151c27);border:1px solid #526077;border-radius:10px;padding:12px;resize:vertical}
#feedback-admin-entries details {padding:12px 0;border-bottom:1px solid #526077;overflow-wrap:anywhere}
.feedback-free-text {white-space:pre-wrap;overflow-wrap:anywhere}
.game-focus #feedback-game {display:none}

/* SnakeStakes design system: expressive portal, quiet arena, factual control room. */
:root{--bg:#0a101c;--panel:#121d2e;--panel2:#19283c;--line:#30425b;--ink:#f4f7fc;--muted:#afbdd0;--lime:#c9f85c;--gold:#ffd183;--blue:#65d8e8;--radius:18px}
body{background:radial-gradient(ellipse at 90% 0,#17324977,transparent 36rem),var(--bg);font-size:15px}
button,input,select,textarea{font:inherit}button{min-height:44px}button:hover:not(:disabled){background:#24364c;border-color:#8299b8}.primary{color:#142000;box-shadow:0 5px 22px #a8e44312}.primary:hover:not(:disabled){background:#dcff8e;border-color:#dcff8e}.secondary,.quiet{background:#1c2b41}.danger,.error,.form-error{color:#ffac9f}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--lime);outline-offset:4px}.skip-link{position:fixed;top:8px;left:16px;transform:translateY(-180%);z-index:200;background:var(--lime);color:#142000;padding:12px 18px;border-radius:8px}.skip-link:focus{transform:none}#main-content:focus{outline:none}
.site-header{height:auto;min-height:88px;padding-block:18px;gap:20px}.brand{letter-spacing:-.6px;font-size:19px;white-space:nowrap}.brand b{display:block;font-size:19px;letter-spacing:2.5px;color:var(--lime)}.brand-symbol{display:grid;place-items:center;border:1px solid #789f3e;border-radius:11px;width:43px;height:43px;font-size:31px;background:#c9f85c0d}.brand-symbol>span{right:1px}.nav-link.active{background:#26374d;color:#fff}.site-header .text-button{font-size:12px}.profile-button{background:#172336;min-height:44px}.fine-print{font-size:12px;line-height:1.65}.eyebrow{font-size:11px;letter-spacing:1.5px}.build-label{font-size:12px}.text-button,.back-link{font-size:13px;min-height:44px}.live-dot{box-shadow:0 0 12px #c9f85c55}
.hero{gap:48px;padding-block:24px 36px;min-height:500px}.hero-copy h1{font-weight:800;font-size:clamp(46px,5.1vw,72px);letter-spacing:-3px;line-height:1.04}.hero-copy>p{font-size:18px;max-width:470px}.hero-actions{flex-wrap:wrap}.hero-proof{font-size:12px;gap:9px 18px}.hero-art{background:radial-gradient(ellipse at 72% 32%,#256d7a44,transparent 65%),#101c2d;border-color:#35506c;box-shadow:0 24px 80px #0004;transform:rotate(-1deg)}.art-tag{color:var(--blue);font-size:10px}.art-caption{font-size:12px}.snake-art{filter:drop-shadow(0 5px 12px #b7f55220)}
.how-strip{margin-top:0;padding:28px 0 35px;grid-template-columns:1fr 2fr}.how-strip h2{font-weight:700;font-size:25px}.how-strip h3{font-size:16px}.how-strip p{font-size:13px}.how-strip li>span{border-radius:8px;background:#c9f85c10;border-color:#647d3f;width:34px;height:34px;font-weight:700}
.panel,.mode-card,.friends-card,.pot-card,.seats,.activity{background:var(--panel);border-color:var(--line)}.panel h2{font-weight:700}.panel p{font-size:14px}.section-heading h2{font-weight:750;font-size:29px}.page-title{font-weight:750}.market-section{margin-top:44px}.market-tables{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.market-table{background:linear-gradient(150deg,#19293e,#101b2c);border-color:#3b536b;padding:22px;position:relative}.market-table:before{content:'';display:block;width:30px;height:4px;background:var(--lime);border-radius:3px}.market-table h3{font-weight:750;font-variant-numeric:tabular-nums}.market-table p,.market-table small{color:var(--muted)}.market-entry{background:#18293b;border-color:#426079}.market-entry p{color:var(--muted)}.account-balance{border:1px solid var(--line);border-radius:12px;padding:12px 20px;min-width:155px}.account-balance strong{line-height:1.1;font-variant-numeric:tabular-nums}.account-balance span,.account-balance small{color:var(--muted)}#wallet-onboarding{border-left:3px solid var(--blue)}#wallet-onboarding h3{margin-top:0;font-size:20px}.account-pending{margin:16px 0}.test-details{margin:12px 0 20px}.test-details summary{font-size:13px;color:var(--muted);cursor:pointer;min-height:30px}.test-details p{max-width:750px}
.mode-card:hover{background:#203249!important}.mode-card.selected{border-color:var(--lime);box-shadow:inset 0 3px var(--lime)}.mode-card h3{font-weight:700}.mode-card p{font-size:14px}.mode-no,.card-meta{font-size:11px;color:var(--muted)}.mini-arena,.mini-world{background-image:linear-gradient(#58759533 1px,transparent 1px),linear-gradient(90deg,#58759533 1px,transparent 1px);border-color:#4c6683}.mini-world>div{box-shadow:0 0 0 90px #0a101c77;background:#65d8e811}.friends-card{background:linear-gradient(145deg,#1b3244,#131f30)}.friends-card p,.friends-card small{font-size:13px;color:var(--muted)}.cup-card{background:linear-gradient(110deg,#1e2c43,#162737);border-color:#3a5874}.cup-card p{font-size:14px}.open-world-card{position:relative;overflow:hidden;border-left:3px solid var(--blue)}.open-world-card p{max-width:760px}.continue-card{background:#1c302f;border-color:#799c4b}.history-row,.lobby-player{background:#152236}.history-icon{background:#243e39}.empty-state p{font-size:13px}.empty-state h3{font-size:17px}
input,select,textarea{color:var(--ink);background:#0c1524;border:1px solid #526984;border-radius:9px;padding:11px 12px;max-width:100%;min-height:44px}select{cursor:pointer}label{line-height:1.6}fieldset{border:1px solid var(--line);border-radius:12px;min-width:0}dialog{background:#142136;border:1px solid #4e6682;box-shadow:0 25px 100px #0009}dialog::backdrop{background:#030914bd;backdrop-filter:blur(4px)}dialog p{color:var(--muted)}summary{cursor:pointer}#notice{background:#1a2e43;border-color:#62829e}
.board-card,.canvas-wrap,.open-canvas-wrap,.open-focus #page-open{background:#0a1220}.board-card{border-color:#3b526b}.board-top,.board-bottom{background:#111e30;color:#c0cee0}.board-top b{font-size:12px}.board-bottom{font-size:11px}.hud-right button{font-size:11px}.decision,.game-focus .decision{background:#142238;border-color:#49617f}.bet-panel{background:#1a2d43;border-color:#536d89}.bet-heading{color:var(--ink)}#bet-time{color:var(--gold);font-variant-numeric:tabular-nums}#call{background:var(--lime);color:#142000;border-color:var(--lime);font-weight:750}#fold{color:#ffb7a9;border-color:#a46a67}#raise{border-color:var(--blue);color:#a6eff7}#allin{border-color:#b88d55;color:#ffdb9e}.raise-presets button,.dpad button{background:#20344b}#raise-to{background:#0c1726;font-variant-numeric:tabular-nums}.warmup-bar{background:#172c3b;border-color:#456278}.overlay-box{background:#132238f5;border-color:#6a829d}.pot-card h2{color:var(--lime);font-weight:750}.lounge li{background:#20354a}.lounge input{background:#0c1726;border-color:#536d89}.game-focus .reentry-panel{background:#172b37}.social-row{border-color:var(--line)}
#page-admin>.panel{margin-top:22px}.admin-summary{margin-block:24px 36px}.admin-status-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-block:1px solid var(--line);margin-bottom:24px}.admin-status-strip small{display:block;color:var(--muted);margin-left:14px}.admin-status-strip b{font-weight:600}.admin-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.metric-card{border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:22px;display:flex;flex-direction:column;gap:12px}.metric-card>span{font-size:13px;color:var(--muted)}.metric-card strong{font-size:42px;line-height:1;letter-spacing:-1px;font-variant-numeric:tabular-nums}.metric-card small{font-size:12px;color:var(--muted)}.admin-economy{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.admin-economy h2{margin-top:8px}.ledger-list{margin:20px 0}.ledger-list>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}.ledger-list dt{color:var(--muted);font-size:14px}.ledger-list dd{font-weight:700;font-variant-numeric:tabular-nums;margin:0;white-space:nowrap}.admin-workspace>details>summary{font-size:20px;font-weight:700;min-height:44px}.admin-workspace summary>span{display:block;font-size:13px;font-weight:400;color:var(--muted);margin:6px 0 0 20px}.admin-workspace details[open]>summary{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:24px}.admin-workspace form{display:grid;gap:18px}.admin-workspace form label{display:grid;gap:8px}.admin-workspace form .competition-grid{gap:18px}.admin-workspace input,.admin-workspace select{width:100%}#admin-home-shortcut{padding:12px 20px;margin-bottom:24px}#admin-home-shortcut .section-heading{margin:0}#admin-home-shortcut h2{font-size:18px}#admin-home-shortcut p{margin:0;font-size:12px}#admin-events .market-entry{border-color:var(--line)}#feedback-admin-entries details{border-color:var(--line)}#page-feedback>.panel{margin-top:24px}.site-footer{font-size:12px}.brand-small{font-weight:800;letter-spacing:1px}
@media(max-width:1100px){.site-header{flex-wrap:wrap;gap:12px;padding-inline:26px}.site-header nav{order:3;width:100%;justify-content:center}.hero{gap:26px}.hero-copy h1{font-size:56px}.admin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.site-header{padding:16px 20px}.site-header>.text-button{font-size:12px}.site-header nav{overflow-x:auto;justify-content:flex-start}.nav-link{white-space:nowrap;min-height:44px;padding:9px 12px}.brand{margin-right:auto}.brand b{font-size:16px}.hero{padding-top:8px;gap:22px;min-height:0}.hero-copy h1{font-size:clamp(42px,9vw,62px);letter-spacing:-2px}.hero-copy>p{font-size:16px}.hero-proof{font-size:11px}.hero-art{transform:none;max-height:280px}.how-strip{grid-template-columns:1fr;margin-top:10px}.how-strip ol{grid-template-columns:1fr}.market-tables{grid-template-columns:repeat(2,minmax(0,1fr))}.market-table{padding:16px}.section-heading h2{font-size:25px}.account-balance{padding:10px;min-width:115px}.account-balance span{font-size:11px}.account-balance strong{font-size:27px}.mode-card p{font-size:13px}.card-meta{font-size:10px}.admin-economy{grid-template-columns:1fr}.metric-card{padding:17px}.metric-card strong{font-size:34px}.admin-status-strip{align-items:flex-start}.admin-status-strip .pill{font-size:10px;white-space:nowrap}.board-top b{font-size:10px}.board-bottom{font-size:9px}.hud-right button{font-size:10px}.site-footer{font-size:11px}.open-world-card .primary{margin-bottom:8px}#admin-home-shortcut .section-heading{gap:12px}#admin-home-shortcut p{display:none}.admin-workspace>details>summary{font-size:18px}}
@media(max-width:420px){.site-header{gap:8px;padding-inline:14px}.brand-symbol{width:32px;height:36px}.brand{gap:8px;font-size:16px}.brand b{font-size:14px}.site-header>.text-button{padding:6px 0;font-size:11px}.profile-button{padding:8px;max-width:120px}.profile-button span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hero-copy h1{font-size:42px}.hero-actions{gap:8px}.hero-actions button{font-size:13px;gap:10px}.home-heading .build-label{display:none}.market-tables{gap:10px}.metric-card{padding:14px}.admin-kpis{gap:10px}.admin-status-strip{flex-wrap:wrap}.section-heading{gap:10px}.ledger-list dt{font-size:12px}.ledger-list dd{font-size:13px}}
.explore-section{margin:24px 0;border:1px solid var(--line);border-radius:var(--radius);padding:20px 24px;background:#101c2b}.explore-section>summary{font-size:20px;font-weight:700;min-height:44px}.explore-section>summary>span{display:block;margin:5px 0 0 20px;color:var(--muted);font-size:13px;font-weight:400}.explore-section .competition-section,.explore-section .cup-card{margin:20px 0 0}.explore-section[open]>summary{padding-bottom:16px;border-bottom:1px solid var(--line)}
/* Practice is a playable first impression, not a long mobile article. */
@media(max-width:760px){
 body[data-view="tutorial"] .site-header,body[data-view="tutorial"] .site-footer{display:none}
 body[data-view="tutorial"] main{margin:0;padding:12px 14px}
 #page-tutorial>.section-heading{margin-bottom:10px;gap:8px}
 #page-tutorial>.section-heading .eyebrow{display:none}
 #page-tutorial .page-title{font-size:27px;margin:0}
 #page-tutorial>.section-heading button{font-size:12px;padding:8px}
 .tutorial-layout{gap:10px;margin-top:0}
 .tutorial-canvas{height:min(36dvh,300px)}
 .tutorial-layout .board-top,.tutorial-layout .board-bottom{height:28px}
 .tutorial-instructions{padding:12px 16px}
 .tutorial-instructions h2{font-size:21px;margin:5px 0}
 .tutorial-instructions p{font-size:13px;line-height:1.45;margin:6px 0}
 .tutorial-instructions #tutorial-actions{margin:8px 0}
 .tutorial-instructions>small{display:none}
 .tutorial-dpad{margin:6px 0 0}.tutorial-dpad button{min-height:44px;padding:6px 16px}
}
@media(max-width:600px){
 .site-header nav{max-width:100%;min-width:0}
 #page-admin>.section-heading,#page-admin .panel>.section-heading{flex-wrap:wrap;align-items:flex-start}
 #page-admin .section-heading>div{min-width:0;max-width:100%}
 #page-admin .page-title{font-size:clamp(28px,8vw,40px);letter-spacing:-1px;overflow-wrap:anywhere}
 #page-admin .section-heading h2{font-size:22px;overflow-wrap:anywhere}
 #page-admin .panel>.section-heading>button{margin-left:0}
}

/* Deliberate copy → action rhythm. Scope to content areas, never the live HUD. */
.content-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:24px}
.content-actions>.text-button{padding-inline:8px}
#page-home .account-pending{margin-block:24px 32px}
#page-home .account-pending .content-actions{margin-top:16px}
#page-home #wallet-onboarding .test-details{margin-block:18px 0}
#page-home #wallet-onboarding h3{margin-bottom:12px}
#page-home #wallet-onboarding>p{margin-block:0 16px}
#page-home .open-world-card h2{margin-block:12px 16px}
#page-home .open-world-card>p{margin:0;line-height:1.75}
.hero-copy .hero-learning-note{font-size:13px;line-height:1.65;max-width:470px;margin-block:18px 0;color:var(--muted)}
#page-home .friends-card .secondary{margin-top:6px}
#page-home .friends-card .text-button{margin-block:12px 18px}
#page-guide .panel>h2{margin-bottom:18px}
#page-guide .panel>p{margin-block:0 18px}
#page-guide .panel>h3{margin-block:28px 14px}
#page-guide .guide-aside>.primary{margin-top:6px}
#page-guide .guide-aside>p{line-height:1.8}
.choice-explainer{display:grid;gap:0;margin:24px 0}
.choice-explainer>div{padding:18px 0;border-top:1px solid var(--line)}
.choice-explainer dt{font-size:16px;font-weight:750;color:var(--ink);margin-bottom:8px}
.choice-explainer dd{margin:0;color:var(--muted);font-size:14px;line-height:1.8}
.bet-example{border-left:3px solid var(--blue);padding:14px 18px;background:#65d8e80a;border-radius:0 10px 10px 0}
#tutorial-actions{display:flex;gap:12px;flex-wrap:wrap;margin-block:24px 18px}
#tutorial-actions button{margin:0}
#page-feedback form>button[type=submit]{margin-top:12px}
#account-dialog .dialog-actions,#profile-dialog .dialog-actions{margin-top:24px}
@media(max-width:760px){
 .content-actions{align-items:stretch;gap:12px;margin-top:22px}
 #wallet-onboarding .content-actions,#page-home .account-pending .content-actions{flex-direction:column}
 .content-actions>.text-button{text-align:left;padding:10px 0}
 #page-home .open-world-card .content-actions{margin-top:22px}
 .hero-copy .hero-learning-note{font-size:12px;margin-top:16px}
 #tutorial-actions{margin-block:14px 12px;gap:10px}
 .tutorial-instructions p{margin-bottom:12px}
 .choice-explainer>div{padding-block:16px}
}
#market-section>label[for="public-queue-mode"]{display:block;margin:24px 0 10px;font-weight:650}
#public-queue-mode{min-width:190px;margin-bottom:10px}
.market-table>.eyebrow{display:block;line-height:1.65;margin-top:16px}
.market-table>small:first-of-type{display:block;margin-top:18px;letter-spacing:1.1px;font-size:11px}
.market-table>small:not(:first-of-type){display:block;line-height:1.7;margin-top:14px}
.market-table>h3{margin-block:8px 16px}
.invite-actions{display:flex;flex-wrap:wrap;gap:10px;width:100%;margin-top:12px}.room-code .invite-actions button{width:auto;flex:1;min-height:44px;font-size:12px}.invite-email{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:9px;font-size:12px}.invite-link-field{display:grid;gap:8px;width:100%;margin-top:12px;font-size:12px;color:var(--muted)}.invite-link-field input{width:100%;min-width:0;font-size:12px}#share-invite-dialog{width:min(580px,94vw)}#share-invite-dialog textarea{width:100%;min-width:0;resize:vertical;font:inherit;color:var(--ink);padding:12px}#join-login{margin-block:8px 12px;text-align:left}
@media(max-width:420px){.invite-actions{flex-direction:column}.room-code .invite-actions button{width:100%}}
.lobby-layout>*{min-width:0}.room-code{min-width:0}.room-code .invite-actions,.invite-link-field{min-width:0}.invite-email{overflow-wrap:anywhere}
@media(max-width:760px){.lobby-layout{grid-template-columns:minmax(0,1fr)}}
/* Social story is visible before the table catalogue, with honest local availability. */
.social-callout{display:grid;grid-template-columns:1fr 1.15fr;gap:26px 48px;padding:36px;margin:28px 0 48px;border:1px solid #456277;border-radius:20px;background:linear-gradient(120deg,#183044,#132035)}
.social-intro h2{font-size:36px;line-height:1.12;letter-spacing:-1px;margin:14px 0 20px}
.social-intro>p{color:var(--muted);font-size:15px;line-height:1.8;max-width:420px;margin:0 0 24px}
.social-cta{display:inline-flex;align-items:center;min-height:46px;border:1px solid #7694af;border-radius:10px;padding:12px 16px;font-size:14px}
.social-cta:hover{background:#2b4358}
.social-features{display:grid;gap:22px}.social-features article{display:flex;gap:16px;align-items:flex-start}.social-number{flex:none;display:grid;place-items:center;width:35px;height:35px;border:1px solid #5d788d;border-radius:9px;color:var(--blue);font-size:12px;font-weight:750}.social-features h3{font-size:17px;margin:2px 0 8px}.social-features p{color:var(--muted);font-size:14px;line-height:1.7;margin:0}.social-availability{grid-column:1/-1;margin:0;padding-top:20px;border-top:1px solid #3c566f;font-size:12px;color:var(--muted);line-height:1.7}#friends-section{scroll-margin-top:24px}
@media(max-width:760px){.social-callout{grid-template-columns:minmax(0,1fr);padding:24px 20px;gap:28px;margin-block:24px 36px}.social-intro h2{font-size:30px}.social-cta{width:100%;justify-content:center}.social-features{gap:24px}.social-features article{gap:12px}.social-availability{font-size:12px}.social-intro>p{font-size:14px}.social-features h3{font-size:16px}}
/* Original vector wordmark: the capital S in each word is a complete snake. */
.brand{display:inline-flex;flex:none;gap:0;min-height:48px;letter-spacing:normal}
.brand-wordmark{display:block;width:224px;height:auto;overflow:visible}
.brand-small{display:inline-flex;align-items:center;min-height:44px}
.brand-small .brand-wordmark{width:176px}
@media(max-width:760px){.brand-wordmark{width:198px}.site-header .brand{margin-right:auto}}
@media(max-width:420px){.brand-wordmark{width:184px}.site-header>.profile-button{margin-left:0}.brand-small .brand-wordmark{width:164px}}
/* Direction controls stay outside the canvas; only preference choices persist. */
.direction-controller{--direction-size:58px;display:flex;flex-direction:column;align-items:flex-end;gap:8px;width:100%;min-width:0;text-align:initial}
.direction-controller[data-hand="left"]{align-items:flex-start}
.direction-pad{display:grid;grid-template-columns:repeat(3,var(--direction-size));grid-template-rows:repeat(2,var(--direction-size));gap:5px;width:max-content}
.direction-pad button{width:var(--direction-size);height:var(--direction-size);min-width:var(--direction-size);min-height:var(--direction-size);margin:0;padding:0;font-size:clamp(30px,calc(var(--direction-size) * .6),44px);font-weight:800;line-height:1;color:#f7fbff;display:grid;place-items:center;background:#20344b;border:2px solid #8ba8c5;touch-action:none;user-select:none}
.direction-pad [data-direction="0"]{grid-area:1/2}.direction-pad [data-direction="3"]{grid-area:2/1}.direction-pad [data-direction="2"]{grid-area:2/2}.direction-pad [data-direction="1"]{grid-area:2/3}
.direction-pad button:hover:not(:disabled){color:#fff;background:#2d4864;border-color:#b8d4ef}
.direction-pad button:is(.direction-pressed,:active){color:#102018;background:#c1ed83;border-color:#efffd7;box-shadow:inset 0 0 0 2px #102018}
.direction-pad button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.direction-swipe.direction-pressed{background:#405a47;border-color:var(--lime);box-shadow:inset 0 0 0 2px var(--lime)}
.direction-settings{display:flex;gap:8px;max-width:100%}.direction-settings label{min-width:0}.direction-settings select{min-height:44px;font-size:12px;width:100%;max-width:180px;padding:8px;border-color:#58718b}
.direction-swipe{display:none;align-items:center;justify-content:center;min-height:121px;width:min(100%,260px);border:2px dashed #65849d;border-radius:14px;background:#182c40;color:#d5e9f3;font-size:17px;touch-action:none;user-select:none}
.direction-controller[data-input-mode="swipe"] .direction-pad{display:none}.direction-controller[data-input-mode="swipe"] .direction-swipe{display:flex}
.open-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,1fr);align-items:end}.open-bottom>.actions{grid-column:1}.open-bottom>.world-dpad{grid-column:2;grid-row:1/span 2}
.game-focus:not(.betting) .decision{min-height:210px}.game-focus:not(.betting) .board-card{bottom:210px}
#honour-controls .direction-controller{margin-block:16px}
@media(max-width:760px){
 .direction-controller{--direction-size:56px}
 .open-bottom{display:flex;flex-direction:column;align-items:stretch;gap:8px}
 .open-bottom>.actions:empty{display:none}
 .open-bottom>#open-metrics{font-size:10px;line-height:1.35}
 .open-bottom>.actions:has(button:not([hidden])){justify-content:flex-start}
 body.game-focus:not(.betting) .board-card{bottom:calc(240px + env(safe-area-inset-bottom))}
 body.game-focus:not(.betting) .decision{height:calc(240px + env(safe-area-inset-bottom));min-height:0;display:flex;flex-direction:column;align-items:stretch;gap:8px;justify-content:flex-end;padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
 body.game-focus:not(.betting) .player-position{max-width:100%;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
 body.game-focus:not(.betting) .player-position h3{font-size:16px;margin:0}
 body.game-focus:not(.betting) .player-position p{margin:0;font-size:10px}
 .tutorial-canvas{height:min(25dvh,210px)}
 .tutorial-dpad.direction-controller{margin-top:8px}
 .tutorial-instructions .direction-settings select{font-size:11px}
}
@media(max-height:500px) and (min-width:650px){
 body.game-focus:not(.betting) .board-card{inset:0 210px 0 0}
 body.game-focus:not(.betting) .decision{inset:0 0 0 auto;width:210px;height:100dvh;min-height:0;overflow:auto;padding:10px;display:flex;flex-direction:column}
 .direction-settings{flex-wrap:wrap}.direction-settings label{flex:1 1 80px}
 .open-focus #page-open{display:grid;grid-template-columns:minmax(0,1fr) 200px;grid-template-rows:auto 1fr;gap:8px}
 .open-focus .open-heading{grid-column:1/-1}.open-focus #open-status{display:none}
 .open-focus .open-canvas-wrap{grid-row:2;grid-column:1;min-height:0}
 .open-focus .open-bottom{grid-row:2;grid-column:2;overflow:auto;min-height:0;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;gap:6px}.open-focus .open-bottom>#open-metrics{font-size:10px;line-height:1.25}.open-focus .open-bottom>.actions:not(:has(button:not([hidden]))){display:none}.open-focus .direction-settings{flex-wrap:nowrap}.open-focus .direction-settings select{font-size:10px;padding:4px}
}

/* Isolated LAN preview has no account or business surfaces. */
.guest-test .site-header,.guest-test .site-footer,.guest-test #guest-account{display:none!important}.guest-test #page-home>:not(.guest-test-intro){display:none!important}.guest-test-intro{max-width:560px;margin:24px auto}.guest-test-intro p{margin-block:20px}.guest-test-intro h1{font-size:32px}.guest-test [data-route="home"]{display:inline-flex}

/* Keep the rapid-touch region exclusively for steering. */
.input-settings-dialog{max-width:min(440px,calc(100vw - 32px));padding:24px;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:16px}.input-settings-dialog::backdrop{background:#000a}.input-settings-dialog .direction-settings{display:flex;flex-direction:column;margin:24px 0;gap:20px}.input-settings-dialog .direction-settings select{max-width:none;min-height:48px}.input-settings-dialog .input-settings-label{display:block;margin-bottom:8px;white-space:normal}.play-message{display:block;flex-basis:100%;font-size:11px;line-height:1.3;color:#e6c580;max-width:100%;overflow-wrap:anywhere}.open-heading{flex-wrap:wrap}.board-top:has(.play-message){flex-wrap:wrap}.guest-test-intro [data-input-settings]{min-height:48px}body[data-view="open"] #notice,body[data-view="game"] #notice,body[data-view="honour"] #notice{display:none!important}

body.game-focus .board-top,.board-top:has(.play-message){height:auto;min-height:42px;flex-shrink:0;flex-wrap:wrap;padding-block:6px}.board-top .hud-right{flex-wrap:wrap}.board-top .play-message{padding-bottom:4px}body.game-focus .warmup-bar{flex-shrink:0}

/* Split axis controls: separate thumb zones, unchanged cardinal buttons. */
.direction-controller[data-input-mode="twohand"] .direction-pad{width:100%;grid-template-columns:var(--direction-size) minmax(24px,1fr) var(--direction-size) var(--direction-size);grid-template-rows:repeat(2,var(--direction-size));column-gap:8px;row-gap:8px}
.direction-controller[data-input-mode="twohand"][data-hand="left"] [data-direction="0"]{grid-area:1/1}.direction-controller[data-input-mode="twohand"][data-hand="left"] [data-direction="2"]{grid-area:2/1}.direction-controller[data-input-mode="twohand"][data-hand="left"] [data-direction="3"]{grid-area:2/3}.direction-controller[data-input-mode="twohand"][data-hand="left"] [data-direction="1"]{grid-area:2/4}
.direction-controller[data-input-mode="twohand"][data-hand="right"] .direction-pad{grid-template-columns:var(--direction-size) var(--direction-size) minmax(24px,1fr) var(--direction-size)}
.direction-controller[data-input-mode="twohand"][data-hand="right"] [data-direction="0"]{grid-area:1/4}.direction-controller[data-input-mode="twohand"][data-hand="right"] [data-direction="2"]{grid-area:2/4}.direction-controller[data-input-mode="twohand"][data-hand="right"] [data-direction="3"]{grid-area:2/1}.direction-controller[data-input-mode="twohand"][data-hand="right"] [data-direction="1"]{grid-area:2/2}
@media(max-height:500px) and (min-width:650px){
 body.open-focus:has(.world-dpad:is([data-input-mode="twohand"],[data-input-mode="dualswipe"])) #page-open{display:flex;flex-direction:column;gap:4px}
 body.open-focus:has(.world-dpad:is([data-input-mode="twohand"],[data-input-mode="dualswipe"])) .open-canvas-wrap{flex:1;min-height:0}
 body.open-focus:has(.world-dpad:is([data-input-mode="twohand"],[data-input-mode="dualswipe"])) .open-bottom{flex-shrink:0;width:100%;overflow:visible;padding:0 10px;position:relative}
 body.open-focus:has(.world-dpad:is([data-input-mode="twohand"],[data-input-mode="dualswipe"])) #open-metrics{position:absolute;top:0;left:25%;right:25%;text-align:center}
 body.game-focus:not(.betting):has(.dpad[data-input-mode="twohand"]) .board-card{inset:0 0 165px 0}
 body.game-focus:not(.betting):has(.dpad[data-input-mode="twohand"]) .decision{inset:auto 0 0;width:100%;height:165px;padding:6px 12px;gap:4px}
 body.game-focus:not(.betting):has(.dpad[data-input-mode="twohand"]) .player-position{display:flex;align-items:center;gap:8px}
 body.game-focus:not(.betting):has(.dpad[data-input-mode="twohand"]) .player-position h3,body.game-focus:not(.betting):has(.dpad[data-input-mode="twohand"]) .player-position p{margin:0;font-size:10px}
}

body[data-view="tutorial"] #notice{display:none!important}@media(max-width:760px){.tutorial-canvas{height:min(23dvh,200px)}}
@media(max-height:500px) and (min-width:650px){
 body.game-focus:not(.betting):has(.dpad[data-input-mode="twohand"]) .board-card{inset:0 140px 0 140px}
 body.game-focus:not(.betting):has(.dpad[data-input-mode="twohand"]) .decision{inset:0;width:100%;height:100dvh;background:transparent;border:0;box-shadow:none;pointer-events:none;padding:0}
 body.game-focus:not(.betting):has(.dpad[data-input-mode="twohand"]) .player-position{position:fixed;left:10px;top:10px;width:120px;display:block;line-height:1.3;pointer-events:auto}
 body.game-focus:not(.betting) .dpad[data-input-mode="twohand"] .direction-pad button{position:fixed;pointer-events:auto}
 body.game-focus:not(.betting) .dpad[data-input-mode="twohand"][data-hand="left"] [data-direction="0"]{left:36px;bottom:150px}
 body.game-focus:not(.betting) .dpad[data-input-mode="twohand"][data-hand="left"] [data-direction="2"]{left:36px;bottom:84px}
 body.game-focus:not(.betting) .dpad[data-input-mode="twohand"][data-hand="left"] [data-direction="3"]{right:76px;bottom:110px}
 body.game-focus:not(.betting) .dpad[data-input-mode="twohand"][data-hand="left"] [data-direction="1"]{right:10px;bottom:110px}
 body.game-focus:not(.betting) .dpad[data-input-mode="twohand"][data-hand="right"] [data-direction="0"]{right:36px;bottom:150px}
 body.game-focus:not(.betting) .dpad[data-input-mode="twohand"][data-hand="right"] [data-direction="2"]{right:36px;bottom:84px}
 body.game-focus:not(.betting) .dpad[data-input-mode="twohand"][data-hand="right"] [data-direction="3"]{left:10px;bottom:110px}
 body.game-focus:not(.betting) .dpad[data-input-mode="twohand"][data-hand="right"] [data-direction="1"]{left:76px;bottom:110px}
 body.game-focus:not(.betting):has(.dpad[data-input-mode="twohand"]) .warmup-bar{flex-wrap:nowrap;padding:6px;font-size:10px}
 body.game-focus:not(.betting):has(.dpad[data-input-mode="twohand"]) .warmup-bar span{flex:1;min-width:0}
 body.game-focus:not(.betting):has(.dpad[data-input-mode="twohand"]) .warmup-bar button{flex:0 0 auto;font-size:10px;padding:8px}
}

.direction-swipe,.direction-swipe *,.direction-pad,.direction-pad *{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none}.direction-dual-swipe{display:none;width:100%;gap:12px}.direction-controller[data-input-mode="dualswipe"] .direction-pad{display:none}.direction-controller[data-input-mode="dualswipe"] .direction-dual-swipe{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.direction-controller[data-input-mode="dualswipe"] .direction-dual-swipe .direction-swipe{display:flex;width:100%;min-width:0;font-size:13px}.direction-swipe{font-size:15px;text-align:center;padding:8px}

@media(max-height:500px) and (min-width:650px){
 body.game-focus:not(.betting):has(.dpad[data-input-mode="dualswipe"]) .board-card{inset:0 160px 0 160px}
 body.game-focus:not(.betting):has(.dpad[data-input-mode="dualswipe"]) .decision{inset:0;width:100%;height:100dvh;background:transparent;border:0;box-shadow:none;pointer-events:none;padding:0}
 body.game-focus:not(.betting):has(.dpad[data-input-mode="dualswipe"]) .player-position{position:fixed;left:10px;top:10px;width:140px;display:block;font-size:10px;line-height:1.3;pointer-events:auto}
 body.game-focus:not(.betting) .dpad[data-input-mode="dualswipe"] .direction-dual-swipe .direction-swipe{position:fixed;bottom:90px;width:140px;pointer-events:auto}
 body.game-focus:not(.betting) .dpad[data-input-mode="dualswipe"] .direction-dual-swipe .direction-swipe:first-child{left:10px}
 body.game-focus:not(.betting) .dpad[data-input-mode="dualswipe"] .direction-dual-swipe .direction-swipe:last-child{right:10px}
 body.game-focus:not(.betting):has(.dpad[data-input-mode="dualswipe"]) .warmup-bar{flex-wrap:nowrap;padding:6px;font-size:10px}
 body.game-focus:not(.betting):has(.dpad[data-input-mode="dualswipe"]) .warmup-bar span{flex:1;min-width:0}
 body.game-focus:not(.betting):has(.dpad[data-input-mode="dualswipe"]) .warmup-bar button{flex:0 0 auto;font-size:10px;padding:8px}
}
@media(max-height:500px) and (min-width:650px){body.open-focus:has(.world-dpad[data-input-mode="dualswipe"]) #open-metrics{position:static;text-align:center}}

/* A voluntary result view replaces the canvas only after a guest life ends. */
.guest-result-invite{width:100%;max-width:580px;margin:auto;padding:16px 20px;overflow:auto;max-height:100%;text-align:left;background:#101e2d;color:var(--ink);box-sizing:border-box}.guest-result-invite h2{font-size:clamp(20px,4vw,30px);line-height:1.15;margin:8px 0 12px}.guest-result-invite p{font-size:14px;line-height:1.45;margin:10px 0}.guest-result-invite .content-actions{gap:12px;margin:16px 0}.guest-result-invite button{min-height:44px}.open-canvas-wrap:has(.guest-result-invite:not([hidden])){overflow:auto;align-items:flex-start}.social-intro>[data-signup]{margin:12px 0}.hero-actions{flex-wrap:wrap}

#page-open.guest-result-visible .world-dpad{display:none!important}body.open-focus #page-open.guest-result-visible{display:flex!important;flex-direction:column}#page-open.guest-result-visible .open-canvas-wrap{flex:1;min-height:0}#page-open.guest-result-visible .open-bottom{flex:none;min-height:0}#page-open.guest-result-visible #open-metrics{position:static}

/* First-visit landing: a short narrative, separate from operational game controls. */
.landing-page .hero{margin-top:32px;margin-bottom:64px}.landing-page .hero-copy>p{max-width:34em}.landing-page .landing-caption{font-size:14px;margin:18px 0 0;color:var(--muted)}.landing-page .landing-bonus{font-size:12px;line-height:1.6;margin:10px 0 0;max-width:38em;color:var(--muted)}.landing-settings{margin-top:14px!important;min-height:44px}.landing-tactics,.landing-modes,.landing-faq{padding:56px 0;border-top:1px solid #293744}.landing-tactics h2,.landing-modes h2,.landing-faq h2{font-size:clamp(26px,3vw,38px);margin:14px 0 24px;letter-spacing:-.035em}.landing-tactics ol{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px;margin:32px 0}.landing-tactics li>span,.mode-number{font:12px monospace;color:#c9f85c}.landing-tactics h3{margin:16px 0 8px}.landing-tactics p,.landing-mode-row p,.landing-faq p{line-height:1.7;color:#aebccc}.landing-mode-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:24px;align-items:center;padding:28px 0;border-bottom:1px solid #26323f}.landing-mode-row h3{margin:0 0 8px;font-size:22px}.landing-mode-row p{margin:0;max-width:50em}.landing-faq{max-width:780px}.landing-faq details{padding:20px 0;border-bottom:1px solid #293744}.landing-faq summary{cursor:pointer;min-height:24px;font-weight:600}.landing-faq p{margin:18px 0 0}.play-jump-nav{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0 36px}.play-page section[id]{scroll-margin-top:24px}.play-page .market-section{margin-top:28px}.shop-disclosure{margin:24px 0}.footer-links{display:flex;flex-wrap:wrap;gap:18px}.site-header [hidden]{display:none!important}
@media(max-width:700px){.landing-page .hero{margin:16px 0 32px}.landing-page .hero-copy h1{font-size:clamp(38px,10vw,58px)}.landing-page .hero-art{margin-top:12px;max-height:310px}.landing-page .hero-actions{align-items:stretch}.landing-page .hero-actions button{min-height:48px}.landing-tactics,.landing-modes,.landing-faq{padding:32px 0}.landing-tactics ol{grid-template-columns:1fr;gap:22px}.landing-tactics li{display:grid;grid-template-columns:28px 1fr;column-gap:12px}.landing-tactics li>span{grid-row:1/3;padding-top:5px}.landing-tactics h3{margin:0 0 6px}.landing-tactics li p{margin:0;grid-column:2}.landing-mode-row{grid-template-columns:24px 1fr;gap:14px;padding:24px 0}.landing-mode-row button{grid-column:2;justify-self:start}.landing-mode-row h3{font-size:20px}.site-header{gap:12px}.site-header nav{gap:6px}.site-header .profile-button{min-width:0}.play-jump-nav button{flex:1 1 40%}}
@media(max-width:700px){body[data-view="home"] .site-header{margin-bottom:0;padding-block:12px;gap:8px;min-height:0}body[data-view="home"] .site-header nav{padding:0;border-bottom:0}body[data-view="home"] main{padding-top:24px}.landing-page .hero{margin-top:0;padding-top:0}.landing-page .hero-copy h1{letter-spacing:-2px}}

/* Approved classic Snake / poker-table identity. Game geometry remains unchanged. */
:root{--bg:#0c1814;--panel:#14231c;--panel2:#1b3025;--line:#34483a;--ink:#f3f1e7;--muted:#afbeb1;--lime:#d4ed9a;--gold:#dbc68e;--blue:#8fd0cd;--radius:10px}
body{background:#0c1814;color:var(--ink)}.site-header{border-color:var(--line)}.nav-link.active{background:#24392b}.primary{background:#d4ed9a;border-color:#d4ed9a;color:#172315;border-radius:5px}.primary:hover:not(:disabled){background:#e2f7b8;border-color:#e2f7b8}.secondary,.quiet{background:#22382a;border-color:#526b54}.panel,.market-table,.mode-card,.friends-card,.cup-card,.continue-card,.metric-card,.admin-status-strip,.empty-state,.account-pending,.account-onboarding,.history-row{background:#13251c;border-color:#34483a;box-shadow:none}.panel h2,.section-heading h2,.page-heading h1,.page-title{letter-spacing:-.035em}dialog{background:#13251c;color:#f3f1e7;border:1px solid #61795e;border-radius:12px}input,select,textarea{background:#0d1b14;color:#f3f1e7;border-color:#526b54}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d4ed9a;outline-offset:2px}.site-footer{border-color:#34483a}.pill,.badge{border-color:#526b54}.admin-economy .panel,.payment-status{background:#14251d}.ledger-list div{border-color:#34483a}.guide-layout .panel{background:#13251c}.explore-section{border-color:#34483a}.text-button{color:#d3dfd0}.fine-print,.muted{color:#afbeb1}.decision,.game-focus .decision{background:#14251d;border-color:#526b54}.bet-panel,.betting .bet-panel{background:#1a2e20;border-color:#a4be78}.bet-heading{color:#f3f1e7}.classic-hero{display:grid;grid-template-columns:.88fr 1.12fr;gap:58px;align-items:center;padding:30px 0 54px}.classic-copy h1{font-size:clamp(44px,4.9vw,73px);line-height:1.04;letter-spacing:-3.3px;margin:26px 0}.classic-copy h1 em{display:block;font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-2.5px;font-style:italic;color:#d4ed9a}.classic-copy>p{font-size:17px;line-height:1.75;color:#b9c8bc;max-width:420px;margin:0}.classic-copy .classic-note{font-size:12px;line-height:1.7;color:#a8bba9;margin-top:18px}.classic-account{display:flex;align-items:center;gap:18px;margin-top:12px;max-width:430px}.classic-account span{font-size:11px;line-height:1.6;color:#afbeb1}.classic-account button{flex-shrink:0;min-height:44px}.classic-board{margin:0;background:#09100d;border:1px solid #425347;border-radius:10px;padding:10px;box-shadow:0 22px 60px #0003}.classic-frame-label{display:flex;justify-content:space-between;padding:7px 9px 14px;font:9px monospace;letter-spacing:1.3px;color:#a8bba9;gap:12px}.classic-board img{width:100%;height:auto;display:block;border-radius:3px}.classic-board figcaption,.classic-stakes figcaption{font-size:10px;line-height:1.6;color:#a8bba9;padding:14px 6px 6px}.classic-stakes{display:grid;grid-template-columns:1.1fr .9fr;gap:60px;align-items:center;border-top:1px solid #34483a;padding:60px 0}.classic-stakes figure{margin:0;background:#09100d;border:1px solid #374a3b;padding:10px;border-radius:8px}.classic-stakes img{width:100%;height:auto;display:block}.classic-stakes h2{font-size:clamp(28px,3vw,40px);line-height:1.12;letter-spacing:-1.5px;margin:18px 0 22px}.classic-stakes p{font-size:15px;line-height:1.75;color:#b9c8bc}.classic-stakes dl{margin:26px 0 12px}.classic-stakes dl>div{display:grid;grid-template-columns:55px 1fr;gap:20px;padding:12px 0;border-top:1px solid #34483a;font-size:13px;line-height:1.6}.classic-stakes dt{font-weight:700;color:#d4ed9a}.classic-stakes dd{margin:0;color:#bac8bc}.geography-controls{display:flex;flex-wrap:wrap;gap:16px;align-items:end;margin:24px 0}.geography-controls label{flex:1 1 180px;min-width:0}.geography-controls p{flex-basis:100%;margin:0}#profile-country-form{border-top:1px solid #34483a;margin-top:22px;padding-top:16px}#profile-country-form button{margin-top:12px}#profile-country-status{font-size:12px;line-height:1.6}.landing-modes,.landing-faq{border-color:#34483a}.landing-mode-row{border-color:#34483a}
@media(max-width:800px){.classic-hero{grid-template-columns:1fr;padding:12px 0 35px;gap:30px}.classic-copy h1{font-size:clamp(42px,10vw,65px);letter-spacing:-2px;margin:20px 0}.classic-copy h1 em{letter-spacing:-1.8px}.classic-copy>p{font-size:15px}.classic-copy .hero-actions{margin-top:24px}.classic-account{align-items:start}.classic-board{padding:7px}.classic-stakes{grid-template-columns:1fr;padding:35px 0;gap:26px}.classic-stakes>div{grid-row:1}.classic-frame-label{font-size:8px;letter-spacing:.5px}.classic-board figcaption{font-size:10px}.geography-controls{gap:12px}.geography-controls label{flex-basis:100%}}

.classic-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;padding:24px 0;border-top:1px solid var(--line);font-size:12px;line-height:1.7;color:var(--muted)}.classic-steps span{display:flex;gap:12px}.classic-steps b{color:var(--lime);font:12px monospace;padding-top:4px}#valg{scroll-margin-top:24px}.classic-stakes figcaption a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:4px}@media(max-width:800px){.classic-steps{grid-template-columns:1fr;gap:14px;padding:22px 0}}

.language-control{margin:0}.language-control select{margin:0;padding:8px 12px;min-height:44px;width:auto}.beta-strip{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;padding:8px max(24px,calc((100vw - 1280px)/2));border-bottom:1px solid var(--line);background:#1b2d21;font-size:12px}.beta-strip .text-button,.beta-dismiss{min-height:44px}.beta-dismiss{margin-left:auto;border:0;font-size:20px}body[data-view="game"] .beta-strip,body[data-view="open"] .beta-strip,body[data-view="tutorial"] .beta-strip,body[data-view="honour"] .beta-strip{display:none}#beta-welcome{max-width:540px}#beta-welcome p{line-height:1.7}#beta-welcome .dialog-actions{flex-wrap:wrap}@media(max-width:600px){.beta-strip{padding:8px 14px;gap:0 14px}.beta-strip>span{flex-basis:100%}.language-control{margin-left:auto}.language-control select{max-width:100px}.beta-strip .text-button{font-size:12px}}
.public-guest .site-header{display:flex!important}.public-guest .site-header nav,.public-guest #profile-button,.public-guest .site-header>[data-account-nav]{display:none!important}.public-guest #page-home .classic-hero{display:grid!important}.public-guest #page-home .guest-test-intro{display:none!important}.public-guest .classic-account,.public-guest .hero-actions a{display:none!important}

.welcome-bonus{display:flex;align-items:center;gap:20px;margin:26px 0 18px;padding:20px 0;border-block:1px solid #42563c}.welcome-bonus-number{font-size:76px;line-height:1;font-weight:800;letter-spacing:-5px;color:#d4ed9a;font-variant-numeric:tabular-nums}.welcome-bonus h2{font-size:18px;line-height:1.3;margin:0 0 7px;color:var(--ink);letter-spacing:-.4px}.welcome-bonus p{font-size:13px;line-height:1.5;margin:0;color:var(--muted)}.classic-copy .welcome-bonus-terms{font-size:12px;line-height:1.6;margin-top:14px;color:#bac8bc;max-width:430px}.classic-copy .hero-actions{margin-top:18px;gap:12px;align-items:stretch;flex-wrap:wrap}.classic-copy .hero-actions button{min-height:48px}.classic-how{display:inline-flex;min-height:44px;align-items:center;margin-right:18px}.public-guest .welcome-bonus,.public-guest .welcome-bonus-terms{display:none!important}@media(max-width:600px){.welcome-bonus{gap:16px;margin-top:22px;padding:16px 0}.welcome-bonus-number{font-size:64px;letter-spacing:-4px}.welcome-bonus h2{font-size:17px}.classic-copy .hero-actions button{width:100%;justify-content:center}.classic-copy .welcome-bonus-terms{font-size:12px}}
@media(max-width:600px){.classic-copy{display:flex;flex-direction:column}.classic-copy>.eyebrow{order:0}.classic-copy>h1{order:1;font-size:40px;margin:16px 0}.classic-copy>.welcome-bonus{order:2;margin:8px 0 4px;padding:12px 0}.classic-copy>.hero-actions{order:3;margin-top:12px}.classic-copy>.welcome-bonus-terms{order:4;margin:12px 0 18px}.classic-copy>p:not([class]){order:5}.classic-copy>.classic-note{order:6}.classic-copy>.classic-how{order:7}.classic-copy>.landing-settings{order:8;align-self:flex-start}}

.verification-panel{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}.verification-panel p{line-height:1.6}.verification-panel button{min-height:44px}

.verification-panel form{display:grid;gap:12px}.verification-panel label{display:grid;gap:8px}dialog [data-adult],dialog [data-consent]{display:flex;align-items:flex-start;gap:12px;margin:18px 0}dialog [data-adult] input,dialog [data-consent] input{width:20px;min-width:20px;height:20px}

.marketing-choice{border-top:1px solid var(--line,#375346);padding-top:18px;margin-top:20px}.marketing-choice label{display:flex;align-items:flex-start;gap:12px}.marketing-choice input[type=checkbox]{width:22px;min-width:22px;height:22px;margin-top:2px}.marketing-choice .fine-print{margin:12px 0}.marketing-choice[hidden]{display:none}

.intro-page{max-width:900px;margin:auto;padding-bottom:3rem}.intro-page canvas{display:block;width:min(100%,65vh);aspect-ratio:1;margin:1rem auto;background:#0b1520}.intro-page .dpad{margin:1.5rem auto}.intro-page .panel{margin:1rem 0}.intro-page .content-actions{gap:.75rem;flex-wrap:wrap}.intro-page input{max-width:10rem}.intro-page [hidden]{display:none!important}
body[data-view="intro"] .site-header,body[data-view="intro"] .site-footer,body[data-view="intro"] .beta-strip{display:none!important}
body[data-view="intro"] #page-intro{position:fixed;inset:0;z-index:80;max-width:none;background:#0c1814;overflow:auto;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));box-sizing:border-box}
#page-intro .section-heading{margin:0;gap:12px;align-items:center}#page-intro h2{font-size:18px;margin:0}#intro-leave{font-size:12px;min-height:44px;padding:8px}#intro-status,#intro-balance{font-size:12px;line-height:1.4;margin:6px 0}#intro-note{font-size:13px;line-height:1.5}#page-intro[data-phase="playing"] #intro-note,#page-intro[data-phase="countdown"] #intro-note{display:none}#page-intro canvas{width:min(100%,calc(100dvh - 290px));height:auto;margin:8px auto}#page-intro #intro-controls{margin:8px auto;width:100%;max-width:720px}#page-intro #intro-controls .direction-settings{display:none}#page-intro[data-phase="betting"] canvas,#page-intro[data-phase="result"] canvas{width:min(100%,35dvh)}#page-intro[data-phase="betting"] #intro-controls{display:none}#page-intro[data-phase="waiting"]{max-width:800px;margin:auto}
@media(max-height:500px) and (min-width:650px){#page-intro:is([data-phase="playing"],[data-phase="countdown"]){display:grid;grid-template-columns:minmax(0,1fr) 260px;grid-template-rows:auto auto minmax(0,1fr);gap:4px}#page-intro .section-heading{grid-column:1/-1}#intro-status{grid-column:1}#intro-balance{grid-column:2;grid-row:2}#page-intro:is([data-phase="playing"],[data-phase="countdown"]) canvas{grid-row:3;grid-column:1;max-height:100%;width:auto;max-width:100%;margin:auto}#page-intro #intro-controls{grid-column:2;grid-row:3;align-self:end}#intro-controls .direction-swipe{min-height:100px}}

/* Membership launch preview: prices are visible; no checkout exists yet. */
.membership-section{padding:3rem 0;scroll-margin-top:6rem}.membership-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;margin:1.5rem 0}.membership-grid .panel{display:flex;flex-direction:column;gap:1rem;padding:1.5rem;min-width:0}.membership-grid h3,.membership-grid p{margin:0}.membership-grid button{margin-top:auto;min-height:48px}.membership-grid small{line-height:1.6}.membership-price{font-size:2.4rem;font-weight:750}.membership-price small{font-size:1rem;font-weight:400}.membership-featured{border-color:#c9f85c}.host-price-note{padding:1rem;border-left:3px solid #c9f85c;line-height:1.6}@media(max-width:800px){.membership-grid{grid-template-columns:1fr}.membership-section{padding:2rem 0}}

/* Signup controls: keep native selects stable and make password visibility explicit. */
#account-dialog select{appearance:auto;-webkit-appearance:menulist;min-height:48px;touch-action:manipulation}
.password-input-row{position:relative;display:block;margin-top:8px}
.password-input-row input{margin-top:0;padding-right:88px}
.password-input-row .password-visibility{position:absolute;right:6px;top:50%;transform:translateY(-50%);min-height:36px;padding:5px 9px;font-size:12px;touch-action:manipulation}
@media(max-width:600px){#account-dialog select{min-height:52px}.password-input-row .password-visibility{min-height:40px}}
#account-dialog{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}

/* The play lobby is the player's launchpad: show the three ways to play before the detail. */
.lobby-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:18px 0 24px;border-bottom:1px solid var(--line)}
.lobby-heading h1{font-size:clamp(36px,4.2vw,56px);line-height:1.02;letter-spacing:-2px;margin:10px 0}
.lobby-heading p{color:var(--muted);font-size:15px;margin:0}
.lobby-status{display:grid;grid-template-columns:12px auto;align-items:center;column-gap:9px;padding:13px 17px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(135deg,#17283b,#121d2e);font-size:11px;color:var(--muted);white-space:nowrap}
.lobby-status .live-dot{grid-row:span 2;margin:0;width:9px;height:9px}.lobby-status b{color:var(--ink);font-size:13px;margin-top:3px}
.lobby-launch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0 30px}
.lobby-launch-card{padding:0;text-align:left;min-width:0;overflow:hidden;border:1px solid #354b65;border-radius:16px;background:#111d2e;display:flex;flex-direction:column;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.lobby-launch-card:hover{transform:translateY(-3px);border-color:#9dcf5a;box-shadow:0 14px 40px #0004;background:#142339!important}
.launch-visual{height:168px;display:block;position:relative;overflow:hidden;background-color:#0b1523;background-image:linear-gradient(#37516a44 1px,transparent 1px),linear-gradient(90deg,#37516a44 1px,transparent 1px);background-size:24px 24px;border-bottom:1px solid #344b63}
.launch-tournament .launch-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#101b2b 0%,transparent 72%)}
.launch-visual img{width:100%;height:100%;object-fit:cover;object-position:center 45%;display:block;opacity:.9}
.launch-copy{display:grid;gap:5px;padding:16px 18px 18px}
.launch-copy .eyebrow{font-size:9px;color:#a8c4df}
.launch-copy strong{font-size:23px;line-height:1.1;letter-spacing:-.5px}
.launch-copy small{font-size:12px;color:var(--muted)}
.launch-cta{display:flex;justify-content:space-between;align-items:center;margin-top:9px;padding-top:11px;border-top:1px solid #34465b;font-size:12px;font-weight:700;color:var(--lime)}
.launch-cta b{font-size:18px}
.launch-world .launch-visual{background-color:#0b1717;background-image:linear-gradient(#43625044 1px,transparent 1px),linear-gradient(90deg,#43625044 1px,transparent 1px),radial-gradient(ellipse at 50% 55%,#35604566,transparent 58%);background-size:22px 22px,22px 22px,auto}
.launch-snake{position:absolute;display:block;border-radius:7px;filter:drop-shadow(0 4px 8px #0007)}
.launch-snake-one{left:27%;top:38%;width:43%;height:30%;border-left:12px solid #b7dc83;border-top:12px solid #b7dc83;border-radius:8px 0 0 0}
.launch-snake-two{left:55%;top:24%;width:25%;height:48%;border-right:11px solid #807dd0;border-bottom:11px solid #807dd0;border-radius:0 0 8px 0}
.launch-food{position:absolute;top:27%;left:73%;width:8px;height:8px;border-radius:50%;background:var(--gold);box-shadow:-148px 46px 0 var(--gold),-70px 93px 0 var(--gold),38px 57px 0 var(--gold),-25px -13px 0 var(--gold)}
.launch-friends .launch-visual{display:flex;align-items:center;justify-content:center;gap:0;background:radial-gradient(ellipse at 50% 100%,#263e54,#121e30 70%)}
.friend-avatar{display:grid;place-items:center;width:62px;height:62px;border:3px solid #142136;border-radius:50%;font-size:19px;font-style:normal;font-weight:800;box-shadow:0 6px 18px #0005}
.friend-avatar-one{background:#b8728e;transform:translateX(12px) rotate(-7deg);color:#20121a}.friend-avatar-two{background:#8dbc6b;z-index:1;color:#142017}.friend-avatar-three{background:#768bd4;transform:translateX(-12px) rotate(7deg);color:#11182c}
.friend-plus{position:absolute;right:22%;top:23%;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--lime);color:#142000;font-size:19px;font-weight:700}
.launch-friends .launch-cta{color:#9de0ee}
.play-page .market-section{margin-top:34px;padding-top:0}
.play-page .market-section>.section-heading{padding-bottom:12px;border-bottom:1px solid var(--line)}
.play-page .market-section>.section-heading h2{font-size:25px}
.play-page .market-section>p.fine-print{max-width:760px}
.play-page .open-world-card{margin-top:20px;padding:26px 30px;background:linear-gradient(110deg,#14291f,#122131);border:1px solid #46604c;border-left:4px solid var(--lime);border-radius:16px}
.open-world-card h2{font-size:29px;margin:8px 0 5px}.open-world-card>p{max-width:740px;margin:0;color:var(--muted);line-height:1.6}
.lobby-more{margin-top:10px;color:#c8d6ca}.lobby-more summary{font-size:12px;min-height:36px;padding:6px 0}.lobby-more p{max-width:800px;font-size:12px;color:var(--muted)}
.play-page #friends-section{margin-top:34px;padding-top:24px;border-top:1px solid var(--line)}
.play-page .friends-card{border-color:#48637a;background:linear-gradient(145deg,#182f42,#121e30)}
.play-page .friends-card h3{font-size:29px;margin:10px 0}
.play-page .friends-card p{line-height:1.55;margin:0 0 12px}
.play-page .friends-card small{margin-top:10px}
@media(max-width:850px){.lobby-launch-grid{gap:12px}.launch-visual{height:138px}.launch-copy{padding:14px}.launch-copy strong{font-size:20px}.lobby-status{padding:11px 13px}}
@media(max-width:640px){.lobby-heading{align-items:flex-start;padding:8px 0 18px}.lobby-heading h1{font-size:36px}.lobby-heading p{font-size:13px}.lobby-status{display:none}.lobby-launch-grid{grid-template-columns:1fr;gap:10px;margin:18px 0 24px}.lobby-launch-card{display:grid;grid-template-columns:34% minmax(0,1fr);min-height:126px;border-radius:13px}.launch-visual{height:100%;min-height:126px;border:0;border-right:1px solid #344b63}.launch-copy{align-content:center;padding:12px 14px;gap:3px}.launch-copy .eyebrow{font-size:8px}.launch-copy strong{font-size:19px}.launch-copy small{font-size:11px}.launch-cta{margin-top:5px;padding-top:6px;font-size:11px}.friend-avatar{width:40px;height:40px;font-size:14px;border-width:2px}.launch-snake-one{border-width:8px}.launch-snake-two{border-width:8px}.friend-plus{right:10%;top:18%;width:23px;height:23px}.play-page .market-section{margin-top:26px}.play-page .market-section>.section-heading h2{font-size:21px}.play-page .open-world-card{padding:21px;margin-top:16px}.open-world-card h2{font-size:24px}.play-page #friends-section{margin-top:25px;padding-top:20px}.play-page .friends-card h3{font-size:25px}}
@media(prefers-reduced-motion:reduce){.lobby-launch-card{transition:none}.lobby-launch-card:hover{transform:none}}

/* Lobby: choose one mode, then act. Secondary information stays expandable. */
.play-page{max-width:1080px;margin-inline:auto}
.lobby-heading{padding:0;align-items:center;gap:20px}
.lobby-heading h1{font-size:38px;margin:4px 0 6px}
.lobby-heading p{margin:0;font-size:14px}
.lobby-status{display:flex;flex-direction:column;align-items:flex-start;gap:2px;background:transparent;padding:8px 14px;white-space:normal;max-width:280px}
.lobby-status .text-button{min-height:32px;padding:4px 0;color:var(--lime)}
.lobby-launch-grid{gap:12px;margin:22px 0 20px}
.lobby-launch-card{position:relative;border-radius:10px;background:#15231c;border-color:#3c4e40}
.lobby-launch-card:hover{transform:none;background:#1c3023!important}
.lobby-launch-card[aria-pressed="true"]{border-color:var(--lime);box-shadow:0 0 0 2px var(--lime)}
.lobby-launch-card .launch-visual{height:94px;min-height:0;flex-shrink:0;border-color:#3c4e40}
.lobby-launch-card .launch-copy{padding:12px 16px;gap:4px}
.launch-copy strong{font-size:22px}
.launch-copy .eyebrow{color:#b0c1b4;font-size:9px;letter-spacing:1px}
.launch-copy small{font-size:12px}
.launch-cta{padding-top:7px;margin-top:4px;border-color:#3c4e40;font-size:11px}
.launch-selection{visibility:hidden}
[aria-pressed="true"] .launch-selection{visibility:visible}
.launch-friends .launch-visual{background-color:#13261b;background-image:linear-gradient(#37533d55 1px,transparent 1px),linear-gradient(90deg,#37533d55 1px,transparent 1px);background-size:20px 20px}
.launch-friends .friend-avatar{border-radius:8px;width:40px;height:40px;border-width:2px;font-family:monospace}
.play-page .lobby-mode-panel{margin:0 0 20px;padding:22px 24px;border:1px solid #435646;border-radius:12px;background:linear-gradient(115deg,#1c3023,#14211b);scroll-margin-top:18px}
.play-page .lobby-mode-panel>.section-heading{margin:0 0 14px;padding:0;border:0}
.play-page .lobby-mode-panel h2{font-size:25px;margin:3px 0 8px}
.lobby-board-choice{display:flex;align-items:center;gap:12px;max-width:360px;font-size:12px}
.lobby-board-choice select{flex:1;margin:0;min-height:42px}
.play-page .market-tables{grid-template-columns:1fr;margin:12px 0 0}
.membership-table{display:grid;grid-template-columns:1fr minmax(220px,320px);column-gap:28px;padding:0;background:transparent;border:0;border-radius:0}
.membership-table h3{font-size:26px;margin:4px 0}
.membership-table p{min-height:0;margin:4px 0;font-size:13px;line-height:1.5}
.membership-table>.primary{align-self:center;margin:0;min-height:50px;justify-content:center}
.membership-table>.queue-start{grid-column:1/-1;color:var(--muted);font-size:12px;margin-top:12px}
.membership-table>.lobby-more{grid-column:1/-1}
.play-page .lobby-more{margin-top:8px}
.play-page .lobby-more summary{font-size:12px;min-height:36px}
.play-page .open-world-card>.content-actions{margin:18px 0 6px;display:flex;flex-wrap:wrap;gap:10px}
.play-page .open-world-card #open-world-join{order:-1;min-width:200px}
.play-page .mode-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 0}
.play-page .mode-card{padding:12px 16px;min-height:96px;order:1}
.play-page .mode-card .mini-arena,.play-page .mode-card .mini-world,.play-page .mode-card .mode-no,.play-page .mode-card .card-meta{display:none}
.play-page .mode-card h3{font-size:18px;margin:0 0 4px}
.play-page .mode-card p{font-size:12px;margin:0}
.play-page .friends-card{grid-column:1/-1;order:2;padding:12px 0 0;border:0;background:transparent}
.play-page .friends-card h3{display:none}
.play-page .friends-card p{font-size:13px;margin:0 0 12px}
.play-page .friends-card>.secondary{background:var(--lime);color:#172017;min-height:48px;min-width:220px}
.play-page .friends-card>.text-button{margin-left:20px}
.play-page .explore-section{margin:0;border-top:1px solid var(--line);padding:0}
.play-page .explore-section>summary{min-height:54px;padding:16px 0;font-size:14px}
.play-page .explore-section>summary>span{font-size:11px}
.play-page .explore-section .competition-section,.play-page .recent-section{margin:14px 0}
.play-page #admin-home-shortcut{margin-top:18px;padding:14px 18px}
.play-page #admin-home-shortcut h2{font-size:16px;margin:0}
.play-page #admin-home-shortcut p{display:none}
.play-page .continue-card{margin:0 0 18px;padding:14px 20px}
.play-page .continue-card h2{font-size:20px}
@media(max-width:640px){
 body[data-view="play"] main{padding-top:20px}
 .lobby-heading{display:block;padding:0}
 .lobby-heading h1{font-size:29px}
 .lobby-heading p{font-size:12px}
 .lobby-status{display:flex;flex-direction:row;align-items:center;justify-content:space-between;max-width:none;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:6px 0;font-size:10px;margin-top:8px;gap:6px}
 .lobby-status .text-button{font-size:10px;white-space:nowrap}
 .lobby-launch-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:15px 0 18px}
 .lobby-launch-card{display:flex;min-height:0;flex-direction:column;border-radius:8px}
 .lobby-launch-card .launch-visual{width:100%;height:54px;border-right:0;border-bottom:1px solid #3c4e40}
 .lobby-launch-card .launch-copy{padding:10px 7px;gap:0;width:100%}
 .launch-copy strong{font-size:14px;letter-spacing:-.3px}
 .lobby-launch-card .launch-copy .eyebrow,.lobby-launch-card .launch-copy small{display:none}
 .launch-cta{font-size:0;padding:0;margin:5px 0 0;border:0;height:15px;justify-content:flex-end}
 .launch-cta b{font-size:15px;line-height:15px}
 .launch-friends .friend-avatar{width:26px;height:26px;font-size:10px}
 .friend-plus{width:17px;height:17px;font-size:12px;right:8%;top:12%}
 .launch-snake-one,.launch-snake-two{border-width:6px}
 .play-page .lobby-mode-panel{padding:16px;margin:0 0 16px}
 .play-page .lobby-mode-panel h2{font-size:22px;margin:3px 0 6px}
 .play-page .lobby-mode-panel>.section-heading{margin-bottom:10px}
 .membership-table{display:block}
 .membership-table h3{font-size:22px;margin:3px 0}
 .membership-table .queue-intro>.eyebrow{font-size:8px}
 .membership-table>.primary{width:100%;margin-top:12px;min-height:48px;font-size:13px}
 .membership-table>.queue-start{font-size:11px;margin-top:10px}
 .play-page .open-world-card>p{font-size:13px;line-height:1.5}
 .play-page .open-world-card>.content-actions{margin-top:14px}
 .play-page .open-world-card>.content-actions>button{width:100%;justify-content:center}
 .play-page .mode-card{min-height:80px;padding:10px}
 .play-page .mode-card h3{font-size:16px}
 .play-page .mode-card p{font-size:11px}
 .play-page #friends-section>.section-heading>.muted{display:none}
 .play-page .friends-card>.secondary{width:100%}
 .play-page .friends-card>.text-button{margin-left:0;width:100%}
 .play-page .explore-section>summary>span{display:none}
}
.membership-table:before{display:none}
.play-page #market-section>.section-heading{align-items:center}
.lobby-board-choice{flex:0 1 240px;min-width:190px}
@media(max-width:640px){
 .play-page #market-section>.section-heading{display:block}
 .lobby-board-choice{margin-top:10px;max-width:none}
}
body[data-view="play"] .site-header{margin-bottom:0}
body[data-view="play"] .beta-strip{display:none}

/* Keep all result choices reachable, including a full country top ten on mobile. */
#open-result-dialog{max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}
#open-result-dialog .content-actions{display:grid;gap:10px}
#open-result-dialog .content-actions button{width:100%;min-width:0;white-space:normal;min-height:44px}
#open-result-ranking{font-size:13px;line-height:1.7;overflow-wrap:anywhere}

/* Advisory connection checks never cover or disable the game controls. */
.connection-readiness{font-size:.8rem;line-height:1.4;margin:.5rem 0;color:var(--muted,#a9b7cc);overflow-wrap:anywhere}
.connection-readiness>span::before{content:'●';margin-right:.4em;color:#8b99ae}
.connection-readiness[data-level="green"]>span::before{color:#8ef0b2}
.connection-readiness[data-level="yellow"]>span::before{color:#f6df7c}
.connection-readiness[data-level="red"]>span::before{color:#ff9f9f}
.connection-readiness details{font-size:.75rem}.connection-readiness summary{cursor:pointer;width:fit-content}
.connection-detail{font-size:.85rem;color:var(--muted,#a9b7cc);line-height:1.5}
.connection-check-dialog{width:min(30rem,calc(100vw - 2rem));max-height:calc(100dvh - 2rem);overflow:auto}
.connection-check-dialog .content-actions{display:flex;gap:.6rem;flex-wrap:wrap}
.connection-advisory{border-left:3px solid #8b99ae;padding-left:.75rem;line-height:1.5}
.connection-advisory[data-level="green"]{border-color:#8ef0b2}.connection-advisory[data-level="yellow"]{border-color:#f6df7c}.connection-advisory[data-level="red"]{border-color:#ff9f9f}

.hero-actions>.connection-readiness{flex-basis:100%}
.connection-readiness-game{flex:0 0 100%;height:3.6rem;margin:0;position:relative;font-size:.75rem}
.connection-readiness-game>span{display:block;height:2.8em;overflow:hidden}
.connection-readiness-game details[open]>.connection-detail{position:absolute;top:100%;left:0;right:0;z-index:95;background:#132238;border:1px solid #49617f;border-radius:8px;padding:.75rem;margin:0;box-shadow:0 8px 24px #0008}

/* Keep mobile control settings reachable without changing the direction pads. */
[data-input-settings]{min-width:44px;min-height:44px}
[data-input-settings][aria-label]{font-size:22px;line-height:1;flex:0 0 44px;padding:8px}

/* Contain the focused game, including misses between steering controls. */
html:has(body:is(.open-focus,.game-focus)){height:100%;overflow:hidden;overscroll-behavior:none}
body:is(.open-focus,.game-focus){position:fixed;inset:0;width:100%;height:100%;height:100dvh;overflow:hidden;overscroll-behavior:none}
body.open-focus #page-open{height:100%;height:100dvh;min-height:0;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
body.game-focus .board-top{padding-top:max(6px,env(safe-area-inset-top));padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
.direction-controller{touch-action:none}
.input-settings-dialog{width:min(440px,calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)));max-width:none;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:0;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y}
.input-settings-dialog[open]{display:flex;flex-direction:column}
.input-settings-header,.input-settings-actions{flex:0 0 auto;padding:12px 18px;background:var(--panel)}
.input-settings-header{border-bottom:1px solid var(--line)}
.input-settings-header h2{font-size:23px;margin:0;line-height:1.3}
.input-settings-content{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:0 18px}
.input-settings-content:focus-visible{outline:2px solid var(--lime);outline-offset:-3px}
.input-settings-dialog .direction-settings{margin:16px 0;gap:12px}
.input-settings-dialog .direction-settings label{margin:0;min-width:0}
.input-settings-dialog .direction-settings select{width:100%;font:inherit;touch-action:pan-y}
.input-settings-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;border-top:1px solid var(--line)}
.input-settings-actions button{min-height:44px;white-space:normal;padding:9px 14px}
.input-settings-actions .primary{flex:0 0 auto;justify-content:center}

/* Touch landscape: the board uses the available height; a compact rail follows the chosen hand. */
body.open-focus #page-open{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media(orientation:landscape){
 html[data-input-device="touch"] body.open-focus:has(.world-dpad) #page-open:not(.guest-result-visible){
  --open-width:calc(100vw - max(4px,env(safe-area-inset-left)) - max(4px,env(safe-area-inset-right)));
  --open-height:calc(100dvh - max(4px,env(safe-area-inset-top)) - max(4px,env(safe-area-inset-bottom)));
  /* Four 44px actions plus gaps fit at the minimum; wider viewports grow the thumb rail. */
  --open-rail:clamp(192px,calc(var(--open-width) * .28),300px);
  --open-square:min(var(--open-height),calc(var(--open-width) - var(--open-rail) - 12px));
  display:grid;grid-template-columns:minmax(0,var(--open-square)) minmax(0,var(--open-rail));grid-template-rows:auto minmax(0,1fr);justify-content:center;gap:4px 12px;
  padding:max(4px,env(safe-area-inset-top)) max(4px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left));
 }
 html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-hand="left"]) #page-open:not(.guest-result-visible){grid-template-columns:minmax(0,var(--open-rail)) minmax(0,var(--open-square))}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) #open-status{display:none}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .open-canvas-wrap{grid-column:1;grid-row:1/-1;min-height:0;min-width:0;height:auto;width:100%;aspect-ratio:1;align-self:center;flex:none}
 html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-hand="left"]) #page-open:not(.guest-result-visible) .open-canvas-wrap{grid-column:2}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .open-heading{grid-column:2;grid-row:1;display:flex;gap:2px 8px;min-width:0;align-items:center}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .open-heading .eyebrow{display:none}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .open-heading h2{color:#f4f8fc;font-size:16px;line-height:1.2;margin:0;white-space:nowrap}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .open-heading .actions{width:100%;margin:0;gap:4px;flex-wrap:wrap;justify-content:flex-start}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .open-heading button{color:#f4f8fc;background:#142238;border-color:#49617f;font-size:11px;line-height:1.15;padding:5px;min-width:44px;min-height:44px}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .open-heading :is(#open-focus,#open-home,#open-leave){font-size:0;width:44px;flex:0 0 44px}
 /* The original button text remains its accessible name; symbols save width without truncating it. */
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) #open-focus::after{content:'↙';font-size:24px}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) #open-home::after{content:'⌂';font-size:25px}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) #open-leave::after{content:'×';font-size:27px}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .open-heading [data-input-settings]{font-size:22px}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .connection-readiness-game{height:auto;min-height:22px;display:flex;align-items:center;gap:8px;font-size:10px;line-height:1.2;min-width:0}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .connection-readiness-game>span{height:auto;flex:1;min-width:0}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .connection-readiness-game summary{white-space:nowrap;min-height:24px;display:flex;align-items:center}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .connection-readiness-game details[open]>.connection-detail{top:100%}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .open-bottom{grid-column:2;grid-row:2;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;width:100%;height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0;gap:4px;position:static}
 html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-hand="left"]) #page-open:not(.guest-result-visible) :is(.open-heading,.open-bottom){grid-column:1}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) #open-metrics{position:static;flex:none;font-size:10px;line-height:1.2;text-align:start}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .open-bottom>.actions:not(:has(button:not([hidden]))){display:none}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .world-dpad{flex:1;min-height:96px;container-type:size;align-items:stretch;justify-content:flex-end;gap:0}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .world-dpad .direction-pad{--direction-size:max(44px,min(calc((100cqh - 5px)/2),calc((100cqw - 10px)/3)));align-self:center}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .world-dpad[data-input-mode="twohand"] .direction-pad{--direction-size:max(44px,min(calc((100cqh - 8px)/2),calc((100cqw - 48px)/3)));align-self:stretch}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .world-dpad .direction-swipe{width:100%;height:100%;min-height:96px}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .world-dpad .direction-dual-swipe{height:100%;min-height:96px;gap:10px}
}


/* Two thumbs flank a centered board; utility controls stay above the thumb zones. */
@media(orientation:landscape){
 html[data-input-device="touch"] body.open-focus:has(.world-dpad:is([data-input-mode="twohand"],[data-input-mode="dualswipe"])) #page-open:not(.guest-result-visible){
  --open-square:min(var(--open-height),calc(var(--open-width) - 248px));
  --direction-size:max(44px,min(76px,calc(var(--open-height) * .2),calc((var(--open-width) - var(--open-square) - 24px) / 4 - 12px)));
  --open-swipe-height:max(96px,min(calc(var(--open-height) * .45),180px));
  display:grid;grid-template-columns:minmax(112px,1fr) minmax(0,var(--open-square)) minmax(112px,1fr);grid-template-rows:auto minmax(0,1fr);gap:4px 12px;
 }
 html[data-input-device="touch"] body.open-focus:has(.world-dpad:is([data-input-mode="twohand"],[data-input-mode="dualswipe"])) #page-open:not(.guest-result-visible) .open-heading{grid-column:1;grid-row:1;display:flex;flex-wrap:wrap;gap:4px;min-height:0;max-height:calc(var(--open-height) - 2 * var(--direction-size) - 40px);align-self:start;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
 html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-input-mode="dualswipe"]) #page-open:not(.guest-result-visible) .open-heading{max-height:calc(var(--open-height) - var(--open-swipe-height) - 32px)}
 html[data-input-device="touch"] body.open-focus:has(.world-dpad:is([data-input-mode="twohand"],[data-input-mode="dualswipe"])) #page-open:not(.guest-result-visible) .open-heading .actions{width:100%;flex:none;margin:0;flex-wrap:wrap}
 html[data-input-device="touch"] body.open-focus:has(.world-dpad:is([data-input-mode="twohand"],[data-input-mode="dualswipe"])) #page-open:not(.guest-result-visible) .connection-readiness-game{flex:1 1 100%;min-height:0;max-width:100%;margin:0}
 html[data-input-device="touch"] body.open-focus:has(.world-dpad:is([data-input-mode="twohand"],[data-input-mode="dualswipe"])) #page-open:not(.guest-result-visible) .connection-readiness-game summary{min-height:44px}
 html[data-input-device="touch"] body.open-focus:has(.world-dpad:is([data-input-mode="twohand"],[data-input-mode="dualswipe"])) #page-open:not(.guest-result-visible) .connection-readiness-game>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:2.4em;overflow:hidden}
 html[data-input-device="touch"] body.open-focus:has(.world-dpad:is([data-input-mode="twohand"],[data-input-mode="dualswipe"])) #page-open:not(.guest-result-visible) .connection-readiness-game details[open]>.connection-detail{position:static;margin-top:4px}
 html[data-input-device="touch"] body.open-focus:has(.world-dpad:is([data-input-mode="twohand"],[data-input-mode="dualswipe"])) #page-open:not(.guest-result-visible) .open-canvas-wrap{grid-column:2;grid-row:1/-1;align-self:center;justify-self:center;width:auto;height:100%;max-height:var(--open-square);max-width:100%;aspect-ratio:1}
 html[data-input-device="touch"] body.open-focus:has(.world-dpad:is([data-input-mode="twohand"],[data-input-mode="dualswipe"])) #page-open:not(.guest-result-visible) :is(.open-bottom,.world-dpad){--direction-size:inherit;display:contents;container-type:normal}
 html[data-input-device="touch"] body.open-focus:has(.world-dpad:is([data-input-mode="twohand"],[data-input-mode="dualswipe"])) #page-open:not(.guest-result-visible) #open-metrics{grid-column:3;grid-row:1;position:static;text-align:start;align-self:start;font-size:10px;line-height:1.2;white-space:normal}
 html[data-input-device="touch"] body.open-focus:has(.world-dpad:is([data-input-mode="twohand"],[data-input-mode="dualswipe"])) #page-open:not(.guest-result-visible) .open-bottom>.actions:has(button:not([hidden])){grid-column:3;grid-row:1;align-self:start;margin-top:44px;flex-wrap:wrap;gap:4px;z-index:1}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .world-dpad[data-input-mode="twohand"] .direction-pad{--direction-size:inherit;display:contents}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .world-dpad[data-input-mode="twohand"] .direction-pad button{grid-area:1/1/-1/2;align-self:end;justify-self:center;margin-bottom:16px;position:relative;inset:auto;width:var(--direction-size);height:var(--direction-size);min-width:var(--direction-size);min-height:var(--direction-size)}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .world-dpad[data-input-mode="twohand"][data-hand="right"] :is([data-direction="0"],[data-direction="2"]),
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .world-dpad[data-input-mode="twohand"][data-hand="left"] :is([data-direction="3"],[data-direction="1"]){grid-column:3}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .world-dpad[data-input-mode="twohand"] [data-direction="0"]{transform:translateY(calc(-100% - 8px))}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .world-dpad[data-input-mode="twohand"] [data-direction="2"]{transform:none}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .world-dpad[data-input-mode="twohand"] [data-direction="3"]{transform:translate(calc(-50% - 4px),calc(-50% - 4px))}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .world-dpad[data-input-mode="twohand"] [data-direction="1"]{transform:translate(calc(50% + 4px),calc(-50% - 4px))}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .world-dpad[data-input-mode="dualswipe"] .direction-dual-swipe{display:contents}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .world-dpad[data-input-mode="dualswipe"] .direction-dual-swipe .direction-swipe{grid-column:1;grid-row:1/-1;align-self:end;justify-self:center;margin-bottom:16px;width:100%;height:var(--open-swipe-height);min-height:96px}
 html[data-input-device="touch"] body.open-focus #page-open:not(.guest-result-visible) .world-dpad[data-input-mode="dualswipe"] .direction-dual-swipe .direction-swipe:last-child{grid-column:3}
}

/* Authoritative settings countdown overlays the frozen board in either orientation. */
.open-canvas-wrap{position:relative}#open-countdown:not([hidden]){position:absolute;z-index:2;inset:50% auto auto 50%;transform:translate(-50%,-50%);max-width:90%;padding:12px 18px;border:1px solid var(--lime);border-radius:12px;background:#0a1220ed;color:var(--ink);font-size:clamp(16px,3vw,24px);font-weight:750;text-align:center;pointer-events:none}

#open-countdown[data-ready="true"]:not([hidden]){inset:8px 8px auto;transform:none;max-width:none;padding:7px 10px;font-size:14px;line-height:1.25}

/* Mobile choices require a phone/tablet touchscreen, independently of saved preferences or width. */
html:not([data-input-device="touch"]) :is([data-input-settings],.dpad,.tutorial-dpad,.world-dpad,.honour-dpad,.input-settings-dialog){display:none!important}
.keyboard-controls-hint{margin:4px 0;font-size:12px;line-height:1.4;color:var(--muted)}
html[data-input-device="keyboard"] body.open-focus #page-open:not(.guest-result-visible){display:flex;flex-direction:column;gap:6px}
html[data-input-device="keyboard"] body.open-focus #page-open:not(.guest-result-visible) .open-canvas-wrap{flex:1;aspect-ratio:auto;align-self:stretch;min-height:0}
html[data-input-device="keyboard"] body.open-focus #page-open:not(.guest-result-visible) .open-bottom{flex:none;display:block;height:auto;padding:0}
.admin-headlines,.admin-activity{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-statistics>.panel{margin-bottom:20px}.admin-statistics h2{margin-top:0}.admin-statistics .metric-card{min-width:0;overflow-wrap:anywhere}.admin-statistics .ledger-list>div{align-items:baseline}.admin-statistics .ledger-list dt{min-width:0;overflow-wrap:anywhere}.admin-statistics .ledger-list dd{flex-shrink:0}.admin-headlines strong{font-size:clamp(34px,5vw,54px)}
@media(max-width:600px){.admin-headlines,.admin-activity{grid-template-columns:1fr}.admin-statistics .ledger-list>div{gap:12px}.admin-statistics .metric-card{padding:20px}}

/* Screen-wide steering in the free/record world. Utility UI remains a separate
   44px HUD, while both swipe choices use the same unobstructed play surface. */
html[data-input-device="touch"] #page-open[data-screen-swipe="true"]{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
html[data-input-device="touch"] #page-open[data-screen-swipe="true"] .world-dpad{display:none!important}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"]:not(.guest-result-visible){
 --swipe-width:calc(100vw - max(4px,env(safe-area-inset-left)) - max(4px,env(safe-area-inset-right)));
 --swipe-height:calc(100dvh - max(4px,env(safe-area-inset-top)) - max(4px,env(safe-area-inset-bottom)));
 --swipe-square:min(var(--swipe-width),calc(var(--swipe-height) - 94px));
 display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:44px minmax(0,1fr) 40px;gap:4px;
 padding:max(4px,env(safe-area-inset-top)) max(4px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left));
}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"]:not(.guest-result-visible) .open-heading{grid-column:1;grid-row:1;display:flex;flex-wrap:nowrap;align-items:center;gap:4px;min-height:44px;max-height:none;overflow:visible}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] .open-heading .eyebrow{display:none}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] .open-heading h2{font-size:14px;line-height:1.2;margin:0;white-space:nowrap}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] .open-heading .actions{width:auto;flex:1;margin:0;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:4px}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] .open-heading button{min-width:44px;min-height:44px;padding:5px;color:#f4f8fc;background:#142238;border-color:#49617f}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] .open-heading :is(#open-focus,#open-home,#open-leave){font-size:0;width:44px;flex:0 0 44px}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] #open-focus::after{content:'↙';font-size:24px}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] #open-home::after{content:'⌂';font-size:25px}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] #open-leave::after{content:'×';font-size:27px}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] #open-status{display:none}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"]:not(.guest-result-visible) .open-canvas-wrap{grid-column:1;grid-row:2;justify-self:center;align-self:center;width:var(--swipe-square);height:var(--swipe-square);max-width:100%;max-height:100%;aspect-ratio:1;min-height:0;min-width:0;flex:none}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"]:not(.guest-result-visible) .open-bottom{grid-column:1;grid-row:3;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:8px;padding:0;overflow:visible;min-height:0;height:auto;position:static}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] #open-metrics{position:static;font-size:10px;line-height:1.2;white-space:normal;text-align:start;flex:1;min-width:0}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] .open-bottom>.actions{margin:0;min-height:0;flex-wrap:nowrap}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] .open-bottom>.actions:not(:has(button:not([hidden]))){display:none}
/* Keep measured connection status and its 44px details target in the footer. */
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] .connection-readiness-game{display:flex;position:absolute;bottom:max(4px,env(safe-area-inset-bottom));right:max(4px,env(safe-area-inset-right));height:40px;min-height:0;max-width:58%;gap:6px;font-size:10px;line-height:1.2;z-index:3}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] .connection-readiness-game>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:2.4em}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] .connection-readiness-game summary{min-height:44px;min-width:44px;display:flex;align-items:center}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] .connection-readiness-game details[open]>.connection-detail{position:absolute;top:auto;bottom:44px;left:auto;right:0;width:min(420px,calc(100vw - 16px));z-index:95;background:#132238;padding:12px}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] #open-metrics{max-width:40%}

/* Every touch game surface uses its existing cardinal emitter. Educational
   views keep their content; focused matches reclaim the former control rail. */
html[data-input-device="touch"] .page[data-screen-swipe="true"] .direction-controller[data-screen-swipe="true"]{display:none!important}
html[data-input-device="touch"] .page[data-screen-swipe="true"] :is(canvas,.tutorial-canvas,.canvas-wrap){touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
html[data-input-device="touch"] body.game-focus #page-game[data-screen-swipe="true"]{touch-action:none;user-select:none;-webkit-user-select:none}
html[data-input-device="touch"] body.game-focus:not(.betting) #page-game[data-screen-swipe="true"] .board-card{inset:0 0 calc(50px + env(safe-area-inset-bottom));display:flex;flex-direction:column}
html[data-input-device="touch"] body.game-focus:not(.betting) #page-game[data-screen-swipe="true"] .canvas-wrap{height:auto;min-height:0;flex:1;padding:4px;display:flex;align-items:center;justify-content:center;container-type:size}
html[data-input-device="touch"] body.game-focus:not(.betting) #page-game[data-screen-swipe="true"] .canvas-wrap canvas{width:min(100cqw,100cqh);height:min(100cqw,100cqh);max-width:100%;max-height:100%;aspect-ratio:1}
html[data-input-device="touch"] body.game-focus:not(.betting) #page-game[data-screen-swipe="true"] .decision{inset:auto 0 0;width:100%;height:calc(50px + env(safe-area-inset-bottom));min-height:0;padding:2px 8px max(2px,env(safe-area-inset-bottom));display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;pointer-events:auto;overflow:visible}
html[data-input-device="touch"] body.game-focus:not(.betting) #page-game[data-screen-swipe="true"] .player-position{position:static;display:flex;flex-wrap:nowrap;align-items:center;gap:8px;width:100%;max-width:100%;font-size:10px;line-height:1.2}
html[data-input-device="touch"] body.game-focus:not(.betting) #page-game[data-screen-swipe="true"] .player-position :is(h3,p){font-size:11px;margin:0}
html[data-input-device="touch"] body.game-focus:not(.betting) #page-game[data-screen-swipe="true"] .player-position>.eyebrow{display:none}
html[data-input-device="touch"] body.game-focus #page-game[data-screen-swipe="true"] .board-top button,html[data-input-device="touch"] body.game-focus #page-game[data-screen-swipe="true"] .cup-controls button{min-width:44px;min-height:44px}
html[data-input-device="touch"] #page-intro[data-screen-swipe="true"] canvas{width:min(100%,calc(100dvh - 180px))}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] .open-bottom:has(.actions button:not([hidden])) #open-metrics{display:none}
html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] .open-bottom>.actions{max-width:40%}

/* Landscape swipe HUDs occupy the spare corners, leaving the board square at
   the full safe-area height. No gesture overlay sits above utility controls. */
@media(orientation:landscape){
 html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"]:not(.guest-result-visible){
  --swipe-square:min(var(--swipe-height),calc(var(--swipe-width) - 240px));
  grid-template-columns:minmax(112px,1fr) var(--swipe-square) minmax(112px,1fr);grid-template-rows:minmax(0,1fr);gap:0 8px;
 }
 html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"]:not(.guest-result-visible) .open-canvas-wrap{grid-column:2;grid-row:1;align-self:center}
 html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"]:not(.guest-result-visible) .open-heading{grid-column:1;grid-row:1;align-self:start;display:flex;flex-wrap:wrap;gap:8px;max-height:100%;overflow-y:auto;overscroll-behavior:contain}
 html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] .open-heading .actions{width:100%;flex:1 1 100%;display:grid;grid-template-columns:repeat(2,44px);justify-content:start;gap:4px}
 html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"]:not(.guest-result-visible) .open-bottom{grid-column:3;grid-row:1;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px;align-self:start;max-height:100%;overflow-y:auto}
 html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] #open-metrics{max-width:100%;flex:none}
 html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] .open-bottom>.actions{max-width:100%;flex-wrap:wrap}
 html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] .connection-readiness-game{position:fixed;left:auto;right:max(4px,env(safe-area-inset-right));bottom:max(4px,env(safe-area-inset-bottom));width:calc((var(--swipe-width) - var(--swipe-square) - 16px)/2);max-width:none;height:auto;flex-direction:column;align-items:stretch;gap:4px}
 html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] .connection-readiness-game>span{display:block;max-height:none}
 html[data-input-device="touch"] body.open-focus:has(.world-dpad[data-screen-swipe="true"]) #page-open[data-screen-swipe="true"] .connection-readiness-game details[open]>.connection-detail{bottom:44px;right:0;max-height:calc(100dvh - 56px);overflow:auto}
}

/* Keep the score recognisable above result/auth actions, including narrow dialogs. */
.result-score-summary{display:flex;flex-direction:column;gap:4px;margin:16px 0;padding:14px 16px;border:2px solid var(--lime);border-radius:12px;background:var(--panel);color:var(--ink);min-width:0;overflow-wrap:anywhere}
.result-score-label{font-size:14px;line-height:1.4;font-weight:600}
.result-score-value{font-size:clamp(26px,7vw,38px);line-height:1.15;font-weight:800;font-variant-numeric:tabular-nums}

.result-score-content{display:flex;flex-direction:column;gap:4px;min-width:0}
#open-result-dialog[data-result-review="true"] .result-score-summary{position:sticky;top:0;z-index:1;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px}
#open-result-dialog[data-result-review="true"] .result-score-content{flex:1 1 160px}
.result-score-summary>button{min-height:44px}

/* Shared-table touch landscape: the square owns the full safe height. Its
   utility/status rails scroll above the thumb zones, including during warmup. */
@media(orientation:landscape){
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))){
  --table-width:calc(100vw - max(4px,env(safe-area-inset-left)) - max(4px,env(safe-area-inset-right)));
  --table-height:calc(100dvh - max(4px,env(safe-area-inset-top)) - max(4px,env(safe-area-inset-bottom)));
  --table-square:min(var(--table-height),calc(var(--table-width) - 248px));
  --table-thumb-height:0px;--table-left-min:112px;--table-right-min:112px;
  --direction-size:clamp(44px,calc(var(--table-height) * .15),52px);
  position:fixed;inset:max(4px,env(safe-area-inset-top)) max(4px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left));
  display:grid;grid-template-columns:minmax(var(--table-left-min),1fr) minmax(0,var(--table-square)) minmax(var(--table-right-min),1fr);grid-template-rows:auto minmax(0,1fr) var(--table-thumb-height);gap:4px 12px;
  min-height:0;margin:0;padding:0;z-index:20;
 }
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) :is(.game-layout,.board-card,.decision,.dpad){display:contents}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .canvas-wrap{
  grid-area:1/2/-1/3;align-self:center;justify-self:center;width:var(--table-square);height:var(--table-square);min-width:0;min-height:0;max-width:100%;max-height:100%;padding:0;flex:none;aspect-ratio:1;
 }
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .board-top{
  grid-area:1/1/3/2;align-self:start;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:6px;height:auto;min-height:0;max-height:100%;padding:4px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;border-radius:8px;
 }
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .board-top>*{flex-shrink:0;min-width:0;max-width:100%;overflow-wrap:anywhere}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .board-top b{white-space:normal;font-size:10px;line-height:1.25}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .hud-right{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:4px}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .board-top button{min-width:44px;min-height:44px;padding:5px;font-size:11px;line-height:1.2;white-space:normal}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .player-position{
  grid-area:1/3/2/4;position:static;display:block;width:100%;max-width:none;max-height:80px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;pointer-events:auto;line-height:1.25;
 }
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .cup-controls{flex-wrap:wrap;gap:4px}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .board-top .play-message{flex:none}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .player-position :is(h3,p){margin:2px 0;font-size:11px}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .player-position .eyebrow{font-size:9px;letter-spacing:.5px}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .warmup-bar{
  grid-area:2/3/3/4;display:flex;flex-direction:column;align-items:stretch;align-self:start;gap:4px;padding:4px;min-height:0;max-height:100%;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;border-radius:8px;font-size:10px;line-height:1.25;
 }
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .warmup-bar span{flex:none;overflow-wrap:anywhere}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .warmup-bar button{flex:none;min-width:44px;min-height:44px;padding:5px;font-size:11px;line-height:1.2;white-space:normal;justify-content:center}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .dpad[data-input-mode="twohand"] .direction-pad button{
  grid-area:3/1/4/2;position:relative;inset:auto;align-self:end;justify-self:center;width:var(--direction-size);height:var(--direction-size);min-width:var(--direction-size);min-height:var(--direction-size);margin:0 0 4px;padding:5px;pointer-events:auto;
 }
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .dpad[data-input-mode="twohand"][data-hand="right"] :is([data-direction="0"],[data-direction="2"]),
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .dpad[data-input-mode="twohand"][data-hand="left"] :is([data-direction="3"],[data-direction="1"]){grid-column:3}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .dpad[data-input-mode="twohand"] [data-direction="0"]{transform:translateY(calc(-100% - 8px))}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .dpad[data-input-mode="twohand"] [data-direction="2"]{transform:none}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .dpad[data-input-mode="twohand"] [data-direction="3"]{transform:translate(calc(-50% - 4px),calc(-50% - 4px))}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .dpad[data-input-mode="twohand"] [data-direction="1"]{transform:translate(calc(50% + 4px),calc(-50% - 4px))}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .dpad{--direction-size:inherit}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))):has(.dpad[data-input-mode="twohand"]){--table-thumb-height:calc(2 * var(--direction-size) + 16px)}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .dpad[data-input-mode="twohand"] .direction-pad{display:contents}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))):has(.dpad[data-input-mode="buttons"]){--direction-size:44px;--table-thumb-height:104px;--table-right-min:140px;--table-square:min(var(--table-height),calc(var(--table-width) - 276px))}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))):has(.dpad[data-input-mode="buttons"][data-hand="left"]){--table-left-min:140px;--table-right-min:112px}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .dpad[data-input-mode="buttons"] .direction-pad{grid-area:3/3/4/4;align-self:end;justify-self:center;grid-template-columns:repeat(3,var(--direction-size));grid-template-rows:repeat(2,var(--direction-size));gap:4px;margin-bottom:4px;pointer-events:auto}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .dpad[data-input-mode="buttons"][data-hand="left"] .direction-pad{grid-column:1}
 html[data-input-device="touch"] body.game-focus:not(.betting) #page-game:has(.dpad):not(:has(.reentry-panel:not([hidden]))) .player-position>.eyebrow{display:block}
}

/* Keep the voice panel dismissible while its participant list scrolls. */
#voice-dialog .voice-dialog-heading{position:sticky;top:0;z-index:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding-bottom:8px;background:var(--panel)}
#voice-dialog .voice-dialog-heading h2{margin:0;font-size:22px}
#voice-dialog .voice-dialog-heading button{min-height:44px}
#voice-candidates label.social-row{display:flex;flex-direction:row;align-items:center;justify-content:space-between;min-height:44px;gap:12px}
#voice-candidates input[type="checkbox"]{flex:none;width:24px;height:24px;min-height:24px;margin:0}

/* Independent voice switches stay in the existing board controls, including focus sidebars. */
.voice-controls{display:flex;flex-wrap:wrap;align-items:center;gap:4px;max-width:100%;min-width:0}
.board-top .voice-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;border-radius:10px;color:var(--muted,#a8b4c6)}
.voice-icon svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.voice-icon .voice-off{stroke-width:2.5;paint-order:stroke;stroke:currentColor}
.voice-icon:not(.is-on) .voice-waves{display:none}
.voice-icon.is-on .voice-off{display:none}
.board-top .voice-icon.is-on{color:#d4f8ae;background:#25452e;border-color:#7ba859}
.board-top .voice-more{color:var(--muted,#a8b4c6);background:transparent;border-color:transparent}
.voice-more svg{fill:currentColor}
.voice-compact-audience{flex:1 1 100%;max-width:180px;font-size:10px;line-height:1.3;overflow-wrap:anywhere;color:var(--muted,#a8b4c6)}
.voice-controls .speaking:before{display:none}
.voice-invitations,.voice-help{margin-top:12px;border-top:1px solid #3b4939;padding-top:8px}
.voice-invitations>summary,.voice-help>summary{min-height:44px;cursor:pointer;display:flex;align-items:center;gap:8px}
.voice-invitations>summary:before,.voice-help>summary:before{content:'▸'}
.voice-invitations[open]>summary:before,.voice-help[open]>summary:before{content:'▾'}
@media(max-width:600px){.board-top .hud-right{flex-wrap:wrap;justify-content:flex-end}.voice-controls{gap:2px}}

/* A wrapped row of voice controls must not overflow the normal mobile header. */
body:not(.game-focus) .board-top:has(#voice-controls:not([hidden])){height:auto;min-height:44px;flex-wrap:wrap}

/* Explicit adult payer capacity belongs beside the offer, with a full label hit target. */
#purchase-adult-label{display:flex;align-items:flex-start;gap:12px;margin:16px 0;font-size:13px;min-height:44px;cursor:pointer}
#purchase-adult-confirm{flex:none;display:inline-block;width:24px;height:24px;min-height:24px;margin:0;padding:0;accent-color:var(--lime)}
