/* ==========================================================================
   Ox Game — "Cobalt" design system
   Blue-dominant, cool-neutral base. Single accent (azure); amber appears only
   as data encoding on ratings and bonus figures, desaturated to sit back.
   No neon glows, no gradient text, no pure black.
   ========================================================================== */

:root {
  /* Cool neutral base */
  --bg:            #0b0f17;
  --bg-2:          #080c13;
  --surface:       #111826;
  --surface-2:     #162032;
  --surface-3:     #1b2740;

  /* Hairlines, tinted to the background hue */
  --line:          rgba(148, 178, 255, .10);
  --line-2:        rgba(148, 178, 255, .19);
  --line-3:        rgba(148, 178, 255, .30);

  /* Text */
  --text:          #c3cee3;
  --text-strong:   #eef3fb;
  --text-dim:      #8493ae;

  /* Accent — azure. Kept under 80% saturation so it reads confident, not neon. */
  --blue:          #3e82e6;
  --blue-bright:   #6aa3f5;
  --blue-deep:     #1a4894;
  --blue-ink:      #060a12;
  --blue-wash:     rgba(62, 130, 230, .11);

  /* Data-only accents */
  --amber:         #c89b3c;
  --danger:        #e0605e;

  --r-xs:          6px;
  --r-sm:          10px;
  --r-md:          14px;
  --r-lg:          20px;
  --r-xl:          28px;
  --r-full:        999px;

  --font-display:  "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body:     "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:     "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  --ease:          cubic-bezier(.16, 1, .3, 1);
  --t-fast:        160ms var(--ease);
  --t:             240ms var(--ease);
  --t-slow:        420ms var(--ease);

  --wrap:          1280px;
  --header-h:      72px;
}

/* ------------------------------------------------------------------ base */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
svg { flex: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  letter-spacing: -.025em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

a { color: var(--blue-bright); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--text-strong); }

button, a, [role="button"], summary { cursor: pointer; }
ul, ol { margin: 0; padding: 0; }

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

.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: 14px; top: -60px; z-index: 200;
  background: var(--blue); color: var(--blue-ink);
  padding: 10px 18px; border-radius: var(--r-sm); font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 14px; color: var(--blue-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--blue-bright);
  margin: 0;
}

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Fine grain over the whole page. Fixed + pointer-events-none so it never
   triggers repaints while scrolling. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .022;
  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='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------- buttons */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text-strong);
  --btn-bd: var(--line-2);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--r-full);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: -.01em;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t-fast);
}
.btn:active { transform: scale(.98) translateY(1px); }

