:root{--vg-board:#1f56c4;--vg-board-edge:#163f95;--vg-red:#e63946;--vg-red-hi:#ff7b84;--vg-red-lo:#a91d2a;--vg-yellow:#ffc93c;--vg-yellow-hi:#ffe79a;--vg-yellow-lo:#cf9200}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--vg-board:#2453b0;--vg-board-edge:#183a80}}:root[data-theme=dark]{--vg-board:#2453b0;--vg-board-edge:#183a80}.disc{border-radius:50%;flex:none;place-items:center;width:30px;height:30px;display:inline-grid;box-shadow:inset 0 -2px 3px #00000040,0 1px 2px #00000040}.disc.red{background:radial-gradient(circle at 35% 30%, var(--vg-red-hi), var(--vg-red) 55%, var(--vg-red-lo))}.disc.yellow{background:radial-gradient(circle at 35% 30%, var(--vg-yellow-hi), var(--vg-yellow) 55%, var(--vg-yellow-lo))}.disc-symbol{width:62%;height:62%}.red>.disc-symbol,.red .disc-symbol{stroke:#5a000a8c;fill:#5a000a8c}.yellow>.disc-symbol,.yellow .disc-symbol{stroke:#6e460099;fill:#6e460099}.discs-icon{display:block}.player-list .seat .disc{vertical-align:middle}.vg-players{grid-template-columns:1fr 1fr;gap:8px;padding:0 12px 6px;display:grid}.vg-player{background:var(--surface);border:2px solid var(--line);border-radius:14px;align-items:center;gap:8px;min-width:0;padding:8px 10px;transition:border-color .2s,box-shadow .2s,opacity .2s;display:flex}.vg-player.right{text-align:right;flex-direction:row-reverse}.vg-player.active{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.vg-player.winner{border-color:var(--gold);box-shadow:0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent)}.vg-pname{flex-direction:column;min-width:0;display:flex}.vg-pname strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.vg-pname small{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:.78rem;overflow:hidden}.vg-player.active .vg-pname small{color:var(--accent);font-weight:700}.vg-main{flex:1;place-items:end center;min-height:0;padding:0 10px 6px;display:grid;container-type:size}.vg-board{width:min(100cqw, calc(100cqh * var(--cols) / var(--rows1)));touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;position:relative}.vg-discs{position:absolute;inset:0}.vg-disc{pointer-events:none;place-items:center;display:grid;position:absolute}.vg-disc-face{border-radius:50%;place-items:center;width:84%;height:84%;transition:opacity .3s;display:grid;box-shadow:inset 0 -3px 5px #00000047,inset 0 2px 3px #ffffff40}.vg-disc.red .vg-disc-face{background:radial-gradient(circle at 35% 30%, var(--vg-red-hi), var(--vg-red) 55%, var(--vg-red-lo))}.vg-disc.yellow .vg-disc-face{background:radial-gradient(circle at 35% 30%, var(--vg-yellow-hi), var(--vg-yellow) 55%, var(--vg-yellow-lo))}.vg-disc .disc-symbol{width:58%;height:58%}.vg-disc.preview .vg-disc-face{filter:drop-shadow(0 4px 6px #0000004d)}.vg-disc.ghost .vg-disc-face{opacity:.38}.vg-disc.hint .vg-disc-face{box-shadow:none;border:4px dashed var(--accent);animation:.8s ease-in-out infinite alternate vg-hint;background:0 0!important}@keyframes vg-hint{to{transform:scale(.85)}}.vg-disc.last .vg-disc-face{box-shadow:inset 0 -3px 5px #00000047,inset 0 0 0 3px #ffffffe6}.vg-disc.poppable .vg-disc-face{outline-offset:-7px;outline:3px dashed #ffffffe6}.vg-disc.pop-target .vg-disc-face{box-shadow:0 0 0 4px #fff, 0 0 0 7px var(--accent)}.vg-pop-arrow{color:var(--accent);pointer-events:none;place-items:center;font-size:2rem;font-weight:800;animation:.6s ease-in-out infinite alternate vg-hint;display:grid;position:absolute}.vg-disc.falling{animation:.35s linear both vg-fall}@keyframes vg-fall{0%{transform:translateY(calc(var(--fall) * -100%));animation-timing-function:cubic-bezier(.45,0,1,1)}72%{animation-timing-function:cubic-bezier(0,0,.4,1);transform:translateY(0)}85%{animation-timing-function:cubic-bezier(.6,0,1,1);transform:translateY(-11%)}to{transform:translateY(0)}}.vg-disc.sliding{animation:.26s cubic-bezier(.45,0,1,1) both vg-slide}@keyframes vg-slide{0%{transform:translateY(-100%)}}.vg-disc.popped{animation:.26s ease-in both vg-out}@keyframes vg-out{to{opacity:0;transform:translateY(90%)}}.vg-board.has-win .vg-disc:not(.win) .vg-disc-face{opacity:.32}.vg-disc.win .vg-disc-face{animation:.75s ease-in-out .4s infinite alternate vg-win}@keyframes vg-win{0%{transform:scale(1)}to{transform:scale(.88);box-shadow:0 0 0 4px #fff,0 0 18px 6px #ffffffb3}}.vg-frame{pointer-events:none;filter:drop-shadow(0 4px 10px #00000040);width:100%;position:absolute;left:0;overflow:visible}.vg-frame-fill{fill:var(--vg-board)}.vg-hole-rim{fill:none;stroke:var(--vg-board-edge);stroke-width:5px}.vg-col-hl{fill:#ffffff1f}.vg-col-hl.blocked{fill:#00000040}.vg-cols{grid-template-columns:repeat(var(--cols), 1fr);display:grid;position:absolute;inset:0}.vg-col{cursor:pointer;background:0 0;border:0;border-radius:10px;margin:0;padding:0}.vg-col[aria-disabled=true]{cursor:default}.vg-col:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}.vg-board.active .vg-col.full{background:linear-gradient(to bottom, transparent calc(100% / var(--rows1)), #0000002e 0)}.vg-dock{gap:8px}.vg-dock.over{max-height:58dvh;overflow-y:auto}.vg-status{text-align:center;justify-content:center;align-items:center;gap:10px;min-height:28px;font-weight:700;display:flex}.vg-actions{grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:6px;display:grid}.vg-actions .btn{white-space:nowrap;padding:6px 2px;font-size:.85rem}.vg-mode{margin:0}.vg-banner{background:var(--accent-soft);text-align:center;border-radius:14px;flex-direction:column;gap:8px;padding:10px 12px;font-weight:600;display:flex}.vg-banner.muted{background:var(--surface-2);color:var(--muted)}.vg-timer{font-variant-numeric:tabular-nums;background:var(--surface-2);border-radius:999px;padding:2px 10px;font-size:.9rem}.vg-timer.low{background:var(--danger);color:#fff}.vg-result{text-align:center;flex-direction:column;gap:6px;animation:.3s ease-out pop;display:flex}.vg-result-title{font-size:1.6rem;font-weight:800;line-height:1.15}.vg-score{font-size:1.05rem}.vg-score strong{font-variant-numeric:tabular-nums;font-size:1.3rem}.vg-next{color:var(--accent);font-weight:700}.vg-result-actions{flex-direction:column;gap:8px;margin-top:4px;display:flex}.vg-tally{flex-wrap:wrap;justify-content:center;gap:6px;display:flex}.vg-tally span{background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:4px 10px;font-size:.9rem}.vg-tally span.lead{border-color:var(--gold);font-weight:700}.vg-sizes button{flex-direction:column;justify-content:center;align-items:center;padding:6px 4px;line-height:1.15;display:flex}.vg-sizes button small{opacity:.8;font-size:.7rem}.vg-known{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.segmented button:disabled{opacity:.4;cursor:default}@media (orientation:landscape) and (height<=600px){.screen.vier:has(>.vg-main){grid-template:"top top""board players""board dock"minmax(0,1fr)/minmax(0,1fr) minmax(250px,36%);max-width:none;display:grid}.screen.vier>.topbar{grid-area:top;min-height:44px}.screen.vier>.vg-players{grid-area:players;grid-template-columns:1fr;padding:0 12px 0 0}.screen.vier>.vg-main{grid-area:board}.screen.vier>.vg-dock{border-top:0;grid-area:dock;max-height:none;padding-left:0;overflow-y:auto}.screen.vier>.vg-dock .toast{top:0;bottom:auto}}.vg-table{flex:1;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:24px;min-height:0;padding:0 20px 20px;display:grid}.vg-table-board{place-items:center;min-height:0;display:grid;container-type:size}.vg-player.big{padding:14px 16px;font-size:1.25em}.vg-player.big .disc{width:2.2em;height:2.2em}.table-side .vg-player.right{text-align:left;flex-direction:row}@media (orientation:portrait),(width<=760px){.vg-table{grid-template-rows:60vh auto;grid-template-columns:1fr}}@media (prefers-reduced-motion:reduce){.vg-disc.falling,.vg-disc.sliding,.vg-disc.popped,.vg-disc.win .vg-disc-face,.vg-disc.hint .vg-disc-face,.vg-pop-arrow,.vg-result{animation-duration:1ms;animation-iteration-count:1}}:root{--bg:#f3f1ea;--surface:#fff;--surface-2:#ece9df;--text:#17201b;--muted:#5f6b64;--line:#d9d5c8;--accent:#166534;--accent-text:#fff;--accent-soft:#dcefe2;--danger:#b42318;--hint:#8a948e;--die:#fffdf7;--pip:#17201b;--held:#f59e0b;--gold:#b7791f;--shadow:0 1px 2px #00000014, 0 4px 14px #0000000f;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#0f1a14;--surface:#17241c;--surface-2:#1f2f25;--text:#edf3ee;--muted:#a3b2a8;--line:#2d4033;--accent:#34c26a;--accent-text:#06210f;--accent-soft:#1d3d29;--danger:#ff6b5e;--hint:#7f9286;--die:#f4f1e8;--pip:#121a15;--held:#fbbf24;--gold:#f6c453;--shadow:0 1px 2px #0006;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--bg:#0f1a14;--surface:#17241c;--surface-2:#1f2f25;--text:#edf3ee;--muted:#a3b2a8;--line:#2d4033;--accent:#34c26a;--accent-text:#06210f;--accent-soft:#1d3d29;--danger:#ff6b5e;--hint:#7f9286;--die:#f4f1e8;--pip:#121a15;--held:#fbbf24;--gold:#f6c453;--shadow:0 1px 2px #0006;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent;overscroll-behavior:none;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.35}button,input{font:inherit;color:inherit}h1,h2,p{margin:0}.screen{max-width:560px;height:100dvh;padding:env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);flex-direction:column;margin:0 auto;display:flex}.topbar{grid-template-columns:48px 1fr 48px;align-items:center;min-height:56px;padding:4px 8px;display:grid}.topbar-title{text-align:center;text-overflow:ellipsis;white-space:nowrap;font-size:1.15rem;font-weight:700;overflow:hidden}.topbar-spacer{width:44px}.icon-btn{cursor:pointer;width:44px;height:44px;color:inherit;background:0 0;border:0;border-radius:12px;place-items:center;display:inline-grid}.icon-btn:active{background:var(--surface-2)}.icon-btn.sm{width:40px;height:44px;font-size:1.05rem}.icon-btn:disabled{opacity:.3}.btn{border:1px solid var(--line);background:var(--surface);min-height:48px;box-shadow:var(--shadow);cursor:pointer;text-align:center;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:10px 16px;font-weight:600;transition:transform 80ms,background .15s;display:inline-flex}.btn:active:not(:disabled){transform:scale(.98)}.btn:disabled{opacity:.45;cursor:default}.btn small{color:var(--muted);font-size:.8rem;font-weight:400}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.btn.primary small{color:inherit;opacity:.85}.btn.danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn.ghost{box-shadow:none;color:var(--muted);background:0 0;border-style:dashed}.btn.block{width:100%}.btn.big{min-height:56px;font-size:1.1rem}.btn.sm{min-height:44px;padding:6px 12px;font-size:.9rem}.btn.huge{flex-direction:column;width:100%;min-height:72px;font-size:1.25rem}.segmented{border:0;flex-wrap:wrap;gap:6px;margin:0 0 16px;padding:0;display:flex}.segmented legend{width:100%;margin-bottom:8px;font-weight:600}.segmented button{border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:12px;flex:1;min-height:44px}.segmented button[aria-pressed=true]{background:var(--accent);color:var(--accent-text);border-color:var(--accent);font-weight:600}.hub-main{flex-direction:column;flex:1;align-items:center;gap:18px;padding:24px 16px 32px;display:flex;overflow-y:auto}.hub-hero{gap:12px;margin-top:4vh;display:flex}.hub-hero .die-svg{filter:drop-shadow(0 4px 8px #0000002e);width:64px;height:64px}.hub-hero .die-svg:first-child{transform:rotate(-10deg)}.hub-hero .die-svg:nth-child(3){transform:rotate(8deg)}.hub-sub{color:var(--muted);text-align:center}.hub .btn.huge{letter-spacing:.12em;flex-direction:row;gap:10px;margin-top:8px;font-size:1.4rem}.game-list{gap:10px;width:100%;animation:.2s ease-out drop;display:grid}.game-list[hidden]{display:none}@keyframes drop{0%{opacity:0;transform:translateY(-8px)}}.game-card{border:1px solid var(--line);background:var(--surface);width:100%;min-height:72px;box-shadow:var(--shadow);text-align:left;cursor:pointer;border-radius:16px;align-items:center;gap:14px;padding:12px 16px;display:flex}.game-card:active{transform:scale(.99)}.game-card.muted{opacity:.55;box-shadow:none;cursor:default;border-style:dashed}.game-card-icon .die-svg{width:44px;height:44px}.game-card-text{flex-direction:column;display:flex}.game-card-text strong{font-size:1.1rem}.game-card-text small{color:var(--muted)}.menu{flex-direction:column;flex:1;gap:12px;padding:16px;display:flex;overflow-y:auto}.setup{flex-direction:column;flex:1;gap:20px;padding:8px 16px 0;display:flex;overflow-y:auto}.setup h2{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px;font-size:1rem}.player-list{gap:8px;margin:0 0 10px;padding:0;list-style:none;display:grid}.player-list li{align-items:center;gap:4px;display:flex}.seat{text-align:center;width:28px;color:var(--muted);font-weight:700}.player-list input{border:1px solid var(--line);background:var(--surface);border-radius:12px;flex:1;min-width:0;min-height:48px;padding:0 12px}.player-list input:focus{outline:2px solid var(--accent);outline-offset:1px}.rule-list{gap:8px;display:grid}.rule{border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:14px;align-items:flex-start;gap:12px;min-height:48px;padding:12px 14px;display:flex}.rule.on{border-color:var(--accent);background:var(--accent-soft)}.rule input{accent-color:var(--accent);flex:none;width:20px;height:20px;margin-top:3px}.rule span{flex-direction:column;gap:2px;display:flex}.rule small{color:var(--muted)}.dock{padding:12px 0 calc(12px + env(safe-area-inset-bottom));background:linear-gradient(to bottom, transparent, var(--bg) 18px);margin-top:auto;position:sticky;bottom:0}.handoff{padding:24px 16px calc(24px + env(safe-area-inset-bottom));text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:14px;display:flex}.handoff-round{color:var(--muted)}.handoff-label{font-size:1.2rem}.handoff-name{word-break:break-word;margin-bottom:20px;font-size:2.6rem;font-weight:800}.status-row{color:var(--muted);justify-content:space-between;align-items:center;gap:8px;padding:0 16px 8px;font-size:.9rem;display:flex}.tabs{background:var(--surface-2);border-radius:12px;padding:3px;display:flex}.tabs button{cursor:pointer;min-width:76px;min-height:38px;color:var(--muted);background:0 0;border:0;border-radius:9px;font-weight:600}.tabs button[aria-selected=true]{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.play-main{-webkit-overflow-scrolling:touch;flex:1;padding:0 12px 8px;overflow-y:auto}.own-sheet{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}.rows{margin:0;padding:0;list-style:none}.row{border:0;border-bottom:1px solid var(--line);text-align:left;background:0 0;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:48px;padding:6px 14px;display:flex}.row:disabled{cursor:default;opacity:1}.row.option{cursor:pointer}.row.option:active{background:var(--surface-2)}.row.selected{background:var(--accent-soft);box-shadow:inset 4px 0 0 var(--accent)}.lbl{flex-direction:column;font-weight:600;display:flex}.lbl small{color:var(--muted);font-size:.75rem;font-weight:400}.row.filled .lbl{color:var(--muted)}.val{text-align:right;font-variant-numeric:tabular-nums;min-width:3ch;font-size:1.15rem;font-weight:700}.val.hint{color:var(--hint);font-weight:500}.val.strike{font-size:.85rem;font-style:italic}.row.selected .val.hint{color:var(--accent);font-weight:700}.subtotal,.grand-total{background:var(--surface-2);border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums;justify-content:space-between;align-items:center;padding:8px 14px;font-size:.95rem;display:flex}.subtotal small{color:var(--muted);margin-left:6px}.subtotal.bonus.reached{color:var(--accent);font-weight:700}.grand-total{border-bottom:0;font-size:1.2rem;font-weight:800}.all-sheets{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow-x:auto}.all-sheets table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%}.all-sheets th,.all-sheets td{border-bottom:1px solid var(--line);text-align:center;white-space:nowrap;padding:7px 8px}.all-sheets thead th{background:var(--surface);text-overflow:ellipsis;max-width:7em;font-size:.85rem;position:sticky;top:0;overflow:hidden}.all-sheets tbody th{text-align:left;color:var(--muted);font-size:.85rem;font-weight:500}.all-sheets .cur{background:var(--accent-soft)}.all-sheets .sum td,.all-sheets .sum th{background:var(--surface-2)}.all-sheets .total td,.all-sheets .total th{color:var(--text);border-bottom:0;font-size:1.05rem;font-weight:800}.all-sheets small{color:var(--muted)}.play-dock{padding:8px 12px calc(12px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line);flex-direction:column;gap:10px;display:flex;position:relative}.confirm-row{grid-template-columns:1fr 2fr;gap:8px;display:grid}.confirm-row .btn{min-height:56px}.results-dock .confirm-row{grid-template-columns:1fr 1fr}.toast{background:var(--text);color:var(--bg);text-align:center;border-radius:12px;margin-bottom:8px;padding:10px 14px;font-weight:600;position:absolute;bottom:100%;left:12px;right:12px}.joker-banner{text-align:center;color:var(--gold);font-size:1.1rem;font-weight:800;animation:.3s ease-out pop}@keyframes pop{0%{opacity:0;transform:scale(.6)}}.dice-tray{grid-template-columns:repeat(5,1fr);gap:8px;display:grid}.die{cursor:pointer;background:0 0;border:0;flex-direction:column;align-items:center;gap:2px;padding:0;transition:transform .15s;display:flex}.die:disabled{cursor:default}.die-svg{aspect-ratio:1;width:100%;max-width:64px;display:block}.die-face{fill:var(--die);stroke:#00000026;stroke-width:2px}.die-pip{fill:var(--pip)}.die-q{fill:var(--hint);font-family:system-ui,sans-serif;font-size:44px;font-weight:700}.die .die-svg{filter:drop-shadow(0 3px 4px #0003)}.die.held{transform:translateY(-6px)}.die.held .die-face{stroke:var(--held);stroke-width:7px}.die-label{color:var(--held);text-transform:uppercase;letter-spacing:.05em;font-size:.7rem;font-weight:700}.die.rolling .die-svg{animation:.55s ease-out tumble}@keyframes tumble{0%{transform:rotate(0)translateY(0)}30%{transform:rotate(-25deg)translateY(-10px)}60%{transform:rotate(18deg)translateY(-4px)}to{transform:rotate(0)translateY(0)}}@media (prefers-reduced-motion:reduce){.die.rolling .die-svg,.game-list,.joker-banner{animation:none}}.results{flex-direction:column;flex:1;gap:14px;padding:8px 12px 0;display:flex;overflow-y:auto}.results-title{text-align:center;padding:12px 0 4px;font-size:1.8rem;font-weight:800}.ranking{gap:6px;margin:0;padding:0;list-style:none;display:grid}.ranking li{background:var(--surface);border:1px solid var(--line);border-radius:14px;grid-template-columns:44px 1fr auto;align-items:center;min-height:52px;padding:0 16px;font-size:1.1rem;display:grid}.ranking li.winner{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold);font-weight:700}.ranking .rank{font-size:1.2rem}.ranking .pts{font-variant-numeric:tabular-nums;font-weight:800}.results-dock{flex-direction:column;gap:8px;display:flex}.overlay{z-index:10;background:#00000073;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet-panel{background:var(--bg);width:100%;max-width:560px;padding:20px 16px calc(16px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;animation:.2s ease-out up}.sheet-panel h2{margin-bottom:16px}@keyframes up{0%{opacity:0;transform:translateY(40px)}}.muted-text{color:var(--muted);font-size:.9rem}.menu-heading{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin:10px 4px 0;font-size:.85rem}.waiting{text-align:center;min-height:56px;color:var(--muted);place-items:center;padding:0 8px;font-weight:600;display:grid}.chip{border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:999px;min-height:38px;padding:0 12px;font-size:.85rem;font-weight:600}.conn-banner{background:var(--held);color:#1a1200;text-align:center;border-radius:12px;margin:0 12px 8px;padding:8px 12px;font-size:.9rem;font-weight:700}.play-dock .conn-banner{margin:0}.toast-inline{background:var(--text);color:var(--bg);text-align:center;border-radius:12px;margin-bottom:8px;padding:10px 14px;font-weight:600}.room-card{background:var(--surface);border:1px solid var(--line);text-align:center;border-radius:18px;flex-direction:column;align-items:center;gap:10px;padding:16px;display:flex}.room-code{letter-spacing:.25em;font-variant-numeric:tabular-nums;padding-left:.25em;font-size:3rem;font-weight:800;line-height:1}.room-code.small{margin-bottom:8px;font-size:1.8rem}.qr{background:#fff;border-radius:10px;display:block}.dot{background:var(--line);border-radius:50%;flex:none;width:12px;height:12px;margin:0 8px}.dot.on{background:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.room-players li{background:var(--surface);border:1px solid var(--line);border-radius:12px;min-height:48px;padding-right:4px}.pname{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:600;overflow:hidden}.pname small{color:var(--muted);font-weight:400}.add-player{gap:8px;display:flex}.add-player input{border:1px solid var(--line);background:var(--surface);border-radius:12px;flex:1;min-width:0;min-height:48px;padding:0 12px}.add-player input:focus,.code-input:focus{outline:2px solid var(--accent);outline-offset:1px}.join-form{text-align:center;flex-direction:column;gap:14px;padding-top:6vh;display:flex}.code-input{text-align:center;letter-spacing:.3em;text-transform:uppercase;border:2px solid var(--line);background:var(--surface);border-radius:16px;width:100%;min-height:80px;font-size:2.6rem;font-weight:800}.room-panel{flex-direction:column;gap:14px;max-height:85dvh;display:flex;overflow-y:auto}.room-panel-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.panel-players{gap:8px;margin:0;padding:0;list-style:none;display:grid}.panel-players li{border:1px solid var(--line);background:var(--surface);border-radius:12px;flex-wrap:wrap;align-items:center;gap:6px;padding:8px;display:flex}.panel-players li.removed{opacity:.55}.panel-actions{flex-wrap:wrap;gap:6px;width:100%;padding-left:28px;display:flex}.panel-actions:empty{display:none}.status-row{gap:6px;padding:0 12px 8px}.status-row>span{white-space:nowrap}.tabs{flex:0 auto;min-width:0}.tabs button{white-space:nowrap;min-width:0;padding:0 10px;font-size:.85rem}.chip{white-space:nowrap;flex:none}.screen.table-screen{max-width:none;font-size:clamp(1rem,1.5vw,1.6rem)}.table-head{grid-template-columns:48px 1fr auto;align-items:center;gap:12px;padding:8px 16px;display:grid}.table-title{font-size:1.2em;font-weight:800}.table-round{color:var(--muted);align-items:center;gap:10px;font-weight:600;display:flex}.conn-pill{background:var(--held);color:#1a1200;border-radius:999px;padding:2px 10px;font-size:.8em}.table-center{flex:1;place-items:center;display:grid}.table-big{word-break:break-word;font-size:2.6em;font-weight:800;line-height:1.1}.table-label{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:.8em}.table-h{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px;font-size:1em}.table-grid{flex:1;grid-template-columns:minmax(280px,2fr) 3fr;gap:20px;min-height:0;padding:0 16px 16px;display:grid}.table-side{flex-direction:column;gap:14px;min-height:0;display:flex;overflow-y:auto}.table-sheets{min-height:0;overflow:auto}.table-sheets .all-sheets{height:100%}.table-sheets .all-sheets table{font-size:1.05em}.table-sheets .all-sheets th,.table-sheets .all-sheets td{padding:.45em .6em}.table-dice .dice-tray{gap:3%}.table-dice .die-svg{max-width:140px}.table-info{color:var(--muted);font-size:1.2em;font-weight:600}.table-last{color:var(--muted)}.table-join{align-items:center;gap:16px;margin-top:auto;display:flex}.table-join .room-code{font-size:2.4em}.table-lobby{flex:1;grid-template-columns:auto 1fr;align-items:center;gap:40px;padding:16px 40px;display:grid}.table-lobby .table-join{text-align:center;flex-direction:column;margin:0}.table-players{flex-wrap:wrap;gap:10px;margin:0 0 16px;padding:0;list-style:none;display:flex}.table-players li{background:var(--surface);border:1px solid var(--line);border-radius:999px;align-items:center;padding:10px 18px 10px 6px;font-size:1.2em;font-weight:700;display:flex}.table-screen .ranking li{min-height:2.6em;font-size:1.3em}@media (orientation:portrait),(width<=760px){.table-grid,.table-lobby{grid-template-columns:1fr;padding:0 12px 12px}.table-screen{height:auto;min-height:100dvh;overflow-y:auto}}.host-line{margin-top:6px}.bot-row input{background:var(--accent-soft)}.level-chip{min-width:64px;min-height:44px}.confirm-row.even{grid-template-columns:1fr 1fr}.bot-banner{text-align:center;background:var(--accent-soft);border-radius:12px;padding:8px 12px;font-weight:600}.player-list{grid-template-columns:minmax(0,1fr)}.player-list li{gap:2px;min-width:0}.player-list input{width:0}.player-list .icon-btn.sm{flex:none;width:36px}.seat{flex:none}.room-code{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;border-radius:12px;transition:color .3s}.room-code.tuned{color:var(--accent)}.room-code.holding{color:var(--held);transition:color 3s linear}.room-code.flash-on{animation:.7s ease-out code-flash-on}.room-code.flash-off{animation:.7s ease-out code-flash-off}@keyframes code-flash-on{0%,40%{background:var(--accent);color:var(--accent-text)}to{background:0 0}}@keyframes code-flash-off{0%,40%{background:var(--line);color:var(--muted)}to{background:0 0}}
