/* Game Plan — the app's own light UI, rebuilt in CSS.
   Tokens mirror the iOS app via the Android port's design system
   (GamePlanColors, GamePlanRadius, GamePlanSpacing, GamePlanTypography,
   TeamKitPalette, LeagueColorPalette). The only action colour is the pitch
   green brand; orange is reserved for "live". */

:root {
  color-scheme: light;
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --ink: #000000;
  --ink-2: rgba(60, 60, 67, 0.6);          /* mockups only */
  --ink-2-strong: rgba(60, 60, 67, 0.82);  /* page copy, >= 4.5:1 */
  --tactical: #171717;
  --line: rgba(23, 23, 23, 0.16);
  --brand: #086B57;
  --brand-hover: #06594A;
  --brand-fill: rgba(8, 107, 87, 0.14);
  --on-brand: #FFFFFF;
  --live: #F05A28;
  --live-fill: rgba(240, 90, 40, 0.14);
  --live-dark: #FF7950;
  --brand-dark: #34D399;
  --gold: #F5C542;
  --gold-fill: rgba(245, 197, 66, 0.2);
  --silver: #C0C7CE;
  --danger: #B3261E;
  --card-yellow: #FFCC00;
  --card-red: #FF3B30;
  --cl: #3465ED;
  --el: #8B5CF6;
  --conf: #0284C7;
  --neutral-fill: rgba(60, 60, 67, 0.08);
  --capsule-line: #2C2C2E;
  --lg-bl: #C41230;
  --lg-bl2: #475569;
  --lg-pl: #7E22CE;
  --lg-ll: #A85A00;
  --lg-sa: #0E63C9;
  --r-card: 10px;
  --r-control: 8px;
  --s-1: 8px;
  --s-2: 12px;
  --s-3: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 24px;
  --shell: min(1120px, calc(100% - 2 * var(--gutter)));
}

/* ---------- base ---------- */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(242, 242, 247, 0.86);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.nav-shell,
.hero-shell,
.section-shell,
.footer-shell,
.footer-note,
.legal-shell {
  width: var(--shell);
  margin: 0 auto;
}

.nav-shell {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; flex: 0 0 auto; }
.brand span { line-height: 1.15; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links > a { color: var(--ink-2-strong); text-decoration: none; }
.nav-links > a:hover,
.nav-links > a[aria-current="page"] { color: var(--ink); }

.nav-links > .nav-cta,
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--r-control);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
}

.nav-links > .nav-cta:hover { background: var(--brand-hover); color: var(--on-brand); }

/* segmented control, as in the app */
.lang-switch {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.12);
}

.lang-switch a {
  min-width: 34px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--ink-2-strong);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.lang-switch a:hover { color: var(--ink); }

.lang-switch a[aria-current] {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

/* ---------- type + buttons ---------- */

.section-kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font: 600 17px/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
}

.button svg { width: 20px; height: 20px; flex: 0 0 auto; }

.button-primary { background: var(--brand); color: var(--on-brand); }
.button-primary:hover { background: var(--brand-hover); }

.button-secondary {
  background: var(--neutral-fill);
  border-color: var(--line);
  color: var(--ink);
}

.button-secondary:hover { background: rgba(60, 60, 67, 0.12); }

.button:focus-visible,
a:focus-visible { outline: 3px solid rgba(8, 107, 87, 0.45); outline-offset: 2px; }

/* Black App Store badge in the shape of Apple's, built in CSS so nothing
   is loaded from a third party. */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 20px 0 16px;
  border: 1px solid #A6A6A6;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
}

.appstore-badge:hover { border-color: #000; }

.appstore-badge-text {
  display: flex;
  flex-direction: column;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

.appstore-badge-text small { margin-bottom: 3px; font-size: 12px; font-weight: 500; letter-spacing: 0; }

/* ---------- home: hero + sections ---------- */

/* No bottom padding: the peeking phone is cut by the hero's bottom edge. */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--brand-fill) 100%);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 64px;
}