.btn--primary {
  --btn-bg: var(--blue); --btn-fg: var(--blue-ink); --btn-bd: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn--primary:hover { --btn-bg: var(--blue-bright); --btn-bd: var(--blue-bright); color: var(--blue-ink); }

.btn--ghost:hover { --btn-bg: var(--surface-2); --btn-bd: var(--line-3); color: var(--text-strong); }

.btn--quiet {
  --btn-bg: var(--blue-wash); --btn-fg: var(--blue-bright); --btn-bd: transparent;
}
.btn--quiet:hover { --btn-bg: var(--blue); color: var(--blue-ink); }

.btn--sm    { padding: 9px 17px; font-size: 13px; }
.btn--lg    { padding: 16px 30px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(11, 15, 23, .72);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.site-header__inner {
  height: 100%; display: flex; align-items: center; gap: 32px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text-strong); }
.brand__mark {
  border-radius: var(--r-xs);
  border: 1px solid var(--line-2);
}
.brand__name {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600; letter-spacing: -.035em;
}
.brand:hover .brand__name { color: var(--blue-bright); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }

.nav__link {
  position: relative; display: block;
  padding: 9px 15px; border-radius: var(--r-full);
  color: var(--text-dim); font-size: 14.5px; font-weight: 500;
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.nav__link:hover { color: var(--text-strong); background: var(--surface-2); transform: translateY(-1px); }
.nav__link.is-active { color: var(--blue-bright); background: var(--blue-wash); }

.nav__cta-wrap { margin-left: 10px; }

.nav-toggle {
  display: none; margin-left: auto;
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); color: var(--text-strong);
  width: 44px; height: 44px; align-items: center; justify-content: center;
  transition: border-color var(--t), background var(--t);
}
.nav-toggle:hover { border-color: var(--line-3); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open  { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ------------------------------------------------------------ split hero */

.hero {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center;
  min-height: min(92dvh, 860px);
  padding-top: var(--header-h);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero__content {
  padding: 80px clamp(28px, 5vw, 88px) 80px max(28px, calc((100vw - var(--wrap)) / 2 + 28px));
  position: relative; z-index: 2;
}

.hero__eyebrow { margin-bottom: 22px; }

.hero__title {
  font-size: clamp(2.2rem, 4.1vw, 3.7rem);
  font-weight: 600;
}
.hero__title em { font-style: normal; color: var(--blue-bright); }

.hero__lead {
  margin: 24px 0 0;
  color: var(--text-dim); font-size: 1.02rem; line-height: 1.7;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__stats {
  display: flex; flex-wrap: wrap; margin: 52px 0 0;
  border-top: 1px solid var(--line);
}
.hero__stat { padding: 22px 30px 0 0; margin-right: 30px; border-right: 1px solid var(--line); }
.hero__stat:last-child { border-right: 0; margin-right: 0; }
.hero__stat dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.hero__stat dd {
  margin: 8px 0 0; font-family: var(--font-display);
  font-size: 30px; font-weight: 600; color: var(--text-strong); letter-spacing: -.03em;
}

/* Visual half. The AI-generated artwork loads over a mesh fallback, so the
   panel still reads correctly if the image is missing. */
.hero__visual {
  position: relative; align-self: stretch; min-height: 420px;
  /* ::before is scaled by the float animation — clip it here, or the enlarged
     artwork bleeds past the panel and escapes the ::after fade overlay. */
  overflow: hidden;
  background-color: var(--bg-2);
  background-image:
    radial-gradient(circle at 72% 28%, rgba(62, 130, 230, .40), transparent 58%),
    radial-gradient(circle at 38% 76%, rgba(26, 72, 148, .46), transparent 62%),
    radial-gradient(circle at 88% 84%, rgba(106, 163, 245, .20), transparent 55%);
}
.hero__visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--hero-art, none);
  background-size: cover; background-position: center;
  animation: heroFloat 24s var(--ease) infinite alternate;
}
/* Fade the artwork into the page on the left and bottom edges. */
.hero__visual::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0%, rgba(11, 15, 23, .55) 32%, transparent 72%),
    linear-gradient(to top, var(--bg) 0%, transparent 40%);
}

@keyframes heroFloat {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-18px, -12px, 0); }
}

/* --------------------------------------------------------------- trustbar */

.trustbar { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.trustbar__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trustbar__item {
  display: flex; align-items: center; gap: 12px;
  padding: 24px 28px; border-right: 1px solid var(--line);
  font-size: 14px; color: var(--text);
}
.trustbar__item:last-child { border-right: 0; }
.trustbar__item svg { color: var(--blue); }

/* -------------------------------------------------------------- sections */

.sections { display: flex; flex-direction: column; gap: 112px; padding-block: 104px 40px; }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding-bottom: 22px; margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
}
.section__label { margin-bottom: 12px; }
.section__title { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 600; }
.section__sub { margin: 12px 0 0; color: var(--text-dim); font-size: 15px; }
.section__count {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
  color: var(--text-dim); text-transform: uppercase; white-space: nowrap; padding-bottom: 6px;
}

/* Staggered load-in. Pure CSS: `backwards` holds the start frame through the
   delay, and the resting state is fully visible — so content can never be
   stranded invisible by a script that failed to run. */
