/* styles.css — SimuMatch shared stylesheet */

:root {
  --bg:          #0f1117;
  --bg-card:     #1a1d26;
  --bg-elevated: #22253a;
  --accent:      #00c875;
  --accent-dim:  #00a860;
  --text:        #e8eaf0;
  --text-muted:  #8890a8;
  --border:      #2a2d3d;
  --cl:   #4fc3f7;
  --el:   #ff9800;
  --ecl:  #aed581;
  --po:   #ffd54f;
  --rel:  #ef5350;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 160;
}

/* ── Hamburger button (mobile only) ─────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 7px 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.nav-hamburger:hover { background: var(--bg-elevated); }
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.15s ease;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav overlay ──────────────────────────────────────────────── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 155;
  overflow-y: auto;
  padding-top: 60px;
}
.mobile-nav-overlay[aria-hidden="false"] { display: block; }
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 2.5rem;
}
.mobile-nav-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}
.mobile-nav-heading {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  padding: 0 0.5rem 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.3rem;
}
.mobile-nav-inner a {
  display: block;
  padding: 0.7rem 0.5rem;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.1s;
}
.mobile-nav-inner a:hover,
.mobile-nav-inner a:active { background: var(--bg-elevated); }
.mobile-nav-wc-cta {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 0.75rem 1.5rem !important;
  background: #f59e0b !important;
  color: #000 !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  border-radius: 8px !important;
  margin-top: 0.5rem !important;
}
.mobile-nav-wc-cta:hover { background: #d97706 !important; color: #000 !important; }

@media (max-width: 720px) {
  .site-nav nav { display: none; }
  .nav-hamburger { display: flex; }
}

.site-nav .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-nav .logo::before {
  content: "";
  width: 1.55rem;
  height: 1.55rem;
  background: url("assets/brand/simumatch-mark.svg") center / contain no-repeat;
  flex-shrink: 0;
}

.site-nav nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.site-nav nav a:hover { color: var(--text); }
.site-nav nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ── Homepage hero ───────────────────────────────────────────────────── */
.hero {
  padding: 4.5rem 2rem 2rem;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border-radius: 7px;
  background: var(--accent);
  color: #000;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.hero-cta:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}
.hero-secondary {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}
.hero-secondary a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-secondary a:hover { color: var(--text); }
.hero-visual {
  display: block;
  width: min(100%, 860px);
  margin: 2rem auto 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero-scenario {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: 2.5rem;
  max-width: 1120px;
  padding-top: 5rem;
  padding-bottom: 3.4rem;
  text-align: left;
}
.hero-copy {
  max-width: 650px;
}
.hero-scenario h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  letter-spacing: -0.045em;
  margin-bottom: 1.15rem;
}
.hero-scenario p {
  max-width: 520px;
  font-size: 1.18rem;
  margin-bottom: 1.65rem;
}
.hero-scenario .hero-cta {
  min-height: 54px;
  padding: 0.95rem 1.55rem;
  box-shadow: 0 18px 36px rgba(0, 200, 117, 0.2);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.hero-scenario .hero-cta:hover {
  box-shadow: 0 22px 48px rgba(0, 200, 117, 0.4);
  transform: translateY(-2px) scale(1.025);
}
.hero-scenario .hero-proof {
  margin: 0.75rem 0 0;
  color: rgba(232, 234, 240, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
}
.hero-scenario .hero-secondary {
  justify-content: flex-start;
  color: rgba(232, 234, 240, 0.74);
  font-size: 0.9rem;
  font-weight: 600;
}
.hero-scenario .hero-secondary a {
  color: rgba(232, 234, 240, 0.78);
  text-decoration-color: rgba(232, 234, 240, 0.35);
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
.hero-scenario .hero-secondary a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.hero-demo-card {
  background:
    linear-gradient(160deg, rgba(0, 200, 117, 0.17), rgba(26, 29, 38, 0) 44%),
    var(--bg-card);
  border: 1px solid rgba(0, 200, 117, 0.42);
  border-radius: 14px;
  padding: 1.45rem;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(0, 200, 117, 0.08);
  transform: scale(1.12);
  transform-origin: center;
}
.demo-kicker,
.demo-label {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-demo-card h2 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0.35rem 0 1rem;
}
.demo-result {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding: 0.8rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-weight: 700;
}
.demo-result span:first-child { text-align: right; }
.demo-result strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 34px;
  border-radius: 7px;
  background: var(--accent);
  color: #000;
  font-size: 1.05rem;
}
.demo-impact {
  display: grid;
  gap: 0.24rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(0, 200, 117, 0.58);
  border-radius: 10px;
  background: rgba(0, 200, 117, 0.15);
}
.demo-impact strong {
  color: var(--accent);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.demo-impact strong span {
  display: inline-block;
  margin-left: 0.2rem;
  font-size: 1.18em;
  text-shadow: 0 0 18px rgba(0, 200, 117, 0.55);
}
.demo-impact > span {
  color: rgba(232, 234, 240, 0.68);
  font-size: 0.95rem;
  font-weight: 700;
}

/* Tournament prototype */
.competition-header--tournament {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 2rem 1.25rem;
}

.preview-callout {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(79, 195, 247, 0.35);
  border-radius: 12px;
  background: rgba(79, 195, 247, 0.08);
  color: rgba(232, 234, 240, 0.92);
}

.preview-callout strong {
  color: var(--cl);
  white-space: nowrap;
}

.preview-callout span,
.tournament-shell *,
.card-title-row > * {
  min-width: 0;
}

.tournament-mode-picker,
.tournament-shell,
.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.tournament-shell {
  padding-bottom: 3rem;
}

.tournament-topbar {
  margin-bottom: 1rem;
}

.tournament-topbar-inner {
  gap: 1rem;
  align-items: flex-start;
}

.tournament-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.ranking-profile-control {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.ranking-profile-select {
  min-height: 2.15rem;
  max-width: 240px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
}

.ranking-profile-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 200, 117, 0.14);
}

.ranking-profile-source {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.tournament-stepper {
  margin-bottom: 1rem;
}

.stepper-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

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

.stepper-node {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.stepper-node.is-current {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 200, 117, 0.15);
}

.stepper-node.is-complete {
  background: rgba(0, 200, 117, 0.12);
}

.stepper-node.is-locked,
.group-card.is-muted,
.knockout-round.is-muted {
  opacity: 0.58;
}

.stepper-count {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.stepper-label,
.step-chip,
.group-card-badge,
.summary-label,
.stepper-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.tournament-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.85fr);
  gap: 1rem;
}

.tournament-layout.is-step-focused {
  grid-template-columns: 1fr;
}

.tournament-layout.is-step-focused .tournament-side-column {
  display: none;
}

/* Champion reveal */
.champion-reveal {
  margin: 0 0 1.25rem;
  padding: 2.5rem 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(0, 200, 117, 0.1) 0%, rgba(0, 200, 117, 0.03) 100%);
  border: 1.5px solid rgba(0, 200, 117, 0.38);
  border-radius: 14px;
  text-align: center;
  animation: champion-in 0.45s ease;
}

@keyframes champion-in {
  from { opacity: 0; transform: translateY(-14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.champion-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.champion-trophy {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 0.1rem;
}

.champion-flag-large {
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.1rem;
}

.champion-name {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.champion-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 700;
}

.champion-final-score {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Step nav bar */
.step-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0 0.25rem;
}

.step-nav-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  font-family: inherit;
}

.step-nav-btn:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.step-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.tournament-main-column,
.tournament-side-column {
  display: grid;
  gap: 1rem;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.group-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.group-card-head,
.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.group-card h3 {
  font-size: 1rem;
}

.group-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.group-table th,
.group-table td {
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.group-fixtures {
  display: grid;
  gap: 0.45rem;
}

.group-fixture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--bg);
}

.group-team-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.team-flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
  border-radius: 2px;
  object-fit: cover;
}

.group-table-team {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.group-score-editor,
.knockout-score-editor {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.score-edit-hint {
  display: none;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.25rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.score-edit-hint-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid rgba(0, 200, 117, 0.38);
  border-radius: 999px;
  background: rgba(0, 200, 117, 0.1);
  font-size: 0.72rem;
}

.group-card:first-child .group-fixture:first-child .group-score-editor:not(.has-score) .score-edit-hint,
.knockout-round:first-child .knockout-match:first-of-type .knockout-score-editor:not(.has-score) .score-edit-hint {
  display: inline-flex;
}

.group-fixture:focus-within .score-edit-hint,
.knockout-match:focus-within .score-edit-hint,
.group-score-editor.has-score .score-edit-hint,
.knockout-score-editor.has-score .score-edit-hint {
  display: none;
}

.score-input--compact {
  width: 3.15rem;
  min-height: 2.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  text-align: center;
  font-weight: 700;
}

.btn-sim-match--compact {
  min-width: 2.15rem;
  min-height: 2.15rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}

.btn-sim-match--compact:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.match-state-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  min-height: 1.9rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.match-state-badge--real {
  border-color: rgba(79, 195, 247, 0.4);
  background: rgba(79, 195, 247, 0.12);
  color: var(--cl);
}

.match-state-badge--edited {
  border-color: rgba(255, 152, 0, 0.42);
  background: rgba(255, 152, 0, 0.12);
  color: var(--el);
}

.match-state-badge--sim {
  border-color: rgba(0, 200, 117, 0.42);
  background: rgba(0, 200, 117, 0.12);
  color: var(--accent);
}

.match-state-badge--open {
  color: var(--text-muted);
}

.group-fixture strong,
.knockout-score {
  color: var(--accent);
  font-weight: 800;
  text-align: center;
}

.knockout-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: start;
}

.knockout-round {
  display: grid;
  gap: 0.75rem;
}

.knockout-round-title {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.knockout-match {
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
}

.knockout-match-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.knockout-team-row {
  font-size: 0.94rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.knockout-score {
  min-height: 1.3rem;
  font-size: 0.86rem;
}

.tournament-summary,
.prototype-checklist {
  display: grid;
  gap: 0.95rem;
}

.summary-block,
.prototype-item {
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.summary-block strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.05rem;
}

.prototype-item--muted {
  color: var(--text-muted);
}

.site-footer {
  padding-top: 0;
  padding-bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--text);
}

@media (max-width: 980px) {
  .stepper-track,
  .knockout-board,
  .group-grid,
  .tournament-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .competition-header--tournament,
  .tournament-mode-picker,
  .tournament-shell,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .tournament-mode-picker .mode-picker-options {
    grid-template-columns: 1fr;
  }

  .tournament-topbar-inner,
  .group-card-head,
  .card-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .group-fixture {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .group-score-editor,
  .knockout-score-editor {
    justify-content: flex-start;
  }
}
.demo-note {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.quick-scenarios {
  padding-top: 1.7rem;
}
.scenario-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.scenario-card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1.12rem;
  background: var(--bg-card);
  border: 1px solid rgba(136, 144, 168, 0.28);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.scenario-card:hover {
  border-color: rgba(0, 200, 117, 0.72);
  background: rgba(0, 200, 117, 0.06);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}
.scenario-card h3 {
  font-size: 1.05rem;
  line-height: 1.25;
}
.scenario-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.scenario-card span {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(0, 200, 117, 0.28);
  text-underline-offset: 4px;
}

.league-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1rem;
}
.comp-card-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.85fr);
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  border-color: rgba(0, 200, 117, 0.38);
  background: linear-gradient(135deg, rgba(0, 200, 117, 0.1), var(--bg-card) 56%);
}
.comp-card-featured h3 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-bottom: 0.25rem;
}
.comp-card-featured .comp-thumb {
  margin-bottom: 0;
}
.comp-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  border-radius: 7px;
  background: var(--accent);
  color: #000;
  font-size: 0.88rem;
  font-weight: 800;
}
.secondary-leagues {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.comp-card-compact {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  align-items: center;
  padding: 0.65rem;
  opacity: 0.58;
  background: rgba(26, 29, 38, 0.58);
}
.comp-card-compact:hover {
  opacity: 0.86;
}
.comp-card-compact .comp-thumb {
  grid-row: 1 / span 2;
  margin-bottom: 0;
  filter: brightness(0.68) saturate(0.86);
  opacity: 0.74;
  transition: filter 0.18s ease, opacity 0.18s ease;
}
.comp-card-compact:hover .comp-thumb {
  filter: brightness(0.86) saturate(0.95);
  opacity: 0.86;
}
.comp-card-compact h3,
.comp-card-compact .comp-season {
  min-width: 0;
}
.more-leagues {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.more-leagues a {
  color: var(--text);
  text-decoration: none;
}
.more-leagues a:hover {
  color: var(--accent);
}
.more-leagues span {
  margin: 0 0.35rem;
}

.home-how {
  padding-bottom: 3rem;
}
.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
}
.home-steps li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.home-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-weight: 900;
  flex-shrink: 0;
}
.home-steps strong {
  font-size: 0.92rem;
}

.proof-section {
  max-width: 680px;
  padding-bottom: 3rem;
}
.standings-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
.standings-preview .section-title {
  margin-bottom: 0.85rem;
}
.preview-table {
  list-style: none;
  margin-bottom: 0.85rem;
}
.preview-table li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.preview-table li:last-child { border-bottom: none; }
.preview-table span {
  font-weight: 600;
}
.preview-table strong {
  color: var(--accent);
  font-size: 0.9rem;
  white-space: nowrap;
}
.standings-preview p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ── Section wrappers ────────────────────────────────────────────────── */
.section {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* ── Competition cards ───────────────────────────────────────────────── */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.75rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 0.2s;
}
.comp-card:hover { border-color: var(--accent); }
.comp-card.coming-soon { opacity: 0.55; pointer-events: none; }
.comp-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: var(--bg-elevated);
}
.comp-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.comp-card h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.comp-season { font-size: 0.85rem; color: var(--text-muted); }
.coming-soon-tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  background: var(--bg-elevated);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  color: var(--text-muted);
}

