:root {
  --gold: #ffcd00;
  --gold-dark: #e0ad00;
  --black: #0d0d0d;
  --near-black: #17171a;
  --panel: #1f1f24;
  --white: #f7f6f2;
  --muted: #b9b7b0;
  --win: #2fae4e;
  --loss: #e0463b;
  --draw: #b9b7b0;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 205, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-emoji { font-size: 1.5rem; }

.brand-text {
  font-size: 1.05rem;
  color: var(--gold);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--gold);
}

/* Hero */
.hero {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 205, 0, 0.16), transparent 60%),
    linear-gradient(180deg, var(--black), var(--near-black));
  border-bottom: 1px solid rgba(255, 205, 0, 0.15);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--gold);
  text-shadow: 0 2px 24px rgba(255, 205, 0, 0.25);
}

.tagline {
  margin: 18px auto 0;
  max-width: 520px;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-primary:hover { background: var(--gold-dark); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(247, 246, 242, 0.35);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Sections */
.section {
  padding: 70px 0;
}

.section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  color: var(--white);
}

.section h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 14px;
  background: var(--gold);
  border-radius: 2px;
}

.subhead {
  margin: 44px 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.subhead:first-of-type { margin-top: 34px; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 205, 0, 0.15);
}

.game-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  min-width: 480px;
}

.game-table th,
.game-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.95rem;
  white-space: nowrap;
}

.game-table thead th {
  background: rgba(255, 205, 0, 0.08);
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 205, 0, 0.2);
}

.game-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.game-table tbody tr:hover {
  background: rgba(255, 205, 0, 0.05);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-win { background: rgba(47, 174, 78, 0.18); color: var(--win); }
.badge-loss { background: rgba(224, 70, 59, 0.18); color: var(--loss); }
.badge-draw { background: rgba(185, 183, 176, 0.18); color: var(--draw); }

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 205, 0, 0.15);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 640px) {
  .nav { gap: 16px; }
  .hero { padding: 90px 0 70px; }

  .game-table thead { display: none; }
  .game-table, .game-table tbody, .game-table tr, .game-table td { display: block; width: 100%; }
  .game-table { min-width: 0; }
  .game-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .game-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    white-space: normal;
    border: none !important;
  }
  .game-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .game-table td:last-child:empty { display: none; }
}
