/*
 * kaptin.net — redesigned 2026-09-23 to look like the app.
 *
 * Colours are the app's (lib/core/design/app_colors.dart): ink #12242D, the
 * paper background #F4F8FA, orange #FF3D00, blue #006DFF, success green, and
 * the gold / silver / bronze of the ranking trophies. Type is self-hosted —
 * no request leaves kaptin.net, which the privacy policy promises — Archivo
 * for Latin, Noto Kufi Arabic for Arabic and Sorani headings, and the app's
 * own Noto Sans Arabic for Arabic and Sorani text.
 *
 * Everything that has a side uses logical properties (inline-start/end), so
 * the Sorani and Arabic pages mirror without a separate stylesheet.
 */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.4c98b9d4.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-ext.a75c792f.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/noto-kufi-arabic-arabic.e8a770c9.woff2") format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-arabic-arabic.68e080c4.woff2") format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --night: #0b1c24;
  --night-2: #112a35;
  --night-line: rgba(255, 255, 255, 0.09);
  --ink: #12242d;
  --heading: #0d3b4a;
  --muted: #5e6f7a;
  --paper: #f4f8fa;
  --surface: #ffffff;
  --surface-muted: #eff5f7;
  --line: #dde7ec;
  --orange: #ff3d00;
  --orange-deep: #cb3000;
  --orange-soft: #fff0e9;
  --blue: #006dff;
  --link: #1557d8;
  --green: #0f8a5f;
  --green-soft: #e7f4ee;
  --gold: #d4a017;
  --silver: #8c9ba5;
  --bronze: #b0683a;

  --font-display: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display-stretch: 78%;
  --display-weight: 850;
  --display-leading: 0.98;
  --display-tracking: -0.014em;
  --display-word-spacing: 0.06em;
  --body-leading: 1.6;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 1px 2px rgba(13, 38, 50, 0.06), 0 12px 32px -14px rgba(13, 38, 50, 0.22);
  --shadow-lift: 0 2px 4px rgba(6, 18, 24, 0.12), 0 32px 64px -24px rgba(6, 18, 24, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

/* Arabic and Sorani: the app's Noto Sans Arabic for text, Noto Kufi for
   headings, with the leading Arabic script needs. Latin inside them (IQD,
   iPhone, a club name) falls through to Archivo by unicode-range. */
:lang(ar),
:lang(ckb) {
  --font-display: 'Noto Kufi Arabic', 'Archivo', system-ui, sans-serif;
  --font-body: 'Noto Sans Arabic', 'Archivo', system-ui, sans-serif;
  --display-stretch: 100%;
  --display-weight: 800;
  --display-leading: 1.32;
  --display-tracking: 0;
  --display-word-spacing: 0;
  --body-leading: 1.85;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: var(--body-leading);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  letter-spacing: var(--display-tracking);
  word-spacing: var(--display-word-spacing, 0.04em);
  line-height: var(--display-leading);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - 2 * var(--gutter), 820px);
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow,
.kicker {
  margin: 0 0 14px;
  color: var(--orange-deep);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

:lang(ar) .eyebrow,
:lang(ar) .kicker,
:lang(ckb) .eyebrow,
:lang(ckb) .kicker {
  letter-spacing: 0;
  font-size: 0.9375rem;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
}

.microcopy,
.form-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Arabic and Sorani have no capitals; the transforms below would only
   upper-case the Latin words inside them ("iPhone" became "IPHONE"). */
:lang(ar) :is(.eyebrow, .kicker, .chapter-tag, .score-live, .collect-rarity, .footer-head, .stub-label, .statement-panel span),
:lang(ckb) :is(.eyebrow, .kicker, .chapter-tag, .score-live, .collect-rarity, .footer-head, .stub-label, .statement-panel span) {
  text-transform: none;
  letter-spacing: 0;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 0.9875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(255, 61, 0, 0.8);
}

.button.primary:hover {
  background: #eb3800;
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button.secondary:hover {
  box-shadow: inset 0 0 0 1px #b9c9d1;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 248, 250, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(13, 59, 74, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: auto;
  color: #f74404;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  font-stretch: 88%;
  letter-spacing: -0.01em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline-end: 6px;
}

.nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}

.nav a:hover,
.nav a[aria-current='page'] {
  background: rgba(13, 59, 74, 0.07);
}

.language-switcher {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(13, 59, 74, 0.06);
}

.language-switcher a {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 34px;
  border-radius: 9px;
  color: var(--muted);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.language-switcher a[aria-current='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(13, 38, 50, 0.14);
}

.header-cta {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
}

.header-cta:hover {
  background: #0b1920;
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }
}

@media (max-width: 420px) {
  .header-cta {
    display: none;
  }
}

/* ── Store badges ────────────────────────────────────────────────────────── */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

a.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 14px 28px -16px rgba(0, 0, 0, 0.8);
}

.store-glyph {
  width: 24px;
  height: 26px;
  flex: none;
}

.store-text {
  display: grid;
  line-height: 1.1;
  text-align: start;
}

.store-top {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.85;
}

.store-name {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 650;
  font-stretch: 92%;
  letter-spacing: -0.01em;
  direction: ltr;
}

.store-badge.is-soon {
  cursor: default;
}

.store-badge.is-soon .store-glyph,
.store-badge.is-soon .store-text {
  opacity: 0.55;
}

.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-basis: 100%;
  color: #ff8a5c;
  font-size: 0.875rem;
  font-weight: 700;
}

