/* One layout owns the available game height, including tablet and split screen. */
.game-route .immersive-game{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);flex:1;min-height:0;gap:0}
.game-route .table-wrap{display:flex;flex-direction:column;height:100%;min-height:0;gap:8px}
.game-route .table-arena.room3d-ready{flex:1 1 0;align-self:stretch;width:100%;height:auto;min-height:0;max-height:none}
.game-route .game-side{display:none}
.game-route .my-hand{flex:0 0 auto;padding:12px;min-width:0;max-height:44dvh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line) var(--surface)}
.game-route .hand-scroller{min-height:76px;padding:12px 4px 8px;gap:8px;overflow-x:auto;justify-content:safe center}
.game-route .hand-card{min-width:52px;width:58px;flex-basis:58px}
.game-route .hand-card[aria-disabled="true"]{opacity:.55;cursor:help;filter:saturate(.7)}
.game-route .hand-card[aria-disabled="false"]{opacity:1;filter:none}
.game-route .hand-actions{gap:8px;margin-top:7px}
.game-route .hand-actions .btn{min-height:48px;font-size:14px;padding:10px;min-width:0}
.game-route .hand-title h2{font-size:16px}.game-route .hand-title small{font-size:12px}
.game-route .game-hint{font-size:12px;line-height:1.45;margin-top:8px}
.selection-preview{font-size:13px;line-height:1.45;color:var(--gold);margin:4px 0 8px;overflow-wrap:anywhere}
.quick-guide{display:flex;align-items:center;gap:8px;padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid var(--line)}
.quick-guide p{flex:1;font-size:13px;line-height:1.45}.quick-guide .icon-button{flex:0 0 48px}
.reconnect-notice{flex:0 0 auto;font-size:13px;line-height:1.4;color:var(--gold);background:var(--surface);padding:7px 10px;margin-bottom:5px;border-radius:8px}
.session-recovery{max-width:560px;margin:auto;padding:24px;line-height:1.6}.session-recovery h1{font-size:26px}.session-recovery p{margin:16px 0}
.game-route .table-arena.room3d-ready .opponent{min-height:48px;min-width:64px;max-width:92px;padding:6px;display:flex;flex-direction:column;justify-content:center;line-height:1.35}
.game-route .table-arena.room3d-ready .opponent strong{font-size:12px;max-width:78px}
.game-route .table-arena.room3d-ready .opponent .small{font-size:11px}
/* At a crowded table show the active name, and use the accessible roster for all names. */
.game-route .table-arena.room3d-ready[data-crowded="true"] .opponent:not(.current){visibility:hidden!important;pointer-events:none}
.game-route .table-arena.room3d-ready[data-crowded="true"] .opponent.current{max-width:120px;min-width:90px}
.game-route .table-arena.room3d-ready[data-crowded="true"] .opponent strong{font-size:13px;max-width:104px}
.game-route .table-arena.room3d-ready .table-turn{font-size:12px;bottom:4px;line-height:1.4;padding:5px 9px}
.game-route .table-arena.room3d-ready .pile>small{font-size:11px;width:94px;max-width:94px;padding:3px 5px}
.game-route .game-topline .icon-button,.btn,.filter-tabs button,.mode-tabs button,.family-grid button,.voice-message{min-height:48px}
.game-route .game-topline .icon-button{width:48px;min-width:48px;height:48px}
.modal .icon-button{min-width:48px;min-height:48px}.field input,.field select,.chat-composer textarea{font-size:16px}
.modal p,.notice,.premium-note{font-size:14px;line-height:1.6}.modal,.session-recovery{overflow-wrap:anywhere}
.game-route .end-round .btn{min-height:48px;font-size:14px}.game-route .end-round p{font-size:13px}
.chat-turn-status{padding:9px 14px;background:var(--surface3);color:var(--text);font-size:14px;line-height:1.4}
.chat-turn-status.your-turn{background:var(--gold);color:var(--gold-ink);font-weight:700}
.voice-person.speaking{background:var(--green);color:var(--bg);border-color:var(--green)}
#voice-dock{position:fixed;inset:auto 16px 16px auto;max-width:calc(100vw - 32px);z-index:85;display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px #0005}
#voice-dock strong{font-size:14px;padding-inline:5px}
@media(max-width:600px){#voice-dock{bottom:calc(78px + env(safe-area-inset-bottom));left:12px;right:12px;max-width:none;gap:5px}#voice-dock .btn{font-size:12px;flex:1;padding:8px}#voice-dock strong{width:100%}}
.social-heading h2{font-size:21px}.social-heading p,.live-status,.voice-privacy,.chat-footnote{font-size:12px}.chat-message p{font-size:15px}
.social-panel{grid-template-rows:auto auto minmax(40px,1fr) auto auto;backdrop-filter:none}
.social-panel .social-heading{grid-column:1/-1;grid-row:1}.social-panel .chat-turn-status{grid-column:1/-1;grid-row:2;margin-bottom:8px;border-radius:8px}
.social-panel .live-voice{grid-column:1;grid-row:3/5}.social-panel .social-messages{grid-column:2;grid-row:3}.social-panel .chat-composer{grid-column:2;grid-row:4}.social-panel .chat-footnote{grid-column:1/-1;grid-row:5}
#social-root:not([hidden]){background:#00130dcc;backdrop-filter:none}
@media(min-width:601px){.game-route .table-arena.room3d-ready{min-height:0}.game-route .my-hand{max-height:38dvh}.game-route .hand-card{width:66px;flex-basis:66px}}
@media(min-width:650px) and (max-height:600px){
 .game-route .content{padding:6px 12px}.game-route .game-topline{margin-bottom:4px;padding-block:0}
 .game-route .table-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,28%);gap:10px}
 .game-route .my-hand{height:100%;max-height:100%;display:flex;flex-direction:column;padding:8px;overflow-y:auto}
 .game-route .hand-scroller{flex:1 0 70px;min-height:70px;justify-content:flex-start;padding:8px 2px}
 .game-route .hand-card{min-width:48px;width:48px;flex-basis:48px}
 .game-route .hand-actions{display:grid;grid-template-columns:1fr;flex:0 0 auto;gap:5px}
 .game-route .hand-actions .btn{min-height:48px;padding:8px;font-size:13px}
 .game-route .game-hint{display:none}.quick-guide p{font-size:12px}
 .game-route .table-arena.room3d-ready .opponent .small{display:none}
 .game-route .table-arena.room3d-ready .opponent{min-width:60px;min-height:48px}
 .game-route .game-title h1{font-size:18px}
 .game-route .table-arena.room3d-ready .pile>small{width:70px;max-width:70px;font-size:10px}
}
@media(max-width:600px){
 .game-route .content{padding:6px 10px}.game-route .game-topline{padding:3px 0;gap:2px}
 .game-route .my-hand{padding:9px;max-height:45dvh}.game-route .game-title h1{font-size:18px}
 .game-route .table-arena.room3d-ready .pile .card-image{width:36px}.game-route .table-arena.room3d-ready .deck-back{width:36px;height:51px}
 .game-route .table-arena.room3d-ready .pile>small{font-size:10px;max-width:82px;width:82px}
 .game-route .table-arena.room3d-ready .opponent .small{display:none}
 .game-route .hand-actions .btn{font-size:13px}.game-route .hand-title h2{font-size:15px}
 .social-panel{border-radius:20px 20px 0 0;max-height:86dvh;margin-top:auto;width:100%}
 #social-root:not([hidden]){display:flex;align-items:flex-end}.social-heading{padding:10px 12px}
}
@media(max-width:700px){.social-panel{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto minmax(40px,1fr) auto auto}.social-panel .live-voice{grid-column:1;grid-row:3;max-height:140px;overflow:auto}.social-panel .social-messages{grid-column:1;grid-row:4}.social-panel .chat-composer{grid-column:1;grid-row:5}.social-panel .chat-footnote{grid-column:1;grid-row:6}}
@media(max-height:430px){.social-panel{max-height:100dvh}.chat-turn-status{padding:5px 12px;font-size:12px}.live-voice{max-height:85px}.live-voice .voice-privacy{display:none}.game-route .my-hand{max-height:100%}.game-route .hand-title small{font-size:11px}}
@media(prefers-reduced-motion:reduce){.motion-card,.player-call{animation:none}}
body[data-large-text="true"] .game-route .game-topline{display:grid;grid-template-columns:minmax(0,1fr);gap:3px}
body[data-large-text="true"] .game-route .game-title{grid-column:1;min-width:0}
body[data-large-text="true"] .game-route .game-title h1{white-space:nowrap}
body[data-large-text="true"] .game-route .game-title p{display:none}
body[data-large-text="true"] .game-route .game-topline>.row{grid-column:1;justify-content:flex-end}
body[data-large-text="true"] .game-route .my-hand{max-height:55dvh}
body[data-large-text="true"] .game-route .hand-title{display:block}
body[data-large-text="true"] .game-route .hand-title small{display:block;font-size:12px;margin-top:5px}
body[data-large-text="true"] .game-route .hand-actions{display:grid;grid-template-columns:1fr}
body[data-large-text="true"] .game-route .game-hint{display:none}
body[data-large-text="true"] .game-route .table-arena.room3d-ready .opponent{visibility:hidden!important;pointer-events:none}
body[data-large-text="true"] .game-route #top-card>small{display:none}
body[data-large-text="true"] .game-route .bank-pile>small{width:max-content;max-width:none;white-space:nowrap;font-size:11px}
body[data-large-text="true"] .game-route .table-turn{white-space:normal;text-align:center;font-size:12px;max-width:100%}

/* The turn clock changes in place; no room rerender or seat movement. */
.game-heading-line{display:flex;align-items:center;gap:9px;min-width:0}
.turn-clock{display:inline-flex;align-items:center;gap:4px;flex:none;padding:4px 7px;border:1px solid #d7ae573d;border-radius:9px;background:#102132b3;color:#f6df9d;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1}
.turn-clock[hidden]{display:none}.turn-clock svg{width:12px;height:12px}.turn-clock-urgent{color:#ffd0ba;border-color:#eb977766}
@media(max-width:480px){.game-heading-line{gap:5px}.turn-clock{font-size:11px;padding:4px 5px;gap:3px}.turn-clock svg{display:none}}
