/* Landing page of app.ildieci.eu (/, /en, /fr, /de, /es). Dark "Verde Stadio"
   like the app: the tokens below come from packages/ui (generated, checked by
   packages/server/test/site.test.ts). Self-hosted fonts, no external resources.
   The legal pages keep site.css. */
/* tokens:start: generated by apps/site/tools/pages.ts from packages/ui/src/tokens (dark). Do not edit. */
:root {
  --color-background: #070d09;
  --color-background-glow: #0b140e;
  --color-surface: #0f1912;
  --color-surface-highlight: #132017;
  --color-surface-raised: #15231a;
  --color-surface-sunken: #040805;
  --color-border: #2f3e48;
  --color-border-strong: #62727e;
  --color-shadow: #000000;
  --color-card-shadow: 0px 4px 12px rgba(0, 0, 0, 0.55);
  --color-text: #f3f7ef;
  --color-text-muted: #a9c0b0;
  --color-text-subtle: #8aa394;
  --color-accent: #2a9d8f;
  --color-on-accent: #04101f;
  --color-accent-text: #2a9d8f;
  --color-accent-edge: #2a9d8f;
  --color-positive: #23b76b;
  --color-on-positive: #04210f;
  --color-danger: #e45159;
  --color-on-danger: #1f0505;
  --color-danger-text: #f08a90;
  --color-warning: #e8ad45;
  --color-on-warning: #241b00;
  --color-gold: #d7aa45;
  --color-on-gold: #241b00;
  --color-silver: #c3cad6;
  --color-on-silver: #1a2130;
  --color-bronze: #c08552;
  --color-on-bronze: #2b1606;
  --color-captain: #f2b705;
  --color-role-keeper-fill: #1e7b45;
  --color-role-keeper-on: #ffffff;
  --color-role-defence-fill: #2e63cf;
  --color-role-defence-on: #ffffff;
  --color-role-midfield-fill: #e8861f;
  --color-role-midfield-on: #1a1200;
  --color-role-attack-fill: #d4333a;
  --color-role-attack-on: #ffffff;
  --color-role-utility-fill: #6e44c9;
  --color-role-utility-on: #ffffff;
  --color-status-not-played: #f3f7ef;
  --color-status-played: #e45159;
  --color-status-suspended: #e8ad45;
  --color-status-doubtful: #e8ad45;
  --color-status-injured: #e45159;
  --color-pitch-grass: #1c4d2b;
  --color-pitch-grass-alt: #225a32;
  --color-pitch-line: rgba(255, 255, 255, 0.55);
  --color-pitch-ink: #ffffff;
  --color-pitch-ink-bg: rgba(10, 13, 20, 0.88);
  --color-scoreboard-panel: #0a0d14;
  --color-scoreboard-panel-border: #22365a;
  --color-scoreboard-tile-top: #3a4458;
  --color-scoreboard-tile-bottom: #141a26;
  --color-scoreboard-digit: #ffffff;
  --color-scoreboard-seam: #000000;
  --color-scoreboard-led: #46d07a;
  --color-scoreboard-led-off: #0f2a1a;
  --color-band-fill: #1a2a20;
  --color-band-text: #f3f7ef;
  --color-band-line: #2e4636;
  --color-band-link: #2a9d8f;
  --color-info: #a0a9b1;
  --color-focus-ring: #2a9d8f;
  --color-scrim: rgba(3, 8, 5, 0.76);
  --space-none: 0px;
  --space-xxs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
  --space-xxxl: 48px;
  --space-huge: 64px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 12px;
  --radius-bar: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --border-hairline: 1px;
  --border-thick: 2px;
  --control-primary: 48px;
  --control-secondary: 40px;
  --control-input: 44px;
  --control-chip: 32px;
  --control-row: 28px;
  --control-segmented: 34px;
  --control-bar: 56px;
  --touch-target: 44px;
  --motion-fast: 120ms;
  --motion-normal: 200ms;
  --motion-slow: 320ms;
  --layout-max-content-width: 720px;
  --layout-gutter: 16px;
  --text-display-size: 32px;
  --text-display-line: 38px;
  --text-display-weight: 700;
  --text-display-tracking: -0.4px;
  --text-title-size: 24px;
  --text-title-line: 30px;
  --text-title-weight: 700;
  --text-title-tracking: -0.2px;
  --text-heading-size: 20px;
  --text-heading-line: 26px;
  --text-heading-weight: 600;
  --text-heading-tracking: 0px;
  --text-subheading-size: 17px;
  --text-subheading-line: 22px;
  --text-subheading-weight: 600;
  --text-subheading-tracking: 0px;
  --text-body-size: 16px;
  --text-body-line: 22px;
  --text-body-weight: 400;
  --text-body-tracking: 0px;
  --text-body-strong-size: 16px;
  --text-body-strong-line: 22px;
  --text-body-strong-weight: 600;
  --text-body-strong-tracking: 0px;
  --text-body-small-size: 14px;
  --text-body-small-line: 20px;
  --text-body-small-weight: 400;
  --text-body-small-tracking: 0px;
  --text-caption-size: 12px;
  --text-caption-line: 16px;
  --text-caption-weight: 500;
  --text-caption-tracking: 0px;
  --text-overline-size: 12px;
  --text-overline-line: 16px;
  --text-overline-weight: 600;
  --text-overline-tracking: 0.8px;
}
/* tokens:end */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/barlow-condensed-700.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-board: 'Barlow Condensed', 'Arial Narrow', 'Inter', sans-serif;
  --wrap: 1120px;
  --section-gap: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font);
  font-size: var(--text-body-size);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--color-accent-text);
  text-underline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.shots:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
