:root { --ink:#f8f5f0; --muted:#b7b2be; --paper:#211e2a; --panel:#2d2939; --line:#4b465b; --gold:#f0bc59; --gold-ink:#291d08; --red:#f07778; --green:#72d4aa; --violet:#8d7df0; --shadow:0 18px 50px rgba(0,0,0,.28); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ink); background:#15121d; }
* { box-sizing:border-box; }
body { min-width:320px; min-height:100vh; margin:0; background:radial-gradient(circle at 12% 0%,#3a2d4d 0,transparent 28rem),radial-gradient(circle at 100% 24%,#3d3024 0,transparent 26rem),#15121d; }
button,input,select { font:inherit; }
button { touch-action:manipulation; }
.shell { width:min(100% - 28px,760px); margin:0 auto; padding:clamp(22px,5vw,54px) 0 72px; }
.brand { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin:0 0 24px; }
h1,h2,p { margin-top:0; }
h1 { margin-bottom:6px; font-size:clamp(2rem,7vw,3.25rem); letter-spacing:-.055em; line-height:1; }
h2 { margin-bottom:10px; font-size:clamp(1.25rem,4vw,1.65rem); line-height:1.16; }
p { line-height:1.55; }
.subtitle,.mini { color:var(--muted); }
.subtitle { max-width:540px; margin:0; }
.eyebrow { margin-bottom:8px; color:var(--gold); font-size:.73rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.card { position:relative; overflow:hidden; margin:14px 0; padding:clamp(18px,4vw,28px); border:1px solid rgba(255,255,255,.1); border-radius:24px; background:linear-gradient(145deg,rgba(48,43,60,.96),rgba(35,31,45,.96)); box-shadow:var(--shadow); animation:rise .34s ease-out both; }
.hero { border-color:rgba(240,188,89,.34); background:linear-gradient(145deg,rgba(75,58,43,.96),rgba(43,35,48,.98)); }
.room-card { text-align:center; }
.room-code { margin:8px 0 14px; color:var(--gold); font-size:clamp(2.2rem,12vw,4.2rem); font-weight:900; letter-spacing:.1em; line-height:1; }
.button { display:inline-flex; align-items:center; justify-content:center; width:100%; min-height:52px; border:0; border-radius:15px; padding:13px 17px; color:#fff; background:var(--violet); font-weight:800; cursor:pointer; box-shadow:0 7px 18px rgba(0,0,0,.18); transition:transform .16s ease,filter .16s ease,opacity .16s ease; }
.button:hover { filter:brightness(1.09); transform:translateY(-1px); }
.button:active { transform:translateY(1px) scale(.99); }
.button:disabled { cursor:not-allowed; opacity:.42; transform:none; }
.button.gold { color:var(--gold-ink); background:linear-gradient(135deg,#ffd778,#e8a940); }
.button.secondary { border:1px solid var(--line); background:#393448; }
.button.danger { background:linear-gradient(135deg,#d95564,#ac3548); }
.button.compact { width:auto; min-height:38px; padding:8px 12px; font-size:.86rem; }
.action-stack { display:grid; gap:10px; margin-top:14px; }
.split { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.stack { display:grid; gap:14px; }
.label { display:grid; gap:7px; color:var(--muted); font-size:.9rem; font-weight:700; }
.input { width:100%; min-height:50px; border:1px solid var(--line); border-radius:13px; padding:10px 13px; color:var(--ink); outline:none; background:#1d1a27; }
.input:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(240,188,89,.15); }
.hidden { display:none; }
.mode-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:16px 0; }
.choice { min-height:104px; border:1px solid var(--line); border-radius:18px; padding:16px; color:var(--ink); text-align:left; background:#262230; cursor:pointer; transition:border-color .16s ease,background .16s ease,transform .16s ease; }
.choice:hover,.choice.active { border-color:var(--gold); background:#3b3233; transform:translateY(-1px); }
.choice b,.choice small { display:block; }
.choice small { margin-top:5px; color:var(--muted); line-height:1.35; }
.counter { display:flex; align-items:center; justify-content:center; gap:18px; margin:20px 0 8px; text-align:center; }
.counter strong { color:var(--gold); font-size:3rem; line-height:1; }
.counter span { color:var(--muted); }
.counter-button { display:grid; width:48px; height:48px; place-items:center; border:1px solid var(--line); border-radius:50%; color:var(--ink); background:#302b3d; font-size:1.7rem; cursor:pointer; }
.phase-screen { isolation:isolate; min-height:180px; border-color:rgba(141,125,240,.38); background:linear-gradient(145deg,rgba(53,44,83,.95),rgba(30,27,44,.98)); }
.phase-screen::after { position:absolute; z-index:-1; inset:auto -35px -70px auto; width:170px; height:170px; border-radius:50%; background:radial-gradient(circle,rgba(141,125,240,.32),transparent 65%); content:""; animation:float 5s ease-in-out infinite; }
.phase-night-mafia,.phase-night-doctor,.phase-night-don,.phase-night-don-result,.phase-night-detective,.phase-night-detective-result { border-color:rgba(105,89,164,.58); background:linear-gradient(145deg,rgba(38,31,62,.96),rgba(22,20,36,.98)); }
.phase-day-speech,.phase-vote { border-color:rgba(240,188,89,.45); background:linear-gradient(145deg,rgba(78,55,38,.95),rgba(39,32,42,.98)); }
.phase-ended { border-color:rgba(114,212,170,.45); }
.status { margin-bottom:0; font-size:clamp(1.02rem,3vw,1.18rem); }
.timer { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:18px; padding:13px 15px; border:1px solid rgba(255,255,255,.14); border-radius:15px; background:rgba(10,8,16,.28); }
.timer span { color:var(--muted); font-size:.88rem; }
.timer strong { color:var(--gold); font-variant-numeric:tabular-nums; font-size:1.7rem; }
.focus-card { border-color:rgba(240,188,89,.42); animation:rise .34s ease-out both,pulse-border 2.7s ease-in-out infinite; }
.pulse-dot { width:10px; height:10px; margin-bottom:12px; border-radius:50%; background:var(--gold); box-shadow:0 0 0 0 rgba(240,188,89,.58); animation:pulse 1.7s infinite; }
.role { text-align:center; }
.role .icon { display:grid; width:70px; height:70px; place-items:center; margin:0 auto 13px; border-radius:50%; background:rgba(255,255,255,.12); font-size:2.35rem; }
.role.mafia { border-color:rgba(240,119,120,.52); background:linear-gradient(145deg,rgba(96,40,50,.94),rgba(42,26,37,.98)); }
.role.don { border-color:rgba(240,119,120,.68); background:linear-gradient(145deg,rgba(105,55,37,.94),rgba(47,25,34,.98)); }
.role.doctor { border-color:rgba(114,212,170,.48); background:linear-gradient(145deg,rgba(30,84,69,.95),rgba(29,40,42,.98)); }
.role.detective { border-color:rgba(240,188,89,.52); background:linear-gradient(145deg,rgba(92,70,35,.95),rgba(42,33,29,.98)); }
.role.citizen { border-color:rgba(141,125,240,.5); }
.result-card { text-align:center; border-color:rgba(114,212,170,.45); }
.warning { color:#ffd58a; }
.role-builder { display:grid; gap:10px; }
.role-builder h2,.role-builder p { margin-bottom:0; }
.role-control { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:13px 0; border-top:1px solid rgba(255,255,255,.1); }
.role-control b,.role-control small { display:block; }
.role-control small { margin-top:3px; color:var(--muted); line-height:1.35; }
.role-stepper { display:flex; align-items:center; gap:9px; flex:0 0 auto; }
.role-stepper .counter-button { width:38px; height:38px; font-size:1.35rem; }
.role-stepper strong,.citizen-total > strong { min-width:24px; color:var(--gold); text-align:center; font-size:1.25rem; }
.role-summary { display:flex; flex-wrap:wrap; gap:8px; }
.role-summary span { border:1px solid var(--line); border-radius:999px; padding:7px 10px; color:#e5dfeb; background:rgba(0,0,0,.15); font-size:.86rem; }
.entry-screen,.stage-shell,.player-shell { width:100%; }
.entry-screen { width:min(100%,520px); margin:8vh auto 0; text-align:center; }
.entry-mark { display:grid; width:62px; height:62px; place-items:center; margin:0 auto 18px; border:1px solid rgba(240,188,89,.38); border-radius:20px; color:var(--gold); background:rgba(240,188,89,.1); font-size:2rem; }
.entry-screen .subtitle { margin:0 auto 18px; }
.entry-card { text-align:left; }
.entry-back { margin-top:2px; }
.join-code { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:11px 13px; border:1px solid var(--line); border-radius:13px; background:#1d1a27; }
.join-code span { color:var(--muted); font-size:.87rem; }
.join-code b { color:var(--gold); font-size:1.4rem; letter-spacing:.09em; }
.stage-shell { width:min(100%,680px); margin:0 auto; }
.player-shell { width:min(100%,560px); margin:0 auto; }
.stage-topline { display:flex; justify-content:space-between; gap:12px; margin:0 2px 10px; color:var(--muted); font-size:.82rem; font-weight:750; }
.stage-topline span:last-child { color:var(--gold); text-align:right; }
.voice-setup { border-color:rgba(141,125,240,.38); }
.voice-drawer summary { color:var(--gold); }
.drawer-content { padding-top:18px; }
.compact-stage .phase-screen { margin-top:0; }
.player-waiting { text-align:center; }
.player-waiting .pulse-dot { margin-left:auto; margin-right:auto; }
.waiting-count { margin:14px 0 0; color:var(--gold); font-size:1.25rem; font-weight:850; }
h1[tabindex="-1"]:focus { outline:0; }
.number-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(62px,1fr)); gap:10px; margin:18px 0 13px; }
.number { min-height:58px; border:1px solid var(--line); border-radius:15px; color:var(--ink); background:#282434; font-size:1.35rem; font-weight:900; cursor:pointer; transition:transform .15s ease,background .15s ease,border-color .15s ease; }
.number:hover,.number.selected { border-color:var(--gold); background:#5a452b; transform:translateY(-2px); }
.number.selected { box-shadow:0 0 0 3px rgba(240,188,89,.17); }
details summary { cursor:pointer; font-size:1.05rem; font-weight:850; }
details[open] summary { margin-bottom:16px; }
.participants,.events { display:grid; gap:9px; }
.participant { display:flex; align-items:center; gap:11px; min-width:0; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.08); }
.participant:last-child { border-bottom:0; }
.badge { display:grid; flex:0 0 auto; width:34px; height:34px; place-items:center; border-radius:50%; color:var(--gold-ink); background:var(--gold); font-weight:900; }
.badge.dead { color:#d7d1dc; background:#5b5664; }
.participant-main { min-width:0; flex:1; }
.participant-main b { overflow:hidden; display:block; text-overflow:ellipsis; white-space:nowrap; }
.bot-pill { display:inline-block; border-radius:999px; padding:1px 6px; color:#d9cef8; background:#4c416a; font-size:.67rem; vertical-align:middle; }
.event { padding:10px 12px; border-left:3px solid var(--violet); border-radius:0 9px 9px 0; color:#d8d4df; background:rgba(0,0,0,.15); font-size:.92rem; }
.danger-zone { border-color:rgba(240,119,120,.28); }
.toast { position:fixed; z-index:10; right:16px; bottom:18px; width:min(calc(100% - 32px),420px); padding:14px 16px; border:1px solid rgba(255,255,255,.18); border-radius:14px; color:#fff; background:#3c344b; box-shadow:var(--shadow); animation:toast-in .25s ease-out both; }
@keyframes rise { from { opacity:0; transform:translateY(9px); } to { opacity:1; transform:translateY(0); } }
@keyframes float { 50% { transform:translate(-14px,-9px) scale(1.08); } }
@keyframes pulse { 70% { box-shadow:0 0 0 13px rgba(240,188,89,0); } 100% { box-shadow:0 0 0 0 rgba(240,188,89,0); } }
@keyframes pulse-border { 50% { border-color:rgba(255,215,120,.78); } }
@keyframes toast-in { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@media (max-width:520px) { .shell { width:min(100% - 20px,760px); padding-top:20px; } .brand { gap:10px; } .brand .button { flex:0 0 auto; } .mode-grid { grid-template-columns:1fr; } .card { border-radius:20px; } .counter { gap:12px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; } }

/* Compact phone-first screens: every step is intentionally a single viewport. */
body { min-height:100dvh; overflow-x:hidden; }
.shell { min-height:100dvh; padding:14px 0 18px; }
.screen-landing,.screen-settings,.screen-entry,.screen-host-voice,.screen-host-lobby,.screen-host-stage,.screen-player-lobby,.screen-player-stage { display:flex; align-items:center; }
.screen-host-lobby,.screen-host-stage,.screen-player-lobby,.screen-player-stage { align-items:flex-start; }
.landing-screen,.entry-screen,.setup-flow,.stage-shell,.player-shell { width:min(100%,560px); margin:0 auto; }
.landing-screen { display:grid; gap:20px; text-align:center; }
.landing-screen h1 { margin:0; font-size:clamp(2.25rem,11vw,3.4rem); }
.landing-actions { margin:0; }
.entry-screen { margin:0 auto; text-align:center; }
.entry-screen h1 { margin-bottom:14px; }
.entry-card { margin:0; padding:14px; text-align:left; }
.entry-back { margin-top:10px; }
.setup-flow h1,.stage-shell > h1 { margin-bottom:10px; font-size:clamp(1.8rem,8vw,2.45rem); }
.stage-topline { min-height:28px; margin:0 0 5px; align-items:center; }
.compact-card,.player-board-panel { margin:8px 0; padding:12px 14px; border-radius:18px; }
.compact-card h2,.player-board-panel h2 { margin-bottom:6px; font-size:1.05rem; }
.compact-card .eyebrow { margin-bottom:2px; }
.counter { gap:13px; margin:5px 0 0; }
.counter strong { font-size:2.35rem; }
.counter-button { width:42px; height:42px; font-size:1.45rem; }
.compact-card .mini { margin:4px 0 0; font-size:.79rem; line-height:1.25; }
.role-builder { gap:0; }
.role-builder h2 { margin-bottom:2px; }
.role-control { min-height:39px; padding:5px 0; }
.role-stepper .counter-button { width:32px; height:32px; font-size:1.12rem; }
.role-summary { gap:5px; }
.role-summary span { padding:5px 8px; font-size:.76rem; }
.voice-setup .label { gap:4px; font-size:.82rem; }
.voice-setup .input { min-height:42px; padding:7px 10px; }
.voice-setup .action-stack { grid-template-columns:1fr 1fr; gap:7px; margin-top:9px; }
.voice-setup .button { min-height:42px; padding:8px; font-size:.81rem; }
.voice-setup .mini { font-size:.72rem; }
.action-stack { gap:8px; margin-top:9px; }
.action-stack .button { min-height:46px; }
.bot-controls .button { min-height:43px; }
.room-card { display:grid; grid-template-columns:1fr auto; align-items:center; gap:10px; text-align:left; }
.room-card .room-code { margin:0; font-size:clamp(1.8rem,9vw,2.45rem); }
.room-card .button { width:auto; min-height:40px; padding:8px 10px; font-size:.78rem; }
.player-board-panel .split { margin-bottom:6px; }
.player-board-panel .split h2 { margin:0; }
.player-board { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.seat-tile { position:relative; display:grid; min-width:0; min-height:62px; align-content:center; gap:1px; padding:7px 5px 5px; border:1px solid rgba(255,255,255,.11); border-radius:11px; background:rgba(9,7,15,.2); text-align:center; }
.seat-tile.out { opacity:.55; filter:grayscale(.5); }
.seat-number { position:absolute; top:4px; left:5px; color:var(--gold); font-size:.63rem; font-weight:900; }
.seat-tile b { overflow:hidden; max-width:100%; padding-top:5px; text-overflow:ellipsis; white-space:nowrap; font-size:.76rem; }
.seat-tile small { overflow:hidden; color:var(--muted); text-overflow:ellipsis; white-space:nowrap; font-size:.61rem; }
.seat-tag { position:absolute; right:4px; top:4px; border-radius:5px; padding:1px 3px; color:#d9cef8; background:#4c416a; font-size:.55rem; font-weight:800; }
.seat-remove { position:absolute; right:3px; bottom:3px; display:grid; width:17px; height:17px; place-items:center; border:0; border-radius:50%; color:white; background:#a83e50; cursor:pointer; line-height:1; }
.compact-exit { min-height:40px !important; margin-top:8px; font-size:.8rem; }
.game-stage .phase-screen,.compact-stage .phase-screen { min-height:0; margin:0; padding:16px; }
.phase-screen h1 { margin-bottom:7px; font-size:clamp(1.65rem,7.5vw,2.2rem); }
.phase-screen .eyebrow { margin-bottom:5px; }
.phase-screen .status { font-size:.98rem; line-height:1.35; }
.timer { margin-top:11px; padding:9px 11px; }
.timer strong { font-size:1.35rem; }
.focus-card,.role,.result-card,.player-waiting { margin:8px 0; padding:15px; }
.focus-card h2,.role h2,.result-card h2,.player-waiting h2 { margin-bottom:7px; font-size:1.28rem; }
.focus-card p,.role p,.result-card p,.player-waiting p { margin-bottom:7px; line-height:1.35; }
.role .icon { width:48px; height:48px; margin-bottom:7px; font-size:1.7rem; }
.number-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin:10px 0; }
.number { min-height:44px; border-radius:11px; font-size:1.05rem; }
.speech-caption { position:fixed; z-index:30; top:calc(env(safe-area-inset-top, 0px) + 10px); left:50%; width:min(calc(100% - 24px),560px); padding:10px 14px; border:1px solid rgba(240,188,89,.45); border-radius:14px; color:#fff4d9; background:rgba(31,25,40,.96); box-shadow:var(--shadow); font-size:clamp(.92rem,4vw,1.1rem); font-weight:750; line-height:1.3; text-align:center; transform:translate(-50%,-12px); opacity:0; pointer-events:none; transition:opacity .2s ease,transform .2s ease; }
.speech-caption.visible { opacity:1; transform:translate(-50%,0); }
@media (max-width:380px), (max-height:640px) {
  .shell { padding-top:9px; padding-bottom:10px; }
  .compact-card,.player-board-panel { margin:6px 0; padding:10px 12px; }
  .setup-flow h1,.stage-shell > h1 { font-size:1.55rem; }
  .role-control { min-height:35px; padding:3px 0; font-size:.9rem; }
  .role-stepper .counter-button { width:29px; height:29px; }
  .counter-button { width:38px; height:38px; }
  .counter strong { font-size:2rem; }
  .player-board { gap:5px; }
  .seat-tile { min-height:55px; padding-top:5px; }
  .seat-tile b { font-size:.69rem; }
  .seat-tile small { font-size:.56rem; }
  .voice-setup .button { min-height:38px; font-size:.73rem; }
  .action-stack .button { min-height:42px; }
}

/* Game-table art direction */
body { position:relative; background:#170d14 url('/assets/mafia-table-bg.png') center top / cover fixed no-repeat; }
body::before { position:fixed; z-index:-1; inset:0; content:""; background:linear-gradient(180deg,rgba(18,8,16,.48),rgba(20,9,17,.7)); pointer-events:none; }
.shell { position:relative; }
.card { border-color:#89614f; background:#352036; box-shadow:0 14px 32px rgba(7,2,8,.52),inset 0 1px rgba(255,235,195,.1); }
.card::before { position:absolute; inset:0; border:1px solid rgba(255,255,255,.035); border-radius:inherit; content:""; pointer-events:none; }
.button { position:relative; overflow:hidden; border:1px solid rgba(255,255,255,.1); box-shadow:0 8px 18px rgba(9,3,10,.3),inset 0 1px rgba(255,255,255,.14); letter-spacing:.01em; }
.button::after { position:absolute; top:0; bottom:0; left:-42%; width:30%; content:""; background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent); transform:skewX(-20deg); transition:left .35s ease; }
.button:hover::after { left:115%; }
.button.gold { border-color:rgba(255,230,151,.38); background:linear-gradient(135deg,#ffd36b,#d58d2e 56%,#b76622); }
.button.secondary { border-color:rgba(224,192,151,.22); background:linear-gradient(135deg,rgba(96,62,82,.97),rgba(57,38,66,.98)); }
.button.text-button { border-color:transparent; background:rgba(18,9,18,.28); box-shadow:none; }
.mode-choice { min-height:80px; flex-direction:column; align-items:flex-start; padding:14px 17px; text-align:left; }
.mode-choice b { font-size:1.02rem; }
.mode-choice small { margin-top:4px; color:rgba(255,255,255,.77); font-size:.75rem; font-weight:600; line-height:1.25; }
.mode-choice.secondary small { color:#ddd2e4; }
.landing-screen h1 { color:#fff1cd; text-shadow:0 3px 22px rgba(0,0,0,.45); }
.landing-screen h1::before { display:block; margin-bottom:10px; color:var(--gold); content:'♠'; font-size:1.4rem; letter-spacing:0; }
.rules-entry { min-height:48px !important; justify-content:center; font-weight:800; }
.screen-rules { align-items:flex-start; }
.rules-screen { width:min(100%,560px); margin:0 auto; padding:4px 0 18px; }
.rules-screen h1 { margin:10px 0 8px; color:#fff1cd; font-size:clamp(1.85rem,8vw,2.5rem); }
.rules-lead { margin:0 0 12px; color:#ded5e4; line-height:1.4; }
.rule-section,.rule-role { border:1px solid rgba(239,201,127,.24); border-radius:16px; background:linear-gradient(135deg,rgba(72,43,64,.72),rgba(35,27,50,.9)); }
.rule-section { margin:8px 0; overflow:hidden; }
.rule-section summary,.rule-role summary { display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; list-style:none; font-weight:850; }
.rule-section summary::-webkit-details-marker,.rule-role summary::-webkit-details-marker { display:none; }
.rule-section summary { padding:14px 15px; color:#ffe6a8; }
.rule-section[open] summary { border-bottom:1px solid rgba(255,255,255,.09); }
.rule-section ol,.rule-copy { margin:0; padding:12px 17px 14px 34px; color:#e7deec; line-height:1.42; }
.rule-copy { padding-left:17px; }
.rule-copy p:last-child { margin-bottom:0; }
.rule-roles { margin:15px 0; }
.rule-roles h2 { margin:0 0 2px; color:#fff0c8; font-size:1.2rem; }
.rule-roles .mini { margin:0 0 8px; }
.rule-role { margin:7px 0; overflow:hidden; }
.rule-role summary { padding:10px 12px; color:#f6edf8; }
.rule-role summary > span:nth-child(2) { display:block; flex:1; min-width:0; }
.rule-role summary b { display:block; line-height:1.08; }
.rule-role summary small { display:block; margin-top:3px; color:#c9bbc9; font-size:.7rem; font-weight:700; line-height:1.05; }
.rule-role-icon { display:grid; width:28px; height:28px; place-items:center; border-radius:9px; background:rgba(255,255,255,.1); font-size:1.1rem; }
.rule-role[open] summary { border-bottom:1px solid rgba(255,255,255,.08); }
.rule-role p { margin:0; padding:10px 12px 12px; color:#ded5e4; font-size:.88rem; line-height:1.4; }
.rules-note { margin:12px 2px; color:#bfb2c7; font-size:.8rem; line-height:1.35; text-align:center; }
.room-card { border-color:rgba(255,210,113,.4); background:linear-gradient(130deg,rgba(91,53,39,.94),rgba(45,27,43,.97)); }
.room-code { text-shadow:0 2px 14px rgba(255,193,84,.28); }
.counter-button { border-color:rgba(236,193,111,.35); background:radial-gradient(circle at 30% 24%,#66415a,#2d203a 72%); box-shadow:inset 0 1px rgba(255,255,255,.1),0 4px 9px rgba(0,0,0,.2); }
.counter-button:active { transform:translateY(1px) scale(.96); }
.player-board-panel { border-color:rgba(225,184,108,.27); }
.player-board { gap:8px; }
.seat-tile { min-height:75px; place-items:center; align-content:center; gap:1px; padding:7px 5px 6px; border-color:rgba(240,203,137,.2); border-radius:13px; background:linear-gradient(150deg,rgba(86,50,69,.94),rgba(39,27,49,.96)); box-shadow:inset 0 1px rgba(255,255,255,.07),0 4px 8px rgba(8,3,10,.16); }
.seat-number { position:static; display:block; padding:0; color:#ffe0a0; font-size:1.35rem; font-weight:900; line-height:1; text-shadow:0 1px 6px rgba(0,0,0,.35); }
.seat-tile b { max-width:100%; padding:0; color:#fff6e8; font-size:.76rem; font-weight:800; line-height:1.1; }
.seat-tile small { color:#cbbdcc; font-size:.57rem; }
.seat-tag { top:4px; right:4px; border:1px solid rgba(220,205,255,.2); border-radius:6px; padding:1px 3px; color:#eee8ff; background:rgba(82,62,125,.88); font-size:.53rem; }
.seat-remove { right:4px; bottom:4px; width:22px; height:22px; border:1px solid rgba(255,214,214,.65); border-radius:50%; color:#fff; background:radial-gradient(circle at 35% 28%,#f47d83,#9f2f41 74%); box-shadow:0 3px 7px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.34); font-size:1rem; font-weight:900; transition:transform .16s ease,filter .16s ease; }
.seat-remove:hover { filter:brightness(1.12); transform:scale(1.08); }
.seat-remove span { display:block; line-height:.8; transform:translateY(-.5px); }
.voice-setup { border-color:rgba(241,193,102,.28); }
.preview-button { width:100%; min-height:40px; margin-top:8px; }
.narrator-title { margin:13px 0 7px !important; color:#ffe5ab; font-size:.96rem !important; }
.narrator-grid { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.narrator-choice { min-height:54px; padding:7px 8px; border:1px solid rgba(225,192,151,.18); border-radius:11px; color:#eee7ed; background:rgba(19,10,23,.34); text-align:left; cursor:pointer; transition:border-color .16s ease,background .16s ease,transform .16s ease; }
.narrator-choice:hover,.narrator-choice.active { border-color:rgba(255,205,108,.72); background:linear-gradient(145deg,rgba(111,66,61,.8),rgba(62,38,71,.86)); transform:translateY(-1px); }
.narrator-choice b,.narrator-choice small { display:block; }
.narrator-choice b { color:#ffe3a4; font-size:.76rem; }
.narrator-choice small { margin-top:2px; color:#d3c9d4; font-size:.59rem; line-height:1.12; }
.room-input { letter-spacing:.13em; text-transform:uppercase; }
.phase-screen { border-color:rgba(247,205,127,.3); background:linear-gradient(145deg,rgba(61,35,62,.95),rgba(26,17,36,.98)); }
@media (max-width:380px), (max-height:640px) {
  .mode-choice { min-height:70px; padding:11px 14px; }
  .seat-tile { min-height:66px; }
  .seat-number { font-size:1.16rem; }
  .narrator-choice { min-height:48px; }
  .narrator-choice small { font-size:.54rem; }
}