/* ── WC2026 banner ───────────────────────────────────────────────────── */
.wc-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.75rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s;
}
.wc-link:hover { border-color: var(--accent); }
.wc-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.wc-title { font-size: 1.05rem; font-weight: 700; }
.wc-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }
.wc-arrow { margin-left: auto; color: var(--accent); font-size: 1.25rem; flex-shrink: 0; }

/* ── Why grid ────────────────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 1rem;
}
.why-item {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 1.25rem;
}
.why-icon { font-size: 1.4rem; margin-bottom: 0.5rem; }
.why-item h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem; }
.why-item p { font-size: 0.83rem; color: var(--text-muted); }

/* ── Competition header (league page) ────────────────────────────────── */
.competition-header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.breadcrumb a { text-decoration: none; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.competition-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.comp-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.2rem; }
.header-meta-row { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; flex-wrap: wrap; }
.mode-indicator {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.01em;
}
.mode-indicator.mode-real  { background: rgba(79,195,247,0.12); color: #4fc3f7; border: 1px solid rgba(79,195,247,0.25); }
.mode-indicator.mode-scratch { background: rgba(0,200,117,0.12); color: var(--accent); border: 1px solid rgba(0,200,117,0.25); }
.onboarding-tips {
  padding: 0.65rem 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.onboarding-tips em { font-style: normal; color: var(--text); }
.tip-sep { opacity: 0.4; }
.progress-info {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* ── League layout ───────────────────────────────────────────────────── */
.league-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 0 2rem;
}

/* ── Card shell ──────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.card-title {
  padding: 0.9rem 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn-sim-week-inline {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.65rem;
  text-transform: uppercase;
  transition: all 0.15s;
}
.btn-sim-week-inline:hover { color: var(--accent); border-color: var(--accent); }

/* ── Standings table ─────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 0.855rem; }
th {
  padding: 0.55rem 0.5rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.78rem;
  text-align: center;
  white-space: nowrap;
}
th:nth-child(2) { text-align: left; padding-left: 0.75rem; }
td {
  padding: 0.5rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
td:nth-child(2) { text-align: left; padding-left: 0.75rem; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-elevated); }
#standings-body tr { cursor: pointer; }
#standings-body tr.selected td { background: rgba(0,200,117,0.09); }
#standings-body tr.selected:hover td { background: rgba(0,200,117,0.14); }
.fixture--highlight { background: rgba(0,200,117,0.09); }
.fixture--highlight:hover { background: rgba(0,200,117,0.14); }

.pos { font-weight: 700; width: 2rem; font-size: 0.82rem; }
.pos.pos-cl  { color: var(--cl); }
.pos.pos-el  { color: var(--el); }
.pos.pos-ecl { color: var(--ecl); }
.pos.pos-po  { color: var(--po); }
.pos.pos-rel { color: var(--rel); }

.team-name { white-space: nowrap; }
.pts { font-weight: 700; }
.gd { font-size: 0.82rem; }

/* ── Standings legend ────────────────────────────────────────────────── */
.standings-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem 1.2rem;
  border-top: 1px solid var(--border);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.73rem;
  color: var(--text-muted);
}
.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Matchday tabs ───────────────────────────────────────────────────── */
.matchday-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  max-height: 120px;
  overflow-y: auto;
}
.gw-tab {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.2rem 0.55rem;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.76rem;
  transition: all 0.12s;
  white-space: nowrap;
}
.gw-tab:hover { border-color: var(--accent); color: var(--text); }
.gw-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 700;
}
.gw-tab.next-incomplete:not(.active) {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(0,200,117,0.35);
}

