:root {
  color-scheme: dark;
  --bg: #030607;
  --panel: rgba(7, 11, 13, 0.9);
  --panel-strong: rgba(8, 14, 17, 0.96);
  --line: rgba(183, 247, 173, 0.14);
  --line-strong: rgba(183, 247, 173, 0.24);
  --text: #eff8f0;
  --text-dim: rgba(239, 248, 240, 0.68);
  --text-faint: rgba(239, 248, 240, 0.42);
  --green: #93ff63;
  --amber: #ffd46f;
  --red: #ff6a7b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  overflow-x: hidden;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 16%, rgba(147, 255, 99, 0.12), transparent 22%),
    radial-gradient(circle at 84% 12%, rgba(255, 212, 111, 0.1), transparent 18%),
    linear-gradient(180deg, rgba(10, 28, 18, 0.88), rgba(4, 7, 8, 0.98) 42%),
    var(--bg);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.stadium-glow,
.pitch-grid,
.scan-stripe {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.stadium-glow {
  filter: blur(120px);
  opacity: 0.3;
}

.stadium-glow--left {
  background:
    radial-gradient(circle at 18% 18%, rgba(147, 255, 99, 0.28), transparent 24%),
    radial-gradient(circle at 38% 72%, rgba(255, 255, 255, 0.04), transparent 14%);
}

.stadium-glow--right {
  background:
    radial-gradient(circle at 82% 14%, rgba(255, 212, 111, 0.2), transparent 20%),
    radial-gradient(circle at 72% 72%, rgba(147, 255, 99, 0.08), transparent 16%);
}

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

.scan-stripe--gold {
  background: linear-gradient(90deg, transparent 0 52%, rgba(255, 212, 111, 0.18) 52% 54%, transparent 54% 100%);
  mix-blend-mode: screen;
  opacity: 0.22;
}

.scan-stripe--green {
  background: linear-gradient(180deg, transparent 0 58%, rgba(147, 255, 99, 0.16) 58% 59.5%, transparent 59.5% 100%);
  mix-blend-mode: screen;
  opacity: 0.2;
}

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

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

.brand-lockup,
.topbar-stack,
.hero-copy,
.control-panel,
.bankers-panel,
.board-panel {
  display: grid;
}

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

.eyebrow,
.live-pill__label,
.site-network__eyebrow,
.site-network__link,
.section-kicker,
.status-pill,
.field span,
.action-button,
.source-note,
.hero-stat span,
.mini-head,
.fixture-meta,
.table-ladder th,
.table-form span,
.banker-league,
.banker-detail,
.banker-pick {
  font-family: "IBM Plex Mono", "Courier New", monospace;
}

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

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

h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.8rem, 8vw, 6.2rem);
  line-height: 0.84;
  letter-spacing: 0.12em;
  color: #f5fff0;
  text-shadow:
    0 0 20px rgba(147, 255, 99, 0.08),
    0 0 18px rgba(255, 212, 111, 0.05);
}

.live-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 0 18px;
  border: 1px solid rgba(147, 255, 99, 0.16);
  border-radius: 999px;
  background: rgba(5, 17, 12, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 28px rgba(147, 255, 99, 0.08);
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #ecffe0, var(--green) 70%);
  box-shadow:
    0 0 0 6px rgba(147, 255, 99, 0.08),
    0 0 18px rgba(147, 255, 99, 0.28);
}

.live-pill__body {
  display: grid;
  gap: 3px;
}

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

.live-pill__copy {
  color: var(--text);
  font-size: 0.94rem;
}

.topbar-network.site-network {
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(8, 9, 11, 0.74);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.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;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
}

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

.topbar-network .site-network__link[aria-current="page"] {
  color: #f8ffe5;
  background:
    linear-gradient(180deg, rgba(147, 255, 99, 0.14), rgba(147, 255, 99, 0.04)),
    rgba(8, 18, 10, 0.94);
}

.panel-shell {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    var(--shadow);
}

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

.hero-panel,
.control-panel,
.bankers-panel,
.board-panel {
  padding: 20px;
}

