:root { font: 18px system-ui,sans-serif; color: #003c3a; background: #f6f1e7; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
#pair { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; text-align: center; }
#pair-code { border: 2px solid #00615b; border-radius: 14px; padding: .2em .5em; font: bold clamp(2rem,10vw,8rem) monospace; letter-spacing: .18em; }
.brand { font-weight: 800; letter-spacing: .17em; }
#board { height: 100vh; overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) minmax(240px, 25vw); }
#board.queue-left { grid-template-columns: minmax(240px, 25vw) minmax(0,1fr); }
#board.queue-left #queue { grid-column: 1; grid-row: 1; }
#board.no-queue { grid-template-columns: minmax(0,1fr); }
#content { position: relative; min-width: 0; padding: 4vh 3vw; overflow: hidden; }
#content header { padding-bottom: 3vh; }
#content h1 { font-size: clamp(2rem,4vw,4rem); }
#menu { display: grid; grid-template-columns: repeat(auto-fit,minmax(225px,1fr)); gap: 12px; }
.menu-item { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #cfdbd5; padding: 10px; background: white; }
#media { position: absolute; inset: 0; background: #003c3a; }
#media img, #media video { width: 100%; height: 100%; object-fit: contain; }
#queue { display: flex; flex-direction: column; justify-content: center; gap: 1.2vh; background: #e4ebe2; padding: 2vw; text-align: center; }
#queue h2 { font-size: clamp(1.1rem,2.3vw,2.7rem); background: #003c3a; color: white; padding: .45em; }
#queue h3 { font-size: clamp(1rem,1.5vw,2rem); padding: .35em; }
.numbers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.numbers strong { background: white; border-radius: 8px; padding: .35em; font: bold clamp(1.6rem,3.5vw,4rem) monospace; }
#ready strong { background: #00665e; color: white; }
#ticker { position: relative; padding-top: 14px; font-size: 1.2rem; }
#offline { position: fixed; left: 14px; bottom: 14px; background: #6e2d2b; color: white; padding: 8px 12px; border-radius: 7px; }
body.sleep { background: #000; }
body.sleep #board { visibility: hidden; }

.numbers .empty-slot { background: transparent !important; outline: 1px solid #c8d5cc; }