.matchday-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0,200,117,0.04);
}
.matchday-guide-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.matchday-guide-status {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.matchday-guide-status.season-complete { color: var(--accent); }
.matchday-guide-hint {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: right;
}
.matchday-guide-action {
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 5px;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  white-space: nowrap;
  transition: all 0.15s;
}
.matchday-guide-action:hover {
  background: var(--accent);
  color: #000;
}

/* ── Fixture rows ────────────────────────────────────────────────────── */
.fixtures-list { padding: 0.4rem 0.5rem; }
.fixture {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 7px;
  transition: background 0.12s;
}
.fixture:hover { background: var(--bg-elevated); }
.fx-team {
  flex: 1;
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fx-home { text-align: right; }
.fx-away { text-align: left; }
.team-rank { color: var(--text-muted); font-weight: 500; }
.fx-score {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.score-sep { color: var(--text-muted); font-size: 0.9rem; }
.score-input {
  width: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.25rem 0.2rem;
  text-align: center;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  -moz-appearance: textfield;
}
.score-input::-webkit-inner-spin-button,
.score-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.score-input:focus { outline: none; border-color: var(--accent); }
.score-input::placeholder { color: var(--text-muted); font-weight: 400; font-size: 0.82rem; }

/* ── Actions bar ─────────────────────────────────────────────────────── */
.actions-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 1200px;
  margin: 1.5rem auto 2.5rem;
  padding: 1rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
/* override for the inner wrapper */
.actions-wrap { max-width: 1200px; margin: 1.5rem auto 2.5rem; padding: 0 2rem; }

/* ── Top actions bar ─────────────────────────────────────────────────── */
.top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0.75rem auto 1rem;
  padding: 0 2rem;
}
.actions-info {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.actions-info a { text-decoration: underline; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  padding: 0.55rem 1.3rem;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.15s;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-dim); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }
.btn-outlined {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  opacity: 0.85;
}
.btn-outlined:hover { background: rgba(0, 200, 117, 0.08); opacity: 1; }
.btn-sim-match {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.7rem;
  padding: 0.2rem 0.45rem;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.15s;
}
.btn-sim-match:hover { color: var(--accent); border-color: var(--accent); }

/* ── SEO section ─────────────────────────────────────────────────────── */
.seo-section {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  padding: 0 2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.75;
}
.seo-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.6rem;
}
.seo-section p { margin: 0 0 0.6rem; }
.seo-section p:last-child { margin-bottom: 0; }

/* ── Footer ──────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}
footer a { text-decoration: underline; color: var(--text-muted); }

/* ── Zone badges (standings table) ───────────────────────────────────── */
.zone-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.28rem;
  border-radius: 3px;
  margin-left: 0.45rem;
  vertical-align: middle;
  opacity: 0.9;
}
.zone-badge-cl  { color: var(--cl);  background: rgba(79,195,247,0.12); }
.zone-badge-el  { color: var(--el);  background: rgba(255,152,0,0.12);  }
.zone-badge-ecl { color: var(--ecl); background: rgba(174,213,129,0.12);}
.zone-badge-po  { color: var(--po);  background: rgba(255,213,79,0.12); }
.zone-badge-rel { color: var(--rel); background: rgba(239,83,80,0.12);  }

