:root{color-scheme:dark;--bg:#0a252b;--panel:#11353b;--ink:#f4f5e9;--muted:#bbd0cc;--gold:#9be2c8;--line:#315358;--red:#be6663;--serif:Georgia,'Times New Roman',serif;--sans:'DM Sans',system-ui,-apple-system,sans-serif;font:16px/1.5 var(--sans);background:var(--bg);color:var(--ink)}
*{box-sizing:border-box}body{margin:0;min-height:100svh;display:flex;flex-direction:column}main{flex:1}button,input,a.button{font:inherit}button,.button{border:1px solid var(--line);color:var(--ink);background:#17424a;border-radius:9px;min-height:44px;padding:9px 16px;cursor:pointer;font-size:.88rem;font-weight:650;transition:background .15s,border-color .15s}.button{text-decoration:none;display:inline-flex;align-items:center}.button:hover,button:hover{background:#24535b;border-color:#669b96}button:disabled{cursor:wait;opacity:.65}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}[hidden]{display:none!important}
.wrap{width:min(1216px,calc(100% - 80px));margin-inline:auto}.top{border-bottom:1px solid #35585b}.topin{height:76px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;font:600 1.62rem var(--serif);letter-spacing:-.045em}.crest{border:1px solid #6dada1;border-radius:50%;display:grid;place-items:center;color:var(--gold);width:35px;height:35px;font-size:1.5rem}.toplabel,.small{font:.7rem/1.5 var(--sans);text-transform:uppercase;letter-spacing:.16em;font-weight:750}.toplabel{display:flex;align-items:center;gap:9px;color:var(--muted)}.light,.livepin{width:8px;height:8px;background:#87dbc0;border-radius:50%;display:inline-block}.gold{color:var(--gold)}
.lobby{margin:clamp(28px,7vh,85px) 0;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(350px,1fr);border:1px solid var(--line);border-radius:20px;overflow:hidden;background:var(--panel)}.hero{position:relative;min-height:545px;display:flex;align-items:flex-end;isolation:isolate}.scene{inset:0;width:100%;height:100%;position:absolute;object-fit:cover;object-position:63% center;z-index:-2}.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(19,8,6,.94) 0%,rgba(23,12,9,.58) 30%,transparent 78%);z-index:-1}.hero-copy{padding:clamp(24px,4vw,55px);width:100%}.hero h1{font:normal clamp(3.5rem,6.25vw,6rem)/.99 var(--serif);letter-spacing:-.065em;margin:13px 0 19px}.hero h1 em{color:#adedd0;font-weight:400}.hero p{font-size:1.04rem;line-height:1.6;color:#d8e5da;margin:0}
.entry{display:flex;flex-direction:column;justify-content:center;padding:clamp(25px,4.1vw,64px);border-left:1px solid var(--line)}.tabs{display:flex;gap:4px;background:#0a2228;padding:4px;border:1px solid var(--line);border-radius:11px;margin-bottom:31px}.tabs button{min-height:38px;flex:1;background:transparent;border-color:transparent;color:var(--muted);padding:6px}.tabs button[aria-pressed=true]{background:#29514e;color:var(--gold);border-color:#44716a}.entry h2,.roomhead h1,dialog h2{font:normal clamp(2rem,3vw,3rem)/1.1 var(--serif);letter-spacing:-.045em;margin:0}.entry p{margin:10px 0 22px;color:var(--muted);font-size:.95rem}label{display:block;margin:0 0 7px;font-size:.86rem;font-weight:650}input{width:100%;min-width:0;background:#0d2a31;border:1px solid #52767a;border-radius:9px;padding:12px 14px;color:var(--ink);font-size:16px;min-height:48px}input::placeholder{color:#a9bfbc}#codeField{margin-top:17px}#code{text-transform:uppercase;letter-spacing:.12em}#code::placeholder{text-transform:none;letter-spacing:.035em}.primary{width:100%;margin-top:23px;color:#082c2d;border-color:#89d7bb;background:var(--gold);display:flex;justify-content:space-between;align-items:center;padding:12px 17px;min-height:49px;font-size:1rem}.primary:hover{background:#b7f1d9}.primary span+span{font-size:1.35rem}.foot{border-top:1px solid #35585b;display:flex;justify-content:space-between;align-items:center;color:#bfd0c9;font-size:.78rem;padding:18px 0 22px}.foot span+span{color:#96c3b5;font-size:1rem}
.roomhead,.sectionhead,.dialoghead{display:flex;justify-content:space-between;align-items:center;gap:12px}.roomhead{padding:27px 0 22px;flex-wrap:wrap}.roomhead h1{font-size:2.4rem;margin-top:3px}.roomhead h1 span{color:var(--gold)}.actions,.controls{display:flex;flex-wrap:wrap;gap:8px}.danger{color:#ffc4b9}.sectionhead h2{font:normal 1.45rem var(--serif);letter-spacing:-.025em;margin:0}.sectionhead{margin:0 0 12px}.sectionhead>span{color:var(--muted);font-size:.8rem}.roomcols{display:grid;grid-template-columns:minmax(0,2.3fr) minmax(260px,1fr);gap:22px;margin:6px 0 32px;align-items:start}.stagecol,.chat{min-width:0}.stagecol .sectionhead:nth-last-of-type(1){margin-top:16px}.tile{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#11333b;position:relative;isolation:isolate;display:flex;flex-direction:column;min-width:0}.viewport{position:relative;background:radial-gradient(ellipse at center,#17414b,#0a252b);display:grid;place-items:center;overflow:hidden;aspect-ratio:4/3;min-height:0}.stage .viewport,#stage .viewport{aspect-ratio:16/9;max-height:56svh}.viewport video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.avatar{border:1px solid #548581;border-radius:50%;width:44px;height:44px;display:grid;place-items:center;background:#234f50;color:#b8e9d3;font:1.3rem var(--serif)}#stage .avatar{width:70px;height:70px;font-size:2.1rem}.tilefoot{display:flex;justify-content:space-between;align-items:center;gap:4px;padding:6px 9px;min-height:43px}.tilefoot strong{font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tilefoot button{padding:2px 5px;min-height:34px;font-size:.77rem;background:transparent;border-color:transparent;color:var(--gold)}.tilefoot .remove{color:#eda89b}.tiletools{display:flex;gap:1px;align-items:center}.people{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr));gap:9px}.people:has(>.tile:only-child){grid-template-columns:minmax(130px,210px)}.controls{margin:12px 0 22px}.controls [aria-pressed=true]{border-color:#66b29e;background:#21564f;color:var(--gold)}.empty,.feedback,#entryError,.chat-empty{color:var(--muted);font-size:.9rem}.feedback,#entryError{padding:9px 12px;background:#173c42;border:1px solid #467274;border-radius:8px}.feedback{margin:0 0 13px}#entryError{margin-top:13px}.chat{border:1px solid var(--line);border-radius:14px;padding:16px;background:var(--panel)}.messages{height:clamp(220px,45vh,450px);overflow-y:auto;scrollbar-width:thin}.msg{padding:7px 0;overflow-wrap:anywhere}.msg strong{font-size:.81rem;color:var(--gold)}.msg p{margin:2px 0;font-size:.92rem}.msg time{margin-left:8px;font-size:.7rem;color:var(--muted)}#sendChat{display:flex;align-items:center;gap:6px;margin-top:10px}.send{border:0;background:var(--gold);color:#153735;font-size:1.4rem;min-width:44px;line-height:1}.send:hover{background:#b6ecda}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}dialog{border:1px solid #618982;border-radius:13px;color:var(--ink);background:var(--panel);width:min(92vw,520px);padding:22px}dialog::backdrop{background:#0d0909d9}dialog h2{font-size:1.7rem}dialog p{color:var(--muted)}#zoom{width:min(94vw,1000px)}#zoom video{display:block;max-height:76svh;width:100%;background:#081f25;margin-top:12px}#zoomEmpty{text-align:center}
@media(max-width:820px){.wrap{width:calc(100% - 36px)}.roomcols{grid-template-columns:1fr}.entry{padding:24px}.lobby{grid-template-columns:1fr 1fr}.hero{min-height:480px}.topin{height:65px}}
@media(max-width:640px){.topin{height:58px}.brand{font-size:1.35rem;gap:8px}.crest{width:29px;height:29px;font-size:1.2rem}.toplabel{font-size:.6rem}.wrap{width:calc(100% - 28px)}.lobby{grid-template-columns:1fr;margin:16px 0 22px;border-radius:14px}.hero{min-height:203px}.hero-copy{padding:22px}.hero h1{font-size:3.15rem;margin:6px 0 8px}.hero p{font-size:.88rem;line-height:1.4}.small{font-size:.61rem}.scene{object-position:68% 51%}.hero:after{background:linear-gradient(90deg,#130a08db,transparent 98%),linear-gradient(0deg,#170b09bb,transparent 65%)}.entry{border-left:0;border-top:1px solid var(--line);padding:19px}.tabs{margin-bottom:16px}.entry p{margin:7px 0 15px}.entry h2{font-size:1.95rem}.roomhead{padding-top:18px}.roomhead h1{font-size:1.9rem}.roomcols{gap:18px}.actions{gap:5px}.actions button,.actions .button,.controls button{font-size:.8rem;padding:8px 11px}.people{grid-template-columns:repeat(2,minmax(0,1fr))}.tilefoot{padding:3px 5px}.toplabel{letter-spacing:.1em}.foot{padding:13px 0}.roomhead .actions{width:100%}#zoom{padding:12px}}

.crest{font:italic 700 1.22rem Georgia,serif;border-radius:9px 3px 9px 3px}.foot span+span{font-size:.8rem}.top{background:#0c3037}.lobby{grid-template-columns:minmax(0,1.25fr) minmax(340px,1fr);background:#f4f5ee}.hero{background:#10383b;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;min-height:0;isolation:auto}.hero:after{display:none}.hero-copy{order:0;padding:25px 32px 20px}.hero h1{font-size:clamp(2.65rem,4.5vw,4.7rem);margin:0 0 4px}.hero p{font-size:.93rem}.hero .scene{order:1;display:block;position:static;z-index:auto;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center}.entry{background:#f3f4eb;color:#173a3e;padding:clamp(22px,4vw,58px)}.entry p{color:#465d5c}.entry input{background:#fffefa;border-color:#b0bfba;color:#173a3e}.entry input::placeholder{color:#657e79}.entry .tabs{background:#e5ebe3;border-color:#bfcdc4}.entry .tabs button{color:#38544e}.entry .tabs button[aria-pressed=true]{background:#fffef7;border-color:#a6bfb2;color:#0c4a44}.entry .primary{background:#126457;border-color:#126457;color:white}.entry .primary:hover{background:#0a5247}.entry #entryError{background:#f7ded1;color:#59382d;border-color:#c99e8b}.entry input:focus-visible{outline-color:#257b68}.roomhead h1,.sectionhead h2{color:#e6f1e7}.foot{margin-top:auto}
@media(max-width:640px){.lobby{grid-template-columns:1fr}.hero-copy{padding:15px 19px 10px}.hero h1{font-size:2.4rem}.hero .scene{max-height:250px;aspect-ratio:1.60;object-position:center 65%}.entry{padding:20px}.toplabel{color:#b2d4c7}}
