:root{color-scheme:dark;--bg:#101b18;--panel:#192721;--line:#33433a;--cream:#f1ebd9;--muted:#93a397;--orange:#f49258;--green:#b7cc98;--red:#ef8d82;--serif:Georgia,'Times New Roman',serif;--mono:'SFMono-Regular',Consolas,monospace;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--cream);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 70% -20%,#2f4636 0,transparent 55%),var(--bg);min-height:100vh}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{opacity:.35;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--orange);outline-offset:4px}a{color:inherit}button{transition:background .15s,transform .15s}button:active:not(:disabled){transform:translateY(1px)}input,select{min-width:0;width:100%;border:1px solid #4d5d50;border-radius:8px;padding:12px 14px;color:var(--cream);background:#111f19}label{display:grid;gap:8px;font-size:13px;color:var(--muted)}label input,label select{color:var(--cream)}.shell{max-width:1320px;margin:auto;padding:0 36px 30px}.topbar{height:92px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:16px}.brand{display:flex;align-items:center;gap:13px;background:none;color:var(--cream);padding:0;text-align:left}.brand-symbol{font-size:41px;color:var(--orange);line-height:1}.brand-title{font-size:20px;font-weight:850;letter-spacing:2px}.brand-sub{font:9px var(--mono);letter-spacing:2.2px;color:var(--muted);margin-top:5px}.identity{display:flex;align-items:center;gap:10px;font-size:13px}.identity .avatar{width:32px;height:32px;font-size:11px}.pill{font:10px var(--mono);letter-spacing:1px;text-transform:uppercase;border:1px solid var(--line);border-radius:100px;padding:7px 10px;white-space:nowrap}.status-dot{display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;margin-right:7px}.eyebrow{font:11px var(--mono);letter-spacing:2px;text-transform:uppercase;color:var(--green)}.hero{display:grid;grid-template-columns:1.4fr 1fr;gap:40px;align-items:center;padding:68px 0 54px}.hero h1{font:normal clamp(48px,5.4vw,76px)/1.05 var(--serif);letter-spacing:-3px;margin:20px 0}.hero h1 em{color:var(--orange);font-weight:normal}.hero p{color:var(--muted);font-size:16px;max-width:410px;line-height:1.65}.hero-actions{display:flex;gap:12px;margin-top:28px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;border-radius:7px;padding:12px 20px;font-size:13px;font-weight:650;background:var(--cream);color:#19231c;text-decoration:none}.btn-primary{background:var(--orange);color:#251c13}.btn-primary:hover{background:#ffa86f}.btn-secondary{background:transparent;border:1px solid #5a6755;color:var(--cream)}.btn-subtle{background:#26372c;color:var(--cream)}.btn-danger{background:#42302c;color:#ffbeb2}.btn-sm{min-height:35px;padding:7px 12px;font-size:12px}.hero-art{position:relative;min-height:290px;display:grid;place-items:center}.art-ring{width:290px;height:260px;border:1px solid #496344;border-radius:50%;position:absolute;transform:rotate(-20deg);box-shadow:0 0 0 20px #263a2a55,0 0 0 21px #3a513133}.art-card{width:158px;height:212px;border-radius:10px;background:#e9e5d4;color:#182b21;box-shadow:0 16px 35px #0005;position:absolute;padding:16px;font:24px var(--serif);border:6px solid #f7f0df;display:flex;flex-direction:column;justify-content:space-between}.art-card.back{transform:rotate(-16deg) translate(-48px,-8px);background:repeating-linear-gradient(45deg,#35533c,#35533c 3px,#263c2e 3px,#263c2e 8px);color:#c8d5ab}.art-card.front{transform:rotate(12deg) translate(34px,8px)}.card-center{font:72px var(--serif);text-align:center}.card-bottom{text-align:right;transform:rotate(180deg)}.chip{height:36px;width:36px;background:#e9995d;border:4px dashed #ffdab2;border-radius:50%;box-shadow:0 3px 0 #844b2c,0 5px 10px #0005;display:inline-block}.art-chips{position:absolute;bottom:8px;right:15%;transform:rotate(-12deg)}.art-chips .chip:nth-child(2){margin-left:-15px;transform:translateY(-7px);background:#698264;border-color:#d5dfbf}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 20px}.section-heading h2{font:normal 28px var(--serif);margin:0}.section-heading span{color:var(--muted);font:11px var(--mono)}.tables{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.table-card{border:1px solid var(--line);border-radius:12px;background:linear-gradient(135deg,#213329,#18261f);padding:22px;display:flex;flex-direction:column;gap:22px;min-height:215px}.table-card-top{display:flex;justify-content:space-between;gap:12px}.table-card h3{font:normal 25px var(--serif);margin:0 0 9px;overflow-wrap:anywhere}.table-card p{margin:0;color:var(--muted);font-size:12px}.table-card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto}.seats-mini{display:flex;gap:4px}.seats-mini i{width:8px;height:8px;background:#34473a;border-radius:50%}.seats-mini i.occupied{background:var(--green)}.empty-table{grid-column:1/-1;border:1px dashed #4d604e;border-radius:10px;padding:34px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#1a2a2050}.empty-table h3{margin:0 0 8px;font:normal 25px var(--serif)}.empty-table p{margin:0;color:var(--muted);font-size:13px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;padding:42px 0;margin-top:30px;border-top:1px solid var(--line)}.step-num{color:var(--orange);font:11px var(--mono)}.steps h3{font:normal 23px var(--serif);margin:10px 0}.steps p{font-size:13px;color:var(--muted);line-height:1.6;margin:0}.footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding-top:22px;color:var(--muted);font:10px var(--mono);line-height:1.7}.footer a{text-decoration:none}.boot{min-height:80vh;display:grid;align-content:center;justify-items:center;color:var(--muted)}.login{max-width:410px;margin:10vh auto;padding:30px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.login h1{font:normal 36px var(--serif)}.login p{color:var(--muted);line-height:1.6;font-size:14px}.login form{display:grid;gap:16px}.badge{font:10px var(--mono);letter-spacing:.7px;color:var(--green);text-transform:uppercase}.modal-overlay{position:fixed;inset:0;z-index:10;background:#05120de0;backdrop-filter:blur(6px);display:grid;place-items:center;padding:20px;overflow-y:auto}.modal{width:min(560px,100%);max-height:92dvh;overflow:auto;background:#1b2b22;border:1px solid #425541;border-radius:16px;padding:28px;box-shadow:0 30px 100px #0006}.modal h2{font:normal 34px var(--serif);margin:4px 0 26px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start}.icon-btn{background:none;color:var(--muted);font-size:24px;padding:4px 8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.span2{grid-column:1/-1}.form-grid .btn{margin-top:8px}.check-label{display:flex;align-items:center;gap:10px}.check-label input{width:18px;height:18px;accent-color:var(--orange)}.rules{font-size:14px;color:#c0ccbb;line-height:1.75}.rules li{margin-bottom:10px}.rules strong{color:var(--cream)}.room-top{display:flex;justify-content:space-between;align-items:center;padding:22px 0;gap:14px}.room-top h1{font:normal 26px var(--serif);margin:0}.room-title{display:flex;align-items:center;gap:18px}.room-meta{display:flex;gap:8px;align-items:center}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px}.game-main{min-width:0}.table-wrap{position:relative;min-height:560px;padding:60px 0}.felt{position:absolute;inset:36px 16px;border-radius:46%;background:radial-gradient(ellipse at 50% 40%,#294c37,#1e392a 65%,#182c21);border:12px solid #303c2d;box-shadow:0 0 0 1px #57614a,inset 0 0 0 1px #516a41,inset 0 0 65px #071b1577,0 18px 40px #0003}.felt:after{content:'';position:absolute;inset:18px;border:1px solid #8a9f6550;border-radius:46%;pointer-events:none}.seat{position:absolute;z-index:2;width:116px;transform:translate(-50%,-50%);text-align:center}.avatar{display:grid;place-items:center;width:42px;height:42px;margin:auto;border:1px solid #68765c;background:#3a4938;color:#ebe5d3;border-radius:50%;font-size:14px;font-weight:700}.seat .avatar{box-shadow:0 0 0 4px #14271c}.seat.turn .avatar{box-shadow:0 0 0 3px var(--orange),0 0 25px #f4925855}.seat.empty{opacity:.45}.seat.empty .avatar{border:1px dashed #7a8a6e;background:#263a2d;font-size:20px}.seat-name{margin:7px auto 0;font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.seat-name .self{color:var(--orange)}.seat-stack{font:13px var(--mono);margin-top:4px;color:var(--cream)}.seat-status{font-size:10px;color:#b3bfaa;height:15px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.seat.folded .avatar,.seat.folded .seat-name{opacity:.45}.seat-bet{font:10px var(--mono);color:var(--orange);margin-top:4px}.seat-badges{position:absolute;top:-2px;left:calc(50% + 15px);display:flex;gap:3px}.seat-badges b{font:8px var(--mono);background:#e6e2d0;color:#253326;border-radius:50%;width:20px;height:20px;display:grid;place-items:center;border:1px solid #798369}.seat-badges b.blind{background:#708361;color:#fff}.seat-answer{position:absolute;left:50%;top:-31px;transform:translateX(-50%);padding:5px 9px;background:var(--cream);color:#173122;border-radius:5px;font:14px var(--mono);box-shadow:0 4px 10px #0003;white-space:nowrap}.board{position:absolute;left:23%;width:54%;top:50%;transform:translateY(-50%);z-index:3;text-align:center}.pot-label{font:9px var(--mono);color:#bccaa6;letter-spacing:2px;text-transform:uppercase}.pot-value{font:25px var(--mono);margin:5px 0 18px}.pot-value:before{content:'◉';font-size:14px;color:var(--orange);margin-right:7px;vertical-align:middle}.street-tabs{display:flex;justify-content:center;gap:3px;margin-bottom:14px}.street-tabs button{font:9px var(--mono);padding:6px 7px;border-radius:4px;color:#b8c8aa;background:#ffffff08}.street-tabs button.selected{background:#cbd5b6;color:#223924}.question-card{border-radius:10px;background:#eee9d7;color:#1b3325;padding:20px 20px 18px;box-shadow:0 10px 24px #071a1450;min-height:145px;display:flex;flex-direction:column;justify-content:center;position:relative}.question-card .badge{color:#637454;font-size:9px;margin-bottom:12px}.question-text{font:normal clamp(16px,1.4vw,23px)/1.35 var(--serif);margin:0;overflow-wrap:anywhere}.answer-value{font:normal 48px var(--serif);margin:0}.board-note{font:10px var(--mono);color:#adbd9d;margin-top:12px;line-height:1.4}.board-waiting h2{font:normal 34px var(--serif);margin:15px 0}.board-waiting p{font-size:12px;color:#bcc8b0;line-height:1.6}.table-mark{font-size:46px;color:#b0c29477}.timer{font:12px var(--mono);color:var(--orange);min-width:40px;text-align:right}.timer.urgent{color:#ff9e8c}.side-panel{border:1px solid var(--line);border-radius:12px;background:#192920;padding:20px;margin-bottom:16px}.side-panel h3{font:normal 23px var(--serif);margin:0 0 17px}.my-answer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-top:1px solid var(--line);font:30px var(--serif)}.my-answer small{font:10px var(--mono);color:var(--muted)}.small-note{font-size:12px;color:var(--muted);line-height:1.65}.log{display:grid;gap:13px;max-height:285px;overflow:auto}.log-item{font-size:12px;line-height:1.5;color:#aebca9;padding-left:10px;border-left:2px solid #3d513e}.log-item:last-child{color:#e9e7d5;border-left-color:var(--orange)}.action-dock{position:sticky;bottom:0;z-index:5;background:#15251ff5;border:1px solid #41513f;border-radius:12px;padding:17px 20px;margin:14px 0 24px;box-shadow:0 -4px 25px #0a161b22;backdrop-filter:blur(12px)}.action-header{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:12px;color:var(--muted);margin-bottom:12px}.action-header strong{color:var(--cream);font-size:14px}.action-buttons{display:flex;gap:8px;flex-wrap:wrap}.action-buttons .btn{flex:1;white-space:nowrap}.answer-form{display:flex;gap:10px}.answer-form input{flex:1;min-width:50px;background:#1b3024;font:20px var(--mono)}.raise-controls{display:flex;align-items:center;gap:10px;margin-top:12px}.raise-controls label{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:11px}.raise-controls input[type=number]{width:105px;padding:9px;font:12px var(--mono)}input[type=range]{padding:0;accent-color:var(--orange);flex:1;min-width:30px}.raise-controls .btn{min-height:38px;padding:8px 16px}.result-list{margin:12px 0 0;display:grid;gap:8px}.result-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.result-row strong{font:14px var(--mono);color:var(--green)}.result-row small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.positive{color:var(--green)}.negative{color:var(--red)}.toast-visible{opacity:1!important;transform:translate(-50%,0)!important}#toast{position:fixed;left:50%;bottom:24px;max-width:90vw;z-index:30;opacity:0;pointer-events:none;background:#ede6d2;color:#17291d;border-radius:8px;padding:12px 20px;font-size:13px;box-shadow:0 8px 30px #0006;transform:translate(-50%,12px);transition:.2s}.connection{background:#533f27;color:#ffe0ac;font:11px var(--mono);text-align:center;padding:8px}.inline-link{background:none;color:var(--orange);font-size:12px;padding:5px 0;text-decoration:underline}.explanation{margin-top:15px;color:var(--muted);font-size:12px;line-height:1.6}.rules-banner{padding:10px 0;text-align:center;color:var(--muted);font-size:10px}.hidden{display:none!important}
@media(min-width:1400px){.table-wrap{min-height:630px}.felt{inset:40px 16px}.board{left:25%;width:50%}}
@media(max-width:1000px){.game-layout{grid-template-columns:1fr}.side{display:grid;grid-template-columns:1fr 1fr;gap:16px}.table-wrap{min-height:560px}.tables{grid-template-columns:repeat(2,1fr)}.hero-art{transform:scale(.85)}.shell{padding:0 24px 24px}.hero{gap:10px}.side-panel{margin:0}.question-text{font-size:22px}}
@media(max-width:600px){.shell{padding:0 14px 20px}.topbar{height:72px}.brand-symbol{font-size:34px}.brand-title{font-size:16px;letter-spacing:1.3px}.brand-sub{font-size:8px;letter-spacing:1.2px}.identity .user-name{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.identity .pill{display:none}.hero{padding:34px 6px 30px;display:block;position:relative}.hero h1{font-size:50px;letter-spacing:-2px;position:relative;z-index:1}.hero p{font-size:14px;max-width:290px}.hero-art{display:none}.hero-actions .btn{padding:13px 18px}.hero .eyebrow{font-size:9px}.tables{grid-template-columns:1fr;gap:12px}.table-card{min-height:165px;padding:20px;gap:18px}.section-heading h2{font-size:25px}.empty-table{display:block;padding:25px}.empty-table .btn{margin-top:20px}.steps{gap:16px;padding:28px 0}.steps h3{font-size:19px}.steps p{font-size:11px}.footer{font-size:9px;flex-wrap:wrap;gap:8px}.modal{padding:22px}.modal h2{font-size:28px}.form-grid{gap:16px}.room-top{padding:15px 0}.room-top h1{font-size:21px;max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-title{gap:7px}.room-meta .pill{display:none}.room-meta{gap:5px}.room-meta .btn-sm{font-size:10px;padding:6px 9px}.game-layout{gap:8px}.table-wrap{min-height:490px;margin:0 -5px}.felt{inset:30px 7px;border-width:9px;border-radius:44%}.felt:after{inset:12px;border-radius:44%}.seat{width:80px}.avatar{width:34px;height:34px;font-size:11px}.seat-name{font-size:10px;margin-top:6px}.seat-stack{font-size:11px}.seat-status{font-size:9px}.seat-bet{font-size:8px}.seat-badges{left:calc(50% + 12px)}.seat-badges b{width:17px;height:17px;font-size:7px}.seat-answer{font-size:11px;top:-25px;padding:3px 7px}.board{left:23%;width:54%}.pot-label{font-size:8px}.pot-value{font-size:22px;margin-bottom:12px}.street-tabs{gap:2px;margin-bottom:10px}.street-tabs button{padding:5px 4px;font-size:8px}.question-card{padding:14px 12px;min-height:145px;border-radius:7px}.question-card .badge{font-size:8px;margin-bottom:9px}.question-text{font-size:17px;line-height:1.32}.answer-value{font-size:42px}.board-note{font-size:8px}.board-waiting h2{font-size:24px}.board-waiting p{font-size:11px}.table-mark{font-size:34px}.action-dock{padding:13px 12px;margin:8px 0 14px;border-radius:9px;bottom:env(safe-area-inset-bottom,0px)}.action-buttons .btn{min-height:43px;font-size:12px;padding:10px}.action-header{font-size:10px;margin-bottom:10px}.action-header strong{font-size:12px}.answer-form .btn{font-size:12px;padding:10px 14px}.answer-form input{font-size:18px;padding:9px 12px}.raise-controls{gap:6px;flex-wrap:wrap}.raise-controls label{font-size:10px}.raise-controls input[type=number]{width:85px}.raise-controls .btn{font-size:11px;padding:8px 10px}.side{display:block}.side-panel{padding:17px;margin-bottom:12px}.side-panel h3{font-size:21px;margin-bottom:12px}.log{max-height:140px}.login{margin:35px auto;padding:24px}.room-title .icon-btn{padding:4px;font-size:20px}.rules-banner{font-size:9px}.game-shell .topbar{height:64px}.game-shell .identity{font-size:11px}.game-shell .brand-sub{display:none}.game-shell .brand-title{font-size:14px}.game-shell .brand-symbol{font-size:29px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
.seat-0{left:27%;top:8%}.seat-1{left:73%;top:8%}.seat-2{left:91%;top:35%}.seat-3{left:91%;top:67%}.seat-4{left:73%;top:91%}.seat-5{left:27%;top:91%}.seat-6{left:9%;top:67%}.seat-7{left:9%;top:35%}
.brand-sub{display:block}

.seat-8{left:50%;top:91%}.seat-9{left:50%;top:8%}

/* A table must follow its content, not assume a full-screen desktop viewport. */
html,body{min-width:0;width:100%;overflow-x:clip}.shell,.game-layout,.side,.side-panel,.hero>*,.steps>*,.section-heading>*{min-width:0}.section-heading{flex-wrap:wrap}.topbar .identity{min-width:0}.user-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:150px}.avatar{position:relative;flex-shrink:0;overflow:hidden}.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}.seat>.avatar{display:grid}.game-main{container-type:inline-size}.table-wrap{min-height:540px;height:auto;padding:110px 0 120px;display:flex;align-items:center}.board{position:relative;top:auto;left:auto;transform:none;width:calc(100% - 220px);max-width:520px;margin:0 auto;min-width:0}.question-card{min-width:0;max-height:min(460px,65dvh);overflow:auto;overscroll-behavior:contain}.question-text{font-size:clamp(15px,2.7cqi,23px);overflow-wrap:anywhere}.street-tabs{flex-wrap:wrap}.question-card .answer-value{overflow-wrap:anywhere;font-size:clamp(26px,7cqi,48px)}.seat{max-width:100px}.seat-2,.seat-3{left:91%}.seat-6,.seat-7{left:9%}.has-result{min-height:620px}.result-card{text-align:left;padding:18px;max-height:min(520px,72dvh)}.result-card .badge{display:block;text-align:center}.winner-list{display:grid;gap:7px;margin:8px 0 12px}.winner-row{display:flex;gap:8px;align-items:center;min-width:0}.winner-row .avatar{width:30px;height:30px;font-size:10px;margin:0}.winner-row>div{min-width:0;flex:1}.winner-row strong{display:block;overflow-wrap:anywhere;font-size:14px}.winner-row small{display:block;font-size:10px;color:#56684c}.winner-row>b{font:700 19px var(--mono);color:#2e602e;white-space:nowrap}.result-answer{display:flex;justify-content:space-between;align-items:center;gap:10px;border-block:1px solid #bfc5ae;padding:10px 0;font-size:11px}.result-answer strong{font:30px var(--serif);overflow-wrap:anywhere}.result-question{font:16px/1.35 var(--serif)}.result-explanation{font-size:12px;line-height:1.5;color:#3d513b}.result-explanation p{margin:7px 0}.next-countdown{margin-top:12px;font:10px var(--mono);text-align:center;color:#45613c}.champion-name{font:24px var(--serif);text-align:center;margin:8px 0}.refund-note{font-size:10px;color:#637454}.tournament-info{align-self:center}.steps{grid-template-columns:repeat(3,minmax(0,1fr))}.footer{flex-wrap:wrap}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1100px){.game-layout{grid-template-columns:minmax(0,1fr)}.side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hero{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}}
@media(max-width:600px){.table-wrap{min-height:490px;padding:100px 0 110px;margin:0}.board{width:calc(100% - 130px)}.seat{width:64px;max-width:64px}.seat-6,.seat-7{left:9%}.seat-2,.seat-3{left:91%}.seat-name{max-width:64px}.question-card{padding:12px 9px;max-height:min(390px,65dvh)}.question-text{font-size:15px}.room-top{flex-wrap:wrap}.room-title{min-width:0}.room-meta{flex-wrap:wrap}.room-meta .pill{display:inline-block;font-size:8px}.side{display:block}.has-result{min-height:610px}.has-result .board{width:calc(100% - 130px)}.result-card{max-height:min(470px,72dvh)}.winner-row{flex-wrap:wrap;gap:5px}.winner-row>b{font-size:17px}.winner-row strong{font-size:12px}.winner-row small{font-size:9px}.winner-row .avatar{width:25px;height:25px}.result-explanation{font-size:11px}.result-question{font-size:14px}.result-answer{flex-wrap:wrap}.steps{grid-template-columns:1fr;gap:18px}.steps h3{margin:6px 0}.hero h1{font-size:clamp(35px,12vw,50px)}.hero .eyebrow{letter-spacing:1px}.answer-form{flex-wrap:wrap}.answer-form .btn{flex:1}.result-card .badge{letter-spacing:0}.topbar{gap:8px}.identity .user-name{max-width:70px}.brand{gap:7px}.login{padding:18px}.modal-overlay{padding:10px}}
@media(max-width:360px){.shell{padding-inline:8px}.board,.has-result .board{width:calc(100% - 112px)}.seat{width:54px;max-width:54px}.seat-name{max-width:54px}.brand-sub{letter-spacing:.5px}.identity .user-name{display:none}.form-grid{grid-template-columns:1fr}.span2{grid-column:auto}}
/* Keep the card strictly inside the side-seat lanes at every window width. */
.board,.has-result .board{width:calc(82% - 116px)}
@media(max-width:600px){.board,.has-result .board{width:calc(82% - 80px)}}
@media(max-width:360px){.board,.has-result .board{width:calc(82% - 70px)}}
/* Never let the action strip cover bottom seats in short Telegram desktop windows. */
.action-dock{position:relative;bottom:auto}

/* Keep bets legible on narrow tables without adding rows to the seat. */
.seat-stack{font-size:15px;font-weight:700;white-space:nowrap}
.seat-bet{font-size:16px;font-weight:800;line-height:1.3;color:#ffd49b;white-space:nowrap;text-shadow:0 1px 3px #000;background:#15271fea;border:1px solid #bc8750;border-radius:6px;padding:3px 5px;display:block;width:max-content;position:relative;left:50%;transform:translateX(-50%)}
.seat.offline .avatar{filter:grayscale(1);opacity:.55}
.seat.offline .seat-status{color:#ffb29b;font-weight:700}
@media(max-width:600px){.seat-stack{font-size:13px}.seat-bet{font-size:14px;padding:2px 3px}.seat.offline .seat-status{font-size:9px}}

/* Single-viewport table: explicit seat lanes and a bounded central card. */
body.in-game{height:var(--game-height,100dvh);min-height:0;overflow:hidden}
.in-game #app{height:100%;overflow:hidden}
.game-shell{height:100%;max-width:1240px;padding:0 10px max(6px,env(safe-area-inset-bottom));overflow:hidden}
.room-screen{height:100%;display:grid;grid-template-rows:54px minmax(0,1fr)}
.game-shell .room-top{padding:4px 0;gap:8px;flex-wrap:nowrap;min-width:0;border-bottom:1px solid var(--line)}
.room-title{flex:1;min-width:0}.room-title>div{min-width:0}
.game-shell .room-top h1{font:20px var(--serif);margin:0;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.room-subtitle{display:block;font:10px var(--mono);color:var(--muted);margin-top:4px;white-space:nowrap}
.room-tools{display:flex;gap:5px;flex-shrink:0}.tool-btn{width:36px;height:36px;border:1px solid #4c6152;border-radius:7px;background:#203129;color:var(--cream);font:20px sans-serif;padding:0}
.game-layout{display:block;height:100%;min-height:0}
.game-main{height:100%;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) 110px;container-type:inline-size}
.game-shell .table-wrap{display:block;position:relative;min-height:0;height:100%;padding:0;margin:0;overflow:hidden}
.game-shell .felt{inset:18px 22px;border-radius:42%;border-width:7px}
.game-shell .felt:after{inset:9px;border-radius:42%}
.game-shell .seat{width:96px;max-width:96px;height:90px;margin:0;transform:translate(-50%,-50%);z-index:2}
.game-shell .seat>.avatar{width:36px;height:36px;font-size:12px;margin:0 auto 3px}
.game-shell .seat-name{font-size:11px;max-width:100%;margin:0;line-height:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-shell .seat-stack{font:700 14px/17px var(--mono)}
.game-shell .seat-status{font-size:9px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-shell .seat-bet{font:700 14px/18px var(--mono);padding:0 4px;margin:1px 0 0;border-radius:4px}
.game-shell .seat-answer{top:0;left:calc(50% + 18px);z-index:3;font:700 12px var(--mono);padding:3px 5px}
.game-shell .seat-0{left:35%;top:49px}.game-shell .seat-1{left:65%;top:49px}
.game-shell .seat-2{left:55px;top:36%}.game-shell .seat-3{left:55px;top:68%}
.game-shell .seat-6{left:calc(100% - 55px);top:68%}.game-shell .seat-7{left:calc(100% - 55px);top:36%}
.game-shell .seat-4{left:65%;top:calc(100% - 49px)}.game-shell .seat-5{left:35%;top:calc(100% - 49px)}
.game-shell .seat-8{left:50%;top:calc(100% - 49px)}.game-shell .seat-9{left:50%;top:49px}
.game-shell .board,.game-shell .has-result .board{position:absolute;left:112px;right:112px;top:103px;bottom:100px;width:auto;max-width:none;margin:0;transform:none;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.game-shell .pot-label{font-size:9px;flex-shrink:0}
.game-shell .pot-value{font:26px/1.2 var(--mono);margin:2px 0 8px;flex-shrink:0}
.game-shell .question-card{flex:1;min-height:0;max-height:none;padding:14px;border-radius:8px;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}
.game-shell .question-card .badge{display:block;font-size:9px;margin-bottom:8px;letter-spacing:1px}
.game-shell .question-text{font:clamp(16px,2.6cqi,23px)/1.35 var(--serif);margin:0;overflow-wrap:anywhere}
.game-shell .board-note{font-size:8px;line-height:12px;margin-top:5px;flex-shrink:0}
.game-shell .board-waiting{justify-content:center;align-items:center;text-align:center;overflow:auto}
.game-shell .board-waiting h2{font:26px var(--serif);margin:8px 0}
.game-shell .board-waiting p{font-size:12px;line-height:1.5;margin:7px 0}
.game-shell .board-waiting .table-mark{font-size:36px}
.game-shell .board-waiting .eyebrow{font-size:9px;letter-spacing:1px}
.game-shell .result-card{padding:12px}
.game-shell .result-question{font-size:15px}
.game-shell .result-explanation{font-size:12px}
.game-shell .winner-row>b{font-size:18px}
.game-shell .action-dock{position:relative;min-height:0;margin:4px 0 0;padding:8px 10px;background:#182a21;border:1px solid #4a6050;border-radius:9px;overflow:hidden;box-shadow:none}
.game-shell .action-header{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;line-height:16px;height:18px;margin:0 0 7px}
.game-shell .action-header strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.game-shell .timer{flex-shrink:0}
.game-shell .action-buttons{display:flex;gap:6px;flex-wrap:nowrap}
.game-shell .action-buttons .btn{flex:1;min-width:0;min-height:48px;font-size:13px;padding:8px 5px;white-space:normal}
.game-shell .small-note{margin:4px 0;font-size:12px;line-height:1.4}
.game-shell .my-answer{font-size:23px;line-height:1.2;display:flex;gap:14px;align-items:center}
.game-shell .my-answer small{font-size:9px;margin:0}
.game-shell .answer-form{flex-wrap:nowrap;gap:8px}
.game-shell .answer-form input{height:48px;font-size:20px}
.game-shell .answer-form .btn{flex:0 1 auto;font-size:13px;padding:8px 12px}
.raise-editor{display:grid;grid-template-columns:110px minmax(0,1fr) 80px 95px;grid-template-rows:34px 20px;gap:5px 8px}
.raise-amount{display:flex;align-items:center;gap:4px;font-size:9px;line-height:11px}
.raise-amount input{width:76px;font:700 16px var(--mono);padding:5px}
.raise-presets{display:flex;gap:3px;align-items:center}
.raise-presets button{flex:1;color:var(--cream);border-radius:4px;padding:8px 3px;background:#30473a;font-size:10px;white-space:nowrap}
.raise-editor>.btn{padding:4px;min-height:34px;font-size:12px;grid-row:1 / 3}
.raise-editor>.btn:nth-of-type(1){grid-column:3}.raise-editor>.btn:nth-of-type(2){grid-column:4}
.raise-editor>input[type=range]{grid-column:1 / 3;width:100%;height:20px}
.table-menu{display:grid;gap:10px}.history-log{font-size:13px}.clue-history{line-height:1.5}
.in-game .connection{position:fixed;top:54px;left:0;right:0;z-index:12;padding:4px;font-size:9px;pointer-events:none}
.in-game .modal-overlay{padding:10px}.in-game .modal{max-height:calc(var(--game-height,100dvh) - 24px);overflow:auto}
.in-game #toast{bottom:120px}
@media(max-width:600px){
 .game-shell{padding-inline:5px}.room-screen{grid-template-rows:50px minmax(0,1fr)}
 .game-shell .room-top h1{font-size:17px}.room-subtitle{font-size:9px}.room-title{gap:3px}
 .room-tools{gap:4px}.tool-btn{width:32px;height:34px;font-size:17px}
 .game-shell .seat{width:66px;max-width:66px;height:86px}.game-shell .seat>.avatar{width:32px;height:32px}
 .game-shell .seat-name{font-size:10px}.game-shell .seat-stack{font-size:13px}.game-shell .seat-status{font-size:8px}
 .game-shell .seat-bet{font-size:13px}.game-shell .seat-badges{left:calc(50% + 10px)}
 .game-shell .seat-2,.game-shell .seat-3{left:35px}.game-shell .seat-6,.game-shell .seat-7{left:calc(100% - 35px)}
 .game-shell .board,.game-shell .has-result .board{left:74px;right:74px;top:96px;bottom:96px}
 .game-shell .question-card{padding:10px}.game-shell .question-text{font-size:16px}
 .game-shell .pot-value{font-size:23px;margin-bottom:5px}.game-shell .board-note{font-size:7px;letter-spacing:0}
 .game-shell .winner-row{gap:4px}.game-shell .winner-row>b{font-size:16px}.game-shell .winner-row strong{font-size:12px}
 .game-shell .result-question{font-size:14px}.game-shell .result-explanation{font-size:11px}
 .game-shell .action-dock{padding:7px}.game-shell .action-buttons{gap:4px}.game-shell .action-buttons .btn{font-size:12px}
 .raise-editor{grid-template-columns:90px minmax(0,1fr) 54px 70px;gap:5px}
 .raise-amount input{width:65px;font-size:14px}.raise-presets button{font-size:8px;padding:8px 1px}
 .raise-editor>.btn{font-size:10px}
}
/* Short/wide windows use top and bottom seat rows, freeing the central lane. */
@media(max-height:560px) and (min-width:550px){
 .room-screen{grid-template-rows:44px minmax(0,1fr)}.game-main{grid-template-rows:minmax(0,1fr) 100px}
 .game-shell .seat{height:68px}.game-shell .seat>.avatar{width:25px;height:25px;margin:0 auto}.game-shell .seat-status{line-height:11px;font-size:8px}
 .game-shell .seat-stack{font-size:12px;line-height:14px}.game-shell .seat-name{line-height:12px;font-size:9px}
 .game-shell .seat-bet{position:absolute;left:auto;right:-12px;top:4px;transform:none;font-size:12px}
 .game-shell .seat-7{left:12%;top:37px}.game-shell .seat-0{left:37%;top:37px}.game-shell .seat-1{left:63%;top:37px}.game-shell .seat-2{left:88%;top:37px}
 .game-shell .seat-6{left:12%;top:calc(100% - 37px)}.game-shell .seat-5{left:37%;top:calc(100% - 37px)}.game-shell .seat-4{left:63%;top:calc(100% - 37px)}.game-shell .seat-3{left:88%;top:calc(100% - 37px)}
 .game-shell .seat-8{top:calc(100% - 37px)}.game-shell .seat-9{top:37px}
 .game-shell .board,.game-shell .has-result .board{top:76px;bottom:76px;left:12%;right:12%;display:grid;grid-template-columns:90px minmax(0,1fr);grid-template-rows:16px minmax(0,1fr);gap:2px 10px}
 .game-shell .pot-label{grid-column:1;grid-row:1}.game-shell .pot-value{grid-column:1;grid-row:2;font-size:20px}
 .game-shell .question-card{grid-column:2;grid-row:1 / 3;padding:8px 12px}.game-shell .question-text{font-size:16px}
 .game-shell .board-note{display:none}.game-shell .result-board{display:flex!important}.game-shell .board-waiting{display:block!important}
 .game-shell .board-waiting .table-mark,.game-shell .board-waiting .eyebrow{display:none}.game-shell .board-waiting h2{font-size:18px;margin:0}
 .game-shell .board-waiting p{margin:2px 0;font-size:10px}
}
/* Block flow keeps the beginning of overflowing text reachable. */
.game-shell .question-card{display:block}
/* Reserve the full seat height, including the prominent bet pill. */
@media(min-height:561px){
 .game-shell .seat{height:104px}
 .game-shell .seat-0,.game-shell .seat-1,.game-shell .seat-9{top:55px}
 .game-shell .seat-4,.game-shell .seat-5,.game-shell .seat-8{top:calc(100% - 55px)}
 .game-shell .board,.game-shell .has-result .board{top:112px;bottom:112px}
}
@media(max-height:420px) and (max-width:549px){
 .game-shell:has(.answer-form) .seat{display:none}
 .game-shell:has(.answer-form) .board{top:6px;bottom:6px;left:12px;right:12px}
}
@media(min-height:561px){
 .game-shell .seat-4,.game-shell .seat-5,.game-shell .seat-8{top:calc(100% - 65px)}
 .game-shell .board,.game-shell .has-result .board{top:120px;bottom:124px}
}
