/* ============================================================================
   Casino Ninja — site.css  (v2, white-dominant)

   DESIGN_VARIANCE 8 · MOTION_INTENSITY 6 · VISUAL_DENSITY 4

   Base    : white dominant, cool zinc neutrals, ONE accent (desaturated emerald)
   Type    : Geist (display + body) · Geist Mono (all numerals)
   Surfaces: generous radii, diffusion shadows, hairline rings
   Rhythm  : 1280px container cap · 60px between sections · headings and body
             text are never width-capped inside it
   ========================================================================= */

/* ── 1. Tokens ───────────────────────────────────────────────────────────── */

:root {
  /* dominant surface */
  --bg:            #ffffff;
  --bg-subtle:     #fafafa;
  --bg-band:       #f7f7f8;
  --surface:       #ffffff;

  /* ink — never pure black */
  --ink:           #09090b;
  --ink-2:         #18181b;
  --ink-3:         #27272a;

  /* text */
  --text:          #27272a;
  --text-strong:   #09090b;
  --text-muted:    #71717a;
  --text-dim:      #a1a1aa;
  --text-invert:   #fafafa;
  --text-invert-2: #a1a1aa;

  /* lines */
  --line:          #e4e4e7;
  --line-soft:     #f1f1f3;
  --line-strong:   #d4d4d8;

  /* the single accent — hsl(163 76% 24%), saturation under 80% */
  --accent:        #0f6b4f;
  --accent-hi:     #128a65;
  --accent-lo:     #0b5039;
  --accent-wash:   #eef6f2;
  --accent-ring:   rgba(15, 107, 79, .16);

  /* type */
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* radii */
  --r-xl:   2.5rem;
  --r-lg:   1.75rem;
  --r-md:   1rem;
  --r-sm:   .625rem;
  --r-pill: 999px;

  /* elevation — diffusion, tinted to the background hue */
  --sh-sm: 0 1px 2px rgba(9, 9, 11, .04);
  --sh-md: 0 12px 28px -14px rgba(9, 9, 11, .10);
  --sh-lg: 0 20px 40px -15px rgba(9, 9, 11, .10);
  --sh-xl: 0 32px 70px -28px rgba(9, 9, 11, .18);
  --ring:  inset 0 0 0 1px var(--line);

  /* rhythm */
  --shell:   1280px;
  --gutter:  clamp(1.25rem, 4vw, 2.5rem);
  --section: 60px;

  /* motion */
  --ease:  cubic-bezier(.16, 1, .3, 1);
  --dur:   .3s;
}

/* ── 2. Reset & base ─────────────────────────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: 5.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -.006em;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" 1, "cv05" 1;
}

body.nav-open { overflow: hidden; }

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

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--text-strong);
  letter-spacing: -.032em;
  line-height: 1.06;
  margin: 0 0 .55em;
  text-wrap: balance;
  max-width: none;              /* headings are never width-capped */
}

/* hierarchy comes from weight and colour, not sheer scale */
h1 { font-size: clamp(2rem, 3.6vw, 3.1rem);   font-weight: 600; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 600; }
h3 { font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 600; letter-spacing: -.022em; }
h4 { font-size: .95rem; font-weight: 600; letter-spacing: -.018em; }

p { margin: 0 0 1.1em; max-width: none; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.1rem; }

strong { font-weight: 600; color: var(--text-strong); }

::selection { background: var(--accent); color: #fff; }

.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.num { font-family: var(--mono); font-feature-settings: "tnum" 1; letter-spacing: -.03em; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--text-invert);
  padding: .7rem 1.1rem; border-radius: var(--r-sm); font-size: .85rem;
}
.skip-link:focus { left: .75rem; top: .75rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* fine grain, fixed and inert so it never repaints during scroll */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .022; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── 3. Editorial furniture ──────────────────────────────────────────────── */

.section { padding-block: calc(var(--section) * .5); position: relative; }
.section--band { background: var(--bg-band); padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .35); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: ''; width: .3rem; height: .3rem; border-radius: 50%;
  background: currentColor;
}

.section-head { margin-bottom: 2.25rem; max-width: none; }
.section-head p { color: var(--text-muted); font-size: 1.02rem; }

.lede { font-size: clamp(1rem, 1.2vw, 1.12rem); color: var(--text-muted); line-height: 1.6; }

.rule { height: 1px; border: 0; margin: 0; background: var(--line); }

/* ── 4. Buttons ──────────────────────────────────────────────────────────── */

