/* Self-hosted subsets, cut down to the glyphs this site renders: Inter for text,
   Barlow Condensed for display. Nothing is fetched from a third party. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-subset.woff2?v=89f5853af8') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-700-subset.woff2?v=46a83f8039') format('woff2');
}

/* FunnyGamingBest: Design System */

/* Tokens */
:root {
  /* Core surfaces */
  --bg: #1a0b2e;
  --surface: #141218;
  --surface-container-lowest: #0f0d13;
  --surface-container-low: #1d1b20;
  --surface-container: #211f24;
  --surface-container-high: #2b292f;
  --surface-container-highest: #36343a;

  /* Content */
  --on-surface: #e6e0e9;
  --on-surface-variant: #cbc4d2;
  --outline: #948e9c;
  --outline-variant: #494551;

  /* Accents */
  --primary: #cfbcff;
  --primary-bright: #e9ddff;
  --on-primary: #381e72;
  --secondary: #cdc0e9;
  --tertiary: #e7c365;
  --error: #ffb4ab;
  --success: #6ee7a8;

  /* Focus + form accent */
  --accent-focus: #4ecdc4;

  /* Glass */
  --glass-fill: rgba(255, 255, 255, 0.05);
  --glass-fill-hover: rgba(255, 255, 255, 0.08);
  --glass-line: rgba(255, 255, 255, 0.1);

  /* Spacing rhythm (4px base) */
  --sp-base: 4px;
  --sp-xs: 8px;
  --sp-sm: 16px;
  --sp-md: 24px;
  --sp-lg: 40px;
  --sp-xl: 64px;
  --gutter: 20px;
  --margin-mobile: 16px;
  --margin-desktop: 48px;

  /* Shape */
  --r-sm: 4px;
  --r: 8px;
  --r-input: 8px;
  --r-btn: 10px;
  --r-card: 14px;
  --r-full: 9999px;

  /* Type */
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", Inter, sans-serif;

  /* Layout */
  --header-h: 64px;
  --max-w: 1280px;
}

/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



img,
picture,
svg {
  display: block;
  max-width: 100%;
  /* width/height attributes are presentational hints; without this the height
     hint wins and aspect-ratio/object-fit never get a say */
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* the hidden attribute must beat component display rules (.btn is inline-flex) */
[hidden] {
  display: none !important;
}

::selection {
  background: var(--primary);
  color: var(--on-primary);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* Typography scale */
.display {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 76px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: none;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
}

.title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
}

.body-sm {
  font-size: 14px;
  line-height: 1.5;
}

.overline {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.muted {
  color: var(--on-surface-variant);
}

.num {
  font-variant-numeric: tabular-nums lining-nums;
}

.wordmark {
  color: var(--primary);
}

/* Layout primitives */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
}

.section {
  padding-block: clamp(48px, 8vw, var(--sp-xl));
}

.section--divided {
  border-top: 1px solid var(--glass-line);
}

.section-head {
  max-width: 640px;
  margin: 0 auto var(--sp-lg);
  text-align: center;
}

.section-head p {
  margin-top: var(--sp-xs);
}

.grid {
  display: grid;
  gap: var(--sp-md);
}

/* Glass surfaces */
.glass,
.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.card {
  border-radius: 20px;
  padding: var(--sp-md);
}

.glow,
.ai-glow {
  box-shadow: 0 0 32px 0 rgba(207, 188, 255, 0.25);
}

.grad-border,
.ai-border-gradient {
  position: relative;
}

.grad-border::before,
.ai-border-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(to right, var(--primary), var(--tertiary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-white {
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons, chips, badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:active {
  transform: scale(0.96);
}

.btn--primary,
.btn-gradient {
  background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.25), 0 2px 8px rgba(78, 205, 196, 0.2);
}

.btn--primary:hover,
.btn-gradient:hover {
  opacity: 0.93;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.35), 0 4px 12px rgba(78, 205, 196, 0.3);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn--sm {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 10px;
}

.btn--block {
  width: 100%;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 6px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--outline-variant);
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--primary {
  background: rgba(207, 188, 255, 0.18);
  color: var(--primary);
}

.badge--secondary {
  background: rgba(205, 192, 233, 0.18);
  color: var(--secondary);
}

.badge--tertiary {
  background: rgba(231, 195, 101, 0.18);
  color: var(--tertiary);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--tertiary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(20, 18, 24, 0.72);
  border-bottom: 1px solid var(--glass-line);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.header.is-scrolled {
  background: rgba(15, 13, 19, 0.96);
  border-bottom-color: var(--outline-variant);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  transition: opacity 0.18s ease;
}

.brand:hover {
  opacity: 0.85;
}

.brand img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav {
  display: none;
  align-items: center;
  gap: var(--gutter);
}

.nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--on-surface-variant);
  transition: color 0.18s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.lang {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  margin-right: var(--sp-xs);
  border-radius: var(--r);
  background: var(--glass-fill);
  border: 1px solid var(--glass-line);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.lang:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang:active {
  transform: scale(0.95);
}

.burger {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  color: var(--primary);
}

.burger span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

.burger[aria-expanded="true"] span {
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(90deg);
}

.burger[aria-expanded="true"] span::after {
  opacity: 0;
  transform: translateY(-6px);
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  display: grid;
  gap: var(--sp-base);
  padding: var(--sp-sm) var(--margin-mobile) var(--sp-md);
  background: rgba(15, 13, 19, 0.97);
  border-bottom: 1px solid var(--glass-line);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.24s ease, opacity 0.24s ease, visibility 0.24s;
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: var(--r-input);
  font-weight: 600;
  color: var(--on-surface-variant);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.mobile-nav a:hover {
  background: var(--glass-fill);
  color: var(--primary);
}

/* Hero */
.main {
  padding-top: var(--header-h);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 64px);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
  max-width: 896px;
  margin-inline: auto;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 8px 16px;
  border-radius: var(--r-full);
  border-top-color: rgba(255, 255, 255, 0.2);
  color: var(--tertiary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__inner h1 {
  max-width: 15ch;
  color: #fff;
}

.hero__inner > p {
  max-width: 42rem;
  font-size: 17px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-xs);
}

/* Metric strip */
.metrics {
  position: relative;
  z-index: 1;
  margin-top: clamp(36px, 6vw, 56px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-sm);
}

.metric {
  text-align: center;
  padding: var(--sp-md) var(--sp-sm);
}

.metric__value {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 40px);
  font-weight: 700;
  color: var(--primary);
}

.metric--gold .metric__value {
  color: var(--tertiary);
}

.metric__label {
  margin-top: var(--sp-xs);
  color: var(--on-surface-variant);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: none;
}

/* Leagues marquee */
.leagues {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-sm);
}

.league {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--r-full);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.league:hover {
  border-color: var(--primary);
}

.league em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--on-surface-variant);
}

/* Feature bento */
.bento {
  grid-template-columns: 1fr;
}

.feature {
  position: relative;
  transition: border-color 0.15s ease;
}

.feature:hover {
  border-color: var(--outline);
}

.feature > * {
  position: relative;
  z-index: 2;
}

.feature img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--r-input);
  margin-bottom: var(--sp-sm);
}