h3 {
  font-size: var(--text-subheading-size);
  line-height: var(--text-subheading-line);
  font-weight: var(--text-subheading-weight);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--layout-gutter);
}
.overline {
  font-size: var(--text-overline-size);
  line-height: var(--text-overline-line);
  font-weight: var(--text-overline-weight);
  letter-spacing: var(--text-overline-tracking);
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: var(--space-md);
}
.skip {
  position: absolute;
  left: var(--space-lg);
  top: -100px;
  z-index: 10;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: var(--space-md);
}

/* ---------------------------------------------------------------- header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(7, 13, 9, 0.86);
  border-bottom: 1px solid rgba(47, 62, 72, 0.6);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
.top__row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  min-height: var(--touch-target);
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
}
.brand--small img {
  width: 32px;
  height: 32px;
}
/* Top menu. The drop-down and the phone panel are the default layout, so the
   header does not jump while home.js loads (it adds .menu and wires the
   buttons). With JavaScript off (@media (scripting: none), below) the menu is a
   plain list of links on a second row and the buttons are not shown. */
.top__row {
  flex-wrap: wrap;
}
.menu {
  margin-left: auto;
}
.menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu__list,
.menu__leagues {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-lg);
}
.menu a,
.menu__sub {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: var(--touch-target);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.menu .menu__toggle,
.menu .menu__sub {
  display: none;
}
.menu a:hover,
.menu__sub:hover,
.menu a[aria-current='page'] {
  color: var(--color-text);
}
.menu__state {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.menu__state--live {
  color: var(--color-positive);
}
button.menu__toggle,
button.menu__sub {
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-md);
}
.top__row .langs {
  margin-left: 0;
}

/* Phones and tablets: the "Menu" button opens the panel. */
@media (max-width: 899px) {
  .menu .menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    padding: 0 var(--space-md);
    color: var(--color-text);
    box-shadow: inset 0 0 0 1px var(--color-border);
  }
  .menu .menu__toggle[aria-expanded='true'] {
    background: var(--color-surface-raised);
    box-shadow: inset 0 0 0 1px var(--color-accent-edge);
  }
  .menu .menu__panel {
    display: none;
  }
  .menu.menu--open .menu__panel {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: var(--space-md) var(--layout-gutter) var(--space-xl);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  }
  .menu .menu__list,
  .menu .menu__leagues {
    display: block;
  }
  .menu .menu__list > li + li {
    border-top: 1px solid var(--color-border);
  }
  .menu .menu__list a {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    font-size: 17px;
    color: var(--color-text);
  }
  .menu .menu__leagues {
    padding: 0 0 var(--space-sm) var(--space-lg);
  }
  .menu .menu__leagues a {
    font-size: 16px;
    color: var(--color-text-muted);
  }
}
@media (max-width: 479px) {
  .menu__toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .top__row {
    gap: var(--space-sm);
  }
  .top__row .langs a {
    min-width: 32px;
    padding: 0 4px;
  }
}