.btn {
  --bg-btn: var(--accent);
  --fg-btn: #fff;
  --bd-btn: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.35rem;
  font-family: var(--font);
  font-size: .875rem; font-weight: 550;
  letter-spacing: -.012em;
  color: var(--fg-btn); background: var(--bg-btn);
  border: 1px solid var(--bd-btn);
  border-radius: var(--r-pill);
  text-decoration: none; cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform .12s var(--ease);
  will-change: transform;
}
.btn:hover  { --bg-btn: var(--accent-lo); --bd-btn: var(--accent-lo); box-shadow: 0 0 0 4px var(--accent-ring); }
.btn:active { transform: scale(.975); }

.btn--ghost { --bg-btn: transparent; --fg-btn: var(--text-strong); --bd-btn: var(--line-strong); }
.btn--ghost:hover { --bg-btn: var(--bg-band); --bd-btn: var(--line-strong); box-shadow: none; }

.btn--ink { --bg-btn: var(--ink); --fg-btn: var(--text-invert); --bd-btn: var(--ink); }
.btn--ink:hover { --bg-btn: var(--ink-3); --bd-btn: var(--ink-3); box-shadow: 0 0 0 4px rgba(9,9,11,.08); }

.btn--on-ink { --bg-btn: rgba(250,250,250,.08); --fg-btn: var(--text-invert); --bd-btn: rgba(250,250,250,.18); }
.btn--on-ink:hover { --bg-btn: rgba(250,250,250,.14); --bd-btn: rgba(250,250,250,.3); box-shadow: none; }

.btn svg { width: 1.15em; height: 1.15em; }
.btn--sm    { padding: .5rem 1rem; font-size: .8rem; }
.btn--lg    { padding: .95rem 1.75rem; font-size: .95rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .85rem; font-weight: 550;
  color: var(--text-strong); text-decoration: none;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link-arrow svg { width: 1rem; height: 1rem; stroke-width: 1.5; }
.link-arrow:hover { gap: .6rem; color: var(--accent); }

/* ── 5. Header — liquid-glass pill, full-width, container-capped inside ──── */

.site-header {
  position: fixed; top: .75rem; left: 0; right: 0; z-index: 120;
  transition: top var(--dur) var(--ease);
}
.site-header.is-scrolled { top: .375rem; }

.header-shell {
  width: 100%; max-width: var(--shell);
  margin-inline: auto; padding-inline: var(--gutter);
}

.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 1rem;
  padding: .5rem .5rem .5rem 1.1rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  /* liquid-glass refraction: hairline ring + inner top highlight */
  box-shadow:
    inset 0 0 0 1px rgba(9, 9, 11, .07),
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 8px 28px -18px rgba(9, 9, 11, .22);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled .header-bar {
  background: rgba(255, 255, 255, .9);
  box-shadow:
    inset 0 0 0 1px rgba(9, 9, 11, .09),
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 12px 34px -20px rgba(9, 9, 11, .3);
}

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 30px; width: auto; object-fit: contain; }
.brand-word {
  font-size: .98rem; font-weight: 600; letter-spacing: -.03em;
  color: var(--text-strong); line-height: 1;
}
.brand-word i {
  display: block; font-style: normal; margin-top: .18rem;
  font-size: .62rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-dim);
}

.nav { justify-self: center; position: relative; }
.nav-list { list-style: none; display: flex; align-items: center; gap: .1rem; margin: 0; padding: 0; }
.nav-item { position: relative; }

.nav-list > li > a,
.nav-list > li > .nav-parent {
  display: inline-flex; align-items: center; gap: .28rem;
  padding: .45rem .7rem;
  font-size: .855rem; font-weight: 500; letter-spacing: -.012em;
  color: var(--text-muted); text-decoration: none;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.nav-list > li > a:hover,
.nav-list > li > a.active,
.nav-item--has-submenu:hover > .nav-parent { color: var(--text-strong); }

.nav-indicator {
  position: absolute; inset: 0 auto 0 0;
  height: 100%; width: 0;
  background: rgba(9, 9, 11, .05);
  border-radius: var(--r-pill);
  opacity: 0; z-index: -1;
  transition: transform .38s var(--ease), width .38s var(--ease), opacity .2s var(--ease);
  pointer-events: none;
}

.nav-caret { width: .95rem; height: .95rem; transition: transform var(--dur) var(--ease); }
.nav-item--has-submenu:hover .nav-caret,
.nav-item--has-submenu.is-open .nav-caret { transform: rotate(180deg); }

/* R13 — transparent bridge so :hover survives the travel to the panel */
.nav-item--has-submenu::after {
  content: '';
  position: absolute; top: 100%; left: -1rem; right: -1rem;
  height: 1.15rem; pointer-events: auto;
}

.nav-submenu {
  position: absolute; top: calc(100% + 1rem); left: 50%;
  transform: translate(-50%, 10px);
  width: min(34rem, 82vw);
  display: grid; grid-template-columns: 1fr 1fr; gap: .2rem;
  padding: .55rem;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow:
    inset 0 0 0 1px rgba(9, 9, 11, .08),
    inset 0 1px 0 rgba(255, 255, 255, .9),
    var(--sh-xl);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .28s var(--ease), visibility .28s;
  z-index: 30;
}
.nav-item--has-submenu:hover > .nav-submenu,
.nav-item--has-submenu:focus-within > .nav-submenu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}