.feature h3 {
  margin-bottom: var(--sp-base);
}

.feature p {
  color: var(--on-surface-variant);
  font-size: 14px;
}

/* the two wide cards hold their copy to a narrower measure (max-w-md) */
.feature--wide p {
  max-width: 28rem;
}


/* Squad builder */
.builder {
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
}

.pitch {
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-sm);
  border-radius: 20px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(255, 255, 255, 0.06),
      transparent 60%
    ),
    repeating-linear-gradient(
      180deg,
      #1a3a1a 0 40px,
      #163216 40px 80px
    );
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.pitch__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pitch__circle,
.pitch__half,
.pitch__box {
  position: absolute;
  border-color: rgba(255, 255, 255, 0.2);
}

.pitch__circle {
  top: 50%;
  left: 50%;
  width: 128px;
  height: 128px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.pitch__half {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.pitch__box {
  left: 50%;
  width: min(260px, 70%);
  height: 92px;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.pitch__box--top {
  top: -2px;
  border-top: 0;
}

.pitch__box--bottom {
  bottom: -2px;
  border-bottom: 0;
}

.pitch__row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2vw, 28px);
}

.slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 62px;
  height: 78px;
  padding: 4px;
  border-radius: var(--r-input);
  background: rgba(255, 255, 255, 0.07);
  border: 2px dashed rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pitch__row[data-row="DEF"] .slot {
  width: 56px;
}

.slot:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}

.slot__icon {
  font-size: 20px;
  line-height: 1;
}

.slot.is-filled {
  border-style: solid;
  border-color: var(--primary);
  background: rgba(207, 188, 255, 0.16);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slot.is-filled img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
}

.slot__name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  letter-spacing: 0.02em;
}


/* Control panel */
.panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.panel__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding: var(--sp-md);
}

.panel__stats span {
  display: block;
  color: var(--on-surface-variant);
  font-size: 14px;
}

.panel__stats strong {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  padding: var(--sp-xs);
  border-radius: var(--r-input);
}

.filter {
  padding: 8px 16px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface-variant);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.filter:hover {
  background: var(--glass-fill-hover);
  color: #fff;
}

.filter.is-active {
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}

.players {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  max-height: 360px;
  overflow-y: auto;
  padding-right: 6px;
}

.player {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 12px var(--sp-sm);
  border-radius: var(--r-input);
  text-align: left;
  transition: background-color 0.15s ease;
}

.player:hover {
  background: var(--surface-container-high);
}

.player.is-picked,
.player.is-full {
  opacity: 0.58;
  cursor: default;
}

.player.is-picked:hover,
.player.is-full:hover {
  transform: none;
  background: var(--glass-fill);
}

.player__avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(207, 188, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  object-fit: cover;
}

.player__initials {
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.player__body {
  flex: 1 1 auto;
  min-width: 0;
}

.player__top {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.player__name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player__club {
  font-size: 12px;
  color: var(--on-surface-variant);
}

.player__rating {
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--tertiary);
}

.panel__footer {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-top: auto;
}

.panel__msg {
  min-height: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tertiary);
}