.reveal {
  animation: revealIn var(--t-slow) var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ============================ NEWEST — editorial bento ==================== */

.rail { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 18px; }

.feature {
  grid-row: span 2; position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 460px; padding: 30px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; isolation: isolate;
  transition: border-color var(--t), transform var(--t);
}
.feature:hover { border-color: var(--line-3); transform: translateY(-3px); }

.feature__art { position: absolute; inset: 0; z-index: -2; }
.feature__art img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.feature:hover .feature__art img { transform: scale(1.05); }
.feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8, 12, 19, .96) 12%, rgba(8, 12, 19, .55) 48%, rgba(8, 12, 19, .15) 100%);
}
.feature__flag { position: absolute; top: 22px; left: 22px; }
.feature__title { font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 600; }
.feature__title a { color: var(--text-strong); }
.feature__title a:hover { color: var(--blue-bright); }
.feature__desc { margin: 12px 0 0; color: var(--text); font-size: 14.5px; }
.feature__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }

/* Compact side card in the bento */
.mini {
  position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 16px;
  align-items: center; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.mini:hover { border-color: var(--line-3); background: var(--surface-2); transform: translateY(-3px); }
.mini__art { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); }
.mini__art img { width: 100%; height: 100%; object-fit: cover; }
.mini__title { font-size: 15.5px; font-weight: 600; }
.mini__title a { color: var(--text-strong); }
.mini__title a::after { content: ""; position: absolute; inset: 0; }
.mini__title a:hover { color: var(--blue-bright); }
.mini__meta { display: flex; align-items: center; gap: 10px; margin-top: 7px; font-size: 12.5px; color: var(--text-dim); }

/* ============================ HOT — ranked board ========================= */

/* Rows grouped by hairlines instead of card boxes. */
.board { border-top: 1px solid var(--line); }

.board__row {
  position: relative;
  display: grid; grid-template-columns: 72px 68px 1fr auto auto;
  align-items: center; gap: 22px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  transition: background var(--t), padding-left var(--t);
}
.board__row:hover { background: var(--surface); padding-left: 18px; }

.board__rank {
  font-family: var(--font-mono); font-size: 30px; font-weight: 500;
  color: transparent; -webkit-text-stroke: 1px var(--line-3);
  letter-spacing: -.04em; transition: -webkit-text-stroke-color var(--t), color var(--t);
}
.board__row:hover .board__rank { -webkit-text-stroke-color: var(--blue); color: var(--blue-wash); }
.board__row:first-child .board__rank { -webkit-text-stroke-color: var(--blue); }

.board__art { width: 68px; height: 68px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.board__art img { width: 100%; height: 100%; object-fit: cover; }

.board__name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text-strong); letter-spacing: -.02em; }
.board__name a { color: inherit; }
.board__name a::after { content: ""; position: absolute; inset: 0; }
.board__name a:hover { color: var(--blue-bright); }
.board__sub { margin: 5px 0 0; font-size: 13px; color: var(--text-dim); display: flex; gap: 14px; flex-wrap: wrap; }

.board__bonus { font-family: var(--font-mono); font-size: 13px; color: var(--amber); white-space: nowrap; }
.board__go { position: relative; z-index: 1; }

/* ============================ ALL — 6-up tiles =========================== */

.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }

.tile {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); overflow: hidden;
  transition: border-color var(--t), transform var(--t), background var(--t);
}
.tile:hover { border-color: var(--line-3); background: var(--surface-2); transform: translateY(-4px); }
.tile__art { aspect-ratio: 1; overflow: hidden; border-bottom: 1px solid var(--line); }
.tile__art img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.tile:hover .tile__art img { transform: scale(1.07); }
.tile__body { padding: 12px 13px 14px; }
.tile__name { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--text-strong); }
.tile__name a { color: inherit; }
.tile__name a::after { content: ""; position: absolute; inset: 0; }
.tile__name a:hover { color: var(--blue-bright); }
.tile__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 9px; font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
}

/* ------------------------------------------------------- shared fragments */

.stars { display: inline-flex; gap: 1px; color: var(--amber); }
.star__bg { fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .34; }
.star__fg { fill: currentColor; }