.submenu-link {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem .6rem;
  border-radius: var(--r-md);
  text-decoration: none; color: var(--text);
  transition: background var(--dur) var(--ease);
}
.submenu-link:hover { background: rgba(9, 9, 11, .045); }
.submenu-link b { display: block; font-size: .855rem; font-weight: 550; letter-spacing: -.018em; line-height: 1.25; color: var(--text-strong); }
.submenu-link span { display: block; font-size: .74rem; color: var(--text-muted); }

.header-actions { display: flex; align-items: center; gap: .5rem; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--r-pill); cursor: pointer;
}
.menu-toggle i {
  display: block; position: relative;
  width: 16px; height: 1.5px; background: var(--ink);
  transition: background .2s var(--ease);
}
.menu-toggle i::before,
.menu-toggle i::after {
  content: ''; position: absolute; left: 0;
  width: 16px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease), top .22s var(--ease);
}
.menu-toggle i::before { top: -5px; }
.menu-toggle i::after  { top: 5px; }
body.nav-open .menu-toggle i { background: transparent; }
body.nav-open .menu-toggle i::before { top: 0; transform: rotate(45deg); }
body.nav-open .menu-toggle i::after  { top: 0; transform: rotate(-45deg); }

/* ── 6. Hero — asymmetric split, never centred ───────────────────────────── */

.hero { padding-block: clamp(2rem, 4vw, 3.25rem) var(--section); position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-copy h1 { margin-bottom: .5em; }
.hero-copy .lede { max-width: none; }

.hero-brandline {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .4rem .9rem .4rem .4rem;
  margin-bottom: 1.25rem;
  border-radius: var(--r-pill);
  background: var(--bg-band);
  box-shadow: inset 0 0 0 1px var(--line);
}
.hero-brandline b { font-size: .82rem; font-weight: 600; letter-spacing: -.018em; }
.hero-brandline span { font-size: .74rem; color: var(--text-muted); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }

.hero-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
  margin-top: 1.75rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero-trust div { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--text-muted); }
.hero-trust svg { width: 1.05rem; height: 1.05rem; color: var(--accent); stroke-width: 1.5; }

/* right-hand media composition, deliberately offset */
.hero-media { position: relative; }
.hero-media-main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--ring), var(--sh-lg);
}
.hero-media-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-media-main::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,.5), transparent 46%);
}

.hero-float {
  position: absolute; left: -1.75rem; bottom: -1.5rem;
  display: grid; gap: .55rem;
  padding: 1rem 1.15rem;
  min-width: 14rem;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-radius: var(--r-lg);
  box-shadow:
    inset 0 0 0 1px rgba(9, 9, 11, .07),
    inset 0 1px 0 rgba(255, 255, 255, .9),
    var(--sh-lg);
  animation: float 7s var(--ease) infinite;
}
.hero-float-top { display: flex; align-items: center; gap: .6rem; }
.hero-float-top b { font-size: .875rem; font-weight: 600; letter-spacing: -.02em; }
.hero-float-score { font-family: var(--mono); font-size: 1.6rem; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.hero-float small { font-size: .72rem; color: var(--text-dim); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ── 7. Stat rail — lines, not boxes ─────────────────────────────────────── */

.stat-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-rail > div {
  padding: 1.4rem 1.25rem;
  border-right: 1px solid var(--line);
}
.stat-rail > div:last-child { border-right: 0; }
.stat-rail b {
  display: block;
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.05em;
  color: var(--text-strong); line-height: 1;
}
.stat-rail span {
  display: block; margin-top: .45rem;
  font-size: .78rem; color: var(--text-muted);
}

/* ── 8. Brand mark plate (R6 — contain, never crop) ──────────────────────── */

.logo-plate {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; flex-shrink: 0;
  padding: 4px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--ring);
  overflow: hidden;
}
.logo-plate img { width: 100%; height: 100%; object-fit: contain; border-radius: .45rem; }
.logo-plate--sm { width: 40px; height: 40px; padding: 3px; border-radius: var(--r-sm); }
.logo-plate--lg { width: 72px; height: 72px; padding: 6px; border-radius: var(--r-lg); }
.logo-plate--xl { width: 96px; height: 96px; padding: 8px; border-radius: var(--r-lg); }

/* ── 9. Stars ────────────────────────────────────────────────────────────── */

.stars { display: inline-flex; gap: .06em; line-height: 1; font-size: .95rem; }
.star { position: relative; color: var(--line-strong); }
.star--full  { color: var(--accent); }
.star--empty { color: var(--line-strong); }
.star--half::before {
  content: '\2605';
  position: absolute; left: 0; top: 0;
  width: 50%; overflow: hidden; color: var(--accent);
}
.stars--lg { font-size: 1.15rem; }
.stars--sm { font-size: .8rem; }

.score-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .28rem .6rem;
  border-radius: var(--r-pill);
  background: var(--accent-wash);
  box-shadow: inset 0 0 0 1px var(--accent-ring);
  font-family: var(--mono); font-size: .8rem; font-weight: 500;
  letter-spacing: -.03em; color: var(--accent-lo);
  white-space: nowrap;
}
.score-pill svg { width: .9rem; height: .9rem; }