/* Fixture predictions */
.fixtures {
  grid-template-columns: 1fr;
}

.fixture {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.fixture:hover {
  border-color: var(--outline);
}

.fixture__meta {
  display: flex;
  justify-content: space-between;
  color: var(--on-surface-variant);
}

.fixture__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--on-surface-variant);
}

.team__crest {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-line);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.fixture__vs {
  font-weight: 800;
  color: #fff;
}

.prob__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--sp-xs);
  font-size: 14px;
}

.prob__head strong {
  color: var(--primary);
}

.prob__bar {
  display: flex;
  height: 8px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.prob__bar i {
  display: block;
  height: 100%;
  transition: width 0.2s ease-out;
}

.prob__home {
  background: var(--primary);
}

.prob__draw {
  background: rgba(255, 255, 255, 0.24);
}

.prob__away {
  background: var(--tertiary);
}

.prob__legend {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--on-surface-variant);
}

/* How it works */
.steps {
  position: relative;
  max-width: 672px;
  margin-inline: auto;
  display: grid;
  gap: var(--sp-md);
  list-style: none;
  padding: 0;
}

.steps::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 56px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(207, 188, 255, 0.4), rgba(231, 195, 101, 0.4), rgba(207, 188, 255, 0.4));
  display: none;
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  align-items: flex-start;
  background: rgba(33, 31, 36, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-card);
  padding: var(--sp-md);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.step:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(207, 188, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(207, 188, 255, 0.1);
}

.steps .step.reveal {
  transition: opacity 0.4s ease, transform 0.4s ease-out, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.steps .step.reveal:nth-child(1) { transition-delay: 0s; }
.steps .step.reveal:nth-child(2) { transition-delay: 0.12s; }
.steps .step.reveal:nth-child(3) { transition-delay: 0.24s; }
.steps .step.reveal:nth-child(4) { transition-delay: 0.36s; }
.steps .step.reveal:nth-child(5) { transition-delay: 0.48s; }
.steps .step.reveal:nth-child(6) { transition-delay: 0.60s; }

.step__mark {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #22005d;
  font-size: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(207, 188, 255, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.steps .step:nth-child(3n+1) .step__mark {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #22005d;
  box-shadow: 0 8px 20px rgba(207, 188, 255, 0.25);
}

.steps .step:nth-child(3n+2) .step__mark {
  background: linear-gradient(135deg, var(--tertiary) 0%, var(--primary) 100%);
  color: #3e2e00;
  box-shadow: 0 8px 20px rgba(231, 195, 101, 0.25);
}

.steps .step:nth-child(3n+3) .step__mark {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--tertiary) 100%);
  color: #1f1635;
  box-shadow: 0 8px 20px rgba(205, 192, 233, 0.25);
}

.step:hover .step__mark {
  transform: scale(1.06);
}

.step__badge,
.step__num {
  position: absolute;
  top: -6px;
  right: -8px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--surface-container-highest);
  border: 1px solid rgba(207, 188, 255, 0.35);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.steps .step:nth-child(3n+2) .step__badge,
.steps .step:nth-child(3n+2) .step__num {
  border-color: rgba(231, 195, 101, 0.45);
  color: var(--tertiary);
}

.steps .step:nth-child(3n+3) .step__badge,
.steps .step:nth-child(3n+3) .step__num {
  border-color: rgba(205, 192, 233, 0.45);
  color: var(--secondary);
}

.step h3 {
  margin-bottom: var(--sp-xs);
  color: #fff;
  font-weight: 700;
}

.plan h3,
.faq__q,
.stat-band__item strong,
.panel__stats strong,
.page-hero h1,
.toast__title {
  font-family: var(--font-display);
}

.faq__q {
  font-size: 20px;
  font-weight: 700;
}

.step p {
  color: var(--on-surface-variant);
  font-size: 14px;
}

/* Pricing */
.plans {
  grid-template-columns: 1fr;
  align-items: center;
}

.plan {
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan h3 {
  margin-bottom: var(--sp-base);
}

.plan__desc {
  margin-bottom: var(--sp-sm);
  color: var(--on-surface-variant);
  font-size: 14px;
}

.plan__price {
  font-family: var(--font-display);
  margin-bottom: var(--sp-md);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.plan__price small {
  font-size: 18px;
  font-weight: 400;
  color: var(--on-surface-variant);
}

.plan ul {
  display: grid;
  gap: 12px;
  flex: 1 1 auto;
  margin-bottom: var(--sp-md);
  color: var(--on-surface-variant);
  font-size: 14px;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-xs);
}

.plan li::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  background-color: var(--primary);
  -webkit-mask-image: url("../img/icon-check.svg?v=9d729ee8d0");
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("../img/icon-check.svg?v=9d729ee8d0");
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
}

.plan--featured {
  z-index: 2;
}

.plan__ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* FAQ accordion */
.faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: var(--sp-sm);
}

