/* Shared by index.html (public) and dev.html. Dark only, in the style of the user's own site. */
:root {
  --bg: #0d0d0d;
  --panel: #151515;
  --line: rgba(255,255,255,0.08);
  --text: #f1f1f1;
  --muted: #989898;
  --orange: #cf5c22;
  --ok: #4fae6a;
  --bad: #d0453a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}
.glow {
  position: fixed; width: 500px; height: 500px; border-radius: 50%;
  top: -180px; right: -180px; filter: blur(20px); z-index: -1;
  background: radial-gradient(circle, rgba(207,92,34,0.16), transparent 70%);
}
a { color: var(--orange); }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

/* header */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13,13,13,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wrap { width: min(1180px, calc(100% - 32px)); margin: auto; }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; gap: 16px; flex-wrap: wrap; }
.logo { font-size: 0.95rem; letter-spacing: 2px; color: var(--orange); text-transform: uppercase; }
.pickers { display: flex; gap: 18px; flex-wrap: wrap; }
.picker { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.82rem; text-transform: uppercase; }
select {
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  padding: 8px 10px; border-radius: 4px; font: inherit; text-transform: none;
}

/* layout */
main { display: grid; grid-template-columns: minmax(0, 730px) minmax(260px, 1fr); gap: 28px; padding: 36px 0 60px; align-items: start; }
@media (max-width: 1040px) { main { grid-template-columns: 1fr; } }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); background: var(--panel);
  padding: 8px 12px;
  color: var(--muted); font-size: 0.78rem; text-transform: uppercase;
}
.label::before { content: ''; width: 8px; height: 8px; background: var(--orange); box-shadow: 0 0 10px var(--orange); }

/* row above the game: what's playing + players online */
.above-stage { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.online { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); }
.online .count { color: var(--text); }
.online .count strong { font-weight: 600; }
.chip {
  border: 1px solid var(--line); background: var(--panel); border-radius: 4px;
  padding: 3px 8px; font-size: 0.74rem; color: var(--muted);
}
.chip b { color: var(--text); font-weight: 500; margin-left: 6px; }

.stage {
  width: 100%; aspect-ratio: 730 / 500;
  border: 1px solid var(--line); background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.stage > * { width: 100%; height: 100%; display: block; }

/* side panels */
.panel { border: 1px solid var(--line); background: linear-gradient(180deg, #161616, #101010); padding: 18px; margin-bottom: 18px; }
.panel h2 { font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; font-weight: 500; }
.checks { list-style: none; display: grid; gap: 10px; font-size: 0.9rem; }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transform: translateY(-1px); }
.dot.ok { background: var(--ok); box-shadow: 0 0 8px rgba(79,174,106,0.6); }
.dot.bad { background: var(--bad); } .dot.wait { background: var(--orange); }
.checks small { color: var(--muted); display: block; font-size: 0.8rem; margin-top: 2px; }
p.note { color: var(--muted); font-size: 0.88rem; line-height: 1.7; }
p.note + p.note { margin-top: 10px; }
p.note strong { color: var(--text); font-weight: 600; }
p.note code, .checks code { font-family: 'IBM Plex Mono', monospace; color: var(--text); font-size: 0.82rem; }

/* buttons */
.button {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  padding: 14px 22px; font: inherit; font-weight: 600; cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.button:hover { background: #1a1a1a; transform: translateY(-2px); }
.button.primary { background: var(--orange); border-color: var(--orange); color: #000; }
.button.primary:hover { background: #dd6a2e; }
.button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* splash (public page) */
.splash {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: 24px 16px;
  background: rgba(13,13,13,0.86); backdrop-filter: blur(8px);
  overflow-y: auto;
}
.splash-card {
  width: min(600px, 100%);
  border: 1px solid var(--line); background: linear-gradient(180deg, #161616, #0f0f0f);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  padding: 34px 32px 30px;
  position: relative; overflow: hidden;
}
.splash-card::after {
  content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  top: -200px; right: -160px; pointer-events: none;
  background: radial-gradient(circle, rgba(207,92,34,0.18), transparent 70%);
}
.splash h1 {
  font-size: clamp(2rem, 6vw, 3.2rem); line-height: 0.95; letter-spacing: -2px;
  text-transform: uppercase; font-weight: 800; margin: 18px 0 20px;
}
.splash h1 span { color: var(--orange); }
.splash .info { color: var(--muted); line-height: 1.75; font-size: 0.95rem; }
.splash .info p + p { margin-top: 12px; }
.splash .info strong { color: var(--text); }
.splash .actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.splash .actions small { color: var(--muted); font-size: 0.8rem; }

/* footer (public page) */
footer { border-top: 1px solid var(--line); margin-top: 20px; padding: 36px 0 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.footer-grid .panel { margin-bottom: 0; }
.fineprint { margin-top: 26px; color: rgba(255,255,255,0.28); font-size: 0.75rem; letter-spacing: 1px; }
