/* ==========================================================================
   SVIP Club APK
   Design read: APK directory for Pakistani mobile players. Dark-tech,
   high-contrast consumer language. Scarlet accent on neutral near-black.
   Dials: DESIGN_VARIANCE 8 / MOTION_INTENSITY 6 / VISUAL_DENSITY 5.

   Locks:
     Theme   - dark only, every section, no mid-page inversion.
     Accent  - scarlet. One accent, used identically site-wide.
     Shape   - panels 14px, media 10px, buttons and chips full-pill.
     Type    - Geist for everything, Geist Mono for figures and labels.
   ========================================================================== */

:root {
  /* Surfaces: neutral near-black, never pure #000 */
  --bg:        #0b0b0d;
  --surface:   #141417;
  --surface-2: #1c1c21;
  --surface-3: #24242b;

  /* Ink: all values verified at WCAG AA against --bg and --surface */
  --ink:   #f4f4f5;
  --ink-2: #a9a9b2;
  --ink-3: #85858f;

  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);

  /* Scarlet. --red fills and borders, --red-text for type (AA on all surfaces) */
  --red:       #e8414f;
  --red-text:  #ff5c68;
  --red-deep:  #b31728;
  --red-mid:   #d62334;
  --red-wash:  rgba(232, 65, 79, 0.11);

  --amber: #f0b429;

  --r-panel: 14px;
  --r-media: 10px;
  --r-pill:  999px;

  --shell:  1240px;
  --gutter: 24px;
  --section-y: 80px;

  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-1: 150ms var(--e-out);
  --t-2: 240ms var(--e-out);
  --t-3: 320ms var(--e-out);

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

  --z-header: 90;
  --z-nav:    95;
  --z-float:  80;
}

/* ------------------------------------------------------------- reset ----- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

p { margin: 0 0 1rem; }

a { color: var(--red-text); text-decoration: none; transition: color var(--t-1); }
a:hover { color: #ff8f97; }

button, a, label, summary, select { cursor: pointer; }

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

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

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--red-mid);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

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

.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y); }

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(11, 11, 13, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  flex-shrink: 0;
  margin-right: auto;
}
.brand:hover { color: var(--ink); }

.brand__mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  object-fit: cover;
  background: var(--surface);
}

.brand__name {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand__name b { color: var(--red-text); font-weight: 600; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  position: relative;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color var(--t-1), background var(--t-1);
}
.nav__link:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

.nav__link.is-active {
  color: var(--ink);
  background: var(--red-wash);
  box-shadow: inset 0 0 0 1px rgba(232, 65, 79, 0.34);
}

.nav__cta {
  margin-left: 10px;
  padding: 9px 20px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--red-mid), var(--red-deep));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 20px -8px rgba(232, 65, 79, 0.8);
  transition: transform var(--t-1), box-shadow var(--t-2);
}
.nav__cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -8px rgba(232, 65, 79, 0.95);
}
.nav__cta:active { transform: translateY(0) scale(0.98); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.nav-toggle:hover { border-color: var(--line-strong); }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.nav-toggle[aria-expanded="true"] .i-open  { display: none; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  transition: transform var(--t-1), box-shadow var(--t-2),
              background var(--t-2), border-color var(--t-2), color var(--t-2);
}
.btn svg { flex-shrink: 0; }
.btn:active { transform: scale(0.98); }

/* White on this gradient measures 5.1:1 at the light end, 6.0:1 at the dark end */
.btn--primary {
  background: linear-gradient(135deg, var(--red-mid), var(--red-deep));
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(232, 65, 79, 0.85);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -12px rgba(232, 65, 79, 1);
}
.btn--primary:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--quiet {
  padding: 10px 16px;
  font-size: 0.85rem;
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--quiet:hover {
  color: #fff;
  background: var(--red-mid);
  border-color: var(--red-mid);
}

.btn--block { width: 100%; }
.btn--lg { padding: 16px 32px; font-size: 1rem; }

/* -------------------------------------------------------- home hero ----- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 88px);
}

.hero__bg {
  position: absolute;
  inset: -8% -4%;
  z-index: -2;
  background: url("/assets/img/hero-home.jpg") center / cover no-repeat;
  will-change: transform;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(96deg, rgba(11, 11, 13, 0.92) 2%, rgba(11, 11, 13, 0.55) 44%, rgba(11, 11, 13, 0.18) 100%),
    linear-gradient(180deg, rgba(11, 11, 13, 0.45), transparent 30%, rgba(11, 11, 13, 0.66));
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero__copy { max-width: 34rem; }

.hero__title {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  font-weight: 600;
  color: var(--red-text);
  line-height: 1.1;
  padding-bottom: 0.06em;
  display: inline-block;
}

.hero__lede {
  color: var(--ink-2);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  max-width: 44ch;
  margin-bottom: 30px;
}

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

/* Right side: the real app artwork, stacked with depth. Not a mock screenshot. */
.hero__stack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: center;
}