.flag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--r-full);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  background: rgba(11, 15, 23, .78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
}
.flag--hot  { color: var(--amber); border-color: rgba(200, 155, 60, .45); }
.flag--new  { color: var(--blue-bright); border-color: var(--line-3); }
.flag--ver  { color: var(--text-dim); }

.bonus-tag {
  font-family: var(--font-mono); font-size: 12px; color: var(--amber);
  display: inline-flex; align-items: center; gap: 7px;
}
.bonus-tag::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--amber); opacity: .8;
}

.chip {
  display: inline-block; padding: 7px 14px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-full); font-size: 13px; color: var(--text);
}

/* ------------------------------------------------------------ breadcrumb */

.breadcrumb { padding-top: calc(var(--header-h) + 26px); padding-bottom: 6px; }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  list-style: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--blue-bright); }
.breadcrumb li[aria-current] { color: var(--text); }
.breadcrumb__sep { display: inline-flex; color: var(--text-dim); opacity: .5; }

/* ------------------------------------------------------------- apk hero  */

.apk-hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-block: 40px 52px;
}
.apk-hero__backdrop {
  position: absolute; inset: -18%; z-index: -2;
  background-size: cover; background-position: center;
  filter: blur(70px) saturate(1.5); transform: scale(1.2); opacity: .40;
}
.apk-hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(11, 15, 23, .74), rgba(11, 15, 23, .95)),
    radial-gradient(ellipse at 15% 0%, rgba(62, 130, 230, .22), transparent 62%);
}

.apk-hero__inner { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: center; }

.apk-hero__art {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgba(4, 8, 16, .9), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform var(--t);
}
.apk-hero__art:hover { transform: translateY(-4px); }
.apk-hero__art img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Badges live in normal flow — never absolutely positioned. */
.apk-hero__flags { position: static; display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }

.apk-hero__title { font-size: clamp(1.9rem, 3.7vw, 3.1rem); font-weight: 600; }
.apk-hero__lead { margin: 16px 0 0; color: var(--text-dim); }

/* Stat strip: divided by hairlines, no boxes. */
.statstrip {
  display: flex; flex-wrap: wrap; list-style: none;
  margin: 30px 0 0; border-top: 1px solid var(--line);
}
.statstrip li { padding: 18px 34px 0 0; margin-right: 34px; border-right: 1px solid var(--line); }
.statstrip li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.statstrip__label {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-dim);
}
.statstrip__label svg { color: var(--blue); }
.statstrip__value {
  display: block; margin-top: 8px;
  font-family: var(--font-display); font-size: 21px; font-weight: 600;
  color: var(--text-strong); letter-spacing: -.02em;
}
.statstrip__value.is-amber { color: var(--amber); }

.apk-hero__cta { margin-top: 34px; }

/* -------------------------------------------------- article + sidebar --- */

.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px;
  gap: 72px; padding-block: 68px 40px; align-items: start;
}
.layout--single { grid-template-columns: minmax(0, 1fr); }

.article { min-width: 0; font-size: 16.5px; line-height: 1.78; }
.article > :first-child { margin-top: 0; }
.article h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0 0 22px; }
.article h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 600;
  margin: 52px 0 18px; padding-top: 26px; border-top: 1px solid var(--line);
}
.article h3 { font-size: clamp(1.1rem, 1.8vw, 1.28rem); font-weight: 600; margin: 34px 0 12px; color: var(--blue-bright); }
.article p { margin: 0 0 19px; }
.article strong { color: var(--text-strong); font-weight: 600; }
.article a { text-decoration: underline; text-underline-offset: 3px; }

.article ul { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.article ul li { position: relative; padding-left: 26px; }
.article ul li::before {
  content: ""; position: absolute; left: 6px; top: .66em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
}

/* Sidebar — bordered blocks, not stacked cards. */
.sidebar { min-width: 0; }
.sidebar__sticky { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 26px; }

.panel { border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; background: var(--surface); }
.panel__title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .17em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px;
}
.panel--warn { background: rgba(224, 96, 94, .05); border-color: rgba(224, 96, 94, .22); }
.panel--warn .panel__title { color: var(--danger); display: flex; align-items: center; gap: 8px; }
.panel--warn p { margin: 0; font-size: 13.5px; color: var(--text-dim); line-height: 1.7; }