.faq__item {
  border-radius: var(--r-card);
  overflow: hidden;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  width: 100%;
  padding: var(--sp-sm) var(--sp-md);
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  transition: background-color 0.18s ease;
}

.faq__q:hover {
  background: var(--glass-fill-hover);
}

.faq__q i {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.faq__item.is-open .faq__q i {
  transform: rotate(45deg);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}

.faq__a > div {
  overflow: hidden;
}

.faq__a p {
  padding: 0 var(--sp-md) var(--sp-md);
  color: var(--on-surface-variant);
  font-size: 14px;
}

/* Closing CTA */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  min-height: 600px;
  display: flex;
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  opacity: 0.55;
}

.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--bg) 6%,
    rgba(26, 11, 46, 0.9) 46%,
    rgba(26, 11, 46, 0.25)
  );
}

.cta__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-sm);
  max-width: 620px;
  padding: clamp(24px, 5vw, 64px);
}

.cta__badge {
  align-self: flex-start;
  padding: 4px 12px;
  margin-bottom: var(--sp-xs);
  border-radius: var(--r-full);
  background: rgba(207, 188, 255, 0.2);
  border: 1px solid rgba(207, 188, 255, 0.3);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cta__body h2 {
  color: #fff;
}

.cta__body > p {
  color: var(--on-surface-variant);
}

.cta__list {
  display: grid;
  gap: 10px;
  margin-block: var(--sp-xs) var(--sp-sm);
  font-size: 14px;
}

.cta__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-xs);
  color: #fff;
}

.cta__list li::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  background-color: var(--primary);
  -webkit-mask-image: url("../img/icon-check.svg?v=9d729ee8d0");
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("../img/icon-check.svg?v=9d729ee8d0");
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.quote {
  padding-top: var(--sp-md);
  border-top: 1px solid var(--glass-line);
}

.quote p {
  font-style: italic;
  font-size: 14px;
  color: var(--on-surface-variant);
}

.quote cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* Footer */
.footer {
  margin-top: clamp(48px, 8vw, 80px);
  background: var(--surface-container-lowest);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-card) var(--r-card) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
  padding-block: var(--sp-xl) var(--sp-md);
}

.footer__brand {
  display: grid;
  gap: var(--sp-sm);
  max-width: 380px;
}

.footer__brand p {
  color: var(--on-surface-variant);
  font-size: 14px;
}

.footer__col h2 {
  margin-bottom: var(--sp-sm);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.footer__col ul {
  display: grid;
  gap: 10px;
}

.footer__col a {
  color: var(--on-surface-variant);
  font-size: 14px;
  transition: color 0.18s ease;
}

.footer__col a:hover {
  color: var(--tertiary);
}

.footer__note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding-block: var(--sp-md);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--on-surface-variant);
  font-size: 13px;
}

.footer__disclaimer {
  padding-bottom: var(--sp-md);
  color: var(--outline);
  font-size: 12px;
  line-height: 1.6;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--primary);
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Legal pages */
.legal-hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 72px) var(--sp-md);
  text-align: center;
}

.legal-hero .chip {
  margin-bottom: var(--sp-sm);
}

.legal-hero h1 {
  margin-bottom: var(--sp-sm);
}

.legal-hero p {
  max-width: 60ch;
  margin-inline: auto;
  color: var(--on-surface-variant);
}

.legal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-xs) var(--sp-md);
  margin-top: var(--sp-md);
  color: var(--outline);
  font-size: 13px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
  align-items: start;
  padding-bottom: var(--sp-xl);
}

.toc {
  padding: var(--sp-md);
  border-radius: var(--r-card);
}

.toc h2 {
  margin-bottom: var(--sp-sm);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}

.toc ol {
  display: grid;
  gap: 6px;
  counter-reset: toc;
  max-height: none;
}

.toc a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--r);
  color: var(--on-surface-variant);
  font-size: 13px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.toc a::before {
  counter-increment: toc;
  content: counter(toc) ". ";
  color: var(--primary);
  font-weight: 700;
}

.toc a:hover,
.toc a.is-active {
  background: var(--glass-fill-hover);
  color: #fff;
}

.legal-body {
  display: grid;
  gap: var(--sp-md);
}

.legal-body > .glass {
  padding: clamp(20px, 4vw, 36px);
  border-radius: var(--r-card);
}

.legal-section {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.legal-section + .legal-section {
  margin-top: var(--sp-lg);
  padding-top: var(--sp-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.legal-section h2 {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: var(--sp-sm);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}

.legal-section h2 span {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 700;
  color: var(--outline);
  font-variant-numeric: tabular-nums;
}

.legal-section h3 {
  margin: var(--sp-md) 0 var(--sp-xs);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.legal-section p,
.legal-section li {
  color: var(--on-surface-variant);
  font-size: 15px;
}

.legal-section p + p {
  margin-top: var(--sp-sm);
}

.legal-section ul,
.legal-section ol {
  display: grid;
  gap: 10px;
  margin-top: var(--sp-sm);
  padding-left: 2px;
}

.legal-section ul li {
  display: flex;
  gap: 10px;
}

.legal-section ul li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--primary);
}

.legal-section ol {
  counter-reset: item;
}

.legal-section ol li {
  display: flex;
  gap: 10px;
}

.legal-section ol li::before {
  counter-increment: item;
  content: counter(item) ".";
  flex: 0 0 auto;
  color: var(--tertiary);
  font-weight: 700;
}

.legal-section strong {
  color: #fff;
}

.legal-section a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.callout {
  margin-top: var(--sp-md);
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--outline-variant);
}

.callout p {
  font-size: 14px;
}

.legal-table {
  width: 100%;
  margin-top: var(--sp-sm);
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--on-surface-variant);
  vertical-align: top;
}

