:root {
  color-scheme: dark;
  --bg: #0c0c0e;
  --bg-soft: #121216;
  --panel: #17171b;
  --panel-2: #1e1e23;
  --line: #303037;
  --line-soft: #25252b;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --red: #d52b31;
  --red-bright: #ff454d;
  --red-dark: #7d181c;
  --good: #7ad89a;
  --shadow: 0 22px 80px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -10%, rgba(213, 43, 49, .18), transparent 32rem),
    linear-gradient(180deg, #111114 0, var(--bg) 42rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
.shell { width: min(1200px, calc(100% - 36px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(12,12,14,.88);
  backdrop-filter: blur(18px);
}
.topbar { min-height: 84px; display: grid; grid-template-columns: 230px 1fr auto; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; width: 210px; }
.brand img { width: 100%; height: auto; display: block; }
.main-nav { display: flex; justify-content: center; gap: 6px; }
.main-nav a {
  padding: 11px 15px;
  color: var(--muted);
  border-radius: 9px;
  transition: .18s ease;
}
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.main-nav a.active { color: #fff; background: var(--red); box-shadow: 0 8px 24px rgba(213,43,49,.2); }
.online-chip { display: flex; align-items: center; gap: 7px; color: var(--muted); white-space: nowrap; }
.online-chip strong { color: var(--text); font-size: 18px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 0 5px rgba(255,69,77,.12); }

.page-content { padding-block: 52px 76px; min-height: calc(100vh - 160px); }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 36px 0 30px; }
.eyebrow, .kicker { color: var(--red-bright); font-weight: 800; letter-spacing: .14em; font-size: 12px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(42px, 7vw, 82px); letter-spacing: -.055em; line-height: .96; }
h2 { margin-bottom: 6px; font-size: 22px; letter-spacing: -.02em; }
.hero p, .page-heading p { max-width: 720px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hero-stat { min-width: 185px; padding: 22px; border: 1px solid var(--line); background: linear-gradient(145deg, var(--panel-2), var(--panel)); border-radius: 16px; box-shadow: var(--shadow); }
.hero-stat span { display: block; font-size: 48px; font-weight: 900; line-height: 1; }
.hero-stat small { color: var(--muted); }

.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 18px; }
.stat-card, .panel { border: 1px solid var(--line); background: rgba(23,23,27,.94); border-radius: 15px; box-shadow: var(--shadow); }
.stat-card { padding: 22px; }
.stat-card strong { display: block; font-size: 32px; }
.stat-card span { color: var(--muted); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 18px; }
.panel { padding: 22px; overflow: hidden; }
.panel-wide { grid-row: span 2; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading p { margin: 3px 0 0; }
.section-heading > a { color: var(--muted); }
.section-heading > a:hover { color: var(--red-bright); }
.news-list { display: grid; gap: 0; }
.news-item { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.news-item:last-child { border-bottom: 0; }
.news-item time { color: var(--red-bright); font-size: 12px; font-weight: 700; }
.news-item h3 { margin: 6px 0; font-size: 16px; }
.news-item p { color: var(--muted); line-height: 1.5; margin: 0; }
.teaser-panel { background: linear-gradient(145deg, rgba(125,24,28,.5), rgba(23,23,27,.96) 55%); }
.teaser-panel p { color: var(--muted); line-height: 1.55; }

.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { padding: 13px 11px; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.018); }
.player-cell { display: flex; align-items: center; gap: 10px; }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: var(--red-dark); color: #fff; font-weight: 800; }
.badge, .pill { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--panel-2); border-radius: 999px; padding: 5px 9px; color: var(--muted); font-size: 12px; }
.pill.live { color: var(--good); }
.pill.offline { color: var(--muted); }
.pill.host { color: #ff9a9e; }
.empty { color: var(--muted); padding: 20px 4px 4px; }
.muted { color: var(--muted); }

.page-heading { margin-bottom: 28px; }
.page-heading h1 { margin-top: 8px; font-size: clamp(42px, 6vw, 66px); }
.row-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.segmented { display: flex; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; }
.segmented button { border: 0; color: var(--muted); background: transparent; padding: 9px 13px; border-radius: 8px; cursor: pointer; }
.segmented button.active { color: #fff; background: var(--red); }
.leaderboard-sorts { margin-bottom: 14px; overflow-x: auto; }
.leaderboard-sorts button { white-space: nowrap; }
.leaderboard-panel { margin-top: 14px; }
.dinosaur-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(125,24,28,.42), rgba(23,23,27,.96));
}
.dinosaur-toolbar label { display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dinosaur-toolbar select {
  min-width: 260px;
  padding: 11px 38px 11px 12px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.record-summary { text-align: right; }
.record-summary strong { display: block; color: var(--red-bright); font-size: 34px; line-height: 1; }
.record-summary span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.coming-soon { min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 64px 24px; }
.coming-soon > img { width: 86px; margin-bottom: 24px; opacity: .92; }
.coming-soon h1 { margin: 10px 0 16px; }
.coming-soon > p { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.coming-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(760px, 100%); margin-top: 24px; }
.coming-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.coming-grid strong, .coming-grid span { display: block; }
.coming-grid span { margin-top: 5px; color: var(--muted); font-size: 13px; }
.button { display: inline-flex; margin-top: 16px; padding: 11px 16px; border-radius: 9px; background: var(--red); color: #fff; font-weight: 700; }
.button.ghost { background: transparent; border: 1px solid var(--line); }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 26px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 13px; }

@media (max-width: 920px) {
  .topbar { grid-template-columns: 1fr auto; padding-block: 14px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: start; overflow-x: auto; }
  .content-grid { grid-template-columns: 1fr; }
  .panel-wide { grid-row: auto; }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 22px, 1200px); }
  .brand { width: 165px; }
  .online-chip span:last-child { display: none; }
  .main-nav a { padding: 9px 11px; }
  .page-content { padding-top: 30px; }
  .hero { align-items: stretch; flex-direction: column; }
  .hero-stat { min-width: 0; }
  .summary-grid, .coming-grid { grid-template-columns: 1fr; }
  .row-heading { align-items: start; flex-direction: column; }
  .dinosaur-toolbar { align-items: stretch; flex-direction: column; }
  .dinosaur-toolbar select { min-width: 100%; width: 100%; }
  .record-summary { text-align: left; }
  .site-footer { flex-direction: column; }
}