/* Wide screens: the links in the bar, the competitions in a drop-down. */
@media (min-width: 900px) {
  .menu .menu__list {
    flex-wrap: nowrap;
    gap: var(--space-xl);
  }
  .menu .menu__heading {
    display: none;
  }
  .menu .menu__sub {
    display: inline-flex;
    padding: 0;
  }
  .menu .menu__sub .icon {
    width: 16px;
    height: 16px;
    transition: transform var(--motion-fast) ease;
  }
  .menu .menu__sub[aria-expanded='true'] {
    color: var(--color-text);
  }
  .menu .menu__sub[aria-expanded='true'] .icon {
    transform: rotate(180deg);
  }
  .menu .menu__group {
    position: relative;
  }
  .menu .menu__leagues {
    display: none;
  }
  .menu .menu__group--open .menu__leagues {
    display: block;
    position: absolute;
    top: calc(100% + 8px);
    left: -16px;
    min-width: 280px;
    padding: var(--space-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  }
  .menu .menu__leagues a {
    display: flex;
    justify-content: space-between;
    gap: var(--space-xl);
    width: 100%;
    padding: 0 var(--space-md);
    border-radius: var(--radius-md);
    color: var(--color-text);
  }
  .menu .menu__leagues a:hover {
    background: var(--color-surface-raised);
  }
  .menu .menu__all {
    margin-top: var(--space-xs);
    padding-top: var(--space-xs);
    border-top: 1px solid var(--color-border);
  }
  .menu .menu__all a {
    color: var(--color-accent-text);
  }
}
.langs {
  margin-left: auto;
}
.langs ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.langs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: var(--touch-target);
  padding: 0 6px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.langs a:hover {
  color: var(--color-text);
}
.langs a[aria-current='page'] {
  color: var(--color-text);
  background: var(--color-surface-raised);
  box-shadow: inset 0 0 0 1px var(--color-accent-edge);
}
.langs abbr {
  text-decoration: none;
}

/* JavaScript off: the menu is a plain list of every link on a second row. */
@media (scripting: none) {
  .menu {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    padding-bottom: var(--space-sm);
  }
  .menu ~ .langs {
    margin-left: auto;
  }
  .menu .menu__toggle,
  .menu .menu__sub {
    display: none !important;
  }
  .menu .menu__panel,
  .menu .menu__heading {
    display: block !important;
  }
  .menu .menu__panel {
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .menu .menu__list,
  .menu .menu__leagues {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0 var(--space-lg);
    position: static;
    min-width: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .menu .menu__list > li + li {
    border-top: 0;
  }
  .menu .menu__list a {
    display: inline-flex;
    width: auto;
    min-height: var(--touch-target);
    font-size: 15px;
  }
  .menu .menu__heading {
    display: inline-flex !important;
  }
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 56px;
  background:
    radial-gradient(60% 50% at 78% 40%, rgba(42, 157, 143, 0.22), transparent 70%),
    radial-gradient(50% 40% at 10% 0%, rgba(70, 208, 122, 0.08), transparent 70%),
    linear-gradient(180deg, var(--color-background-glow), var(--color-background));
}
/* Pitch lines, decorative: halfway line and centre circle. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 78% 46%,
      transparent 0 179px,
      rgba(243, 247, 239, 0.05) 180px 181px,
      transparent 182px
    ),
    linear-gradient(
      90deg,
      transparent calc(78% - 1px),
      rgba(243, 247, 239, 0.05) calc(78% - 1px) 78%,
      transparent 78%
    );
  pointer-events: none;
}
/* Not upper case: product names such as iPhone keep their spelling. */
.hero .overline {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 15px;
}
.hero__grid {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 7.4vw, 64px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.lead {
  margin-top: var(--space-xl);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 34em;
}
.hero__cta {
  margin-top: var(--space-xxl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.hero__note {
  margin-top: var(--space-lg);
  font-size: var(--text-body-small-size);
  color: var(--color-text-muted);
}
.hero__visual {
  position: relative;
  justify-self: center;
  width: min(300px, 78vw);
}
.float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.float b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  background: var(--color-captain);
  color: var(--color-on-gold);
  font-size: 13px;
}
.float--captain {
  left: -28px;
  top: 34%;
}
.float--budget {
  right: -24px;
  bottom: 18%;
  color: var(--color-positive);
}

/* Phone frame: pure CSS, the screenshot inside. */
.phone {
  position: relative;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2b3631, #0b100d 40%, #1b2420);
  box-shadow:
    0 0 0 1px rgba(243, 247, 239, 0.08),
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 0 90px rgba(42, 157, 143, 0.12);
}
.phone::before {
  /* Dynamic Island, over the status bar strip above the screenshot */
  content: '';
  position: absolute;
  z-index: 1;
  top: 19px;
  left: 50%;
  width: 28%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.phone__screen {
  overflow: hidden;
  border-radius: 37px;
  padding-top: 34px;
  background: var(--color-background);
}
.phone__screen img {
  width: 100%;
  height: auto;
}

/* App Store button: "coming soon" (not a link) or the link. */
.store {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 54px;
  padding: 0 var(--space-xl);
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--motion-fast) ease;
}
.store:hover {
  transform: translateY(-1px);
}
.store--soon {
  background: var(--color-surface-raised);
  color: var(--color-text);
  box-shadow: inset 0 0 0 1px var(--color-border-strong);
  cursor: default;
}
.store--soon:hover {
  transform: none;
}
.store--soon .icon {
  color: var(--color-accent-text);
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.cta__box .stores {
  justify-content: center;
}
.store--badge {
  padding: 0;
  background: none;
  min-height: 0;
}
.store--badge img {
  height: 54px;
  width: auto;
}
.icon {
  width: 22px;
  height: 22px;
  flex: none;
}

/* ---------------------------------------------------------------- next round */
.round {
  padding: 8px 0 0;
}
.board {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--color-scoreboard-panel);
  border: 1px solid var(--color-scoreboard-panel-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.board .overline {
  color: var(--color-scoreboard-led);
  margin-bottom: var(--space-sm);
}
.board__date {
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.3;
  font-weight: 700;
}
.board__date time::first-letter {
  text-transform: uppercase;
}
.board__lead {
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
  font-size: var(--text-body-small-size);
}
.clock__tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.tile__digits {
  position: relative;
  width: 100%;
  padding: 6px 0 4px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    180deg,
    var(--color-scoreboard-tile-top) 0 50%,
    var(--color-scoreboard-tile-bottom) 50% 100%
  );
  color: var(--color-scoreboard-digit);
  font-family: var(--font-board);
  font-weight: 700;
  font-size: clamp(40px, 9vw, 60px);
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.tile__digits::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--color-scoreboard-seam);
}
.tile__label {
  font-size: var(--text-caption-size);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  justify-self: start;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-pill);
  background: var(--color-scoreboard-led-off);
  color: var(--color-scoreboard-led);
  font-family: var(--font-board);
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(70, 208, 122, 0.2);
}
.live .dot,
.chip--live .dot {
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

/* ---------------------------------------------------------------- sections */
.section {
  padding: var(--section-gap) 0 0;
}
.section__lead {
  margin-top: var(--space-md);
  color: var(--color-text-muted);
  max-width: 40em;
}
.steps,
.features,
.fair,
.leagues {
  list-style: none;
  margin: var(--space-xxl) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}
.step,
.feature,
.fair__item {
  position: relative;
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--color-surface-highlight), var(--color-surface));
  border: 1px solid var(--color-border);
  box-shadow: var(--color-card-shadow);
}
.step p,
.feature p,
.fair__item p {
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.55;
}
.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-board);
  font-size: 28px;
  font-weight: 700;
}
.note {
  margin-top: var(--space-xl);
  padding: var(--space-lg) var(--space-xl);
  border-left: 3px solid var(--color-positive);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--color-band-fill);
  color: var(--color-band-text);
  font-size: 15px;
  max-width: 62em;
}
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  color: var(--color-accent-text);
}