/* ── Narrative message strip ─────────────────────────────────────────── */
.narrative-strip {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 0 2rem;
  min-height: 0;
}
.narrative-msg {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  line-height: 1.4;
}
.narrative-msg em { color: var(--text); font-style: normal; font-weight: 600; }

/* ── Scenario summary strip ──────────────────────────────────────────── */
.scenario-summary-strip {
  max-width: 1200px;
  margin: 0.5rem auto 0;
  padding: 0 2rem;
  min-height: 0;
}
.scenario-summary-text {
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  line-height: 1.5;
  margin: 0;
}
.scenario-summary-fallback {
  color: var(--text-muted);
  border-left-color: var(--border);
}

.team-scenario-strip {
  max-width: 1200px;
  margin: 0.75rem auto 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.team-scenario-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.team-scenario-copy strong {
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}
.team-scenario-copy span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.team-scenario-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.team-scenario-select {
  min-width: 180px;
  height: 38px;
  padding: 0 0.8rem;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.86rem;
}
.team-scenario-select:focus {
  outline: none;
  border-color: var(--accent);
}

/* -- Team pages --------------------------------------------------------- */
.team-page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3rem;
}

.team-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.team-kicker {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
}

.team-hero p {
  max-width: 720px;
  margin: 0.8rem 0 0;
  color: var(--text-muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.team-hero-actions,
.team-scenario-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.team-action-primary,
.team-scenario-links a {
  text-decoration: none;
}

.team-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.team-metric,
.team-panel,
.team-scenario-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.team-metric {
  padding: 1rem;
}

.team-metric span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.team-metric strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.75rem;
}

.team-metric p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.team-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 1rem;
}