.store-soon::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.site-footer .store-soon,
.ticket .store-soon {
  color: #ff8a5c;
}

.store-badges.is-compact .store-badge {
  min-height: 48px;
  padding: 0 16px 0 13px;
  border-radius: 12px;
}

.store-badges.is-compact .store-name {
  font-size: 1.0625rem;
}

.store-badges.is-large .store-badge {
  min-height: 62px;
  padding: 0 24px 0 18px;
}

.store-badges.is-large .store-name {
  font-size: 1.375rem;
}

/* ── The phone ───────────────────────────────────────────────────────────── */

.phone {
  position: relative;
  margin: 0;
  padding: 9px;
  border-radius: 54px;
  background: linear-gradient(145deg, #2b3a42 0%, #0a1014 45%, #1d2a31 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), inset 0 0 0 5px #05090c, var(--shadow-lift);
}

.phone::before {
  /* The side buttons, a hint of hardware. */
  content: '';
  position: absolute;
  inset-inline-end: -3px;
  top: 22%;
  width: 3px;
  height: 11%;
  border-radius: 0 3px 3px 0;
  background: #1c262c;
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 45px;
  background: var(--paper);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  padding: 12px var(--gutter) 0;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  max-width: 1440px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 60% at 88% -12%, rgba(255, 98, 38, 0.2), transparent 62%),
    radial-gradient(50% 50% at 12% 110%, rgba(0, 109, 255, 0.12), transparent 70%),
    var(--night);
  color: #fff;
  isolation: isolate;
}

.pitch {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.07);
}

:dir(rtl) .pitch,
[dir='rtl'] .pitch {
  transform: scaleX(-1);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(48px, 6vw, 84px) 0;
}

.hero-copy {
  padding-bottom: clamp(48px, 7vw, 96px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--night-line);
  color: #d6e3e9;
  font-size: 0.875rem;
  font-weight: 600;
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--orange);
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  opacity: 0;
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero-title {
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 4.75rem);
}

:lang(ar) .hero-title,
:lang(ckb) .hero-title {
  font-size: clamp(2.3rem, 5vw, 4.3rem);
}

.hero-title .line {
  display: block;
}

@media (min-width: 901px) {
  .hero-title .line {
    white-space: nowrap;
  }
}

.hero-title .accent {
  color: var(--orange);
}

.hero-lead {
  max-width: 34rem;
  margin-top: 26px;
  color: #b3c6cf;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 34px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.text-link .i {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.text-link:hover .i {
  transform: translateY(3px);
}

.lang-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: #8aa2ad;
  font-size: 0.875rem;
}

.lang-label {
  margin-inline-end: 4px;
}

.lang-chip {
  padding: 3px 11px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--night-line);
  color: #d6e3e9;
  font-weight: 600;
}

.lang-chip:lang(ar),
.lang-chip:lang(ckb) {
  font-family: 'Noto Sans Arabic', system-ui, sans-serif;
}

.hero-visual {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
}

.phone-hero {
  width: min(100%, 340px);
  margin-bottom: -170px;
  transform: rotate(-2.5deg);
  transform-origin: 50% 100%;
}