.datalist { margin: 0; display: flex; flex-direction: column; }
.datalist > div {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-top: 1px solid var(--line);
}
.datalist > div:first-child { border-top: 0; padding-top: 0; }
.datalist dt { color: var(--text-dim); font-size: 13.5px; }
.datalist dd { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--text-strong); text-align: right; }
.datalist dd.is-amber { color: var(--amber); }
.datalist__rating { display: inline-flex; align-items: center; gap: 8px; }

/* Related rail — horizontal scroll instead of another grid. */
.relrail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr);
  gap: 16px; overflow-x: auto; padding-bottom: 14px;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.relrail > * { scroll-snap-align: start; }
.relrail::-webkit-scrollbar { height: 6px; }
.relrail::-webkit-scrollbar-track { background: var(--surface); border-radius: 3px; }
.relrail::-webkit-scrollbar-thumb { background: var(--line-3); border-radius: 3px; }

/* -------------------------------------------------------------- warning */

.warning {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start;
  border: 1px solid rgba(224, 96, 94, .2); border-left: 3px solid var(--danger);
  border-radius: var(--r-md); padding: 32px;
  background: rgba(224, 96, 94, .04);
  margin-block: 56px 88px;
}
.warning__icon {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(224, 96, 94, .34); color: var(--danger);
  font-family: var(--font-mono); font-size: 18px; font-weight: 500;
}
.warning__title { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
.warning__body p { margin: 0; color: var(--text-dim); font-size: 15px; }
.warning__tips { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin-top: 20px; }

/* ------------------------------------------------------------ page hero */

.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero__backdrop {
  position: absolute; inset: -25%; z-index: -2;
  background-size: cover; background-position: center;
  filter: blur(80px) saturate(1.5); opacity: .32; transform: scale(1.25);
}
.page-hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(11, 15, 23, .7), rgba(11, 15, 23, .96)),
    radial-gradient(ellipse at 12% 0%, rgba(62, 130, 230, .24), transparent 60%);
}
.page-hero__inner { padding: calc(var(--header-h) + 80px) 28px 68px; }
.page-hero__eyebrow { margin-bottom: 16px; }
.page-hero__title { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 600; }
.page-hero__lead { margin: 20px 0 0; color: var(--text-dim); }

/* --------------------------------------------------------------- footer */

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

.site-footer__inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
  padding-block: 72px 52px;
}
.site-footer__blurb { margin: 20px 0 0; color: var(--text-dim); font-size: 14.5px; }
.site-footer__heading {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .17em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; font-weight: 500;
}
.site-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.site-footer__col a { color: var(--text); font-size: 14.5px; }
.site-footer__col a:hover { color: var(--blue-bright); }

/* Oversized outlined wordmark as a graphic element. */
.site-footer__wordmark {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(4rem, 15vw, 13rem); line-height: .8; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
  padding-bottom: 22px; user-select: none;
}

.site-footer__base {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  padding-block: 22px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
}
.site-footer__base p { margin: 0; }
.site-footer__age { color: var(--danger); }

/* -------------------------------------------------------------- to top */

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--text-strong);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--t), transform var(--t), visibility var(--t), border-color var(--t), background var(--t);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue); color: var(--blue-ink); border-color: var(--blue); }

/* ---------------------------------------------------------- breakpoints */

