:root {
  color-scheme: dark;
  --bg: #080b14;
  --panel: #11182a;
  --panel-2: #182238;
  --ink: #f5f7ff;
  --muted: #9ca8c7;
  --green: #1ed760;
  --green-dark: #119542;
  --purple: #8b5cf6;
  --line: rgba(255,255,255,.1);
  font-family: Inter, ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% 5%, #26355c 0, transparent 32%), var(--bg); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, 94vw); margin: 0 auto; padding: 36px 0 70px; }
header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.055em; }
h2 { margin: 0 0 8px; font-size: 1.8rem; }
p { color: var(--muted); }
.eyebrow { margin: 0 0 7px; color: var(--green); font-size: .78rem; font-weight: 900; letter-spacing: .18em; }
.panel { border: 1px solid var(--line); border-radius: 30px; background: rgba(17,24,42,.92); box-shadow: 0 28px 80px rgba(0,0,0,.35); }
.setup-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; padding: 52px; }
.setup-copy { padding-right: 38px; border-right: 1px solid var(--line); }
.step { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 25px; border-radius: 50%; background: var(--purple); font-weight: 900; }
.field-stack { display: flex; flex-direction: column; gap: 12px; }
label { color: #dce2f6; font-weight: 800; }
input, select { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 14px; background: #0a1020; color: var(--ink); padding: 0 16px; outline: none; }
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,215,96,.15); }
.add-player { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.playlist-search { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.primary, .secondary, .icon-button { border: 0; border-radius: 999px; font-weight: 900; }
.primary { min-height: 50px; padding: 0 24px; background: var(--green); color: #041208; }
.primary:hover { background: #4bea82; transform: translateY(-1px); }
.primary:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.secondary { min-height: 50px; padding: 0 22px; background: #283451; color: var(--ink); }
.wide { width: 100%; margin-top: 12px; }
.icon-button { width: 48px; height: 48px; background: var(--panel-2); color: white; font-size: 1.3rem; }
.status { font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 36px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: #222d49; color: white; font-weight: 700; }
.chip button { border: 0; background: none; color: #9ca8c7; }
.settings-row { display: flex; justify-content: space-between; align-items: end; margin-top: 10px; }
.settings-row label:last-child { display: flex; align-items: center; gap: 10px; }
.settings-row select { width: 78px; min-height: 42px; }
.hidden { display: none !important; }
.round-bar, .score-heading { display: flex; justify-content: space-between; align-items: center; }
.round-bar { margin-bottom: 18px; color: var(--muted); font-weight: 800; }
.text-button { border: 0; background: transparent; color: var(--muted); }
.mystery-card { text-align: center; padding: 42px; border-radius: 30px; background: linear-gradient(145deg, #172342, #161126); border: 1px solid var(--line); }
.record { display: grid; place-items: center; width: 180px; height: 180px; margin: 0 auto 25px; border: 12px solid #222943; border-radius: 50%; background: repeating-radial-gradient(circle, #111728 0 9px, #1a2134 10px 12px); box-shadow: 0 0 0 7px rgba(139,92,246,.25), 0 25px 50px #070911; }
.record span { display: grid; place-items: center; width: 65px; height: 65px; border-radius: 50%; background: var(--purple); font-size: 2.5rem; font-weight: 900; }
.record.spinning { animation: spin 2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.countdown { margin: 10px 0 20px; color: white; font-size: 4rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.giant { min-width: 260px; margin: 5px; }
.answer-card { display: grid; grid-template-columns: 110px 1fr; gap: 24px; align-items: center; margin-top: 18px; padding: 18px; border-radius: 24px; background: var(--panel-2); }
.answer-card img { width: 110px; height: 110px; object-fit: cover; border-radius: 15px; }
.answer-card p { margin: 4px 0; font-size: 1.15rem; }
.score-section { margin: 28px 0 10px; }
.score-heading span { color: var(--muted); }
.scoreboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 14px; }
.score-card { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.score-card strong { display: block; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; }
.score { color: var(--green); font-size: 2rem; font-weight: 900; }
.score-actions { display: flex; gap: 6px; grid-column: 1 / -1; }
.score-actions button { flex: 1; min-height: 36px; border: 0; border-radius: 10px; background: #25304b; color: white; font-weight: 900; }
dialog { width: min(540px, 92vw); padding: 0; border: 0; border-radius: 26px; background: transparent; color: var(--ink); }
dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.dialog-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 34px; border: 1px solid var(--line); border-radius: 26px; background: #11182a; }
.dialog-close { position: absolute; right: 18px; top: 14px; border: 0; background: transparent; color: white; font-size: 2rem; }
code { overflow-wrap: anywhere; padding: 10px; border-radius: 10px; background: #070b14; color: #8fffb6; }
.redirect-note { margin-bottom: 0; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 13px 20px; border-radius: 999px; background: white; color: #111; font-weight: 800; box-shadow: 0 12px 40px #0008; }
@media (max-width: 760px) {
  .shell { padding-top: 22px; }
  .setup-grid { grid-template-columns: 1fr; padding: 28px; }
  .setup-copy { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 25px; }
  .giant { width: 100%; min-width: 0; }
  .mystery-card { padding: 28px 20px; }
  .answer-card { grid-template-columns: 80px 1fr; }
  .answer-card img { width: 80px; height: 80px; }
}
