@font-face{font-family:TableSans;src:local('SF Pro Display'),local('Helvetica Neue'),local('Arial');font-display:swap}
:root{font-family:TableSans,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#20211f;background:#f7f7f5;font-synthesis:none;--muted:#777a75;--line:#dddfd9;--paper:#fff;--ink:#20211f;--radius:12px}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #444b41;outline-offset:4px}button{border:0}h1,h2,h3,p{margin-top:0}h1,h2{font-weight:500;letter-spacing:-.055em}h3{font-size:16px;font-weight:600}p{line-height:1.55}button{transition:background .15s,opacity .15s}button:active:not(:disabled){transform:translateY(1px)}.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;gap:16px;padding:14px 22px;border-radius:var(--radius);min-height:48px;font-size:15px;font-weight:500}.primary{background:var(--ink);color:#fff}.primary:hover{background:#373b35}.secondary{background:transparent;color:var(--ink);border:1px solid #bfc3b9}.secondary:hover{background:#eeefea}.danger{background:#803f37;color:white;margin-top:20px}.large{min-height:58px;padding:17px 26px;font-size:16px}.full{width:100%;margin-top:12px}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:14px;background:transparent;color:inherit;padding:10px 2px;min-height:44px}.icon-button{font-size:26px;letter-spacing:2px;background:none;padding:0 12px;height:48px;border:1px solid var(--line);border-radius:12px}.muted,.small,.quiet-note{color:var(--muted)}.small{font-size:13px}.eyebrow{display:block;font-size:10px;letter-spacing:.16em;color:#70766a;font-weight:600}.shell{max-width:1440px;margin:auto;padding:0 6.5vw}.shell>header{height:116px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.brand{display:inline-flex;align-items:center;gap:12px;font-weight:600;font-size:17px;letter-spacing:-.02em}.brand svg{width:22px;height:22px}.profile-dot{border-radius:50%;background:#e5e7e0;width:32px;height:32px;display:grid;place-items:center}.shell>footer{display:flex;gap:28px;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:26px 0;color:var(--muted);font-size:12px}.shell>footer>a{margin-left:auto}.home{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;min-height:650px;padding:68px 0 72px;gap:20px}.home h1{font-size:clamp(48px,5.3vw,78px);line-height:1.02;margin:25px 0 26px}.intro{font-size:17px;color:#70746d;max-width:320px;margin-bottom:32px}.home-actions{display:flex;gap:12px}.quiet-note{font-size:12px;margin:20px 0}.hero-cards{position:relative;min-height:470px;display:flex;align-items:center;justify-content:center}.card{position:relative;display:inline-block;flex-shrink:0;aspect-ratio:5/7;width:112px;background:#fff;border:1px solid #ced1c8;border-radius:9px;overflow:hidden;box-shadow:0 2px 4px #242c2110;line-height:0;user-select:none}.card img{height:100%;width:100%;object-fit:fill;display:block}.hero-cards .card{position:absolute;width:220px;border-radius:14px;box-shadow:0 18px 35px #2c332517}.hero-king{rotate:-12deg;translate:-78px -22px;z-index:1}.hero-queen{rotate:10deg;translate:90px 26px;z-index:2}.hero-caption{position:absolute;bottom:4px;font-size:12px;color:#8b8f86}.entry{max-width:440px;margin:64px auto 90px;min-height:65vh}.entry h1{font-size:54px;line-height:1.05;margin:26px 0 30px}.back-link{font-size:13px;color:var(--muted)}label{display:flex;flex-direction:column;gap:9px;font-size:13px;color:#50564c;margin:18px 0}input{border:1px solid #cdd1c7;border-radius:10px;background:#fff;color:var(--ink);padding:14px;min-height:48px;min-width:0;width:100%}input:focus{border-color:#4e5947}.code-input{letter-spacing:.22em;text-transform:uppercase;font-weight:600}.choice-row{display:flex;gap:12px}.choice{flex:1;cursor:pointer;position:relative}.choice input{position:absolute;opacity:0;width:1px;height:1px}.choice span{border:1px solid #cdd1c7;border-radius:10px;padding:16px;text-align:center}.choice input:checked+span{border-color:#20211f;background:#eeefe9}.choice input:focus-visible+span{outline:2px solid #444b41}fieldset{padding:0;border:0;margin:22px 0}legend{font-size:13px;color:#50564c}.mode-choice{flex-direction:row;align-items:flex-start;gap:13px;cursor:pointer;margin:18px 0}.mode-choice input{width:17px;height:17px;min-height:17px;margin-top:3px;accent-color:#20211f}.mode-choice span{display:flex;flex-direction:column;gap:6px}.mode-choice strong{font-weight:500;color:#30362c}.mode-choice small{line-height:1.5;color:#83887e;font-size:12px}.form-error{color:#873f37;font-size:13px;margin:12px 0}.room-shell{max-width:1440px;margin:auto;padding:0 48px;min-height:100dvh}.room-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:30px 0;border-bottom:1px solid var(--line)}.room-header>div:first-child{display:flex;align-items:center;gap:18px}.room-header h1{font-size:25px;letter-spacing:-.035em;margin:0 0 5px}.room-header .muted{font-size:12px}.room-tools{display:flex;align-items:center;gap:10px}.connection-dot{height:6px;width:6px;background:#b19d74;border-radius:50%;margin-right:10px}.connection-dot.online{background:#6d7a63}.table-stage{position:relative;min-height:550px;height:65vh;max-height:780px;margin:12px auto;width:100%;max-width:1220px}.table-outline{position:absolute;inset:20% 10%;border:1px solid #dde0d6;border-radius:48%;background:#f3f4ef66}.table-centre{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:20px}.board-cards{display:flex;gap:10px;align-items:center}.board-cards .card,.card-slot{width:clamp(66px,7.5vw,106px)}.card-slot{display:block;aspect-ratio:5/7;border:1px dashed #c4c9bd;border-radius:9px}.pot{display:flex;align-items:baseline;gap:12px}.pot span{font-size:15px;color:#6b7264}.pot strong{font-size:30px;font-weight:500;letter-spacing:-.04em}.seat{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);min-width:104px;text-align:center;display:flex;flex-direction:column;align-items:center}.seat-meta{display:flex;align-items:center;gap:9px;padding:6px 9px;border:1px solid transparent;border-radius:999px}.seat-meta>div{display:flex;flex-direction:column;text-align:left;gap:3px}.seat-meta strong{font-size:13px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.seat-meta>div>span{font-size:12px;color:#68705f}.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid #d0d5c8;color:#69745d;font-size:13px;background:#ecede8}.active .seat-meta{border-color:#505a44;background:#fdfefb}.active .avatar{background:#2d3724;color:white}.dealer-chip{display:grid;place-items:center;font-size:8px;background:white;border:1px solid #bfc5b7;border-radius:50%;width:17px;height:17px}.seat-cards{display:flex;gap:4px;align-items:center;justify-content:center;margin-top:7px}.mini{width:36px;border-radius:4px}.seat-action{font-size:11px;min-height:15px;color:#697160;margin-top:6px}.seat-status{font-size:11px;color:#907245;margin:4px 0}.dealer-zone{display:flex;flex-direction:column;align-items:center;gap:15px}.dealer-zone>.muted{font-size:13px}.public-bj-hand{display:flex;gap:2px;align-items:center}.public-bj-hand>span:last-child{font-size:12px;margin:0 4px}.display-footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);padding:15px 0}.display-footer strong{color:#424b38;letter-spacing:.12em;margin-left:10px}.player-screen{max-width:580px;padding:0 24px}.player-screen .room-header{padding:24px 0}.player-screen .room-header h1{font-size:22px}.player-screen .room-header .brand{display:none}.player-screen .room-header .muted{font-size:10px}.player-screen .room-tools .secondary{padding:10px 14px;min-height:42px;font-size:12px}.private-hand{min-height:calc(100dvh - 115px);display:flex;flex-direction:column;align-items:center;padding:20px 0 22px}.private-spacer{flex:1;min-height:80px;display:flex;align-items:flex-start;padding-top:10px}.private-spacer .muted{font-size:12px}.own-cards{display:flex;justify-content:center;gap:10px;width:100%}.own{width:clamp(110px,30vw,154px);border-radius:11px;box-shadow:0 4px 8px #1f2a1410}.own-stack{margin:35px 0 22px;color:#555e4b;font-size:18px;letter-spacing:-.015em}.own-stack span{font-size:13px;color:#8a9181;margin-left:3px}.action-dock{width:100%;margin-top:auto;padding-bottom:env(safe-area-inset-bottom)}.turn-label{font-size:13px;text-align:center;min-height:20px;margin-bottom:18px}.action-buttons{display:flex;gap:10px;width:100%}.action-buttons>button{flex:1;padding:15px 8px;font-size:15px;min-width:0}.results{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;text-align:center;color:#5d6950;font-size:14px;margin:15px 0 25px}.results strong{font-weight:500}.player-screen .results{font-size:12px}.blackjack-hands{display:flex;flex-wrap:wrap;gap:24px;justify-content:center;width:100%;margin-top:20px}.bj-hand{display:flex;flex-direction:column;align-items:center;gap:12px;padding:12px 5px;border-bottom:2px solid transparent;max-width:100%}.bj-hand.current{border-color:#778566}.bj-hand .own-cards{flex-wrap:wrap;gap:5px}.bj-hand .card{width:100px}.hand-total{font-size:28px;font-weight:500;letter-spacing:-.04em}.bj-hand>.muted{font-size:12px}.blackjack-hands:has(.bj-hand:nth-child(2)) .card{width:75px}.lobby{max-width:680px;margin:55px auto;text-align:center}.lobby-title h2{font-size:38px;margin:16px 0}.lobby-title p{font-size:14px}.lobby-players{max-width:470px;margin:32px auto;display:flex;flex-direction:column}.lobby-players>div{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:14px 2px;font-size:13px}.lobby-players strong{font-weight:500;margin-right:auto;max-width:140px;overflow:hidden;text-overflow:ellipsis}.lobby-players small{color:#849374;width:70px;text-align:right}.lobby-players>div>span:not(.avatar){font-size:12px;color:var(--muted)}.display-prompt{margin:32px 0;display:flex;flex-direction:column;align-items:center;gap:12px}.display-prompt p{font-size:13px;margin:0}.display-prompt small{font-size:11px;color:var(--muted)}.lobby-invite{display:flex;justify-content:center;gap:28px;align-items:center;text-align:left;margin:45px auto}.lobby-invite img{width:136px}.lobby-invite>div{display:flex;flex-direction:column;gap:12px;font-size:12px;color:var(--muted);max-width:330px;overflow-wrap:anywhere}.room-code{display:block;font-size:32px;letter-spacing:.2em;color:#30372a;font-weight:500}.host-next{display:flex;justify-content:center;margin:22px 0 8px}.host-next button{width:100%}.lobby .host-next{max-width:400px;margin:25px auto}.notice,.connection-banner{padding:12px 16px;font-size:12px;text-align:center;background:#edeee6;border-radius:8px;margin-top:14px;line-height:1.5}.connection-banner{background:#f0e9db;color:#786034}.resume{text-align:center;margin-top:12px}.empty-state,.loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:55vh;text-align:center}.empty-state h2{font-size:30px}.empty-state p{color:var(--muted);font-size:14px}.spinner{width:25px;height:25px;border:1px solid #ddd;border-top-color:#333;border-radius:50%;animation:spin 1s linear infinite;margin:20px}@keyframes spin{to{rotate:360deg}}.phones-mode{max-width:820px}.phones-mode .private-hand{min-height:380px}.phones-mode .private-spacer{display:none}.phones-mode .own{width:110px}.phones-mode .own-stack{margin:15px}.phones-mode .action-dock{max-width:480px}.phones-mode .table-stage{min-height:300px;height:340px;margin-bottom:0}.phones-mode .board-cards .card,.phones-mode .card-slot{width:54px}.phones-mode .seat .mini{width:25px}.phones-mode .seat-meta strong{font-size:11px}.phones-mode .avatar{width:26px;height:26px;font-size:10px}.phones-mode .seat-meta{gap:5px}.phones-mode .pot strong{font-size:23px}.phones-mode .table-centre{gap:10px}.phones-mode .table-stage .seat{min-width:65px}.phones-mode .seat-cards{margin-top:1px}.phones-mode .seat-action{font-size:9px}.modal-backdrop{position:fixed;inset:0;background:#252b224d;backdrop-filter:blur(5px);z-index:50;display:flex;align-items:center;justify-content:center;padding:20px}.modal{position:relative;max-width:460px;max-height:90dvh;overflow-y:auto;width:100%;background:#fafbf8;border:1px solid #daddd4;border-radius:20px;padding:38px 30px;box-shadow:0 20px 70px #17230f20}.modal>h2{font-size:32px;margin:0 25px 14px 0;letter-spacing:-.04em}.modal>p{font-size:13px}.modal .close{position:absolute;right:14px;top:12px;font-size:26px;background:none;width:40px;height:40px;color:#818776}.modal .qr{width:190px;display:block;margin:24px auto}.modal>.room-code{text-align:center;margin:18px 0 26px}.modal .small{overflow-wrap:anywhere;line-height:1.6}.stats{display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid var(--line);padding:20px 0;margin:24px 0 30px}.stats>div{display:flex;flex-direction:column;gap:7px}.stats strong{font-size:28px;font-weight:500}.stats span{font-size:11px;color:var(--muted)}.achievements{display:flex;flex-direction:column;gap:17px;margin:22px 0}.achievement{display:flex;align-items:center;gap:14px;color:#a2a898}.achievement>span{font-size:26px;width:30px;text-align:center}.achievement>div{display:flex;flex-direction:column;gap:5px}.achievement strong{font-size:13px;font-weight:500}.achievement small{font-size:11px}.achievement.earned{color:#4d623b}details{border-top:1px solid var(--line);padding-top:20px;margin-top:25px}summary{cursor:pointer;font-size:14px;font-weight:500}.settings-actions{display:flex;flex-direction:column;gap:10px;margin:20px 0 28px}.manage-player{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid var(--line);font-size:13px}.manage-player>span{display:flex;flex-direction:column;gap:5px}.manage-player small{color:var(--muted);font-size:11px}.manage-player button{font-size:12px;margin-left:10px}.deck-page{margin:60px 0}.deck-heading h1{font-size:60px;margin-bottom:15px}.deck-page section{margin:50px 0}.deck-page h2{font-size:26px;margin-bottom:24px}.deck-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:24px 18px}.deck-grid figure{margin:0}.deck-grid .card{width:100%}.deck-grid figcaption{font-size:12px;text-align:center;color:var(--muted);margin-top:9px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);background:#232b1e;color:white;font-size:13px;padding:15px 23px;border-radius:12px;box-shadow:0 5px 20px #0002;max-width:min(90vw,560px);z-index:100;opacity:0;pointer-events:none;transition:.2s;text-align:center}#toast.visible{opacity:1;transform:translate(-50%,0)}
@media(min-width:1100px){.player-screen:not(.phones-mode){max-width:540px}.player-screen:not(.phones-mode) .private-hand{max-height:900px;min-height:760px}.lobby-invite .room-code{font-size:40px}}
@media(max-width:750px){.shell{padding:0 24px}.shell>header{height:84px}.home{grid-template-columns:1fr;padding:50px 0 40px;gap:5px;min-height:auto}.home h1{font-size:56px}.home-copy{position:relative;z-index:3}.intro{font-size:15px}.hero-cards{min-height:350px}.hero-cards .card{width:155px}.hero-king{translate:-55px -13px}.hero-queen{translate:62px 15px}.hero-caption{bottom:0}.home-actions .large{padding:14px 19px;font-size:14px;min-height:53px}.shell>footer{flex-wrap:wrap;gap:20px;font-size:10px}.shell>footer>span:first-child{width:100%}.shell>footer>a{margin-left:0}.shell>footer>span:last-child{margin-left:auto}.entry{margin:36px auto 60px}.entry h1{font-size:46px}.room-shell{padding:0 18px}.room-header{padding:20px 0}.room-header h1{font-size:22px}.room-header>div:first-child{gap:10px}.room-header .brand{display:none}.room-header .muted{font-size:10px}.room-tools .secondary{padding:10px;font-size:12px;min-height:42px}.table-stage{height:62vh;min-height:450px}.board-cards .card,.card-slot{width:clamp(38px,9vw,68px)}.board-cards{gap:5px}.seat-meta strong{font-size:11px;max-width:70px}.seat-meta>div>span{font-size:10px}.seat .avatar{width:26px;height:26px;font-size:10px}.seat-meta{gap:5px;padding:5px}.seat .mini{width:28px}.table-outline{inset:15% 8%;border-radius:45%}.seat{min-width:75px}.seat-action{font-size:10px}.lobby{margin:35px auto}.lobby-title h2{font-size:30px}.lobby-title p{font-size:12px}.lobby-invite{flex-direction:column;text-align:center;gap:15px}.lobby-invite>div{align-items:center;max-width:100%}.lobby-players strong{max-width:110px}.modal{padding:35px 24px}.deck-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 10px}.deck-heading h1{font-size:48px}.deck-page{margin:35px 0}.display-screen .table-stage{min-height:580px}.display-footer{font-size:10px}.private-spacer{min-height:75px}.phones-mode .board-cards .card,.phones-mode .card-slot{width:38px}.phones-mode .table-stage{height:310px;min-height:310px}.phones-mode .seat .mini{width:21px}.phones-mode .seat-meta>div>span{font-size:9px}.phones-mode .seat-meta strong{max-width:60px;font-size:10px}.phones-mode .pot{gap:6px}.phones-mode .pot span{font-size:12px}}
@media(max-width:370px){.shell{padding:0 18px}.home h1{font-size:48px}.home-actions{gap:8px}.home-actions .large{padding:13px 14px}.room-header h1{font-size:20px}.connection-dot{margin-right:0}.room-tools{gap:5px}.own{width:115px}.deck-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.game-label{font-size:13px;color:var(--muted)}
.invite-lobby{max-width:620px;margin:36px auto 40px}.invite-lobby .lobby-title h2{margin:0 0 8px;font-size:38px}.invite-lobby .lobby-title p{margin:0 0 24px}.invite-centre{display:flex;flex-direction:column;align-items:center;gap:16px}.lobby-qr{display:block;width:236px;height:236px;border-radius:14px;border:1px solid var(--line);background:white}.invite-actions{display:flex;justify-content:center;gap:10px}.invite-link{width:100%;max-width:390px;border:0;background:transparent;color:var(--muted);text-align:center;font-size:12px;padding:9px;min-height:36px;margin:0}.invite-lobby .room-code{font-size:34px}.invite-lobby .lobby-players{margin:22px auto 12px;max-width:400px}.invite-lobby .lobby-players>div{padding:10px 2px}.host-label{display:inline!important;color:var(--muted)!important;font-size:10px!important;margin-left:8px}.invite-lobby .host-next{margin:10px auto 0}.start-hint{font-size:12px;color:var(--muted);margin:10px 0 0;text-align:center}.lobby-start{width:100%;max-width:400px;margin:auto}.player-screen .invite-lobby .lobby-qr{width:156px;height:156px}.player-screen .invite-lobby .lobby-title h2{font-size:30px}.player-screen .invite-lobby .invite-centre{gap:12px}.player-screen .invite-lobby .lobby-title p{font-size:12px;margin-bottom:18px}.player-screen .invite-lobby .lobby-start{position:sticky;bottom:0;background:var(--paper);background:#f7f7f5;padding:10px 0 max(12px,env(safe-area-inset-bottom));z-index:2}.player-screen .invite-lobby{margin-top:26px}.player-screen .invite-lobby .invite-link{font-size:10px}.player-screen .invite-actions>button{padding:12px 16px;min-height:44px;font-size:13px}.modal .invite-link{margin:12px 0;width:100%}body:has(.room-shell) #toast{bottom:auto;top:15px}
@media(max-width:750px){.display-screen .invite-lobby .lobby-qr{width:210px;height:210px}.invite-lobby .lobby-title h2{font-size:32px}.invite-lobby .room-code{font-size:30px}.invite-lobby .lobby-players strong{max-width:none}.invite-lobby .lobby-players small{width:auto;min-width:50px}}

.brand-logo{display:block;width:184px;height:69px;object-fit:contain;mix-blend-mode:multiply;margin:-15px -14px}

/* Partydeck: paper, graphite and a deck in motion. */
:root{--paper:#f5f5f2;--ink:#191b19;--muted:#737970;--line:#dfe2d9;--radius:14px}html{scroll-behavior:smooth;scroll-padding-top:32px}body{background:var(--paper)}button,a,input{touch-action:manipulation}.card{background:#fafaf8;isolation:isolate}.card img{position:relative;z-index:1;background:#fff}.card-fallback{position:absolute;inset:0;display:flex;padding:8%;font-size:28px;line-height:1;font-weight:600;color:#242622;pointer-events:none}.card:has(img:not([src])) .card-fallback{opacity:1}.brand-logo{object-fit:contain}.header-right{min-width:76px;display:flex;justify-content:flex-end}.home{min-height:640px;padding:34px 0 56px;grid-template-columns:1fr 1.1fr;gap:36px}.home h1{font-size:clamp(64px,6.7vw,98px);letter-spacing:-.075em;line-height:.99;margin-top:0}.intro{max-width:365px;line-height:1.65;font-size:17px}.home-actions{align-items:center;gap:24px}.how-link{font-size:13px;white-space:nowrap}.hero-cards{min-height:560px;transform:translateY(-24px);perspective:1200px}.hero-cards .card{width:clamp(220px,23vw,305px);border-radius:17px;box-shadow:0 24px 45px -22px #21251c50;transition:translate .65s cubic-bezier(.2,.8,.2,1),rotate .65s cubic-bezier(.2,.8,.2,1)}.hero-back{rotate:-22deg;translate:-99px -2px;z-index:0}.hero-king{rotate:-10deg;translate:-53px -35px}.hero-queen{rotate:12deg;translate:96px 7px}.hero-caption{bottom:0;color:var(--muted);letter-spacing:.02em}.quick-join{margin-top:38px;max-width:360px}.quick-join>label{font-size:12px;margin:0 0 10px}.code-entry{display:flex;background:#fff;border:1px solid #cbd0c6;border-radius:13px;overflow:hidden;box-shadow:0 4px 15px #17201004;transition:border-color .2s,box-shadow .2s}.code-entry:focus-within{border-color:#65775c;box-shadow:0 0 0 4px #7b8c7215}.code-entry input{border:0;background:transparent;min-width:0;padding:16px;font-size:15px;letter-spacing:.03em}.code-entry button{border-left:1px solid var(--line);background:#edf0e8;padding:0 20px;display:flex;align-items:center;gap:16px;font-weight:600}.quiet-note{margin-top:14px}.landing>section:not(.home){border-top:1px solid var(--line);padding:80px 0}.section-heading{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:44px}.section-heading h2,.objects-section h2,.faq-section>h2{font-size:clamp(36px,4vw,56px);line-height:1.07;letter-spacing:-.055em;margin:0}.section-heading p{color:var(--muted);margin:0;font-size:15px}.how-layout{display:grid;grid-template-columns:1.25fr 1fr;gap:80px;align-items:center}.device-scene{min-height:340px;position:relative;display:flex;align-items:center;padding:10px 40px 30px 0}.demo-screen{height:260px;width:94%;border:6px solid #242923;border-radius:18px;background:#e6ebe0;box-shadow:0 16px 30px #1720100c;padding:17px 20px;display:flex;flex-direction:column;align-items:center}.demo-screen>span{width:100%;font-size:10px;display:flex;justify-content:space-between}.demo-screen i{width:5px;height:5px;border-radius:50%;background:#748866}.demo-board{display:flex;gap:7px;align-items:center;justify-content:center;flex:1}.demo-board .card{width:62px;border-radius:5px;box-shadow:0 4px 6px #0001}.demo-screen>small{font-size:11px}.demo-phone{position:absolute;right:0;bottom:0;width:133px;height:246px;background:#fbfbf8;border:6px solid #242923;border-radius:25px;padding:24px 10px 13px;box-shadow:-12px 15px 35px #17201018;display:flex;flex-direction:column;align-items:center;justify-content:space-between;rotate:6deg}.demo-phone>span{font-size:9px;color:var(--muted)}.demo-phone>div{display:flex;justify-content:center}.demo-phone .card{width:58px;border-radius:5px;rotate:-9deg}.demo-phone .card+.card{margin-left:-18px;rotate:9deg}.demo-phone>strong{font-size:8px;background:#272d24;color:#fff;border-radius:20px;padding:9px 11px;white-space:nowrap}.how-steps{list-style:none;padding:0;margin:0;display:grid;gap:28px}.how-steps li{display:flex;gap:20px}.how-steps li>span{width:30px;height:30px;border:1px solid #ced5c7;display:grid;place-items:center;border-radius:50%;flex-shrink:0;font-size:12px;color:#617158}.how-steps h3{font-size:20px;font-weight:500;letter-spacing:-.025em;margin:0 0 8px}.how-steps p{font-size:14px;color:var(--muted);margin:0;max-width:310px}.game-panels{display:grid;grid-template-columns:1fr 1fr;gap:24px}.game-panel{border:1px solid #e0e3da;border-radius:22px;background:#e9ede4;overflow:hidden;text-align:left;padding:36px;color:var(--ink);transition:background .25s,transform .35s}.blackjack-panel{background:#ecece8}.game-panel:hover{background:#e3e8dc;transform:translateY(-4px)}.panel-cards{height:225px;display:flex;align-items:center;justify-content:center;perspective:800px}.panel-cards .card{width:126px;border-radius:9px;rotate:-13deg;translate:14px -3px;transition:rotate .45s,translate .45s;box-shadow:0 12px 22px #0001}.panel-cards .card+.card{rotate:12deg;translate:-8px 5px}.game-panel:hover .card:first-child{rotate:-20deg;translate:0 -10px}.game-panel:hover .card+.card{rotate:18deg;translate:4px 0}.game-count{font-size:12px;color:var(--muted)}.game-panel h3{display:flex;justify-content:space-between;font-size:30px;letter-spacing:-.045em;font-weight:500;margin:10px 0}.game-panel h3 span{font-size:22px}.game-panel p{font-size:14px;color:var(--muted);margin:0}.landing .objects-section{display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:60px}.objects-section>img{display:block;width:100%;height:auto;object-fit:contain}.objects-section>div>p{color:var(--muted);font-size:15px;max-width:350px;margin:24px 0}.objects-section .text-button{font-size:14px}.faq-section{display:grid;grid-template-columns:1fr 1.15fr;gap:70px}.faq-section details{margin:0;border-top:0;border-bottom:1px solid var(--line);padding:20px 0}.faq-section details:first-child{border-top:1px solid var(--line)}.faq-section summary{font-size:17px;cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:20px;line-height:1.45}.faq-section summary::-webkit-details-marker{display:none}.faq-section summary:after{content:'+';font-size:22px;font-weight:300;line-height:1;flex-shrink:0}.faq-section details[open] summary:after{content:'−'}.faq-section p{font-size:14px;color:var(--muted);margin:15px 20px 0 0}.closing-section{text-align:center}.closing-section>span{font-size:40px;display:block;margin-bottom:24px}.closing-section h2{font-size:clamp(48px,5vw,76px);line-height:1.05;margin-bottom:30px}.landing-shell>footer{padding:30px 0 40px}.in-view .how-steps li{animation:soft-arrive .65s both}.in-view .how-steps li:nth-child(2){animation-delay:.1s}.in-view .how-steps li:nth-child(3){animation-delay:.2s}@keyframes soft-arrive{from{transform:translateY(18px)}to{transform:translateY(0)}}
/* One clear setup form, with visual game and device choices. */
.entry-layout{width:100%;max-width:620px;margin:42px auto 65px;display:block;min-height:0}.entry-content{max-width:620px}.entry h1{font-size:clamp(38px,4.2vw,60px);line-height:1.03;margin:24px 0 28px}.entry fieldset{margin:0 0 24px;padding:0;border:0}.entry legend{font-size:12px;color:#68705f;font-weight:500;margin-bottom:12px}.entry .choice-row{gap:14px}.entry .game-choice{margin:0;flex:1;min-width:0}.game-choice>span{display:flex;flex-direction:column;text-align:left;padding:16px 18px 18px;min-height:190px;background:#fdfdfb;border:1px solid #d9dfd2;border-radius:15px;transition:background .2s,border-color .2s,box-shadow .2s}.game-choice input:checked+span{background:#eaf0e2;border-color:#849675;box-shadow:inset 0 0 0 1px #849675}.choice-art{display:flex;justify-content:center;align-items:center;height:112px;margin-bottom:9px}.choice-art .card{width:57px;border-radius:5px;rotate:-12deg;box-shadow:0 4px 8px #0001}.choice-art .card+.card{rotate:12deg;margin-left:-12px;translate:0 4px}.game-choice strong{font-size:16px;font-weight:500;letter-spacing:-.02em}.game-choice small{font-size:11px;color:var(--muted);margin-top:5px}.entry .mode-choice{position:relative;flex-direction:row;gap:16px;align-items:center;margin:10px 0;padding:18px;border:1px solid #d9dfd2;border-radius:13px;background:#fbfcf9;cursor:pointer;transition:border-color .2s,background .2s}.mode-choice:has(input:checked){background:#eaf0e2;border-color:#849675;box-shadow:inset 0 0 0 1px #849675}.mode-choice input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;pointer-events:none}.mode-choice:has(input:focus-visible){outline:2px solid #444b41;outline-offset:4px}.mode-choice>span:not(.device-icon):not(.selection-check){flex:1}.mode-choice strong{font-size:14px;font-weight:500}.mode-choice small{font-size:11px;margin-top:6px;line-height:1.5;color:var(--muted)}.selection-check{width:19px;height:19px;border-radius:50%;border:1px solid #ccd3c4;color:transparent;display:grid;place-items:center;font-size:11px;flex-shrink:0}.mode-choice:has(input:checked) .selection-check{color:white;background:#556948;border-color:#556948}.device-icon{position:relative;display:block;flex-shrink:0;border:1.5px solid #66735c}.screen-icon{width:29px;height:20px;border-radius:3px;margin-bottom:5px}.screen-icon:after{content:'';position:absolute;width:17px;height:4px;border-bottom:1.5px solid #66735c;bottom:-6px;left:4px}.phone-icon{width:17px;height:28px;border-radius:4px;margin-left:6px;margin-right:6px}.phone-icon:after{content:'';position:absolute;width:6px;height:1px;background:#66735c;bottom:3px;left:4px}.entry-fields{display:grid;grid-template-columns:1fr;gap:0}.entry label input{background:#fff;border-color:#d9dfd2}.entry label{font-size:12px;margin:18px 0}.entry .create-submit{margin-top:14px;display:flex;justify-content:space-between;box-shadow:0 6px 12px #19201410}.entry .form-error:empty{display:none}.join-entry{max-width:500px;padding-top:25px}.join-entry .entry-content{max-width:500px}.join-code-label{margin:36px 0!important}.join-entry .code-input{font-family:ui-monospace,SFMono-Regular,monospace;font-size:clamp(26px,4vw,43px);padding:23px 20px;letter-spacing:.18em;text-align:center;border:1px solid #819174;border-radius:16px;background:#edf2e6;box-shadow:0 0 0 5px #e9eddf}.signed-player{display:flex;gap:12px;align-items:center;font-size:13px;color:var(--muted)}
/* Hands stay high on the phone; the reveal control is an actual primary action. */
.player-screen .private-spacer{min-height:22px;padding:10px 0 14px}.private-spacer .muted{font-size:11px}.player-screen .own{width:clamp(140px,35vw,178px);border-radius:12px}.own-cards{perspective:1000px}.own-cards .card{transition:rotate .25s,translate .25s;rotate:-4deg}.own-cards .card+.card{rotate:4deg}.peek-control{background:#eceee8;color:#41483b;min-height:52px;min-width:260px;max-width:100%;border:1px solid #d5dacf;border-radius:12px;padding:14px 25px;display:flex;align-items:center;justify-content:center;gap:12px;box-shadow:none;font-size:14px;font-weight:500;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;transition:background .2s,border-color .2s,transform .2s}.peek-control[aria-pressed=true]{background:#e0e5d9;border-color:#a6b09b;box-shadow:none}.own-stack{margin:18px 0!important}.turn-label{font-size:15px;font-weight:500;color:var(--ink)}.hand-status{display:flex;align-items:center;gap:10px;justify-content:center;margin:12px 0 20px;font-size:12px;color:var(--muted)}.hand-status i{display:block;width:6px;height:6px;border-radius:50%;background:#9aa493}.hand-status.your-turn{color:#4b663e}.hand-status.your-turn i{background:#6b8f57;box-shadow:0 0 0 5px #8aab7520}.turn-caption{color:var(--muted);font-weight:400;font-size:11px;display:block;margin-top:7px}.round-status{display:flex;justify-content:center;align-items:center;gap:12px;font-size:12px;color:var(--muted);padding:20px 0 0}.round-status strong{font-weight:500;color:var(--ink)}.round-status .stage-pill{border:1px solid #ccd5c4;border-radius:20px;padding:5px 12px;background:#edf1e8;font-size:11px}.seat.active .seat-meta{box-shadow:0 0 0 3px #8aab7524;border-color:#708b60}.seat.active .seat-meta:after{content:'Playing';font-size:9px;color:#4d663f;margin-left:8px}.seat.winner .seat-meta{background:#e6eedc;border-color:#71875f}.result-summary{max-width:580px;margin:18px auto 20px;padding:20px 25px;border:1px solid #d8dece;border-radius:17px;background:#f0f3e9;text-align:center}.result-summary.loss{background:#efefeb;border-color:#dddeda}.result-summary>strong{font-size:23px;font-weight:500;letter-spacing:-.04em;display:block}.result-summary>span{display:block;margin-top:8px;color:var(--muted);font-size:12px;line-height:1.6}.result-summary .result-amount{font-size:32px;letter-spacing:-.04em;margin:8px 0 0;color:#4e693d}.result-summary.loss .result-amount{color:#656b60}.next-hand-note{font-size:12px;color:var(--muted);text-align:center;margin:12px 0}.activity-line{text-align:center;font-size:12px;color:var(--muted);padding:12px 0;min-height:40px}.action-buttons button{transition:transform .15s,background .15s;min-height:54px}.action-dock{border-top:1px solid var(--line);padding-top:20px}.action-dock:has(.your-action){background:#f1f4ec;border-radius:18px;padding:20px}.peek-flip{animation:peek-turn .22s ease-out}@keyframes peek-turn{from{transform:rotateY(-22deg) translateY(3px)}to{transform:rotateY(0) translateY(0)}}@keyframes result-arrive{from{transform:translateY(10px) scale(.98)}to{transform:translateY(0) scale(1)}}
@media(max-width:1050px){.home{gap:12px}.hero-cards .card{width:240px}.hero-back{translate:-75px 0}.hero-king{translate:-45px -35px}.hero-queen{translate:65px 8px}.home h1{font-size:73px}.how-layout{gap:40px}.landing .objects-section{gap:36px}.game-panel{padding:25px}}
@media(max-width:750px){.shell{padding:0 22px}.home{padding:44px 0 25px;grid-template-columns:1fr;gap:0;min-height:0}.home h1{font-size:clamp(57px,14vw,76px);margin:0 0 23px}.intro{font-size:15px;margin-bottom:24px}.home-actions{gap:22px}.home .hero-cards{grid-row:2;min-height:390px;transform:none;margin-top:22px}.hero-cards .card{width:198px;border-radius:12px}.hero-back{translate:-61px 0;rotate:-23deg}.hero-king{translate:-35px -21px;rotate:-10deg}.hero-queen{translate:63px 7px;rotate:12deg}.hero-caption{bottom:0}.quick-join{margin-top:30px;max-width:none}.quiet-note{font-size:11px}.landing>section:not(.home){padding:48px 0}.section-heading{display:block;margin-bottom:30px}.section-heading h2,.objects-section h2,.faq-section>h2{font-size:36px}.section-heading p{margin-top:18px;font-size:13px}.how-layout{grid-template-columns:1fr;gap:38px}.device-scene{min-height:285px;padding-right:27px}.demo-screen{height:225px;width:95%;border-width:5px}.demo-phone{width:119px;height:220px;right:4px}.demo-phone .card{width:51px}.how-steps{gap:25px}.how-steps h3{font-size:20px}.how-steps p{font-size:13px}.game-panels{grid-template-columns:1fr;gap:16px}.game-panel{padding:23px 26px;display:grid;grid-template-columns:.7fr 1fr;gap:18px;align-items:center}.panel-cards{height:155px;grid-column:1}.panel-cards .card{width:72px;translate:12px -3px}.game-panel h3{font-size:23px;line-height:1.1;gap:10px}.game-panel h3 span{font-size:17px}.game-panel p{font-size:12px;line-height:1.55}.game-count{font-size:10px}.landing .objects-section{grid-template-columns:1fr;gap:28px}.objects-section>div>p{font-size:14px;margin:18px 0}.faq-section{grid-template-columns:1fr;gap:28px}.faq-section summary{font-size:15px}.faq-section p{font-size:13px}.closing-section h2{font-size:49px}.entry-layout{margin:25px auto 40px;padding:0}.entry h1{font-size:42px;margin-top:23px}.entry .game-choice>span{padding:13px 12px;min-height:184px}.choice-art{height:102px}.entry .choice-row{gap:10px}.game-choice strong{font-size:15px}.game-choice small{font-size:10px}.entry .mode-choice{padding:16px 13px;gap:13px}.mode-choice small{font-size:10px}.entry .create-submit{min-height:58px}.join-entry .code-input{font-size:36px}.player-screen .own{width:clamp(140px,37vw,174px)}.player-screen .private-spacer{min-height:12px;padding:9px 0}.peek-control{min-width:256px;margin-top:22px!important;font-size:13px}.player-screen .own-stack{margin:17px 0!important}.hand-status{margin:12px 0 17px}.result-summary{padding:16px 20px;margin-top:15px}.result-summary>strong{font-size:22px}.round-status{font-size:11px;gap:9px}.seat.active .seat-meta:after{display:none}.phones-mode .own{width:110px}.phones-mode .peek-control{min-height:50px;margin-top:12px!important}.phones-mode .private-spacer{display:none}.player-screen .blackjack-hands .own{width:clamp(85px,29vw,150px)}}
@media(max-width:370px){.shell{padding:0 18px}.home h1{font-size:58px}.hero-cards .card{width:177px}.home .hero-cards{min-height:350px}.hero-back{translate:-47px 0}.hero-queen{translate:54px 7px}.game-choice strong{font-size:13px}.game-choice small{font-size:9px}.entry .mode-choice{gap:10px}.mode-choice strong{font-size:13px}.mode-choice small{max-width:180px}.entry h1{font-size:38px}.game-panel{padding:20px 18px;gap:12px}.game-panel h3{font-size:21px}.player-screen .own{width:132px}.peek-control{min-width:245px}.phones-mode .own{width:105px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
/* Scale the shared table to the screen, rather than a fixed desktop canvas. */
.display-screen{max-width:2200px;padding:0 clamp(20px,3.2vw,64px);display:flex;flex-direction:column;min-height:100svh}.display-screen .room-header{padding:22px 0;flex-shrink:0}.display-screen .table-stage{--table-rx:40%;--table-ry:36%;width:100%;max-width:1900px;height:calc(100svh - 240px);min-height:440px;max-height:1150px;margin:6px auto 18px}.seat{left:calc(50% + var(--seat-x)*var(--table-rx,40%));top:calc(50% + var(--seat-y)*var(--table-ry,36%))}.display-screen .table-outline{inset:16% 7%;background:#e8ede14d;border-color:#d2dac8;border-width:1px}.display-screen .table-centre{gap:22px}.display-screen .board-cards{gap:clamp(7px,1vw,16px)}.display-screen .board-cards .card,.display-screen .card-slot{width:clamp(72px,7.2vw,154px);border-radius:11px}.display-screen .pot strong{font-size:clamp(32px,3.5vw,58px)}.display-screen .pot span,.display-screen .dealer-zone>.muted{font-size:clamp(14px,1.2vw,21px)}.display-screen .seat-meta{padding:9px 13px;gap:11px}.display-screen .seat-meta strong{font-size:clamp(14px,1.3vw,22px);max-width:145px}.display-screen .seat-meta>div>span{font-size:clamp(12px,1.15vw,19px);font-variant-numeric:tabular-nums}.display-screen .seat .avatar{width:clamp(33px,3vw,49px);height:clamp(33px,3vw,49px);font-size:16px}.display-screen .seat .mini{width:clamp(38px,4.1vw,75px);border-radius:6px}.display-screen .seat-cards{margin-top:8px;gap:5px;max-width:240px;flex-wrap:wrap}.display-screen .seat-action{font-size:clamp(11px,1vw,16px);margin-top:7px}.display-screen .public-bj-hand{flex-wrap:wrap;justify-content:center;max-width:235px;gap:2px}.display-screen .public-bj-hand>.card+.card{margin-left:-8px}.display-screen .public-bj-hand>span:last-child{font-size:15px;font-weight:600;margin-left:7px}.display-screen .seat.active .seat-meta:after{content:none}.display-screen .seat.active .seat-action{color:#486a35;font-weight:600}.display-screen .round-status{font-size:14px;padding-top:18px}.display-screen .stage-pill{font-size:12px}.display-screen .activity-line{font-size:13px;min-height:34px;padding:8px 0 0}.display-screen .display-footer{margin-top:auto;flex-shrink:0;font-size:13px;min-height:62px}.display-screen .result-summary{width:min(100%,650px);margin:8px auto 24px}.result-summary{display:block}.result-summary>span{width:100%}.display-screen .room-header h1{font-size:clamp(24px,2vw,34px)}.display-screen .room-header .muted{font-size:13px}.display-screen .invite-lobby{width:100%;max-width:1100px;margin:clamp(30px,5vh,70px) auto}.display-screen .invite-lobby .lobby-title h2{font-size:clamp(36px,4.3vw,62px)}.display-screen .invite-lobby .lobby-qr{width:clamp(220px,24vh,310px);height:auto;aspect-ratio:1}.display-screen .invite-lobby .room-code{font-size:clamp(34px,4vw,54px)}.display-screen .invite-lobby .lobby-players{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:740px;gap:0 30px;margin-top:32px}.display-screen .invite-lobby .lobby-players>div{min-width:0;font-size:15px}.display-screen .lobby-players strong{overflow:hidden;text-overflow:ellipsis;max-width:220px;white-space:nowrap}.player-screen .private-hand{min-height:calc(100svh - 112px);max-height:none;padding:16px 0 max(20px,env(safe-area-inset-bottom))}.player-screen .private-spacer{flex:none;min-height:0;padding:0 0 18px}.player-screen .hand-status{margin:6px 0 12px}.player-screen .own-cards{margin-top:8px}.player-screen .action-dock{margin-top:24px}.player-screen:not(.phones-mode) .action-dock{margin-top:auto;padding-top:20px}.player-screen .private-hand>.own-stack{margin-bottom:24px!important}.player-screen .results{width:100%;margin:0 0 22px}.player-screen .room-header>div:first-child{min-width:0;flex:1}.player-screen .room-header h1{overflow:hidden;text-overflow:ellipsis;max-width:260px;white-space:nowrap}.player-screen .room-tools{flex-shrink:0}.auth-heading{text-align:center}.auth-heading>span{display:block;font-size:34px;margin:2px 0 24px}.auth-heading h2{font-size:34px;margin-bottom:18px}.auth-heading p{font-size:14px;color:var(--muted);line-height:1.6;margin-bottom:25px}.legacy-login summary{font-size:12px;color:var(--muted)}.entry .choice span.card,.entry .choice span.card-fallback,.entry .choice span.choice-art{border:0;padding:0;border-radius:0}.entry .choice span.card{border:1px solid #d1d6ca;border-radius:5px}.entry .choice span.card-fallback{padding:8%;text-align:left}.entry .choice span.choice-art{display:flex}.entry .mode-choice .selection-check{display:grid;gap:0}.entry .mode-choice .device-icon{display:block;gap:0}
@media(min-width:1600px){.display-screen .table-stage{height:calc(100svh - 260px)}.display-screen .seat-meta strong{max-width:190px}.display-screen .seat-cards{max-width:310px}.display-screen .public-bj-hand{max-width:300px}.display-screen .room-header{padding:28px 0}.display-screen .round-status{font-size:17px}.display-screen .stage-pill{font-size:14px}.display-screen .activity-line{font-size:16px}.display-screen .display-footer{font-size:16px}.display-screen .invite-lobby .lobby-title p{font-size:18px}}
@media(min-width:751px) and (max-width:1100px){.shell{padding:0 5vw}.shell>header{height:96px}.home{grid-template-columns:1fr 1fr;min-height:610px}.home h1{font-size:clamp(57px,7.3vw,78px)}.home .intro{font-size:15px;max-width:300px}.hero-cards .card{width:clamp(182px,23vw,240px)}.hero-back{translate:-53px 0}.hero-king{translate:-31px -25px}.hero-queen{translate:55px 13px}.hero-cards{min-height:470px;transform:none}.home-actions{gap:13px;flex-wrap:wrap}.home-actions .large{padding:16px 22px;font-size:14px}.how-layout{grid-template-columns:1fr 1fr;gap:30px}.demo-phone{right:-4px;width:118px;height:224px}.demo-screen{height:225px;padding:16px 10px}.demo-board .card{width:48px}.entry h1{font-size:43px}.game-choice strong{font-size:14px}.game-choice small{font-size:10px}.entry .game-choice>span{padding:13px 11px}.mode-choice small{font-size:10px}.entry .mode-choice{padding:15px 12px;gap:11px}.display-screen .table-stage{--table-rx:38%;height:calc(100svh - 225px);min-height:540px}.display-screen .seat-meta strong{font-size:14px;max-width:95px}.display-screen .seat-meta>div>span{font-size:12px}.display-screen .seat .avatar{width:29px;height:29px;font-size:12px}.display-screen .seat-meta{gap:7px;padding:6px 8px}.display-screen .seat .mini{width:40px}.display-screen .seat-cards,.display-screen .public-bj-hand{max-width:160px}.display-screen .board-cards .card,.display-screen .card-slot{width:clamp(62px,7.4vw,78px)}.display-screen .seat-action{font-size:11px}.player-screen:not(.phones-mode){max-width:620px}.player-screen:not(.phones-mode) .own{width:195px}.player-screen .private-spacer{padding-bottom:22px}.player-screen:not(.phones-mode) .private-hand{min-height:calc(100svh - 120px);max-height:none}.player-screen .peek-control{min-width:300px;min-height:54px;font-size:15px}.player-screen .hand-status{font-size:14px}.player-screen .room-header h1{max-width:300px}.phones-mode{max-width:920px}.phones-mode .table-stage{height:450px;min-height:450px;--table-rx:39%;--table-ry:37%}.phones-mode .board-cards .card,.phones-mode .card-slot{width:64px}}
@media(min-width:1101px){.player-screen:not(.phones-mode){max-width:620px}.player-screen:not(.phones-mode) .private-hand{min-height:min(850px,calc(100svh - 120px));max-height:none}.player-screen:not(.phones-mode) .own{width:190px}.player-screen:not(.phones-mode) .peek-control{min-width:310px}.phones-mode{max-width:1500px}.phones-mode .private-hand{min-height:0;max-width:550px;margin:auto}.phones-mode .table-stage{height:570px;min-height:570px;--table-rx:39%;--table-ry:37%}.phones-mode .seat .mini{width:43px}.phones-mode .board-cards .card,.phones-mode .card-slot{width:85px}}
@media(max-width:750px){.display-screen{padding:0 14px}.display-screen .room-header{padding:16px 0}.display-screen .room-header h1{font-size:21px;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.display-screen .room-header .muted{font-size:10px}.display-screen .round-status{font-size:10px;gap:8px;flex-wrap:wrap;padding-top:14px}.display-screen .stage-pill{font-size:10px;padding:4px 9px}.display-screen .table-stage{--table-rx:35%;--table-ry:39%;height:calc(100svh - 210px);min-height:540px;margin:5px 0 15px}.display-screen .table-outline{inset:14% 3%;border-radius:44%}.display-screen .table-centre{gap:14px}.display-screen .board-cards{gap:4px}.display-screen .board-cards .card,.display-screen .card-slot{width:clamp(32px,8.8vw,59px);border-radius:5px}.display-screen .pot strong{font-size:28px}.display-screen .pot span{font-size:12px}.display-screen .seat{min-width:60px;max-width:110px}.display-screen .seat-meta{gap:4px;padding:5px 6px}.display-screen .seat-meta strong{font-size:11px;max-width:64px}.display-screen .seat-meta>div>span{font-size:10px}.display-screen .seat .avatar{display:none}.display-screen .seat .mini{width:27px;border-radius:3px}.display-screen .seat-cards{gap:2px;margin-top:5px;max-width:100px}.display-screen .public-bj-hand{max-width:100px}.display-screen .public-bj-hand>span:last-child{font-size:11px;margin:0 2px}.display-screen .public-bj-hand>.card+.card{margin-left:-5px}.display-screen .seat-action{font-size:9px;margin-top:4px}.display-screen .activity-line{font-size:10px;min-height:24px}.display-screen .dealer-zone>.muted{font-size:12px}.display-screen .display-footer{font-size:10px;min-height:52px;gap:10px}.display-screen .display-footer strong{margin-left:5px}.display-screen .display-footer .text-button{font-size:10px;gap:3px}.display-screen .invite-lobby .lobby-title h2{font-size:34px}.display-screen .invite-lobby .lobby-players{display:flex;max-width:390px;margin-top:24px}.display-screen .invite-lobby .lobby-players>div{font-size:13px}.display-screen .invite-lobby .room-code{font-size:34px}.display-screen .invite-lobby .lobby-qr{width:210px}.player-screen{padding:0 18px}.player-screen .room-header{padding:18px 0}.player-screen .room-header h1{font-size:20px;max-width:190px}.player-screen .private-hand{min-height:calc(100svh - 96px);padding-top:16px}.player-screen .private-spacer{padding:0 0 16px}.player-screen .private-hand>.own-cards{margin-top:6px}.player-screen .action-dock{padding-bottom:max(12px,env(safe-area-inset-bottom))}.player-screen .own{width:clamp(132px,38vw,176px)}.phones-mode .table-stage{--table-rx:35%;--table-ry:37%;min-height:410px;height:410px}.phones-mode .seat .avatar{display:none}.phones-mode .seat-meta{padding:4px}.phones-mode .seat-meta strong{max-width:60px}.phones-mode .seat-cards{max-width:92px;flex-wrap:wrap}.phones-mode .public-bj-hand{max-width:92px;flex-wrap:wrap;justify-content:center}.phones-mode .private-hand{min-height:0}.phones-mode .private-hand>.own-cards{margin-top:0}.phones-mode .own{width:112px}.phones-mode .action-dock{margin-top:18px}.phones-mode .seat{max-width:95px}.player-screen .blackjack-hands:has(.bj-hand:nth-child(2)) .own{width:80px}.player-screen .blackjack-hands{gap:12px;margin-top:0}.player-screen .blackjack-hands .bj-hand{padding-top:0}.modal-backdrop{padding:12px}.modal{max-height:calc(100dvh - 24px);padding:35px 24px}.room-tools .icon-button{width:44px;padding:0 10px}.entry input,.modal input,.raise-form input,.code-entry input{font-size:16px}.entry .code-input{font-size:36px}}
@media(max-width:750px) and (orientation:landscape){.display-screen .table-stage{--table-rx:39%;--table-ry:33%;min-height:300px;height:calc(100svh - 120px)}.display-screen .room-header{padding:10px 0}.display-screen .room-header .muted{display:none}.display-screen .round-status{padding-top:8px}.display-screen .activity-line{display:none}.display-screen .seat .mini{width:24px}.display-screen .seat-meta{padding:3px 5px}.display-screen .display-footer{min-height:40px;padding:5px 0}.display-screen .table-stage{margin-bottom:4px}.display-screen .seat-cards{margin-top:3px}.player-screen:not(.phones-mode) .private-hand{min-height:400px}.entry-layout{margin-top:20px}.hero-cards .card{width:195px}}
@media(max-width:370px){.player-screen{padding:0 14px}.player-screen .room-header h1{font-size:18px;max-width:145px}.player-screen .room-tools{gap:6px}.player-screen .connection-dot{margin-right:2px}.player-screen .own{width:130px}.player-screen .peek-control{min-width:245px;font-size:12px}.player-screen .hand-status{font-size:11px}.display-screen .seat-meta strong{max-width:52px}.display-screen .seat .mini{width:23px}.display-screen .seat-cards{max-width:80px}.display-screen .seat-action{font-size:8px}.display-screen .board-cards .card,.display-screen .card-slot{width:29px}.display-screen .table-stage{--table-rx:36%;min-height:540px}.display-screen .room-header h1{font-size:18px;max-width:170px}.phones-mode .own{width:105px}}
@media(max-width:750px) and (orientation:portrait){.display-screen .table-stage{--table-rx:41%}.phones-mode .table-stage{--table-rx:40%}.phones-mode .board-cards .card,.phones-mode .card-slot{width:32px}.phones-mode .board-cards{gap:4px}}
@media(min-width:751px){.display-screen .table-stage{--table-ry:40%}}
@media(max-width:750px){.hero-back{translate:-32px 0}.hero-queen{translate:52px 7px}}
@media(max-width:370px){.hero-back{translate:-24px 0}.hero-queen{translate:38px 7px}}
@media(min-width:1101px){.setup-shell>header{height:92px}.setup-shell .entry-layout{margin-top:28px}.setup-shell .entry h1{font-size:52px;margin-top:20px}.setup-shell .game-choice>span{min-height:162px;padding:12px 18px}.setup-shell .choice-art{height:86px;margin-bottom:6px}.setup-shell .choice-art .card{width:50px}.setup-shell .entry fieldset{margin-bottom:18px}.setup-shell .entry .mode-choice{padding:14px 18px;margin:8px 0}.setup-shell .entry label{margin:12px 0}}
@media(max-width:750px){.entry .game-choice>span{min-height:156px}.choice-art{height:80px}.choice-art .card{width:49px}.entry fieldset{margin-bottom:18px}.entry label{margin:12px 0}.entry .mode-choice{margin:8px 0}}

/* Center the private hand between the status and action controls. */
.hand-content{width:100%;display:flex;flex-direction:column;align-items:center}.player-screen:not(.phones-mode) .hand-content{margin-block:auto;padding:20px 0}.player-screen:not(.phones-mode) .action-dock{margin-top:0}.player-screen .hand-content>.own-stack{margin-bottom:0!important}

.hero-cards,.board-cards,.seat-cards{perspective:1200px}.collected-card{contain:layout style;backface-visibility:hidden}

/* Keep the landing illustrations clear of the copy at intermediate widths. */
@media(min-width:1101px){.hero-back{translate:clamp(-99px,-6.5vw,-70px) -2px}}
@media(min-width:751px) and (max-width:900px){.home{grid-template-columns:1.1fr 1fr;gap:32px}.hero-cards .card{width:clamp(154px,20vw,180px)}.hero-back{translate:-30px 0}.hero-king{translate:-15px -25px}.hero-queen{translate:38px 13px}}
@media(max-width:750px){.game-panel:hover .card:first-child{rotate:-16deg;translate:12px -6px}.game-panel:hover .card+.card{rotate:14deg;translate:-8px 2px}}
@media(max-width:370px){.game-panel{grid-template-columns:100px minmax(0,1fr);gap:18px;padding:20px 16px}.panel-cards .card{width:62px}.panel-cards{height:140px}.game-panel h3{font-size:20px;gap:6px}.game-panel h3 span{font-size:15px}}

.hero-cards .card{transition:none;animation:none}

/* A focused amount editor. Keep the table visible behind it, with no live layout work while dragging. */
html.has-modal,html.has-modal body{overflow:hidden;overscroll-behavior:none}
.next-bet{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;max-width:420px;margin:24px auto;padding:18px 0;border-block:1px solid var(--line);text-align:left}
.next-bet>span{min-width:0;color:var(--muted);font-size:13px}.next-bet strong{display:block;color:var(--ink);font-size:26px;font-weight:500;letter-spacing:-.04em;margin-top:6px;font-variant-numeric:tabular-nums}.next-bet small{font-size:13px;letter-spacing:0;color:var(--muted);font-weight:400}.next-bet button{flex-shrink:0}
.betting-backdrop{top:var(--dialog-top,0px);bottom:auto;height:var(--dialog-height,100dvh);padding:24px;background:#15181366;backdrop-filter:none;overscroll-behavior:contain}
.betting-modal{padding:0;max-width:480px;max-height:100%;border:1px solid #dadcd4;border-radius:24px;background:#f7f7f3;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 24px 80px #0003;animation:betting-arrive .18s ease-out}
.betting-header{position:relative;padding:26px 30px 0;flex-shrink:0}.betting-header h2{font-size:26px;letter-spacing:-.04em;font-weight:500;margin:0 42px 0 0;line-height:1.2}.betting-modal .close{top:17px;right:17px;color:var(--ink);width:44px;height:44px;font-weight:300}
#betting-form{display:flex;flex-direction:column;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.betting-body{padding:0 30px}.betting-amount{display:flex;flex-direction:column;align-items:center;margin:25px 0 17px}
.betting-modal #bet-amount{width:100%;min-width:0;font-size:clamp(48px,12vw,72px);line-height:1.15;letter-spacing:-.06em;font-weight:500;font-variant-numeric:tabular-nums;text-align:center;padding:6px 2px;border:0;border-radius:6px;background:transparent;box-shadow:none;color:var(--ink);min-height:0}.betting-modal #bet-amount:focus{outline:1px solid #9aa58f;outline-offset:2px}.betting-amount>span{font-size:13px;color:var(--muted);margin-top:6px}
.betting-modal .bet-slider{display:block;appearance:none;-webkit-appearance:none;width:100%;height:44px;min-height:44px;padding:0;border:0;background:transparent;border-radius:0;cursor:pointer;touch-action:pan-y;margin:0;accent-color:#526448}
.bet-slider::-webkit-slider-runnable-track{height:5px;background:linear-gradient(to right,#526448 var(--bet-progress),#dddfd6 var(--bet-progress));border-radius:4px}.bet-slider::-moz-range-track{height:5px;background:#dddfd6;border-radius:4px}.bet-slider::-moz-range-progress{height:5px;background:#526448;border-radius:4px}
.bet-slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:28px;height:28px;border-radius:50%;background:#fdfdfb;border:1px solid #8e9a83;box-shadow:0 2px 5px #0002;margin-top:-11.5px}.bet-slider::-moz-range-thumb{width:27px;height:27px;border-radius:50%;background:#fdfdfb;border:1px solid #8e9a83;box-shadow:0 2px 5px #0002}
.bet-limits{display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.bet-presets{display:flex;gap:8px;margin:23px 0 24px}.bet-presets button{flex:1;min-width:0;min-height:46px;padding:10px 4px;border-radius:10px;background:transparent;border:1px solid #d5d8ce;color:var(--ink);font-size:14px;font-weight:500;font-variant-numeric:tabular-nums}.bet-presets button[aria-pressed=true]{background:#e6ebdf;border-color:#89967c;color:#35432d}
.bet-breakdown{border-top:1px solid var(--line);padding-top:17px;margin:0 0 4px;font-size:13px}.bet-breakdown>div{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin-bottom:12px}.bet-breakdown dt{color:var(--muted)}.bet-breakdown dd{margin:0;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.bet-breakdown .bet-added{font-size:16px}.bet-breakdown .bet-added dt,.bet-breakdown .bet-added dd{color:var(--ink);font-weight:500}
.betting-footer{position:sticky;bottom:0;padding:8px 30px 15px;background:#f7f7f3;flex-shrink:0;border-top:1px solid transparent}.bet-error{font-size:12px;line-height:1.45;color:#873f37;margin:0 0 12px}.bet-error:empty{display:none}.bet-confirm{width:100%;min-height:56px;font-size:16px}.bet-cancel{width:100%;font-size:13px;min-height:44px;margin-top:2px;color:#636a5d}.betting-modal button:focus-visible{outline-offset:2px}
.action-buttons{flex-wrap:wrap}.action-buttons>button{flex:1 1 82px;overflow-wrap:anywhere}.action-buttons>button[data-do=raise]{background:#e6ebdf;border-color:#a9b59d;color:#35432d}
@keyframes betting-arrive{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.betting-backdrop{align-items:flex-end;padding:12px 0 0}.betting-modal{max-width:100%;border-radius:24px 24px 0 0;border-bottom:0}.betting-header{padding:25px 24px 0}.betting-body{padding:0 24px}.betting-footer{padding:10px 24px max(10px,env(safe-area-inset-bottom))}.betting-amount{margin:22px 0 14px}}
@media(max-width:370px){.betting-header{padding:22px 20px 0}.betting-header h2{font-size:24px}.betting-body{padding:0 20px}.betting-footer{padding-inline:20px}.bet-presets{gap:6px}.bet-breakdown>div{gap:10px}.next-bet button{padding:12px 16px}.player-screen .action-dock:has(.your-action){padding-inline:12px}}
@media(max-height:560px){.betting-amount{margin:10px 0}.betting-modal #bet-amount{font-size:48px}.bet-presets{margin:12px 0}.betting-header{padding-top:20px}.bet-breakdown{padding-top:12px}.betting-footer{padding-top:8px;padding-bottom:8px}.bet-cancel{display:none}}

/* A blackjack round occupies one viewport; betting is a separate step. */
.blackjack-room.round-screen{height:100dvh;min-height:0;display:flex;flex-direction:column;gap:0;padding-bottom:env(safe-area-inset-bottom)}
.blackjack-room.round-screen>.room-header{flex:none;padding-block:clamp(10px,2.2dvh,22px)}
.blackjack-room .room-header>div:first-child{min-width:0;flex:1}
.blackjack-room .room-header h1{max-width:min(35vw,320px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.blackjack-room .room-tools{flex-shrink:0}
.blackjack-room.round-screen>.round-status{flex:none;padding:10px 0 4px;flex-wrap:wrap;line-height:1.3}
.blackjack-room.round-screen>.activity-line{flex:none;min-height:0;padding:2px 0 4px}
.blackjack-room.round-screen>.display-footer{flex:none;min-height:42px;padding:8px 0;margin:0;font-size:12px}
.blackjack-room.round-screen>.table-stage{flex:1;min-height:0;height:auto;max-height:none;margin:8px auto;max-width:1700px;container-type:size}
.blackjack-room .blackjack-table{display:grid;grid-template-rows:minmax(0,.8fr) minmax(0,1fr);gap:16px}
.blackjack-room .blackjack-table .table-centre{position:static;transform:none;min-width:0;min-height:0;align-self:center;gap:8px}
.blackjack-table .dealer-zone{display:flex;flex-direction:column;align-items:center;gap:10px}
.blackjack-room .blackjack-table .board-cards{gap:8px;justify-content:center;flex-wrap:nowrap}
.blackjack-room .blackjack-table .board-cards .card{width:min(110px,18cqh,calc(65cqw / 8));border-radius:8px;flex-shrink:0}
.blackjack-seats{display:grid;grid-template-columns:repeat(var(--bj-columns),minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:12px 24px;min-height:0;align-items:stretch}
.blackjack-room .blackjack-table .seat{position:static;transform:none;min-width:0;max-width:none;width:100%;min-height:0;justify-content:center;--card-size:min(100px,16cqh)}
.blackjack-room .blackjack-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .seat{--card-size:min(70px,9cqh)}
.blackjack-room .blackjack-table .seat-meta{padding:4px 8px;gap:8px;max-width:100%}
.blackjack-room .blackjack-table .seat-meta strong{font-size:clamp(12px,1.4vw,20px);max-width:190px}
.blackjack-room .blackjack-table .seat-meta>div>span{font-size:clamp(11px,1.2vw,16px)}
.blackjack-room .blackjack-table .seat .avatar{width:30px;height:30px;font-size:13px;flex-shrink:0}
.blackjack-room .blackjack-table .seat-cards{width:100%;max-width:460px;flex-wrap:nowrap;gap:10px;align-items:start;margin-top:6px}
.blackjack-room .blackjack-table .public-bj-hand{flex:1;display:flex;flex-direction:column;align-items:center;min-width:0;max-width:none;gap:4px}
.hand-fan{container-type:inline-size;display:flex;justify-content:center;width:100%;min-width:0;--fan-card:min(var(--card-size,120px),calc((100cqw - 12px)/(1 + .3*(var(--cards) - 1))))}
.blackjack-room .hand-fan .card{width:var(--fan-card);flex:0 0 var(--fan-card);rotate:none;translate:none;border-radius:6px}
.blackjack-room .hand-fan .card+.card{margin-left:calc(var(--fan-card)*-.7)}
.blackjack-room .hand-fan{gap:0;flex-wrap:nowrap}
.blackjack-room .public-total{font-size:clamp(12px,1.3vw,20px);font-weight:500}
.blackjack-room .blackjack-table .seat-action{font-size:clamp(11px,1.1vw,16px);margin-top:3px;min-height:14px}
.blackjack-room .seat-action.settled{color:var(--ink);font-weight:500}
.blackjack-room.round-screen>.result-summary{flex:none;width:100%;max-width:none;border:0;border-top:1px solid var(--line);border-radius:0;background:none;padding:8px 0;margin:0;display:flex;align-items:center;justify-content:center;gap:16px}
.blackjack-room.round-screen>.result-summary>strong{font-size:16px;letter-spacing:-.02em}
.blackjack-room.round-screen>.result-summary>span{margin:0;line-height:1.35;font-size:12px}
.blackjack-room.round-screen>.result-summary .result-detail{display:none}
.round-tabs{display:flex;justify-content:center;gap:24px;border-bottom:1px solid var(--line);flex-shrink:0}
.round-tabs button{background:none;padding:12px 4px;border-bottom:2px solid transparent;color:var(--muted);font-size:13px;min-height:44px}
.round-tabs button[aria-pressed=true]{border-color:var(--ink);color:var(--ink)}
.blackjack-room.round-screen .private-hand{flex:1;width:100%;min-height:0;max-height:none;max-width:620px;margin:0 auto;padding:10px 0 12px}
.blackjack-room.round-screen .hand-status{margin:0 0 6px;flex-shrink:0}
.blackjack-room.round-screen .private-spacer{padding:0;min-height:0;flex:none}
.blackjack-room.round-screen .private-spacer .muted{font-size:11px}
.blackjack-room.round-screen .hand-content{flex:1;min-height:0;margin:0;padding:10px 0;justify-content:center;--card-size:min(160px,24dvh)}
.blackjack-room .blackjack-hands{flex-wrap:nowrap;gap:10px;margin:0;min-height:0}
.blackjack-room .bj-hand{flex:1;min-width:0;padding:4px 0;gap:6px}
.blackjack-room .bj-hand .own-cards{margin:0}
.blackjack-room .hand-total{font-size:24px;line-height:1.1}
.blackjack-room.round-screen .hand-content>.own-stack{font-size:20px;margin:10px 0 0!important}
.blackjack-room.round-screen .private-hand>.result-summary{flex:none;width:100%;margin:0 0 8px;padding:10px 0;background:none;border:0;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:8px 16px}
.blackjack-room .private-hand>.result-summary>strong{font-size:22px}
.blackjack-room .private-hand>.result-summary .result-amount{font-size:24px;margin:0}
.blackjack-room .private-hand>.result-summary .result-detail{display:none}
.blackjack-room.round-screen .action-dock{flex:none;width:100%;max-width:none;margin:0;padding:10px 0 0;border-radius:0;background:none}
.blackjack-room .action-dock .turn-label{font-size:13px;line-height:1.25;margin-bottom:8px}
.blackjack-room .action-dock .turn-caption{margin-top:4px;font-size:11px}
.blackjack-room .action-buttons{gap:8px}
.blackjack-room .action-buttons button{min-height:48px;padding:10px 14px}
.blackjack-room .lobby-start{margin:0;width:100%}
.blackjack-room .host-next{margin:0;justify-content:center}
.blackjack-room .host-next .large{min-height:50px;width:100%;max-width:440px;padding:12px 18px}
.blackjack-room .start-hint{font-size:12px;margin:8px 0 0}
.wager-lobby{flex:1;min-height:0;width:100%;max-width:600px;margin:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px 0;gap:12px}
.wager-lobby h2{font-size:clamp(28px,4vw,46px);margin:0;text-align:center}
.wager-progress{color:var(--muted);font-size:14px;margin:0}
.wager-choice{display:flex;gap:24px;align-items:center;margin:5px 0}
.wager-choice>strong{font-size:36px;font-weight:500;letter-spacing:-.05em}
.wager-choice>strong>span{font-size:14px;font-weight:400;letter-spacing:0;color:var(--muted)}
.wager-players{width:100%;max-height:50dvh;overflow-y:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:8px 0}
.wager-players>div{display:flex;align-items:center;gap:8px;min-width:0;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}
.wager-players .avatar{width:26px;height:26px;flex:none;font-size:11px}
.wager-players strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:500}
.wager-players>div>span:last-child{margin-left:auto;flex-shrink:0;font-size:11px;color:var(--muted)}
.wager-players>div>.bet-ready{color:#526448!important}
.wager-lobby>p.muted{font-size:13px;text-align:center;margin:0}
.blackjack-betting .bet-breakdown{padding-top:12px}
.blackjack-betting .bet-added{display:none}
.blackjack-betting .betting-amount{margin:24px 0 14px}
.blackjack-betting .bet-presets button{border-radius:50%;width:64px;height:64px;justify-self:center;padding:0;border:3px double #b7beaf;background:transparent;font-size:14px}
.blackjack-betting .bet-presets button[aria-pressed=true]{background:#263022;color:#fff;border-color:#8a987d}
@media(max-width:750px){
 .blackjack-room .blackjack-table{grid-template-rows:minmax(0,.6fr) minmax(0,1.7fr);gap:10px}
 .blackjack-seats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
 .blackjack-table[data-players="1"] .blackjack-seats{grid-template-columns:1fr}
 .blackjack-room .blackjack-table .seat{--card-size:min(80px,16cqh)}
 .blackjack-room .blackjack-table:is([data-players="5"],[data-players="6"]) .seat{--card-size:min(50px,9cqh)}
 .blackjack-room .blackjack-table:is([data-players="7"],[data-players="8"]) .seat{--card-size:min(40px,6cqh)}
 .blackjack-room .blackjack-table .board-cards .card{width:min(75px,16cqh,10cqw)}
 .blackjack-room .blackjack-table .seat-meta{padding:3px 4px;gap:5px}
 .blackjack-room .blackjack-table .seat .avatar{display:none}
 .blackjack-room .blackjack-table .seat-meta strong{max-width:110px;font-size:12px}
 .blackjack-room .blackjack-table .seat-meta>div>span{font-size:11px}
 .blackjack-room .blackjack-table .seat-cards{margin-top:3px;gap:6px}
 .blackjack-room .blackjack-table .seat-action{font-size:10px;min-height:12px}
 .blackjack-room .blackjack-table .public-total{font-size:12px}
 .blackjack-room .blackjack-table .dealer-zone{gap:5px}
 .blackjack-room.round-screen>.activity-line{display:none}
 .blackjack-room.round-screen>.result-summary{flex-direction:column;gap:3px;padding:7px 0}
 .blackjack-room.round-screen>.result-summary>strong{font-size:14px}
 .blackjack-room.round-screen>.result-summary>span{font-size:11px}
 .blackjack-room.round-screen>.display-footer{font-size:10px;min-height:38px}
 .wager-lobby{gap:8px;padding:16px 0}
 .wager-players{gap:0 14px;max-height:46dvh}
 .wager-players>div{flex-wrap:wrap;gap:5px;padding:10px 0}
 .wager-players>div>span:last-child{width:100%;padding-left:31px}
 .blackjack-betting{padding:0;align-items:center;background:#f7f7f3}
 .blackjack-betting .betting-modal{border:0;border-radius:0;box-shadow:none;width:100%;max-width:480px;max-height:100%}
 .blackjack-betting .betting-header{padding-top:20px}
 .blackjack-betting .betting-footer{padding-bottom:max(14px,env(safe-area-inset-bottom))}
}
@media(max-height:700px){
 .blackjack-room.round-screen>.room-header{padding-block:10px}
 .blackjack-room.round-screen .hand-content{--card-size:min(120px,21dvh);padding-block:5px}
 .blackjack-room.round-screen .private-spacer{display:none}
 .blackjack-room.round-screen .action-dock .turn-caption{display:none}
 .blackjack-room .private-hand>.result-summary>strong{font-size:19px}
 .blackjack-room .private-hand>.result-summary .result-amount{font-size:21px}
 .blackjack-betting .betting-amount{margin:12px 0 8px}
 .blackjack-betting .bet-presets{margin:12px 0}
 .blackjack-betting .bet-presets button{width:56px;height:56px}
 .blackjack-betting .bet-cancel{display:none}
}
@media(max-height:500px) and (min-width:600px){
 .blackjack-room.round-screen .room-header .muted{display:none}
 .blackjack-room.round-screen>.round-status{padding:5px 0}
 .blackjack-room .blackjack-table{grid-template-rows:minmax(0,.5fr) minmax(0,1fr);gap:6px}
 .blackjack-room .blackjack-table .seat{--card-size:min(44px,11cqh)}
 .blackjack-room .blackjack-table .seat .avatar{display:none}
 .blackjack-room .blackjack-table .seat-meta{padding:1px 4px}
 .blackjack-room .blackjack-table .seat-meta>div{flex-direction:row;align-items:center;gap:8px}
 .blackjack-room .blackjack-table .seat-cards{margin-top:2px}
 .blackjack-room .blackjack-table .seat-action{font-size:10px}
 .blackjack-room .blackjack-table .board-cards .card{width:min(44px,15cqh)}
 .blackjack-room.round-screen .private-hand{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr;gap:8px 24px;align-items:center;max-width:800px}
 .blackjack-room .private-hand .hand-status{grid-column:1/-1;margin:0}
 .blackjack-room .private-hand .hand-content{grid-column:1;grid-row:2/4;--card-size:90px}
 .blackjack-room .private-hand>.result-summary{grid-column:2;margin:0}
 .blackjack-room .private-hand .action-dock{grid-column:2}
 .wager-lobby{padding:6px 0;gap:6px;max-width:740px}
 .wager-lobby h2{font-size:26px}
 .wager-players{grid-template-columns:repeat(4,minmax(0,1fr));margin:0;gap:0 12px}
 .wager-players>div{padding:5px 0;flex-wrap:wrap}
 .wager-players .avatar{display:none}
 .wager-choice{margin:0}
 .wager-choice>strong{font-size:26px}
}
@media(max-width:750px){
 .blackjack-room .blackjack-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .seat-meta>div{flex-direction:row;align-items:center;gap:6px}
 .blackjack-room .blackjack-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .seat-meta strong{max-width:85px;font-size:11px}
 .blackjack-room .blackjack-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .seat-meta>div>span{font-size:10px}
 .blackjack-room .blackjack-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .public-bj-hand{gap:1px}
 .blackjack-room .blackjack-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .seat-action{margin-top:1px}
 .blackjack-room .blackjack-table:is([data-players="7"],[data-players="8"]){grid-template-rows:minmax(0,.4fr) minmax(0,1.6fr)}
 .blackjack-room.round-screen>.display-footer>span:nth-child(2){max-width:48%;text-align:center;font-size:10px}
}
/* Keep totals beside long hands when the table has multiple rows. */
 .blackjack-room .blackjack-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .public-bj-hand{flex-direction:row;justify-content:center;gap:4px}
 .blackjack-room .blackjack-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .hand-fan{flex:1}
 .blackjack-room .blackjack-table .seat-cards:has(.public-bj-hand:nth-child(2)) .public-bj-hand{flex-direction:column}
 .blackjack-room .blackjack-table .seat-cards:has(.public-bj-hand:nth-child(2)) .hand-fan{flex:none}
.blackjack-room .blackjack-hands:has(.bj-hand:nth-child(3)){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;--card-size:min(100px,7dvh)}
.blackjack-room .blackjack-hands:has(.bj-hand:nth-child(3)) .bj-hand{gap:4px;padding:2px 0}
.blackjack-room .blackjack-hands:has(.bj-hand:nth-child(3)) .hand-total{font-size:20px}
@media(max-height:500px) and (min-width:600px){
 .blackjack-room .blackjack-table{grid-template-columns:minmax(0,.8fr) minmax(0,3fr);grid-template-rows:minmax(0,1fr);gap:20px}
 .blackjack-room .blackjack-table .seat{--card-size:min(44px,13cqh)}
 .blackjack-room .blackjack-table .seat-meta strong{font-size:11px;max-width:90px}
 .blackjack-room .blackjack-table .seat-meta>div>span{font-size:10px}
 .blackjack-room .blackjack-table .public-total{font-size:12px}
}
.blackjack-room .blackjack-table .seat:has(.public-bj-hand:nth-child(3)){--card-size:clamp(10px,2.8cqh,32px)}
.blackjack-room .blackjack-table .seat-cards:has(.public-bj-hand:nth-child(3)){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 8px;max-width:280px}
.blackjack-room .blackjack-table .seat-cards:has(.public-bj-hand:nth-child(3)) .public-bj-hand{flex-direction:row;gap:3px}
.blackjack-room .blackjack-table .seat-cards:has(.public-bj-hand:nth-child(3)) .hand-fan{flex:1}
@media(max-width:750px){
 .wager-players>div{flex-wrap:nowrap;min-height:38px;padding:8px 0;gap:6px}
 .wager-players .avatar{display:none}
 .wager-players strong{flex:1;font-size:12px}
 .wager-players>div>span:last-child{width:auto;padding:0;font-size:10px}
}
.blackjack-room.round-complete .hand-status,.blackjack-room.round-complete .private-spacer{display:none}

/* Poker switches between a private hand and a table, never a stacked page. */
.poker-room.round-screen{height:100dvh;min-height:0;display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom)}
.poker-room.phones-mode{max-width:1440px}
.poker-room.round-screen>.room-header{flex:none;padding-block:clamp(10px,2dvh,20px)}
.poker-room .room-header>div:first-child{min-width:0;flex:1}
.poker-room .room-header h1{max-width:min(36vw,340px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.poker-room .room-tools{flex-shrink:0}
.poker-room .round-tabs{border:0;gap:6px;padding:8px 0 0}
.poker-room .round-tabs button{border:0;border-radius:8px;padding:9px 24px;min-height:40px}
.poker-room .round-tabs button[aria-pressed=true]{background:#e9ece4}
.tab-your-turn::after{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#6d875a;margin:0 0 2px 7px}
.poker-room.round-screen>.round-status{flex:none;gap:12px;padding:10px 0 2px;min-height:36px;font-size:12px;line-height:1.3}
.poker-room.round-screen>.round-status strong{max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.poker-room.round-screen>.activity-line{flex:none;min-height:20px;padding:2px 0;font-size:11px}
.poker-room.round-screen>.display-footer{flex:none;min-height:42px;padding:4px 0;margin:0;font-size:11px;gap:12px}
.poker-room .display-footer .text-button{min-height:36px;font-size:11px}
.poker-room .display-footer>span:nth-child(2){max-width:50%;text-align:center}
.poker-room.round-screen>.poker-table{flex:1;min-height:0;height:auto;max-height:none;max-width:1320px;margin:12px auto;container-type:size;display:grid;grid-template-rows:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);gap:10px;isolation:isolate}
.poker-table .table-outline{inset:12% 3%;border-radius:48%;border:6px solid #d5dccf;background:radial-gradient(ellipse at 45% 30%,#edf1e5,#e0e7d8 72%);box-shadow:inset 0 0 0 1px #b9c5ac,inset 0 8px 24px #50673b0c,0 4px 0 #c6cebf,0 12px 26px #2b3a1f0b;z-index:-1}
.poker-table .table-outline::after{content:'';position:absolute;inset:10px;border:1px solid #fff8;border-radius:inherit}
.poker-room .poker-table .table-centre{position:static;transform:none;align-self:center;justify-self:center;gap:clamp(8px,2cqh,18px);min-width:0;max-width:100%}
.poker-room .poker-table .board-cards{gap:clamp(4px,1cqw,12px);flex-wrap:nowrap}
.poker-room .poker-table .board-cards .card,.poker-room .poker-table .card-slot{width:min(110px,17cqh,13cqw);border-radius:7px}
.poker-room .poker-table .card-slot{border:1px solid #84957635;background:#f7f9f123;box-shadow:inset 0 1px 3px #40552b08}
.poker-room .poker-table .pot{gap:10px;align-items:center}
.poker-room .poker-table .pot span{font-size:12px;color:#66755b}
.poker-room .poker-table .pot strong{font-size:clamp(24px,5cqh,40px);color:#303d27;line-height:1;font-variant-numeric:tabular-nums}
.poker-seats{display:grid;grid-template-columns:repeat(var(--seat-columns),minmax(0,220px));justify-content:center;align-items:center;gap:12px 24px;min-height:0;padding:0 3%}
.poker-room .poker-table .seat{position:static;transform:none;min-width:0;max-width:none;width:100%;gap:0;align-self:center}
.poker-room .poker-table .seat-meta{max-width:100%;padding:5px 10px;gap:8px;border-radius:10px;background:#f7f7f5e6;box-shadow:0 2px 8px #32452306;border:1px solid #dce1d5}
.poker-room .poker-table .seat-meta>div{min-width:0;gap:2px}
.poker-room .poker-table .seat-meta strong{max-width:160px;font-size:clamp(12px,1.3cqw,17px)}
.poker-room .poker-table .seat-meta>div>span{font-size:clamp(11px,1.1cqw,14px);font-variant-numeric:tabular-nums}
.poker-room .poker-table .avatar{width:28px;height:28px;flex-shrink:0;font-size:12px}
.poker-room .poker-table .dealer-chip{width:18px;height:18px;font-size:10px;flex-shrink:0}
.poker-room .poker-table .seat.active .seat-meta{border-color:#748d60;box-shadow:0 0 0 3px #7e956319;background:#fff}
.poker-room .poker-table .seat.active .seat-meta::after{display:none}
.poker-room .poker-table .seat.winner .seat-meta{border-color:#748d60;background:#edf3e5}
.poker-room .poker-table .seat-cards{margin:6px 0 0;gap:4px;max-width:none;flex-wrap:nowrap;min-height:0}
.poker-room .poker-table .seat .mini{width:min(62px,10cqh,7cqw);border-radius:4px;box-shadow:0 3px 6px #1f2c1910}
.poker-room .poker-table .seat-action{font-size:clamp(10px,1cqw,13px);line-height:1.2;min-height:14px;margin:4px 0 0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.poker-room .poker-table .seat-action.has-bet::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;border:2px solid #8a997d;background:#f5f7f0;box-shadow:0 1px 0 #5d7250;margin-right:5px}
.poker-room .poker-table .seat.folded{opacity:.55}
.poker-room .poker-table .seat-status{font-size:10px;margin:2px 0 0}
.poker-room .poker-table .near-seats .seat-cards{order:-1;margin:0 0 6px}
.poker-room .table-controls{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding:10px 0;min-height:64px;font-size:13px}
.poker-room .table-controls>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.poker-room .table-controls>button{flex-shrink:0;min-height:44px;padding:10px 20px;font-size:13px}
.poker-room .table-controls .lobby-start{width:auto;flex-shrink:0}
.poker-room.round-screen .private-hand{flex:1;width:100%;min-height:0;max-height:none;max-width:620px;margin:0 auto;padding:12px 0}
.poker-room.round-screen .hand-status{flex:none;margin:0 0 4px;font-size:12px}
.poker-room.round-screen .private-spacer{flex:none;min-height:0;padding:0}
.poker-room.round-screen .private-spacer .muted{font-size:11px}
.poker-room.round-screen .hand-content{flex:1;min-height:0;margin:0;padding:14px 0;justify-content:center;container-type:size}
.poker-room.round-screen .own-cards{gap:12px;flex:none}
.poker-room.round-screen .own-cards .own{width:min(200px,35cqw,calc((100cqh - 126px)/1.48));border-radius:10px}
.poker-room.round-screen .peek-control{min-width:0;width:min(100%,290px);min-height:44px;font-size:13px;padding:10px 20px;margin:20px 0 0!important;flex:none;border-radius:10px}
.poker-room.round-screen .hand-content>.own-stack{font-size:20px;line-height:1.2;margin:14px 0 0!important;flex:none}
.poker-room.round-screen .action-dock{flex:none;width:100%;max-width:none;margin:0;padding:10px 0 0;border-top:1px solid var(--line);border-radius:0;background:none}
.poker-room .action-dock .turn-label{font-size:13px;line-height:1.3;margin:0 0 8px}
.poker-room .action-dock .turn-caption{font-size:11px;margin-top:4px}
.poker-room .action-buttons{gap:8px}
.poker-room .action-buttons button{min-height:48px;padding:10px 12px}
.poker-room .lobby-start{margin:0;width:100%}
.poker-room .host-next{margin:0;justify-content:center}
.poker-room .host-next .large{min-height:48px;width:100%;max-width:440px;padding:10px 18px;font-size:14px}
.poker-room .start-hint{font-size:11px;margin:6px 0 0}
.poker-room.round-screen .result-summary{flex:none;width:100%;max-width:none;margin:0;padding:10px 0;background:none;border:0;border-radius:0;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:4px 14px}
.poker-room.round-screen .result-summary>strong{font-size:20px;max-width:100%;overflow-wrap:anywhere}
.poker-room.round-screen .result-summary>span{width:auto;margin:0;line-height:1.35;font-size:12px}
.poker-room.round-screen .result-summary .result-amount{font-size:22px}
.poker-room.round-screen .result-summary .result-detail{width:100%;font-size:11px;max-height:2.7em;overflow-y:auto}
.poker-room.round-screen .result-summary .next-hand-note{display:none}
.poker-room.round-complete .hand-status,.poker-room.round-complete .private-spacer{display:none}
@media(max-width:750px){
 .poker-room.round-screen{padding-inline:14px}
 .poker-room .room-header h1{font-size:19px}
 .poker-room.round-screen>.round-status{gap:8px;font-size:11px}
 .poker-room.round-screen>.activity-line{display:none}
 .poker-room.round-screen>.poker-table{margin:10px auto;gap:6px;grid-template-rows:minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr)}
 .poker-table .table-outline{inset:7% 1%;border-width:4px;border-radius:44%}
 .poker-table .table-outline::after{inset:6px}
 .poker-seats{padding:0;gap:8px 12px;grid-template-columns:repeat(min(var(--seat-columns),2),minmax(0,1fr))}
 .poker-room .poker-table .seat-meta{padding:4px 7px;gap:5px}
 .poker-room .poker-table .seat-meta strong{max-width:100px;font-size:12px}
 .poker-room .poker-table .seat-meta>div>span{font-size:11px}
 .poker-room .poker-table .avatar{display:none}
 .poker-room .poker-table .seat .mini{width:min(46px,8cqh,9cqw)}
 .poker-room .poker-table .board-cards .card,.poker-room .poker-table .card-slot{border-radius:5px;width:min(74px,17cqh,15cqw)}
 .poker-room .poker-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]){grid-template-rows:minmax(0,1fr) minmax(0,.9fr) minmax(0,1fr)}
 .poker-room .poker-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .seat{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;gap:0 3px;align-content:center;text-align:left}
 .poker-room .poker-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .seat-meta{grid-column:2;padding:3px 4px;background:transparent;box-shadow:none;border-radius:6px;border-color:transparent}
 .poker-room .poker-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .seat.active .seat-meta{background:#fff;border-color:#748d60}
 .poker-room .poker-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .seat-meta strong{font-size:11px;max-width:100%}
 .poker-room .poker-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .seat-cards{grid-column:1;grid-row:1/3;order:0;margin:0;gap:0}
 .poker-room .poker-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .seat .mini{width:26px}
 .poker-room .poker-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .seat .mini+.mini{margin-left:-10px}
 .poker-room .poker-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .seat-action{grid-column:2;margin:2px 0 0 4px;font-size:10px}
 .poker-room .poker-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .seat-status{grid-column:1/-1}
 .poker-room .table-controls{font-size:11px;gap:8px;padding:8px 0;min-height:60px}
 .poker-room .table-controls>button{padding:10px 14px;font-size:12px}
 .poker-room.round-screen>.display-footer>span:nth-child(2){display:none}
 .poker-room.round-screen .result-summary>strong{font-size:16px}
 .poker-room.round-screen .result-summary .result-amount{font-size:18px}
}
@media(max-height:700px){
 .poker-room.round-screen>.room-header{padding-block:9px}
 .poker-room.round-screen .private-spacer{display:none}
 .poker-room .action-dock .turn-caption{display:none}
 .poker-room.round-screen .hand-content{padding:8px 0}
 .poker-room.round-screen .own-cards .own{width:min(170px,35cqw,calc((100cqh - 102px)/1.48))}
 .poker-room.round-screen .peek-control{margin-top:12px!important}
 .poker-room.round-screen .hand-content>.own-stack{margin-top:10px!important;font-size:18px}
 .poker-room.round-screen .result-summary{padding:6px 0;gap:3px 10px}
}
@media(max-height:500px) and (min-width:600px){
 .poker-room.round-screen .room-header .muted{display:none}
 .poker-room.round-screen>.room-header{padding-block:6px}
 .poker-room .room-header h1{font-size:19px;margin:0}
 .poker-room .round-tabs{padding:2px 0}
 .poker-room .round-tabs button{min-height:34px;padding:6px 20px}
 .poker-room.round-screen>.round-status{min-height:26px;padding:2px 0}
 .poker-room.round-screen>.activity-line{display:none}
 .poker-room.round-screen>.poker-table{margin:4px auto;gap:4px;grid-template-rows:minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr)}
 .poker-seats{grid-template-columns:repeat(var(--seat-columns),minmax(0,200px));gap:8px}
 .poker-room .poker-table .seat{display:grid;grid-template-columns:36px minmax(0,1fr);grid-template-rows:auto auto;gap:0 3px;text-align:left;align-content:center}
 .poker-room .poker-table .seat-meta{grid-column:2;padding:1px 4px;gap:4px}
 .poker-room .poker-table .seat-meta>div{flex-direction:row;gap:5px;align-items:center}
 .poker-room .poker-table .seat-meta strong{font-size:11px;max-width:80px}
 .poker-room .poker-table .seat-meta>div>span{font-size:10px}
 .poker-room .poker-table .avatar{display:none}
 .poker-room .poker-table .seat-cards,.poker-room .poker-table .near-seats .seat-cards{grid-column:1;grid-row:1/3;order:0;margin:0;gap:0}
 .poker-room .poker-table .seat .mini{width:min(22px,13cqh)}
 .poker-room .poker-table .seat .mini+.mini{margin-left:-8px}
 .poker-room .poker-table .seat-action{grid-column:2;margin:2px 0 0 4px;font-size:10px;min-height:12px}
 .poker-room .poker-table .seat-status{grid-column:1/-1}
 .poker-room .poker-table .table-centre{flex-direction:row;gap:14px}
 .poker-room .poker-table .board-cards .card,.poker-room .poker-table .card-slot{width:min(56px,27cqh,10cqw)}
 .poker-room .poker-table .pot{flex-direction:column;gap:3px}
 .poker-room .poker-table .pot strong{font-size:24px}
 .poker-room .table-controls{min-height:48px;padding:4px 0}
 .poker-room .table-controls>button{min-height:38px}
 .poker-room.round-screen .private-hand{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr;gap:8px 24px;align-items:center;max-width:900px;padding:8px 0}
 .poker-room .private-hand .hand-status{grid-column:1/-1;margin:0}
 .poker-room.round-screen .hand-content{grid-column:1;grid-row:2/4;align-self:stretch;padding:0}
 .poker-room.round-screen .own-cards .own{width:min(100px,32cqw,calc((100cqh - 76px)/1.48))}
 .poker-room.round-screen .peek-control{margin-top:8px!important;min-height:36px;padding:8px 16px}
 .poker-room.round-screen .hand-content>.own-stack{font-size:14px;margin-top:8px!important}
 .poker-room .private-hand>.result-summary,.poker-room .private-hand>.action-dock{grid-column:2}
 .poker-room.round-screen .result-summary .result-detail{display:none}
}
@media(max-height:500px) and (min-width:600px){
 .blackjack-room.round-complete .hand-content,.poker-room.round-complete .hand-content{grid-row:1/3}
 .blackjack-room.round-screen .hand-content{--card-size:min(90px,21dvh);padding:0}
}
@media(max-width:750px) and (max-height:700px){
 .poker-room .poker-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]){grid-template-rows:minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr)}
 .poker-room .poker-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .poker-seats{gap:5px 8px}
 .poker-room .poker-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .seat-meta{padding:2px;gap:2px}
 .poker-room .poker-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .seat-meta>div{flex-direction:row;align-items:center;gap:4px}
 .poker-room .poker-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .seat-meta strong{font-size:10px}
 .poker-room .poker-table:is([data-players="5"],[data-players="6"],[data-players="7"],[data-players="8"]) .seat-meta>div>span{font-size:10px;flex-shrink:0}
 .poker-room.round-screen .result-summary>strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
}