.hero-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-panel);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.95);
}
.hero-tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-tile:nth-child(1) { transform: translateY(26px) rotate(-4deg); }
.hero-tile:nth-child(2) { transform: translateY(-16px) rotate(1.5deg) scale(1.1); z-index: 2; }
.hero-tile:nth-child(3) { transform: translateY(30px) rotate(4.5deg); }

.hero-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

/* ---------------------------------------------------------- key figures -- */

.figures {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg));
}

.figures__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-inline: 1px solid var(--line);
}

.figure {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 22px;
  background: var(--bg);
}
.figure__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-media);
  background: var(--red-wash);
  border: 1px solid rgba(232, 65, 79, 0.28);
  color: var(--red-text);
}
.figure__value {
  display: block;
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.figure__label {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-3);
}

/* --------------------------------------------------- section headings ---- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 5px 13px;
  border: 1px solid rgba(232, 65, 79, 0.3);
  border-radius: var(--r-pill);
  background: var(--red-wash);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--red-text);
}

.head { margin-bottom: 32px; max-width: 60ch; }
.head__title { font-size: clamp(1.6rem, 3.1vw, 2.3rem); margin-bottom: 10px; }
.head__sub { color: var(--ink-2); margin: 0; }

.head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}
.head--row > div { max-width: 58ch; }

/* ------------------------------------ NEWEST: horizontal scroll rail ----- */

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 32%);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
  padding-bottom: 18px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: var(--r-pill); }
.rail::-webkit-scrollbar-thumb:hover { background: var(--red-deep); }

.drop {
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--t-2), transform var(--t-2);
}
.drop:hover { border-color: rgba(232, 65, 79, 0.5); transform: translateY(-3px); }
.drop:focus-within { border-color: var(--red); }

/* Positioning context for the badge and the title block */
.drop__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.drop__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 11, 13, 0.15) 0%, transparent 34%, rgba(11, 11, 13, 0.95));
}

/* A blurred copy of the square icon fills the wide frame, so the icon itself
   can sit uncropped on top of it. */
.drop__wash {
  position: absolute;
  inset: -25%;
  background-size: cover;
  background-position: center;
  filter: blur(34px) saturate(1.5);
  opacity: 0.55;
  transform: scale(1.1);
}

.drop__art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 14px 14px 74px;
}
.drop__art img {
  width: auto;
  height: 100%;
  max-width: 46%;
  object-fit: contain;
  border-radius: var(--r-media);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.9);
  transition: transform var(--t-3);
}
.drop:hover .drop__art img { transform: scale(1.05); }

.drop__badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
}

.drop__head {
  position: absolute;
  left: 16px; right: 16px; bottom: 13px;
  z-index: 3;
}
.drop__name { font-size: 1.15rem; margin-bottom: 2px; }
.drop__name a { color: var(--ink); }
.drop:hover .drop__name a { color: #fff; }
.drop__bonus {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--red-text);
  margin: 0;
}

.drop__foot {
  display: grid;
  gap: 11px;
  padding: 13px 14px 14px;
}
.drop__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  white-space: nowrap;
  color: var(--ink-3);
}
.drop__meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ------------------------------------------ HOT: ranked leaderboard ------ */

.ranks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rank {
  display: grid;
  grid-template-columns: 42px 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
  transition: border-color var(--t-2), background var(--t-2), transform var(--t-2);
}
.rank:hover {
  border-color: rgba(232, 65, 79, 0.45);
  background: var(--surface-2);
  transform: translateX(3px);
}
.rank:focus-within { border-color: var(--red); }

