:root{color-scheme:dark;--paper:#f5f6f2;--ink:#172936;--ice:#c1e5ff;--stage:#0b1521}
.draw-body,.guest-shell{font-family:"Segoe UI Variable Display","Segoe UI Variable","Segoe UI",Arial,sans-serif;font-synthesis:none;-webkit-font-smoothing:antialiased;text-rendering:geometricPrecision;color:#f6f9fe}
.draw-body{margin:0;min-height:100svh;background:radial-gradient(ellipse at 55% 0%,#1e3248 0%,#101c2a 42%,#0a121b 83%);display:flex;justify-content:center;align-items:flex-start}
.guest-shell *,.guest-shell{box-sizing:border-box}
.guest-shell{width:min(100%,690px);padding:18px clamp(18px,5vw,36px) max(20px,env(safe-area-inset-bottom));min-width:0}
.guest-shell [hidden]{display:none!important}
.station{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #536374;min-height:64px;padding-bottom:10px;margin-bottom:clamp(18px,3.5vw,36px)}
.station-logo{width:105px;height:54px;object-fit:contain;object-position:left center;display:block}
.station-title,.guest-shell .label,.entry-label>span{text-transform:uppercase;font-weight:800;letter-spacing:.13em;font-size:.78rem}
.station-title{color:#d5e9fc;letter-spacing:.18em}.guest-shell h1{font-size:clamp(1.45rem,5.9vw,2.3rem);line-height:1.12;margin:0 0 9px;letter-spacing:-.045em;font-weight:760}
.guest-shell p{margin:0}.guest-shell .rules,.board-note{color:#c8d6e4;font-size:1rem;line-height:1.45}.guest-shell .rules strong{color:white}
.entry-graphic{position:relative;isolation:isolate;overflow:hidden;border-radius:16px;height:clamp(150px,37vw,225px);background:#b8d7ee;color:var(--ink);margin-bottom:23px;border:1px solid #e0eff9;box-shadow:inset 0 0 0 6px #e0ecf555;background-image:repeating-linear-gradient(0deg,transparent 0 22px,#43688419 23px 24px)}
.entry-label{position:absolute;left:6%;top:13%;bottom:17%;display:flex;flex-direction:column;justify-content:space-between;line-height:.78}
.entry-label>b{font-size:clamp(3.1rem,12vw,5.4rem);letter-spacing:-.09em;font-style:italic;font-weight:900;line-height:.79}.entry-label>b span{color:#39729b}.entry-label>span{font-size:.64rem}
.record{position:absolute;width:56%;aspect-ratio:1;right:1%;top:10%;border:3px solid var(--ink);border-radius:50%;transform:rotate(-12deg);background:repeating-radial-gradient(circle at center,#1e3445 0 3px,#53758a 4px,#263f52 5px 7px);box-shadow:-5px 7px 0 #6f90a655}
.record:before,.record:after{content:"";position:absolute;inset:37%;border-radius:50%;background:#f2e4be;border:1px solid #d4bb8e}
.record:after{inset:48.4%;background:var(--ink);border:0}
.record-pin{position:absolute;width:7%;aspect-ratio:1;right:5%;top:8%;background:#e6ebed;border:3px solid var(--ink);border-radius:50%}
.needle{position:absolute;right:8%;top:16%;width:17%;height:44%;border-right:4px solid #192f3f;border-bottom:5px solid #192f3f;border-radius:0 0 18% 0;transform-origin:top right;transform:rotate(21deg);filter:drop-shadow(2px 2px 0 #d1e7f3)}
.guest-shell form{display:grid;gap:8px;margin-top:24px}.guest-shell label,.guest-shell button{font-size:1rem;font-weight:700}
.guest-shell input,.guest-shell button{font:inherit;min-height:48px;box-sizing:border-box;border-radius:9px}.guest-shell input{color:#f7fbff;background:#0d1824;border:1px solid #7190aa;padding:0 14px;font-size:16px}
.guest-shell input::placeholder{color:#aab9c7}.guest-shell button{cursor:pointer;font-weight:750}.guest-shell .primary{color:#0c2133;background:#c1e5ff;border:1px solid #d9edff;padding:10px 17px;margin-top:5px;box-shadow:inset 0 -2px 0 #96bbd3}
.guest-shell button:focus-visible,.guest-shell input:focus-visible{outline:3px solid #f4c877;outline-offset:2px}.guest-shell button:disabled{opacity:.55;cursor:default}
.guest-shell .label{color:#a9cbe4;margin:0 0 5px}.round-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 10px}.round-copy{min-width:0}
.guest-shell #word{margin:0;overflow-wrap:anywhere;font-size:clamp(1.45rem,6vw,2.25rem)}
.clock{font-size:clamp(1.8rem,7vw,2.8rem);font-weight:800;line-height:1;letter-spacing:-.05em;font-variant-numeric:tabular-nums;color:#f5faff}.clock.urgent{color:#ffcb79}
.time-track{height:4px;background:#304359;border-radius:3px;overflow:hidden;margin:0 0 13px}.time-track i{display:block;height:100%;width:100%;background:var(--ice);transition:width 180ms linear}
.board-wrap{position:relative;width:100%;aspect-ratio:600/330;background:var(--paper);border-radius:10px;overflow:hidden;box-shadow:0 3px 15px #0002}
#board{display:block;position:absolute;width:100%;height:100%;touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair}.pens{display:flex;gap:7px;margin:12px 0}.pens button{background:#1b2b3b;color:#d8e4ef;border:1px solid #566c80;padding:0 13px;min-height:44px}.pens [aria-pressed="true"]{color:#0b1d2c;background:var(--ice);border-color:var(--ice)}.pens #undo{margin-left:auto}
.guest-shell .board-note{font-size:.9rem;color:#c2d4e4}.guest-feedback{min-height:20px;color:#f6d59b;font-size:.9rem;line-height:1.4;margin-top:12px}
#line .primary{margin-top:17px;width:100%}#line{padding:18px 0 20px}#line:has(+ #round:not([hidden])){border-bottom:1px solid #41556a;margin-bottom:17px}
@media(max-height:500px) and (orientation:landscape){.draw-body:has(#round:not([hidden])) .station{display:none}.draw-body:has(#round:not([hidden])) .guest-shell{width:min(100%,calc((100svh - 104px) * 1.8182));min-width:min(100%,315px);padding:5px 0}.round-head{margin-bottom:2px}.guest-shell .round-copy .label{font-size:.65rem;margin:0}.guest-shell #word,.clock{font-size:1.4rem}.time-track{margin-bottom:4px}.pens{margin:3px 0}.pens button{min-height:38px}.draw-body:has(#round:not([hidden])) .board-note{display:none}}

.guess-panel{margin:10px 0;border:1px solid #476078;border-radius:10px;background:#101e2d;padding:9px 12px}
.guess-panel h2{font-size:.85rem;letter-spacing:.05em;color:#c1e5ff;margin:0 0 5px}
#guess-feed{height:4.3em;overflow:auto;overscroll-behavior:contain;line-height:1.43;font-size:1rem;overflow-wrap:anywhere}
#guess-feed b{color:#a5d9ff}

#leave{background:#17293a;color:#f6f9fe;border:1px solid #66829a;padding:0 10px;min-height:44px;white-space:nowrap;font-size:.95rem}
#leave span{font-size:1.45rem;vertical-align:-.08em}
@media(max-width:360px){.station:has(#leave:not([hidden])) .station-title{display:none}}
@media(max-height:500px) and (orientation:landscape){
 .draw-body:has(#round:not([hidden])) .station{display:contents}
 .draw-body:has(#round:not([hidden])) .station> :not(#leave){display:none}
 .draw-body:has(#round:not([hidden])) #leave{float:right;margin-left:8px}
 .draw-body .round-head{min-height:44px}
}

.guest-shell :is(h1,p,button,#coverTitle,.station-title,label,#guess-feed){white-space:pre-line}
.station-title{text-align:center;letter-spacing:.06em;line-height:1.4}
#guest[data-game="sound"] .entry-label b{font-size:clamp(1.8rem,7vw,3.3rem)}
#guest h1{overflow-wrap:anywhere;line-height:1.16}
#guest #word{font-size:clamp(1.28rem,4.8vw,2.1rem)}
#guest .pens button{padding:5px 3px;font-size:.94rem}
#guest .round-copy{min-width:0}
#voice{border-radius:18px;border:1px solid #54748f;padding:18px;background:linear-gradient(145deg,#1a354e,#0e1c2e);text-align:center}
#voiceTime{display:block;color:#b9dfff;font-size:1.6rem;margin:0 auto 12px}
#voice :is(button,audio,meter),#again{display:block;width:100%;margin-top:14px}
#meter{height:16px;accent-color:#43cced}
#voice #record{border-radius:50%;width:132px;height:132px;margin:14px auto;color:white;background:#b32249;border:4px solid #f78ba0;padding:3px}
#voice #record.live{background:#fbd6dd;color:#83002d;font-size:1.4rem}
#micNote,#current-room{display:block;color:#d0e8ff;margin-top:12px}
#guest [hidden]{display:none!important}

#voice #watchSoundLive{display:inline-flex;align-items:center;justify-content:center;min-height:46px;margin-top:14px;padding:0 18px;border:1px solid #a1c8e5;border-radius:9px;color:#e7f4fd;font-weight:700;text-decoration:none}
#voice #watchSoundLive:focus-visible{outline:3px solid #f4c877;outline-offset:2px}