@media (max-width: 1280px) {
  .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; }
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__content { padding: 60px 28px 56px; max-width: var(--wrap); margin-inline: auto; width: 100%; }
  .hero__visual { min-height: 340px; order: -1; }
  .hero__visual::after {
    background:
      linear-gradient(to bottom, transparent 30%, var(--bg) 96%),
      linear-gradient(to right, rgba(11, 15, 23, .5), transparent 60%);
  }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail { grid-template-columns: 1fr 1fr; }
  .feature { grid-column: span 2; grid-row: auto; min-height: 380px; }
  .trustbar__inner { grid-template-columns: repeat(2, 1fr); }
  .trustbar__item:nth-child(2) { border-right: 0; }
  .trustbar__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .sidebar__sticky { position: static; display: contents; }
  .apk-hero__inner { grid-template-columns: 160px 1fr; gap: 30px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: rgba(8, 12, 19, .97);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--t), transform var(--t), visibility var(--t);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 28px 26px; }
  .nav__list > li + li { border-top: 1px solid var(--line); }
  .nav__link { padding: 15px 4px; border-radius: 0; font-size: 16px; }
  .nav__cta-wrap { margin: 16px 0 0; }
  .nav__cta-wrap .btn { width: 100%; }

  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sections { gap: 80px; padding-block: 72px 32px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 10px; }

  .board__row { grid-template-columns: 44px 56px 1fr auto; gap: 14px; padding: 15px 4px; }
  .board__rank { font-size: 22px; }
  .board__art { width: 56px; height: 56px; }
  .board__bonus { display: none; }

  .apk-hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .apk-hero__art { max-width: 150px; }
  .statstrip li { padding-right: 22px; margin-right: 22px; }
  .warning { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 34px; }
  .site-footer__brand { grid-column: span 2; }
}

@media (max-width: 620px) {
  .wrap { padding-inline: 20px; }
  .hero__content { padding-inline: 20px; }
  .hero__actions .btn { width: 100%; }
  .hero__stat { padding-right: 20px; margin-right: 20px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { grid-template-columns: 1fr; }
  .feature { grid-column: auto; min-height: 320px; padding: 22px; }
  .mini { grid-template-columns: 68px 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .trustbar__inner { grid-template-columns: 1fr; }
  .trustbar__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__brand { grid-column: auto; }
  .article { font-size: 16px; }
}

/* --------------------------------------------------------------- motion */

@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; animation: none; }
  .hero__visual::before { animation: none; }
}

/* =========================================================================
   ARTICLE SECTION LAYOUTS
   Long copy is broken into varied treatments so it never reads as one flat
   column. Wrappers only — the words are exactly as authored.
   ========================================================================= */

.sect { margin: 0 0 12px; }
.sect + .sect { padding-top: 8px; }

/* Intro: slightly larger, sets the tone. */
.sect--intro .sect__lead { font-size: 1.09em; color: var(--text); }
.sect--intro .sect__lead > p:first-child { color: var(--text-strong); }

/* Split: heading parks in a sticky left rail, body runs beside it. */
.sect--split {
  display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 48px; align-items: start;
}
.sect--split .sect__aside { position: sticky; top: calc(var(--header-h) + 28px); }
.sect--split .sect__aside h2 {
  margin: 0; padding: 0; border: 0;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}
.sect--split .sect__aside h2::after {
  content: ""; display: block; width: 44px; height: 2px; margin-top: 16px;
  background: var(--blue); border-radius: 2px;
}
.sect--split .sect__body > :first-child { margin-top: 0; }

/* Panel: body sits on a raised surface with a blue edge. */
.sect--panel .sect__panel {
  border: 1px solid var(--line); border-left: 2px solid var(--blue);
  border-radius: var(--r-md); background: var(--surface);
  padding: 28px 30px; margin-top: 6px;
}
.sect--panel .sect__panel > :last-child { margin-bottom: 0; }

/* Cols: list-heavy sections flow into two columns. */
.sect--cols .sect__cols { columns: 2; column-gap: 52px; }
/* The list itself must be allowed to flow across the column break — only the
   individual items are kept whole. Avoiding breaks on the <ul> would strand
   everything in column one. */
.sect--cols .sect__cols ul { break-inside: auto; margin-bottom: 14px; }
.sect--cols .sect__cols li { break-inside: avoid; }
.sect--cols .sect__cols h3 { break-after: avoid; margin-top: 0; }
.sect--cols .sect__cols > p:first-child { margin-top: 0; }