.team-panel {
  overflow: hidden;
}

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

.team-mini-table {
  font-size: 0.9rem;
}

.team-row-current {
  background: rgba(0, 200, 117, 0.11);
}

.team-result-list {
  padding: 0.35rem 0.75rem 0.8rem;
}

.team-result-row {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--border);
}

.team-result-row:last-child {
  border-bottom: 0;
}

.team-result-row strong,
.team-result-row small {
  display: block;
}

.team-result-row small {
  margin-top: 0.15rem;
  color: var(--text-muted);
}

.team-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
}

.team-result-w { background: var(--accent); }
.team-result-d { background: #7a8699; }
.team-result-l { background: var(--rel); }

.team-scenario-panel {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
}

.team-scenario-panel h2 {
  margin: 0;
  font-size: 1.25rem;
}

.team-scenario-panel p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.team-empty {
  padding: 0.75rem;
  color: var(--text-muted);
}

.team-seo-copy {
  margin-top: 2rem;
}

.team-related-links a {
  font-weight: 700;
}

/* -- Pre-built scenario pages and rails -------------------------------- */
.featured-scenarios-strip {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}

.featured-scenarios-inner {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  padding: 1rem;
}

.featured-scenarios-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.featured-scenarios-head a {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.featured-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.featured-scenario-card {
  display: flex;
  min-height: 148px;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(0, 200, 117, 0.1), transparent 46%),
    var(--bg-elevated);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.featured-scenario-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.featured-scenario-card strong {
  font-size: 1rem;
}

.featured-scenario-card span {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.featured-scenario-card em {
  color: var(--accent);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.scenario-hub {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3rem;
}

.scenario-hub-hero {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.scenario-hub-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
}

.scenario-hub-hero p {
  max-width: 760px;
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.scenario-hub-section {
  margin-top: 2rem;
}

.scenario-hub-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 0.85rem;
}

.scenario-hub-heading h2 {
  margin: 0;
  font-size: 1.35rem;
}

.scenario-hub-heading p {
  max-width: 460px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.scenario-hub-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.scenario-hub-link {
  margin-top: 1rem;
}

.scenario-hub-link a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

/* -- MLS playoffs ------------------------------------------------------- */
.mls-playoff-board {
  max-width: 1200px;
  margin: 1.2rem auto 2rem;
  padding: 0 2rem;
}

.mls-playoff-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  background: var(--bg-card);
}

.mls-playoff-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.mls-playoff-head p {
  max-width: 680px;
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.mls-playoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.mls-playoff-champion {
  margin: 0;
  padding: 0.75rem 1.25rem;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: rgba(0, 200, 117, 0.1);
  color: var(--text);
  font-weight: 800;
}

.mls-playoff-rounds {
  display: grid;
  grid-template-columns: 0.85fr 1.6fr 0.9fr 0.9fr;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: var(--bg-card);
}

.mls-playoff-round h3 {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mls-playoff-match {
  position: relative;
  display: grid;
  gap: 0.35rem;
  min-height: 112px;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
}

.playoff-team-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.7rem;
  color: var(--text-muted);
}

.playoff-team-row.playoff-winner {
  color: var(--text);
  font-weight: 800;
}

.playoff-seed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(0, 200, 117, 0.14);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.playoff-team-placeholder,
.playoff-score-empty {
  color: var(--text-muted);
}

.playoff-match-score {
  margin-top: 0.25rem;
  color: var(--accent);
  font-size: 0.84rem;
}

/* ── Quick scenario buttons ──────────────────────────────────────────── */
.scenario-sep {
  width: 1px;
  height: 1.4rem;
  background: var(--border);
  flex-shrink: 0;
}
.btn-scenario {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-scenario:hover { color: var(--accent); border-color: var(--accent); }

/* ── Share toast ─────────────────────────────────────────────────────── */
.share-toast {
  font-size: 0.82rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
  align-self: center;
  pointer-events: none;
  white-space: nowrap;
}
.share-toast--visible { opacity: 1; }

/* ── Shared scenario banner ───────────────────────────────────────────── */
.shared-banner {
  background: rgba(0, 200, 117, 0.07);
  border-left: 3px solid var(--accent);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 2rem;
  letter-spacing: 0.01em;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.shared-banner.is-hiding {
  opacity: 0;
}

/* ── WC2026 nav highlight ─────────────────────────────────────────────── */
.nav-wc-link {
  color: var(--accent) !important;
  font-weight: 600;
  border: 1px solid rgba(0, 200, 117, 0.3);
  border-radius: 5px;
  padding: 0.2rem 0.6rem;
}
.nav-wc-link:hover {
  background: rgba(0, 200, 117, 0.1);
  border-color: var(--accent);
  color: var(--accent) !important;
}

/* ── WC2026 promo block (homepage) ───────────────────────────────────── */
.promo-wc-section {
  max-width: 680px;
  padding-bottom: 1.5rem;
}
.promo-wc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 200, 117, 0.08) 0%, var(--bg-card) 60%);
  border: 1px solid rgba(0, 200, 117, 0.3);
  border-radius: 12px;
  padding: 1.4rem 1.75rem;
}
.promo-wc-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.promo-wc-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
}
.promo-wc-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.promo-wc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1.3rem;
  border-radius: 7px;
  background: var(--accent);
  color: #000;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.promo-wc-cta:hover { background: var(--accent-dim); }

/* ── WC2026 promo strip (league pages) ──────────────────────────────── */
.promo-wc-strip {
  max-width: 1200px;
  margin: 0 auto 1rem;
  padding: 0 2rem;
}
.promo-wc-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, var(--bg-card) 70%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
}
.promo-wc-strip-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.promo-wc-strip-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f59e0b;
}
.promo-wc-strip-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.promo-wc-strip-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 1.1rem;
  border-radius: 7px;
  background: #f59e0b;
  color: #000;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.promo-wc-strip-cta:hover { background: #d97706; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .wc-urgent-text { display: none; }
  .comp-grid { grid-template-columns: repeat(2, 1fr); }
  .comp-grid-card--tournament { grid-column: span 2; }
  .league-layout { grid-template-columns: 1fr; padding: 0 1rem; }
  .site-nav { padding: 0.9rem 1rem; }
  .competition-header { padding: 1.25rem 1rem; }
  .onboarding-tips { padding: 0.65rem 1rem; }
  .actions-wrap { padding: 0 1rem; }
  .top-actions { padding: 0 1rem; }
  .seo-section { padding: 0 1rem; }
  .section { padding: 0 1rem 3rem; }
  .hero { padding: 2.5rem 1rem 1.75rem; }
  .hero-scenario {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }
  .hero-copy,
  .hero-scenario p {
    max-width: none;
  }
  .hero-scenario .hero-secondary {
    justify-content: center;
  }
  .hero-demo-card {
    transform: none;
  }
  .scenario-card-grid,
  .league-feature-layout,
  .home-steps {
    grid-template-columns: 1fr;
  }
  .comp-card-featured {
    grid-template-columns: 1fr;
  }
  .secondary-leagues {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .comp-card-compact {
    display: block;
  }
  .comp-card-compact .comp-thumb {
    margin-bottom: 0.8rem;
  }
  .narrative-strip { padding: 0 1rem; }
  .scenario-summary-strip { padding: 0 1rem; }
  .promo-wc-strip { padding: 0 1rem; }
  .team-scenario-strip { margin-left: 1rem; margin-right: 1rem; }
}

@media (max-width: 480px) {
  .site-nav nav a { margin-left: 0.85rem; font-size: 0.8rem; }
  .site-nav .logo { font-size: 1rem; }
  .actions-bar { flex-wrap: wrap; gap: 0.5rem; }
  .actions-info { margin-left: 0; width: 100%; }
  .btn { font-size: 0.82rem; padding: 0.5rem 1rem; }
  .scenario-sep { display: none; }
  .btn-scenario { font-size: 0.78rem; padding: 0.45rem 0.75rem; }
  .team-scenario-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
  }
  .team-scenario-controls { justify-content: stretch; }
  .team-scenario-select {
    min-width: 0;
    width: 100%;
  }
  .hero-scenario h1 {
    font-size: clamp(2.05rem, 11vw, 2.75rem);
    margin-bottom: 0.85rem;
  }
  .hero-scenario p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .hero-scenario .hero-cta {
    width: 100%;
  }
  .hero-scenario .hero-proof {
    font-size: 0.82rem;
  }
  .hero-demo-card {
    padding: 1rem;
  }
  .hero-demo-card h2 { font-size: 1.18rem; }
  .demo-shift-row { padding: 0.65rem 0.7rem; }
  .secondary-leagues {
    grid-template-columns: 1fr;
  }
  .comp-card-featured,
  .comp-card-compact {
    padding: 0.9rem;
  }
  .scenario-card {
    min-height: 0;
  }
  .matchday-guide {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }
  .matchday-guide-main {
    justify-content: space-between;
    width: 100%;
  }
  .matchday-guide-hint { text-align: left; }
  .fixture { gap: 0.45rem; padding: 0.5rem 0.35rem; }
  .score-input { width: 34px; }
  .btn-sim-match { padding: 0.2rem 0.35rem; }
  .promo-wc { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .promo-wc-cta { width: 100%; }
  .promo-wc-strip-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .promo-wc-strip-cta { width: 100%; }
}

/* ── Mode picker ─────────────────────────────────────────────────────── */
.mode-picker {
  max-width: 640px;
  margin: 3rem auto 3.5rem;
  padding: 0 2rem;
  animation: mpFadeUp 0.3s ease;
}
@keyframes mpFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mode-picker-inner { text-align: center; }
.mode-picker-question {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.mode-picker-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.mode-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.mode-option:hover {
  border-color: var(--accent);
  background: rgba(0, 200, 117, 0.05);
  transform: translateY(-1px);
}
.mode-option strong {
  font-size: 1rem;
  font-weight: 700;
  display: block;
}
.mode-option span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.mode-option--accent {
  border-color: var(--accent);
  background: rgba(0, 200, 117, 0.06);
}
.mode-option--accent:hover { background: rgba(0, 200, 117, 0.1); }

/* ── Sim CTA bar ─────────────────────────────────────────────────────── */
.sim-cta-bar {
  max-width: 1200px;
  margin: 1.25rem auto 0;
  padding: 0 2rem;
}
.sim-cta-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-wrap: wrap;
}
.btn-simulate-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.5rem;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}
.btn-simulate-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}
.btn-simulate-hint {
  font-size: 0.76rem;
  font-weight: 500;
  opacity: 0.65;
  white-space: nowrap;
}
.sim-secondary-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: auto;
}

