:root{--bg-color: #020617;--bg-alt: #050816;--surface-color: #0b1220;--surface-alt: #111827;--brand-color: #b43215;--highlight-color: #e05833;--accent: #e05833;--gray: #6b7280;--text-color: #f9fafb;--muted-text: #9ca3af;--danger: #f87171;--radius: 8px}*{box-sizing:border-box;margin:0;padding:0}html,body{min-height:100%}body{font-family:system-ui,sans-serif;background:#05070d;color:var(--text-color);display:flex;justify-content:center;align-items:flex-start;padding:16px;min-height:100vh}.app{width:100%;max-width:600px;padding:16px 0}body[data-view=play] .app,body[data-view=finished] .app,body[data-view=lobby] .app{max-width:1320px}body[data-view=lobby] .app{max-width:1000px}.lobby-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:12px;align-items:start}.lobby-main{display:flex;flex-direction:column;gap:12px;min-width:0}.lobby-actions{display:flex;flex-wrap:wrap;gap:8px}.lobby-actions button{flex:1;min-width:120px}#lobby-rolloff ul{list-style:none;padding:0;margin:8px 0}#lobby-rolloff li{padding:4px 0;border-bottom:1px solid #1f2937;font-size:.9rem}#lobby-rolloff h4{font-size:.85rem}section{width:100%;background:var(--surface-color);border-radius:var(--radius);padding:20px 18px;box-shadow:0 18px 40px #0009;display:flex;flex-direction:column;gap:12px}body[data-view=play] section#play,body[data-view=finished] section#finished{background:transparent;box-shadow:none;padding:0}section[hidden],.hidden{display:none!important}.play-grid{display:grid;grid-template-columns:250px minmax(0,1fr) 290px;gap:12px;align-items:start}.col-left,.col-center,.col-right{display:flex;flex-direction:column;gap:12px;min-width:0}.room-meta{font-size:.8rem;color:var(--text-color);background:var(--surface-alt);border-radius:var(--radius);padding:6px 8px;margin-bottom:8px}.room-meta code{overflow-wrap:anywhere}details.panel>summary{list-style:none;cursor:pointer;display:flex;align-items:center}details.panel>summary::-webkit-details-marker{display:none}details.panel>summary h4{flex:1}details.panel>summary h4:after{content:"▾";float:right;color:var(--muted-text)}details.panel:not([open])>summary h4:after{content:"▸"}details.panel>summary+*{margin-top:8px}#play-scores li,#finished-scores li{display:flex;align-items:baseline;gap:8px}#play-scores .p-name,#finished-scores .p-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#play-scores .p-pts,#finished-scores .p-pts{font-weight:700;white-space:nowrap}#play-scores .turn-pts{color:#4ade80;font-size:.8rem}.turn-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px}.turn-total{font-weight:700;color:#4ade80;white-space:nowrap}#play-dice{height:300px}.board-hint{color:var(--muted-text);font-size:.9rem;text-align:center;padding:40px 0}.game-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.game-actions button{width:100%;padding:14px 10px;font-size:1.05rem;font-weight:700}#nickname-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:16px;background:#000000b8}#nickname-modal[hidden]{display:none}.modal-card{width:100%;max-width:360px;background:var(--surface-color);border:1px solid #1f2937;border-radius:12px;padding:24px 20px;box-shadow:0 24px 60px #000000b3;display:flex;flex-direction:column;gap:12px;animation:fade-in .25s ease}.modal-card h3,.modal-card .feedback{text-align:center}#help-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:16px;background:#000000b8}#help-modal[hidden]{display:none}.help-card{max-width:460px;max-height:85vh;overflow-y:auto}.help-list{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px;font-size:.9rem;text-align:left}.score-strip{margin-top:12px;display:flex;flex-direction:column;gap:10px}.score-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.score-card{background:var(--surface-color);border:1px solid #1f2937;border-radius:10px;padding:8px 10px;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}.score-card.active{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.sc-name{display:block;font-size:.8rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}.sc-total{font-size:1.25rem;font-weight:700}.sc-turn{font-size:.8rem;color:var(--accent);font-weight:700}.sheet-panel{background:var(--surface-color);border:1px solid #1f2937;border-radius:10px;padding:8px}.icon-btn{background:none;border:1px solid #1f2937;border-radius:8px;padding:2px 8px;cursor:pointer;font-size:1rem}.die.hot{box-shadow:0 0 8px #ffffff73}#play-scores li,#play-scores .p-name{font-size:.85rem}#finished-scores li{font-size:.9rem}.score-table thead th{font-size:.8rem}.chat-from{display:inline-block;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom;font-size:.85rem}#audio-bar{position:fixed;top:8px;right:8px;z-index:200;display:flex;align-items:center;gap:6px;background:#0000008c;border:1px solid #1f2937;border-radius:999px;padding:4px 10px}#audio-bar button{background:none;border:none;cursor:pointer;font-size:1.1rem;padding:0 2px}#audio-volume{width:80px;accent-color:var(--accent);cursor:pointer}.head-audio{display:none}.head-audio .audio-toggle{background:none;border:1px solid #1f2937;border-radius:8px;cursor:pointer;font-size:1rem;padding:2px 8px}.head-audio .audio-volume{width:64px;accent-color:var(--accent);cursor:pointer}@media (max-width: 940px){body{padding:8px}.app{padding:8px 0}.play-grid,.lobby-grid{display:flex;flex-direction:column}.col-center{order:-1}#play-dice{height:230px}.game-actions{grid-template-columns:1fr}.game-actions button{padding:12px 10px}.score-cards{grid-template-columns:repeat(2,1fr)}.sc-total{font-size:1.1rem}.score-table{font-size:.75rem}.score-table th,.score-table td{padding:3px 5px}.help-card{max-width:100%}#audio-volume{width:56px}#audio-bar{display:none}.head-audio{display:inline-flex;align-items:center;gap:6px}}#landing h1{font-size:1.6rem;text-align:center}#landing p{text-align:center;font-size:.9rem;color:var(--muted-text)}.button-group{display:flex;flex-direction:column;gap:10px}.btn-primary,.btn-secondary,button[type=button],button[type=submit]{font:inherit;cursor:pointer;border-radius:var(--radius);border:none;padding:10px 14px;width:100%;transition:background .15s ease,transform .08s ease,box-shadow .15s ease}.btn-primary{background:var(--brand-color);color:#fff;box-shadow:0 6px 16px #b4321599}.btn-primary:hover:not(:disabled){background:var(--highlight-color);transform:translateY(-1px)}.btn-primary:disabled,.btn-secondary:disabled,.game-actions button:disabled,.lobby-actions button:disabled{background:#1a2436;color:var(--muted-text);border:1px solid #26314a;cursor:not-allowed;box-shadow:none;opacity:1}.btn-secondary{background:var(--surface-alt);color:var(--text-color)}.btn-secondary:hover:not(:disabled){background:#1f2937;transform:translateY(-1px)}form{display:flex;flex-direction:column;gap:10px}.check-row{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:.9rem}.check-row input{width:auto}input,select{width:100%;padding:9px 10px;border-radius:var(--radius);border:1px solid #1f2937;background:#020617;color:var(--text-color);font:inherit}input::placeholder{color:var(--muted-text)}input:focus,select:focus{outline:2px solid var(--brand-color);outline-offset:1px}.feedback{font-size:.8rem;color:var(--muted-text)}.feedback:empty{display:none}.feedback.error{color:var(--danger)}.feedback.success{color:#4ade80}#lobby-players-list{list-style:none;padding:0;max-height:120px;overflow-y:auto}#lobby-players-list li,#lobby-rolloff li{display:flex;align-items:center;gap:6px;padding:2px 0;border-bottom:1px solid #1f2937;font-size:.85rem;min-width:0}#lobby-players-list li .linklike{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}#game-table{display:flex;flex-direction:column;gap:12px}.player-area{border-radius:var(--radius);padding:10px;background:#020617;border:1px solid #1f2937}.cards{min-height:30px}.score{font-size:.9rem;color:var(--muted-text)}.game-actions{display:flex;flex-wrap:wrap;gap:6px}#play-scores{list-style:none;padding:0}#play-scores li{padding:4px 0;border-bottom:1px solid #1f2937;font-size:.9rem}#finished h2{text-align:center;font-size:1.3rem}#finished-scores{list-style:none;padding:0}#finished-scores li{padding:4px 0;border-bottom:1px solid #1f2937;font-size:.9rem}#play-dice{display:flex;flex-wrap:wrap;gap:8px}#play-dice .die:disabled{cursor:default;opacity:.6}.panel{background:#020617;border:1px solid #1f2937;border-radius:var(--radius);padding:10px 12px;display:flex;flex-direction:column;gap:8px}.panel h4{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted-text)}.room-line{font-size:.85rem;color:var(--muted-text)}.final-badge{color:#fbbf24;font-weight:700}.dice-zone{display:flex;flex-direction:column;gap:6px}.zone-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted-text)}#play-dice{position:relative;height:230px;overflow:hidden;border-radius:16px;border:7px solid #4a2c14;isolation:isolate;background:radial-gradient(ellipse at center,#178a54,#0e5a38 55%,#08331f);box-shadow:inset 0 6px 22px #000000a6,0 4px 14px #00000080}#play-dice .die{position:absolute;margin:0}#play-kept{display:flex;flex-wrap:wrap;gap:6px;min-height:10px}#play-kept .die{position:static}.die{width:56px;height:56px;padding:8px;position:relative;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);background:linear-gradient(145deg,#fffdf6,#f6efdc 55%,#d6c69e);border:none;border-radius:12px;box-shadow:inset 0 2px 3px #fffffff2,inset 0 -3px 6px #785f3259,0 10px 16px #0000008c;transition:transform .12s ease,box-shadow .12s ease}button.die:not(:disabled):hover{transform:translateY(-3px) scale(1.08);box-shadow:inset 0 2px 3px #ffffffe6,inset 0 -3px 5px #0f172a40,0 12px 22px #000000a6,0 0 14px #e0583359}button.die:not(:disabled):active{transform:translateY(0) scale(.96)}.die.small{width:36px;height:36px;padding:5px;border-radius:8px}.die .pip{width:80%;aspect-ratio:1;border-radius:50%;place-self:center;background:radial-gradient(circle at 35% 30%,#3d3d3d,#0b0b0b 70%);box-shadow:inset 0 1px 2px #000000d9;opacity:0}.die.small .pip{width:85%}.die .pip:nth-child(1){grid-area:1 / 1}.die .pip:nth-child(2){grid-area:1 / 2}.die .pip:nth-child(3){grid-area:1 / 3}.die .pip:nth-child(4){grid-area:2 / 1}.die .pip:nth-child(5){grid-area:2 / 2}.die .pip:nth-child(6){grid-area:2 / 3}.die .pip:nth-child(7){grid-area:3 / 1}.die .pip:nth-child(8){grid-area:3 / 2}.die .pip:nth-child(9){grid-area:3 / 3}.die.v1 .pip:nth-child(5),.die.v3 .pip:nth-child(1),.die.v3 .pip:nth-child(5),.die.v3 .pip:nth-child(9),.die.v5 .pip:nth-child(1),.die.v5 .pip:nth-child(3),.die.v5 .pip:nth-child(5),.die.v5 .pip:nth-child(7),.die.v5 .pip:nth-child(9){opacity:1}.die.v2 .pip:nth-child(1),.die.v2 .pip:nth-child(9),.die.v4 .pip:nth-child(1),.die.v4 .pip:nth-child(3),.die.v4 .pip:nth-child(7),.die.v4 .pip:nth-child(9),.die.v6 .pip:nth-child(1),.die.v6 .pip:nth-child(3),.die.v6 .pip:nth-child(4),.die.v6 .pip:nth-child(6),.die.v6 .pip:nth-child(7),.die.v6 .pip:nth-child(9){opacity:1}button.die{cursor:pointer;font:inherit;width:56px}button.die:disabled{cursor:default}.die.selected{outline:3px solid var(--highlight-color);outline-offset:2px;transform:translateY(-4px);box-shadow:inset 0 2px 3px #ffffffe6,inset 0 -3px 5px #0f172a40,0 0 0 2px var(--highlight-color),0 10px 22px #e0583373}.die.landing{animation:dice-land .25s cubic-bezier(.34,1.56,.64,1)}.die.reserving{transform:translateY(16px) scale(.55);opacity:0;filter:drop-shadow(0 0 10px rgba(251,191,36,.9));transition:transform .22s ease-in,opacity .22s ease-in;pointer-events:none}.turn-panel.combo{animation:gold-flash 1.2s ease}@keyframes dice-land{0%{transform:scale(1.28) translateY(-8px)}to{transform:scale(1) translateY(0)}}@keyframes gold-flash{0%,to{box-shadow:none}25%,60%{box-shadow:0 0 22px #fbbf24d9;border-color:#fbbf24}}#play-scores li.active-turn{border:1px solid var(--highlight-color);border-radius:var(--radius);padding:4px 8px;box-shadow:0 0 12px #e0583373}.sheet-wrap{overflow-x:auto}.score-table{width:100%;border-collapse:collapse;font-size:.85rem}.score-table th,.score-table td{padding:4px 8px;border-bottom:1px solid #1f2937;text-align:right;white-space:nowrap}.score-table th:first-child,.score-table td:first-child{text-align:left;color:var(--muted-text)}.score-table thead th{color:var(--text-color);max-width:90px;overflow:hidden;text-overflow:ellipsis}.score-table td.bust{color:var(--danger)}.score-table tfoot td{font-weight:700;border-bottom:none;color:var(--text-color)}.status-line{min-height:2.4em}.history ul{list-style:none;padding:0;max-height:110px;overflow-y:auto}.history li{font-size:.8rem;color:var(--muted-text);padding:2px 0;border-bottom:1px solid #1f2937}body.shake .app{animation:screen-shake .5s ease}@keyframes screen-shake{0%,to{transform:translate(0)}20%{transform:translate(-10px,4px)}40%{transform:translate(8px,-6px)}60%{transform:translate(-6px,-4px)}80%{transform:translate(5px,3px)}}#bust-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;display:flex;align-items:center;justify-content:center;pointer-events:none;opacity:0;background:radial-gradient(ellipse at center,rgba(220,38,38,.28),transparent 65%)}#bust-overlay.show{animation:bust-flash 1.2s ease}#bust-overlay span{font-size:3rem;font-weight:900;color:#fff;text-shadow:0 0 24px #dc2626,0 4px 0 #7f1d1d}@keyframes bust-flash{0%{opacity:0}15%{opacity:1}70%{opacity:1}to{opacity:0}}.risk{display:flex;align-items:center;gap:8px;font-size:.8rem;color:var(--muted-text)}.risk-bar{flex:1;height:8px;border-radius:4px;background:#1f2937;overflow:hidden}.risk-bar i{display:block;height:100%;border-radius:4px;background:#4ade80}.risk-bar i.mid{background:#fbbf24}.risk-bar i.high{background:#f87171}.chat ul{list-style:none;padding:0;max-height:130px;overflow-y:auto;display:flex;flex-direction:column;gap:4px}.chat li{font-size:.8rem;background:var(--surface-alt);border-radius:var(--radius);padding:5px 8px;overflow-wrap:anywhere}.chat-row{display:flex;gap:6px}.chat-row input{flex:1}.chat-row button{width:auto;flex-shrink:0}@keyframes fade-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.bust-banner{margin:8px 0 0;padding:10px;text-align:center;font-size:1.4rem;font-weight:800;letter-spacing:2px;color:#fff;background:linear-gradient(180deg,#b91c1c,#7f1d1d);border:2px solid #f87171;border-radius:10px;animation:fade-in .25s ease}.die.bust{outline:3px solid var(--danger);outline-offset:2px;filter:saturate(.4) brightness(.85)}#fx-overlay{position:fixed;left:50%;bottom:18px;transform:translate(-50%) translateY(8px);z-index:300;display:flex;flex-direction:column;align-items:center;gap:2px;max-width:min(92vw,480px);padding:10px 18px;border-radius:12px;background:#020617eb;border:1px solid #1f2937;opacity:0;transition:opacity .25s ease,transform .25s ease;pointer-events:none;text-align:center}#fx-overlay.show{opacity:1;transform:translate(-50%) translateY(0)}#fx-overlay strong{font-size:1rem}#fx-overlay span{font-size:.85rem;color:var(--muted-text)}#fx-overlay.kind-bust{border-color:var(--danger)}#fx-overlay.kind-bust strong{color:var(--danger)}#fx-overlay.kind-bank strong{color:#4ade80}#fx-overlay.kind-hot strong{color:#fbbf24}button.linklike{display:inline-block;width:auto;min-width:0;max-width:100%;background:none;border:none;padding:0;color:inherit;font:inherit;font-size:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:baseline}.notes-widget{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:90;display:flex;flex-direction:column;align-items:flex-end;gap:10px}#notes-widget .notes-fab{position:relative;width:56px;height:56px;min-width:56px;display:grid;place-items:center;border:0;border-radius:50%;background:linear-gradient(135deg,var(--accent),#ff8f5f);color:#fff;font-size:1.35rem;line-height:1;box-shadow:0 10px 26px -8px #e05833bf;transition:transform .15s ease,box-shadow .15s ease}.notes-fab:hover{transform:translateY(-2px);box-shadow:0 14px 30px -8px #e05833e6}.notes-fab:active{transform:scale(.96)}.notes-badge{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;padding:0 5px;display:grid;place-items:center;border:2px solid #05070d;border-radius:999px;background:var(--danger);color:#111827;font-size:11px;font-weight:700;line-height:1}.notes-panel{width:min(390px,calc(100vw - 24px));max-height:min(72vh,620px);overflow:auto;padding:14px;background:var(--surface-color);border:1px solid #1f2937;border-radius:12px;box-shadow:0 24px 60px #000000b8}.notes-panel[hidden]{display:none}.notes-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.notes-head strong{display:block;font-size:1rem}.notes-sub{display:block;color:var(--muted-text);font-size:.75rem}#notes-widget .notes-icon-btn{width:30px;height:30px;min-width:30px;padding:0;display:grid;place-items:center;border:1px solid #1f2937;border-radius:8px;background:var(--surface-alt);color:var(--text-color);font-size:1.1rem;line-height:1}.notes-icon-btn:hover{background:#1f2937}.notes-form{display:flex;flex-direction:column;gap:8px;margin-top:10px}.notes-send-row{margin-top:10px}#notes-widget .notes-send{width:100%;padding:10px 12px;font-weight:700}#notes-widget .notes-send:disabled{opacity:.6;cursor:wait}.notes-kind,.notes-text{width:100%;padding:8px 10px;border:1px solid #1f2937;border-radius:var(--radius);background:#020617;color:var(--text-color);font:inherit}.notes-text{min-height:68px;max-height:40vh;resize:vertical}.notes-text::placeholder{color:var(--muted-text)}.notes-kind:focus,.notes-text:focus{outline:2px solid var(--brand-color);outline-offset:1px}.notes-feedback{margin-top:8px;font-size:.78rem;color:var(--danger)}.notes-feedback[hidden]{display:none}.notes-list{display:flex;flex-direction:column;gap:8px;margin-top:12px;padding:0;list-style:none}.notes-empty{padding:10px;color:var(--muted-text);font-size:.82rem;text-align:center}.notes-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:start;padding:8px;background:var(--surface-alt);border:1px solid #1f2937;border-radius:var(--radius)}.notes-item.is-done{opacity:.62}.notes-item.kind-bug{border-left:3px solid var(--danger)}.notes-item.kind-amelioration{border-left:3px solid #34d399}.notes-item.kind-idee{border-left:3px solid #fbbf24}.notes-item.kind-note{border-left:3px solid var(--gray)}#notes-widget .notes-check{width:26px;height:26px;min-width:26px;padding:0;display:grid;place-items:center;border:1px solid #1f2937;border-radius:50%;background:#020617;color:var(--muted-text);font-size:.85rem;line-height:1}.notes-check.is-done{border-color:#34d399;background:#34d39929;color:#34d399}.notes-item-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px}.notes-kind-pill{font-size:.62rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted-text)}.notes-item-date{font-size:.68rem;color:var(--muted-text)}.notes-item-text{margin-top:2px;font-size:.86rem;overflow-wrap:anywhere;white-space:pre-wrap}#notes-widget .notes-edit{width:28px;height:28px;min-width:28px;padding:0;display:grid;place-items:center;border:1px solid #1f2937;border-radius:8px;background:#020617;color:var(--muted-text);font-size:.85rem}.notes-edit:hover{color:var(--text-color);background:#1f2937}.notes-edit-form{display:flex;flex-direction:column;gap:6px;grid-column:1 / -1}.notes-edit-actions{display:flex;gap:6px}#notes-widget .notes-edit-actions button{width:auto;flex:1 1 auto;padding:6px 10px;font-size:.78rem}.notes-hint{margin-top:10px;padding-top:8px;border-top:1px solid #1f2937;color:var(--muted-text);font-size:.68rem;line-height:1.35}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media (max-width: 940px){.notes-widget{right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom))}#notes-widget .notes-fab{width:52px;height:52px;min-width:52px}.notes-panel{max-height:min(68vh,560px)}}body[data-view=physical] .app{max-width:1120px}.resume-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding:10px 12px;border:1px solid rgba(224,88,51,.45);border-radius:12px;background:linear-gradient(135deg,#b432154d,#e058330f);font-size:.85rem}.resume-banner[hidden]{display:none}.resume-banner span{min-width:0;overflow:hidden;text-overflow:ellipsis}.resume-banner button{width:auto;flex-shrink:0;padding:8px 12px}@media (max-width: 620px){.resume-banner{align-items:stretch;flex-direction:column}}.phys-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.phys-head h2{font-size:1.35rem}.phys-head p{margin-top:4px;color:var(--muted-text);font-size:.85rem}.phys-head-actions{display:flex;gap:8px;flex-shrink:0}.phys-target-reached{margin-top:4px;color:#fbbf24;font-size:.85rem;font-weight:700}button.phys-back,button.phys-icon,button.phys-chip,button.phys-turn-btn{width:auto}button.phys-back{padding:8px 12px;white-space:nowrap}.phys-setup-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:14px;align-items:start}.phys-game-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px;align-items:start}.phys-side{display:flex;flex-direction:column;gap:12px}.phys-add-form,.phys-score-row,.phys-set-form{display:flex;flex-direction:row;gap:8px}.phys-add-form input,.phys-score-row input,.phys-set-form input{flex:1;min-width:0}.phys-add-form button,.phys-score-row button,.phys-set-form button{width:auto;flex-shrink:0}.phys-player-list,.phys-order-list,.phys-log,.phys-standings{list-style:none;padding:0;margin:0}.phys-player-list li,.phys-order-list li,.phys-standings li{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #1f2937;font-size:.9rem}.phys-player-list li:last-child,.phys-order-list li:last-child,.phys-standings li:last-child{border-bottom:none}.phys-order{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:24px;height:24px;border-radius:50%;background:var(--surface-alt);color:var(--muted-text);font-size:.75rem;font-weight:700}.phys-rank{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;font-size:.85rem;color:var(--muted-text)}.phys-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.phys-name em{color:var(--accent);font-size:.7rem;font-style:normal;font-weight:700}.phys-row-actions{display:flex;gap:4px;flex-shrink:0}.phys-icon{padding:2px 7px;font-size:.9rem;background:var(--surface-alt);color:var(--text-color);border-radius:6px}.phys-icon.phys-danger{color:var(--danger)}.phys-icon:disabled{opacity:.35;cursor:not-allowed}.phys-turn-btn{padding:2px 8px;font-size:.7rem;background:var(--surface-alt);color:var(--muted-text)}.phys-order-list li.active{color:var(--accent);font-weight:700}.phys-order-list li.active .phys-rank{background:var(--accent);color:#fff}.phys-hint{font-size:.75rem;color:var(--muted-text);line-height:1.35}.phys-turn-card{display:flex;flex-direction:column;gap:4px;padding:14px;border-radius:12px;background:linear-gradient(135deg,#b4321547,#e058330f);border:1px solid rgba(224,88,51,.45)}.phys-turn-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted-text)}.phys-turn-name{font-size:1.8rem;line-height:1.1}.phys-turn-total{font-size:1.05rem;color:var(--accent);font-weight:700}.phys-progress{height:8px;margin-top:6px;border-radius:999px;background:#0b1220;overflow:hidden}.phys-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--brand-color),var(--accent));transition:width .25s ease}.phys-score-form,.phys-set-form{display:flex;flex-direction:column;gap:8px}.phys-set-form{flex-direction:row;flex-wrap:wrap}.phys-set-form select{flex:1 1 170px}.phys-quick{display:flex;flex-wrap:wrap;gap:6px}.phys-chip{padding:6px 10px;border-radius:999px;background:var(--surface-alt);color:var(--text-color);font-size:.8rem;font-weight:700}.phys-chip:hover{background:var(--brand-color)}.phys-score-actions{display:flex;gap:8px}.phys-score-actions button{flex:1}.phys-correct summary{cursor:pointer;color:var(--muted-text);font-size:.8rem}.phys-voice.armed{border-color:#fbbf24;box-shadow:0 0 0 1px #fbbf24,0 0 18px #fbbf2438}.phys-voice-heard{min-height:1.1em;font-size:.8rem;color:#fbbf24;font-style:italic;word-break:break-word}.phys-log{max-height:260px;overflow-y:auto}.phys-log li{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:5px 0;border-bottom:1px solid #1f2937;font-size:.8rem}.phys-log li:last-child{border-bottom:none}.phys-log-total{flex-shrink:0;color:var(--muted-text);font-size:.72rem}.phys-finished{gap:14px}.phys-standings li{font-size:1rem}.phys-finished-actions{display:flex;flex-wrap:wrap;gap:8px}.phys-finished-actions button{width:auto;flex:1 1 200px}@media (max-width: 940px){.phys-setup-grid,.phys-game-grid{grid-template-columns:1fr}.phys-head{flex-direction:column}.phys-head-actions{width:100%}.phys-head-actions button{flex:1}.phys-turn-name{font-size:1.5rem}}