.hero-panel {
  gap: 18px;
  align-content: start;
  background:
    radial-gradient(circle at top left, rgba(147, 255, 99, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(6, 14, 14, 0.96), rgba(5, 10, 11, 0.96));
}

.hero-copy {
  gap: 12px;
  max-width: 54rem;
}

.hero-copy h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-text {
  max-width: 46rem;
  color: var(--text-dim);
  line-height: 1.68;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hero-stat,
.field,
.action-button,
.fixture-item,
.table-shell,
.banker-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(7, 10, 12, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.hero-stat {
  min-height: 118px;
  padding: 16px;
  border-radius: 22px;
  display: grid;
  align-content: space-between;
  gap: 12px;
}

.hero-stat span {
  color: var(--text-faint);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-stat strong {
  font-size: clamp(1.1rem, 3vw, 2rem);
  line-height: 1;
}

.control-panel,
.bankers-panel,
.board-panel {
  gap: 16px;
  align-content: start;
}

.section-head,
.mini-head,
.fixture-prediction {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-head h3 {
  font-size: 1.18rem;
  letter-spacing: -0.04em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--green);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.status-pill--lagging {
  color: var(--amber);
  border-color: rgba(255, 212, 111, 0.2);
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
}

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

.field input,
.field select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(4, 7, 8, 0.82);
  color: var(--text);
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: rgba(147, 255, 99, 0.26);
  box-shadow: 0 0 0 4px rgba(147, 255, 99, 0.08);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.action-button:hover,
.action-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  outline: none;
}

.action-button--primary {
  background:
    linear-gradient(180deg, rgba(147, 255, 99, 0.18), rgba(147, 255, 99, 0.05)),
    rgba(10, 18, 11, 0.94);
}

.source-note {
  color: var(--text-dim);
  font-size: 0.76rem;
  line-height: 1.7;
}

.bankers-grid,
.league-grid,
.fixture-list,
.league-empty {
  display: grid;
  gap: 14px;
}

.bankers-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.banker-card {
  padding: 16px;
  border-radius: 22px;
  display: grid;
  gap: 10px;
  background:
    radial-gradient(circle at top right, rgba(255, 212, 111, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(11, 12, 10, 0.86);
}

.banker-league,
.banker-confidence {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.banker-league,
.banker-confidence {
  color: var(--amber);
}

.banker-pick {
  font-size: 1rem;
  line-height: 1.45;
}

.banker-detail,
.league-card__meta,
.fixture-meta {
  color: var(--text-dim);
  font-size: 0.74rem;
  line-height: 1.65;
}

.banker-confidence {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 212, 111, 0.08);
}

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

.league-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    var(--panel-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    var(--shadow);
  overflow: hidden;
}

.league-card.is-lagging {
  border-color: rgba(255, 212, 111, 0.22);
}

.league-card__head,
.league-card__meta,
.league-card__body {
  padding-left: 18px;
  padding-right: 18px;
}

.league-card__head {
  padding-top: 18px;
}

.league-card__head h3 {
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.league-card__meta {
  padding-top: 10px;
  padding-bottom: 16px;
}

.league-card__body {
  padding-bottom: 18px;
}

.mini-head {
  color: var(--text-faint);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.fixture-item {
  padding: 14px;
  border-radius: 18px;
}

.fixture-line {
  font-size: 0.92rem;
  line-height: 1.55;
}

.fixture-prediction {
  margin-top: 10px;
  align-items: center;
}

.fixture-prediction__label {
  color: var(--green);
  font-size: 0.8rem;
  line-height: 1.4;
}

.fixture-prediction__label.is-close,
.fixture-prediction__label.is-lagging {
  color: var(--amber);
}

.fixture-prediction__score {
  color: var(--text-faint);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fixture-meta {
  margin-top: 10px;
}

.table-shell {
  border-radius: 20px;
  overflow: hidden;
}

.table-wrap {
  max-height: 380px;
  overflow: auto;
}

.table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.table-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(147, 255, 99, 0.46), rgba(255, 212, 111, 0.32));
  border-radius: 999px;
  border: 2px solid rgba(8, 12, 13, 0.9);
}

.table-ladder {
  width: 100%;
  border-collapse: collapse;
}

.table-ladder thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.table-ladder th,
.table-ladder td {
  padding: 11px 10px;
  text-align: left;
}

.table-ladder th {
  background: rgba(7, 12, 13, 0.96);
  color: var(--text-faint);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.table-ladder td {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  line-height: 1.35;
}

.table-ladder tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.015);
}

.table-ladder tbody tr.is-high {
  background: rgba(147, 255, 99, 0.05);
}

.table-ladder tbody tr.is-low {
  background: rgba(255, 106, 123, 0.05);
}

.table-team__name,
.table-team__sub {
  display: block;
}

.table-team__sub {
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 0.68rem;
}

.table-form {
  display: inline-flex;
  gap: 4px;
}

.table-form span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.table-form .result-w {
  background: rgba(147, 255, 99, 0.16);
  color: var(--green);
}

.table-form .result-d {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.table-form .result-l {
  background: rgba(255, 106, 123, 0.16);
  color: var(--red);
}

.table-form .result-x {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-faint);
}

.league-empty {
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  color: var(--text-faint);
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

body.notes-open {
  overflow: hidden;
}

.notes-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
}

.notes-modal[hidden] {
  display: none;
}

.notes-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(147, 255, 99, 0.12), transparent 28%),
    rgba(2, 4, 5, 0.82);
  backdrop-filter: blur(12px);
}

.notes-sheet {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 20px;
  display: grid;
  gap: 16px;
  background:
    radial-gradient(circle at top right, rgba(255, 212, 111, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(7, 11, 13, 0.98), rgba(5, 8, 9, 0.98));
}

.notes-sheet__head,
.notes-sheet__meta,
.notes-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notes-close,
.notes-arrow {
  min-width: 46px;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(6, 11, 12, 0.92);
  color: var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notes-close:hover,
.notes-close:focus-visible,
.notes-arrow:hover,
.notes-arrow:focus-visible {
  border-color: rgba(147, 255, 99, 0.24);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  outline: none;
}

.notes-close:disabled,
.notes-arrow:disabled {
  cursor: default;
  opacity: 0.42;
  box-shadow: none;
}

.notes-page-chip,
.notes-status {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.notes-page-chip {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.notes-grid {
  display: grid;
  gap: 10px;
}

.notes-row {
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01)),
    rgba(4, 7, 8, 0.92);
  color: var(--text);
}

.notes-row:focus {
  outline: none;
  border-color: rgba(147, 255, 99, 0.28);
  box-shadow: 0 0 0 4px rgba(147, 255, 99, 0.08);
}

.notes-row::placeholder {
  color: rgba(239, 248, 240, 0.22);
}

.notes-actions {
  flex-wrap: wrap;
}

.notes-status {
  color: var(--text-dim);
  flex: 1 1 220px;
}

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

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

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

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .football-shell {
    width: min(100%, calc(100% - 16px));
    margin: 10px auto 22px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.6rem);
  }

  .hero-copy h2 {
    font-size: clamp(1.6rem, 10vw, 2.4rem);
  }

  .hero-panel,
  .control-panel,
  .bankers-panel,
  .board-panel {
    padding: 16px;
    border-radius: 24px;
  }

  .hero-stats,
  .control-grid,
  .action-row {
    grid-template-columns: 1fr;
  }

  .action-row {
    display: grid;
  }

  .notes-sheet {
    padding: 16px;
    border-radius: 24px;
  }

  .notes-sheet__head,
  .notes-sheet__meta {
    align-items: flex-start;
  }

  .notes-sheet__meta {
    flex-wrap: wrap;
  }

  .notes-actions {
    display: grid;
  }

  .notes-status {
    flex: unset;
  }

  .league-card__head,
  .league-card__meta,
  .league-card__body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .table-wrap {
    max-height: 320px;
  }
}