/* ── Scenarios section ───────────────────────────────────────────────── */
.scenarios-section {
  max-width: 1200px;
  margin: 1rem auto 1.5rem;
  padding: 0 2rem;
}
.scenarios-section-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-wrap: wrap;
  opacity: 0.72;
  transition: opacity 0.2s;
}
.scenarios-section-inner:hover,
.scenarios-section-inner:focus-within,
.scenarios-section-inner.scratch-mode-prominent { opacity: 1; }
.scenarios-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.scenarios-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .mode-picker { margin: 2rem auto 2.5rem; padding: 0 1rem; }
  .scenarios-section { padding: 0 1rem; }
  /* Sticky CTA bar on mobile */
  body { padding-bottom: 5rem; }
  .sim-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    margin: 0;
    padding: 0.65rem 1rem;
    background: rgba(26, 29, 38, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  }
  .sim-cta-bar-inner {
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
  }
  .tournament-topbar {
    position: static;
    padding: 0;
    margin-bottom: 1rem;
    background: transparent;
    border-top: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .tournament-topbar .sim-cta-bar-inner {
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
  }
  .tournament-topbar .sim-secondary-btns {
    width: 100%;
    margin-left: 0;
  }
}
@media (max-width: 540px) {
  .comp-grid { grid-template-columns: 1fr; }
  .comp-grid-card--tournament { grid-column: 1; flex-direction: column; text-align: center; }
  .comp-strip-pill { font-size: 0.78rem; padding: 0.28rem 0.65rem; }
  .wc-urgent-inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .wc-urgent-cta { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .mode-picker-options { grid-template-columns: 1fr; }
  .mode-picker-question { font-size: 1.1rem; }
  .btn-simulate-primary { width: 100%; justify-content: center; }
  .btn-simulate-hint { display: none; }
  .sim-cta-bar .btn-outlined { display: none; }
  .sim-secondary-btns { margin-left: 0; }
  .tournament-topbar .sim-secondary-btns .btn,
  .tournament-topbar .sim-secondary-btns .btn-simulate-primary {
    flex: 1 1 100%;
  }
  .scenarios-section-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .scenarios-btns { gap: 0.4rem; }
}

/* ── Season outcome card ─────────────────────────────────────────────── */
.season-outcome {
  display: flex;
  align-items: center;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
}
.season-outcome-champion {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-shrink: 0;
}
.so-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}
.so-champion-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}
.so-gap {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.season-outcome-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
}
.so-zone {
  font-size: 0.79rem;
  color: var(--text-muted);
}
.so-zone-cl { color: rgba(79, 195, 247, 0.9); }
.so-zone-rel { color: rgba(239, 83, 80, 0.85); }

