:root { color-scheme: dark; font-family: Georgia, serif; background: #110d0a; color: #f5e6cf; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; display: grid; place-items: center; background: radial-gradient(ellipse at center,#312318,#0c0907 75%); }
main { width: min(96vw, 1120px, calc((100svh - 58px) * 1.49)); padding: .3rem 0; }
.cabinet { position: relative; isolation: isolate; aspect-ratio: 1080 / 724; background: url('art/channel-01.webp') center / 100% 100%; }
.cabinet[data-channel="2"] { background-image: url('art/channel-02.webp'); }
.screen, .schedule { position: absolute; top: 10.2%; left: 6.9%; width: 70.8%; height: 77.8%; border-radius: 9% / 11%; overflow: hidden; }
.screen { display: grid; place-items: center; background: radial-gradient(ellipse at 45% 35%,#272521,#0b0a09 72%); }
.cabinet[data-state="welcome"] .screen { background: transparent; }
.cabinet[data-state="playing"] .screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg,#0002 0px,#0002 1px,transparent 2px,transparent 4px); box-shadow: inset 0 0 2.4rem #0009; }
video,canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
video { background: black; object-fit: contain; }
canvas { object-fit: fill; }
button, .file-label { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, .file-label:focus-within { outline: 2px solid #ffe1a2; outline-offset: 3px; }
.power, .tools button, .file-label, .schedule button { padding: .45em .8em; border: 1px solid #9b7d56; border-radius: 4px; background: #23170e; }
.power { z-index: 1; font-size: clamp(.82rem, 2.6vw, 1.35rem); background: #352316; box-shadow: 0 5px 22px #0008; }
.dial { position: absolute; top: 21%; left: 81%; width: 14%; height: 21%; border: 0; border-radius: 50%; background: transparent; }
.dial:hover { box-shadow: 0 0 16px #ffe2b04f; }
.guide-button { position: absolute; top: 48%; left: 83%; width: 10%; padding: .35em 0; border: 1px solid #554637; background: #21170f; border-radius: 4px; font-size: clamp(.64rem, 1.8vw, 1rem); }
.badge { position: absolute; top: 8%; right: 8%; font: bold clamp(.8rem, 2.5vw, 1.8rem) monospace; color: #b5f6a0; text-shadow: 1px 1px 4px #000; z-index: 1; }
#message:not(:empty) { position: absolute; z-index: 2; inset: auto 6% 10%; padding: .6em; background: #110d0aeb; text-align: center; }
.schedule { z-index: 4; background: #191a18f7; padding: 8%; overflow: auto; font-size: clamp(.68rem,1.8vw,1.1rem); }
.schedule header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .65em; }
.schedule h1 { font-size: 1.45em; margin: 0; }
.schedule article { border-top: 1px solid #847258; padding: .55em 0; }
.schedule article button { max-width: 100%; text-align: left; }
.schedule p { margin: .4em 0; }
.schedule b { color: #e7c583; }
footer { display: flex; gap: .35rem .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 0 2%; font-size: clamp(.75rem, 1.6vw, 1rem); }
.tools { display: flex; gap: .45em; }
.file-label { position: relative; }
.file-label input { position: absolute; width: 100%; height: 100%; inset: 0; opacity: 0; cursor: pointer; }
#hint { margin: .5rem 2% 0; color: #e7c583; font-size: .88rem; }
main:fullscreen { display: grid; place-content: center; width: 100%; background: #0c0907; grid-template-columns: min(100vw, calc((100vh - 54px) * 1.49)); }
@media (max-width: 600px) { main { width: 100vw; } .schedule { padding: 5%; } }
#message { pointer-events: none; }
