:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #090b10;
  color: #edf2ff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --bg: #090b10;
  --surface: #11151e;
  --surface-raised: #171c28;
  --surface-input: #0b0f17;
  --line: #273044;
  --muted: #8b96ad;
  --dim: #5f6b84;
  --accent: #b9cdfd;
  --accent-strong: #dbe5ff;
  --positive: #9be4bd;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 16% -10%, #182237 0, transparent 40%), var(--bg); }
main { max-width: 1500px; margin: auto; padding: 38px 48px 48px; }
.masthead { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.eyebrow { margin: 0 0 8px; color: var(--dim); font-size: 10px; font-weight: 750; letter-spacing: .18em; line-height: 1.2; text-transform: uppercase; }
.wordmark { color: #f4f6ff; font-size: 24px; font-weight: 850; letter-spacing: .08em; line-height: 1; text-decoration: none; }
.wordmark span { color: #75819a; font-size: 11px; letter-spacing: .14em; vertical-align: middle; }
.badge { border: 1px solid var(--line); border-radius: 100px; color: #aab5cb; font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 9px 13px; text-transform: uppercase; }
.badge.available { border-color: #376449; color: var(--positive); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 34px; align-items: start; }
.screen-shell { padding: 12px; background: rgba(15, 19, 29, .82); border: 1px solid #20283a; border-radius: 20px; box-shadow: 0 24px 70px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .04); }
.screen-label { display: flex; align-items: center; gap: 8px; margin: 0 5px 10px; color: #6f7d96; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.signal-dot { width: 6px; height: 6px; border-radius: 50%; background: #65718a; box-shadow: 0 0 0 3px rgba(101, 113, 138, .12); }
.screen { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #030406; border: 1px solid #293249; border-radius: 12px; box-shadow: inset 0 0 70px rgba(0, 0, 0, .48); }
canvas { width: 100%; height: 100%; object-fit: contain; }
#screen-message { max-width: 500px; padding: 30px; color: #8b96ad; line-height: 1.6; text-align: center; }
.telemetry { display: flex; align-items: center; gap: 20px; min-height: 52px; color: #8994aa; font-size: 11px; font-variant-numeric: tabular-nums; }
.telemetry .text-button { margin-left: auto; }
#status { min-height: 22px; margin: 4px 4px 0; color: #b7c0d2; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.error { color: #ffa7aa !important; }
aside { display: grid; gap: 18px; }
.panel { padding: 24px; background: rgba(17, 21, 30, .9); border: 1px solid #252e42; border-radius: 18px; box-shadow: 0 14px 36px rgba(0, 0, 0, .16), inset 0 1px rgba(255, 255, 255, .025); }
.panel-primary { background: linear-gradient(145deg, rgba(27, 36, 55, .94), rgba(16, 20, 29, .96)); border-color: #34415d; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 2px; }
.panel-heading .eyebrow { margin-bottom: 9px; }
.panel-mark { color: #77839a; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
h1, h2 { margin: 0 0 11px; color: #f1f4fb; font-size: 20px; font-weight: 700; letter-spacing: -.025em; line-height: 1.25; text-wrap: balance; }
h2 { font-size: 18px; }
p { margin: 0 0 19px; color: #9aa6bc; font-size: 13px; line-height: 1.65; text-wrap: pretty; }
label { display: block; margin: 17px 0 8px; color: #aab5c9; font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
button, input, select { min-height: 42px; font: inherit; }
button { padding: 10px 15px; overflow: hidden; color: #121b30; background: var(--accent); border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 750; text-align: center; text-overflow: ellipsis; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s cubic-bezier(.2, 0, 0, 1); white-space: nowrap; }
button:hover { background: var(--accent-strong); }
button:active:not(:disabled) { transform: scale(.96); }
button:disabled { color: #707b91; background: #252b39; cursor: not-allowed; }
.wide-button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding-inline: 15px; }
.wide-button span { font-size: 16px; font-weight: 400; }
.secondary { color: #d4dced; background: #252d3f; border-color: #3b4760; }
.secondary:hover { color: white; background: #34405a; }
.text-button { min-height: 40px; padding: 4px 0; color: #aeb9cd; background: none; border: 0; font-size: 11px; }
.text-button:hover { color: white; background: none; }
input, select { width: 100%; min-width: 0; padding: 10px 12px; color: #dce4f3; background: var(--surface-input); border: 1px solid #344058; border-radius: 9px; font-size: 12px; outline: none; }
input::placeholder { color: #59657d; }
input:focus, select:focus, button:focus-visible { border-color: #91b0f0; outline: 2px solid rgba(145, 176, 240, .5); outline-offset: 2px; }
.field-group { margin-bottom: 10px; }
.row { display: flex; gap: 9px; align-items: center; }
.row select, .row input { flex: 1; }
.detail { margin: 10px 0 0; color: #8490a8; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
details { margin: 13px 0 19px; }
summary { min-height: 40px; padding-top: 10px; color: #aab6cc; cursor: pointer; font-size: 11px; }
#local { margin-top: 3px; }
.join-divider { display: flex; align-items: center; gap: 10px; margin: 22px 0 2px; color: #65718a; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.join-divider::before, .join-divider::after { height: 1px; flex: 1; background: #283248; content: ""; }
#room { margin-top: 20px; padding-top: 1px; border-top: 1px solid #2b354a; }
#players { margin: 14px 0 17px; padding-left: 21px; color: #b7c2d5; font-size: 12px; line-height: 2; }
#room .row { flex-wrap: wrap; }
.install-progress { display: grid; gap: 9px; margin: 12px 4px 0; color: #a6b1c6; font-size: 11px; font-variant-numeric: tabular-nums; }
.install-progress[hidden] { display: none; }
.install-progress progress { width: 100%; height: 7px; accent-color: var(--positive); }
.screen:fullscreen { width: 100vw; height: 100vh; background: #000; border: 0; border-radius: 0; }
@media (max-width: 1050px) { main { padding: 28px 24px 36px; } .layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; } }
@media (max-width: 820px) { .masthead { align-items: start; } .layout { grid-template-columns: 1fr; } aside { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { main { padding: 20px 14px 28px; } .masthead { margin-bottom: 24px; } .wordmark { font-size: 19px; } .wordmark span { font-size: 9px; } .badge { padding: 8px 10px; font-size: 9px; } .screen-shell { padding: 8px; border-radius: 15px; } aside { grid-template-columns: 1fr; } .panel { padding: 20px; border-radius: 15px; } .telemetry { gap: 11px; } }