/* Image slot inside the split rail. */
.sect__media {
  margin: 24px 0 0; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line);
}
.sect__media img { width: 100%; height: auto; display: block; }

@media (max-width: 1024px) {
  .sect--split { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sect--split .sect__aside { position: static; }
  .sect--split .sect__aside h2::after { margin-top: 12px; }
  .sect--cols .sect__cols { columns: 1; }
}

@media (max-width: 620px) {
  .sect--panel .sect__panel { padding: 20px 18px; }
}

/* =========================================================================
   APK DETAIL PAGE — app-store pattern
   ========================================================================= */

.app-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.app-hero__backdrop {
  position: absolute; inset: -20%; z-index: -2;
  background-size: cover; background-position: center;
  filter: blur(74px) saturate(1.5); transform: scale(1.2); opacity: .38;
}
.app-hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(11, 15, 23, .76), rgba(11, 15, 23, .96)),
    radial-gradient(ellipse at 12% 0%, rgba(62, 130, 230, .24), transparent 62%);
}

.app-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px; align-items: center; padding-block: 44px 48px;
}

.app-hero__identity { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 30px; align-items: center; }

.app-hero__icon {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2);
  box-shadow: 0 26px 54px -18px rgba(4, 8, 16, .92), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.app-hero__icon img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Flags sit in normal flow, never absolutely positioned. */
.app-hero__flags { position: static; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.app-hero__title { font-size: clamp(1.8rem, 3.4vw, 2.9rem); font-weight: 600; }
.app-hero__lead { margin: 14px 0 0; color: var(--text-dim); }

/* Download panel */
.getpanel {
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: rgba(17, 24, 38, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  padding: 26px;
}
.getpanel__price {
  margin: 0; font-family: var(--font-display); font-size: 30px;
  font-weight: 600; color: var(--text-strong); letter-spacing: -.03em;
}
.getpanel__note { margin: 4px 0 20px; font-size: 13px; color: var(--text-dim); }
.getpanel__facts { display: flex; margin: 22px 0 0; border-top: 1px solid var(--line); }
.getpanel__facts > div { flex: 1; padding-top: 16px; text-align: center; border-right: 1px solid var(--line); }
.getpanel__facts > div:last-child { border-right: 0; }
.getpanel__facts dt {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-dim);
}
.getpanel__facts dd { margin: 7px 0 0; font-size: 13.5px; font-weight: 600; color: var(--text-strong); }

/* Proof strip */
.proofbar { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.proofbar__inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.proofbar__item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  padding: 22px 26px; border-right: 1px solid var(--line);
}
.proofbar__item:last-child { border-right: 0; }
.proofbar__value {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  color: var(--text-strong); letter-spacing: -.02em; line-height: 1.1;
}
.proofbar__label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-dim);
}

/* Closing CTA band */
.getcta {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 26px; align-items: center;
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(62, 130, 230, .14), rgba(17, 24, 38, .5));
  padding: 28px 32px; margin-top: 12px;
}
.getcta__art img { width: 84px; height: 84px; border-radius: var(--r-md); border: 1px solid var(--line-2); }
.getcta__title { font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 600; }
.getcta__copy p { margin: 8px 0 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); }

@media (max-width: 1100px) {
  .app-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .proofbar__inner { grid-template-columns: repeat(3, 1fr); }
  .proofbar__item:nth-child(3) { border-right: 0; }
  .proofbar__item:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .app-hero__identity { grid-template-columns: 104px minmax(0, 1fr); gap: 20px; }
  .getcta { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .getcta .btn { width: 100%; }
}

@media (max-width: 620px) {
  .proofbar__inner { grid-template-columns: repeat(2, 1fr); }
  .proofbar__item:nth-child(2n) { border-right: 0; }
  .app-hero__identity { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .app-hero__flags { justify-content: center; }
  .app-hero__icon { max-width: 128px; }
  .getpanel__facts { flex-direction: column; gap: 14px; }
  .getpanel__facts > div { border-right: 0; padding-top: 0; text-align: left; }
}