/* Screenshots */
.shots {
  margin-top: var(--space-xxxl);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(240px, 66vw);
  gap: var(--space-xl);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px var(--space-lg);
  margin-left: -4px;
  margin-right: -4px;
}
.shot {
  margin: 0;
  scroll-snap-align: center;
}
.shot .phone {
  padding: 7px;
  border-radius: 34px;
}
.shot .phone::before {
  top: 14px;
  height: 15px;
}
.shot .phone__screen {
  border-radius: 28px;
  padding-top: 24px;
}
.shot figcaption {
  margin-top: var(--space-md);
  text-align: center;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Leagues */
.leagues {
  gap: 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  overflow: hidden;
  max-width: 760px;
}
.league {
  display: flex;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--color-border);
}
.league:first-child {
  border-top: 0;
}
.league__label {
  display: flex;
  flex-direction: column;
}
.league__name {
  font-weight: 700;
  font-size: 18px;
}
.league__season {
  color: var(--color-text-muted);
  font-size: var(--text-body-small-size);
}
.chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 600;
}
.chip--live {
  color: var(--color-positive);
  border-color: rgba(35, 183, 107, 0.45);
  background: rgba(35, 183, 107, 0.1);
}
.chip--live .dot {
  width: 8px;
  height: 8px;
  box-shadow: none;
}
.disclaimer {
  margin-top: var(--space-lg);
  max-width: 760px;
  color: var(--color-text-muted);
  font-size: var(--text-body-small-size);
  line-height: 1.55;
}