.legal-table th {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.legal-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

.table-scroll {
  overflow-x: auto;
  margin-top: var(--sp-sm);
}

.legal-nav {
  display: grid;
  gap: var(--sp-sm);
  grid-template-columns: 1fr;
  margin-top: var(--sp-md);
}

.legal-nav a {
  display: grid;
  gap: 4px;
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--r-input);
  transition: background-color 0.15s ease;
}

.legal-nav a:hover {
  background: var(--surface-container-high);
}

.legal-nav span {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.legal-nav strong {
  color: #fff;
  font-size: 15px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .dot,
  * {
    animation-duration: 0.001ms !important;
  }
}

/* Responsive */
@media (min-width: 640px) {
  .metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .step {
    flex-direction: row;
    align-items: center;
  }

  .steps::before {
    display: block;
  }

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

@media (min-width: 768px) {
  .container {
    padding-inline: 32px;
  }

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

  .feature--wide {
    grid-column: span 2;
  }

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

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

  .plan--featured {
    transform: translateY(-16px);
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .slot {
    width: 68px;
    height: 84px;
  }
}

@media (min-width: 900px) {
  .container {
    padding-inline: var(--margin-desktop);
  }

  .hero {
    min-height: 795px;
  }

  .hero__inner > p {
    font-size: 20px;
  }

  .legal-layout {
    grid-template-columns: 280px 1fr;
    gap: var(--sp-lg);
  }

  .toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .toc ol {
    max-height: calc(100vh - var(--header-h) - 140px);
    overflow-y: auto;
  }
}

@media (min-width: 1024px) {
  .builder {
    grid-template-columns: 2fr 1fr;
  }

  .players {
    max-height: 340px;
  }
}

/* Cookie consent banner */
.consent {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 16px;
  width: min(720px, calc(100% - 24px));
  transform: translate(-50%, 120%);
  padding: var(--sp-md);
  border-radius: var(--r-card);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease-out, opacity 0.2s ease, visibility 0.25s;
}

.consent.is-open {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.consent h2 {
  margin-bottom: var(--sp-xs);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.consent p {
  color: var(--on-surface-variant);
  font-size: 14px;
}

.consent p a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent__options {
  display: none;
  gap: 10px;
  margin-top: var(--sp-sm);
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--glass-line);
}

.consent.is-detailed .consent__options {
  display: grid;
}

.consent__opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--on-surface-variant);
}

.consent__opt input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.consent__opt strong {
  color: #fff;
  font-weight: 600;
}

.consent__opt em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--outline);
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  margin-top: var(--sp-md);
}

.consent__actions .btn {
  flex: 1 1 160px;
}

.consent__link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--on-surface-variant);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.18s ease;
}

.consent__link:hover {
  color: #fff;
}

.footer__cookie-btn {
  padding: 0;
  color: var(--on-surface-variant);
  font-size: 14px;
  text-align: left;
  transition: color 0.18s ease;
}

.footer__cookie-btn:hover {
  color: var(--tertiary);
}

/* Content pages (about, fantasy sports, how it works, pricing, contact) */
.mobile-nav__sep {
  display: block;
  height: 1px;
  margin: var(--sp-xs) 10px;
  background: var(--glass-line);
}

.page-hero {
  position: relative;
  padding-block: clamp(36px, 6vw, 64px) var(--sp-md);
  text-align: center;
}

.page-hero .chip {
  margin-bottom: var(--sp-sm);
}

.page-hero h1 {
  font-size: clamp(30px, 5.4vw, 48px);
  margin-bottom: var(--sp-sm);
}

.page-hero p {
  max-width: 66ch;
  margin-inline: auto;
  color: var(--on-surface-variant);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
}

.cols-2,
.cols-3 {
  grid-template-columns: 1fr;
}

.icon-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  transition: border-color 0.15s ease;
}

.icon-card:hover {
  border-color: var(--outline);
}

/* the icon carries the accent on its own: no tinted tile behind it */
.icon-card__icon {
  display: block;
  margin-bottom: 2px;
  font-size: 24px;
  line-height: 1;
  color: var(--primary);
}

.icon-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: #fff;
}

.icon-card p,
.icon-card li {
  color: var(--on-surface-variant);
  font-size: 14px;
}

.icon-card ul {
  display: grid;
  gap: 8px;
  margin-top: var(--sp-xs);
}

.icon-card ul li {
  display: flex;
  gap: 8px;
}

