:root {
  color-scheme: dark;
  --bg: #050706;
  --panel: rgba(8, 15, 12, 0.88);
  --panel-strong: rgba(9, 20, 16, 0.96);
  --line: rgba(166, 244, 197, 0.16);
  --line-strong: rgba(166, 244, 197, 0.32);
  --text: #f1fff7;
  --dim: rgba(241, 255, 247, 0.68);
  --faint: rgba(241, 255, 247, 0.42);
  --green: #73ff9c;
  --gold: #ffd166;
  --red: #ff677d;
  --blue: #76c7ff;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 12%, rgba(115, 255, 156, 0.14), transparent 24%),
    radial-gradient(circle at 86% 6%, rgba(255, 209, 102, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(8, 28, 19, 0.98), rgba(3, 5, 5, 0.98) 50%),
    var(--bg);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.glow,
.field-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.glow {
  filter: blur(120px);
  opacity: 0.36;
}

.glow--left {
  background: radial-gradient(circle at 15% 22%, rgba(115, 255, 156, 0.35), transparent 22%);
}

.glow--right {
  background: radial-gradient(circle at 85% 16%, rgba(118, 199, 255, 0.24), transparent 22%);
}

.field-grid {
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at center, black, transparent 86%);
  opacity: 0.22;
}

.world-shell {
  position: relative;
  z-index: 1;
  width: min(1600px, calc(100% - 28px));
  margin: 14px auto 34px;
  display: grid;
  gap: 16px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 18px;
  align-items: start;
}

.brand-lockup,
.topbar-stack {
  display: grid;
  gap: 10px;
}

.eyebrow,
.section-kicker,
.site-network__link,
.site-network__eyebrow,
.live-pill__label,
.status-pill,
.action-button,
.field span,
.match-meta,
.team-rank,
th {
  font-family: "IBM Plex Mono", "Courier New", monospace;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4.2rem, 9vw, 7.5rem);
  line-height: 0.82;
  letter-spacing: 0.1em;
  color: #f8fff5;
}

h2 {
  max-width: 920px;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.eyebrow,
.section-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--faint);
}

.topbar-network.site-network {
  gap: 6px;
  padding: 10px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 11, 0.72);
}

.topbar-network .site-network__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topbar-network .site-network__link {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.64rem;
}

.topbar-network .site-network__link::after {
  content: none;
}

.live-pill,
.panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow: var(--shadow);
}

.live-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 0 18px;
  border-radius: 999px;
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(115, 255, 156, 0.08), 0 0 18px rgba(115, 255, 156, 0.34);
}

.live-pill__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
}

.live-pill__copy,
.hero-text,
.source-note {
  color: var(--dim);
}

.panel {
  border-radius: 30px;
  padding: 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 16px;
}

.hero-panel {
  display: grid;
  gap: 14px;
  min-height: 260px;
  align-content: end;
  background:
    linear-gradient(135deg, rgba(115, 255, 156, 0.13), transparent 44%),
    linear-gradient(315deg, rgba(255, 209, 102, 0.1), transparent 38%),
    var(--panel-strong);
}

.controls-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill--muted {
  color: var(--dim);
}

.control-row,
.score-row,
.winner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.action-button--primary {
  border-color: rgba(115, 255, 156, 0.42);
  background: linear-gradient(180deg, rgba(115, 255, 156, 0.22), rgba(115, 255, 156, 0.08));
  color: #eaffef;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

select,
input[type="number"] {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(2, 6, 5, 0.8);
  color: var(--text);
}

select {
  min-height: 46px;
  padding: 0 12px;
}

input[type="number"] {
  width: 58px;
  height: 42px;
  padding: 0 8px;
  text-align: center;
}

.fixture-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.match-card,
.group-card,
.knockout-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
}

.match-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.match-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.match-teams {
  display: grid;
  gap: 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

.match-venue {
  color: var(--dim);
  font-size: 0.88rem;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
}

.group-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.group-fixtures {
  display: grid;
  gap: 9px;
}

.predict-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
}

.predict-team:last-child {
  text-align: right;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

th,
td {
  padding: 7px 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: right;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: var(--faint);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-rank {
  color: var(--gold);
  font-size: 0.72rem;
}

.knockout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.round-column {
  display: grid;
  gap: 10px;
  align-content: start;
}

.round-title {
  color: var(--gold);
}

.knockout-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.knockout-team {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.winner-button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.winner-button.is-selected {
  border-color: rgba(255, 209, 102, 0.62);
  color: var(--gold);
}

.champion {
  border-color: rgba(255, 209, 102, 0.55);
  background: rgba(255, 209, 102, 0.08);
}

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

  .topbar-network .site-network__links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .world-shell {
    width: min(100% - 18px, 1600px);
  }

  .panel {
    padding: 16px;
    border-radius: 22px;
  }

  .predict-match {
    grid-template-columns: 1fr;
  }

  .predict-team:last-child {
    text-align: left;
  }
}
