:root{color-scheme:dark;--navy:#102330;--ink:#f7f9fa;--shade:0;--edge:clamp(24px,4.1vw,180px)}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:var(--navy);color:var(--ink);font-family:"Avenir Next","Segoe UI",Arial,sans-serif}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:2px solid #acd7ec;outline-offset:5px}[hidden]{display:none!important}
.screen{position:relative;width:100%;height:100%;isolation:isolate}.backdrop,.shade{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-3}.shade{z-index:-1;background:linear-gradient(180deg,rgba(7,22,33,.58),transparent 31%,transparent 64%,rgba(7,22,33,.77)),linear-gradient(rgba(6,18,26,var(--shade)),rgba(6,18,26,var(--shade)))}
.top{position:absolute;inset:calc(var(--edge)*.75) var(--edge) auto;display:flex;align-items:flex-start;justify-content:space-between;gap:30px}.logo{width:clamp(250px,29vw,1050px);height:auto;filter:drop-shadow(0 2px 16px #0003)}.clock-block{text-align:right;padding-top:.3vw;text-shadow:0 2px 20px #0005}.time{display:flex;align-items:baseline;justify-content:flex-end;gap:.65rem}#clock{font-size:clamp(40px,4.5vw,175px);font-weight:300;letter-spacing:-.05em;line-height:1;font-variant-numeric:tabular-nums}#period{font-size:clamp(14px,1.05vw,38px);font-weight:400}.date{font-size:clamp(14px,1vw,36px);letter-spacing:.04em;margin-top:14px}
.bottom{position:absolute;inset:auto var(--edge) calc(var(--edge)*.85);display:flex;align-items:flex-end;justify-content:space-between;gap:30px;text-shadow:0 2px 18px #0006}.room{display:flex;flex-direction:column;gap:10px}.eyebrow{font-size:clamp(12px,.7vw,26px);letter-spacing:.23em;font-weight:500}.room-name{font-size:clamp(24px,2vw,70px);font-weight:300;letter-spacing:.02em}.cast{display:flex;gap:18px;align-items:center;padding-left:32px;border-left:1px solid #ffffff50}.cast svg{width:clamp(25px,2vw,70px);height:clamp(25px,2vw,70px)}.cast>div{display:flex;flex-direction:column;gap:8px}.cast-title{font-size:clamp(16px,1.25vw,44px);font-weight:500}.cast-instruction{font-size:clamp(14px,1vw,36px);color:#e2e9ed}.cast-instruction strong{font-weight:500}#website{font-size:clamp(14px,.95vw,34px);letter-spacing:.07em;color:#e2e9ed}.welcome{position:absolute;left:var(--edge);bottom:24%;max-width:75%;text-shadow:0 2px 24px #0008}.welcome p{font-size:clamp(14px,1vw,32px);letter-spacing:.3em}.welcome h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(36px,4.5vw,140px);line-height:1.14;font-weight:400;margin:12px 0;overflow-wrap:anywhere;text-wrap:balance}
.detail{transition:opacity .7s}.quiet .detail{opacity:0;pointer-events:none}.controls{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);display:flex;gap:4px;padding:7px;background:#102330ed;box-shadow:0 8px 35px #0004;border:1px solid #ffffff30;border-radius:12px;transition:opacity .3s;z-index:5;white-space:nowrap}.controls button{border:0;background:transparent;color:var(--ink);font-size:14px;padding:10px 15px;border-radius:6px}.controls button:hover,.controls button[aria-pressed=true]{background:#ffffff1c}body.idle{cursor:none}body.idle .controls{opacity:0;pointer-events:none}.notice{position:fixed;bottom:96px;left:50%;transform:translateX(-50%);padding:12px 20px;background:#102330ed;border-radius:6px;font-size:16px;max-width:90vw;text-align:center;z-index:6}
dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;margin:auto;background:#122a3a;color:#f7f9fa;border:1px solid #547083;border-radius:16px;padding:30px;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#0410189c;backdrop-filter:blur(8px)}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.panel-heading .eyebrow{font-size:12px;color:#bad0dd}h2{font-size:25px;font-weight:500;margin:10px 0 0}#close{background:transparent;border:0;color:white;font-size:30px;line-height:1;padding:2px 5px}label:not(.check){display:block;font-size:15px;margin:20px 0 9px}label>span{float:right;font-size:13px;color:#b5c8d4}input:not([type=checkbox]):not([type=range]){width:100%;padding:12px;border-radius:6px;border:1px solid #6b8494;background:#0b202e;color:white;font-size:16px}input::placeholder{color:#90a8b7}.check{display:flex;align-items:center;gap:10px;font-size:16px;margin-top:22px}input[type=checkbox]{accent-color:#bcdbe9;width:18px;height:18px}input[type=range]{width:100%;accent-color:#bcdbe9}.helper{font-size:13px;line-height:1.5;color:#b5c8d4;margin:8px 0 0 28px}.range-labels{display:flex;justify-content:space-between;font-size:13px;color:#b5c8d4}.panel-footer{display:flex;align-items:center;gap:20px;justify-content:space-between;margin-top:24px}.panel-footer p{font-size:12px;line-height:1.8;color:#b5c8d4}.save{border:0;border-radius:6px;background:#edf5f8;color:#102330;padding:12px 18px;font-size:14px;font-weight:600;white-space:nowrap}
@media(max-width:650px){.top{inset:30px 24px auto}.logo{width:55%;min-width:0}.time{gap:6px}#clock{font-size:36px}#period{font-size:12px}.date{font-size:12px;max-width:130px;line-height:1.5;margin-top:8px}.bottom{inset:auto 24px 32px;flex-wrap:wrap;gap:24px}.room{gap:8px}.cast{padding-left:0;border:0;flex-basis:100%;order:3}.cast-title{font-size:16px}.cast-instruction{font-size:14px}#website{font-size:12px}.controls{bottom:10px;max-width:calc(100vw - 16px);gap:0;padding:4px}.controls button{font-size:12px;padding:10px 8px}.welcome{bottom:32%;max-width:86%}.panel-footer{align-items:flex-end}dialog{padding:22px}}
@media(prefers-reduced-motion:reduce){.detail,.controls{transition:none}}

#presentation{position:fixed;inset:0;width:100%;height:100%;object-fit:contain;background:#000;z-index:10}body.presenting .screen{visibility:hidden}body.presenting .controls{z-index:12}#receiver-status{position:fixed;right:var(--edge);bottom:12px;font-size:13px;color:#d5e2ea;text-shadow:0 1px 8px #000;z-index:3;margin:0}body.presenting #receiver-status{display:none}#enable-audio{position:fixed;right:30px;bottom:30px;padding:14px 22px;border:1px solid #fff7;background:#102330;color:white;border-radius:8px;z-index:15}#pair-code{font-size:52px;letter-spacing:.16em;margin:25px 0;color:white;font-variant-numeric:tabular-nums}#present-address{overflow-wrap:anywhere;color:#d1e8f4}#setup-error{color:#ffbeaa}#setup-form p{line-height:1.5}#pair-dialog p{line-height:1.5}#pair-dialog,#setup-dialog{z-index:20}#setup-form .save{margin-top:20px}