.icon-card ul li::before {
  content: "";
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 4px;
  background-color: var(--tertiary);
  -webkit-mask-image: url("../img/icon-chevron-right.svg?v=3bd86df29a");
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("../img/icon-chevron-right.svg?v=3bd86df29a");
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
}

.icon-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  margin-top: auto;
  padding-top: var(--sp-sm);
}

.stat-band {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-sm);
}

.stat-band__item {
  padding: var(--sp-md) var(--sp-sm);
  text-align: center;
}

.stat-band__item strong {
  display: block;
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}

.stat-band__item span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--on-surface-variant);
}

.prose {
  display: grid;
  gap: var(--sp-sm);
  max-width: 78ch;
}

.prose p,
.prose li {
  color: var(--on-surface-variant);
}

.prose h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.prose ul {
  display: grid;
  gap: 10px;
}

.prose ul li {
  display: flex;
  gap: 10px;
}

.prose ul li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--primary);
}


.pill {
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-line);
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-variant);
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: var(--r-card);
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.cta-band {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  align-items: flex-start;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-card);
  background: var(--surface-container);
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  max-width: 60ch;
  color: var(--on-surface-variant);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

/* Contact form */
.form {
  display: grid;
  gap: var(--sp-sm);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-sm);
}

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

.field label {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--r-input);
  background: #12081f;
  border: 1px solid var(--outline-variant);
  color: var(--on-surface);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--outline);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-focus);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.18);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
}

.field__error {
  min-height: 16px;
  font-size: 12px;
  color: var(--error);
}

.form__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--on-surface-variant);
}

.form__check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.form__check a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form__status {
  min-height: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
}

.contact-list {
  display: grid;
  gap: var(--sp-sm);
}

.contact-list div {
  display: grid;
  gap: 2px;
}

.contact-list dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.contact-list dd {
  font-size: 15px;
  color: var(--on-surface-variant);
}

.contact-list dd a {
  color: #fff;
}

.contact-list dd a:hover {
  color: var(--tertiary);
}

@media (min-width: 640px) {
  .cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 900px) {
  .cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-lg);
  }

  .split--reverse .split__media {
    order: 2;
  }

  .cta-band {
    align-items: center;
    text-align: center;
  }

  .cta-band p {
    margin-inline: auto;
  }

  .cta-band__actions {
    justify-content: center;
  }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
    gap: var(--gutter);
  }

  .burger {
    display: none;
  }

  .mobile-nav {
    display: none;
  }
}