/* ── 10. Ranking — asymmetric, no 3-equal-card row ───────────────────────── */

.rank-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1.25rem;
  margin-bottom: 2rem;
}
.rank-head h2 { margin-bottom: 0; }
.rank-note { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--text-muted); }
.rank-note svg { width: 1.1rem; height: 1.1rem; color: var(--accent); stroke-width: 1.5; }

.podium {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.podium-side { display: grid; grid-template-rows: 1fr 1fr; gap: 1rem; }

/* the #1 feature card */
.feature-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  border-radius: var(--r-xl);
  background: linear-gradient(158deg, var(--ink-2) 0%, var(--ink) 62%);
  color: var(--text-invert);
  box-shadow: var(--sh-xl);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 88% 6%, rgba(18, 138, 101, .3), transparent 58%);
  pointer-events: none;
}
.feature-card > * { position: relative; }
.feature-card:hover { transform: translateY(-3px); }
.feature-card h3 { color: var(--text-invert); font-size: clamp(1.35rem, 2vw, 1.75rem); margin-bottom: .3rem; }

.feature-badge {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  padding: .34rem .75rem; margin-bottom: 1.5rem;
  border-radius: var(--r-pill);
  background: rgba(18, 138, 101, .18);
  box-shadow: inset 0 0 0 1px rgba(18, 138, 101, .38);
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: #6ee7b7;
}
.feature-badge i {
  width: .4rem; height: .4rem; border-radius: 50%; background: currentColor;
  animation: pulse-soft 2.4s var(--ease) infinite;
}
@keyframes pulse-soft { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.feature-top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; }
.feature-top .logo-plate { background: rgba(250,250,250,.06); box-shadow: inset 0 0 0 1px rgba(250,250,250,.14); }
.feature-rating { display: flex; align-items: center; gap: .5rem; margin-top: .3rem; }
.feature-rating .num { font-size: .82rem; color: var(--text-invert-2); }

.feature-bonus {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 500;
  letter-spacing: -.024em; line-height: 1.4;
  color: var(--text-invert); margin: 0 0 1.5rem;
}

.feature-metrics {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 1.75rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(250, 250, 250, .12);
}
.feature-metrics span { display: block; font-size: .74rem; color: var(--text-invert-2); }
.feature-metrics b {
  display: block; margin-top: .2rem;
  font-family: var(--mono); font-weight: 500; font-size: 1.25rem;
  letter-spacing: -.04em; color: var(--text-invert);
}
.feature-metrics b.is-text,
.install-specs b.is-text { font-family: var(--font); font-size: .9rem; letter-spacing: -.02em; }
.feature-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.feature-foot .link-arrow { color: var(--text-invert-2); }
.feature-foot .link-arrow:hover { color: #fff; }

/* #2 and #3 — compact, stacked */
.rank-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.35rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--ring), var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.rank-card:hover { transform: translateY(-3px); box-shadow: var(--ring), var(--sh-md); }
.rank-card-top { display: flex; align-items: center; gap: .8rem; }
.rank-card-top h3 { margin: 0; }
.rank-index {
  font-family: var(--mono); font-size: .8rem; font-weight: 500;
  color: var(--text-dim); letter-spacing: -.03em;
}
.rank-card p {
  margin: .85rem 0 1rem;
  font-size: .9rem; color: var(--text-muted); line-height: 1.5;
}
.rank-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }

/* runners — a divided list, not a stack of boxes */
.runner-list {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}
.runner {
  display: grid;
  grid-template-columns: 2.5rem 15rem 1fr auto;
  align-items: center; gap: 1.25rem;
  padding: 1rem .5rem;
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease);
}
.runner:hover { background: var(--bg-subtle); }
.runner-rank { font-family: var(--mono); font-size: .9rem; color: var(--text-dim); letter-spacing: -.03em; }
.runner-brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.runner-brand b { display: block; font-size: .95rem; font-weight: 600; letter-spacing: -.022em; }
.runner-brand .stars { margin-top: .15rem; }
.runner-bonus { font-size: .9rem; color: var(--text-muted); }
.runner-actions { display: flex; align-items: center; gap: .9rem; }

/* ── 11. Cards & bento — fractional, asymmetric ──────────────────────────── */

.card {
  position: relative; overflow: hidden;
  padding: clamp(1.35rem, 2vw, 1.85rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--ring), var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--ring), var(--sh-md); }
.card h3 { margin-bottom: .5rem; }
.card p  { color: var(--text-muted); font-size: .93rem; line-height: 1.6; }
.card p + p { margin-top: .7rem; }

.card--flat { box-shadow: none; background: var(--bg-band); }
.card--flat:hover { transform: none; box-shadow: none; }

.card--ink {
  background: linear-gradient(158deg, var(--ink-2), var(--ink));
  color: var(--text-invert);
  box-shadow: var(--sh-lg);
}
.card--ink h3 { color: var(--text-invert); }
.card--ink p  { color: var(--text-invert-2); }
.card--ink .card-kicker { color: #6ee7b7; }
.card--ink strong,
.card--ink .check-list li strong,
.feature-card strong,
.feature-card .check-list li strong { color: var(--text-invert); }

.card-kicker {
  display: block; margin-bottom: .6rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}

.card-index {
  position: absolute; top: 1.35rem; right: 1.5rem;
  font-family: var(--mono); font-size: .72rem; color: var(--text-dim);
}
.card--ink .card-index { color: rgba(250,250,250,.35); }

/* generic builder grid — column count follows item count (R3) */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }

/* hand-authored bento — 12-track, fractional spans */
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.bento > .card              { grid-column: span 4; }
.bento > .card--hero        { grid-column: span 7; }
.bento > .card--tall        { grid-column: span 5; }
.bento > .card--half        { grid-column: span 6; }
.bento > .card--third       { grid-column: span 4; }
.bento > .card--wide        { grid-column: span 8; }
.bento > .card--full        { grid-column: 1 / -1; }

/* ── 12. Check list — block-level li so compound items flow (R10) ─────────── */

.check-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .8rem;
}
.check-list li {
  display: block;                    /* NEVER grid — R10 */
  position: relative;
  padding-left: 1.85rem;
  font-size: .93rem; line-height: 1.6;
  color: var(--text-muted);
}
.check-list li::before {
  content: '';
  position: absolute; left: 0; top: .3rem;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: var(--accent-wash);
  box-shadow: inset 0 0 0 1px var(--accent-ring);
}
.check-list li::after {
  content: '';
  position: absolute; left: .4rem; top: .55rem;
  width: .32rem; height: .58rem;
  border-right: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(45deg);
}
.check-list li strong { color: var(--text-strong); }

.check-list--cards { gap: .6rem; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.check-list--cards li {
  padding: 1rem 1.15rem 1rem 2.9rem;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--ring);
}
.check-list--cards li::before { left: 1.15rem; top: 1.15rem; }
.check-list--cards li::after  { left: 1.55rem; top: 1.4rem; }

.card--ink .check-list li { color: var(--text-invert-2); }
.card--ink .check-list li::before { background: rgba(18,138,101,.2); box-shadow: inset 0 0 0 1px rgba(18,138,101,.4); }
.card--ink .check-list li::after  { border-color: #6ee7b7; }

/* ── 13. Split layout ────────────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
}
.split--reverse { grid-template-columns: 1.15fr .85fr; }
.split--reverse .split-media { order: 2; }

.split-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--ring), var(--sh-lg);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body > p { color: var(--text-muted); }
.split-body .check-list { margin-top: 1.5rem; }

/* ── 14. Trust row ───────────────────────────────────────────────────────── */

.trust-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  margin-top: 1.75rem;
}
.trust-item { padding: 1.25rem 0 0; border-top: 1px solid var(--line); }
.trust-item svg { width: 1.3rem; height: 1.3rem; color: var(--accent); stroke-width: 1.5; margin-bottom: .7rem; }
.trust-item b { display: block; font-size: .95rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: .35rem; }
.trust-item span { display: block; font-size: .875rem; color: var(--text-muted); line-height: 1.55; }