[dir='rtl'] .phone-hero {
  transform: rotate(2.5deg);
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.12);
  font-size: 0.875rem;
  line-height: 1.25;
  animation: float 7s ease-in-out infinite;
}

.float-slot {
  top: 20%;
  inset-inline-start: -4%;
}

.float-need {
  bottom: 30%;
  inset-inline-end: -2%;
  animation-delay: -3.5s;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.float-icon,
.need-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange);
}

.need-icon {
  background: var(--orange-soft);
}

.float-card .i {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.float-text {
  display: grid;
  gap: 2px;
}

.float-top {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.float-text strong {
  font-weight: 800;
}

.float-text .price {
  color: var(--orange-deep);
}

.float-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: 4px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
}

.float-status .i {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.need-value {
  margin-inline-start: 6px;
  color: var(--orange);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-copy {
    padding-bottom: 36px;
  }

  .phone-hero {
    width: min(72vw, 320px);
    margin-bottom: -120px;
  }

  .float-slot {
    inset-inline-start: 0;
  }

  .float-need {
    inset-inline-end: 0;
  }
}

@media (max-width: 480px) {
  .float-card {
    font-size: 0.8125rem;
    padding: 10px 12px;
  }

  .float-slot {
    top: 12%;
    inset-inline-start: -2px;
  }

  .float-need {
    bottom: 36%;
    inset-inline-end: -2px;
  }

  .float-icon,
  .need-icon {
    width: 32px;
    height: 32px;
  }
}

/* ── Chapters: Booking, Matches, Games ───────────────────────────────────── */

.chapters {
  padding-block: clamp(80px, 11vw, 150px) clamp(64px, 8vw, 110px);
}

.section-intro {
  max-width: 760px;
  margin-bottom: clamp(48px, 7vw, 96px);
}

.section-intro h2,
.local-copy h2,
.ticket h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
}

:lang(ar) .section-intro h2,
:lang(ckb) .section-intro h2,
:lang(ar) .local-copy h2,
:lang(ckb) .local-copy h2,
:lang(ar) .ticket h2,
:lang(ckb) .ticket h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
}

.section-intro p:not(.eyebrow) {
  max-width: 36rem;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.4vw, 1.2rem);
}

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.chapter.is-flipped .chapter-copy {
  order: 2;
}

.chapter-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

:lang(ar) .chapter-tag,
:lang(ckb) .chapter-tag {
  letter-spacing: 0;
  font-size: 1rem;
}

.chapter-num {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 30px;
  padding-inline: 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.chapter h3 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
}

:lang(ar) .chapter h3,
:lang(ckb) .chapter h3 {
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
}

.chapter-copy > p:not(.chapter-tag) {
  max-width: 32rem;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.125rem;
}