/* Small-phone header trims (keeps brand + CTA + burger on one line) */
@media (max-width: 620px) {
  .header__inner {
    gap: var(--sp-xs);
  }

  .brand img {
    height: 28px;
  }

  .brand__name {
    font-size: 15px;
  }

  .header__actions .btn--sm {
    min-height: 38px;
    padding: 6px 14px;
    font-size: 13px;
  }

  .burger {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 380px) {
  .brand__name {
    display: none;
  }
}

/* Toast notifications (container is created by js/main.js) */
.toasts {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: 16px;
  z-index: 130;
  display: grid;
  gap: 12px;
  width: min(390px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 16px 16px 18px;
  border-radius: var(--r-card);
  transform: translateX(115%);
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.2s ease;
  overflow: hidden;
}

.toast.is-in {
  transform: translateX(0);
  opacity: 1;
}

.toast.is-out {
  transform: translateX(115%);
  opacity: 0;
}

.toast__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(110, 231, 168, 0.16);
  border: 1px solid rgba(110, 231, 168, 0.45);
  color: var(--success);
  font-size: 18px;
  line-height: 1;

}

.toast__body {
  min-width: 0;
}

.toast__title {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.toast__msg {
  font-size: 13px;
  line-height: 1.5;
  color: var(--on-surface-variant);
}

.toast__close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -4px -4px 0 0;
  border-radius: var(--r);
  color: var(--outline);
  font-size: 18px;
  line-height: 1;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.toast__close:hover {
  background: var(--glass-fill-hover);
  color: #fff;
}

.toast__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  background: var(--primary);
}

.toast.is-in .toast__bar {
  animation: toast-bar var(--toast-life, 6000ms) linear forwards;
}

@keyframes toast-bar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 620px) {
  .toasts {
    top: auto;
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }

  .toast {
    transform: translateY(140%);
  }

  .toast.is-out {
    transform: translateY(140%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transform: none;
    transition: opacity 0.2s ease;
  }

  .toast.is-out {
    transform: none;
  }

  .toast.is-in .toast__bar {
    animation: none;
  }
}

/* Icons: SVG files live next to the images in img/. */
.ico {
  display: inline-block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask-image: var(--ico);
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-image: var(--ico);
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
}

.ico--accessibility { --ico: url("../img/icon-accessibility.svg?v=ac0fa25ee4"); }
.ico--arrow-down { --ico: url("../img/icon-arrow-down.svg?v=02638d7bdc"); }
.ico--arrow-up { --ico: url("../img/icon-arrow-up.svg?v=8185e15056"); }
.ico--basketball { --ico: url("../img/icon-basketball.svg?v=b0c132bdab"); }
.ico--bolt { --ico: url("../img/icon-bolt.svg?v=21d1a1d1c1"); }
.ico--brain { --ico: url("../img/icon-brain.svg?v=bb5b49be7a"); }
.ico--calendar { --ico: url("../img/icon-calendar.svg?v=685e31c01c"); }
.ico--card { --ico: url("../img/icon-card.svg?v=e62f055079"); }
.ico--chart { --ico: url("../img/icon-chart.svg?v=9055ebef6f"); }
.ico--chart-down { --ico: url("../img/icon-chart-down.svg?v=d930c21899"); }
.ico--chart-up { --ico: url("../img/icon-chart-up.svg?v=ef4d2fee34"); }
.ico--chat { --ico: url("../img/icon-chat.svg?v=ed043166e3"); }
.ico--check { --ico: url("../img/icon-check.svg?v=9d729ee8d0"); }
.ico--clock { --ico: url("../img/icon-clock.svg?v=8448060e90"); }
.ico--code { --ico: url("../img/icon-code.svg?v=39897a3f22"); }
.ico--coins { --ico: url("../img/icon-coins.svg?v=e282aafe4f"); }
.ico--compass { --ico: url("../img/icon-compass.svg?v=e36025a5db"); }
.ico--door { --ico: url("../img/icon-door.svg?v=f0eabba53e"); }
.ico--flag { --ico: url("../img/icon-flag.svg?v=82c06fedbd"); }
.ico--football { --ico: url("../img/icon-football.svg?v=280e917182"); }
.ico--heart { --ico: url("../img/icon-heart.svg?v=4c2d1b2026"); }
.ico--hockey { --ico: url("../img/icon-hockey.svg?v=6c5b71b937"); }
.ico--ladder { --ico: url("../img/icon-ladder.svg?v=dfff937b93"); }
.ico--leaf { --ico: url("../img/icon-leaf.svg?v=f7e4352fbd"); }
.ico--link { --ico: url("../img/icon-link.svg?v=5e73a83da9"); }
.ico--lock { --ico: url("../img/icon-lock.svg?v=cb6a1d9052"); }
.ico--news { --ico: url("../img/icon-news.svg?v=998bd939c7"); }
.ico--palette { --ico: url("../img/icon-palette.svg?v=49bdeaf3ce"); }
.ico--partnership { --ico: url("../img/icon-partnership.svg?v=77a38a9fae"); }
.ico--radar { --ico: url("../img/icon-radar.svg?v=7af52d1b7b"); }
.ico--receipt { --ico: url("../img/icon-receipt.svg?v=4618598fd4"); }
.ico--refresh { --ico: url("../img/icon-refresh.svg?v=20ecc13c6c"); }
.ico--scales { --ico: url("../img/icon-scales.svg?v=0fa0bea389"); }
.ico--search { --ico: url("../img/icon-search.svg?v=f77a7ce35a"); }
.ico--shield { --ico: url("../img/icon-shield.svg?v=48a33c6d2a"); }
.ico--sparkle { --ico: url("../img/icon-sparkle.svg?v=8f85f5b99b"); }
.ico--star { --ico: url("../img/icon-star.svg?v=3e620d976f"); }
.ico--stopwatch { --ico: url("../img/icon-stopwatch.svg?v=519a919fa8"); }
.ico--target { --ico: url("../img/icon-target.svg?v=a2827ebf4e"); }
.ico--trophy { --ico: url("../img/icon-trophy.svg?v=beaae96c08"); }
.ico--undo { --ico: url("../img/icon-undo.svg?v=891d342014"); }
.ico--user-plus { --ico: url("../img/icon-user-plus.svg?v=84ce9efa4f"); }
.ico--users { --ico: url("../img/icon-users.svg?v=8304b522ea"); }

.icon-card__icon .ico,
.step__mark .ico {
  width: 1em;
  height: 1em;
}

/* --- Fixture Team Selection & Prediction Stats --- */
.team--btn {
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: var(--r-card);
  cursor: pointer;
  color: var(--on-surface-variant);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.team--btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.team--btn.is-selected .team__crest {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  background: rgba(207, 188, 255, 0.25);
  color: #fff;
}

.team--btn.is-selected {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.fixture__stats-drawer {
  margin-top: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--r-input);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--glass-line);
  animation: fadeInStats 0.25s ease;
}

@keyframes fadeInStats {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.fixture__stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-xs);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fixture__stats-title {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}

.fixture__win-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(110, 231, 168, 0.16);
  color: var(--success);
  border: 1px solid rgba(110, 231, 168, 0.3);
}

.fixture__win-tag--underdog {
  background: rgba(255, 180, 180, 0.15);
  color: #ff8a8a;
  border-color: rgba(255, 180, 180, 0.3);
}

.fixture__stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-xs);
  margin-top: 8px;
}

.fixture__stat-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fixture__stat-label {
  font-size: 11px;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fixture__stat-val {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* --- Squad Builder Match Simulation --- */
.btn--sim {
  background: rgba(207, 188, 255, 0.15);
  border: 1px solid var(--primary);
  color: #fff;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn--sim:not(:disabled) {
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: simPulse 2s infinite ease-in-out;
}

@keyframes simPulse {
  0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); }
}