/* ── 15. Image band ──────────────────────────────────────────────────────── */

.image-band {
  position: relative;
  aspect-ratio: 21 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--ring);
  margin-block: var(--section);
}
.image-band img { width: 100%; height: 100%; object-fit: cover; }

/* ── 16. Review / APK single page ────────────────────────────────────────── */

.app-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2rem, 4vw, 3.25rem) var(--section);
}

/* the brand mark, scaled up and blurred into an ambient field */
.app-hero-bg { position: absolute; inset: -12%; z-index: -2; }
.app-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(80px) saturate(215%) brightness(1.3);
  transform: scale(1.3);
  opacity: .42;      /* keeps near-black marks (Betway) from muddying the strip */
}
/* white scrim keeps the page white-dominant and the copy legible */
.app-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(255,255,255,.5) 0%,
    rgba(255,255,255,.68) 48%,
    rgba(255,255,255,.93) 82%,
    #fff 100%);
}

/* the tinted field sits behind muted text — darken it a step for contrast */
.app-hero .breadcrumb { color: var(--text-muted); }
.app-hero .breadcrumb a { color: var(--text); }
.app-hero .breadcrumb li + li::before { color: var(--text-dim); }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  margin: 0 0 1.5rem; padding: 0; list-style: none;
  font-size: .8rem; color: var(--text-dim);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--text-strong); }
.breadcrumb li + li::before { content: '/'; margin-right: .4rem; color: var(--line-strong); }

.app-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}

.app-id { display: flex; align-items: flex-start; gap: 1.15rem; margin-bottom: 1.5rem; }
.app-id h1 { margin-bottom: .55rem; }
.app-id-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }

.byline {
  display: flex; align-items: center; gap: .65rem;
  margin: 1.5rem 0;
  padding: .55rem .95rem .55rem .55rem;
  border-radius: var(--r-pill);
  background: var(--bg-band);
  align-self: flex-start; width: fit-content;
}
.byline-avatar { position: relative; width: 36px; height: 36px; flex-shrink: 0; }
.byline-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.byline-check {
  position: absolute; right: -2px; bottom: -2px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg-band);
  display: grid; place-items: center;
}
.byline-check::after {
  content: ''; width: 6px; height: 3px;
  border-left: 1.4px solid #fff; border-bottom: 1.4px solid #fff;
  transform: rotate(-45deg) translate(.5px, -.5px);
}
.byline b { display: block; font-size: .82rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.byline span { display: block; font-size: .74rem; color: var(--text-muted); }

/* sticky install panel */
.install-panel {
  position: sticky; top: 6rem;
  padding: 1.5rem;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--ring), var(--sh-lg);
}
.install-top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; }
.install-top b { display: block; font-size: 1rem; font-weight: 600; letter-spacing: -.025em; }
.install-top span { display: block; font-size: .78rem; color: var(--text-muted); }

.install-bonus {
  padding: .95rem 1.1rem; margin-bottom: 1rem;
  border-radius: var(--r-md);
  background: var(--accent-wash);
  box-shadow: inset 0 0 0 1px var(--accent-ring);
}
.install-bonus span {
  display: block; font-size: .7rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--accent);
}
.install-bonus b {
  display: block; margin-top: .25rem;
  font-size: .95rem; font-weight: 550; letter-spacing: -.02em;
  color: var(--text-strong); line-height: 1.45;
}

.install-specs { margin: 1.15rem 0; border-top: 1px solid var(--line); }
.install-specs div {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .65rem 0; border-bottom: 1px solid var(--line);
  font-size: .855rem;
}
.install-specs dt, .install-specs span:first-child { color: var(--text-muted); }
.install-specs b { font-family: var(--mono); font-weight: 500; letter-spacing: -.03em; color: var(--text-strong); }

.live-bar {
  display: flex; align-items: center; gap: .5rem;
  margin-top: 1rem; font-size: .8rem; color: var(--text-muted);
}
.live-dot {
  width: .45rem; height: .45rem; border-radius: 50%;
  background: var(--accent-hi); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(18, 138, 101, .5);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  70%  { box-shadow: 0 0 0 .5rem rgba(18, 138, 101, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 138, 101, 0); }
}