.rank__no {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.rank:nth-child(-n + 3) .rank__no { color: var(--red-text); }

.rank__art {
  width: 60px; height: 60px;
  border-radius: var(--r-media);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  flex-shrink: 0;
}
.rank__art img { width: 100%; height: 100%; object-fit: cover; }

.rank__body { min-width: 0; }
.rank__name {
  font-size: 0.99rem;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank__name a { color: var(--ink); }
.rank:hover .rank__name a { color: #fff; }

.rank__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-3);
}
.rank__meta b { color: var(--red-text); font-weight: 500; }

/* ------------------------------------------- ALL GAMES: compact grid ----- */

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

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
  transition: border-color var(--t-2), transform var(--t-2), background var(--t-2);
}
.tile:hover {
  border-color: rgba(232, 65, 79, 0.45);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.tile:focus-within { border-color: var(--red); }

.tile__art {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
  border-radius: var(--r-media);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.tile__art img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-3); }
.tile:hover .tile__art img { transform: scale(1.06); }
.tile__art .badge { position: absolute; top: 7px; right: 7px; z-index: 2; }

.tile__name {
  font-size: 0.92rem;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile__name a { color: var(--ink); }
.tile:hover .tile__name a { color: #fff; }

.tile__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 11px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
}
.tile__meta .rate { display: inline-flex; align-items: center; gap: 5px; }
.tile__bonus { color: var(--red-text); }

.tile .btn { margin-top: auto; }

/* ------------------------------------------------------------ badges ----- */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge--hot { background: var(--red-mid); color: #fff; }
.badge--new { background: var(--ink); color: var(--bg); }

/* ------------------------------------------------------------- stars ----- */

.stars { display: inline-flex; gap: 1px; }
.star { fill: currentColor; }
.star.is-full  { color: var(--red); }
.star.is-half  { color: var(--red); opacity: 0.5; }
.star.is-empty { color: rgba(255, 255, 255, 0.18); }

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

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding-block: 18px;
  font-size: 0.82rem;
  color: var(--ink-3);
}
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--red-text); }
.crumbs svg { color: var(--ink-3); flex-shrink: 0; }
.crumbs [aria-current] { color: var(--ink); }

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

.apk-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 44px;
}

.apk-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("/assets/img/hero-apk.jpg") center / cover no-repeat;
}

/* The game's own artwork, blurred, as a colour wash keyed to that app */
.apk-hero__wash {
  position: absolute;
  inset: -20%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: blur(70px) saturate(1.6);
  opacity: 0.5;
}

.apk-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(11, 11, 13, 0.9) 8%, rgba(11, 11, 13, 0.72) 52%, rgba(11, 11, 13, 0.88));
}

.apk-hero__inner {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.5vw, 42px);
  padding: clamp(24px, 3.6vw, 40px);
}

.apk-hero__art {
  flex-shrink: 0;
  width: clamp(112px, 13vw, 158px);
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.95),
              0 0 0 6px rgba(232, 65, 79, 0.08);
}
.apk-hero__art img { width: 100%; height: 100%; object-fit: cover; }

.apk-hero__meta { min-width: 0; flex: 1; }

/* Detail-page flags sit in the normal flow, never absolutely positioned */
.apk-hero__flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.apk-hero__flags .badge { position: static; }

.vchip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(20, 20, 23, 0.75);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-2);
}

.apk-hero__title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 18px;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}
.spec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(20, 20, 23, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink);
}
.spec svg { color: var(--ink-3); flex-shrink: 0; }
.spec__k { color: var(--ink-3); }
.spec--accent { color: var(--red-text); }
.spec--accent svg { color: var(--red-text); }

/* --------------------------------------------------- article + aside ----- */

.apk-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 328px;
  gap: 36px;
  align-items: start;
}

.aside {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
}

.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
}
.panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.panel__title svg { color: var(--red-text); }

.rows { margin: 0; }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 8px;
  font-size: 0.87rem;
}
.row + .row { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.row dt { color: var(--ink-3); }
.row dd {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.row dd.accent { color: var(--red-text); }

.panel--note {
  border-color: rgba(240, 180, 41, 0.32);
  background: rgba(240, 180, 41, 0.05);
}
.panel--note .panel__title { color: var(--amber); }
.panel--note .panel__title svg { color: var(--amber); }
.panel--note p { margin: 0; font-size: 0.84rem; color: var(--ink-2); }

/* ------------------------------------------------------- article body ---- */

.article { max-width: 74ch; }
.article > :first-child { margin-top: 0; }

.article .article-title {
  font-size: clamp(1.5rem, 2.9vw, 2rem);
  margin: 0 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.article h2 {
  font-size: clamp(1.25rem, 2.3vw, 1.55rem);
  margin: 38px 0 12px;
}
.article h3 {
  font-size: 1.06rem;
  margin: 24px 0 8px;
  color: var(--ink);
}
.article h4 { font-size: 0.98rem; margin: 18px 0 6px; }

.article p { color: var(--ink-2); line-height: 1.75; }
.article strong { color: var(--ink); font-weight: 600; }

.article-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 9px;
}
.article-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  line-height: 1.7;
}
.article-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 11px; height: 6px;
  border-left: 1.8px solid var(--red);
  border-bottom: 1.8px solid var(--red);
  transform: rotate(-45deg);
}