.ticks {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.ticks .i {
  width: 24px;
  height: 24px;
  flex: none;
  padding: 4px;
  border-radius: 50%;
  background: var(--orange-soft);
  fill: none;
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chapter-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.visual-booking {
  padding-bottom: 0;
  align-items: end;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(255, 61, 0, 0.1), transparent 70%),
    var(--surface-muted);
}

.phone-chapter {
  width: min(100%, 300px);
  margin-bottom: -110px;
}

.visual-matches {
  background:
    linear-gradient(135deg, rgba(15, 138, 95, 0.08), transparent 55%),
    var(--surface-muted);
}

.visual-games {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-content: center;
  align-items: center;
  justify-items: stretch;
  background:
    radial-gradient(60% 60% at 90% 10%, rgba(212, 160, 23, 0.16), transparent 70%),
    var(--night);
}

/* The app's own components, redrawn: the match card, the live score, the
   prediction league with its trophies, a collectible card. */

.ui-card {
  width: 100%;
  max-width: 420px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.match-ui {
  display: grid;
  gap: 12px;
}

.ui-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.ui-head strong {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
}

.ui-status {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 700;
}

.ui-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.need {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
}

.need b {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.need-field {
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px rgba(15, 138, 95, 0.28);
}

.need-field .i,
.need-field b {
  color: var(--green);
}

.need-keeper {
  background: var(--orange-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 61, 0, 0.28);
}

.need-keeper .i,
.need-keeper b {
  color: var(--orange);
}

.ui-card .i {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui-cell {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-muted);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.ui-cell .i {
  color: var(--orange);
  flex: none;
}

.ui-cell small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.ui-join {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  margin-top: 6px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.ui-join .i {
  width: 20px;
  height: 20px;
}

.score-ui {
  padding: 16px 18px;
}

.score-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:lang(ar) .score-live,
:lang(ckb) .score-live {
  letter-spacing: 0;
  font-size: 0.8125rem;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-weight: 700;
}

.team {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-away {
  justify-content: flex-end;
}

.crest {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
}

.crest-a {
  background: #c8102e;
}

.crest-b {
  background: #0b6e4f;
}

.score {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 1.625rem;
  font-weight: 800;
  font-stretch: 85%;
}

.league-ui {
  padding: 14px 18px 8px;
}

.league-title {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.league-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.league-rows li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding-block: 9px;
  border-top: 1px solid var(--line);
}

.league-rows li:first-child {
  border-top: 0;
}

.trophy {
  width: 30px;
  height: 30px;
  padding: 4px;
  border-radius: 10px;
}

.trophy path {
  fill: currentColor;
}

.trophy .trophy-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.trophy-gold { color: var(--gold); background: #fff4d6; }
.trophy-silver { color: var(--silver); background: #eef2f4; }
.trophy-bronze { color: var(--bronze); background: #f8e9de; }

.rank-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.875rem;
}

.player {
  font-weight: 700;
}

.pts {
  color: var(--muted);
  font-size: 0.875rem;
}

.pts b {
  color: var(--ink);
  font-size: 1rem;
}

.score-ui {
  grid-column: 1;
}

.league-ui {
  grid-column: 1;
}

.collect-card {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 112px;
  padding: 12px 10px 10px;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff4d6, #f1d58a);
  box-shadow: inset 0 0 0 2.5px var(--gold), 0 20px 36px -16px rgba(0, 0, 0, 0.7);
  transform: rotate(6deg);
  text-align: center;
}

[dir='rtl'] .collect-card {
  transform: rotate(-6deg);
}

.collect-art {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 9px;
  background: var(--night);
}

.collect-mark {
  width: 46%;
  color: var(--gold);
}

.collect-name {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.collect-rarity {
  color: #8a6200;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:lang(ar) .collect-rarity,
:lang(ckb) .collect-rarity {
  letter-spacing: 0;
  font-size: 0.6875rem;
}

.also-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: clamp(24px, 4vw, 40px);
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.also-label {
  color: var(--muted);
  font-weight: 700;
}

.also-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.also-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-muted);
  font-weight: 700;
  font-size: 0.9375rem;
}

.also-strip .i {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

  .chapter.is-flipped .chapter-copy {
    order: 0;
  }

  .chapter-visual {
    min-height: 380px;
  }
}

@media (max-width: 480px) {
  .ui-pair {
    grid-template-columns: 1fr;
  }

  .visual-games {
    grid-template-columns: 1fr;
  }

  .collect-card {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
  }
}

/* ── Made for here ───────────────────────────────────────────────────────── */

.local {
  padding-block: clamp(64px, 9vw, 120px);
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.local-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.wordmarks {
  display: grid;
  gap: 4px;
}

.brand-verbatim {
  display: block;
  color: var(--heading);
  font-size: clamp(3.4rem, 8vw, 6.6rem);
  font-weight: 850;
  line-height: 1.05;
}

.brand-verbatim:lang(en) {
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 78%;
  letter-spacing: -0.03em;
}

.brand-verbatim:lang(ckb),
.brand-verbatim:lang(ar) {
  font-family: 'Noto Kufi Arabic', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.35;
  text-align: start;
}

.brand-verbatim:nth-child(2) {
  color: var(--orange);
}

.brand-verbatim:nth-child(3) {
  color: #b7c7cf;
}

.local-copy > p:not(.eyebrow) {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.125rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 0;
}

.facts div {
  padding: 18px 16px;
  border-radius: var(--radius);
  background: var(--paper);
}

.facts dt {
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 850;
  font-stretch: 80%;
  line-height: 1;
}

.facts dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .local-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wordmarks {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 22px;
  }

  .brand-verbatim {
    font-size: clamp(2.2rem, 10vw, 3.6rem);
  }
}

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

/* ── Download: the ticket ────────────────────────────────────────────────── */

.download {
  padding-block: clamp(64px, 9vw, 120px);
}

.ticket {
  --notch: 22px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  border-radius: var(--radius-lg);
  background: var(--night);
  color: #fff;
  overflow: hidden;
  /* The ticket's two notches, cut where the stub tears off. */
  -webkit-mask:
    radial-gradient(circle var(--notch) at calc(100% - 220px) 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - 220px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at calc(100% - 220px) 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - 220px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}

[dir='rtl'] .ticket {
  -webkit-mask:
    radial-gradient(circle var(--notch) at 220px 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at 220px 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at 220px 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at 220px 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}

.ticket-main {
  position: relative;
  padding: clamp(36px, 6vw, 72px);
  isolation: isolate;
}

/* A centre circle, as on the hero's pitch. */
.ticket-main::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset-inline-end: -120px;
  top: 50%;
  width: 320px;
  height: 320px;
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  translate: 0 -50%;
}

.ticket h2 {
  max-width: 14ch;
  color: #fff;
}

.ticket-main > p:not(.eyebrow) {
  max-width: 30rem;
  margin: 18px 0 32px;
  color: #b3c6cf;
  font-size: 1.125rem;
}

.ticket .eyebrow {
  color: #ff8a5c;
}

.ticket-stub {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  border-inline-start: 2px dashed rgba(255, 255, 255, 0.22);
  background: var(--orange);
  color: #fff;
}

.stub-mark {
  width: 96px;
  color: #fff;
}

.stub-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

:lang(ar) .stub-label,
:lang(ckb) .stub-label {
  letter-spacing: 0;
  font-size: 1.125rem;
}

@media (max-width: 760px) {
  .ticket,
  [dir='rtl'] .ticket {
    grid-template-columns: 1fr;
    -webkit-mask: none;
    mask: none;
  }

  .ticket-stub {
    grid-auto-flow: column;
    align-items: center;
    padding: 18px;
    border-inline-start: 0;
    border-top: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .stub-mark {
    width: 40px;
  }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  padding-block: clamp(56px, 7vw, 88px) 28px;
  background: var(--night);
  color: #b3c6cf;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.footer-brand {
  color: #fff;
}

.footer-brand-col > p {
  max-width: 22rem;
  margin: 16px 0 24px;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-head {
  margin-bottom: 4px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

:lang(ar) .footer-head,
:lang(ckb) .footer-head {
  letter-spacing: 0;
  font-size: 0.9375rem;
}

.footer-col a {
  width: fit-content;
  color: #b3c6cf;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 22px;
  border-top: 1px solid var(--night-line);
  color: #7f97a2;
  font-size: 0.875rem;
}

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

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

/* ── Inner pages: About, Support, the legal pages, invites ───────────────── */

.page-hero {
  padding-block: clamp(64px, 9vw, 120px) clamp(36px, 5vw, 56px);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
}

:lang(ar) .page-hero h1,
:lang(ckb) .page-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
}

.page-hero .lead {
  max-width: 44rem;
  margin-top: 22px;
}

.section {
  padding-block: clamp(48px, 7vw, 88px);
}

.section.section-tight {
  padding-block: clamp(32px, 5vw, 56px);
}

.section.muted {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

:lang(ar) .section h2,
:lang(ckb) .section h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.split > div > p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.125rem;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  display: grid;
  gap: 2px;
  padding-inline-start: 36px;
}

.check-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff3d00' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.check-list strong {
  color: var(--ink);
}

.check-list span {
  color: var(--muted);
}

.statement-panel,
.quote-panel {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--night);
  color: #fff;
  overflow: hidden;
}

.statement-panel::after,
.quote-panel::after {
  content: '';
  position: absolute;
  inset-inline-end: -40px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.statement-panel span {
  color: #ff8a5c;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.statement-panel p,
.quote-panel p,
.split .statement-panel p:not(.eyebrow),
.split .quote-panel p:not(.eyebrow) {
  margin-top: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
}

.card-number {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 30px;
  padding-inline: 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 800;
}

.card h3 {
  margin-top: 18px;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.2;
}

.card p {
  margin-top: 10px;
  color: var(--muted);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
}

.contact-block {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.contact-block h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}

.contact-block > p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--muted);
}

.contact-block-wide {
  grid-column: span 2;
}

.large-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  text-decoration: none;
  word-break: break-word;
}

.large-link:hover {
  text-decoration: underline;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.category-list li {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.category-list a {
  font-weight: 800;
}

.category-list span {
  color: var(--muted);
  font-size: 0.9375rem;
}

.policy-wrap {
  max-width: 820px;
}

.policy-section {
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.policy-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.policy-section h2 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

.policy-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-inline-start: 22px;
}

.policy-section li,
.policy-section p {
  color: #33474f;
}

.policy-section li::marker {
  color: var(--orange);
}

.invite-page {
  display: grid;
  gap: 0;
}

.invite-code-card {
  display: grid;
  gap: 18px;
  margin-top: 32px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--night);
  color: #fff;
}

.invite-code-card code,
.invite-code-card strong {
  font-family: 'Archivo', ui-monospace, monospace;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Link landing variants (2026-09-28). A group chat invite, a shared page and
   a referral each read as what they are; the script unhides one. Author
   `display` rules would beat the UA's [hidden], so hidden wins here. */
.invite-page [hidden] {
  display: none !important;
}

.invite-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px 18px;
  margin-top: 30px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius-lg);
  background: var(--night);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), var(--shadow-lift);
}

.invite-glyph {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  background: rgba(255, 61, 0, 0.16);
  color: #ff7a45;
  box-shadow: inset 0 0 0 1px rgba(255, 122, 69, 0.22);
}

.invite-glyph-svg {
  width: 34px;
  height: 34px;
}

.invite-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.25;
}

.invite-card-text {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.975rem;
  line-height: 1.5;
}

.invite-card .invite-actions {
  grid-column: 1 / -1;
  margin-top: 6px;
}

.invite-card .button.primary {
  flex: 1 1 100%;
  min-height: 54px;
  font-size: 1.0625rem;
}

@media (min-width: 620px) {
  .invite-card .button.primary {
    flex: 0 1 auto;
    min-width: 240px;
  }
}

.invite-page .button[aria-disabled='true'] {
  opacity: 0.5;
  pointer-events: none;
  box-shadow: none;
}

.invite-actions-plain {
  margin-top: 26px;
}

.invite-get-app {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.invite-get-app-title {
  margin: 0;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
}

.invite-get-app-text {
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 0.975rem;
}

.invite-ref {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.invite-ref-text {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.invite-ref-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.invite-ref-code {
  color: var(--heading);
  font-family: 'Archivo', ui-monospace, monospace;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  direction: ltr;
}

.invite-ref-status {
  margin: 8px 0 0;
  color: var(--green);
  font-size: 0.875rem;
}

.invite-ref-status:empty {
  display: none;
}

.invite-card-loading .invite-glyph {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.invite-skeleton {
  display: block;
  width: 72%;
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
}

.invite-skeleton + .invite-skeleton {
  margin-top: 10px;
}

.invite-skeleton.is-short {
  width: 44%;
}

@media (prefers-reduced-motion: no-preference) {
  .invite-skeleton,
  .invite-card-loading .invite-glyph {
    animation: invite-pulse 1.4s ease-in-out infinite;
  }

  @keyframes invite-pulse {
    50% { opacity: 0.45; }
  }
}

@media (max-width: 900px) {
  .split,
  .card-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-block-wide {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .category-list {
    grid-template-columns: 1fr;
  }
}

/* ── Motion ──────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .hero-visual {
    animation: rise 0.9s var(--ease) both;
  }

  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.24s; }
  .hero-visual { animation-delay: 0.15s; animation-duration: 1.1s; }

  @keyframes rise {
    from { opacity: 0; translate: 0 18px; }
    to { opacity: 1; translate: 0 0; }
  }

  /* Sections slide up a little as they scroll in. Movement only, never
     opacity: content must be there for a reader who jumps with a link,
     searches the page, prints it, or never scrolls at all. */
  @keyframes settle {
    from { translate: 0 32px; }
    to { translate: 0 0; }
  }

  @supports (animation-timeline: view()) {
    .chapter,
    .also-strip,
    .local-grid > *,
    .ticket {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .float-card,
  .live-dot::after {
    animation: none;
  }
}