.btn--sim:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  animation: none;
  border-color: rgba(255, 255, 255, 0.15);
}

.pitch__ball {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  font-size: 18px;
  z-index: 20;
  transform: translate(-50%, -50%);
  transition: left 0.55s cubic-bezier(0.25, 1, 0.5, 1), top 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.pitch__ball-inner {
  display: block;
  line-height: 1;
  animation: spinBall 1s linear infinite;
}

@keyframes spinBall {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.slot.is-ball-holder {
  border-color: #fff !important;
  border-style: solid !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  transform: scale(1.12);
  z-index: 5;
}

.pitch.is-simulating {
  padding-top: 68px;
}

.pitch__sim-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 15;
  background: rgba(20, 10, 36, 0.92);
  border: 1px solid var(--primary);
  border-radius: var(--r-input);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pitch__sim-badge {
  background: var(--primary);
  color: var(--bg);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.pitch__sim-ticker {
  flex: 1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--tertiary);
}

.pitch__sim-metrics {
  display: flex;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
}

.pitch__sim-metrics strong {
  color: var(--primary);
}

/* --- Your XI vs the house AI: scoreboard, live stats, full-time result --- */
.versus {
  display: grid;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
}

.versus__head {
  text-align: center;
  margin-bottom: var(--sp-xs);
}

.versus__head p {
  max-width: 560px;
  margin: 6px auto 0;
}

.versus__board {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: var(--sp-md);
}

.versus__side {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  min-width: 0;
}

/* the away crest sits on the outside edge on both layouts */
.versus__side--away {
  flex-direction: row-reverse;
}

.versus__crest {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
}

.versus__crest--home {
  background: rgba(207, 188, 255, 0.16);
  border: 1px solid rgba(207, 188, 255, 0.45);
  color: var(--primary);
}

.versus__crest--away {
  background: rgba(231, 195, 101, 0.16);
  border: 1px solid rgba(231, 195, 101, 0.45);
  color: var(--tertiary);
}

.versus__ident {
  min-width: 0;
  text-align: left;
}

.versus__team {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  color: #fff;
}

.versus__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.versus__sub b {
  color: #fff;
}

.versus__sub em {
  font-style: normal;
  opacity: 0.5;
}

.versus__score {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.versus__digits {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 54px);
  line-height: 1;
  color: #fff;
}

.versus__digits i {
  font-style: normal;
  color: var(--outline);
}

.versus__clock {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--on-surface-variant);
}

.vs-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vs-state--idle {
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-surface-variant);
}

.vs-state--live {
  background: rgba(255, 107, 107, 0.18);
  color: #ff9a9a;
}

.vs-state--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6b6b;
  animation: vsBlink 1.1s infinite ease-in-out;
}

@keyframes vsBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.vs-state--win {
  background: rgba(110, 231, 168, 0.18);
  color: var(--success);
}

.vs-state--draw {
  background: rgba(231, 195, 101, 0.18);
  color: var(--tertiary);
}

.vs-state--loss {
  background: rgba(255, 180, 171, 0.18);
  color: var(--error);
}

.versus__progress {
  height: 5px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.versus__progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--tertiary));
  transition: width 0.4s ease;
}

.versus__ticker {
  min-height: 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--tertiary);
}

/* Full-time result */
.versus__result {
  display: grid;
  gap: var(--sp-sm);
  padding: var(--sp-md);
  border: 1px solid rgba(207, 188, 255, 0.35);
  animation: fadeInStats 0.3s ease;
}

.versus__result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-sm);
}

.vs-verdict {
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vs-verdict--win {
  background: rgba(110, 231, 168, 0.16);
  border: 1px solid rgba(110, 231, 168, 0.4);
  color: var(--success);
}

.vs-verdict--draw {
  background: rgba(231, 195, 101, 0.16);
  border: 1px solid rgba(231, 195, 101, 0.4);
  color: var(--tertiary);
}

.vs-verdict--loss {
  background: rgba(255, 180, 171, 0.16);
  border: 1px solid rgba(255, 180, 171, 0.4);
  color: var(--error);
}

.versus__result-score {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
}

.versus__result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-sm);
  align-items: end;
}

.versus__result-cell {
  display: grid;
  gap: 2px;
}

.versus__result-cell strong {
  font-size: 20px;
  line-height: 1.2;
  color: #fff;
}

@media (min-width: 640px) {
  .versus__result-grid {
    grid-template-columns: 1fr 1fr auto;
  }
}

@media (min-width: 720px) {
  .versus__board {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
    padding: var(--sp-md) var(--sp-lg);
  }

  .versus__side {
    justify-self: start;
  }

  .versus__side--away {
    flex-direction: row;
    justify-self: end;
  }

  .versus__side--away .versus__ident {
    text-align: right;
  }

  .versus__side--away .versus__sub {
    justify-content: flex-end;
  }
}




@media (max-width: 460px) {
  .hero__cta {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .hero__cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
