:root {
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ink: #1f1f1f;
  --ink-2: #5c5f62;
  --ink-3: #8a8d91;
  --line: #ebebeb;
  --bg: #f1f1f1;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --accent: #2c6ecb;
  --ok: #0c5132;
  --ok-bg: #cdfee1;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(26, 26, 26, 0.07), 0 0 0 1px rgba(26, 26, 26, 0.06);
  --btn-bg: #ffffff;
  --btn-hover: #fafafa;
  --btn-shadow: 0 -1px 0 #b5b5b5 inset, 0 0 0 1px rgba(0, 0, 0, 0.1) inset, 0 0.5px 0 1.5px #fff inset;
  --primary-bg: linear-gradient(180deg, #3a3a3a, #262626);
  --primary-hover: linear-gradient(180deg, #2f2f2f, #1a1a1a);
  --primary-ink: #ffffff;
  --primary-shadow: 0 -1px 0 1px rgba(0, 0, 0, 0.8) inset, 0 0 0 1px #303030 inset, 0 0.5px 0 1.5px rgba(255, 255, 255, 0.25) inset;
  --badge-bg: #e3e3e3;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #ededed;
  --ink-2: #a8abae;
  --ink-3: #7d8084;
  --line: #2e2e2e;
  --bg: #111111;
  --surface: #1c1c1c;
  --surface-2: #262626;
  --accent: #7fb0ff;
  --ok: #7ee2a8;
  --ok-bg: #12351f;
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  --btn-bg: #262626;
  --btn-hover: #303030;
  --btn-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  --primary-bg: #ededed;
  --primary-hover: #ffffff;
  --primary-ink: #111111;
  --primary-shadow: none;
  --badge-bg: #2e2e2e;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 56px 20px 48px; }

.hero { margin-bottom: 32px; }
.mark { display: block; border-radius: 12px; margin-bottom: 20px; }
h1 { font-size: clamp(28px, 4vw + 12px, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
.lede { margin-top: 8px; font-size: 16px; color: var(--ink-2); max-width: 52ch; }
.links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px;
  font-weight: 600; font-size: 13px; background: var(--btn-bg); color: var(--ink);
  box-shadow: var(--btn-shadow);
}
.btn:hover { background: var(--btn-hover); }
.btn.primary { background: var(--primary-bg); color: var(--primary-ink); box-shadow: var(--primary-shadow); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.group { padding: 6px 14px 6px 6px; }
.btn.group img { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; background: var(--surface-2); }
.wrap { position: relative; }
.theme-toggle {
  position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 10px; cursor: pointer; color: var(--ink-2); background: var(--btn-bg); box-shadow: var(--btn-shadow);
}
.theme-toggle:hover { background: var(--btn-hover); color: var(--ink); }
.theme-toggle .moon, :root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact { margin-top: 14px; padding: 16px 18px; max-width: 420px; }
.contact p { color: var(--ink-2); margin-bottom: 12px; }
.contact p:last-child { margin-bottom: 0; }
.contact a { color: var(--accent); font-weight: 650; font-size: 16px; }
.btn { border: 0; cursor: pointer; font-family: inherit; }
.groups-section { margin-top: 36px; }
.groups { display: flex; gap: 8px; flex-wrap: wrap; }
[hidden] { display: none !important; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 36px; }
.stat { padding: 16px 18px; }
.stat-label { color: var(--ink-2); font-weight: 550; font-size: 13px; }
.stat-value { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
h2 { font-size: 16px; font-weight: 650; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 550; background: var(--badge-bg); color: var(--ink-2); white-space: nowrap;
}
.badge.live { background: var(--ok-bg); color: var(--ok); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.games { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.game { display: flex; gap: 16px; padding: 16px; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.game:hover { transform: translateY(-1px); box-shadow: var(--shadow), 0 10px 24px -12px rgba(26, 26, 26, 0.25); }
.game img { width: 88px; height: 88px; border-radius: 14px; object-fit: cover; background: var(--surface-2); flex: none; }
.game-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.game h3 { font-size: 15px; font-weight: 650; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-sub { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.game-playing { color: var(--ok); font-weight: 600; }
.facts { display: flex; gap: 18px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
.fact-value { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.fact-label { color: var(--ink-2); font-size: 12px; }
.games li:first-child { grid-column: 1 / -1; }
.game { height: 100%; }
.game.featured { padding: 20px; }
.game.featured img { width: 128px; height: 128px; border-radius: 18px; }
.game.featured h3 { font-size: 20px; letter-spacing: -0.01em; }
.game.featured .fact-value { font-size: 22px; }

@media (max-width: 720px) {
  .wrap { padding-top: 36px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games { grid-template-columns: minmax(0, 1fr); }
  .game.featured img { width: 88px; height: 88px; }
  .game.featured h3 { font-size: 16px; white-space: normal; }
  .game.featured .fact-value { font-size: 16px; }
}