.table-wrap {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.87rem;
}
.article-table th {
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink);
}
.article-table td {
  padding: 11px 16px;
  color: var(--ink-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.article-table tr:last-child td { border-bottom: 0; }
.article-table td:first-child { color: var(--ink); font-family: var(--mono); font-size: 0.83rem; }

/* ---------------------------------------------------------- FAQ list ----- */

.faq {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  border: 0;
  padding: 0;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--t-2), background var(--t-2);
}
.faq__item:hover { border-color: var(--line-strong); }
.faq__item[open] {
  border-color: rgba(232, 65, 79, 0.4);
  background: var(--surface-2);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  list-style: none;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  transition: color var(--t-1);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__item:hover .faq__q { color: #fff; }
.faq__item[open] .faq__q { color: var(--red-text); }

.faq__sign {
  flex-shrink: 0;
  position: relative;
  width: 20px; height: 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  transition: transform var(--t-2), border-color var(--t-2);
}
.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: opacity var(--t-2);
}
.faq__sign::before { width: 9px; height: 1.5px; }
.faq__sign::after  { width: 1.5px; height: 9px; }
.faq__item[open] .faq__sign { transform: rotate(180deg); border-color: var(--red); }
.faq__item[open] .faq__sign::after { opacity: 0; }

.faq__a {
  padding: 0 18px 16px;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.7;
}
.faq__a > :last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] .faq__a { animation: faq-in 240ms var(--e-out); }
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}

/* -------------------------------------------------------- page banner ---- */

.banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-block: clamp(48px, 6.5vw, 80px);
}
.banner__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/img/hero-page.jpg") center / cover no-repeat;
}
.banner__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 11, 13, 0.72), rgba(11, 11, 13, 0.94));
}
.banner__title {
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  max-width: 24ch;
}
.banner__sub {
  margin: 14px 0 0;
  color: var(--ink-2);
  max-width: 58ch;
}
.banner__cta { margin: 24px 0 0; }

/* -------------------------------------------------- responsible panel ---- */

.warn {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 22px;
  padding: clamp(22px, 3.4vw, 34px);
  border: 1px solid rgba(240, 180, 41, 0.26);
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(240, 180, 41, 0.06), transparent 60%), var(--surface);
}
.warn__icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid rgba(240, 180, 41, 0.3);
  background: rgba(240, 180, 41, 0.08);
  color: var(--amber);
}
.warn__title { font-size: 1.3rem; margin-bottom: 12px; }
.warn p { color: var(--ink-2); max-width: 72ch; }
.warn p:last-of-type { margin-bottom: 18px; }

.tips { display: flex; flex-wrap: wrap; gap: 8px; }
.tips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: 0.79rem;
  color: var(--ink-2);
}
.tips svg { color: var(--amber); }

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

.site-footer {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg), var(--surface));
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: 52px;
}

.site-footer__blurb {
  margin-top: 14px;
  max-width: 40ch;
  font-size: 0.88rem;
  color: var(--ink-3);
}

.fcol h2 {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.fcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.fcol a { font-size: 0.89rem; color: var(--ink-2); }
.fcol a:hover { color: var(--red-text); }

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.79rem;
  color: var(--ink-3);
}
.site-footer__legal { margin: 0; max-width: 76ch; }
.site-footer__copy  { margin: 0; font-family: var(--mono); }

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

.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: var(--z-float);
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(20, 20, 23, 0.9);
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t-2), transform var(--t-2), visibility var(--t-2),
              background var(--t-2), border-color var(--t-2);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-mid); border-color: var(--red-mid); color: #fff; }

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

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-3), transform var(--t-3);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise 620ms var(--e-out) backwards; }
  .hero__copy > *:nth-child(1) { animation-delay: 40ms; }
  .hero__copy > *:nth-child(2) { animation-delay: 110ms; }
  .hero__copy > *:nth-child(3) { animation-delay: 180ms; }
  .hero__copy > *:nth-child(4) { animation-delay: 250ms; }
  .hero-tile { animation: rise 720ms var(--e-out) backwards; }
  .hero-tile:nth-child(1) { animation-delay: 200ms; }
  .hero-tile:nth-child(2) { animation-delay: 120ms; }
  .hero-tile:nth-child(3) { animation-delay: 280ms; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
}


