/* ============================================================
   CK Quiz – freundliches Theme: ruhiges Dunkelblau, warme Akzente,
   runde Formen, runde Schrift (Nunito), keine Glow-/Neon-Effekte.
   Wird nach den seiteneigenen Styles geladen und überschreibt sie.
   ============================================================ */
:root {
  --bg: #171b36;
  --bg-2: #1f2446;
  --panel: #232951;
  --panel-2: #2a315e;
  --line: #3a4280;
  --text: #f5f6ff;
  --muted: #aab1da;
  --tile: #4062f0;
  --tile-2: #2f4bd0;
  --gold: #ffcf5c;
  --mint: #5fe0ad;
  --coral: #ff8a7a;
  --twitch: #9146ff;
  --ok: #4fd99a;
  --bad: #ff7b7b;
  --radius: 18px;
  --font: 'Nunito', system-ui, 'Segoe UI', sans-serif;
  --display: 'Nunito', system-ui, 'Segoe UI', sans-serif;
}

body {
  background: radial-gradient(1100px 600px at 50% -10%, #262d63 0%, var(--bg) 62%) fixed, var(--bg);
  font-weight: 600;
}
body::after { display: none; }

/* Überschriften und Zahlen: kräftig und rund statt Pixel/Neon */
html body .display, html body .brand b, html body .bigcode, html body .cnt, html body .q-val, html body .result,
html body .board .tile, html body .lobby h1, html body .lobby .code, html body .qcard .val, html body .qcard .sol,
html body .podium .s, html body .meta [data-secs], html body .hero h1, html body .steps b, html body .top .score b {
  font-family: var(--display); font-weight: 900; letter-spacing: 0; text-shadow: none;
}

/* Karten: weich, keine Leuchtränder */
.card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
.card h2 { color: var(--muted); font-family: var(--font); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-shadow: none; }

/* Buttons: rund und freundlich */
.btn { border-radius: 999px; border-width: 1px; font-weight: 800; text-transform: none; letter-spacing: 0; box-shadow: none; }
.btn:hover { filter: brightness(1.08); }
.btn.gold { background: var(--gold); color: #3a2a00; box-shadow: 0 4px 0 #d9a93a; }
.btn.gold:active { box-shadow: 0 1px 0 #d9a93a; transform: translateY(3px); }
.btn.ok { background: var(--ok); color: #073b24; }
.btn.bad { background: var(--bad); color: #4a0d0d; }
.btn.twitch { box-shadow: none; }
.btn.sm { font-size: .82rem; }

input, select, textarea { border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 207, 92, .2); }

.pill { border-radius: 999px; }
.brand b { font-size: 1.4rem; color: var(--text); }

/* Board: freundliche blaue Kacheln, gelbe Zahlen */
.board .cat {
  background: var(--panel-2); border: 0; border-radius: 12px; color: var(--text);
  font-family: var(--font); font-weight: 800; text-shadow: none; box-shadow: none; letter-spacing: 0; text-transform: none;
}
.board .tile {
  background: var(--tile); border: 0; border-radius: 12px; color: var(--gold);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18);
}
.board .tile.click:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18), 0 6px 14px rgba(0, 0, 0, .25); }
.board .tile.used { background: var(--bg-2); box-shadow: none; }
html body .board .tile.empty { font-size: .9rem; font-weight: 700; }
.board .tile.empty { background: var(--bg-2); border: 1px dashed var(--line); color: #5c6499; font-family: var(--font); font-weight: 700; box-shadow: none; }

/* Timer: ruhig, ohne Blinken */
.timer { border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.timer > i { background: var(--gold); box-shadow: none; border-radius: 999px; }
.timer.low > i { background: var(--coral); box-shadow: none; animation: none; }

/* Rangliste */
.lb li { border-bottom-color: rgba(255, 255, 255, .06); }
.lb .sc { color: var(--gold); font-weight: 900; }
.lb li.me { background: rgba(255, 207, 92, .12); outline: 0; border-radius: 12px; }
.pos { color: var(--ok); text-shadow: none; }
.neg { color: var(--bad); text-shadow: none; }

#toast { border-radius: 999px; border: 0; background: #0f1330ee; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.privacy { border-radius: 14px; }

/* ---------- Startseite ---------- */
.hero h1 { font-size: clamp(2.4rem, 8vw, 4rem); }
.hero h1 span { color: var(--gold); }

/* ---------- Spieler (Handy) ---------- */
.top { background: rgba(23, 27, 54, .92); border-bottom: 1px solid rgba(255, 255, 255, .06); box-shadow: none; }
.top .score b { color: var(--gold); font-size: 1.5rem; }
.q-cat { color: var(--mint) !important; text-shadow: none; }
.q-val { color: var(--gold); font-size: 2rem !important; }
.solution { color: var(--gold); text-shadow: none; }
.answer-box { border-radius: 14px; }
.podium div { border-radius: 14px 14px 0 0; border: 0; }
.podium .p1 { border-top: 4px solid var(--gold); box-shadow: none; }

/* ---------- Host ---------- */
.phase { background: var(--panel-2); color: var(--gold); border: 0; box-shadow: none; border-radius: 999px; }
.tabs { border-radius: 999px; border: 0; background: var(--bg-2); }
.tabs a { border-radius: 999px; text-transform: none; font-size: .9rem; letter-spacing: 0; font-weight: 800; }
.tabs a.on { background: var(--panel-2); color: var(--text); box-shadow: none; }
.bigcode { color: var(--gold); font-size: 2rem; letter-spacing: .12em; }
.cnt { color: var(--gold); }
#app .sol { border: 0; background: rgba(95, 224, 173, .12); border-radius: 14px; }
.note { border: 0; background: rgba(255, 207, 92, .1); border-radius: 14px; }
.grp { border-radius: 14px; border-width: 1px; }
.grp.ok { border-color: var(--ok); background: rgba(79, 217, 154, .1); box-shadow: none; }
.mine { border-radius: 14px; border: 0; background: rgba(145, 70, 255, .12); }

/* ---------- OBS-Overlay ---------- */
#stage .head .brand b { font-size: 2.2rem; }
#stage .joinchip { border: 0; border-radius: 999px; background: var(--panel); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
#stage .joinchip b { color: var(--gold); font-weight: 900; }
#stage .board .cat { font-size: 1.3rem; padding: 8px 10px; }
html body #stage .board .tile.empty { font-size: 1.5rem; font-weight: 700; }
#stage .board .tile { font-size: 4.2rem; }
#stage .qcard {
  background: var(--tile); border: 0; border-radius: 28px;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .15), 0 20px 50px rgba(0, 0, 0, .35);
}
#stage .qcard .cat { color: #dfe6ff; font-weight: 800; }
#stage .qcard .val { color: var(--gold); }
#stage .qcard .text { text-shadow: none; }
#stage .qcard .sol { color: var(--gold); }
#stage .meta [data-secs] { color: var(--gold); }
#stage .lobby h1 span, #stage .lobby .code { color: var(--gold); }
#stage .lobby .url { color: var(--muted); }
#stage .fastest span { border-radius: 999px; background: rgba(0, 0, 0, .2); border: 0; }
#stage .fastest span:first-child { background: var(--gold); color: #3a2a00; box-shadow: none; }
#stage #side { background: var(--panel); border: 0; border-radius: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
#stage .podium > div { background: var(--tile); border: 0; border-radius: 20px 20px 0 0; }
#stage .podium .p1 { border-top: 6px solid var(--gold); box-shadow: none; }
#stage .podium .s { color: var(--gold); }
