:root {
  --bg: #171411;
  --bg-2: #211c18;
  --panel: rgba(245, 238, 227, 0.075);
  --panel-strong: rgba(245, 238, 227, 0.12);
  --line: rgba(245, 238, 227, 0.13);
  --text: #f2ece2;
  --muted: #a9a096;
  --cream: #e9ddc9;
  --accent: #b94f47;
  --accent-2: #7f302c;
  --green: #8cab80;
  --gold: #d1ad6d;
  --shadow: 0 28px 90px rgba(0,0,0,.33);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:radial-gradient(circle at 12% 10%,#2d2520 0,transparent 34%),radial-gradient(circle at 90% 85%,#251817 0,transparent 32%),var(--bg);color:var(--text)}
body{min-height:100vh;overflow-x:hidden}
button,input,select{font:inherit}
button{color:inherit}
.noise{position:fixed;inset:0;pointer-events:none;opacity:.18;mix-blend-mode:soft-light;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");z-index:0}
.shell{width:min(1180px,calc(100% - 40px));margin:0 auto}.shell-wide{width:min(1480px,calc(100% - 34px));margin:0 auto}
.hidden{display:none!important}.muted{color:var(--muted)}.tiny{font-size:11px;letter-spacing:.04em}.eyebrow{font-size:11px;letter-spacing:.18em;font-weight:800;color:#b8ad9f}.glass{background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.038));border:1px solid var(--line);box-shadow:var(--shadow);backdrop-filter:blur(18px);border-radius:28px}.glass-subtle{background:rgba(255,255,255,.045);border:1px solid var(--line);backdrop-filter:blur(12px)}
.brand-row{display:flex;align-items:center;gap:13px}.brand-row.compact{gap:9px}.brand-mark{width:42px;height:42px;border:1px solid rgba(233,221,201,.34);border-radius:13px;display:grid;place-items:center;font-family:Georgia,serif;font-size:22px;color:var(--cream);background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.025))}.compact .brand-mark{width:36px;height:36px;border-radius:11px}.brand-name{font-family:Georgia,"Times New Roman",serif;font-size:20px;letter-spacing:.12em}.version{color:var(--muted);font-size:9px;letter-spacing:.16em;margin-top:2px}
.landing{min-height:100vh;display:grid;grid-template-columns:1.22fr .78fr;gap:70px;align-items:center;padding:58px 0;position:relative;z-index:1}.hero{position:relative;min-height:690px;padding:28px 0}.hero-copy{margin-top:95px;max-width:730px}.hero h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(58px,7vw,108px);line-height:.88;letter-spacing:-.055em;margin:18px 0 26px}.hero h1 span{color:#bda58d}.hero p{font-size:19px;line-height:1.55;color:#b8afa5;max-width:650px}.hero-pills{display:flex;flex-wrap:wrap;gap:9px;margin-top:32px}.hero-pills span{border:1px solid var(--line);background:rgba(255,255,255,.035);border-radius:999px;padding:9px 13px;font-size:12px;color:#d0c5b9}.entry-panel{padding:28px;max-width:470px;justify-self:end;width:100%}.tabs{display:grid;grid-template-columns:1fr 1fr;background:rgba(0,0,0,.18);border:1px solid var(--line);padding:5px;border-radius:14px;margin-bottom:30px}.tab{border:0;background:transparent;padding:11px;border-radius:10px;color:var(--muted);cursor:pointer}.tab.active{background:var(--cream);color:#1e1915;font-weight:800}.entry-form{display:none}.entry-form.active{display:grid;gap:20px}.entry-form label{display:grid;gap:8px;font-size:12px;font-weight:700;color:#c3b9ae}.entry-form input,.entry-form select{width:100%;background:#1b1714;border:1px solid var(--line);color:var(--text);padding:15px 16px;border-radius:13px;outline:none}.entry-form input:focus,.entry-form select:focus{border-color:rgba(233,221,201,.55);box-shadow:0 0 0 3px rgba(233,221,201,.06)}.code-input{text-transform:uppercase;letter-spacing:.28em;font-weight:800}.primary{border:0;background:var(--cream);color:#1f1a16;border-radius:13px;padding:13px 17px;font-weight:900;cursor:pointer;display:flex;justify-content:center;gap:10px;align-items:center}.primary:hover{transform:translateY(-1px);filter:brightness(1.04)}.primary.big{padding:16px 20px;font-size:15px}.primary.red{background:#c05850;color:white}.primary.green{background:#98b88c;color:#152011}.ghost{border:1px solid var(--line);background:rgba(255,255,255,.03);border-radius:11px;padding:10px 13px;cursor:pointer}.ghost:hover{background:rgba(255,255,255,.075)}.small{font-size:12px}.danger-text{color:#d78983}.microcopy{margin:0;text-align:center;color:#817970;font-size:11px}.mini-table{position:absolute;right:20px;bottom:10px;width:210px;height:210px;border:1px solid rgba(233,221,201,.12);border-radius:50%;opacity:.42}.mini-center{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);font-family:Georgia,serif;font-size:12px;letter-spacing:.2em}.mini-table i{position:absolute;width:14px;height:14px;border-radius:50%;background:#d0bc9e;left:calc(50% - 7px);top:calc(50% - 7px);transform:rotate(var(--a)) translateY(-102px)}
.topbar{height:76px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;position:relative;z-index:3}.topbar>button:last-child{justify-self:end}.room-meta{display:flex;align-items:center;gap:10px;font-size:12px}.room-code{border:0;background:transparent;color:var(--cream);font-weight:900;letter-spacing:.22em;font-size:14px;cursor:pointer}
.game{min-height:100vh;position:relative;z-index:1}.game-layout{display:grid;grid-template-columns:275px minmax(620px,1fr) 275px;gap:18px;padding-bottom:26px;align-items:start}.side-panel{padding:18px;min-height:560px;position:sticky;top:16px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.status-chip{font-size:10px;padding:6px 8px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid var(--line);color:#cbbeb1}.status-chip.alive{color:#b9d4af;border-color:rgba(140,171,128,.28)}.status-chip.dead{color:#d58f89;border-color:rgba(185,79,71,.28)}.role-card{display:grid;grid-template-columns:54px 1fr;gap:13px;padding:16px;border:1px solid var(--line);border-radius:18px;background:rgba(0,0,0,.15)}.role-symbol{width:54px;height:54px;border-radius:15px;display:grid;place-items:center;background:rgba(233,221,201,.08);font-family:Georgia,serif;font-size:26px}.role-card h3{margin:3px 0 4px;font:400 23px/1 Georgia,serif}.role-card p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}.role-card.mafia{border-color:rgba(185,79,71,.35);background:linear-gradient(145deg,rgba(185,79,71,.14),rgba(0,0,0,.16))}.role-card.town{border-color:rgba(140,171,128,.25)}.private-messages{display:grid;gap:8px;margin-top:12px}.message{font-size:11px;line-height:1.45;padding:10px 11px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.03)}.message.danger{border-color:rgba(185,79,71,.38)}.message.success{border-color:rgba(140,171,128,.32)}
.table-stage{min-width:0}.phasebar{display:flex;justify-content:space-between;align-items:end;padding:8px 18px 14px}.phasebar h2{font:400 31px/1.1 Georgia,serif;margin:4px 0 0}.timer{font:400 28px/1 Georgia,serif;color:var(--cream);font-variant-numeric:tabular-nums}.table-wrap{position:relative;min-height:640px;display:grid;place-items:center}.table-surface{width:min(72vw,710px);aspect-ratio:1.55/1;border-radius:50%;position:relative;background:radial-gradient(ellipse at 50% 35%,#393129 0,#2b241f 46%,#171311 100%);box-shadow:inset 0 0 0 1px rgba(233,221,201,.12),inset 0 -25px 70px rgba(0,0,0,.38),0 55px 100px rgba(0,0,0,.4)}.table-rim{position:absolute;inset:-10px;border:2px solid rgba(203,179,143,.24);border-radius:50%;box-shadow:0 0 0 10px rgba(0,0,0,.15)}.table-center{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);text-align:center;width:45%}.center-icon{font-size:22px;color:#c8b69e;margin-bottom:8px}.center-title{font-family:Georgia,serif;font-size:34px;letter-spacing:.14em}.center-text{font-size:11px;line-height:1.4;color:var(--muted);margin:7px auto 10px;max-width:260px}.player-count{display:inline-flex;padding:6px 9px;border:1px solid var(--line);border-radius:999px;font-size:10px;color:#cbbeb0}.seats{position:absolute;inset:0;pointer-events:none}.seat{--radius:300px;position:absolute;left:50%;top:50%;width:118px;margin-left:-59px;margin-top:-39px;transform:rotate(var(--angle)) translateY(calc(var(--radius) * -1)) rotate(calc(var(--angle) * -1));display:grid;justify-items:center;gap:5px;pointer-events:auto}.seat-avatar{width:68px;height:68px;border-radius:22px;background:linear-gradient(145deg,#3b332d,#221d19);border:1px solid rgba(233,221,201,.17);display:grid;place-items:center;font:400 24px Georgia,serif;box-shadow:0 12px 28px rgba(0,0,0,.32);position:relative}.seat.ready .seat-avatar:after{content:'✓';position:absolute;right:-4px;bottom:-4px;width:20px;height:20px;display:grid;place-items:center;background:#78956f;border:2px solid var(--bg);border-radius:50%;font:bold 10px sans-serif}.seat.dead{filter:grayscale(1);opacity:.43}.seat.self .seat-avatar{border-color:#d2b990;box-shadow:0 0 0 3px rgba(210,185,144,.08),0 12px 28px rgba(0,0,0,.32)}.seat-name{font-size:11px;font-weight:800;max-width:112px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:rgba(18,15,13,.82);padding:5px 8px;border:1px solid var(--line);border-radius:999px}.seat-host{color:var(--gold);font-size:9px;margin-left:3px}.resolution{padding:12px 15px;border-radius:14px;color:#c8bdb0;font-size:12px;line-height:1.45;text-align:center;margin:0 auto 12px;max-width:780px}.action-area{display:grid;gap:11px;padding:0 18px 10px;max-width:860px;margin:auto}.action-row{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.target-btn{border:1px solid var(--line);background:rgba(255,255,255,.045);border-radius:12px;padding:10px 12px;cursor:pointer;font-size:12px}.target-btn:hover{background:rgba(255,255,255,.09);border-color:rgba(233,221,201,.28)}.action-title{text-align:center;font-size:12px;color:#d2c5b8;font-weight:800}.action-note{text-align:center;font-size:10px;color:var(--muted)}
.player-list{display:grid;gap:8px}.player-line{display:grid;grid-template-columns:30px 1fr auto;gap:9px;align-items:center;padding:8px;border-radius:12px;border:1px solid transparent}.player-line:hover{background:rgba(255,255,255,.025);border-color:var(--line)}.player-line.dead{opacity:.42}.small-avatar{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:rgba(255,255,255,.055);font:400 12px Georgia,serif}.player-line strong{font-size:11px}.player-line small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.ready-dot{width:8px;height:8px;border-radius:50%;background:#544c45}.ready-dot.on{background:#82a177;box-shadow:0 0 0 4px rgba(130,161,119,.08)}.host-settings{border-top:1px solid var(--line);margin-top:16px;padding-top:14px;display:grid;gap:10px}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;color:#b6aa9e}.setting-row input[type=checkbox]{accent-color:#d6c1a1}.setting-row input[type=number]{width:64px;padding:6px 7px;border-radius:8px;border:1px solid var(--line);background:#1b1714;color:var(--text)}.host-controls{display:grid;gap:8px;margin-top:14px}.host-controls button{width:100%}.toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:20;background:#eee3d2;color:#1d1814;padding:11px 16px;border-radius:12px;font-size:12px;font-weight:800;box-shadow:0 14px 40px rgba(0,0,0,.35)}
@media(max-width:1180px){.game-layout{grid-template-columns:220px minmax(540px,1fr) 220px}.seat{--radius:265px}.table-wrap{min-height:580px}.side-panel{padding:14px}.hero h1{font-size:78px}}
@media(max-width:940px){.landing{grid-template-columns:1fr;gap:20px;padding:28px 0}.hero{min-height:auto}.hero-copy{margin-top:55px}.entry-panel{justify-self:stretch;max-width:none;margin-bottom:40px}.mini-table{display:none}.game-layout{display:flex;flex-direction:column}.side-panel{position:static;width:100%;min-height:0}.table-stage{width:100%;order:-1}.table-wrap{min-height:600px}.seat{--radius:270px}.topbar{grid-template-columns:1fr auto}.topbar .room-meta{display:none}}
@media(max-width:680px){.shell,.shell-wide{width:min(100% - 20px,100%)}.hero h1{font-size:56px}.hero p{font-size:16px}.table-wrap{min-height:510px;overflow:hidden}.table-surface{width:430px}.seat{--radius:205px;width:92px;margin-left:-46px}.seat-avatar{width:54px;height:54px;border-radius:17px}.seat-name{font-size:9px;max-width:88px}.phasebar h2{font-size:25px}.game-layout{gap:10px}.topbar{height:64px}.role-card{grid-template-columns:46px 1fr}.role-symbol{width:46px;height:46px}.center-title{font-size:26px}}

/* v0.1.1 — moderator flow + solo dev */
.seat.speaking{z-index:8}.seat.speaking .seat-avatar{transform:scale(1.16);box-shadow:0 0 0 4px rgba(209,173,109,.22),0 0 34px rgba(209,173,109,.28);border-color:rgba(209,173,109,.9)}
.seat.moderator .seat-avatar{border-color:rgba(209,173,109,.62);background:linear-gradient(145deg,rgba(209,173,109,.2),rgba(255,255,255,.04))}.seat-host{color:var(--gold);font-size:9px;margin-left:5px}.speaking-line{background:rgba(209,173,109,.07)!important;border-color:rgba(209,173,109,.2)!important}
.moderator-card{border-color:rgba(209,173,109,.25)!important;background:linear-gradient(145deg,rgba(209,173,109,.12),rgba(255,255,255,.035))!important}.moderator-card .role-symbol{color:var(--gold)}
.role-sheet,.mafia-board{margin-top:12px;border:1px solid var(--line);background:rgba(0,0,0,.16);border-radius:15px;padding:12px}.role-sheet>div:not(.eyebrow),.mafia-board>div:not(.eyebrow){display:flex;justify-content:space-between;gap:14px;padding:7px 0;border-bottom:1px solid rgba(255,255,255,.055);font-size:12px}.role-sheet>div:last-child,.mafia-board>div:last-child{border-bottom:0}.role-sheet strong,.mafia-board strong{color:#ded2c4;font-weight:700}
.night-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0 14px}.night-progress>div{padding:11px;border:1px solid var(--line);background:rgba(0,0,0,.14);border-radius:13px;display:grid;gap:4px}.night-progress span{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.night-progress strong{font-size:16px}
.nomination-list{display:grid;gap:7px;margin:10px 0}.nomination-row{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.035)}.nomination-row strong{color:var(--gold);font-size:12px}.target-btn.selected{border-color:rgba(209,173,109,.7)!important;background:rgba(209,173,109,.12)!important}
.dev-panel,.admin-settings{display:grid;gap:10px}.dev-panel{padding:12px;border:1px dashed rgba(209,173,109,.34);border-radius:16px;background:rgba(209,173,109,.055);margin-bottom:14px}.dev-panel select,.admin-settings select,.admin-settings input[type=number]{background:#1b1714;border:1px solid var(--line);color:var(--text);padding:9px 10px;border-radius:10px;max-width:145px}.dev-buttons{display:flex;gap:7px;flex-wrap:wrap}.dev-toggle{margin-top:4px}.microcopy{font-size:10px;color:var(--muted);line-height:1.45}.host-phase{font-family:Georgia,"Times New Roman",serif;font-size:22px;margin-top:5px}.timer.expired{color:#df8b83;animation:timerpulse 1.3s ease-in-out infinite}@keyframes timerpulse{50%{opacity:.48}}
.status-chip.dead{border-color:rgba(185,79,71,.32);color:#d88d87}
@media(max-width:900px){.night-progress{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.1.2 — public vote board, defense/revote and last word */
.vote-live{margin-top:14px;border:1px solid var(--line);border-radius:16px;background:rgba(0,0,0,.18);padding:12px;display:grid;gap:10px}
.vote-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:7px}
.vote-count-row{display:flex;justify-content:space-between;align-items:center;padding:9px 10px;border:1px solid rgba(255,255,255,.06);border-radius:11px;background:rgba(255,255,255,.025);font-size:11px}
.vote-count-row strong{font:400 19px Georgia,serif;color:#ddd0bf}.vote-count-row.leader{border-color:rgba(209,173,109,.42);background:rgba(209,173,109,.075)}
.vote-ledger{display:grid;gap:5px;padding-top:2px}.vote-ledger-row{display:grid;grid-template-columns:minmax(80px,1fr) 18px minmax(110px,1fr) auto;gap:7px;align-items:center;padding:7px 8px;border-radius:10px;background:rgba(255,255,255,.025);font-size:10px}.vote-ledger-row strong{font-size:10px;color:#dfd4c8}.vote-ledger-row em{font-style:normal;font-size:8px;text-transform:uppercase;letter-spacing:.08em;color:var(--gold);border:1px solid rgba(209,173,109,.25);border-radius:999px;padding:3px 5px}.vote-arrow{color:var(--muted);text-align:center}
.target-btn:disabled{opacity:.55;cursor:not-allowed}.target-btn.selected:disabled{opacity:1}

/* v0.1.3 — stream-safe one-screen layout + always-visible public decision board */
.game:not(.hidden){height:100svh;min-height:0;display:grid;grid-template-rows:60px minmax(0,1fr);overflow:hidden}
.game:not(.hidden) .topbar{height:60px}
.game:not(.hidden) .game-layout{height:100%;min-height:0;grid-template-columns:clamp(190px,16vw,250px) minmax(0,1fr) clamp(190px,16vw,250px);gap:12px;padding:0 0 10px;align-items:stretch;overflow:hidden}
.game:not(.hidden) .side-panel{position:relative;top:auto;height:100%;min-height:0;padding:12px;border-radius:20px;overflow:hidden}
.game:not(.hidden) .panel-head{margin-bottom:10px}
.game:not(.hidden) .role-card{grid-template-columns:44px 1fr;gap:10px;padding:11px;border-radius:14px}
.game:not(.hidden) .role-symbol{width:44px;height:44px;border-radius:12px;font-size:22px}
.game:not(.hidden) .role-card h3{font-size:19px}
.game:not(.hidden) .role-card p{font-size:9px;line-height:1.35}
.game:not(.hidden) .private-messages{gap:5px;margin-top:8px}
.game:not(.hidden) .message{padding:7px 8px;font-size:9px}
.game:not(.hidden) .role-sheet{margin-top:8px;padding:8px;border-radius:12px;display:grid;grid-template-columns:1fr 1fr;column-gap:8px}
.game:not(.hidden) .role-sheet>.eyebrow{grid-column:1/-1;margin-bottom:3px}
.game:not(.hidden) .role-sheet>div:not(.eyebrow){padding:4px 0;font-size:9px;min-width:0}
.game:not(.hidden) .role-sheet>div:not(.eyebrow) span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.game:not(.hidden) .table-stage{min-width:0;min-height:0;height:100%;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;overflow:hidden}
.game:not(.hidden) .phasebar{padding:4px 10px 6px;align-items:center;min-height:48px}
.game:not(.hidden) .phasebar h2{font-size:clamp(22px,2.2vw,29px);margin-top:2px}
.game:not(.hidden) .phasebar .eyebrow{font-size:9px}
.game:not(.hidden) .timer{font-size:24px}
.public-board{margin:0 8px 6px;padding:8px 10px;border:1px solid rgba(209,173,109,.24);border-radius:14px;background:linear-gradient(180deg,rgba(209,173,109,.075),rgba(0,0,0,.16));box-shadow:0 12px 30px rgba(0,0,0,.16);display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"head head" "candidates ledger";gap:6px 10px;max-height:128px;overflow:hidden}
.public-board-head{grid-area:head;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.public-board-head .eyebrow{font-size:9px;color:#d7bd91}
.public-board-meta{font-size:9px;color:var(--muted);white-space:nowrap}
.public-candidates{grid-area:candidates;display:flex;gap:6px;align-items:stretch;flex-wrap:wrap;min-width:150px}
.public-candidate{min-width:92px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:7px;align-items:center;padding:6px 8px;border-radius:10px;border:1px solid rgba(255,255,255,.075);background:rgba(255,255,255,.03)}
.public-candidate span{font-size:10px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.public-candidate strong{grid-row:1/3;grid-column:2;font:400 21px/1 Georgia,serif;color:#eee1cf}
.public-candidate small{font-size:8px;color:var(--muted)}
.public-candidate.leader{border-color:rgba(209,173,109,.65);background:rgba(209,173,109,.12);box-shadow:inset 0 0 0 1px rgba(209,173,109,.1)}
.public-ledger{grid-area:ledger;display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:4px;align-content:start;min-width:0;overflow:hidden}
.public-vote{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;gap:4px;align-items:center;padding:4px 6px;border-radius:8px;background:rgba(255,255,255,.022);font-size:8px;color:#7f776f;min-width:0}
.public-vote.cast{color:#bdb2a6;background:rgba(255,255,255,.04)}
.public-vote span,.public-vote strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.public-vote strong{font-size:8px;color:#e0d4c6}.public-vote b{font-weight:400;color:#786f66}.public-vote em{font-style:normal;color:var(--gold);font-size:10px}
.game:not(.hidden) .table-wrap{min-height:0;height:100%;overflow:visible;display:grid;place-items:center}
.game:not(.hidden) .table-surface{width:min(47vw,64vh,680px);max-width:100%;box-shadow:inset 0 0 0 1px rgba(233,221,201,.12),inset 0 -18px 50px rgba(0,0,0,.38),0 28px 70px rgba(0,0,0,.34)}
.game:not(.hidden) .seat{--radius:min(23vw,26vh,280px);width:92px;margin-left:-46px;margin-top:-31px;gap:3px}
.game:not(.hidden) .seat-avatar{width:54px;height:54px;border-radius:17px;font-size:20px}
.game:not(.hidden) .seat-name{font-size:9px;max-width:88px;padding:4px 6px}
.game:not(.hidden) .table-center{width:48%}
.game:not(.hidden) .center-icon{font-size:17px;margin-bottom:4px}
.game:not(.hidden) .center-title{font-size:clamp(23px,2.4vw,31px)}
.game:not(.hidden) .center-text{font-size:9px;margin:4px auto 6px;line-height:1.25}
.game:not(.hidden) .player-count{padding:4px 7px;font-size:8px}
.game:not(.hidden) .resolution{padding:7px 10px;margin:4px auto 5px;font-size:9px;line-height:1.25;border-radius:10px;max-width:720px;min-height:30px;display:grid;place-items:center}
.game:not(.hidden) .action-area{gap:6px;padding:0 8px 4px;max-width:780px;max-height:112px;overflow:hidden}
.game:not(.hidden) .action-row{gap:6px}
.game:not(.hidden) .target-btn{padding:7px 9px;border-radius:9px;font-size:10px}
.game:not(.hidden) .action-title{font-size:10px}.game:not(.hidden) .action-note{font-size:8px;line-height:1.3}
.game:not(.hidden) .player-list{gap:2px}
.game:not(.hidden) .player-line{grid-template-columns:25px 1fr auto;gap:6px;padding:4px 5px;border-radius:9px}
.game:not(.hidden) .small-avatar{width:25px;height:25px;border-radius:7px;font-size:10px}
.game:not(.hidden) .player-line strong{font-size:9px}.game:not(.hidden) .player-line small{font-size:7px;margin-top:0}
.game:not(.hidden) .host-settings{margin-top:8px;padding-top:8px;gap:6px}
.game:not(.hidden) .host-controls{gap:5px;margin-top:8px}
.game:not(.hidden) .host-controls button{padding:8px 9px;font-size:10px}
.game:not(.hidden) .host-phase{font-size:17px}
.game:not(.hidden) .night-progress{gap:4px;margin:6px 0 8px}.game:not(.hidden) .night-progress>div{padding:7px}.game:not(.hidden) .night-progress span{font-size:8px}.game:not(.hidden) .night-progress strong{font-size:13px}
.game:not(.hidden) .mafia-board{margin-top:6px;padding:8px}.game:not(.hidden) .mafia-board>div:not(.eyebrow){padding:4px 0;font-size:9px}
.game:not(.hidden) .dev-panel{padding:8px;margin-bottom:6px;gap:6px}.game:not(.hidden) .admin-settings{gap:5px}.game:not(.hidden) .setting-row{font-size:8px}.game:not(.hidden) .setting-row input[type=number]{width:54px;padding:4px 5px}.game:not(.hidden) .admin-settings select{padding:5px 6px;font-size:8px;max-width:120px}
.room-code{cursor:default;user-select:none;letter-spacing:.28em;color:#8f867c}

@media(max-height:820px) and (min-width:941px){
  .game:not(.hidden){grid-template-rows:54px minmax(0,1fr)}
  .game:not(.hidden) .topbar{height:54px}
  .game:not(.hidden) .brand-mark{width:30px;height:30px}.game:not(.hidden) .brand-name{font-size:16px}
  .game:not(.hidden) .table-surface{width:min(45vw,60vh,600px)}
  .game:not(.hidden) .seat{--radius:min(22vw,24vh,235px)}
  .game:not(.hidden) .seat-avatar{width:48px;height:48px;border-radius:15px}
  .public-board{max-height:108px;padding:6px 8px}.public-vote{padding:3px 5px}.public-candidate{padding:5px 7px}.public-candidate strong{font-size:18px}
  .game:not(.hidden) .action-area{max-height:96px}.game:not(.hidden) .resolution{min-height:26px;padding:5px 8px}
}

/* v0.1.4 — readable one-screen phase UI */
:root{
  --ui-base:16px;
  --ui-small:13px;
  --ui-tiny:12px;
}
body{font-size:var(--ui-base)}
.game:not(.hidden){grid-template-rows:66px minmax(0,1fr);overflow:hidden}
.game:not(.hidden) .topbar{height:66px;padding:0 2px}
.game:not(.hidden) .shell-wide{width:min(1560px,calc(100% - 28px))}
.game:not(.hidden) .brand-name{font-size:22px}
.game:not(.hidden) .version{font-size:10px;letter-spacing:.13em}
.game:not(.hidden) .brand-mark{width:38px;height:38px;font-size:23px}
.game:not(.hidden) .room-meta{font-size:14px;gap:12px}
.game:not(.hidden) .room-code{font-size:16px}
.game:not(.hidden) .ghost.small{font-size:13px;padding:9px 12px}

.game:not(.hidden) .game-layout{
  height:100%;
  min-height:0;
  grid-template-columns:240px minmax(0,1fr) 280px;
  gap:16px;
  padding:8px 0 14px;
  align-items:stretch;
  overflow:hidden;
}
.game:not(.hidden) .side-panel{
  min-height:0;
  padding:16px;
  border-radius:22px;
  overflow:hidden;
}
.game:not(.hidden) #leftPanel{height:auto!important;max-height:100%;align-self:start}
.game:not(.hidden) #rightPanel{height:100%!important;display:flex;flex-direction:column}
.game:not(.hidden) .panel-head{margin-bottom:14px}
.game:not(.hidden) .panel-head .eyebrow{font-size:12px;letter-spacing:.15em}
.panel-title-stack{display:grid;gap:4px}.panel-subtitle{font-size:13px;color:var(--muted)}
.right-panel-head{min-height:42px}
.icon-button{width:36px;height:36px;border:1px solid var(--line);background:rgba(255,255,255,.035);border-radius:11px;color:var(--cream);display:grid;place-items:center;cursor:pointer;font-size:18px;line-height:1}
.icon-button:hover{background:rgba(255,255,255,.085);border-color:rgba(233,221,201,.27)}
.status-chip{font-size:12px;padding:6px 9px}

.game:not(.hidden) .role-card{grid-template-columns:52px minmax(0,1fr);gap:12px;padding:14px;border-radius:16px}
.game:not(.hidden) .role-symbol{width:52px;height:52px;border-radius:14px;font-size:25px}
.game:not(.hidden) .role-card .tiny{font-size:11px}
.game:not(.hidden) .role-card h3{font-size:23px;margin:4px 0 6px}
.game:not(.hidden) .role-card p{font-size:13px;line-height:1.42}
.game:not(.hidden) .private-messages{gap:7px;margin-top:10px}
.game:not(.hidden) .message{padding:9px 10px;font-size:12px;line-height:1.4}
.message-more{font-size:11px;color:var(--muted);text-align:center;padding-top:2px}
.game:not(.hidden) .role-sheet{margin-top:10px;padding:10px;border-radius:13px;grid-template-columns:1fr;max-height:360px;overflow:hidden}
.game:not(.hidden) .role-sheet>.eyebrow{font-size:10px}
.game:not(.hidden) .role-sheet>div:not(.eyebrow){padding:5px 0;font-size:11px}

.game:not(.hidden) .table-stage{
  min-width:0;
  min-height:0;
  height:100%;
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr) auto auto;
  overflow:hidden;
}
.game:not(.hidden) .phasebar{padding:2px 12px 10px;min-height:78px;align-items:center}
.phase-copy{min-width:0}.phasebar h2{font-size:clamp(30px,2.3vw,40px)!important;margin-top:3px!important;line-height:1.05!important}
.game:not(.hidden) .phasebar .eyebrow{font-size:12px!important;letter-spacing:.16em}
.phase-hint{font-size:14px;color:var(--muted);margin-top:6px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:820px}
.timer-wrap{display:grid;justify-items:end;gap:4px;min-width:92px}.timer-label{font-size:10px;letter-spacing:.15em;color:#8f857a;font-weight:800}.game:not(.hidden) .timer{font-size:38px!important;line-height:1!important}

.public-board{
  margin:0 8px 8px!important;
  padding:12px 14px!important;
  border-radius:16px!important;
  max-height:176px!important;
  grid-template-columns:minmax(220px,.78fr) minmax(0,1.22fr)!important;
  grid-template-areas:"head head" "candidates ledger"!important;
  gap:9px 14px!important;
}
.public-board-head .eyebrow{font-size:12px!important;letter-spacing:.13em}.public-board-meta{font-size:13px!important}
.public-candidates{gap:8px!important;align-content:start}.public-candidate{min-width:118px!important;padding:9px 10px!important;border-radius:12px!important;column-gap:9px!important}
.public-candidate span{font-size:14px!important}.public-candidate strong{font-size:31px!important}.public-candidate small{font-size:10px!important}
.public-ledger{grid-template-columns:repeat(3,minmax(130px,1fr))!important;gap:6px!important;align-content:start!important;overflow:hidden!important}
.public-vote{padding:6px 8px!important;border-radius:9px!important;font-size:11px!important;grid-template-columns:minmax(0,1fr) 13px minmax(0,1fr) auto!important;gap:5px!important}
.public-vote strong{font-size:11px!important}.public-vote em{font-size:13px!important}

.game:not(.hidden) .table-wrap{min-height:0;height:100%;overflow:visible;display:grid;place-items:center;padding:4px 0}
.game:not(.hidden) .table-surface{width:min(60vw,71vh,840px)!important;max-width:100%;min-width:540px;box-shadow:inset 0 0 0 1px rgba(233,221,201,.13),inset 0 -20px 58px rgba(0,0,0,.38),0 34px 82px rgba(0,0,0,.36)}
.game:not(.hidden) .seat{--radius:min(28vw,29vh,300px)!important;width:112px!important;margin-left:-56px!important;margin-top:-38px!important;gap:5px!important}
.game:not(.hidden) .seat-avatar{width:66px!important;height:66px!important;border-radius:20px!important;font-size:23px!important}
.game:not(.hidden) .seat-name{font-size:12px!important;max-width:108px!important;padding:5px 8px!important}
.game:not(.hidden) .seat.ready .seat-avatar:after{width:21px;height:21px;font-size:11px}
.game:not(.hidden) .seat.speaking .seat-avatar{transform:scale(1.18);box-shadow:0 0 0 5px rgba(209,173,109,.2),0 0 38px rgba(209,173,109,.28)}
.game:not(.hidden) .table-center{width:50%}
.game:not(.hidden) .center-icon{font-size:20px!important;margin-bottom:7px!important}
.game:not(.hidden) .center-title{font-size:clamp(31px,2.7vw,43px)!important;letter-spacing:.11em!important}
.game:not(.hidden) .center-text{font-size:13px!important;line-height:1.35!important;margin:7px auto 10px!important;max-width:310px!important}
.game:not(.hidden) .player-count{padding:6px 9px!important;font-size:11px!important}

.game:not(.hidden) .resolution{padding:8px 12px!important;margin:4px auto 6px!important;font-size:13px!important;line-height:1.35!important;border-radius:11px!important;max-width:760px!important;min-height:34px!important}
.game:not(.hidden) .action-area{gap:8px!important;padding:0 10px 4px!important;max-width:900px!important;max-height:124px!important;min-height:56px;overflow:hidden!important;align-content:center}
.game:not(.hidden) .action-row{gap:8px!important;flex-wrap:wrap}
.game:not(.hidden) .target-btn{padding:10px 14px!important;border-radius:10px!important;font-size:14px!important;min-height:40px}
.game:not(.hidden) .action-title{font-size:16px!important;line-height:1.25}.game:not(.hidden) .action-note{font-size:13px!important;line-height:1.35!important}
.moderator-stage-note{display:flex;align-items:center;justify-content:center;gap:9px;text-align:center;font-size:13px;color:var(--muted)}.moderator-stage-note strong{font-size:15px;color:#d8ccbd}.moderator-stage-note span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.game:not(.hidden) .player-list{display:grid;gap:4px;min-height:0;align-content:start;overflow:hidden;flex:1}
.game:not(.hidden) .player-line{grid-template-columns:34px minmax(0,1fr) auto;gap:9px;padding:6px 7px;border-radius:10px;min-height:43px}
.game:not(.hidden) .small-avatar{width:34px;height:34px;border-radius:9px;font-size:13px}
.game:not(.hidden) .player-line strong{font-size:13px;line-height:1.1}.game:not(.hidden) .player-line small{font-size:11px;line-height:1.1;margin-top:3px}
.game:not(.hidden) .player-list.dense{gap:2px}.game:not(.hidden) .player-list.dense .player-line{min-height:35px;padding:3px 5px;grid-template-columns:29px minmax(0,1fr) auto}.game:not(.hidden) .player-list.dense .small-avatar{width:29px;height:29px;font-size:11px}.game:not(.hidden) .player-list.dense .player-line strong{font-size:12px}.game:not(.hidden) .player-list.dense .player-line small{font-size:10px;margin-top:1px}
.game:not(.hidden) .ready-dot{width:9px;height:9px}

.game:not(.hidden) .host-controls{margin-top:auto!important;padding-top:12px;border-top:1px solid var(--line);display:block!important}
.host-control-card{display:grid;gap:9px;padding:12px;border:1px solid rgba(209,173,109,.18);background:linear-gradient(160deg,rgba(209,173,109,.075),rgba(255,255,255,.025));border-radius:15px}
.host-control-kicker{font-size:10px;letter-spacing:.15em;font-weight:900;color:#bfa77f}.host-control-card>strong{font:400 21px/1.12 Georgia,serif;color:#eee3d4}.host-control-card>span,.host-control-helper{font-size:12px;line-height:1.35;color:var(--muted)}
.host-control-actions{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px}.host-control-actions:has(.host-primary:only-child){grid-template-columns:1fr}.host-control-actions .ghost,.host-control-actions .primary{min-height:42px;font-size:13px;padding:10px 11px}.host-primary{width:100%;min-height:44px;font-size:14px}.lobby-control{margin-top:2px}.host-night-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px}.host-night-grid span{display:flex;justify-content:space-between;gap:8px;padding:6px 7px;border:1px solid rgba(255,255,255,.06);border-radius:8px;background:rgba(0,0,0,.12);font-size:11px;color:#b9aea2}.host-night-grid b{color:#e7dbc9}

.modal-backdrop{position:fixed;inset:0;z-index:40;background:rgba(11,9,8,.66);backdrop-filter:blur(8px);display:grid;place-items:center;padding:24px}
.settings-modal{width:min(820px,calc(100vw - 48px));max-height:min(760px,calc(100svh - 48px));overflow:auto;padding:22px 24px;border-radius:24px}
.settings-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:15px;border-bottom:1px solid var(--line);margin-bottom:16px}.settings-modal-head h2{font:400 31px/1.05 Georgia,serif;margin:5px 0 0}.settings-modal .host-settings{display:grid!important;gap:14px!important;border:0!important;margin:0!important;padding:0!important}.settings-modal .admin-settings{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px}.settings-span{grid-column:1/-1}.settings-modal .setting-row{min-height:44px;padding:7px 9px;border:1px solid rgba(255,255,255,.065);border-radius:11px;background:rgba(255,255,255,.025);font-size:13px;color:#c2b7aa}.settings-modal .setting-row select{max-width:190px!important;padding:8px 9px!important;font-size:12px!important}.settings-modal .setting-row input[type=number]{width:58px!important;padding:7px 7px!important;font-size:13px!important}.number-field{display:flex;align-items:center;gap:6px}.number-field b{font-size:10px;color:#857c73;font-weight:700}.settings-modal .dev-panel{margin:0!important;padding:12px 14px!important;grid-template-columns:auto 180px 1fr;align-items:center}.settings-modal .dev-panel .eyebrow{font-size:10px}.settings-modal .dev-panel select{max-width:180px!important}.settings-modal .dev-panel .microcopy{text-align:left;margin:0}.settings-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:5px}.settings-actions>.primary{min-width:220px}.settings-actions .dev-buttons{justify-content:flex-end}

/* Phase emphasis: the game changes visually without moving the shell. */
body[data-phase="night"] .table-surface{background:radial-gradient(ellipse at 50% 35%,#292b32 0,#1d2026 50%,#101116 100%)}
body[data-phase="night"] .phasebar .eyebrow,body[data-phase="night"] .center-icon{color:#9aa6c7}
body[data-phase="voting"] .public-board,body[data-phase="revoting"] .public-board{border-color:rgba(209,173,109,.44);box-shadow:0 18px 44px rgba(0,0,0,.22),inset 0 0 40px rgba(209,173,109,.035)}
body[data-phase="last_word"] .seat:not(.speaking){opacity:.46}
body[data-phase="intro"] .seat:not(.speaking),body[data-phase="speeches"] .seat:not(.speaking),body[data-phase="defense"] .seat:not(.speaking){transition:opacity .2s ease}.seat.speaking{opacity:1!important}

@media(max-height:820px) and (min-width:941px){
  .game:not(.hidden){grid-template-rows:58px minmax(0,1fr)}
  .game:not(.hidden) .topbar{height:58px}
  .game:not(.hidden) .game-layout{grid-template-columns:224px minmax(0,1fr) 260px;gap:12px;padding-top:5px}
  .game:not(.hidden) .phasebar{min-height:66px}.phasebar h2{font-size:30px!important}.phase-hint{font-size:12px}.game:not(.hidden) .timer{font-size:32px!important}
  .public-board{max-height:148px!important;padding:9px 11px!important}.public-candidate{min-width:105px!important;padding:7px 8px!important}.public-candidate span{font-size:12px!important}.public-candidate strong{font-size:26px!important}.public-vote{font-size:10px!important;padding:5px 6px!important}.public-vote strong{font-size:10px!important}
  .game:not(.hidden) .table-surface{width:min(56vw,66vh,760px)!important;min-width:500px}.game:not(.hidden) .seat{--radius:min(26vw,26vh,260px)!important}.game:not(.hidden) .seat-avatar{width:58px!important;height:58px!important}.game:not(.hidden) .seat-name{font-size:11px!important}
  .game:not(.hidden) .action-area{max-height:104px!important}.game:not(.hidden) .target-btn{padding:8px 11px!important;font-size:13px!important;min-height:36px}.game:not(.hidden) .action-title{font-size:14px!important}.game:not(.hidden) .action-note{font-size:12px!important}
  .game:not(.hidden) .player-line{min-height:38px;padding:4px 6px}.game:not(.hidden) .small-avatar{width:30px;height:30px}.game:not(.hidden) .player-line strong{font-size:12px}.game:not(.hidden) .player-line small{font-size:10px}
  .host-control-card{padding:10px;gap:7px}.host-control-card>strong{font-size:19px}.host-control-helper{font-size:11px}
}

@media(max-width:1250px) and (min-width:941px){
  .game:not(.hidden) .game-layout{grid-template-columns:210px minmax(0,1fr) 240px;gap:10px}
  .game:not(.hidden) .table-surface{min-width:480px;width:min(58vw,68vh,720px)!important}
  .game:not(.hidden) .seat{--radius:min(25vw,27vh,250px)!important;width:96px!important;margin-left:-48px!important}.game:not(.hidden) .seat-avatar{width:56px!important;height:56px!important}.game:not(.hidden) .seat-name{max-width:92px!important;font-size:10px!important}
}

@media(max-width:940px){
  .game:not(.hidden){height:auto;min-height:100svh;display:block;overflow:auto}
  .game:not(.hidden) .game-layout{display:flex;height:auto;overflow:visible;padding-bottom:20px}
  .game:not(.hidden) .table-stage{order:-1;height:auto;min-height:650px;overflow:visible}
  .game:not(.hidden) #leftPanel,.game:not(.hidden) #rightPanel{height:auto!important;width:100%}
  .phase-hint{white-space:normal}.public-board{grid-template-columns:1fr!important;grid-template-areas:"head" "candidates" "ledger"!important;max-height:none!important}.public-ledger{grid-template-columns:repeat(2,minmax(120px,1fr))!important}
}

/* v0.1.5 — table-first shell, large webcam-ready seats, Night Director, persistent Solo DEV */
.game:not(.hidden) .shell-wide{width:min(1780px,calc(100% - 24px))}
.game:not(.hidden){grid-template-rows:64px minmax(0,1fr)}
.game:not(.hidden) .topbar{height:64px;grid-template-columns:auto minmax(0,1fr) auto auto;gap:16px}
.game:not(.hidden) .game-layout{height:100%;min-height:0;gap:14px;padding:8px 0 12px;overflow:hidden;align-items:stretch}
body.host-view .game:not(.hidden) .game-layout{grid-template-columns:300px minmax(0,1fr) 286px}
body.player-view .game:not(.hidden) .game-layout{grid-template-columns:300px minmax(0,1fr)}
body.player-view .game:not(.hidden) #rightPanel{display:none!important}

.dev-toolbar{justify-self:center;display:flex;align-items:center;gap:7px;padding:5px 7px 5px 10px;border:1px solid rgba(209,173,109,.25);background:rgba(209,173,109,.07);border-radius:12px;min-width:0}
.dev-toolbar-label{font-size:10px;font-weight:900;letter-spacing:.12em;color:#c9b38e;white-space:nowrap}
.dev-toolbar select{background:#191512;border:1px solid var(--line);color:var(--text);padding:7px 28px 7px 9px;border-radius:9px;font-size:12px;max-width:180px}
.dev-arrow{width:31px;height:31px;border:1px solid var(--line);background:rgba(255,255,255,.035);color:var(--cream);border-radius:9px;cursor:pointer;font-size:15px}
.dev-arrow:hover{background:rgba(255,255,255,.08)}

.game-info-panel{display:flex!important;flex-direction:column;gap:11px;height:100%!important;align-self:stretch!important;padding:14px!important}
.game-info-panel .panel-head{margin:0!important;min-height:30px}
.game:not(.hidden) .game-info-panel .role-card{grid-template-columns:46px minmax(0,1fr);gap:10px;padding:11px 12px;border-radius:14px;flex:0 0 auto}
.game:not(.hidden) .game-info-panel .role-symbol{width:46px;height:46px;border-radius:12px;font-size:22px}
.game:not(.hidden) .game-info-panel .role-card h3{font-size:20px;margin:2px 0 4px}
.game:not(.hidden) .game-info-panel .role-card p{font-size:11px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.phase-card{border:1px solid rgba(209,173,109,.19);background:linear-gradient(160deg,rgba(209,173,109,.075),rgba(255,255,255,.022));border-radius:15px;padding:12px;display:grid;gap:8px;flex:0 0 auto}
.phase-card-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start}
.phase-card h2{font:400 24px/1.05 Georgia,serif;margin:4px 0 0;color:#eee3d4}
.phase-card .eyebrow{font-size:10px;letter-spacing:.15em}
.phase-card .phase-hint{font-size:12px;line-height:1.35;white-space:normal;overflow:visible;margin:0;color:#a99f94}
.phase-card .timer-wrap{min-width:70px;justify-items:end}
.phase-card .timer-label{font-size:9px}
.phase-card .timer{font-size:29px!important}
.roster-card{min-height:0;display:flex;flex-direction:column;gap:8px;flex:1;border-top:1px solid var(--line);padding-top:10px}
.roster-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:0 0 auto}
.roster-head .eyebrow{font-size:10px}
.game:not(.hidden) .roster-card .player-list{overflow:hidden;gap:4px;align-content:start;flex:1}
.game:not(.hidden) .roster-card .player-line{grid-template-columns:34px minmax(0,1fr) auto;gap:8px;min-height:42px;padding:5px 6px}
.game:not(.hidden) .roster-card .small-avatar{width:34px;height:34px;border-radius:9px;font-size:12px}
.game:not(.hidden) .roster-card .player-line strong{font-size:12px}
.game:not(.hidden) .roster-card .player-line small{font-size:10px;margin-top:2px}
.player-line-copy{min-width:0}.player-line-copy strong,.player-line-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roster-role{font-size:9px;font-weight:800;color:#d8c39e;border:1px solid rgba(209,173,109,.22);background:rgba(209,173,109,.06);padding:4px 6px;border-radius:999px;white-space:nowrap;max-width:88px;overflow:hidden;text-overflow:ellipsis}
.game-info-panel .private-messages{flex:0 0 auto;margin-top:0!important}

.game:not(.hidden) .table-stage{grid-template-rows:auto minmax(0,1fr) auto auto;height:100%;min-height:0;overflow:hidden}
.game:not(.hidden) .public-board{margin:0 10px 8px!important;max-height:165px!important}
.game:not(.hidden) .table-wrap{height:100%;min-height:0;padding:0 8px;overflow:visible}
.game:not(.hidden) .table-surface{width:min(68vw,78vh,980px)!important;min-width:620px;max-width:calc(100% - 28px);aspect-ratio:1.62/1}
.game:not(.hidden) .table-center{width:60%;max-width:520px}
.game:not(.hidden) .center-title{font-size:clamp(32px,3vw,46px)!important}
.game:not(.hidden) .center-text{font-size:13px!important;max-width:360px!important}
.game:not(.hidden) .player-count{font-size:11px!important}

.game:not(.hidden) .seat{--radius:min(31vw,31vh,315px)!important;width:176px!important;margin-left:-88px!important;margin-top:-56px!important;gap:5px!important}
.seat-video{width:176px;height:99px;border-radius:16px;overflow:hidden;position:relative;border:1px solid rgba(233,221,201,.18);background:linear-gradient(145deg,#352e29,#211c18);box-shadow:0 14px 34px rgba(0,0,0,.34)}
.game:not(.hidden) .seat-avatar{width:100%!important;height:100%!important;border:0!important;border-radius:0!important;font-size:28px!important;background:radial-gradient(circle at 50% 35%,#453b34,#26201c 70%);box-shadow:none!important}
.webcam-placeholder{position:absolute;right:7px;top:6px;font-size:8px;letter-spacing:.12em;font-weight:900;color:rgba(238,227,211,.32)}
.game:not(.hidden) .seat-name{font-size:12px!important;max-width:164px!important;padding:5px 9px!important}
.game:not(.hidden) .seat.ready .seat-avatar:after{right:7px!important;bottom:7px!important;width:22px;height:22px;font-size:11px}
.game:not(.hidden) .seat.self .seat-video{border-color:rgba(210,185,144,.75);box-shadow:0 0 0 3px rgba(210,185,144,.09),0 14px 34px rgba(0,0,0,.34)}
.game:not(.hidden) .seat.speaking .seat-video{transform:scale(1.08);border-color:rgba(209,173,109,.86);box-shadow:0 0 0 5px rgba(209,173,109,.10),0 0 38px rgba(209,173,109,.25),0 14px 34px rgba(0,0,0,.34)}
.seats.seat-medium .seat{width:144px!important;margin-left:-72px!important;margin-top:-48px!important;--radius:min(30vw,30vh,310px)!important}
.seats.seat-medium .seat-video{width:144px;height:81px;border-radius:14px}.seats.seat-medium .seat-name{max-width:138px!important;font-size:11px!important}
.seats.seat-dense .seat{width:120px!important;margin-left:-60px!important;margin-top:-42px!important;--radius:min(30vw,31vh,318px)!important}
.seats.seat-dense .seat-video{width:120px;height:68px;border-radius:12px}.seats.seat-dense .seat-name{max-width:116px!important;font-size:10px!important;padding:4px 7px!important}.seats.seat-dense .seat-avatar{font-size:22px!important}

.speaker-spotlight{display:grid;justify-items:center;gap:7px}
.spotlight-video{width:min(340px,34vw);aspect-ratio:16/9;border-radius:20px;overflow:hidden;position:relative;border:1px solid rgba(209,173,109,.48);background:linear-gradient(145deg,#3a312b,#201b18);box-shadow:0 20px 48px rgba(0,0,0,.36),0 0 0 5px rgba(209,173,109,.055)}
.spotlight-avatar{width:100%;height:100%;display:grid;place-items:center;font:400 48px Georgia,serif;background:radial-gradient(circle at 50% 35%,#493e36,#241e1a 72%)}
.spotlight-cam{position:absolute;top:10px;right:11px;font-size:8px;font-weight:900;letter-spacing:.13em;color:rgba(238,227,211,.34)}
.speaker-spotlight>strong{font:400 27px/1 Georgia,serif}.speaker-spotlight>span{font-size:11px;color:var(--muted)}
.table-center.has-spotlight>.center-icon,.table-center.has-spotlight>.center-title,.table-center.has-spotlight>.center-text,.table-center.has-spotlight>.player-count{display:none!important}

.host-panel{height:100%!important;display:flex!important;flex-direction:column;padding:14px!important}
.host-panel .panel-head{margin:0 0 10px!important;flex:0 0 auto}
.game:not(.hidden) .host-controls{margin:0!important;padding:0!important;border:0!important;display:flex!important;flex-direction:column;flex:1;justify-content:flex-end}
.host-control-card{padding:14px;gap:10px;border-radius:16px}
.host-control-card>strong{font-size:23px}.host-control-helper{font-size:12px}
.host-control-actions{grid-template-columns:86px minmax(0,1fr);gap:8px}.host-control-actions .ghost,.host-control-actions .primary{min-height:46px;font-size:13px}
.night-director{display:grid;gap:9px}
.night-current{padding:10px;border-radius:12px;border:1px solid rgba(154,166,199,.26);background:rgba(118,132,170,.08);display:grid;gap:3px}
.night-current span{font-size:9px;letter-spacing:.14em;font-weight:900;color:#9aa6c7}.night-current strong{font:400 24px/1.1 Georgia,serif}.night-current em{font-style:normal;font-size:10px;color:var(--muted)}
.night-sequence{display:grid;gap:5px}.night-sequence>div{display:flex;align-items:center;justify-content:space-between;padding:7px 8px;border-radius:9px;border:1px solid rgba(255,255,255,.055);font-size:11px;color:#8f8780}.night-sequence>div.current{color:#e8dfd4;border-color:rgba(154,166,199,.34);background:rgba(154,166,199,.07)}.night-sequence>div.done{color:#a8c3a0}.night-sequence b{font-size:11px}

.game:not(.hidden) .resolution{max-width:900px!important;font-size:12px!important;min-height:32px!important;margin:3px auto 5px!important}
.game:not(.hidden) .action-area{max-width:980px!important;max-height:118px!important;min-height:54px;padding:0 10px 3px!important}
.game:not(.hidden) .action-title{font-size:15px!important}.game:not(.hidden) .action-note{font-size:12px!important}
.game:not(.hidden) .target-btn{font-size:13px!important;padding:9px 13px!important}

body[data-phase="night"] .phase-card{border-color:rgba(154,166,199,.24);background:linear-gradient(160deg,rgba(118,132,170,.09),rgba(255,255,255,.018))}
body[data-phase="night"] .phase-card .eyebrow{color:#9aa6c7}

@media(max-height:850px) and (min-width:941px){
  .game:not(.hidden){grid-template-rows:58px minmax(0,1fr)}
  .game:not(.hidden) .topbar{height:58px}
  body.host-view .game:not(.hidden) .game-layout{grid-template-columns:280px minmax(0,1fr) 265px}
  body.player-view .game:not(.hidden) .game-layout{grid-template-columns:280px minmax(0,1fr)}
  .game:not(.hidden) .game-info-panel{gap:8px;padding:11px!important}.phase-card{padding:9px}.phase-card h2{font-size:21px}.phase-card .timer{font-size:25px!important}.phase-card .phase-hint{font-size:10px}
  .game:not(.hidden) .game-info-panel .role-card{padding:9px}.game:not(.hidden) .game-info-panel .role-card p{font-size:10px;-webkit-line-clamp:2}
  .game:not(.hidden) .roster-card .player-line{min-height:35px;padding:3px 5px}.game:not(.hidden) .roster-card .small-avatar{width:29px;height:29px}.game:not(.hidden) .roster-card .player-line strong{font-size:11px}.game:not(.hidden) .roster-card .player-line small{font-size:9px}
  .game:not(.hidden) .table-surface{width:min(66vw,72vh,850px)!important;min-width:560px}
  .game:not(.hidden) .seat{--radius:min(30vw,28vh,270px)!important}.seat-video{width:158px;height:89px}.game:not(.hidden) .seat{width:158px!important;margin-left:-79px!important;margin-top:-50px!important}.game:not(.hidden) .seat-name{max-width:150px!important;font-size:11px!important}
  .seats.seat-medium .seat{--radius:min(29vw,28vh,270px)!important;width:132px!important;margin-left:-66px!important}.seats.seat-medium .seat-video{width:132px;height:74px}
  .seats.seat-dense .seat{--radius:min(29vw,29vh,276px)!important;width:110px!important;margin-left:-55px!important}.seats.seat-dense .seat-video{width:110px;height:62px}
  .game:not(.hidden) .public-board{max-height:138px!important;padding:8px 10px!important}.public-candidate strong{font-size:25px!important}
  .spotlight-video{width:min(295px,31vw)}
  .host-control-card{padding:11px}.host-control-card>strong{font-size:20px}
}

@media(max-width:1280px) and (min-width:941px){
  .dev-toolbar-label{display:none}.dev-toolbar select{max-width:135px}
  body.host-view .game:not(.hidden) .game-layout{grid-template-columns:250px minmax(0,1fr) 235px}
  body.player-view .game:not(.hidden) .game-layout{grid-template-columns:250px minmax(0,1fr)}
  .game:not(.hidden) .table-surface{min-width:520px;width:min(66vw,69vh,760px)!important}
  .game:not(.hidden) .seat{--radius:min(29vw,27vh,250px)!important}.seat-video{width:140px;height:79px}.game:not(.hidden) .seat{width:140px!important;margin-left:-70px!important;margin-top:-46px!important}
}

@media(max-width:940px){
  .dev-toolbar{order:3;width:100%;justify-content:center}.game:not(.hidden) .topbar{height:auto;grid-template-columns:1fr auto;grid-auto-rows:auto;padding:8px 0}.game:not(.hidden){height:auto;min-height:100svh;display:block;overflow:auto}
  body.host-view .game:not(.hidden) .game-layout,body.player-view .game:not(.hidden) .game-layout{display:flex;flex-direction:column;height:auto;overflow:visible}
  .game:not(.hidden) #leftPanel,.game:not(.hidden) #rightPanel{display:flex!important;height:auto!important;width:100%}.game:not(.hidden) .table-stage{order:-1;min-height:680px;height:auto}
}

/* v0.1.5b — merged roster/status + no permanent right column */
body.host-view .game:not(.hidden) .game-layout,body.player-view .game:not(.hidden) .game-layout{grid-template-columns:320px minmax(0,1fr)!important}
.game:not(.hidden) .table-stage{grid-template-rows:auto minmax(0,1fr) auto auto auto!important}
.game:not(.hidden) .host-controls{max-width:1080px;width:calc(100% - 20px);margin:0 auto!important;padding:0 10px 3px!important;border:0!important;display:block!important;flex:0 0 auto}
.game:not(.hidden) .host-controls.hidden{display:none!important}
.game:not(.hidden) .host-control-card{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(0,1.7fr) auto;align-items:center;gap:12px;padding:10px 12px;border-radius:14px}
.game:not(.hidden) .host-control-card>.host-control-kicker{grid-column:1;grid-row:1;font-size:9px}
.game:not(.hidden) .host-control-card>strong{grid-column:1;grid-row:2;font-size:20px}
.game:not(.hidden) .host-control-helper{grid-column:2;grid-row:1/3;min-width:0}
.game:not(.hidden) .host-control-actions{grid-column:3;grid-row:1/3;display:grid;grid-template-columns:auto minmax(150px,1fr);gap:7px;min-width:250px}
.game:not(.hidden) .lobby-control>span{grid-column:2;grid-row:1/3}.game:not(.hidden) .lobby-control>.host-primary{grid-column:3;grid-row:1/3;min-width:220px}
.game:not(.hidden) .night-director{grid-template-columns:180px minmax(280px,1fr);align-items:stretch;gap:8px}.game:not(.hidden) .night-current{min-width:0}.game:not(.hidden) .night-sequence{grid-template-columns:repeat(4,minmax(70px,1fr));gap:4px;align-items:stretch}.game:not(.hidden) .night-sequence>div{padding:6px 7px}

.game:not(.hidden) .seat{position:absolute!important;transform:translate(-50%,-50%)!important;margin:0!important}
.game:not(.hidden) .seat,.seats.seat-medium .seat,.seats.seat-dense .seat{--radius:0!important}
.game:not(.hidden) .table-surface{width:min(80vw,82vh,1080px)!important;min-width:680px;max-width:calc(100% - 54px)}
.game:not(.hidden) .table-wrap{padding:10px 14px 2px!important}
.game:not(.hidden) .seat{width:184px!important}.seat-video{width:184px;height:104px}.game:not(.hidden) .seat-name{max-width:176px!important;font-size:12px!important}
.seats.seat-medium .seat{width:152px!important}.seats.seat-medium .seat-video{width:152px;height:86px}.seats.seat-medium .seat-name{max-width:146px!important}
.seats.seat-dense .seat{width:128px!important}.seats.seat-dense .seat-video{width:128px;height:72px}.seats.seat-dense .seat-name{max-width:122px!important}

@media(max-height:850px) and (min-width:941px){
  body.host-view .game:not(.hidden) .game-layout,body.player-view .game:not(.hidden) .game-layout{grid-template-columns:292px minmax(0,1fr)!important}
  .game:not(.hidden) .table-surface{width:min(78vw,75vh,950px)!important;min-width:620px}
  .game:not(.hidden) .host-control-card{grid-template-columns:minmax(150px,.6fr) minmax(0,1.6fr) auto;padding:8px 10px}.game:not(.hidden) .host-control-card>strong{font-size:18px}.game:not(.hidden) .host-control-helper{font-size:11px}.game:not(.hidden) .host-control-actions{min-width:225px}.game:not(.hidden) .night-director{grid-template-columns:150px minmax(250px,1fr)}
}
@media(max-width:1280px) and (min-width:941px){
  body.host-view .game:not(.hidden) .game-layout,body.player-view .game:not(.hidden) .game-layout{grid-template-columns:255px minmax(0,1fr)!important}
  .game:not(.hidden) .host-control-card{grid-template-columns:minmax(135px,.55fr) minmax(0,1.4fr) auto}.game:not(.hidden) .host-control-actions{min-width:200px}.game:not(.hidden) .night-director{grid-template-columns:130px minmax(220px,1fr)}
}
@media(max-width:940px){
  body.host-view .game:not(.hidden) .game-layout,body.player-view .game:not(.hidden) .game-layout{display:flex!important;grid-template-columns:none!important}.game:not(.hidden) .host-control-card{grid-template-columns:1fr!important}.game:not(.hidden) .host-control-card>*{grid-column:1!important;grid-row:auto!important}.game:not(.hidden) .host-control-actions{min-width:0!important}.game:not(.hidden) .night-director{grid-template-columns:1fr}.game:not(.hidden) .night-sequence{grid-template-columns:repeat(2,1fr)}
}

/* v0.1.5c — event feed belongs to the info rail, not the table canvas */
.phase-resolution{font-size:11px;line-height:1.35;color:#c8bdb0;border-top:1px solid rgba(245,238,227,.08);padding-top:8px;margin-top:1px;min-height:22px}
.game:not(.hidden) .table-stage{grid-template-rows:auto minmax(0,1fr) auto auto!important}
@media(max-height:850px) and (min-width:941px){.phase-resolution{font-size:10px;line-height:1.25;padding-top:6px}}

/* v0.1.6 — larger table seats, private night media contract, readable host console, dawn overlay */
.game:not(.hidden) .table-wrap{
  transform:translateY(18px);
  padding:8px 18px 0!important;
}
.game:not(.hidden) .table-surface{
  width:min(82vw,84vh,1120px)!important;
  min-width:720px;
}
.game:not(.hidden) .seat{width:202px!important}
.game:not(.hidden) .seat-video{width:202px;height:114px;border-radius:18px}
.game:not(.hidden) .seat-name{max-width:194px!important;font-size:13px!important;padding:6px 10px!important}
.seats.seat-medium .seat{width:168px!important}
.seats.seat-medium .seat-video{width:168px;height:95px;border-radius:16px}
.seats.seat-medium .seat-name{max-width:162px!important;font-size:12px!important}
.seats.seat-dense .seat{width:140px!important}
.seats.seat-dense .seat-video{width:140px;height:79px;border-radius:14px}
.seats.seat-dense .seat-name{max-width:134px!important;font-size:11px!important}

.night-media-shield{position:absolute;inset:0;display:grid;place-items:center;font-size:24px;color:rgba(190,198,221,.52);pointer-events:none;opacity:0;transition:opacity .18s ease;background:radial-gradient(circle at 50% 45%,rgba(56,63,79,.18),rgba(9,11,16,.76))}
body[data-phase="night"] .seat.night-camera-off .night-media-shield{opacity:1}
body[data-phase="night"] .seat.night-camera-off .seat-avatar{opacity:.08;filter:blur(1px)}
body[data-phase="night"] .seat.night-camera-off .seat-video{border-color:rgba(145,154,181,.14);background:#0e1117;box-shadow:0 12px 28px rgba(0,0,0,.28)}
body[data-phase="night"] .seat.night-camera-off .webcam-placeholder{left:8px;right:auto;top:7px;color:rgba(167,176,204,.46);font-size:8px}
body[data-phase="night"] .seat.night-camera-active .seat-video{border-color:rgba(154,166,199,.62);box-shadow:0 0 0 3px rgba(154,166,199,.08),0 16px 38px rgba(0,0,0,.34)}
body[data-phase="night"] .seat.night-camera-active .webcam-placeholder{color:rgba(206,213,235,.68)}

.night-channel-badge{width:fit-content;max-width:100%;margin:0 auto 2px;padding:6px 10px;border:1px solid rgba(154,166,199,.26);background:rgba(118,132,170,.08);border-radius:999px;font-size:11px;line-height:1.2;color:#b5bfd9;font-weight:800}
.night-private-note{font-size:12px;line-height:1.35;color:#aeb7cf;padding:8px 9px;border:1px solid rgba(154,166,199,.18);background:rgba(118,132,170,.055);border-radius:10px}
.night-audit{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:2px}
.night-audit-group{display:grid;gap:3px;padding:6px 7px;border:1px solid rgba(255,255,255,.055);background:rgba(0,0,0,.12);border-radius:8px;min-width:0}
.night-audit-group.current{border-color:rgba(154,166,199,.32);background:rgba(118,132,170,.075)}
.night-audit-group>span{font-size:9px;font-weight:900;letter-spacing:.08em;color:#9aa6c7}
.night-audit-group>b{font-size:10px;line-height:1.2;color:#ddd5ca;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.game:not(.hidden) .host-control-card{min-height:82px;padding:12px 15px!important;gap:14px!important}
.game:not(.hidden) .host-control-card>.host-control-kicker{font-size:11px!important;letter-spacing:.16em}
.game:not(.hidden) .host-control-card>strong{font-size:24px!important;line-height:1.08}
.game:not(.hidden) .host-control-helper{font-size:14px!important;line-height:1.4;color:#c4b9ac}
.game:not(.hidden) .host-control-actions .ghost,.game:not(.hidden) .host-control-actions .primary{min-height:50px;font-size:15px!important;padding:11px 14px}
.game:not(.hidden) .night-director{grid-template-columns:190px minmax(0,1fr)!important;gap:9px!important}
.game:not(.hidden) .night-current strong{font-size:26px}
.game:not(.hidden) .night-sequence>div{font-size:12px;padding:7px 9px}

.night-result-overlay{position:fixed;inset:0;z-index:55;display:grid;place-items:center;pointer-events:none;background:rgba(7,7,8,.18);backdrop-filter:blur(2px)}
.night-result-card{width:min(560px,calc(100vw - 40px));padding:28px 34px 24px;border-radius:24px;border:1px solid rgba(233,221,201,.17);background:linear-gradient(155deg,rgba(39,34,31,.96),rgba(18,16,15,.97));box-shadow:0 30px 90px rgba(0,0,0,.48);text-align:center;display:grid;gap:12px;overflow:hidden;position:relative}
.night-result-card .eyebrow{font-size:12px;letter-spacing:.18em;color:#b9ad9f}
.night-result-card strong{font:400 38px/1.08 Georgia,serif;color:#f0e7db}
.night-result-overlay.safe .night-result-card{border-color:rgba(119,159,119,.34)}
.night-result-overlay.death .night-result-card{border-color:rgba(184,97,91,.36)}
.night-result-progress{height:3px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden;margin-top:6px;position:relative}
.night-result-progress:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#b6a27f,#e4d6bc);transform-origin:left center;animation:nightNoticeProgress 4s linear forwards}
@keyframes nightNoticeProgress{from{transform:scaleX(1)}to{transform:scaleX(0)}}

@media(max-height:850px) and (min-width:941px){
  .game:not(.hidden) .table-wrap{transform:translateY(12px)}
  .game:not(.hidden) .table-surface{width:min(80vw,76vh,980px)!important;min-width:640px}
  .game:not(.hidden) .seat{width:178px!important}.game:not(.hidden) .seat-video{width:178px;height:100px}.game:not(.hidden) .seat-name{max-width:170px!important;font-size:12px!important}
  .seats.seat-medium .seat{width:148px!important}.seats.seat-medium .seat-video{width:148px;height:83px}
  .seats.seat-dense .seat{width:124px!important}.seats.seat-dense .seat-video{width:124px;height:70px}
  .game:not(.hidden) .host-control-card{min-height:72px;padding:9px 12px!important}.game:not(.hidden) .host-control-card>strong{font-size:21px!important}.game:not(.hidden) .host-control-helper{font-size:12px!important}.game:not(.hidden) .host-control-actions .ghost,.game:not(.hidden) .host-control-actions .primary{min-height:44px;font-size:13px!important}
  .night-private-note{font-size:10px}.night-audit-group>b{font-size:9px}
}

@media(max-width:1280px) and (min-width:941px){
  .game:not(.hidden) .table-surface{min-width:520px;width:min(72vw,64vh,760px)!important}
  .game:not(.hidden) .seat{width:150px!important}.game:not(.hidden) .seat-video{width:150px;height:84px}
  .seats.seat-medium .seat{width:132px!important}.seats.seat-medium .seat-video{width:132px;height:74px}
  .seats.seat-dense .seat{width:112px!important}.seats.seat-dense .seat-video{width:112px;height:63px}
  .night-audit{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* v0.1.9 — locked stadium layouts for 5–12 players + dedicated moderator seat */
.game:not(.hidden) .table-wrap{
  transform:translateY(64px);
  padding:10px 18px 0!important;
}
.game:not(.hidden) .table-surface{
  width:min(68vw,62vh,820px)!important;
  min-width:560px;
  aspect-ratio:1.58/1;
}
.game:not(.hidden) .seat{
  width:var(--seat-w, 204px)!important;
  transform:translate(-50%,-50%)!important;
  margin:0!important;
  transition:left .28s ease,top .28s ease,opacity .2s ease,filter .2s ease;
}
.game:not(.hidden) .seat-video,
.game:not(.hidden) .seats.seat-medium .seat-video,
.game:not(.hidden) .seats.seat-dense .seat-video{
  width:var(--seat-w, 204px)!important;
  height:auto!important;
  aspect-ratio:16/9;
  border-radius:18px;
  overflow:hidden;
  position:relative;
}
.game:not(.hidden) .seat-avatar{
  font-size:clamp(28px,2vw,38px)!important;
}
.game:not(.hidden) .seat-name,
.game:not(.hidden) .seats.seat-medium .seat-name,
.game:not(.hidden) .seats.seat-dense .seat-name{
  position:absolute;
  z-index:4;
  left:0;
  right:0;
  bottom:0;
  max-width:none!important;
  width:100%;
  min-height:32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:7px 10px!important;
  border:0;
  border-top:1px solid rgba(245,238,227,.10);
  border-radius:0 0 17px 17px;
  background:linear-gradient(180deg,rgba(12,10,9,.48),rgba(12,10,9,.92));
  backdrop-filter:blur(8px);
  color:#f1eadf;
  font-size:12px!important;
  line-height:1;
  text-align:left;
}
.game:not(.hidden) .seat-name>span:first-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.seat-kind{
  flex:0 0 auto;
  color:#cdb78e;
  font-size:8px;
  letter-spacing:.12em;
  font-weight:900;
}
.game:not(.hidden) .seat-host{flex:0 0 auto;margin:0;font-size:8px}
.game:not(.hidden) .webcam-placeholder{
  z-index:3;
  right:8px;
  top:7px;
  padding:3px 5px;
  border-radius:999px;
  background:rgba(11,10,10,.38);
  font-size:7px;
}
.game:not(.hidden) .seat.ready .seat-avatar:after{
  z-index:5;
  right:8px!important;
  bottom:38px!important;
  width:23px;
  height:23px;
}
.game:not(.hidden) .seat.moderator-seat .seat-video{
  border-color:rgba(209,173,109,.50);
  box-shadow:0 0 0 3px rgba(209,173,109,.055),0 16px 36px rgba(0,0,0,.34);
}
.game:not(.hidden) .seat.moderator-seat .seat-name{
  background:linear-gradient(180deg,rgba(72,57,37,.38),rgba(20,16,13,.94));
}
.game:not(.hidden) .seat.speaking .seat-video{
  transform:scale(1.04);
  border-color:rgba(209,173,109,.92);
  box-shadow:0 0 0 4px rgba(209,173,109,.11),0 0 36px rgba(209,173,109,.21),0 18px 38px rgba(0,0,0,.36);
}

/* Keep night secrecy over video content while preserving the public name strip. */
body[data-phase="night"] .seat.night-camera-off .night-media-shield{
  inset:0 0 32px 0;
  border-radius:18px 18px 0 0;
}
body[data-phase="night"] .seat.night-camera-off .seat-avatar{opacity:.06}
body[data-phase="night"] .seat.night-camera-active .seat-video{box-shadow:0 0 0 3px rgba(154,166,199,.09),0 18px 38px rgba(0,0,0,.35)}

/* Focus should feel like the same webcam family, only gently emphasized. */
.spotlight-video{
  width:min(calc(var(--seat-w, 214px) * 1.28), 312px)!important;
  border-radius:20px;
}
.speaker-spotlight>strong{font-size:24px!important}
.speaker-spotlight>span{font-size:12px!important}

/* On large tables the table is the visual anchor; on small tables webcams become generously sized. */
.seats[data-count="1"],.seats[data-count="2"],.seats[data-count="3"],.seats[data-count="4"]{--seat-w:244px}

@media(max-height:850px) and (min-width:941px){
  .game:not(.hidden) .table-wrap{transform:translateY(30px)}
  .game:not(.hidden) .table-surface{width:min(74vw,69vh,920px)!important;min-width:610px}
  .game:not(.hidden) .seat{width:calc(var(--seat-w, 214px) * .89)!important}
  .game:not(.hidden) .seat-video{width:100%!important}
  .spotlight-video{width:min(calc(var(--seat-w, 214px) * 1.12), 282px)!important}
}

@media(max-width:1280px) and (min-width:941px){
  .game:not(.hidden) .table-surface{min-width:560px;width:min(74vw,66vh,800px)!important}
  .game:not(.hidden) .seat{width:calc(var(--seat-w, 214px) * .82)!important}
  .game:not(.hidden) .seat-video{width:100%!important}
  .game:not(.hidden) .seat-name{font-size:10px!important;min-height:28px;padding:6px 8px!important}
  body[data-phase="night"] .seat.night-camera-off .night-media-shield{bottom:28px}
  .spotlight-video{width:min(calc(var(--seat-w, 214px) * 1.03), 255px)!important}
}

/* v0.1.10 — Figma-reference seating: host off-table, players locked to table rows/columns */
@media (min-width: 941px){
  .game:not(.hidden) .table-wrap{
    position:relative!important;
    transform:none!important;
    padding:0 10px!important;
    overflow:visible!important;
  }
  .game:not(.hidden) .table-surface{
    position:absolute!important;
    left:58%!important;
    top:54%!important;
    transform:translate(-50%,-50%)!important;
    width:min(52vw,72vh,760px)!important;
    min-width:580px!important;
    max-width:760px!important;
    aspect-ratio:1.62/1!important;
  }
  .game:not(.hidden) .seat{
    width:var(--seat-w, 210px)!important;
    transform:translate(-50%,-50%)!important;
    margin:0!important;
  }
  .game:not(.hidden) .seat-video,
  .game:not(.hidden) .seats.seat-medium .seat-video,
  .game:not(.hidden) .seats.seat-dense .seat-video{
    width:100%!important;
    aspect-ratio:16/9!important;
    height:auto!important;
  }
  .game:not(.hidden) .field-moderator-seat .seat-video{
    border-color:rgba(209,173,109,.62)!important;
    box-shadow:0 0 0 3px rgba(209,173,109,.07),0 16px 36px rgba(0,0,0,.35)!important;
  }
  .game:not(.hidden) .field-moderator-seat .seat-kind{font-size:9px!important}
}

@media (max-height:850px) and (min-width:941px){
  .game:not(.hidden) .table-surface{
    top:55%!important;
    width:min(50vw,68vh,710px)!important;
    min-width:540px!important;
  }
  .game:not(.hidden) .seat{
    width:calc(var(--seat-w, 210px) * .92)!important;
  }
}

@media (max-width:1280px) and (min-width:941px){
  .game:not(.hidden) .table-surface{
    left:59%!important;
    width:min(50vw,65vh,690px)!important;
    min-width:510px!important;
  }
  .game:not(.hidden) .seat{
    width:calc(var(--seat-w, 210px) * .86)!important;
  }
}

/* v0.1.10b — final reference geometry refinement */
@media (min-width:941px){
  .game:not(.hidden) .table-surface{
    left:58%!important;
    top:56.5%!important;
    width:min(52vw,70vh,720px)!important;
    min-width:560px!important;
    max-width:720px!important;
  }
  .game:not(.hidden) .field-moderator-seat{
    width:200px!important;
  }
  .game:not(.hidden) .field-moderator-seat .seat-video{
    width:200px!important;
  }
}
@media (max-height:850px) and (min-width:941px){
  .game:not(.hidden) .table-surface{
    left:58%!important;
    top:57%!important;
    width:min(50vw,66vh,670px)!important;
    min-width:520px!important;
  }
  .game:not(.hidden) .field-moderator-seat,
  .game:not(.hidden) .field-moderator-seat .seat-video{width:184px!important}
}
@media (max-width:1280px) and (min-width:941px){
  .game:not(.hidden) .table-surface{
    left:59%!important;
    width:min(49vw,64vh,640px)!important;
    min-width:500px!important;
  }
  .game:not(.hidden) .field-moderator-seat,
  .game:not(.hidden) .field-moderator-seat .seat-video{width:174px!important}
}

/* v0.1.11 — hard reset of playfield geometry after broken v0.1.10 */
@media (min-width: 941px){
  .game:not(.hidden) .table-stage{
    grid-template-rows:auto minmax(620px,1fr) auto auto!important;
    min-height:0!important;
    overflow:visible!important;
    padding-top:8px;
  }
  .game:not(.hidden) .table-wrap{
    position:relative!important;
    min-height:620px!important;
    height:100%!important;
    overflow:visible!important;
    display:block!important;
    padding:0 10px 0 0!important;
  }
  .game:not(.hidden) .table-surface{
    position:absolute!important;
    left:60%!important;
    top:45%!important;
    transform:translate(-50%,-50%)!important;
    width:min(48vw,66vh,720px)!important;
    min-width:580px!important;
    max-width:720px!important;
    aspect-ratio:1.58/1!important;
    z-index:1;
  }
  .game:not(.hidden) .seats{
    position:absolute!important;
    inset:0!important;
    z-index:3;
    overflow:visible!important;
    pointer-events:none;
  }
  .game:not(.hidden) .seat{
    width:var(--seat-w,184px)!important;
    margin:0!important;
    transform:translate(-50%,-50%)!important;
    display:block!important;
    z-index:4;
    pointer-events:auto;
  }
  .game:not(.hidden) .seat-video,
  .game:not(.hidden) .seats.seat-medium .seat-video,
  .game:not(.hidden) .seats.seat-dense .seat-video{
    width:100%!important;
    height:auto!important;
    aspect-ratio:16 / 9!important;
    border-radius:16px!important;
  }
  .game:not(.hidden) .seat-avatar{
    font-size:42px!important;
  }
  .game:not(.hidden) .seat-name,
  .game:not(.hidden) .seats.seat-medium .seat-name,
  .game:not(.hidden) .seats.seat-dense .seat-name{
    position:absolute!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    max-width:none!important;
    width:100%!important;
    min-height:30px!important;
    display:flex!important;
    justify-content:space-between!important;
    align-items:center!important;
    gap:6px!important;
    padding:6px 9px!important;
    border:0!important;
    border-top:1px solid rgba(245,238,227,.10)!important;
    border-radius:0 0 15px 15px!important;
    background:linear-gradient(180deg,rgba(14,12,10,.42),rgba(10,9,8,.92))!important;
    backdrop-filter:blur(6px)!important;
    font-size:12px!important;
  }
  .game:not(.hidden) .seat-name > span:first-child{
    min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  }
  .game:not(.hidden) .field-moderator-seat{
    width:196px!important;
  }
  .game:not(.hidden) .field-moderator-seat .seat-video{
    width:100%!important;
    border-color:rgba(209,173,109,.58)!important;
    box-shadow:0 0 0 3px rgba(209,173,109,.06),0 16px 36px rgba(0,0,0,.34)!important;
  }
  .game:not(.hidden) .field-moderator-seat .seat-kind{font-size:9px!important}
  .game:not(.hidden) .seat.ready .seat-avatar:after{
    right:8px!important;
    bottom:36px!important;
    width:22px!important;
    height:22px!important;
    z-index:6;
  }
  .game:not(.hidden) .host-controls{padding-top:8px!important}
}

@media (max-height: 850px) and (min-width: 941px){
  .game:not(.hidden) .table-stage{grid-template-rows:auto minmax(570px,1fr) auto auto!important}
  .game:not(.hidden) .table-wrap{min-height:570px!important}
  .game:not(.hidden) .table-surface{
    top:43%!important;
    width:min(46vw,62vh,660px)!important;
    min-width:540px!important;
  }
  .game:not(.hidden) .seat{width:calc(var(--seat-w,184px) * .94)!important}
  .game:not(.hidden) .field-moderator-seat{width:184px!important}
}

@media (max-width: 1280px) and (min-width: 941px){
  .game:not(.hidden) .table-surface{
    left:61.5%!important;
    width:min(49vw,62vh,660px)!important;
    min-width:520px!important;
  }
  .game:not(.hidden) .seat{width:calc(var(--seat-w,184px) * .92)!important}
  .game:not(.hidden) .field-moderator-seat{width:176px!important}
}

/* v0.1.11c — grid row ownership: prevents table/action/host rows from doubling vertically */
@media (min-width:941px){
  .game:not(.hidden) .table-stage{
    display:grid!important;
    grid-template-rows:auto minmax(0,1fr) auto auto!important;
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
    padding-top:8px!important;
  }
  .game:not(.hidden) .public-board{grid-row:1!important}
  .game:not(.hidden) .table-wrap{
    grid-row:2!important;
    min-height:0!important;
    height:100%!important;
    overflow:visible!important;
  }
  .game:not(.hidden) .action-area{grid-row:3!important}
  .game:not(.hidden) .host-controls{grid-row:4!important}
}

/* v0.1.11d — stable moderator placeholder and clearer off-table gap */
@media (min-width:941px){
  .game:not(.hidden) .moderator-placeholder{opacity:.72!important}
  .game:not(.hidden) .moderator-placeholder .seat-video{
    border-style:dashed!important;
    border-color:rgba(209,173,109,.30)!important;
    background:linear-gradient(145deg,rgba(53,46,41,.52),rgba(25,21,18,.62))!important;
    box-shadow:none!important;
  }
  .moderator-placeholder-mark{
    position:absolute;inset:0 0 30px;display:grid;place-items:center;
    font:400 38px Georgia,serif;color:rgba(238,227,211,.30)
  }
}

/* v0.1.11e — keep 12-player roster readable inside one-screen sidebar */
@media (min-width:941px){
  .game:not(.hidden) .player-list.dense{gap:1px!important}
  .game:not(.hidden) .player-list.dense .player-line{
    min-height:31px!important;
    padding:2px 4px!important;
    grid-template-columns:26px minmax(0,1fr) auto!important;
    gap:7px!important;
  }
  .game:not(.hidden) .player-list.dense .small-avatar{width:26px!important;height:26px!important;font-size:10px!important}
  .game:not(.hidden) .player-list.dense .player-line strong{font-size:11px!important}
  .game:not(.hidden) .player-list.dense .player-line small{font-size:9px!important;margin-top:0!important}
}


/* v0.1.12 — harmony pass after functional v0.1.11 */
@media (min-width:941px){
  .game:not(.hidden) .table-surface{
    left:60.5%!important;
    top:46%!important;
    width:min(49vw,67vh,740px)!important;
    min-width:590px!important;
    max-width:740px!important;
  }
  .game:not(.hidden) .seat{width:var(--seat-w,188px)!important}
  .game:not(.hidden) .field-moderator-seat{width:204px!important}
  .game:not(.hidden) .field-moderator-seat .seat-video{border-radius:18px!important}
  .game:not(.hidden) .seat-video{border-radius:17px!important}
}
@media (max-height: 850px) and (min-width: 941px){
  .game:not(.hidden) .table-surface{top:44.5%!important;width:min(47vw,63vh,690px)!important;min-width:560px!important}
  .game:not(.hidden) .seat{width:calc(var(--seat-w,188px) * .96)!important}
  .game:not(.hidden) .field-moderator-seat{width:192px!important}
}
@media (max-width: 1280px) and (min-width: 941px){
  .game:not(.hidden) .table-surface{left:61.5%!important;width:min(50vw,64vh,690px)!important;min-width:540px!important}
  .game:not(.hidden) .seat{width:calc(var(--seat-w,188px) * .94)!important}
  .game:not(.hidden) .field-moderator-seat{width:184px!important}
}

/* v0.1.13 — Figma-measured playfield geometry */
@media (min-width:941px){
  .game:not(.hidden) .table-surface{
    left:50.5%!important;
    top:52.5%!important;
    width:min(43vw,61vh,630px)!important;
    min-width:560px!important;
    max-width:630px!important;
    aspect-ratio:1.55/1!important;
  }
  .game:not(.hidden) .seat{width:var(--seat-w,192px)!important}
  .game:not(.hidden) .field-moderator-seat{width:204px!important}
  .game:not(.hidden) .field-moderator-seat .seat-video{width:100%!important}
  .game:not(.hidden) .seat-video{border-radius:16px!important}
  .game:not(.hidden) .seat-name{border-radius:0 0 15px 15px!important}
}

@media (max-height:850px) and (min-width:941px){
  .game:not(.hidden) .table-surface{
    left:50.5%!important;
    top:52%!important;
    width:min(42vw,58vh,590px)!important;
    min-width:525px!important;
  }
  .game:not(.hidden) .seat{width:calc(var(--seat-w,192px) * .94)!important}
  .game:not(.hidden) .field-moderator-seat{width:190px!important}
}

@media (max-width:1280px) and (min-width:941px){
  .game:not(.hidden) .table-surface{
    left:51.5%!important;
    width:min(45vw,59vh,600px)!important;
    min-width:510px!important;
  }
  .game:not(.hidden) .seat{width:calc(var(--seat-w,192px) * .92)!important}
  .game:not(.hidden) .field-moderator-seat{width:182px!important}
}

/* v0.1.13b — measured spacing refinement */
@media (min-width:941px){
  .game:not(.hidden) .table-surface{
    left:50.5%!important;
    top:52.5%!important;
    width:min(40.5vw,58vh,590px)!important;
    min-width:535px!important;
    max-width:590px!important;
  }
  .game:not(.hidden) .field-moderator-seat{width:198px!important}
}
@media (max-height:850px) and (min-width:941px){
  .game:not(.hidden) .table-surface{width:min(40vw,56vh,560px)!important;min-width:510px!important}
  .game:not(.hidden) .field-moderator-seat{width:186px!important}
}

/* v0.1.14 — more breathing room + larger speaking focus */
@media (min-width: 941px){
  .game:not(.hidden) .table-surface{
    top:55%!important;
    width:min(51vw,70vh,744px)!important;
    min-width:572px!important;
    max-width:744px!important;
  }
  .spotlight-video{
    width:min(calc(var(--seat-w, 214px) * 1.58), 382px)!important;
    border-radius:22px!important;
    box-shadow:0 24px 56px rgba(0,0,0,.38),0 0 0 6px rgba(209,173,109,.06)!important;
  }
  .spotlight-avatar{
    font-size:58px!important;
  }
  .speaker-spotlight{
    gap:10px!important;
  }
  .speaker-spotlight>strong{
    font-size:30px!important;
    line-height:1!important;
  }
  .speaker-spotlight>span{
    font-size:13px!important;
  }
}
@media (max-height:850px) and (min-width:941px){
  .spotlight-video{width:min(calc(var(--seat-w, 214px) * 1.42), 342px)!important}
}
@media (max-width:1280px) and (min-width:941px){
  .spotlight-video{width:min(calc(var(--seat-w, 214px) * 1.32), 314px)!important}
}

/* v0.1.15 — extra vertical air + stronger speaker focus */
@media (min-width: 941px){
  .spotlight-video{
    width:min(calc(var(--seat-w, 214px) * 1.74), 420px)!important;
    border-radius:24px!important;
    box-shadow:0 28px 64px rgba(0,0,0,.42),0 0 0 7px rgba(209,173,109,.065)!important;
  }
  .spotlight-avatar{font-size:64px!important}
  .speaker-spotlight>strong{font-size:32px!important}
  .speaker-spotlight>span{font-size:14px!important}
}
@media (max-height:850px) and (min-width:941px){
  .spotlight-video{width:min(calc(var(--seat-w, 214px) * 1.56), 372px)!important}
}
@media (max-width:1280px) and (min-width:941px){
  .spotlight-video{width:min(calc(var(--seat-w, 214px) * 1.42), 338px)!important}
}

/* v0.1.15 — extra vertical air + bigger center speaking camera */
@media (min-width: 941px){
  .spotlight-video{
    width:min(calc(var(--seat-w, 214px) * 1.72), 418px)!important;
    border-radius:24px!important;
  }
  .spotlight-avatar{font-size:64px!important}
  .speaker-spotlight>strong{font-size:34px!important}
  .speaker-spotlight>span{font-size:14px!important}
}
@media (max-height:850px) and (min-width:941px){
  .spotlight-video{width:min(calc(var(--seat-w, 214px) * 1.56), 378px)!important}
}
@media (max-width:1280px) and (min-width:941px){
  .spotlight-video{width:min(calc(var(--seat-w, 214px) * 1.44), 338px)!important}
}

/* v0.1.16 — larger seat cards + larger speaking spotlight */
@media (min-width: 941px){
  .spotlight-video{
    width:min(calc(var(--seat-w, 216px) * 1.94), 452px)!important;
    border-radius:25px!important;
  }
  .spotlight-avatar{font-size:68px!important}
  .speaker-spotlight>strong{font-size:36px!important}
  .speaker-spotlight>span{font-size:15px!important}
}
@media (max-height:850px) and (min-width:941px){
  .spotlight-video{width:min(calc(var(--seat-w, 216px) * 1.72), 400px)!important}
}
@media (max-width:1280px) and (min-width:941px){
  .spotlight-video{width:min(calc(var(--seat-w, 216px) * 1.52), 352px)!important}
}

/* v0.1.17 — cleaner night director console */
.game:not(.hidden) .night-director-clean{
  grid-template-columns:1fr!important;
  gap:10px!important;
}
.game:not(.hidden) .night-topline{
  display:grid;
  grid-template-columns:minmax(180px,.75fr) minmax(0,1.25fr);
  gap:10px;
  align-items:stretch;
}
.game:not(.hidden) .night-current{
  display:grid;
  gap:4px;
  align-content:start;
}
.game:not(.hidden) .night-current small{
  font-size:11px;
  color:#b8b0a8;
}
.game:not(.hidden) .night-private-note{
  display:flex;
  align-items:flex-start;
  min-height:100%;
}
.game:not(.hidden) .night-sequence{
  grid-template-columns:repeat(4,minmax(88px,1fr))!important;
  gap:6px!important;
}
.game:not(.hidden) .night-sequence>div.masked{
  border-style:dashed;
  color:#d3c2a1;
  background:rgba(187,155,88,.06);
}
.game:not(.hidden) .night-focus{
  display:grid;
  gap:8px;
  padding:9px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.065);
  background:rgba(0,0,0,.12);
}
.game:not(.hidden) .night-focus-title{
  font-size:10px;
  font-weight:900;
  letter-spacing:.14em;
  color:#9aa6c7;
}
.game:not(.hidden) .night-focus-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}
.game:not(.hidden) .night-focus-item{
  display:grid;
  gap:3px;
  padding:7px 8px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.05);
  background:rgba(255,255,255,.025);
  min-width:0;
}
.game:not(.hidden) .night-focus-item span{
  font-size:10px;
  font-weight:800;
  color:#c6bbb0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.game:not(.hidden) .night-focus-item b{
  font-size:11px;
  color:#eee1cf;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
@media (max-width: 1280px){
  .game:not(.hidden) .night-topline{grid-template-columns:1fr}
  .game:not(.hidden) .night-focus-list{grid-template-columns:1fr}
}
@media (max-width: 940px){
  .game:not(.hidden) .night-sequence{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* v0.2.0 — Media Foundation. Design-freeze safe: only media controls/content inside existing slots. */
.media-button{position:relative}
.media-button-icon{font-size:15px;line-height:1}
.media-status-dot{position:absolute;right:5px;bottom:5px;width:7px;height:7px;border-radius:50%;border:1px solid rgba(18,15,13,.8);background:#665f58;box-shadow:0 0 0 2px rgba(20,17,14,.7)}
.media-status-dot.ready{background:#83a67b}.media-status-dot.limited{background:#d1ad6d}.media-status-dot.blocked{background:#bb6f69}.media-status-dot.off{background:#665f58}
.media-modal{width:min(930px,calc(100vw - 48px))!important}
.media-setup-grid{display:grid;grid-template-columns:minmax(320px,1.05fr) minmax(280px,.95fr);gap:20px;align-items:start}
.media-preview-card,.media-device-panel{display:grid;gap:12px}
.media-preview-frame{position:relative;aspect-ratio:16/9;border:1px solid rgba(233,221,201,.12);border-radius:20px;overflow:hidden;background:radial-gradient(circle at 50% 38%,#39312b,#1d1815 78%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 18px 45px rgba(0,0,0,.24)}
.media-preview-fallback{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:7px;text-align:center;color:#b7aa9d;padding:20px}.media-preview-fallback>span{font-size:36px;color:#806e60}.media-preview-fallback>strong{font:400 21px/1.1 Georgia,serif;color:#dfd4c6}.media-preview-fallback>small{font-size:11px;color:#827970}
.local-media-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scaleX(-1);z-index:1;background:#0e0c0b}
.spotlight-local-video{border-radius:inherit}
[data-local-media-container].local-camera-live>.media-preview-fallback{opacity:0;pointer-events:none}
.seat-video[data-local-media-container].local-camera-live>.seat-avatar,.spotlight-video[data-local-media-container].local-camera-live>.spotlight-avatar{opacity:0!important}
.seat-video[data-local-media-container]>.seat-avatar,.spotlight-video[data-local-media-container]>.spotlight-avatar{position:relative;z-index:2;transition:opacity .18s ease}
.seat-video[data-local-media-container] .seat-name{z-index:5!important}.seat-video[data-local-media-container] .night-media-shield{z-index:6!important}.seat-video[data-local-media-container] .webcam-placeholder{z-index:7!important}
.media-live-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#a99e92}.media-live-row span{display:inline-flex;align-items:center;gap:6px}
.mic-meter{height:8px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.045)}
.mic-meter-fill{height:100%;width:100%;transform:scaleX(0);transform-origin:left center;background:linear-gradient(90deg,#728d6a,#c4ab77);transition:transform .06s linear}
.media-permission-state{padding:11px 12px;border:1px solid rgba(255,255,255,.065);border-radius:12px;background:rgba(255,255,255,.025);font-size:12px;line-height:1.4;color:#c2b7aa}
.media-device-row{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:12px;padding:10px 11px;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:rgba(255,255,255,.02);font-size:12px;color:#b8ada1}
.media-device-row select{width:100%;min-width:0;padding:9px 10px;border-radius:9px;border:1px solid var(--line);background:#191512;color:var(--text);font-size:12px}
.media-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.media-controls #startMediaBtn,.media-controls #stopMediaBtn{grid-column:1/-1}.media-controls button{min-height:42px}
.media-help{margin:0;font-size:11px;line-height:1.45;color:#827970}
@media(max-width:780px){.media-setup-grid{grid-template-columns:1fr}.media-modal{width:min(640px,calc(100vw - 24px))!important}.media-device-row{grid-template-columns:1fr}.media-controls{grid-template-columns:1fr}.media-controls #startMediaBtn,.media-controls #stopMediaBtn{grid-column:auto}}

/* v0.2.1 media transport — content inside frozen webcam slots only */
.remote-media-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1;background:#0e0c0b}
.seat-video[data-remote-media-container].remote-camera-live>.seat-avatar,.spotlight-video[data-remote-media-container].remote-camera-live>.spotlight-avatar{opacity:0!important}
.media-network-state{padding:9px 11px;border:1px solid rgba(154,166,199,.16);border-radius:10px;background:rgba(118,132,170,.05);font-size:11px;line-height:1.35;color:#aeb7cf}

/* v0.2.3 — WebRTC diagnostics inside media settings only. Frozen play-field untouched. */
.media-diagnostics{border:1px solid rgba(255,255,255,.065);border-radius:12px;background:rgba(255,255,255,.018);overflow:hidden}
.media-diagnostics>summary{list-style:none;cursor:pointer;display:grid;gap:3px;padding:10px 11px;color:#c9beb2}
.media-diagnostics>summary::-webkit-details-marker{display:none}
.media-diagnostics>summary span{font-size:11px;font-weight:900;letter-spacing:.05em}.media-diagnostics>summary small{font-size:10px;color:#8f99b1;font-weight:500}
.media-diagnostics[open]>summary{border-bottom:1px solid rgba(255,255,255,.055);background:rgba(118,132,170,.035)}
.media-diagnostics-peers{display:grid;gap:7px;padding:9px}
.media-diagnostic-empty{padding:10px;border-radius:9px;background:rgba(0,0,0,.1);font-size:10px;color:#80786f;text-align:center}
.media-peer-diagnostic{display:grid;gap:7px;padding:9px;border:1px solid rgba(255,255,255,.055);border-radius:10px;background:rgba(0,0,0,.12)}
.media-peer-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.media-peer-head strong{font-size:11px;color:#e5d9ca;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.media-peer-quality{font-size:9px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;padding:4px 6px;border-radius:999px;border:1px solid rgba(255,255,255,.07);color:#aca399}
.media-peer-quality.good{color:#9dc495;border-color:rgba(130,161,119,.22);background:rgba(130,161,119,.06)}.media-peer-quality.fair{color:#d4b97e;border-color:rgba(209,173,109,.23);background:rgba(209,173,109,.06)}.media-peer-quality.poor,.media-peer-quality.failed{color:#d58880;border-color:rgba(187,111,105,.24);background:rgba(187,111,105,.06)}.media-peer-quality.connecting,.media-peer-quality.reconnecting{color:#aeb7cf;border-color:rgba(154,166,199,.2);background:rgba(118,132,170,.05)}
.media-peer-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.media-peer-metric{display:grid;gap:2px;min-width:0;padding:6px;border-radius:8px;background:rgba(255,255,255,.022)}.media-peer-metric span{font-size:8px;letter-spacing:.06em;color:#77706a;text-transform:uppercase}.media-peer-metric b{font-size:10px;color:#cfc4b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.media-peer-meta{font-size:9px;line-height:1.35;color:#7f899f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.media-diagnostics-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:0 9px 9px}.media-diagnostics-actions button{min-height:34px;padding:7px 8px;font-size:10px}
@media(max-width:780px){.media-peer-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.media-diagnostics-actions{grid-template-columns:1fr}}