/* screenshot strip — perpetual horizontal drift */
.shot-strip { margin-top: 1.75rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.shot-track { display: flex; gap: .75rem; width: max-content; animation: drift 42s linear infinite; }
.shot-strip:hover .shot-track { animation-play-state: paused; }
.shot-track figure {
  margin: 0; width: 15rem; aspect-ratio: 4 / 3;
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--ring);
}
.shot-track img { width: 100%; height: 100%; object-fit: cover; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* verdict */
.verdict-card {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--ring), var(--sh-md);
}
.score-hero { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 1.5rem; }
.score-hero b {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(2.75rem, 6vw, 4rem); letter-spacing: -.06em;
  line-height: .9; color: var(--text-strong);
}
.score-hero i { font-style: normal; font-family: var(--mono); font-size: 1.1rem; color: var(--text-dim); }

.rating-list { border-top: 1px solid var(--line); }
.rating-row {
  display: grid; grid-template-columns: 1fr 6rem 2.5rem;
  align-items: center; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px solid var(--line);
}
.rating-row > span:first-child { font-size: .9rem; color: var(--text-muted); }
.rating-row b {
  font-family: var(--mono); font-weight: 500; font-size: .9rem;
  letter-spacing: -.03em; text-align: right; color: var(--text-strong);
}
.rating-bar { height: 3px; border-radius: 999px; background: var(--line); overflow: hidden; }
.rating-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

.verdict-note {
  padding: clamp(1.25rem, 2.4vw, 1.85rem);
  border-radius: var(--r-lg);
  background: var(--bg-band);
  display: flex; flex-direction: column; justify-content: center;
}
.verdict-note p { font-size: 1rem; line-height: 1.6; color: var(--text-strong); margin-bottom: 1rem; }
.verdict-note cite {
  font-style: normal; font-size: .78rem; font-weight: 550;
  color: var(--text-muted); display: flex; align-items: center; gap: .5rem;
}

/* ── 17. Data table ──────────────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto; margin-top: 1.5rem;
  border-radius: var(--r-lg);
  box-shadow: var(--ring);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.data-table { width: 100%; min-width: 32rem; border-collapse: collapse; font-size: .9rem; }
.data-table th, .data-table td {
  padding: .85rem 1.15rem; text-align: left;
  border-bottom: 1px solid var(--line-soft); white-space: nowrap;
}
.data-table thead th {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
  background: var(--bg-subtle); border-bottom: 1px solid var(--line);
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td { font-family: var(--mono); font-size: .855rem; letter-spacing: -.02em; color: var(--text-muted); }
.data-table td:first-child { font-family: var(--font); font-weight: 550; color: var(--text-strong); white-space: normal; }

/* ── 18. States: loading, empty, error ───────────────────────────────────── */

.skeleton {
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--line-soft) 25%, #e9e9ec 37%, var(--line-soft) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.skeleton--line  { height: .8rem; margin-bottom: .55rem; }
.skeleton--title { height: 1.6rem; width: 55%; margin-bottom: 1rem; }
.skeleton--media { aspect-ratio: 4 / 3; }

