:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0d1b2f;
  --surface: rgba(13, 27, 47, 0.72);
  --surface-strong: rgba(15, 31, 54, 0.92);
  --surface-light: rgba(255, 255, 255, 0.06);
  --line: rgba(164, 199, 255, 0.16);
  --line-strong: rgba(164, 199, 255, 0.28);
  --text: #eef6ff;
  --muted: #9fb0c8;
  --quiet: #6f829f;
  --blue: #4da3ff;
  --blue-deep: #1d65d8;
  --cyan: #67e8f9;
  --amber: #f7c56b;
  --danger: #ffb3a3;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --glow: 0 0 0 1px rgba(103, 232, 249, 0.08), 0 18px 50px rgba(29, 101, 216, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 10%, rgba(77, 163, 255, 0.24), transparent 28rem),
    radial-gradient(circle at 86% 4%, rgba(103, 232, 249, 0.13), transparent 24rem),
    linear-gradient(145deg, #050a13 0%, var(--bg) 52%, #0a1628 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  position: relative;
}

.site-shell::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  pointer-events: none;
  position: fixed;
}

.hero {
  background: transparent;
  color: var(--text);
  padding: 18px clamp(16px, 4vw, 56px) 0;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(24px) saturate(150%);
  background: rgba(7, 17, 31, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
  padding: 10px;
  position: sticky;
  top: 12px;
  z-index: 5;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 850;
  gap: 10px;
  letter-spacing: 0;
  padding-left: 6px;
}

.brand::before {
  background: linear-gradient(145deg, var(--cyan), var(--blue));
  border-radius: 7px;
  box-shadow: 0 10px 24px rgba(77, 163, 255, 0.34);
  content: "";
  height: 24px;
  width: 24px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  padding: 8px 11px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(77, 163, 255, 0.14);
  border-color: rgba(77, 163, 255, 0.28);
  color: var(--text);
}

.hero-content {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  margin: 0 auto;
  max-width: 1200px;
  padding: clamp(30px, 6vw, 70px) 0 28px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 13px;
  text-transform: uppercase;
}

h1 {
  font-size: 4.7rem;
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0;
  max-width: 760px;
}

.hero p {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 650px;
}

.summary-strip {
  align-self: end;
  backdrop-filter: blur(24px) saturate(150%);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--glow);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.metric {
  background: rgba(255, 255, 255, 0.035);
  min-width: 0;
  padding: 18px;
}

.metric span {
  color: var(--quiet);
  display: block;
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.metric strong {
  color: var(--text);
  display: block;
  font-size: 2.35rem;
  letter-spacing: 0;
  line-height: 1;
}

.content {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 clamp(16px, 4vw, 56px) 54px;
}

.section-header {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 26px 0 14px;
}

.section-header h2 {
  font-size: 1.6rem;
  letter-spacing: 0;
  margin: 0;
}

.section-header p {
  color: var(--muted);
  margin: 4px 0 0;
}

.grid {
  display: grid;
  gap: 14px;
}

.game-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-card,
.panel,
.table-wrap {
  backdrop-filter: blur(24px) saturate(145%);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.game-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 18px;
  position: relative;
  text-decoration: none;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.game-card::after {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-radius: 999px;
  bottom: 0;
  content: "";
  height: 3px;
  left: 18px;
  opacity: 0.82;
  position: absolute;
  right: 18px;
}

.game-card:hover {
  background: linear-gradient(145deg, rgba(77, 163, 255, 0.13), rgba(255, 255, 255, 0.04));
  border-color: rgba(77, 163, 255, 0.34);
  transform: translateY(-4px);
}

.card-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.game-card .game-label {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-count {
  align-items: center;
  background: rgba(77, 163, 255, 0.16);
  border: 1px solid rgba(77, 163, 255, 0.32);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.game-card h3 {
  font-size: 1.55rem;
  margin: 20px 0 8px;
}

.game-card p {
  color: var(--muted);
  margin: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
}

.pill,
.status,
.count {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 850;
  justify-content: center;
  min-height: 26px;
  padding: 5px 9px;
}

.pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
}

.selected-pill,
.status.yes,
.count {
  background: rgba(77, 163, 255, 0.15);
  border: 1px solid rgba(77, 163, 255, 0.34);
  color: #d9ecff;
}

.status.no {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--quiet);
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 900px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  white-space: nowrap;
}

th {
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td:first-child,
th:first-child {
  left: 0;
  position: sticky;
}

td:first-child {
  background: rgba(9, 20, 36, 0.94);
}

th:first-child {
  background: rgba(14, 28, 49, 0.98);
  z-index: 1;
}

tr:last-child td {
  border-bottom: 0;
}

tr:hover td {
  background-color: rgba(77, 163, 255, 0.055);
}

.center {
  text-align: center;
}

.game-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.team-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-list li {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  min-height: 58px;
  padding: 11px 12px;
}

.number {
  align-items: center;
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  border-radius: 7px;
  box-shadow: 0 12px 28px rgba(29, 101, 216, 0.24);
  color: #fff;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 0.85rem;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.player-name {
  font-weight: 850;
}

.role-note {
  color: var(--quiet);
  display: block;
  font-size: 0.8rem;
  margin-top: 2px;
}

.panel {
  padding: 18px;
}

.panel h2,
.panel h3 {
  font-size: 1rem;
  margin: 0 0 12px;
}

.plain-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  padding: 9px 10px;
}

.notice {
  background: rgba(247, 197, 107, 0.12);
  border: 1px solid rgba(247, 197, 107, 0.28);
  color: #ffe2a2;
  font-weight: 700;
  margin-top: 16px;
}

.footer {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 28px;
}

@media (max-width: 980px) {
  .hero-content,
  .game-layout {
    grid-template-columns: 1fr;
  }

  .summary-strip,
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    padding-inline: 12px;
  }

  .topbar,
  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    position: static;
  }

  .nav {
    justify-content: flex-start;
  }

  .summary-strip,
  .game-grid,
  .team-list {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3rem;
  }

  th,
  td {
    padding: 10px;
  }
}