.hero h1 {
  margin: 0;
  font-size: 56px;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.hero-copy {
  max-width: 520px;
  margin: 18px 0 30px;
  color: var(--ink-2-strong);
  font-size: 20px;
  line-height: 1.4;
}

.hero-device { display: flex; justify-content: center; }
.hero-device:has(.phone--peek) { align-self: end; }

.usecase { padding: 88px 0; border-top: 1px solid var(--line); }
.usecase--white { background: var(--card); }

.usecase-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 56px;
}

.usecase--flip .usecase-shell { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.usecase--flip .usecase-copy { order: 2; }
.usecase-media { display: flex; justify-content: center; min-width: 0; }

.usecase h2,
.download h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.usecase-sub {
  margin: 14px 0 0;
  color: var(--ink-2-strong);
  font-size: 19px;
  line-height: 1.4;
}

.usecase--stacked .usecase-shell { grid-template-columns: minmax(0, 1fr); gap: 40px; }
.usecase--stacked .usecase-copy { max-width: 640px; }

.panel-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: var(--s-3);
}

.panel-row:focus-visible { outline: 3px solid rgba(8, 107, 87, 0.45); outline-offset: -3px; }

.download { padding: 72px 0; border-top: 1px solid var(--line); background: var(--card); }

.download .section-shell {
  display: flex;
  align-items: center;
  gap: 22px;
}

.download img { width: 64px; height: 64px; border-radius: 14px; flex: 0 0 auto; }
.download h2 { font-size: 32px; }
.download .appstore-badge { margin-left: auto; flex: 0 0 auto; }

/* ---------- footer ---------- */

.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2-strong);
  font-size: 15px;
}

.footer-shell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand { color: var(--ink); }
.footer-shell p { max-width: 440px; margin: 6px 0 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-weight: 500;
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

.footer-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
}

.footer-note a { color: var(--brand); font-weight: 600; }

/* ---------- legal + contact ---------- */

.legal-main { padding: 48px 0 88px; }
.legal-shell { max-width: 760px; }

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--ink-2-strong);
  font-size: 15px;
}

.breadcrumb a { color: var(--brand); text-decoration: none; }

.legal-heading { margin-bottom: 28px; }

.legal-heading h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.legal-heading p { margin: 10px 0 0; color: var(--ink-2-strong); font-size: 17px; }

.legal-content,
.contact-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
}

.legal-content section + section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.legal-content h2 { margin: 0 0 10px; font-size: 22px; font-weight: 700; line-height: 1.25; }
.legal-content h3 { margin: 20px 0 6px; color: var(--brand); font-size: 17px; font-weight: 600; }
.legal-content ul { margin: 0 0 14px; padding-left: 22px; }
.legal-content li { margin-bottom: 6px; }
.legal-content p { margin: 0 0 12px; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content a { color: var(--brand); font-weight: 600; }

.legal-note {
  margin-top: 26px !important;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-2-strong) !important;
  font-size: 14px;
}

.contact-card { display: flex; align-items: center; gap: 20px; }
.contact-card img { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 14px; }
.contact-card h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; line-height: 1.2; }
.contact-card p { margin: 0 0 12px; color: var(--ink-2-strong); }

.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-control);
  background: var(--brand-fill);
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.contact-email:hover { background: rgba(8, 107, 87, 0.2); }

/* ---------- promo page (/fuer-lau, served by promo/promo.py) ---------- */

/* One centred column at every width: the page is opened from a QR code. */
.promo-shell { width: min(640px, calc(100% - 2 * var(--gutter))); margin: 0 auto; }

.promo-hero { padding: 48px 0 40px; }

.promo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: var(--brand-fill);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.promo-hero h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.promo-sub { margin: 14px 0 0; color: var(--ink-2-strong); font-size: 20px; line-height: 1.4; }

.promo-steps {
  display: grid;
  gap: var(--s-2);
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.promo-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
}