/* ======================================================= homepage brief === */
/* Full-bleed article laid out as a bento of cards, not a single prose column */

.brief__lead {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin-bottom: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.brief__title {
  font-size: clamp(1.7rem, 3.3vw, 2.5rem);
  margin-bottom: 16px;
  max-width: 22ch;
}

.brief__intro p {
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 64ch;
}
.brief__intro p:last-child { margin-bottom: 0; }

.brief__art {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.brief__art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-panel);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.95);
}
.brief__art img:nth-child(1) { transform: rotate(-2.5deg); }
.brief__art img:nth-child(2) { transform: rotate(1.5deg) translateY(-10px); }
.brief__art img:nth-child(3) { transform: rotate(2deg) translateY(6px); }
.brief__art img:nth-child(4) { transform: rotate(-1.5deg); }

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

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
  transition: border-color var(--t-2), background var(--t-2);
}
.card:hover { border-color: var(--line-strong); }

.card--narrow { grid-column: span 2; }
.card--wide   { grid-column: span 3; }
.card--full   { grid-column: 1 / -1; }

.card__body { padding: 22px; }

.card__title {
  font-size: 1.08rem;
  line-height: 1.28;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.card__text > :last-child { margin-bottom: 0; }
.card__text p {
  color: var(--ink-2);
  font-size: 0.93rem;
  line-height: 1.72;
}
.card__text h3 {
  font-size: 0.98rem;
  margin: 18px 0 7px;
  color: var(--ink);
}
.card__text .article-list { margin-bottom: 14px; }
.card__text .article-list li { font-size: 0.9rem; }
.card__text .table-wrap { margin-bottom: 14px; background: var(--bg); }

/* Cards carrying artwork: a tinted banner keyed to the app icon */
.card--art .card__art {
  position: relative;
  height: 132px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.card--art .card__art img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(26px) saturate(1.6);
  transform: scale(1.25);
  opacity: 0.62;
}
.card--art .card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 13, 0.18), var(--surface));
}

.card--faq { background: transparent; border-color: transparent; }
.card--faq .card__body { padding: 8px 0 0; }
.card--faq .article h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 0 0 18px;
}

/* ========================================================= apk showcase === */

.showcase {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(32px, 4.4vw, 52px);
}
.showcase__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("/assets/img/hero-apk.jpg") center / cover no-repeat;
}
.showcase__wash {
  position: absolute;
  inset: -25%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: blur(80px) saturate(1.7);
  opacity: 0.55;
}
.showcase__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 100% at 22% 40%, rgba(232, 65, 79, 0.14), transparent 70%),
    linear-gradient(100deg, rgba(11, 11, 13, 0.93) 6%, rgba(11, 11, 13, 0.74) 55%, rgba(11, 11, 13, 0.9));
}

.crumbs--on-art { padding-block: 16px 8px; }

.showcase__inner {
  display: grid;
  grid-template-columns: clamp(140px, 16vw, 196px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 3.4vw, 44px);
  padding-top: 12px;
}

.showcase__art {
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 34px 70px -26px rgba(0, 0, 0, 0.98),
              0 0 0 7px rgba(232, 65, 79, 0.09);
}
.showcase__art img { width: 100%; height: 100%; object-fit: cover; }

.showcase__flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.showcase__flags .badge { position: static; }

.showcase__title {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  margin-bottom: 12px;
}

.showcase__lede {
  color: var(--ink-2);
  max-width: 62ch;
  margin-bottom: 22px;
}

.showcase__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.showcase__note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-3);
}
.showcase__note svg { color: var(--red-text); }

/* ========================================================== spec band ===== */

.specband {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.specband__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
}
.specband__item {
  padding: 18px 18px 16px;
  background: var(--surface);
}
.specband__item:first-child { padding-left: 0; }