/* ── Sim feedback line (below CTA bar buttons) ───────────────────────── */
.sim-feedback {
  width: 100%;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.2s ease;
}
.sim-feedback--visible {
  max-height: 2rem;
  opacity: 1;
  padding-top: 0.3rem;
}

/* ── Table flash on simulate ─────────────────────────────────────────── */
@keyframes rowFlash {
  0%   { background-color: rgba(0, 200, 117, 0.14); }
  100% { background-color: transparent; }
}
.standings-flash tr { animation: rowFlash 0.9s ease-out; }

/* ── Sim UI fade-in ──────────────────────────────────────────────────── */
#sim-ui:not([hidden]) { animation: mpFadeUp 0.25s ease; }

/* ── How it works block ──────────────────────────────────────────────── */
.hiw-block {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.hiw-steps {
  display: flex;
  justify-content: center;
  gap: 0.5rem 2rem;
  list-style: none;
  counter-reset: hiw;
  flex-wrap: wrap;
}
.hiw-steps li {
  counter-increment: hiw;
  font-size: 0.79rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hiw-steps li::before {
  content: counter(hiw);
  background: var(--bg-elevated);
  color: var(--accent);
  border-radius: 50%;
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.67rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── WC2026 urgent banner (homepage, position 2) ─────────────────────── */
.wc-urgent-banner {
  background: linear-gradient(135deg, #130e00 0%, #16110a 100%);
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
}
.wc-urgent-inner {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 2rem;
}
.wc-urgent-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.wc-urgent-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #f59e0b;
  white-space: nowrap;
  flex-shrink: 0;
}
.wc-urgent-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wc-urgent-cta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  background: #f59e0b;
  color: #000;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.wc-urgent-cta:hover { background: #d97706; }

/* ── Competition strip (hero league pills) ───────────────────────────── */
.comp-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
}
.comp-strip-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.83rem;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--bg-card);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}
.comp-strip-pill:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(0, 200, 117, 0.06);
}
.comp-strip-flag {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Competition grid (equal cards, replaces 3-tier hierarchy) ───────── */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.comp-grid-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 1.4rem 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.comp-grid-card:hover {
  border-color: rgba(0, 200, 117, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
.comp-grid-card--tournament {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  gap: 1.25rem;
  text-align: left;
  padding: 1.1rem 2rem;
  border-color: rgba(245, 158, 11, 0.2);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, var(--bg-card) 60%);
}
.comp-grid-card--tournament:hover {
  border-color: rgba(245, 158, 11, 0.55);
}
.comp-grid-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
}
.comp-grid-logo--emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  line-height: 1;
}
.comp-grid-logo--art {
  width: 112px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-elevated);
}
.comp-grid-card--tournament .comp-grid-logo { width: 68px; height: 68px; }
.comp-grid-card--tournament .comp-grid-logo--art { width: 112px; height: 68px; }
.comp-grid-card--tournament .comp-grid-logo--emoji { font-size: 3.2rem; }
.comp-grid-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.comp-grid-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}
.comp-grid-card--tournament h3 { font-size: 1.05rem; }
.comp-grid-season {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.comp-type-badge {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.1rem 0.42rem;
  border-radius: 3px;
}
.comp-type-league {
  color: var(--text-muted);
  background: var(--bg-elevated);
}
.comp-type-tournament {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.comp-type-cup {
  color: #f97316;
  background: rgba(249, 115, 22, 0.12);
}

/* ── Nav dropdown ─────────────────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 1.5rem;
}
.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: inherit;
  padding: 0;
  transition: color 0.15s;
}
.nav-dropdown-btn:hover { color: var(--text); }
.nav-chevron {
  font-size: 0.68rem;
  transition: transform 0.2s;
  display: inline-block;
}
.nav-dropdown-btn[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.85rem);
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  width: min(680px, calc(100vw - 2rem));
  z-index: 200;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  grid-template-columns: minmax(150px, 1.15fr) minmax(150px, 1fr) minmax(120px, 0.85fr);
  gap: 0.25rem 1.1rem;
}
.nav-dropdown-btn[aria-expanded="true"] + .nav-dropdown-panel { display: grid; }
.nav-dropdown-col { display: flex; flex-direction: column; gap: 0.05rem; }
.nav-dropdown-overview {
  grid-column: 1 / -1;
  margin-bottom: 0.25rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.nav-dropdown-heading {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  padding: 0 0.5rem 0.45rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
}
.nav-dropdown-panel a {
  display: block;
  padding: 0.38rem 0.5rem;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  transition: background 0.1s, color 0.1s;
  margin-left: 0 !important;
}
.nav-dropdown-panel a:hover {
  background: rgba(0, 200, 117, 0.08);
  color: var(--accent);
}
.nav-dropdown-panel a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

/* ── Competitions page ───────────────────────────────────────────────── */
.section-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 640px;
  line-height: 1.6;
}
.comp-card-cta { text-decoration: none; }
.wc-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.5rem 0 1rem;
  line-height: 1.5;
}