.promo-step-number {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 15px;
  font-weight: 800;
}

.promo-step-body { min-width: 0; flex: 1; }
.promo-step-body h2 { margin: 2px 0 4px; font-size: 20px; font-weight: 700; line-height: 1.25; }
.promo-step-body p { margin: 0 0 14px; color: var(--ink-2-strong); }
.promo-step-body form { margin: 0; }

.promo-claim { font-family: inherit; }
.promo-step-body .promo-note { margin: 12px 0 0; font-size: 14px; }
.promo-note a { color: var(--brand); font-weight: 600; }

.promo-code {
  display: inline-block;
  margin: 0 0 14px !important;
  padding: 10px 14px;
  border: 1px dashed rgba(23, 23, 23, 0.35);
  border-radius: var(--r-control);
  background: var(--bg);
  color: var(--ink) !important;
  font: 800 20px/1.2 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.08em;
  word-break: break-all;
  user-select: all;
}

.promo-step-body .promo-over {
  margin: 0 0 12px;
  color: var(--danger);
  font-size: 19px;
  font-weight: 700;
}

.promo-proof {
  padding: 48px 0;
  border-block: 1px solid var(--line);
  background: var(--card);
  text-align: center;
}

.promo-proof h2,
.promo-story h2 { margin: 0 0 18px; font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.promo-proof .ui-stage { margin: 0 auto; }

.promo-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.promo-pills .ui-pill { padding: 7px 12px; background: var(--brand-fill); color: var(--brand); font-size: 14px; }

.promo-story { padding: 40px 0 56px; }

.promo-story-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  color: var(--ink-2-strong);
  font-size: 15px;
}

.promo-story h2 { margin-bottom: 8px; color: var(--ink); font-size: 22px; }
.promo-story p { margin: 0 0 12px; }
.promo-story a { color: var(--brand); font-weight: 600; }

/* =====================================================================
   App mockups (.ui-*). Sizes are the app's own points; the phone scales
   its 393pt-wide screen down with zoom. Inside a mockup there are only
   spans and divs; the root carries role="img" and the label.
   ===================================================================== */

.ui-icons { position: absolute; width: 0; height: 0; overflow: hidden; }

[class^="ui-"],
[class*=" ui-"] { font-variant-numeric: tabular-nums; }

.ui-ico { width: 22px; height: 22px; flex: 0 0 auto; }
.ui-ico,
.button svg,
.appstore-badge svg { fill: currentColor; }
.ui-ico--inline { width: 1.05em; height: 1.05em; vertical-align: -0.16em; }

