/* Xmas Whackers – Look angelehnt an BO Veranstaltungstechnik (schwarz, Roboto, Hellblau),
   bei Nacht und mit Weihnachtslicht (Gold, Rot). */
:root {
  --black: #000;
  --ink: #070707;
  --card: #121212;
  --card2: #1a1a1a;
  --line: rgba(255, 255, 255, 0.12);
  --line2: rgba(255, 255, 255, 0.55);
  --text: rgba(255, 255, 255, 0.88);
  --muted: rgba(255, 255, 255, 0.55);
  --dim: rgba(255, 255, 255, 0.4);
  --blue: #37b4de;
  --blue-dark: #01305f;
  --gold: #ffc861;
  --red: #d7263d;
  --font: Roboto, 'Segoe UI', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { font-family: var(--font); font-size: 17px; color: var(--text); background: var(--black); }
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
button { font-family: var(--font); }

/* ---------- Kopfleiste wie bei BO ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 68px; z-index: 10;
  background: #000; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 6vw, 110px); border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar.hidden { display: none; }
.brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: #fff; cursor: pointer; padding: 0; }
.brand .mark { width: 46px; height: 46px; }
.brand .word { font-weight: 300; font-size: 22px; letter-spacing: .06em; }
.brand .word b { font-weight: 900; letter-spacing: .02em; margin-left: 4px; }
.nav { display: flex; gap: clamp(10px, 2vw, 28px); }
.nav button {
  background: none; border: 0; cursor: pointer; padding: 6px 0;
  color: var(--dim); font-size: 15px; text-transform: uppercase; letter-spacing: .02em;
  transition: color .15s;
}
.nav button:hover { color: #fff; }
.nav button.active { color: var(--blue); }
@media (max-width: 860px) { .nav button { font-size: 12px; } .brand .word { display: none; } }

/* ---------- Seiten ---------- */
.screen { position: fixed; inset: 68px 0 0 0; display: none; flex-direction: column; z-index: 1; overflow-y: auto; background: var(--ink); }
.screen.active { display: flex; }
#screen-game { inset: 0; background: #000; overflow: hidden; z-index: 5; }
.page { width: 100%; max-width: 1280px; margin: 0 auto; padding: 46px clamp(16px, 5vw, 60px) 60px; }
.page.narrow { max-width: 820px; }
.page-title { font-weight: 400; font-size: clamp(28px, 3.2vw, 42px); color: #fff; margin: 0 0 18px; letter-spacing: .2px; }
.page-title.big { font-size: clamp(44px, 6vw, 80px); font-weight: 300; margin-bottom: 26px; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 880px; margin: 0 0 22px; }
.kicker { color: var(--blue); text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 500; margin: 0 0 14px; }
.hint { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 4px 0 14px; }
.center { text-align: center; }
.warn { color: var(--gold); font-size: 14.5px; }
.error { color: #ff8b98; font-size: 15px; }
.val { color: var(--muted); margin-left: 10px; font-variant-numeric: tabular-nums; }
.mt { margin-top: 26px !important; }

/* ---------- Knöpfe: wie die Umriss-Knöpfe der BO-Seite ---------- */
.btn {
  font-size: 15px; font-weight: 400; color: #fff; cursor: pointer;
  background: transparent; border: 1px solid var(--line2); border-radius: 3px;
  padding: 10px 20px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .08s;
}
.btn:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #00182b; font-weight: 700; }
.btn.primary:hover { background: #5cc6ea; border-color: #5cc6ea; }
.btn.big { font-size: 18px; padding: 15px 34px; }
.btn.small { padding: 6px 13px; font-size: 13.5px; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
.row-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.row-buttons.left { justify-content: flex-start; }

/* ---------- Startseite ---------- */
#screen-home { background: var(--ink); }
.hero { position: relative; min-height: min(74vh, 720px); flex-shrink: 0; overflow: hidden; background: #000; }
#hero-stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-text { position: absolute; left: clamp(16px, 8vw, 140px); bottom: clamp(30px, 8vh, 90px); right: 16px; z-index: 2; }
.hero h1 { font-weight: 700; font-size: clamp(44px, 7vw, 104px); line-height: 1.02; color: #fff; margin: 0 0 28px; letter-spacing: -.01em; text-shadow: 0 4px 40px rgba(0, 0, 0, .8); }
.hero h1 span { font-weight: 300; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.section { width: 100%; max-width: 1280px; margin: 0 auto; padding: 60px clamp(16px, 5vw, 60px) 30px; }
.section h2 { font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); color: #fff; margin: 0 0 24px; }
.foot { text-align: center; color: var(--dim); font-size: 13px; padding: 24px; }

/* ---------- Karten (wie die grauen Kästen der BO-Seite, nur bei Nacht) ---------- */
.cards { display: grid; gap: 22px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); margin-top: 22px; }
@media (max-width: 900px) { .cards.three, .cards.two { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 24px 26px; position: relative; }
.card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 12px; }
.card p { color: var(--muted); line-height: 1.6; margin: 0; }
.card-num { display: block; font-size: 44px; font-weight: 100; color: var(--blue); line-height: 1; margin-bottom: 14px; }
.step { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--blue); color: var(--blue); display: inline-grid; place-items: center; font-weight: 500; font-size: 14px; flex-shrink: 0; }

/* ---------- Neue Runde ---------- */
.setup { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.setup .card:first-child { grid-row: span 2; }
.setup .start { display: flex; flex-direction: column; }
.setup .start .btn { margin-top: 4px; }
@media (max-width: 1000px) { .setup { grid-template-columns: 1fr; } .setup .card:first-child { grid-row: auto; } }
.stepper { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.stepper span { font-size: 18px; font-weight: 500; min-width: 120px; text-align: center; color: #fff; }
.player-list { display: flex; flex-direction: column; gap: 8px; }
.player { display: grid; grid-template-columns: 30px 1fr auto auto auto; gap: 10px; align-items: center; background: var(--card2); border: 1px solid var(--line); border-radius: 3px; padding: 8px 10px; }
.player .num { color: var(--blue); font-weight: 300; font-size: 22px; text-align: center; }
.player input { font: inherit; font-size: 15px; color: #fff; background: #000; border: 1px solid var(--line); border-radius: 3px; padding: 9px 11px; min-width: 0; }
.player input:focus { outline: none; border-color: var(--blue); }
.player .load { color: var(--muted); font-size: 13px; min-width: 70px; text-align: right; }
/* Röhrenwahl im Look einer Pulttaste mit LED */
.tone-pick { position: relative; display: inline-flex; align-items: center; background: #000; border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px 4px 22px; }
.tone-pick::before { content: ''; position: absolute; left: 8px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--led, #fff); box-shadow: 0 0 10px var(--led, #fff); }
.tone-pick select { appearance: none; font: inherit; font-size: 14px; font-weight: 700; color: #fff; background: transparent; border: 0; padding: 4px 6px; cursor: pointer; min-width: 92px; }
.tone-pick select option { background: #111; color: #fff; }
.computer-note { margin-top: 12px; color: var(--muted); font-size: 14px; }
.computer-note .chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 3px; margin: 2px 3px; color: #fff; font-weight: 700; }
.computer-note .chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.filters button { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 3px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.filters button.active { border-color: var(--blue); color: var(--blue); }
.song-list { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; padding-right: 4px; }
.song { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: var(--card2); border: 1px solid var(--line); border-radius: 3px; padding: 10px 12px; cursor: pointer; transition: border-color .15s; }
.song:hover { border-color: rgba(255, 255, 255, .35); }
.song.sel { border-color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); background: rgba(55, 180, 222, .08); }
.song .title { font-weight: 700; color: #fff; font-size: 15.5px; }
.song .meta { color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.4; }
.song .stars { color: var(--gold); letter-spacing: 1px; }
.song .play { width: 38px; height: 38px; padding: 0; border-radius: 50%; font-size: 13px; }
.song-load { margin: 10px 0 0; color: var(--gold); font-size: 14px; }
.song-list::-webkit-scrollbar, .screen::-webkit-scrollbar { width: 8px; }
.song-list::-webkit-scrollbar-thumb, .screen::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

/* ---------- Spiel ---------- */
#game { position: absolute; inset: 0; width: 100%; height: 100%; }
.pause-btn { position: absolute; top: 12px; right: 14px; z-index: 6; background: rgba(0, 0, 0, .5); }
.game-help { position: absolute; bottom: 4px; left: 14px; margin: 0; color: rgba(255, 255, 255, .35); font-size: 12px; z-index: 6; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; z-index: 8; background: rgba(0, 0, 0, .7); }
.overlay[hidden] { display: none; }
.dialog { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 30px 34px; display: flex; flex-direction: column; gap: 12px; min-width: 360px; text-align: center; }
.dialog h2 { margin: 0 0 8px; font-weight: 300; font-size: 34px; color: #fff; }

/* ---------- Ergebnis: Spot auf die Gewinner ---------- */
#screen-results { background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(55, 180, 222, .22), transparent 70%), radial-gradient(ellipse 40% 40% at 50% 30%, rgba(255, 200, 97, .10), transparent 70%), var(--ink); }
.results { margin: auto; padding: 40px 20px; width: 100%; max-width: 860px; text-align: center; }
.res-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; }
.res { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 14px 20px; }
.res.first { border-color: var(--gold); background: linear-gradient(90deg, rgba(255, 200, 97, .14), rgba(255, 200, 97, .02)); box-shadow: 0 0 60px rgba(255, 200, 97, .15); }
.res .place { font-size: 40px; font-weight: 100; color: var(--blue); text-align: center; }
.res.first .place { color: var(--gold); }
.res .name { font-weight: 700; font-size: 21px; color: #fff; }
.res .title { color: var(--gold); font-weight: 500; font-size: 15px; }
.res .detail { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.res .score { font-size: 34px; font-weight: 300; color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- Mikrofon-Test als Mischpult ---------- */
.console { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0; margin: 22px 0 8px; background: #0c0c0c; border: 1px solid var(--line); border-radius: 4px; }
.channel { border-right: 1px solid var(--line); padding: 14px 10px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.channel:last-child { border-right: 0; }
.channel .scribble { width: 100%; background: #000; border: 1px solid var(--line); border-radius: 3px; padding: 6px 4px; text-align: center; font-weight: 900; font-size: 18px; color: #fff; position: relative; }
.channel .scribble::after { content: ''; position: absolute; left: 6px; right: 6px; top: -1px; height: 3px; border-radius: 2px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.channel .vu { width: 18px; height: 170px; background: #000; border: 1px solid var(--line); border-radius: 2px; position: relative; overflow: hidden; }
.channel .vu-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0;
  background: repeating-linear-gradient(0deg, var(--c) 0 5px, transparent 5px 7px); }
.channel .thr { position: absolute; left: 0; right: 0; height: 2px; background: #fff; opacity: .8; }
.channel .lamp { width: 34px; height: 22px; border-radius: 3px; background: #1d1d1d; border: 1px solid var(--line); transition: background .3s, box-shadow .3s; }
.channel .lamp.on { transition: none; }
.channel .count { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.channel .freq { font-size: 11.5px; color: var(--dim); text-align: center; min-height: 2.6em; line-height: 1.3; }
@media (max-width: 860px) { .console { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Lieder-Werkstatt ---------- */
.workshop { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; }
@media (max-width: 1000px) { .workshop { grid-template-columns: 1fr; } }
.workshop h3 + .hint, .workshop .field { margin-bottom: 14px; }
.workshop h3:not(:first-child) { margin-top: 22px; }
.field { display: block; }
.field > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input[type=text], textarea {
  width: 100%; font: inherit; font-size: 15px; color: #fff; background: #000;
  border: 1px solid var(--line); border-radius: 3px; padding: 10px 12px;
}
textarea { font-family: Consolas, 'Roboto Mono', monospace; font-size: 14px; line-height: 1.6; resize: vertical; }
.field input:focus, textarea:focus { outline: none; border-color: var(--blue); }
.inline { display: flex; align-items: center; }
.rec-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.beat-led { width: 18px; height: 18px; border-radius: 50%; background: #222; border: 1px solid var(--line); }
.beat-led.on { background: var(--red); box-shadow: 0 0 16px var(--red); }
.beat-led.on.accent { background: var(--gold); box-shadow: 0 0 16px var(--gold); }
.keys { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.key { aspect-ratio: 1 / 1.25; background: #0a0a0a; border: 1px solid var(--line); border-radius: 4px; color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 8px 2px; font-weight: 900; font-size: 18px; position: relative; }
.key small { font-weight: 400; font-size: 11px; color: var(--dim); }
.key::before { content: ''; width: 60%; height: 4px; border-radius: 2px; background: var(--c); opacity: .6; }
.key.hit { background: var(--c); color: #000; }
.key.hit::before { opacity: 1; }
.key.hit small { color: #000; }
.ws-list { display: flex; flex-direction: column; gap: 6px; }
.ws-item { display: flex; align-items: center; gap: 10px; background: var(--card2); border: 1px solid var(--line); border-radius: 3px; padding: 8px 10px; }
.ws-item .name { flex: 1; color: #fff; font-weight: 500; }

/* ---------- Einstellungen ---------- */
.setting { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 18px 22px; margin-bottom: 12px; }
.setting label { display: block; font-weight: 700; margin-bottom: 10px; color: #fff; }
.setting select { font: inherit; font-size: 15px; color: #fff; background: #000; border: 1px solid var(--line); border-radius: 3px; padding: 8px 10px; }
.setting input[type=range] { width: 280px; vertical-align: middle; }
input[type=range] { accent-color: var(--blue); }

/* Röhrenfarben wählen */
.color-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
@media (max-width: 700px) { .color-grid { grid-template-columns: repeat(2, 1fr); } }
.setting .color-pick, .color-pick { display: flex; text-transform: none; letter-spacing: 0; margin: 0; align-items: center; gap: 10px; background: #000; border: 1px solid var(--line); border-radius: 3px; padding: 6px 10px; cursor: pointer; }
.color-pick input[type=color] { width: 38px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; }
.color-pick b { color: #fff; font-size: 17px; min-width: 22px; }
.color-pick span { color: var(--muted); font-size: 13px; }
.setting .color-pick span { margin-left: 0; }
.foot a { color: var(--dim); }