/* ── Try another simulation section ─────────────────────────────────── */
.try-another-section {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}
.try-another-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}
.try-another-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.try-another-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.try-another-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
}
.try-another-card:hover { border-color: var(--accent); }
.try-another-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
}
.try-another-card > span {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.try-another-cta {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}

/* ── Nav scroll on mobile (handles additional nav items) ─────────────── */
@media (max-width: 820px) {
  .site-nav nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-shrink: 1;
    min-width: 0;
  }
  .site-nav nav::-webkit-scrollbar { display: none; }
  .try-another-section { padding: 0 1rem; }
  .featured-scenarios-strip { padding: 0 1rem; }
  .featured-scenario-grid { grid-template-columns: 1fr; }
  .scenario-hub-heading {
    display: block;
  }
  .scenario-hub-heading p {
    margin-top: 0.35rem;
  }
  .mls-playoff-board { padding: 0 1rem; }
  .mls-playoff-head {
    display: block;
  }
  .mls-playoff-actions {
    justify-content: stretch;
    margin-top: 0.85rem;
  }
  .mls-playoff-actions button {
    flex: 1 1 150px;
  }
  .mls-playoff-rounds {
    grid-template-columns: 1fr;
  }
  .team-page-shell { padding: 1.5rem 1rem 2.5rem; }
  .team-hero,
  .team-page-grid,
  .team-scenario-panel {
    grid-template-columns: 1fr;
  }
  .team-hero,
  .team-scenario-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .team-hero-actions,
  .team-scenario-links {
    justify-content: stretch;
  }
  .team-hero-actions a,
  .team-scenario-links a {
    justify-content: center;
    text-align: center;
  }
  .team-metrics {
    grid-template-columns: 1fr;
  }
}
