/* Checkbox Gaming Studio: colours from Ringleap's "Night" theme. */
:root {
  --bg: #12131f;
  --surface: #1b1d2e;
  --line: #2c2f47;
  --text: #e8e6f0;
  --muted: #a5a3b8;
  --accent: #ffd23f;
  --alert: #ff4f5e;
  --radius: 14px;
  --max: 46rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.01em;
}
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Content */
main { padding: 48px 0 64px; }
h1 { font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; margin: 40px 0 10px; }
h3 { font-size: 1.05rem; margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.hero { display: grid; gap: 32px; align-items: center; }
@media (min-width: 720px) { .hero { grid-template-columns: 1.3fr 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.game-card { display: flex; gap: 18px; align-items: center; margin-top: 12px; }
.game-card img { width: 88px; height: 88px; border-radius: 20px; flex: none; }
.game-card h3 { margin-top: 0; }
.game-card p { margin-bottom: 0; }

.badge {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--bg);
  background: var(--accent); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px;
}

.button {
  display: inline-block; background: var(--accent); color: var(--bg); font-weight: 700;
  text-decoration: none; padding: 10px 18px; border-radius: 999px;
}

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
@media (max-width: 480px) {
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dd { margin-bottom: 8px; }
}

/* The orbit drawing */
.orbit { width: 100%; max-width: 200px; justify-self: center; }
@media (min-width: 720px) { .orbit { max-width: 280px; } }
.orbit .ring { fill: none; stroke: var(--text); stroke-linecap: round; transform-origin: 100px 100px; }
.orbit .r1 { animation: spin 14s linear infinite; }
.orbit .r2 { animation: spin 10s linear infinite reverse; }
.orbit .r3 { animation: spin 7s linear infinite; }
.orbit .dot-path { transform-origin: 100px 100px; animation: spin 3.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .orbit .ring, .orbit .dot-path { animation: none; }
}

/* Legal pages */
.legal h2 { border-top: 1px solid var(--line); padding-top: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer p { margin-bottom: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
