:root {
  color-scheme: light;
  --paper:#faf6e9; --cream:#fffaf0; --ink:#292c26; --muted:#696b5e; --rule:#d6cdb8;
  --coral:#c4492f; --coral-dark:#92311e; --pine:#225e50; --honey:#e6ac58; --surface:#f2ead6;
  --display:"DM Serif Text",Georgia,"Times New Roman",serif;
  --sans:"DM Sans","Avenir Next",Avenir,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
}
:root[data-theme="lounge"] {--paper:#efe9db;--cream:#fff6df;--surface:#e2d6c0;--rule:#c9b799;--pine:#285d57;--ink:#302b2a}
* {box-sizing:border-box}
html {min-height:100%;background:var(--paper);scroll-behavior:smooth}
body {min-height:100vh;margin:0;color:var(--ink);font:500 16px/1.45 var(--sans);-webkit-font-smoothing:antialiased;background:radial-gradient(ellipse at 80% 7%,#fffaf3 0,transparent 44%),var(--paper)}
button,input,select,textarea {font:inherit}
a {color:var(--pine);text-underline-offset:.18em}
button,.button,select,summary {cursor:pointer}
button,.button {appearance:none;color:var(--ink);background:#fff9e9;border:1px solid #bfb6a3;border-radius:10px;padding:10px 16px;font-weight:720;min-height:42px;line-height:1.2;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease;box-shadow:0 2px 0 #a6987d3b;touch-action:manipulation}
button:hover:not(:disabled),.button:hover {transform:translateY(-2px);box-shadow:0 4px 0 #a6987d38;background:#fffdfa;border-color:#8c8674}
button:active:not(:disabled),.button:active {transform:translateY(1px) scale(.975);box-shadow:0 0 0 transparent;transition-duration:.06s}
button.primary,.button.primary,button[type=submit].primary {color:#fffaf0;background:var(--coral);border-color:var(--coral-dark);box-shadow:0 3px 0 var(--coral-dark)}
button.primary:hover:not(:disabled),.button.primary:hover {background:#af3c26;box-shadow:0 5px 0 var(--coral-dark)}
button.primary:active:not(:disabled){box-shadow:0 1px 0 var(--coral-dark)}
button.secondary,.button.secondary {background:var(--pine);color:#fff9e5;border-color:#184b40;box-shadow:0 2px 0 #123d33}
button.secondary:hover:not(:disabled){background:#174a3f}
button:disabled,button[aria-disabled=true] {opacity:.52;cursor:not-allowed;box-shadow:none}
button[aria-pressed=true],.selected:not(option) {background:#e1ead9;color:#204b3b;border-color:#719078}
:focus-visible {outline:3px solid #3475ac;outline-offset:3px}
[hidden] {display:none!important}
input:not([type=radio]):not([type=checkbox]):not([type=range]),select,textarea {color:var(--ink);background:#fffdf6;border:1px solid #bdb5a4;border-radius:9px;padding:11px 13px;min-height:44px;max-width:100%}
input::placeholder,textarea::placeholder {color:#74766a}
textarea {width:100%;resize:vertical;line-height:1.45}
label,.field {font-weight:650}
label:has(input:not([type=checkbox]):not([type=radio])),.field {display:grid;gap:6px}
h1,h2,h3,h4,p {margin:0}
h1,h2,h3,h4 {text-wrap:balance}
h1,h2 {font-family:var(--display);letter-spacing:-.046em;font-weight:700;line-height:1.05}
h1 {font-size:clamp(2.2rem,4.4vw,4.6rem)}
h2 {font-size:clamp(1.5rem,2.5vw,2.6rem)}
h3 {font-size:1.12rem;letter-spacing:-.025em}
small,.muted {color:var(--muted);line-height:1.4}
.eyebrow,.kicker {font:700 .67rem/1.35 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--pine)}
.topbar,.room-header,.room-controls,.controls {display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.topbar {justify-content:space-between;min-height:54px;padding:5px 0 14px;border-bottom:1px solid var(--rule)}
.brand {color:var(--ink);font-family:var(--display);font-weight:bold;letter-spacing:-.045em;font-size:1.5rem;text-decoration:none}
.topbar button {min-height:36px;font:650 .8rem var(--sans);padding:7px 12px}
.game-shell {width:min(1600px,100%);padding:18px clamp(16px,3.8vw,68px) 30px;margin:auto}
.room-header {justify-content:space-between;margin:20px 0 16px}
.room-header h1 {font-size:clamp(2rem,3.4vw,3.5rem)}
.room-header > *, .room-grid > *, .menu-layout > * {min-width:0}
.panel,.room-aside,.mobile-console {background:var(--cream);border:1px solid var(--rule);border-radius:16px;padding:clamp(16px,2vw,28px)}
.room-grid {display:grid;grid-template-columns:minmax(0,2.2fr) minmax(235px,.88fr);gap:16px;align-items:stretch}
.room-aside,.mobile-console,.menu-form {display:flex;flex-direction:column;gap:13px}
.room-aside {align-self:start}
.room-aside .panel,.mobile-console .panel {padding:0;border:0;background:transparent;box-shadow:none}
.room-aside .panel + .panel,.mobile-console .panel + .panel {border-top:1px solid var(--rule);padding-top:16px}
.room-aside img[src*="qr"] {display:block;width:min(168px,75%);height:auto;aspect-ratio:1;align-self:center;margin-inline:auto;background:white;border:8px solid white;border-radius:8px;box-shadow:0 0 0 1px var(--rule);image-rendering:pixelated}
.room-controls {margin-top:16px;justify-content:space-between;background:#ede7d7;border:1px solid var(--rule);padding:12px 16px;border-radius:14px}
.mobile-console {margin:14px 0}
.badge,.status {display:inline-flex;align-items:center;width:fit-content;gap:.45em;border-radius:100px;padding:.32em .75em;font:700 .75rem/1.35 var(--sans);color:var(--pine);background:#dfe9d9}
.menu-layout {display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,.85fr);gap:clamp(17px,2.7vw,48px);align-items:center;margin:clamp(20px,4vh,50px) auto}
.menu-art {min-width:0;position:relative}
.menu-form {min-width:0;padding:clamp(18px,2.4vw,36px)}
.menu-form form,.mobile-console form {display:grid;gap:13px}
.menu-art .debate-set {min-height:0;aspect-ratio:1.4}
.receipt-board {min-width:0;overflow-wrap:anywhere}
.receipt-board a {font-weight:700}
.stage-shell,.debate-set {isolation:isolate}
.stage-shell {position:relative;min-width:0;overflow:hidden;border-radius:16px}
.debate-set {position:relative;width:100%;aspect-ratio:1.55;min-height:260px;overflow:hidden;isolation:isolate;container-type:inline-size;border-radius:inherit;
  --crt-center:#c3dfb1;--crt-mid:#9dc7a1;--crt-edge:#638b7a;
  background-color:#e0bc87;
  background-image:url('/static/art/studio.webp'),linear-gradient(105deg,#c8d8bb 0%,#f6deb2 35%,#deb07d 72%,#b7825e 100%);
  background-size:cover;background-position:center 53%;
}
.debate-set[data-set-theme=lounge] {--crt-center:#abe3db;--crt-mid:#7fc7c3;--crt-edge:#407c79;background-color:#685342;background-image:url('/static/art/lounge.webp'),linear-gradient(110deg,#465d68,#644633 45%,#a07443 85%);background-position:center 56%}
.set-light {position:absolute;inset:0;background:linear-gradient(0deg,#3a231226 0%,transparent 30%);pointer-events:none}
.set-surface {position:absolute;bottom:0;left:-9%;right:-9%;height:28%;border-radius:48% 48% 5% 5% / 19% 19% 8% 8%;border-top:2px solid #fff2d4;
  background:repeating-linear-gradient(1deg,transparent 0 7px,#8c582311 8px,transparent 9px 14px),linear-gradient(175deg,#e9ba7b,#edcc92 36%,#ca965e 68%,#b07843 80%,#754a32 82%,#a5734a 86%,#875b3f 95%);box-shadow:0 -4px 16px #31201321,0 7px 9px #28201866}
[data-set-theme=lounge] .set-surface {border-top-color:#bc9166;background:repeating-linear-gradient(1deg,transparent 0 7px,#29180e25 8px,transparent 9px 14px),linear-gradient(175deg,#a26841,#b67b4f 38%,#85512f 78%,#492a1b 81%,#815033 87%,#553121)}
.tv-pedestal {position:absolute;width:43%;height:8%;bottom:26%;left:28.5%;border-radius:50% / 34%;background:linear-gradient(#e6c39b 0 44%,#b08c5c 46%,#936c48 75%,#72523c);box-shadow:0 5px 7px #2e211b48}
[data-set-theme=lounge] .tv-pedestal {background:linear-gradient(#ae896c,#92664b 44%,#614334 46%,#654330 75%,#493124)}
.host-tv {position:absolute;bottom:29%;left:50%;width:56%;height:auto;transform:translateX(-50%);filter:drop-shadow(2px 6px 5px #34231642);pointer-events:none}
.tv-prop {display:block;width:100%;overflow:visible}
.tv-body {transform-origin:50% 90%;animation:tv-breathe 5.8s ease-in-out infinite;transform-box:fill-box}
.tv-gaze {transform:translate(var(--gaze-x,0px),var(--gaze-y,0px));transition:transform .65s cubic-bezier(.3,.7,.3,1)}
.tv-eyes {transform-origin:center;transform-box:fill-box;animation:tv-blink 5.4s linear infinite}
.tv-slip {transform-box:fill-box;transform-origin:top;transform:scaleY(.22)}
.printing .tv-slip {animation:paper-feed 1.35s ease-out both}
.printing .tv-dial,[data-checking=true] .tv-dial {transform-box:fill-box;transform-origin:center;animation:tuning 1.2s ease-in-out infinite alternate}
.printing .tv-gaze {transform:translate(18px,4px)}
.mic-row {position:absolute;bottom:6.8%;left:1%;width:98%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;pointer-events:none}
.mic-seat {position:relative;min-width:0;text-align:center;display:grid;justify-items:center;align-content:end;--mic-lamp:#fa8e54}
.mic-seat:nth-child(2) {--mic-lamp:#78dcad}.mic-seat:nth-child(3){--mic-lamp:#ffcf5e}.mic-seat:nth-child(4){--mic-lamp:#a1beff}
.mic-prop {width:68%;height:auto;aspect-ratio:130/136;object-fit:contain;object-position:bottom;max-height:20cqw;filter:drop-shadow(1px 4px 2px #3923163b);transform-origin:50% 92%;transition:opacity .4s,filter .35s,transform .4s}
.mic-seat[data-empty=true] .mic-prop {filter:grayscale(.3) saturate(.7) drop-shadow(1px 3px 2px #39231633);opacity:.79}
.mic-seat[data-away=true] .mic-prop {opacity:0;transform:translateY(6px) scale(.72)}
.mic-label {max-width:96%;padding:.18em .65em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #846847;border-radius:5px;font:700 clamp(11px,2.65cqw,26px)/1.12 var(--display);letter-spacing:-.012em;color:#473424;background:linear-gradient(#fff3cb,#f0d6a4);box-shadow:0 2px 0 #705036,0 3px 3px #3a281c4f}
.mic-tag {position:absolute;top:calc(100% + 4px);max-width:100%;border-radius:4px;background:#403a2e;color:#f9ecd5;font:700 clamp(8px,1.2cqw,12px)/1.25 var(--sans);letter-spacing:.03em;padding:.16em .5em;white-space:nowrap}
.mic-tag:empty {display:none}
.mic-seat[data-active=true] .mic-tag {background:#9e3825;color:#fff1d4;text-transform:uppercase;letter-spacing:.1em}
.mic-seat[data-active=true] .mic-prop {filter:drop-shadow(0 0 5px var(--mic-lamp)) drop-shadow(0 0 1px #fff);animation:mic-on-air .65s ease-out both}
.mic-indicator {position:absolute;top:6%;left:76%;width:16%;height:19%;display:flex;align-items:center;gap:10%;opacity:0;transform:rotate(-5deg)}
.mic-indicator i {display:block;width:16%;height:58%;border-radius:4px;background:#fff4bc;box-shadow:0 0 0 1px #8b6837,0 0 5px var(--mic-lamp);transform-origin:center}
.mic-indicator i:nth-child(2){height:96%}
.mic-seat[data-active=true] .mic-indicator {opacity:1}
.mic-seat[data-speaking=true] .mic-indicator i {animation:meter .62s ease-in-out infinite alternate}
.mic-seat[data-speaking=true] .mic-indicator i:nth-child(2){animation-delay:-.14s}.mic-seat[data-speaking=true] .mic-indicator i:nth-child(3){animation-delay:-.33s}
.flying-receipt {position:fixed;z-index:100;pointer-events:none;width:44px;height:52px;background:repeating-linear-gradient(0deg,transparent 0 5px,#5a584f80 6px,transparent 7px) center / 65% 55% no-repeat,#fff0cf;box-shadow:1px 4px 8px #3320104a;clip-path:polygon(0 0,100% 0,100% 96%,90% 100%,80% 96%,70% 100%,60% 96%,50% 100%,40% 96%,30% 100%,20% 96%,10% 100%,0 96%)}
@keyframes tv-blink {0%,35%,38%,84%,87%,100%{transform:scaleY(1)}36.4%,85.5%{transform:scaleY(.08)}}
@keyframes tv-breathe {0%,100%{transform:translateY(0) rotate(var(--tv-lean,-1.4deg))}48%{transform:translateY(-1.8px) rotate(calc(var(--tv-lean,-1.4deg) + 1.1deg))}}
@keyframes paper-feed {0%{transform:scaleY(.22)}28%{transform:scaleY(.85)}40%{transform:scaleY(.75)}58%,82%{transform:scaleY(1.75)}100%{transform:scaleY(.22)}}
@keyframes tuning {from{transform:rotate(-16deg)}to{transform:rotate(45deg)}}
@keyframes meter {from{transform:scaleY(.5)}to{transform:scaleY(1.12)}}
@keyframes mic-on-air {0%{transform:scale(.96)}45%{transform:scale(1.055)}100%{transform:scale(1)}}
@media (min-width:851px) {
  body:is([data-phase=live],[data-phase=playing]) .game-shell {width:100%;max-width:1920px}
}
@media (max-width:850px) {
  .game-shell {padding:12px 18px 28px}.room-grid {grid-template-columns:minmax(0,1.65fr) minmax(200px,.9fr);gap:12px}.menu-layout {grid-template-columns:1.15fr 1fr;gap:14px}
  .room-aside,.panel,.menu-form {padding:16px}
  .debate-set {min-height:230px}
}
@media (max-width:650px) {
  .game-shell {padding:10px 12px 22px}.menu-layout,.room-grid {grid-template-columns:minmax(0,1fr)}.menu-art .debate-set {aspect-ratio:1.85}.menu-layout {margin:14px 0}.room-header {margin:15px 0 12px}.debate-set {min-height:0;aspect-ratio:1.64}.room-aside,.mobile-console {padding:16px}.room-controls {gap:10px}.room-controls button {flex:1 1 auto}.topbar {min-height:44px;padding-bottom:8px}.stage-shell {border-radius:12px}
}
@media (prefers-reduced-motion:reduce) {*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.flying-receipt{display:none}}

/* The photographed desk is part of each set. Position the props on its actual top. */
.debate-set {background-position:center center;--desk-baseline:24%;--host-baseline:33%}
.debate-set[data-set-theme=lounge] {--desk-baseline:17%;--host-baseline:25.5%}
.set-surface {display:none}
.tv-pedestal {bottom:calc(var(--host-baseline) - 2%);height:4%}
.host-tv {bottom:var(--host-baseline);width:57%}
.mic-row {bottom:var(--desk-baseline);left:3%;width:94%}
.stage-shell.debate-set {border-radius:14px}
.menu-form {gap:22px}
.menu-form h1 {font-size:clamp(2.35rem,3.9vw,3.85rem);margin:0 0 .36em;text-wrap:balance}
#tabs {align-self:start;border:1px solid var(--rule);border-radius:10px;gap:2px;padding:3px;background:var(--surface)}
#tabs button {border:0;box-shadow:none;background:transparent;color:var(--muted);border-radius:7px;min-height:34px;padding:7px 12px;font-size:.85rem}
#tabs button.selected {background:var(--cream);color:var(--ink);box-shadow:0 1px 3px #32251629}
fieldset {border:0;margin:0;padding:0;min-width:0}
legend {font-weight:650;padding:0;margin-bottom:6px}
.theme-picker,.mode-picker {gap:6px}
.theme-picker button,.mode-picker button:not(.primary) {min-height:38px;font-size:.85rem;padding:7px 12px;background:#fff9e9;color:var(--ink);border:1px solid var(--rule);box-shadow:none}
.theme-picker button.selected,.mode-picker button.selected {background:#284e41;color:var(--cream);border-color:#244b40}
.theme-picker button:before {content:"";display:inline-block;margin-right:.45em;border-radius:50%;width:.8em;height:.8em;background:#eabd73;box-shadow:inset 0 0 0 1px #774e3566;vertical-align:baseline}
.theme-picker button[data-value=vhs]:before {background:linear-gradient(125deg,#688ea7,#986846)}
.topbar .brand {font-size:1.85rem;display:flex;align-items:center;gap:9px}
.brand:before {content:"";display:inline-block;width:.92em;height:.75em;border-radius:28% 24% 24% 29%;border:2px solid var(--pine);background:radial-gradient(ellipse at 35% 51%,#254a3d 0 7%,transparent 9%),radial-gradient(ellipse at 58% 51%,#254a3d 0 7%,transparent 9%),linear-gradient(90deg,#bdd9af 72%,#b59870 72%);box-shadow:inset 0 0 0 2px #f2e1bc,0 2px 0 #554330}
.menu-art.debate-set {aspect-ratio:1.38;min-height:0}
.menu-art .mic-row {opacity:.87}
.room-header .eyebrow {display:block;margin-bottom:5px}
.room-header h1 {overflow-wrap:anywhere}
.room-controls:empty,.mobile-console:empty,.status:empty,.room-controls[hidden] {display:none}
.room-aside .invite-panel {display:grid;gap:12px;text-align:center;justify-items:center;width:100%}
.room-aside .invite-panel h2 {font-size:clamp(1.5rem,2.7vw,2.6rem);margin-bottom:2px}
.invite-code {font:600 .78rem/1.4 var(--mono);color:var(--muted);letter-spacing:.025em}
.invite-code b {color:var(--ink);letter-spacing:.1em}
.invite-panel .status {border-radius:8px;font-size:.77rem;line-height:1.45;letter-spacing:0;padding:9px 10px;font-weight:550}
.invite-panel .secondary {min-width:60%}
.room-controls .setup-controls {background:transparent;padding:0;border:0;width:100%}
.setup-controls .mode-picker {width:100%}
.mode-picker .badge {margin-left:12px}
.mode-picker [data-action=start] {margin-left:auto}
.seat-settings {border-top:1px solid var(--rule);margin-top:13px;padding-top:10px}
.seat-settings summary {color:var(--pine);font-weight:680;width:fit-content;font-size:.87rem}
.seat-settings[open] summary {margin-bottom:10px}
.request-row {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0}
.request-row strong,.request-row span {min-width:0;overflow-wrap:anywhere}
.request-row + .request-row {border-top:1px solid var(--rule)}
.request-row button {min-height:34px;font-size:.84rem;padding:7px 10px}
#personal-extras:not(:empty) {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px;margin-top:16px}
.mobile-console .panel {display:grid;gap:10px}
.mobile-console .button {width:fit-content}
time {font-variant-numeric:tabular-nums}
.header-tools .badge {gap:.5em;color:#49372a;background:#fff6df;box-shadow:0 2px 4px #341c1c20}
.header-tools .badge:before {content:"";width:7px;height:7px;background:#cf5030;border-radius:50%;box-shadow:0 0 0 3px #e49c7140}
.header-tools time {margin-left:4px}
.talk-button {touch-action:none;-webkit-touch-callout:none}
.talk-button[aria-pressed=true] {outline:3px solid #f6b969;box-shadow:0 0 0 6px #f6b96955}
.toast {position:fixed;z-index:150;bottom:20px;left:50%;transform:translateX(-50%);background:#283e34;color:white;border:1px solid #607e6c;border-radius:12px;padding:12px 18px;box-shadow:0 5px 25px #1d241641;max-width:min(550px,94%);width:max-content}
dialog {color:var(--ink);background:var(--cream);border:0;padding:0;border-radius:15px;box-shadow:0 14px 70px #261c1452;max-width:min(460px,95vw)}
dialog .panel {display:grid;gap:16px}
dialog::backdrop {background:#241e1ecc;backdrop-filter:blur(3px)}
[role=status]:not(:empty) {overflow-wrap:anywhere}
.room.live .room-aside {border:0;background:transparent;padding:0}
.receipt-board {position:relative;margin:13px 0 6px;padding:26px 12px 18px;background:linear-gradient(103deg,#447469,#2a514c);border:3px solid #b59163;border-radius:22px;box-shadow:inset 0 0 0 2px #ddd0a8,0 5px 0 #71563d,0 10px 20px #32251a40}
.receipt-board:before {content:"";position:absolute;z-index:2;top:-10px;left:50%;width:65px;height:23px;transform:translateX(-50%);border:1px solid #725331;border-radius:6px;background:linear-gradient(#71583e 0%,#d8ba83 22%,#f3d399 45%,#ae885c 62%,#795c3b 86%,#e7c28a);box-shadow:0 3px 3px #34281c55}
.receipt {min-width:0;color:#382c23}
.receipt-board .receipt {position:relative;min-height:190px;padding:clamp(15px,2vw,30px);padding-bottom:32px;background:linear-gradient(100deg,#f3e8ce,#fff5de 16%,#fff2d6 78%,#f2e1c1);clip-path:polygon(0 0,100% 0,100% calc(100% - 5px),96% 100%,92% calc(100% - 5px),88% 100%,84% calc(100% - 5px),80% 100%,76% calc(100% - 5px),72% 100%,68% calc(100% - 5px),64% 100%,60% calc(100% - 5px),56% 100%,52% calc(100% - 5px),48% 100%,44% calc(100% - 5px),40% 100%,36% calc(100% - 5px),32% 100%,28% calc(100% - 5px),24% 100%,20% calc(100% - 5px),16% 100%,12% calc(100% - 5px),8% 100%,4% calc(100% - 5px),0 100%)}
.receipt .eyebrow {color:#785838;display:block;padding-bottom:10px;border-bottom:1px dashed #a08967;letter-spacing:.15em}
.receipt p {margin-top:12px;line-height:1.42}
.receipt .speaker {font-size:.92rem;font-weight:650;margin-top:16px;color:#775b40}
.receipt blockquote {font-family:var(--display);font-size:clamp(1.4rem,2.55vw,2.75rem);letter-spacing:-.033em;line-height:1.12;font-weight:700;margin:9px 0 17px;overflow-wrap:anywhere}
.receipt .verdict {color:#324e3d;border:1px solid #758767;border-radius:5px;display:inline-block;font-weight:bold;padding:3px 8px;font-size:.98rem}
.receipt[data-status=failed] .verdict {color:#863d2a;border-color:#af6857}
.receipt .sources {border-top:1px dashed #a08967;margin-top:14px;padding-top:10px;font-size:.85rem;overflow-wrap:anywhere}
.receipt.waiting h2 {font-size:clamp(1.6rem,2.35vw,2.4rem);margin-top:24px}
.history {width:100%}
.history .receipt {padding:20px 0;border-bottom:1px solid var(--rule);max-width:80ch}
.history blockquote {font-size:1.35rem}
.receipt-board.arriving .receipt {transform-origin:top;animation:receipt-land 1.1s cubic-bezier(.22,.75,.25,1) both}
@keyframes receipt-land {0%,62%{opacity:0;transform:translateY(-9px) scaleY(.9)}82%{opacity:1;transform:translateY(2px) scaleY(1.015)}100%{opacity:1;transform:none}}
@media(min-width:851px) {
  body[data-role=host][data-phase=live] .game-shell {padding:0;max-width:none}
  body[data-role=host] .room.live {position:relative;display:flex;flex-direction:column}
  body[data-role=host] .live .room-grid {position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,2.3fr) minmax(250px,1fr);align-items:stretch;gap:0;order:1;min-height:min(100svh,83vw);background:#d4ba8f url('/static/art/studio.webp') center center / cover no-repeat}
  html[data-theme=lounge] body[data-role=host] .live .room-grid,
  body[data-role=host] .live .room-grid:has([data-set-theme=lounge]) {background:#70533f url('/static/art/lounge.webp') center center / cover no-repeat}
  body[data-role=host] .live .room-header {position:absolute;z-index:4;inset:clamp(12px,2.4vh,32px) auto auto clamp(12px,2vw,40px);gap:12px;max-width:68%;min-height:0;border:0;margin:0;padding:0;align-items:center}
  body[data-role=host] .live .room-header>div:first-child {background:#fff4dded;padding:7px 13px;border-radius:10px;box-shadow:0 3px 10px #261a1230}
  body[data-role=host] .live .room-header .eyebrow {font-size:.57rem;margin-bottom:1px}
  body[data-role=host] .live .room-header h1 {font-size:clamp(1rem,1.5vw,1.75rem);letter-spacing:-.035em;max-width:24ch}
  body[data-role=host] .live .header-tools {gap:7px}
  body[data-role=host] .live .header-tools .badge {font-size:clamp(.8rem,1.15vw,1.26rem);padding:9px 13px}
  body[data-role=host] .live .header-tools button {padding:5px 10px;min-height:32px}
  body[data-role=host] .live #connection:not(:empty) {position:absolute;left:18px;top:72px;z-index:5}
  body[data-role=host] .live .stage-shell {background:none;border:0;border-radius:0;min-width:0;aspect-ratio:auto;min-height:0}
  body[data-role=host] .live .stage-shell .set-light {display:none}
  body[data-role=host] .live .host-tv {width:min(73%,85svh)}
  body[data-role=host] .live .tv-pedestal {width:50%;left:25%}
  body[data-role=host] .live .mic-prop {width:77%;max-height:20cqw}
  body[data-role=host] .live .room-aside {align-self:center;position:relative;margin:55px clamp(12px,2.2vw,55px) 50px 0}
  body[data-role=host] .live .receipt-board {margin:0;padding:clamp(22px,2.2vw,40px) clamp(12px,1.1vw,25px) clamp(16px,1.6vw,32px);border-radius:clamp(18px,2.3vw,45px)}
  body[data-role=host] .live .receipt-board:after {content:"";position:absolute;top:100%;left:8%;right:8%;height:5.2vh;z-index:-1;background:linear-gradient(90deg,#7c6045,#e2c99c,#8d6949) left / 7px 100% no-repeat,linear-gradient(90deg,#7c6045,#e2c99c,#8d6949) right / 7px 100% no-repeat}
  body[data-role=host] .live .receipt-board .receipt {min-height:43svh;max-height:73svh;overflow:auto}
  body[data-role=host] .live .room-controls {order:3;margin:14px clamp(14px,3vw,45px)}
  body[data-role=host] .live .mobile-console {order:2;margin:14px clamp(14px,3vw,45px) 0}
  body[data-role=host] .live #personal-extras {order:4;margin:0 clamp(14px,3vw,45px) 24px}
}
@media(max-width:650px) {
  .menu-form {gap:15px}.menu-art.debate-set {aspect-ratio:1.95}.menu-form h1 {font-size:2.35rem}
  .room-grid .room-aside {width:100%}
  .room-controls .mode-picker .badge {margin-left:0}
  .room-controls .mode-picker button {flex:0 1 auto}
  .room-controls .mode-picker .primary {flex:1 1 auto}
  .mobile-console h2 {font-size:1.7rem}
  .room-header{gap:8px}.mobile-console {margin:10px 0}
  .turn-console .controls {gap:6px}.turn-console button {padding:8px 10px;font-size:.9rem}
  .receipt-board .receipt {min-height:145px}
}
.tv-glass-glow {opacity:0}
[data-set-theme=lounge] .tv-glass-glow {opacity:.18;mix-blend-mode:color}
.tv-tuning-mark {transform-origin:428px 176px}
.printing .tv-tuning-mark,[data-checking=true] .tv-tuning-mark {animation:tuning .75s ease-in-out infinite alternate}
.tv-pupils {transform:translate(calc(var(--gaze-x,0px) * .4),1px);transition:transform .4s ease}
@media(min-width:851px) {
  body[data-role=host] .lobby {
    --rim:#8e603c;
    border:1px solid var(--rim);border-radius:24px;overflow:hidden;
    background:var(--cream);box-shadow:0 4px 0 var(--rim),0 13px 27px #44321c17
  }
  body[data-role=host] .lobby .room-header {
    position:relative;min-height:102px;justify-content:center;text-align:center;margin:0;padding:16px max(13%,92px);
    background:linear-gradient(135deg,transparent 0 5%,#e3a257 5% 6.4%,#e9bf7b 6.4% 7.3%,#bd5d3f 7.3% 8.4%,transparent 8.4% 100%),
               linear-gradient(315deg,transparent 0 5%,#719d87 5% 6%,#e9bf7b 6% 7%,#cb7047 7% 8%,transparent 8% 100%),#fbefd7
  }
  body[data-role=host] .lobby .header-tools {position:absolute;top:14px;right:16px}
  body[data-role=host] .lobby .header-tools .sound-toggle {font-size:.74rem;min-height:30px}
  body[data-role=host] .lobby .room-grid {padding:0;gap:0;grid-template-columns:minmax(0,2.3fr) minmax(245px,.83fr);background:var(--cream);align-items:stretch}
  body[data-role=host] .lobby .stage-shell {border-radius:0;align-self:stretch;aspect-ratio:1.8;min-height:300px}
  body[data-role=host] .lobby .room-aside {border:none;border-left:1px solid var(--rule);border-radius:0;align-self:center}
  body[data-role=host] .lobby .room-controls {border:0;border-top:1px solid var(--rule);border-radius:0;margin:0;padding:13px 20px}
  body[data-role=host] .lobby .mobile-console {border-radius:0;margin:0;border-width:0 0 1px}
  html[data-theme=lounge] body[data-role=host] .lobby .room-header {background:linear-gradient(135deg,#62412d,#88563b 50%,#68432d);color:#fff2cc}
  html[data-theme=lounge] body[data-role=host] .lobby .room-header .eyebrow {color:#e9d79e}
}
@media(min-width:851px) and (min-aspect-ratio:2/1) {
  body[data-role=host] .live .room-grid {background-size:100% 100%}
}

/* Give labels, instructions and actions a consistent reading rhythm on phones. */
h1,h2,.room-header h1 {letter-spacing:-.025em;line-height:1.12;overflow-wrap:anywhere}
.menu-form form,.mobile-console form {gap:1rem}
.field,label:has(input:not([type=checkbox]):not([type=radio])) {gap:.45rem}
.mobile-console .panel,.room-controls .setup-controls,.vote-panel,.history {display:grid;gap:.85rem}
.mobile-console .eyebrow,.room-header .eyebrow {display:block;margin-bottom:.25rem}
.turn-console h2 time {white-space:nowrap;font-variant-numeric:tabular-nums}
.invite-panel {gap:.9rem}
.invite-hint,.clip-picker small,.invite-panel .status {line-height:1.5;font-size:.86rem;font-weight:500}
.clip-picker {display:grid;justify-items:start;gap:.4rem}
.clip-picker label.button {position:relative;display:inline-flex;min-height:44px;align-items:center;cursor:pointer}
.clip-picker input {position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.clip-picker label:focus-within {outline:3px solid #3475ac;outline-offset:3px}
.clip-picker small {display:block;color:var(--muted)}
.status:empty {display:none}
.status:not(:empty) {line-height:1.5}
.request-row {gap:.8rem;overflow-wrap:anywhere}
.receipt-paper p,.receipt-paper a {line-height:1.5}
.invite-path {justify-content:center;gap:.5rem}
.invite-path button {font-size:.85rem}
#personal-extras .panel {display:grid;gap:.75rem}
@media(max-width:650px){
  .turn-console .controls {gap:.6rem}
  .mobile-console .panel,.menu-form {gap:1rem}
  .room-header .controls {row-gap:.6rem}
  .room-header h1 {letter-spacing:-.025em}
}

.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.turn-title,.turn-actions,.sheet-inner>header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.turn-title time{font:700 1.05rem var(--mono);color:var(--pine)}
.input-modes{display:flex;gap:4px;align-items:center;width:max-content;max-width:100%;background:var(--surface);padding:3px;border-radius:12px}
.input-modes button{background:transparent;border-color:transparent;box-shadow:none;min-height:38px;padding:7px 13px}
.input-modes button[aria-pressed=true]{background:var(--cream);border-color:var(--rule);box-shadow:0 1px 3px #3f382322}
.voice-feedback{color:var(--pine);font-size:.91rem;line-height:1.4;overflow-wrap:anywhere}
.voice-feedback:empty,.voice-feedback:has(p:empty):has([hidden]){display:none}
.voice-feedback p[data-state=recording]::before{content:"";display:inline-block;width:.65em;height:.65em;border-radius:50%;margin-right:.45em;background:#c3412c;box-shadow:0 0 0 3px #c3412c26}
#hold{width:100%;min-height:46px}
.turn-actions{border-top:1px solid var(--rule);padding-top:9px;flex-wrap:wrap}
.turn-actions button{min-height:40px}
.results{display:grid;gap:12px}
.results table{width:100%;border-collapse:collapse;text-align:left;font-variant-numeric:tabular-nums}
.results th,.results td{padding:8px 3px;border-bottom:1px solid var(--rule);overflow-wrap:anywhere}
.results thead{color:var(--muted);font-size:.78rem}
.results :is(td,th):nth-child(n+2){text-align:right}
.results tbody th{max-width:10em}.results small,.quiet,.log-who,.history h2 small{color:var(--muted)}
.history{width:100%}.history h2 small{font:650 .85rem var(--mono);vertical-align:middle}
.log-row{min-width:0;border-top:1px solid var(--rule)}
.log-row summary{display:grid;grid-template-columns:minmax(55px,.3fr) minmax(80px,1fr) minmax(75px,.45fr) .6em;align-items:center;gap:10px;padding:11px 0;list-style:none}
.log-row summary::-webkit-details-marker{display:none}
.log-row summary:after{content:'⌄';font-size:1rem}
.log-row[open] summary:after{transform:rotate(180deg)}
.log-row summary strong,.log-who{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.log-row summary small{color:var(--pine);text-align:right;line-height:1.2}
.log-row .receipt{padding:0 0 12px;border-bottom:0}
.log-row .receipt :is(.eyebrow,.speaker){display:none}
.log-row .receipt blockquote{font-size:1.13rem;line-height:1.4;margin:6px 0}
.quiet{font-size:.87rem;line-height:1.4}
.menu-trigger{width:44px;height:44px;display:grid;place-items:center;background:var(--cream);padding:8px}
.menu-trigger i,.menu-trigger i:before,.menu-trigger i:after{display:block;width:18px;height:2px;background:var(--ink);border-radius:2px}
.menu-trigger i{position:relative}
.menu-trigger i:before,.menu-trigger i:after{content:"";position:absolute;left:0}
.menu-trigger i:before{top:-6px}.menu-trigger i:after{top:6px}
.room-sheet{width:min(430px,100vw);max-width:100vw;max-height:82dvh;border-radius:20px 20px 0 0;margin:auto auto 0;overscroll-behavior:contain}
.sheet-inner{padding:18px 18px max(18px,env(safe-area-inset-bottom));display:grid;gap:15px}
.sheet-inner header{position:sticky;top:0;background:var(--cream);z-index:1;padding-bottom:8px;border-bottom:1px solid var(--rule)}
.sheet-inner header h2{font-size:1.5rem}
.sheet-inner :is(.room-controls,#personal-extras,.panel){margin:0}
.sheet-inner .invite-panel{display:grid;gap:8px;justify-items:center;text-align:center}
.sheet-inner .qr-code{width:min(175px,100%);height:auto}
.sheet-inner :is(#sheet-invite:empty,#sheet-tools:empty){display:none}
#front-vote:not(:empty){margin-top:.65rem}
@media(max-width:850px){
  .game-shell{padding:8px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
  .room-header{margin:0 0 8px;padding:6px 0 9px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .room-header h1{font-size:clamp(1.2rem,5.4vw,1.75rem);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .room-header .eyebrow{font-size:.61rem;margin-bottom:2px}
  .header-tools{gap:6px}
  .header-tools .badge{max-width:38vw;overflow:hidden;font-size:.75rem}
  .room .room-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
  .room .room-aside:empty{display:none}
  .room :is(.mobile-console,.room-controls,.room-aside){padding:12px;margin:8px 0}
  .mobile-console .panel{gap:8px}
  .mobile-console h2,.room-aside h2,.history h2,.results h2{font-size:1.25rem}
  .room .stage-shell,.menu-art.debate-set{aspect-ratio:auto;height:clamp(145px,23svh,210px);min-height:0;border-radius:14px}
  .room .stage-shell .host-tv,.menu-art .host-tv{width:auto;height:70%;bottom:25%}
  .room .stage-shell .tv-prop,.menu-art .tv-prop{height:100%;width:auto}
  .room .stage-shell .mic-prop,.menu-art .mic-prop{width:clamp(37px,7svh,68px)}
  .room .stage-shell .mic-label{font-size:clamp(.67rem,2.7vw,.84rem);line-height:1.15}
  .room .stage-shell .mic-tag{font-size:.55rem}
  .room.live .room-aside{margin:0;padding:0;border:0;background:transparent}
  .room.live .receipt-board{padding:8px 5px 4px;margin:8px 0 0;border-width:2px;border-radius:12px}
  .room.live .receipt-board:before{height:11px;width:44px;top:-6px}
  .room.live .receipt-board .receipt{padding:12px;min-height:0}
  .receipt-board .receipt .eyebrow{display:none}
  .receipt-board .receipt .speaker{font-size:.75rem;margin:0 0 4px}
  .receipt-board .receipt blockquote{font-size:1.17rem;margin:5px 0 8px}
  .receipt-board .receipt p,.receipt-board .receipt .sources{font-size:.84rem;margin-top:5px;line-height:1.4}
  .receipt.waiting h2{margin:0}
  .room.ended .stage-shell{display:none}
  .room.ended .room-controls{display:grid;gap:10px;justify-content:stretch}
  .history,.results{gap:7px}
  .room.ended .history{padding:0;background:transparent;border:0}
  .input-modes button,.turn-actions button,.room-sheet button,.room-header .menu-trigger{min-height:44px}
  #phrase-form{display:grid;gap:6px}
  .room .turn-actions{gap:6px}
  .room.lobby .setup-controls{gap:8px}
  .log-row summary{gap:6px;font-size:.85rem}
  .menu-layout{margin:10px auto;gap:10px}
}

#input-level:not([hidden]){display:flex;align-items:center;gap:8px;color:var(--pine);font-size:.8rem;font-weight:700}
#input-level meter{width:100px;height:12px}
.log-row[open] summary strong{white-space:normal;overflow-wrap:anywhere}
.log-row .receipt :is(blockquote,.verdict){display:none}
.history .log-row .receipt{padding:0 0 10px;border:0}
.receipt-more summary{display:flex;align-items:center;min-height:44px;color:var(--pine);font-weight:700}
.receipt-more summary::after{content:'⌄';margin-left:6px}
.receipt-more[open] summary::after{transform:rotate(180deg)}

/* ---- polish: stacked receipts, turn clock, phone support ---- */
.room-aside {max-height:calc(100vh - 150px); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin}
.receipt-board + .receipt-board {margin-top:14px}
.receipt-board.older {opacity:.74; transform:scale(.975); transform-origin:top center; transition:opacity .25s,transform .25s}
.receipt-board.older:hover {opacity:.95; transform:scale(1)}
.receipt-board.checking .receipt {animation:receiptPulse 1.6s ease-in-out infinite}
@keyframes receiptPulse {0%,100% {box-shadow:inset 0 0 0 2px #ddd0a8} 50% {box-shadow:inset 0 0 0 2px #f2c14e}}
.turn-title {display:flex; align-items:baseline; justify-content:space-between; gap:12px}
.turn-title time {font-variant-numeric:tabular-nums; font-weight:800; font-size:clamp(1.5rem,3.2vw,2.4rem); letter-spacing:-.02em}
.turn-title.soon time {color:#fb7185; animation:clockPulse .9s ease-in-out infinite}
@keyframes clockPulse {50% {opacity:.45}}
.mode-picker {flex-wrap:wrap; gap:6px; margin:8px 0}
.mode-picker strong {font-size:.78rem; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); min-width:96px}