/* club capsule */
.ui-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 6.5px 8px;
  border-radius: 999px;
  background: var(--f, #5A6470);
  color: var(--o, #fff);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.2);
  font: 900 15px/1 var(--font-rounded);
  letter-spacing: 0.01em;
}

.ui-capsule--sm { min-width: 40px; padding: 4.5px 5px; font-size: 11px; }
.ui-capsule--lg { min-width: 76px; padding: 8px 10px; font-size: 20px; }

.t-fcb { --f: #ED0038; }
.t-bvb { --f: #FFD900; --o: #000; }
.t-b04 { --f: #E32219; }
.t-rbl { --f: #DD0741; }
.t-sge { --f: #E30615; }
.t-scf { --f: #E40521; }
.t-vfb { --f: #D40723; }
.t-tsg { --f: #1961B5; }
.t-svw { --f: #008149; }
.t-bmg { --f: #000000; }
.t-m05 { --f: #AE0F0A; }
.t-fcu { --f: #E30613; }
.t-koe { --f: #E20613; }
.t-s04 { --f: #004D9D; }
.t-elv { --f: #2E2E2E; }
.t-scp { --f: #17255F; }
.t-sgd { --f: #FDC300; --o: #000; }
.t-svd { --f: #004E9E; }
.t-ars { --f: #EF0107; }
.t-cov { --f: #059DD9; --o: #000; }
.t-hul { --f: #F18A01; --o: #000; }
.t-mun { --f: #DA291C; }
.t-ips { --f: #0044A9; }
.t-sun { --f: #EB172B; }
.t-nfo { --f: #DD0000; }
.t-bar { --f: #A50044; }
.t-sev { --f: #D10000; }

/* status pill + live minute */
.ui-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--neutral-fill);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.ui-pill--live { background: var(--live-fill); color: var(--live); }

.ui-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.ui-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--live);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .ui-dot { animation: ui-pulse 1.6s ease-in-out infinite; }
  @keyframes ui-pulse { 50% { opacity: 0.35; } }
}

/* follow button */
.ui-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--neutral-fill);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}

.ui-follow .ui-ico { width: 26px; height: 26px; }
.ui-follow--on { background: var(--brand); box-shadow: none; color: var(--on-brand); }
.ui-follow--inherited { background: var(--brand); box-shadow: none; color: var(--gold); }

/* compact match row */
.ui-row {
  position: relative;
  display: flex;
  align-items: center;
  padding: 7px 10px 7px 12px;
  border: 1px solid rgba(8, 107, 87, 0.4);
  border-radius: var(--r-card);
  background: var(--card);
  overflow: hidden;
}

.ui-row + .ui-row { margin-top: 10px; }
.ui-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; }

.ui-row--followed { background: linear-gradient(var(--gold-fill), var(--gold-fill)), var(--card); }
.ui-row--followed::before { background: var(--brand); }
.ui-row--live { border-color: rgba(240, 90, 40, 0.55); }
.ui-row--live::before { background: var(--live); }

.ui-vs { width: 48px; flex: 0 0 auto; color: var(--ink-2); font-size: 13px; text-align: center; }
.ui-vs--score { color: var(--ink); font-size: 17px; font-weight: 900; }

.ui-time {
  margin-left: auto;
  padding: 0 10px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
}

.ui-row .ui-live { margin-left: auto; padding: 0 10px; }

/* day header + matchday bar */
.ui-day { padding: 14px 2px 10px; font-size: 17px; font-weight: 700; }

.ui-day::after {
  content: "";
  display: block;
  width: 64px;
  height: 2.5px;
  margin-top: 9px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand) 0 36%, var(--tactical) 36% 66%, var(--silver) 66%);
}

.ui-matchday-bar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 6px 0 12px;
  color: var(--brand);
}

.ui-matchday-bar .ui-ico { width: 22px; height: 22px; }
.ui-matchday-title { display: flex; flex-direction: column; align-items: center; color: var(--ink); font-size: 17px; font-weight: 600; }
.ui-matchday-title span { color: var(--ink-2); font-size: 13px; font-weight: 400; }
.ui-now { justify-self: end; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.ui-chev-r { transform: scaleX(-1); }

/* detailed match card */
.ui-card {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  overflow: hidden;
}

.ui-card + .ui-card { margin-top: 12px; }
.ui-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; }
.ui-card--followed::before { background: var(--brand); }
.ui-card--live { border-color: rgba(240, 90, 40, 0.55); }
.ui-card--live::before { background: var(--live); }

.ui-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(60, 60, 67, 0.14);
}

.ui-card-date { flex: 1; color: var(--ink-2); font-size: 15px; text-align: center; white-space: nowrap; }
.ui-card-time { font-size: 20px; font-weight: 700; }
.ui-card-time.ui-live { font-size: 20px; }

.ui-card-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 22px 8px;
}

.ui-card-teams > :first-child { justify-self: start; }
.ui-card-teams > :last-child { justify-self: end; }

.ui-score { font-size: 34px; font-weight: 900; letter-spacing: -0.5px; line-height: 1; }

.ui-card-foot { display: flex; align-items: center; justify-content: space-between; }
.ui-card-foot > span:first-child { color: var(--ink-2); font-size: 15px; font-weight: 500; }

/* expanded card (#live), as the app's DetailedMatchCard: club names under
   the capsules, scorer lines, league footer */
.ui-card--detailed .ui-card-teams { align-items: start; padding: 16px 8px 12px; }
.ui-card--detailed .ui-score { padding-top: 1px; }
.ui-team { display: grid; justify-items: center; gap: 6px; }
.ui-team-name { font-size: 15px; font-weight: 600; }

.ui-events {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  padding: 10px 6px;
  border-top: 1px solid rgba(60, 60, 67, 0.14);
  border-bottom: 1px solid rgba(60, 60, 67, 0.14);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.ui-ev { display: inline-flex; align-items: center; gap: 6px; }
.ui-ev--home { justify-self: start; }
.ui-ev--away { justify-self: end; }
.ui-ev-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--f); }

/* league name in its colour with a nub before it (LeagueNameText) */
.ui-league,
.ui-card-foot > span.ui-league {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lg);
  font-size: 15px;
  font-weight: 600;
}

.ui-league::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--lg); }
.ui-league--bl { --lg: var(--lg-bl); }
.ui-league--bl2 { --lg: var(--lg-bl2); }
.ui-league--pl { --lg: var(--lg-pl); }
.ui-league--ll { --lg: var(--lg-ll); }
.ui-league--sa { --lg: var(--lg-sa); }

.ui-livelist { display: grid; gap: 12px; width: 100%; max-width: 460px; }
.ui-livelist .ui-card + .ui-card { margin-top: 0; }

/* segmented control */
.ui-seg {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.12);
}

.ui-seg > span {
  flex: 1;
  padding: 6px 4px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.ui-seg > .is-on {
  background: var(--card);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

/* phone frame */
.phone {
  position: relative;
  width: 300px;
  height: 650px;
  flex: 0 0 auto;
  border: 8px solid #0B0B0C;
  border-radius: 44px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* hero variant: the bottom of the device is cut off by the section edge */
.phone--peek {
  height: 520px;
  margin-top: 28px;
  border-bottom: 0;
  border-radius: 44px 44px 0 0;
}

.phone-screen {
  position: relative;
  width: 393px;
  height: 877px;
  padding: 0 16px;
  zoom: 0.7226;
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 124px;
  height: 36px;
  margin-left: -62px;
  border-radius: 20px;
  background: #000;
  z-index: 3;
}

.phone-screen::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(rgba(242, 242, 247, 0), var(--bg) 70%);
  z-index: 1;
}

.phone--peek .phone-screen::after { content: none; }

.ui-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 4px 18px 0 22px;
  font-size: 17px;
  font-weight: 600;
}

.ui-status .ui-ico { width: 68px; height: 14px; }

.ui-large-title { margin: 6px 0 12px; font-size: 34px; font-weight: 900; letter-spacing: -0.4px; }

/* floating tab bar */
.ui-tabbar {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  display: flex;
  width: 280px;
  margin-left: -140px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}

.ui-tabbar > span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.ui-tabbar .ui-ico { width: 26px; height: 26px; }
.ui-tabbar > .is-on { background: var(--brand-fill); color: var(--brand); }

/* standings */
.ui-standings {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  overflow: hidden;
}

.ui-standings-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 14px;
  background: var(--brand-fill);
  font-size: 20px;
  font-weight: 700;
}

.ui-standings-head span { color: var(--brand); font-size: 13px; font-weight: 600; }

.ui-standing {
  position: relative;
  display: grid;
  grid-template-columns: 20px auto minmax(0, 1fr) auto auto;
  grid-template-areas: "rank cap name pts unit" ". stats stats stats stats";
  align-items: center;
  column-gap: 8px;
  row-gap: 4px;
  padding: 10px 12px 9px 14px;
}

.ui-standing + .ui-standing { box-shadow: inset 48px 1px 0 var(--card), inset 0 1px 0 rgba(60, 60, 67, 0.14); }
.ui-standing::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--zone, transparent); }
.ui-standing--cl { --zone: var(--cl); }
.ui-standing--el { --zone: var(--el); }

.ui-rank { grid-area: rank; font-size: 18px; font-weight: 800; }
.ui-standing .ui-capsule { grid-area: cap; }
.ui-club { grid-area: name; overflow: hidden; font-size: 16px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.ui-pts { grid-area: pts; font-size: 20px; font-weight: 900; }
.ui-unit { grid-area: unit; color: var(--ink-2); font-size: 13px; }

.ui-stats {
  grid-area: stats;
  display: flex;
  gap: 10px;
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.ui-k { color: rgba(60, 60, 67, 0.35); }

/* lineup pitch */
.ui-formation {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--ink-2);
  font-size: 15px;
}

.ui-formation .ui-ico { width: 18px; height: 18px; }

.ui-pitch {
  --kit: #F0C860;
  aspect-ratio: 3 / 4;
  padding: 10px;
  border-radius: 14px;
  background: var(--kit);
}

.ui-field {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  height: 100%;
  border: 2px solid rgba(62, 44, 6, 0.7);
  border-radius: 12px;
}

.ui-line { display: flex; align-items: center; justify-content: space-evenly; }

.ui-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 25%;
  min-width: 0;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.ui-disc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  color: #000;
  font-size: 11px;
  text-shadow: none;
}

/* timeline */
.ui-event {
  display: grid;
  grid-template-columns: 34px 28px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  padding: 12px 0;
}

.ui-event + .ui-event { border-top: 1px solid rgba(60, 60, 67, 0.14); }
.ui-min { padding-top: 2px; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.ui-event .ui-ico { width: 20px; height: 20px; color: var(--ink-2); }
.ui-event .ui-ico--goal { color: var(--brand); }
.ui-event-text { display: flex; flex-direction: column; font-size: 16px; font-weight: 600; line-height: 1.3; }
.ui-event-text span { color: var(--ink-2); font-size: 14px; font-weight: 400; }
.ui-booking { width: 15px; height: 12px; margin: 4px 0 0 2px; border-radius: 2px; background: var(--card-yellow); }
.ui-booking--red { background: var(--card-red); }

/* panels (#mehr): each is a small app screen */
.ui-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg);
}

.ui-panel-title { padding: 2px 2px 0; font-size: 22px; font-weight: 800; }
.ui-panel .ui-card { padding: 12px 14px; }

.ui-match-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
}

.ui-match-mini .ui-vs--score { width: auto; padding: 0 2px; font-size: 20px; }
.ui-match-mini .ui-pill { margin-left: auto; }

/* lock screen (#lockscreen, promo page): pitch stage, Dynamic Island,
   Live Activity */
.ui-stage {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 420px;
  justify-items: center;
  gap: 18px;
  padding: 18px 16px 30px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 58%, transparent 58px, rgba(255, 255, 255, 0.16) 59px 61px, transparent 62px),
    linear-gradient(transparent calc(58% - 1px), rgba(255, 255, 255, 0.16) calc(58% - 1px) calc(58% + 1px), transparent calc(58% + 1px)),
    linear-gradient(160deg, #2F7D3A, #1C5626);
  overflow: hidden;
}

.ui-island {
  display: grid;
  gap: 6px;
  width: 100%;
  max-width: 340px;
  padding: 14px 18px 13px;
  border-radius: 34px;
  background: #000;
  color: #fff;
}

.ui-island-row { display: flex; align-items: center; justify-content: space-between; }
.ui-island-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ui-island-mid .ui-score { font-size: 30px; }
.ui-island .ui-live,
.ui-activity .ui-live { color: var(--live-dark); font-size: 12px; }

.ui-island-event { font-size: 15px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-island-event .ui-em { color: var(--live-dark); }

.ui-activity {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 372px;
  padding: 12px 14px 14px;
  border-radius: 22px;
  background: rgba(10, 16, 10, 0.92);
  color: #fff;
}

.ui-activity-top { display: flex; align-items: center; justify-content: space-between; }
.ui-activity-app { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-dark); font-size: 13px; font-weight: 600; }
.ui-activity-app .ui-ico { width: 16px; height: 16px; }
.ui-activity-score { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.ui-activity-score .ui-score { color: #fff; font-size: 32px; font-weight: 800; }

.ui-goal-chip {
  overflow: hidden;
  padding: 7px 12px;
  border-radius: 10px;
  background: #E20613;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .nav-links { gap: 14px; }
}

@media (max-width: 900px) {
  .hero { padding: 40px 0 0; }
  .hero-shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero h1 { font-size: 44px; }
  .phone.phone--peek { height: 420px; zoom: 1; }
  .ui-livelist { max-width: 420px; }
  .usecase { padding: 64px 0; }
  .usecase-shell { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .usecase--flip .usecase-shell { grid-template-columns: minmax(0, 1fr); }
  .usecase--flip .usecase-copy { order: 0; }
  .usecase h2 { font-size: 34px; }
  /* swipe strip that bleeds to the viewport edges, so the next panel peeks in */
  .panel-row {
    display: flex;
    align-items: stretch;
    gap: 14px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .panel-row::-webkit-scrollbar { display: none; }
  .panel-row > * { flex: 0 0 min(84vw, 340px); scroll-snap-align: center; }
  .panel-row .ui-panel { align-content: start; }
  .phone { zoom: 0.8667; }
  .nav-links > a:not(.nav-cta) { display: none; }
}

@media (max-width: 620px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav-shell { gap: 10px; min-height: 56px; }
  .nav-links { gap: 8px; }
  .brand { gap: 8px; font-size: 16px; }
  .brand span { max-width: 9ch; }
  .nav-links > .nav-cta { min-height: 32px; padding: 0 10px; font-size: 14px; white-space: nowrap; }
  .lang-switch a { min-width: 0; padding: 4px 6px; font-size: 12px; }
  .hero h1 { font-size: 34px; line-height: 1.05; }
  .hero-copy { margin: 12px 0 22px; font-size: 17px; }
  .usecase { padding: 48px 0; }
  .usecase h2 { font-size: 28px; }
  .usecase-sub { font-size: 17px; }
  .usecase-media > * { max-width: 380px; }
  .phone { zoom: 0.8; }
  .ui-stage { padding-inline: 10px; }
  .ui-island { padding-inline: 14px; }
  .ui-island-event,
  .ui-goal-chip { font-size: 13.5px; }
  .download { padding: 48px 0; }
  .download .section-shell { flex-direction: column; align-items: flex-start; }
  .download h2 { font-size: 26px; }
  .download .appstore-badge { margin-left: 0; }
  .footer-shell { flex-direction: column; gap: 18px; }
  .legal-main { padding: 32px 0 64px; }
  .legal-heading h1 { font-size: 30px; }
  .legal-content { padding: 18px; }
  .contact-card { flex-direction: column; align-items: flex-start; padding: 20px; }
  .promo-hero { padding: 28px 0 8px; }
  .promo-kicker { margin-bottom: 12px; }
  .promo-hero h1 { font-size: 32px; line-height: 1.05; }
  .promo-sub { margin-top: 10px; font-size: 17px; }
  .promo-steps { margin-top: 18px; }
  .promo-step .appstore-badge,
  .promo-step .button { width: 100%; justify-content: center; }
  .promo-code { font-size: 17px; }
  .promo-proof { padding: 36px 0; }
  .promo-proof h2 { font-size: 24px; }
  .promo-story { padding: 28px 0 40px; }
}

@media (max-width: 359px) {
  .ui-card--detailed .ui-card-teams { gap: 6px; padding-inline: 0; }
  .ui-team-name { font-size: 13px; white-space: nowrap; }
}