/* FAQ */
.faq {
  margin-top: var(--space-xxl);
  border-top: 1px solid var(--color-border);
}
.qa {
  border-bottom: 1px solid var(--color-border);
}
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: 60px;
  padding: var(--space-lg) 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 17px;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: '+';
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  color: var(--color-accent-text);
  font-size: 20px;
  font-weight: 400;
  transition: transform var(--motion-normal) ease;
}
.qa[open] summary::after {
  transform: rotate(45deg);
}
.qa p {
  padding: 0 48px var(--space-xl) 0;
  color: var(--color-text-muted);
}

/* Closing call to action */
.cta {
  padding: var(--section-gap) 0;
}
.cta__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  padding-top: var(--space-xxxl);
  padding-bottom: var(--space-xxxl);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(42, 157, 143, 0.25), transparent 70%), var(--color-surface);
  border: 1px solid var(--color-border);
  max-width: calc(var(--wrap) - 2 * var(--layout-gutter));
}
.cta__box img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
}
.cta__box h2 {
  max-width: none;
}
.cta__box p {
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------------- footer */
.foot {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-sunken);
  padding: var(--space-xxxl) 0 var(--space-xxl);
  font-size: 15px;
}
.foot__grid {
  display: grid;
  gap: var(--space-xl);
}
.foot__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.foot__links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: var(--touch-target);
  color: var(--color-text);
}
.foot__links .icon {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
}
.foot__muted {
  color: var(--color-text-muted);
  font-size: var(--text-body-small-size);
}
.foot__legal {
  margin-top: var(--space-xxl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: var(--space-xs);
}
.langs--foot {
  margin-left: 0;
}

/* Competition pages (Block 57): index, one page per competition. */
a.league__name {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 4px;
}
a.league__name:hover {
  text-decoration-color: currentColor;
}
.leagues__all,
.more {
  margin-top: var(--space-lg);
  font-weight: 600;
}
.hero--page {
  padding: 24px 0 48px;
}
.hero--page h1 {
  font-size: clamp(32px, 5.4vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.crumbs ol {
  list-style: none;
  margin: 0 0 var(--space-xl);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: var(--text-body-small-size);
  color: var(--color-text-muted);
}
.crumbs li + li::before {
  content: '/';
  margin-right: var(--space-sm);
  color: var(--color-border);
}
.disclaimer--top {
  margin-top: var(--space-md);
}
.status {
  margin-top: var(--space-xl);
  display: grid;
  justify-items: start;
  gap: var(--space-sm);
  max-width: 40em;
}
.status .chip {
  margin-left: 0;
}
.status__text {
  color: var(--color-text);
}
.facts {
  margin: var(--space-xl) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
  max-width: 900px;
}
.fact {
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.fact dt {
  font-size: var(--text-body-small-size);
  color: var(--color-text-muted);
}
.fact dd {
  margin: var(--space-xs) 0 0;
  font-weight: 700;
  font-size: 18px;
}
.section--tight {
  padding-top: 0;
}
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}
.card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--space-sm);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.card .chip {
  margin-left: 0;
}
.card__title {
  font-size: 22px;
  max-width: none;
}
.card__title a {
  color: var(--color-text);
}
.card__facts,
.card__text {
  color: var(--color-text-muted);
  font-size: var(--text-body-small-size);
  line-height: 1.55;
}

/* Heading on the left, content on the right (leagues, FAQ) on wide screens. */
.split {
  display: grid;
  gap: var(--space-xxl);
}
.split .leagues,
.split .faq {
  margin-top: 0;
}

/* Phones: icon or number beside the title, to keep the cards short. */
@media (max-width: 639px) {
  .step,
  .feature,
  .fair__item {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: var(--space-lg);
    padding: var(--space-lg) var(--space-lg) var(--space-xl);
  }
  .step__n,
  .feature__icon {
    grid-row: span 2;
    margin-bottom: 0;
  }
  .step h3,
  .feature h3,
  .fair__item h3 {
    align-self: center;
  }
}

/* ---------------------------------------------------------------- wider screens */
@media (min-width: 640px) {
  .steps,
  .features,
  .fair {
    grid-template-columns: repeat(2, 1fr);
  }
  .board {
    padding: var(--space-xxl);
  }
}
@media (min-width: 900px) {
  .top__row .langs {
    margin-left: var(--space-md);
  }
  .langs--foot {
    margin-left: 0;
  }
  .hero {
    padding: 72px 0 96px;
  }
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
  }
  .hero__visual {
    width: 320px;
  }
  .board {
    grid-template-columns: 1fr minmax(360px, 440px);
    gap: var(--space-xxl);
  }
  .live {
    justify-self: end;
  }
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .features {
    grid-template-columns: repeat(6, 1fr);
  }
  .feature {
    grid-column: span 2;
  }
  .feature:nth-child(4),
  .feature:nth-child(5) {
    grid-column: span 3;
  }
  .fair {
    grid-template-columns: repeat(3, 1fr);
  }
  .shots {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 260px));
    justify-content: center;
    gap: var(--space-xxxl);
    overflow: visible;
  }
  .foot__grid {
    grid-template-columns: 1.4fr 1fr auto;
    align-items: start;
  }
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-huge);
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