.specband__item dt {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  font-size: 0.76rem;
  color: var(--ink-3);
}
.specband__item dt svg { color: var(--ink-3); }
.specband__item dd {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.specband__item--accent dd { color: var(--red-text); }
.specband__item--accent dt svg { color: var(--red-text); }

/* ===================================================== reading column ==== */

.reading__grid {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.toc { position: sticky; top: 92px; }
.toc__title {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.toc__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  border-left: 1px solid var(--line);
}
.toc__list li { counter-increment: toc; }
.toc__list a {
  display: block;
  padding: 7px 0 7px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--ink-3);
  transition: color var(--t-1), border-color var(--t-1);
}
.toc__list a:hover { color: var(--ink); border-left-color: var(--line-strong); }
.toc__list a.is-current { color: var(--red-text); border-left-color: var(--red); }

.toc__note {
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(240, 180, 41, 0.26);
  border-radius: var(--r-media);
  background: rgba(240, 180, 41, 0.05);
}
.toc__note svg { color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.toc__note p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.article--wide { max-width: none; }
.article--wide > p,
.article--wide > .article-list { max-width: 76ch; }
.article--wide h2 { scroll-margin-top: 96px; }

/* ============================================================ dock bar === */

.dockbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-float);
  border-top: 1px solid var(--line);
  background: rgba(11, 11, 13, 0.93);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transform: translateY(100%);
  transition: transform var(--t-2);
}
.dockbar.is-docked { transform: none; }
.dockbar[hidden] { display: block; }

.dockbar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 11px;
}
.dockbar__art {
  width: 40px; height: 40px;
  border-radius: 9px;
  border: 1px solid var(--line);
  object-fit: cover;
  flex-shrink: 0;
}
.dockbar__name { font-weight: 600; white-space: nowrap; }
.dockbar__meta {
  margin-right: auto;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-3);
  white-space: nowrap;
}
.dockbar .btn { padding: 11px 22px; font-size: 0.9rem; }

/* Keep the dock bar clear of the scroll-to-top control */
body:has(.dockbar.is-docked) .to-top { bottom: 88px; }

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

@media (max-width: 1180px) {
  .grid, .grid--five { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .site-header__inner { gap: 16px; }
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    z-index: var(--z-nav);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px var(--gutter) 22px;
    background: rgba(11, 11, 13, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--t-2), transform var(--t-2), visibility var(--t-2);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 13px 16px; border-radius: 10px; font-size: 1rem; }
  .nav__cta { margin: 8px 0 0; text-align: center; justify-content: center; }

  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { max-width: 40rem; }
  .hero__stack { max-width: 520px; }

  .apk-body { grid-template-columns: minmax(0, 1fr); }
  .aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .aside > .btn, .aside > .panel--note { grid-column: 1 / -1; }

  .grid, .grid--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .figures__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ranks { grid-template-columns: minmax(0, 1fr); }
  .apk-hero__inner { flex-direction: column; align-items: flex-start; }
  .warn { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .head--row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .grid, .grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aside { grid-template-columns: minmax(0, 1fr); }
  .site-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .rail { grid-auto-columns: minmax(258px, 78%); }
  .rank { grid-template-columns: 32px 52px minmax(0, 1fr); row-gap: 10px; }
  .rank .btn { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 560px) {
  /* Two cards across a phone leaves no room for rating and bonus on one line */
  .tile__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
}

@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .grid, .grid--five { gap: 12px; }
  .tile { padding: 11px; }
  .figure { padding: 20px 16px; gap: 12px; }
}



@media (max-width: 1180px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card--narrow { grid-column: span 2; }
  .card--wide   { grid-column: span 2; }
  .specband__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reading__grid { grid-template-columns: 200px minmax(0, 1fr); }
}

@media (max-width: 1024px) {
  .brief__lead { grid-template-columns: minmax(0, 1fr); }
  .brief__art { max-width: 420px; }
  .reading__grid { grid-template-columns: minmax(0, 1fr); }
  .toc {
    position: static;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-panel);
    background: var(--surface);
  }
  .toc__list { columns: 2; column-gap: 22px; margin-bottom: 16px; }
  .showcase__inner { grid-template-columns: clamp(120px, 22vw, 170px) minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .specband__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specband__item:first-child { padding-left: 18px; }
}

@media (max-width: 768px) {
  :root { --section-y: 56px; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card--narrow, .card--wide, .card--full { grid-column: 1 / -1; }
  .card__body { padding: 18px; }
  .toc__list { columns: 1; }
  .showcase__inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }
  .showcase__art { width: 116px; margin-bottom: 0; }
  .dockbar__name, .dockbar__meta { display: none; }
  .dockbar .btn { flex: 1; }
  .brief__art { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .brief__art img { transform: none; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .tile:hover, .drop:hover, .rank:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .to-top, .aside,
  .hero__bg, .hero__scrim, .apk-hero__bg, .apk-hero__wash { display: none; }
  body { background: #fff; color: #000; }
}