.state {
  display: grid; place-items: center; gap: .6rem;
  padding: 3rem 1.5rem; text-align: center;
  border-radius: var(--r-lg);
  background: var(--bg-band);
}
.state svg { width: 2rem; height: 2rem; color: var(--text-dim); stroke-width: 1.5; }
.state b { font-size: .98rem; font-weight: 600; letter-spacing: -.02em; }
.state p { font-size: .89rem; color: var(--text-muted); margin: 0; }
.state--error { background: #fdf3f3; }
.state--error svg { color: #b4494c; }
.state--error b { color: #8f3a3d; }

.form-field { display: grid; gap: .5rem; }
.form-field label { font-size: .85rem; font-weight: 550; color: var(--text-strong); }
.form-field input {
  font: inherit; padding: .7rem .9rem;
  border-radius: var(--r-md); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-field input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.form-field .help  { font-size: .78rem; color: var(--text-dim); }
.form-field .error { font-size: .78rem; color: #b4494c; }
.form-field[data-invalid] input { border-color: #d08d8f; }

/* ── 19. Footer ──────────────────────────────────────────────────────────── */

.site-footer { margin-top: var(--section); border-top: 1px solid var(--line); background: var(--bg-subtle); }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: calc(var(--section) * .8);
}
.footer-brand p { margin-top: 1rem; font-size: .89rem; color: var(--text-muted); line-height: 1.6; }
.footer-cta { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem; }

.footer-col h4 {
  font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a {
  font-size: .89rem; color: var(--text-muted); text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--text-strong); }

.footer-badges {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem; padding-bottom: calc(var(--section) * .7);
}
.footer-badge { display: flex; align-items: center; gap: .6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.footer-badge svg { width: 1.1rem; height: 1.1rem; color: var(--accent); stroke-width: 1.5; flex-shrink: 0; }
.footer-badge b { display: block; font-size: .85rem; font-weight: 600; letter-spacing: -.02em; }
.footer-badge span { display: block; font-size: .74rem; color: var(--text-dim); }

.footer-legal { border-top: 1px solid var(--line); padding-block: 1.5rem 2.25rem; }
.footer-legal p { font-size: .78rem; color: var(--text-dim); line-height: 1.65; }
.footer-legal p:first-child { color: var(--text-muted); margin-bottom: .5rem; }

/* ── 20. 404 ─────────────────────────────────────────────────────────────── */

.error-page { padding-block: calc(var(--section) * 1.4); }
.error-grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.error-code {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(3.5rem, 9vw, 6rem); letter-spacing: -.06em;
  line-height: 1; color: var(--line-strong); margin-bottom: 1rem;
}
.error-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }

/* ── 21. Reveal & staggered orchestration ────────────────────────────────── */

.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ── 22. Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .app-grid   { grid-template-columns: 1fr; }
  .install-panel { position: static; }
  .runner { grid-template-columns: 2.25rem 12rem 1fr auto; gap: 1rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  body { padding-top: 4.75rem; }
  .menu-toggle { display: inline-flex; }
  .nav-indicator { display: none; }
  .header-bar { grid-template-columns: auto 1fr; }
  .header-actions .btn { display: none; }

  .nav {
    position: fixed; inset: 0; justify-self: stretch;
    background: var(--bg);
    padding: 6rem var(--gutter) 3rem;
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-.75rem);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
    z-index: 110;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a,
  .nav-list > li > .nav-parent {
    padding: 1rem .25rem; font-size: 1.15rem; font-weight: 500;
    letter-spacing: -.03em; color: var(--text-strong);
    border-bottom: 1px solid var(--line);
    border-radius: 0; justify-content: space-between;
  }

  .nav-item--has-submenu::after { display: none; }
  .nav-submenu {
    position: static; transform: none; width: auto;
    display: none; grid-template-columns: 1fr;
    padding: .35rem 0 .75rem .75rem;
    background: transparent; box-shadow: none;
    border-left: 1px solid var(--line); border-radius: 0;
    opacity: 1; visibility: visible; pointer-events: auto;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .nav-item--has-submenu:hover > .nav-submenu { display: none; }
  .nav-item--has-submenu.is-open > .nav-submenu { display: grid; }

  /* every asymmetric grid collapses to one strict column */
  .hero-grid,
  .podium,
  .split, .split--reverse,
  .verdict-card,
  .error-grid { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .hero-media { margin-top: .5rem; }
  .hero-float { left: auto; right: 1rem; bottom: -1.25rem; }

  .split-media { aspect-ratio: 16 / 10; }
  .stat-rail { grid-template-columns: 1fr 1fr; }
  .stat-rail > div:nth-child(2n) { border-right: 0; }
  .stat-rail > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .grid, .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > .card,
  .bento > .card--hero, .bento > .card--tall,
  .bento > .card--half, .bento > .card--third,
  .bento > .card--wide { grid-column: span 1; }
  .bento > .card--full { grid-column: 1 / -1; }

  .check-list--cards, .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-badges { grid-template-columns: 1fr 1fr; }

  .runner {
    grid-template-columns: 2rem 1fr;
    grid-template-areas: 'rank brand' 'bonus bonus' 'act act';
    row-gap: .75rem;
  }
  .runner-rank { grid-area: rank; }
  .runner-brand { grid-area: brand; }
  .runner-bonus { grid-area: bonus; }
  .runner-actions { grid-area: act; justify-content: space-between; }
}

@media (max-width: 560px) {
  :root { --r-xl: 1.5rem; --r-lg: 1.15rem; }
  .header-bar { padding: .4rem .4rem .4rem .85rem; }
  .brand img { height: 26px; }
  .hero-actions .btn, .error-actions .btn { width: 100%; }
  .stat-rail { grid-template-columns: 1fr; }
  .stat-rail > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-rail > div:last-child { border-bottom: 0; }
  .grid, .bento, .check-list--cards, .trust-grid, .footer-badges,
  .footer-top, .podium-side { grid-template-columns: 1fr; }
  .feature-metrics { grid-template-columns: 1fr 1fr; }
  .hero-float { position: static; margin-top: 1rem; animation: none; }
  .shot-track figure { width: 11rem; }
  .app-id { flex-direction: column; gap: .9rem; }
}

/* ── 23. Motion preferences & print ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .shot-track { animation: none; }
}

@media print {
  .site-header, .site-footer, .grain, .install-panel, .shot-strip { display: none; }
  body { padding-top: 0; }
}
