/* shimeji.app - "Clean Studio" design (picked 2026-11-18), generated pages share this one file:
   home, category, character, /mascots/, /download/, legal pages, 404 and the iPhone app pages.
   Sections: tokens, base, type, buttons + badges, header, hero, phone, stage, features (bento), catalog,
   iphone, cta + parade, footer, overlays, character page, page types, motion, dark tweaks, reduced motion.
   The font's @font-face is inlined in each page's <head> by generate_site.py (versioned URL, same as the
   preload), so this file references no other file (the fallback faces below use local() system fonts only). */

/* ------------------------------------------------------------------ fonts */
/* Metric-matched fallback for the swap (font-display: swap): Arial (Roboto on Android) scaled to Instrument Sans'
   average advance width, per weight and per width axis (display lines use wdth 86-92, body wdth 100), with its
   ascent/descent (0.97 / 0.25 em; overrides are divided by size-adjust). Line heights are unitless, so when widths
   match the text keeps its line breaks and the swap barely moves anything. Measured in Chrome on the site's own
   copy: Instrument Sans 700 @ 88% = 0.863 x Arial Bold, 600-650 @ 100% = 0.97, 420 @ 100% = 1.018 x Arial. */
@font-face { font-family: "Instrument Sans Fallback"; src: local("Arial"), local("ArialMT"), local("Roboto"), local("Roboto-Regular");
  font-weight: 100 549; font-stretch: 95% 100%; size-adjust: 101.8%; ascent-override: 95.3%; descent-override: 24.6%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Sans Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold");
  font-weight: 550 900; font-stretch: 95% 100%; size-adjust: 96.5%; ascent-override: 100.5%; descent-override: 25.9%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Sans Fallback"; src: local("Arial"), local("ArialMT"), local("Roboto"), local("Roboto-Regular");
  font-weight: 100 549; font-stretch: 50% 94.9%; size-adjust: 92%; ascent-override: 105.4%; descent-override: 27.2%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Sans Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold");
  font-weight: 550 900; font-stretch: 50% 94.9%; size-adjust: 87%; ascent-override: 111.5%; descent-override: 28.7%; line-gap-override: 0%; }

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-2: #f3f3f5;
  --bg-3: #e8e7ec;
  --ink: #121118;
  --ink-2: #5f5c69;
  --line: #e3e2e8;
  --accent: #d6156f;
  --accent-ink: #ffffff;
  --accent-soft: #fde8f1;
  --focus: #d6156f;
  --shadow-ink: 20 16 30;
  --phone-body: linear-gradient(155deg, #45434c 0%, #17161b 22%, #0e0d11 60%, #2c2b32 100%);
  --phone-rim: rgba(255, 255, 255, .16);
  --phone-btn: #2a2930;
  --phone-glow: 0 40px 70px -30px rgba(20, 16, 30, .45), 0 80px 140px -60px rgba(20, 16, 30, .35);
  --spot: transparent;
  --arch: linear-gradient(180deg, #ffd6e7 0%, #ffc2dc 100%);
  --slab: #d6156f;          /* the one full accent surface: closing CTA */
  --slab-ink: #ffffff;      /* 5.0:1 on --slab */

  --font: "Instrument Sans", "Instrument Sans Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1240px;
  --r-tile: clamp(24px, 2.4vw, 36px);
  --r-pill: 999px;
  --sprite: clamp(56px, 6.6vw, 96px);
  --bh: 48px;            /* store badge height */
  --header-h: 64px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0a0f;
    --bg-2: #16151c;
    --bg-3: #221f2a;
    --ink: #f4f3f8;
    --ink-2: #a9a6b2;
    --line: #2a2932;
    --accent: #ff4f9b;
    --accent-ink: #1a0610;
    --accent-soft: #2b1220;
    --focus: #ff4f9b;
    --shadow-ink: 0 0 0;
    --phone-body: linear-gradient(155deg, #5a5862 0%, #1e1d23 22%, #121116 60%, #3a3941 100%);
    --phone-rim: rgba(255, 255, 255, .22);
    --phone-btn: #3a3941;
    --phone-glow: 0 0 0 1px rgba(255, 255, 255, .04), 0 50px 120px -40px rgba(255, 79, 155, .30);
    --spot: radial-gradient(closest-side, rgba(255, 255, 255, .15), rgba(255, 255, 255, .05) 65%, rgba(255, 255, 255, 0) 100%);
    --arch: linear-gradient(180deg, #4a1530 0%, #2a0d1c 100%);
    --slab: #ff4f9b;
    --slab-ink: #1a0610;    /* 6.5:1 on --slab */
  }
}

/* -------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 64px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 420;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* -------------------------------------------------------------------- type */
.display-xl, .display-l, .display-m, .display-s {
  display: block;
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: -.04em;
  line-height: .92;
  text-wrap: balance;
}
.display-xl { font-size: clamp(3rem, 1.1rem + 8vw, 8.25rem); letter-spacing: -.042em; line-height: .9; font-stretch: 88%; }
.display-l  { font-size: clamp(2.6rem, 1rem + 6vw, 6.5rem); }
.display-m  { font-size: clamp(2.2rem, 1.1rem + 3.6vw, 4.25rem); letter-spacing: -.045em; line-height: .96; }
.display-s  { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -.035em; line-height: 1.05; font-stretch: 92%; }

.dot { color: var(--accent); }            /* signature: raspberry full stops on display lines */
.cta .dot { color: inherit; }
.lede { font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem); line-height: 1.42; color: var(--ink-2); font-weight: 450; letter-spacing: -.01em; }
.section-sub { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 36em; margin-inline: auto; text-wrap: pretty; }
.fine { font-size: .9375rem; color: var(--ink-2); }

.app-chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(.9375rem, .9rem + .2vw, 1.0625rem);
  font-weight: 600; letter-spacing: -.01em; line-height: 1.2;
  color: var(--ink);
  padding: 6px 16px 6px 6px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
}
.app-chip img { width: 28px; height: 28px; border-radius: 8px; background: #fff; }
.app-chip-quiet { padding: 7px 14px; color: var(--ink-2); font-weight: 550; }
.app-chip-quiet a { text-decoration: none; }
.app-chip-quiet a:hover { color: var(--accent); }

/* --------------------------------------------------------- buttons, badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px;
  border-radius: var(--r-pill); border: 0;
  font-weight: 600; font-size: 1rem; letter-spacing: -.01em; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease-out), background-color .2s, box-shadow .25s;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.0625rem; }

.badges { display: flex; flex-wrap: wrap; gap: calc(var(--bh) / 4 + 2px); align-items: center; }
.badges-center { justify-content: center; }
.badge {
  display: block; border-radius: calc(var(--bh) * .2);
  transition: transform .25s var(--ease-out);
}
.badge img { height: var(--bh); width: auto; }
.badge:hover { transform: translateY(-2px); }
/* platform nicety, set by site.js */
.is-android .badge-apple { display: none; }
.is-ios .badge-google { display: none; }
.is-android .badges-solo, .is-android .badges-solo .badge-apple { display: flex; }
.is-android .badges-solo .badge-apple { display: block; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 70%, transparent);
}
.header-in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; font-stretch: 90%; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a {
  text-decoration: none; font-weight: 550; font-size: .9375rem; color: var(--ink-2);
  padding: 8px 14px; border-radius: var(--r-pill); transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.header-in .btn { margin-left: auto; }
.nav + .btn { margin-left: 0; }

@media (max-width: 760px) {
  :root { --header-h: 56px; }
  .site-header { position: relative; }
  html { scroll-padding-top: 72px; }
  .header-in { flex-wrap: wrap; height: auto; column-gap: 16px; row-gap: 0; }
  .brand, .header-in > .btn { height: var(--header-h); }
  .header-in > .btn { height: 40px; margin-block: 8px; }
  /* the four anchors become a second, scrollable pill row (the header is not sticky here) */
  .nav {
    order: 3; flex: 0 0 calc(100% + 2 * var(--gutter)); margin: -4px calc(var(--gutter) * -1) 0;
    padding: 0 var(--gutter) 10px; gap: 6px;
    overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
    mask: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a:focus-visible { outline-offset: -3px; }   /* inside the pill: the scroll row would clip an outer ring */
  .nav a { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; background: var(--bg-2); color: var(--ink); font-size: .875rem; }
  .nav + .btn { margin-left: auto; }
  .brand img { width: 32px; height: 32px; }
}

/* -------------------------------------------------------------------- hero */
/* the characters are the product, so the hero gives them the scale (bigger than anywhere else) */
/* --hero-pw (phone width) and --hero-gap (three-column gap) live on :root: the consent card uses them too */
:root { --hero-pw: clamp(204px, 56vw, 236px); --hero-gap: clamp(104px, 9vw, 150px); }
@media (min-width: 761px) { :root { --hero-pw: clamp(236px, 30vw, 270px); } }
@media (min-width: 1180px) { :root { --hero-pw: clamp(280px, 24vw, 350px); } }
.hero {
  --sprite: clamp(64px, 8vw, 128px);
  position: relative; overflow-x: clip; padding-top: clamp(28px, 3.6vw, 52px);
}
.hero-head { text-align: center; }
.hero-title { display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 2vw, 28px); font-weight: 700; }
.hero-title .display-xl { max-width: 11.5em; }
.ln { display: block; padding-bottom: .08em; margin-bottom: -.08em; overflow: clip; }
.ln > span { display: block; }

.hero-row {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 28px;
  margin-top: clamp(24px, 3vw, 40px);
  text-align: center;
}
.hero-left { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 34em; }
.hero-left .lede { max-width: 30em; }
.hero-phone { position: relative; z-index: 2; order: 2; margin-top: calc(var(--sprite) + 16px); }
.hero-right { order: 1; }

/* the one bold color moment of the hero: a pink arch standing on the floor line behind the phone.
   It stays inside the column gap, so the badges keep a plain background. */
.hero-phone::before {
  content: ""; position: absolute; z-index: -2; pointer-events: none;
  left: 50%; width: calc(var(--hero-pw) * 1.62); margin-left: calc(var(--hero-pw) * -.81);
  top: calc(var(--sprite) * -.42); bottom: 1px;
  border-radius: 999px 999px 0 0;
  background: var(--arch);
}
/* contact shadow: the phone stands on the line like the characters do */
.hero-phone::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 8%; right: 8%; bottom: -7px; height: 16px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--shadow-ink) / .30), rgba(var(--shadow-ink) / 0));
}

.proof { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 8px; }
.proof p { font-size: .9375rem; color: var(--ink-2); line-height: 1.3; }
.proof strong { color: var(--ink); font-weight: 650; }
.proof-rating { display: inline-flex; align-items: center; gap: 10px; flex-basis: 100%; justify-content: center; }
.proof-num { font-weight: 700; color: var(--ink); font-size: 1.5rem; letter-spacing: -.03em; line-height: 1; }
.proof-line { padding: 0 clamp(8px, 2.6vw, 14px); white-space: nowrap; }
.proof-line + .proof-line { border-left: 1px solid var(--line); }
.proof-src { flex-basis: 100%; font-size: .8125rem !important; }
.stars {
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.6l2.6 5.5 6 .8-4.4 4.1 1.1 5.9L10 15l-5.3 2.9 1.1-5.9L1.4 7.9l6-.8z'/%3E%3C/svg%3E");
  position: relative; display: inline-block; width: 92px; height: 18px;
  background: var(--line);
  -webkit-mask: var(--star) 0 0 / 18.4px 18px repeat-x; mask: var(--star) 0 0 / 18.4px 18px repeat-x;
}
.stars-fill { position: absolute; inset: 0; width: calc(var(--r) * 100%); background: var(--accent); }

@media (min-width: 1180px) {
  :root { --bh: 54px; }
  .hero { padding-top: 20px; }
  .hero-title { gap: 14px; }
  .hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) auto minmax(0, .85fr);
    column-gap: var(--hero-gap);
    align-items: start;
    text-align: left;
    margin-top: calc(var(--sprite) + 12px);
  }
  .hero-phone { grid-column: 2; grid-row: 1; margin-top: 0; }
  /* hugs the phone, but reads left-aligned (no ragged left edge) */
  .hero-left {
    grid-column: 1; grid-row: 1; justify-self: end; align-items: flex-start; text-align: left;
    margin-top: clamp(40px, 4.4vw, 72px); max-width: 22em; gap: 28px;
  }
  .hero-left .lede { font-size: clamp(1.1875rem, .9rem + .4vw, 1.3125rem); }
  .hero-left .badges { justify-content: flex-start; }
  .hero-right { grid-column: 3; grid-row: 1; justify-self: start; margin-top: clamp(40px, 4.4vw, 72px); }
  .proof { flex-direction: column; align-items: flex-start; gap: 0; max-width: none; }
  .proof p { font-size: 1rem; }
  .proof-rating { flex-direction: row; align-items: center; gap: 14px; margin-bottom: 14px; flex-basis: auto; justify-content: flex-start; }
  .proof-num { font-size: clamp(3rem, 1.6rem + 2vw, 3.75rem); line-height: .8; letter-spacing: -.055em; font-stretch: 86%; }
  .stars { width: 112px; height: 22px; -webkit-mask-size: 22.4px 22px; mask-size: 22.4px 22px; }
  .proof-line, .proof-line + .proof-line { padding: 9px 0; border-left: 0; border-top: 1px solid var(--line); min-width: 210px; }
  .proof-line:last-of-type { border-bottom: 1px solid var(--line); }
  .proof-src { margin-top: 10px; }
}

@media (max-width: 699px) {
  .hero .ln, .hero .ln > span { display: inline; overflow: visible; padding: 0; margin: 0; }
}
@media (max-width: 420px) {
  :root { --bh: 46px; }
  .proof p { font-size: .875rem; }
  .proof-line { padding: 0 8px; }
}

/* ------------------------------------------------------------------- phone */
.phone {
  --pw: 280px;
  position: relative;
  width: var(--pw);
  padding: calc(var(--pw) * .034);
  border-radius: calc(var(--pw) * .155);
  background: var(--phone-body);
  box-shadow: inset 0 0 0 1px var(--phone-rim), inset 0 0 0 calc(var(--pw) * .012) #060608, var(--phone-glow);
}
.phone::before, .phone::after {
  content: ""; position: absolute; right: calc(var(--pw) * -.009);
  width: calc(var(--pw) * .012); border-radius: 0 3px 3px 0; background: var(--phone-btn);
}
.phone::before { top: 21%; height: 7%; }
.phone::after { top: 31%; height: 12%; }
.phone-screen {
  /* clip, not hidden: hidden makes a scroll container, which would capture the view() timelines of the bento
     shots and iPhone rows inside (they froze half-way); clip still follows the rounded corners */
  position: relative; overflow: hidden; overflow: clip; background: #000;
  border-radius: calc(var(--pw) * .118);
  aspect-ratio: 640 / 1380;
  transform: translateZ(0);
}
.phone-screen > video, .phone-screen > img { width: 100%; height: 100%; object-fit: cover; }
/* hero phone: sized by --hero-pw (:root); a short ambient shadow plus the contact shadow on the line
   (.hero-phone::after) instead of a deep drop shadow, so it stands on the floor rather than floating */
.phone-hero { --pw: var(--hero-pw); --phone-glow: 0 30px 60px -40px rgba(var(--shadow-ink) / .45); }
@media (prefers-color-scheme: dark) {
  .phone-hero { --phone-glow: 0 0 0 1px rgba(255, 255, 255, .04), 0 40px 110px -40px rgba(255, 79, 155, .38); }
}

.video-toggle {
  position: absolute; right: 10px; bottom: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center;
  color: #fff; background: rgba(20, 18, 26, .48);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  cursor: pointer; opacity: .72; transition: opacity .2s, transform .2s;
}
.video-toggle:hover, .video-toggle:focus-visible { opacity: 1; transform: scale(1.06); }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }
/* iPhone/iPad visitors (inline platform script): the hero clip shows the Android overlay, which the iPhone app does
   not do, so a small caption says so. Homepage A/B test: variant B shows the same tag on its hero phone (home-b.css);
   keep both while the test runs (it must not bias it) and drop both once there is an iPhone clip. Inside the
   screen's upper left: Kuroneko climbs the phone's left side and the capybara sits on its top. */
.phone-tag {
  display: none; position: absolute; z-index: 2;
  top: calc(var(--pw) * .06); left: calc(var(--pw) * .06);
  padding: 4px 10px 5px; border-radius: var(--r-pill);
  color: #fff; background: rgba(20, 18, 26, .62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  font-size: .75rem; font-weight: 600; line-height: 1.2; white-space: nowrap; pointer-events: none;
}
.is-ios .phone-tag { display: block; }

/* --------------------------------------------- stage: floor + characters */
.stage-fx {
  position: absolute; z-index: 1; pointer-events: none;
  top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
}
.floor-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent);
  transform-origin: 50% 50%;
}
.hero .floor-line { bottom: -1px; }
.mover { position: absolute; left: 0; top: 0; will-change: transform; }
.mover img { width: calc(var(--sprite) * var(--ar, 1)); height: var(--sprite); max-width: none; transform-origin: 50% 100%; }
.mover.face-right img { transform: scaleX(-1); }
.mover.behind { z-index: -1; }
.stage-fx { isolation: isolate; }

/* decorative characters never take clicks */
.mover, .sitter, .peek, .hanger, .ceiling, .parade, .free-peeks, .iphone-art, .cat-stage, .stage-fx { pointer-events: none; }

/* the walker and the capybara live inside .hero-phone (coordinates relative to the phone), tucked
   behind it (z-index -1) so feet sink behind the rim. No-JS / reduced motion: both sit on top. */
.hero-phone .mover, .hero-phone .sitter { z-index: -1; }
.kuro { top: auto; bottom: calc(100% - 3px); left: 12%; }
.kuro.is-live { top: 0; bottom: auto; left: 0; }
.sitter { position: absolute; bottom: calc(100% - 4px); height: calc(var(--sprite) * .95); width: auto; max-width: none; pointer-events: none; }
.kapi { right: 10%; }

/* the hero cat is a small, intentional toy: pick it up and toss it (JS adds .is-toy) */
.hero-phone .kuro.is-toy { pointer-events: auto; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.hero-phone .kuro.is-toy img { -webkit-user-drag: none; }
.hero-phone .kuro.is-held { cursor: grabbing; z-index: 6; }
.hero-phone .kuro.is-flying { z-index: 6; }
.toy-hint {
  position: absolute; z-index: 7; left: 0; top: 0; pointer-events: none;
  padding: 6px 12px; border-radius: 999px 999px 999px 4px;
  background: var(--ink); color: var(--bg);
  font-size: .8125rem; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  opacity: 0; transform: translate(var(--hx, 0), var(--hy, 0)) translateY(8px) scale(.9); transform-origin: 0 100%;
  transition: opacity .3s, transform .45s var(--ease-spring);
}
.toy-hint.is-on { opacity: 1; transform: translate(var(--hx, 0), var(--hy, 0)); }
.toy-hint.is-left { border-radius: 999px 999px 4px 999px; transform-origin: 100% 100%; }

/* ---------------------------------------------------------------- sections */
.features, .catalog, .iphone { padding-top: clamp(96px, 12vw, 176px); }
.section-head { text-align: center; display: grid; gap: clamp(18px, 2vw, 26px); justify-items: center; margin-bottom: clamp(56px, 6vw, 88px); }
.section-head .display-l { max-width: 10.5em; }

/* ------------------------------------------------------------------- bento */
.bento {
  display: grid; gap: clamp(14px, 1.5vw, 20px);
  grid-template-columns: 1fr;
}
.tile { position: relative; isolation: isolate; border-radius: var(--r-tile); }
.tile-in {
  position: relative; z-index: 1;
  height: 100%;
  background: var(--bg-2);
  border-radius: inherit;
  overflow: hidden; overflow: clip;    /* clip: no scroll container, so the reveals inside track the page scroll */
  display: flex; flex-direction: column;
}
.tile-copy { padding: clamp(28px, 3.2vw, 48px); padding-bottom: 0; display: grid; gap: 14px; align-content: start; }
.tile h3 { font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem); letter-spacing: -.04em; line-height: 1; font-stretch: 88%; text-wrap: balance; }
.tile p { color: var(--ink-2); max-width: 30em; text-wrap: pretty; }

.tile-media { position: relative; flex: 1 1 auto; min-height: 260px; }
.media-phone .phone { position: absolute; left: 50%; top: 24px; margin-left: calc(var(--pw) / -2); }
.media-phone { min-height: 320px; }

/* Kuroneko crawling upside down along the inside of the top edge */
.ceiling { position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: var(--sprite); pointer-events: none; }
.ceiling img { height: var(--sprite); width: auto; max-width: none; position: absolute; left: 0; top: -4px; }
.phone-sm { --pw: 220px; --phone-glow: 0 30px 60px -30px rgba(var(--shadow-ink) / .45); }

/* peekers: sit behind .tile-in, rising over the top edge */
.peek {
  position: absolute; z-index: 0; bottom: 100%;
  height: calc(var(--sprite) * 1.05); width: auto; max-width: none;
  left: clamp(28px, 4vw, 64px);
  margin-bottom: calc(var(--sprite) * -.32);
  pointer-events: none;
}
.peek-right { left: auto; right: clamp(28px, 4vw, 56px); }

/* Buddies tile = a phone screen in miniature: crawler on the ceiling, the store shot standing on a floor
   line, a capybara walking along that floor (behind the phone, like the hero) */
.tile-floor { position: absolute; z-index: 0; left: 0; right: 0; bottom: var(--floor-gap); height: calc(var(--sprite) * 1.2); pointer-events: none; }
.tile-floor::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.t-buddies { --floor-gap: clamp(22px, 2.6vw, 34px); }
.t-buddies .tile-copy { position: relative; z-index: 1; align-content: start; padding-top: calc(var(--sprite) + 28px); }
.t-buddies .media-phone { z-index: 1; }
.t-buddies .media-phone .phone { top: auto; bottom: var(--floor-gap); }
.t-buddies .media-phone .phone-sm { --phone-glow: 0 18px 30px -22px rgba(var(--shadow-ink) / .5); }
.walker-css { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.walker-css img {
  position: absolute; left: 0; bottom: -2px; height: var(--sprite); width: auto; max-width: none;
  animation: stroll var(--stroll, 20s) linear infinite; animation-delay: calc(var(--stroll, 20s) * -.62);
  animation-play-state: var(--stroll-state, running);
}
@keyframes stroll { from { transform: translateX(var(--from, 900px)); } to { transform: translateX(calc(var(--sprite) * -1.2)); } }
@supports (width: 1cqw) {
  .tile-floor { container-type: inline-size; }
  @keyframes stroll { from { transform: translateX(100cqw); } to { transform: translateX(calc(var(--sprite) * -1.2)); } }
}

.hanger {
  position: absolute; z-index: 2; top: 0; right: 14%;
  height: calc(var(--sprite) * 1.5); width: auto; max-width: none; pointer-events: none;
  transform-origin: 50% 0;
}

/* 3D pets hat toy */
.hats { border: 0; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hats legend { padding: 0; margin-bottom: 10px; font-size: .9375rem; font-weight: 600; color: var(--ink); float: left; width: 100%; }
.hats label { position: relative; cursor: pointer; }
.hats input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hats span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border-radius: var(--r-pill); background: var(--bg); color: var(--ink);
  font-weight: 550; font-size: .9375rem;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease-out);
}
.hats label:hover span { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.hats input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.hats input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.media-cat { display: grid; place-items: end center; min-height: 300px; }
.cat-stage { position: relative; width: min(100%, 420px); aspect-ratio: 1.25; }
.cat-stage::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 9%; height: 2px; background: var(--accent); border-radius: 2px; }
.hat-cat {
  position: absolute; left: 50%; bottom: 7%; width: 72%; height: auto; margin-left: -36%;
  opacity: 0; transform: translateY(8px) scale(.97); transform-origin: 50% 100%;
  transition: opacity .25s, transform .45s var(--ease-spring);
}
.cat-buddy { position: absolute; right: 6%; bottom: 9%; width: auto; height: 46%; max-width: none; }
.hc-crown { opacity: 1; transform: none; }
.t-pets:has(.hats input:checked:not([value="crown"])) .hc-crown { opacity: 0; transform: translateY(8px) scale(.97); }
.t-pets:has(input[value="tophat"]:checked) .hc-tophat,
.t-pets:has(input[value="party"]:checked) .hc-party,
.t-pets:has(input[value="flower"]:checked) .hc-flower,
.t-pets:has(input[value="bow"]:checked) .hc-bow { opacity: 1; transform: none; }

/* levels */
.lvl { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-weight: 650; font-size: .9375rem; }
.lvl-bar { position: relative; flex: 1; height: 10px; border-radius: 10px; background: var(--bg-3); overflow: hidden; overflow: clip; max-width: 220px; }
.lvl-bar span { position: absolute; inset: 0; background: var(--accent); border-radius: inherit; transform-origin: 0 50%; transform: scaleX(.72); }
.lvl-b { color: var(--ink-2); }

/* free */
.t-free .tile-in { min-height: 380px; }
.free-big { font-size: clamp(3rem, 1.6rem + 3.6vw, 5rem) !important; line-height: .9 !important; letter-spacing: -.055em !important; }
.free-peeks { position: relative; flex: 1; min-height: 130px; }
.free-peeks img { position: absolute; bottom: calc(var(--sprite) * -.38); height: calc(var(--sprite) * 1.25); width: auto; max-width: none; }
.free-peeks .fp-1 { left: 14%; }
.free-peeks .fp-2 { right: 14%; bottom: calc(var(--sprite) * -.18); }

@media (max-width: 699px) {
  .hanger { display: none; }
  .t-free .tile-in { min-height: 0; }
  .free-peeks { min-height: 150px; }
  .media-cat { padding-top: 12px; }
  .hat-cat { width: 62%; margin-left: -31%; }
  /* Buddies on phones: a 300 px window onto the bottom of the shot (the cats and the axolotl) */
  .t-buddies .tile-media { flex: none; height: 300px; min-height: 0; -webkit-mask: linear-gradient(transparent, #000 56px); mask: linear-gradient(transparent, #000 56px); }
}
@media (max-width: 1079px) { .peek-right { display: none; } }
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
  .t-buddies, .t-pets, .t-make { grid-column: span 2; }
  .t-buddies .tile-in, .t-pets .tile-in, .t-make .tile-in { display: grid; grid-template-columns: 1fr 1fr; }
  .t-buddies .tile-copy, .t-pets .tile-copy, .t-make .tile-copy { padding-bottom: clamp(28px, 3.2vw, 48px); }
  .t-buddies .tile-copy { padding-bottom: calc(var(--sprite) * 1.3 + 40px); }
  .t-magic .tile-in, .t-levels .tile-in { min-height: 560px; }
  .t-buddies .tile-in, .t-make .tile-in { min-height: 460px; }
  .t-free { grid-column: span 2; }
  .t-make .media-phone .phone { top: auto; bottom: calc(var(--pw) * -.42); }
  .t-make .tile-copy { order: 2; align-content: end; padding-left: 0; }
  .t-make .tile-media { order: 1; }
}
/* tablet: give the 3D cat its crown back, use the wide Free tile, balance Make */
@media (min-width: 700px) and (max-width: 1079px) {
  .media-cat { padding-top: 28px; }
  .hat-cat { width: 60%; margin-left: -30%; }
  .t-free .tile-in { display: grid; grid-template-columns: 1fr 1fr; min-height: 300px; }
  .t-free .tile-copy { padding-bottom: clamp(28px, 3.2vw, 48px); align-content: center; }
  .t-free .free-peeks { min-height: 0; }
  .t-free .free-peeks img { height: calc(var(--sprite) * 2.1); }
  .t-make .hanger { right: 8%; }
  .t-make .tile-copy { align-content: center; }
}
@media (min-width: 1080px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(400px, auto); }
  .t-buddies { grid-column: 1 / 3; grid-row: 1 / 3; }
  .t-magic { grid-column: 3; grid-row: 1 / 3; }
  .t-pets { grid-column: 1 / 3; grid-row: 3; }
  .t-levels { grid-column: 3; grid-row: 3; }
  .t-free { grid-column: 1; grid-row: 4; }
  .t-make { grid-column: 2 / 4; grid-row: 4; }
  .t-magic .tile-in, .t-levels .tile-in { min-height: 0; }
  .t-buddies .tile-in { grid-template-columns: .92fr 1.08fr; }
  .t-buddies h3 { font-size: clamp(2.5rem, 1.2rem + 2.6vw, 4rem); }
  .t-buddies .phone-sm { --pw: 340px; }
  .t-magic .phone-sm { --pw: 280px; }
  /* the bottom of the Magic shot has a 3D cat dragged over the nav bar: crop above it */
  .t-magic .media-phone .phone { top: auto; bottom: calc(var(--pw) * -.3); }
  .t-levels .phone-sm { --pw: 230px; }
  .t-make .phone-sm { --pw: 250px; }
}

/* ----------------------------------------------------------------- catalog */
.chips-bar {
  position: sticky; top: var(--header-h); z-index: 20;
  padding: 10px 0;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  margin-bottom: clamp(24px, 3vw, 40px);
}
@media (max-width: 760px) { .chips-bar { top: 0; } }
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity; padding: 7px; margin-block: -5px;   /* room for the 6 px focus ring */
  scroll-padding-inline: 7px;
  justify-content: safe center;
}
.chips::-webkit-scrollbar { display: none; }
@media (max-width: 1099px) {
  .chips { -webkit-mask: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 48px), transparent); padding-right: 40px; }
}
.chips a {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 8px 0 16px;
  border-radius: var(--r-pill); background: var(--bg-2);
  text-decoration: none; font-weight: 550; font-size: .9375rem; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.chips a span {
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: var(--r-pill);
  display: inline-grid; place-items: center;
  background: var(--bg); color: var(--ink-2); font-size: .8125rem; font-weight: 650; font-variant-numeric: tabular-nums;
}
.chips a:hover { background: var(--bg-3); }
.chips a.is-active { background: var(--ink); color: var(--bg); }
.chips a.is-active span { background: var(--accent); color: var(--accent-ink); }

.shelves { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(8px, 1vw, 16px); }
.shelf { min-width: 0; }
.shelf { scroll-margin-top: calc(var(--header-h) + 80px); }
/* no content-visibility here: with smooth scrolling its placeholder heights collapsed under an anchor jump
   (/#iphone, /#download, /#c-<slug> landed 250-600 px too far); the thumbnails are lazy anyway */
.shelf-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.shelf-head h3, .shelf-head h2 { font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem); letter-spacing: -.035em; line-height: 1.1; font-stretch: 90%; }
.shelf-head a { text-decoration: none; }
.shelf-head a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }
.shelf-count { color: var(--ink-2); font-size: .9375rem; }
.shelf-body { position: relative; }
.shelf-row {
  --pic: clamp(100px, 9.4vw, 128px);
  list-style: none;
  display: flex; gap: clamp(4px, 1vw, 12px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 18px 7px 10px;                /* 7 px sides: room for the focus ring of the first/last card */
  margin-inline: -7px;
  scroll-padding-inline: 7px;
  /* the shelf: a hairline the characters stand on, fixed while the row scrolls */
  background: linear-gradient(var(--line), var(--line)) 0 calc(18px + var(--pic) - 6px) / 100% 1.5px no-repeat;
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
  mask: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
}
.shelf-row::-webkit-scrollbar { display: none; }
.shelf-row.at-end { -webkit-mask: none; mask: none; }
.shelf-row li { flex: none; scroll-snap-align: start; }
.char {
  display: grid; justify-items: center; gap: 10px;
  width: calc(var(--pic) + 8px);
  padding-bottom: 6px;
  text-decoration: none; border-radius: 18px;
}
.char-pic { position: relative; width: var(--pic); height: var(--pic); display: block; }
.char-pic::before { content: ""; position: absolute; inset: 4% 4% 0; background: var(--spot); border-radius: 50%; }
.char-pic::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 3px; height: 8px; border-radius: 50%;
  background: rgba(var(--shadow-ink) / .14); filter: blur(2px); z-index: 0;
  transition: transform .35s var(--ease-out), opacity .35s;
}
.char-pic img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 96%; }
.char-name { font-weight: 600; font-size: .9375rem; letter-spacing: -.01em; transition: color .2s; }
.char:hover .char-name { color: var(--accent); }
.char:hover .char-pic img { animation: hop .62s var(--ease-out); }
.char:hover .char-pic::after { animation: hop-shadow .62s var(--ease-out); }
.char:focus-visible { outline-offset: 2px; }

.shelf-nav { display: none; gap: 6px; margin-left: auto; }
.has-js .shelf-nav { display: inline-flex; }
.shelf-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--bg-2); color: var(--ink);
  transition: background-color .2s, opacity .2s;
}
.shelf-nav button:hover { background: var(--bg-3); }
.shelf-nav button:disabled { opacity: .35; cursor: default; }
@media (hover: none), (max-width: 760px) { .has-js .shelf-nav { display: none; } }

@media (min-width: 1000px) {
  .shelf { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 24px; align-items: start; }
  .shelf-head { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 22px; }
  .shelf-nav { margin: 10px 0 0; }
  .shelf + .shelf .shelf-head, .shelf + .shelf .shelf-row { border-top: 0; }
}

/* ------------------------------------------------------------------ iphone */
.iphone-panel {
  position: relative; overflow: hidden; overflow: clip;
  border-radius: calc(var(--r-tile) * 1.2);
  background: var(--bg-2);
  display: grid; gap: 24px;
  padding: clamp(32px, 5vw, 80px);
}
.iphone-copy { display: grid; gap: 20px; align-content: center; justify-items: start; max-width: 520px; }
.iphone-copy > p:not(.app-chip) { color: var(--ink-2); font-size: 1.125rem; }
.iphone-copy .fine { font-size: .9375rem; }
.iphone-copy .badges { margin-top: 8px; }
.iphone-copy .app-chip-quiet { background: var(--bg); }
/* the panel's bottom edge cuts the phone right under the third row's pencil line (about 81% down) */
.iphone-art {
  --ios-pw: clamp(230px, 64vw, 280px);
  position: relative; min-height: calc(var(--ios-pw) * 1.7 + 24px);
  margin: 0 calc(clamp(32px, 5vw, 80px) * -1) calc(clamp(32px, 5vw, 80px) * -1);
}
/* a generic device like the hero's, on purpose: the page carries the App Store badge, and Apple's marketing
   guidelines forbid illustrations with Apple-only details (Dynamic Island, notch, left-side buttons) */
.phone-ios {
  --pw: var(--ios-pw);
  position: absolute; left: 50%; top: auto; bottom: calc(var(--pw) * -.4); margin-left: calc(var(--pw) / -2);
}
.ios-screen { background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 46%, var(--accent-soft) 100%); color: var(--ink); }
/* a plain, honest in-app header: title + Draw pill (spans, nothing interactive) */
.ios-bar {
  position: absolute; left: 7%; right: 7%; top: 8.4%;
  display: flex; align-items: center; justify-content: space-between;
  font-size: calc(var(--pw) * .074); font-weight: 700; letter-spacing: -.03em; line-height: 1;
}
.ios-pill {
  display: inline-flex; align-items: center; gap: .3em;
  padding: .42em .8em .42em .62em; border-radius: 99px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .66em; font-weight: 650; letter-spacing: 0;
}
.ios-pill svg { width: 1.05em; height: 1.05em; }
.ios-row {
  position: absolute; left: 6%; right: 6%; top: 18%; height: 19%;
  display: flex; align-items: flex-end; justify-content: center; gap: 3%;
  border-bottom: 2px solid var(--accent);
}
.ios-row-2 { top: 42%; height: 15%; gap: 8%; }
.ios-row-3 { top: 63%; height: 17%; border-bottom: 0; }
.ia { position: relative; height: 100%; width: auto; max-width: none; flex: none; margin-bottom: -1%; }
.ia-1 { height: 82%; }
.ia-2 { height: 98%; }
.ia-3 { height: 74%; margin-bottom: -4%; }
.ia-4 { height: 84%; }
.ia-5 { height: 100%; margin-bottom: -5%; }
/* row 3: a hand drawn cat on a pencil line, "boiling" between two drawings like a flipbook */
.doodle { position: relative; height: 100%; aspect-ratio: 1.25; }
.doodle svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.doodle .d-b { opacity: 0; }
.doodle .df { fill: var(--bg); }
.doodle .db { fill: var(--accent); stroke: none; opacity: .35; }
.sketch-line {
  position: absolute; left: -24%; right: -24%; bottom: 3%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 7px, transparent 7px 12px); opacity: .5;
}
@media (min-width: 900px) {
  .iphone-panel { grid-template-columns: 1fr 1fr; min-height: 600px; }
  .iphone-art { --ios-pw: clamp(270px, 25vw, 330px); min-height: 0; margin: 0 0 calc(clamp(32px, 5vw, 80px) * -1); }
}

/* ------------------------------------------------------------- cta, parade */
/* the closing band is the page's one full accent surface: a raspberry slab, white type, the parade
   walking along a white floor line near its bottom edge. The official black badges sit on it untouched. */
.cta {
  --focus: var(--slab-ink);
  position: relative; text-align: center;
  margin-top: clamp(112px, 14vw, 200px);
  padding-top: clamp(72px, 8.4vw, 124px);
  background: var(--slab); color: var(--slab-ink);
  border-radius: calc(var(--r-tile) * 1.4) calc(var(--r-tile) * 1.4) 0 0;
  overflow: hidden;
}
.cta-in { display: grid; justify-items: center; gap: clamp(18px, 2vw, 26px); }
.cta .display-l { font-size: clamp(3rem, 1rem + 8vw, 8rem); letter-spacing: -.055em; }
.cta-sub { color: var(--slab-ink); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); max-width: 34em; font-weight: 480; text-wrap: balance; }
.cta .badges { margin-top: 12px; --bh: 56px; }
@media (max-width: 420px) { .cta .badges { --bh: 46px; } }
.cta-floor { position: relative; height: calc(var(--sprite) * 1.15 + 44px); margin-top: clamp(40px, 5vw, 72px); overflow: hidden; }
.cta-floor .floor-line { bottom: clamp(20px, 2.6vw, 32px); background: var(--slab-ink); }
.cta .parade { bottom: clamp(20px, 2.6vw, 32px); top: auto; height: 100%; }
/* pages without a parade: the white line simply closes the slab under the badges' clear space */
.cta-floor:not(:has(.parade)) { height: clamp(48px, 6vw, 80px); }
.parade-mini .parade-track { gap: clamp(96px, 16vw, 260px); }
.parade { position: absolute; inset: 0; pointer-events: none; }
.parade-track {
  position: absolute; left: 0; bottom: 0;
  display: flex; align-items: flex-end; gap: clamp(48px, 7vw, 110px);
  width: max-content;
  animation: march var(--march, 64s) linear infinite;
  animation-delay: calc(var(--march, 64s) * -.42);
  animation-play-state: var(--march-state, running);
}
.parade-track img { height: var(--sprite); width: auto; max-width: none; }
.parade-track img[src*="cat3d"] { height: calc(var(--sprite) * 1.08); }
.parade-track img[src*="pengin"] { height: calc(var(--sprite) * .92); }

/* ------------------------------------------------------------------ footer */
.site-footer { padding: clamp(40px, 5vw, 64px) 0 clamp(40px, 5vw, 56px); color: var(--ink-2); font-size: .9375rem; }
.footer-in { display: grid; gap: 14px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.brand-foot { font-size: 1.0625rem; color: var(--ink); font-stretch: 92%; }
.brand-foot img { width: 28px; height: 28px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
@media (max-width: 520px) { .footer-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 32px; } }
.footer-nav a { text-decoration: none; color: var(--ink); font-weight: 550; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-tm { font-size: .8125rem; max-width: 60em; }
.footer-motion { margin-top: 2px; }
.motion-toggle {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px;
  border: 0; border-radius: var(--r-pill); background: var(--bg-2); color: var(--ink);
  font-size: .8125rem; font-weight: 550; cursor: pointer; transition: background-color .2s;
}
.motion-toggle:hover { background: var(--bg-3); }
/* the footer's "Pause animations" (mascot.js; saved choice applied before first paint): the travelling loops stop
   where they are and the hero cat stays put. CSS cannot stop an animated WebP's frames, so mascot.js also swaps
   every sprite with a data-still to its one-frame still; the character stage hides its walker and shows the still
   thumbnail, as under reduced motion. */
.motion-paused .parade-track, .motion-paused .walker-css img, .motion-paused .ceiling, .motion-paused .hanger,
.motion-paused .doodle .d-a, .motion-paused .doodle .d-b, .motion-paused .char-walk > span,
.motion-paused .char-walk img, .motion-paused .char-thumb { animation-play-state: paused !important; }
.motion-paused .hero-phone .kuro.is-toy { pointer-events: none; cursor: auto; }
.motion-paused .char-stage.has-walk .char-walk { display: none; }
.motion-paused .char-stage.has-walk .char-thumb { opacity: 1; }
.motion-paused .char-stage.has-walk::after { display: block; }
.motion-paused .char:hover .char-pic img, .motion-paused .char:hover .char-pic::after { animation: none; }

/* ---------------------------------------------------------------- overlays */
.consent-banner {
  position: fixed; z-index: 60; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(640px, calc(100% - 32px));
  padding: 14px 14px 14px 22px; border-radius: 22px;
  background: var(--bg); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px -20px rgba(var(--shadow-ink) / .35);
  display: none; align-items: center; gap: 16px; font-size: .9375rem;
}
.consent-banner.is-open { display: flex; }
/* keyboard focus never ends up behind the open card (WCAG 2.4.11): --consent-space = the card's height (--consent-h,
   measured by the consent script in the footer) + its distance from the bottom edge + 16 px. The page keeps that
   much clear when it scrolls a focused control into view, and the body gets as much bottom padding, so the last
   footer controls can scroll above the card too. The fallbacks are the card's usual heights, for browsers without
   ResizeObserver. With the install ribbon open the card sits 76 px up (the <= 820 px rules below). */
html:has(.consent-banner.is-open) { --consent-space: calc(var(--consent-h, 76px) + 32px); scroll-padding-bottom: var(--consent-space); }
html:has(.consent-banner.is-open) body { padding-bottom: var(--consent-space); }
.consent-banner p { flex: 1; }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }
/* homepage, three-column hero (>= 1180): the card is centred on the phone column and no wider than the phone plus
   its two gaps, so it never covers the hero badges (left) or the Google Play numbers (right). The phone's centre
   sits 0.075 x (wrap - phone - 2 gaps) right of the viewport centre (grid 1.15fr | phone | .85fr). */
@media (min-width: 1180px) {
  .home .consent-banner {
    left: calc(50% + .075 * (min(var(--wrap), 100% - 2 * var(--gutter)) - var(--hero-pw) - 2 * var(--hero-gap)));
    width: min(640px, var(--hero-pw) + 2 * var(--hero-gap) - 32px);
  }
}
@media (min-width: 1180px) and (max-width: 1599px) {
  .home .consent-banner { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 18px; }
  .home .consent-actions .btn { flex: 1; }
}
.install-ribbon { display: none; }
/* the install ribbon shows on phones and small tablets (mascot.js adds .show at <= 820 px, 7-day close) */
@media (max-width: 820px) {
  .install-ribbon.show {
    position: fixed; z-index: 55; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 10px 10px 14px; padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 -1px 0 var(--line);
  }
  .install-ribbon img { width: 40px; height: 40px; border-radius: 11px; background: #fff; flex: none; }
  .install-ribbon p { flex: 1; min-width: 0; display: grid; line-height: 1.2; font-size: .8125rem; color: var(--ink-2); }
  .install-ribbon strong { color: var(--ink); font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .install-ribbon .btn { padding: 0 14px; }
  .ribbon-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
  body.has-ribbon { padding-bottom: 64px; }
  html:has(body.has-ribbon) { scroll-padding-bottom: 80px; }
  body.has-ribbon .consent-banner { bottom: 76px; }
  html:has(body.has-ribbon):has(.consent-banner.is-open) { --consent-space: calc(var(--consent-h, 140px) + 92px); }
}
/* the Android app's icon is not the iPhone app's: no icon in the ribbon on iOS (it links the App Store there) */
.is-ios .install-ribbon img { display: none; }
@media (max-width: 760px) {
  .consent-banner { bottom: 12px; width: calc(100% - 24px); flex-direction: column; align-items: stretch; padding: 18px; gap: 14px; }
  html:has(.consent-banner.is-open) { --consent-space: calc(var(--consent-h, 140px) + 28px); }   /* the ribbon rule above still wins */
}
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: 24px; pointer-events: none;
  padding: 10px 18px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: .9375rem; opacity: 0; transform: translate(-50%, 16px);
  transition: opacity .25s, transform .3s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------- character page */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 22px 0 0; font-size: .9375rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .45; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

.char-hero { display: grid; gap: clamp(28px, 4vw, 72px); padding-top: clamp(20px, 3vw, 40px); align-items: center; }
.char-stage {
  --floor: 17%;
  position: relative; aspect-ratio: 1 / .8; border-radius: calc(var(--r-tile) * 1.2);
  /* a quiet "ground" under the line, so the band below the floor reads as floor, not dead space */
  background: linear-gradient(to top, color-mix(in srgb, var(--bg-3) 70%, var(--bg-2)) var(--floor), var(--bg-2) var(--floor));
  overflow: hidden;
}
/* the 512 px thumbnails carry ~11% transparent padding under the feet: shift down so the feet sit on the line */
.char-thumb { position: absolute; left: 50%; bottom: var(--floor); width: 60%; transform: translate(-50%, var(--tf, 11%)); transform-origin: 50% calc(100% - var(--tf, 11%)); }
.char-stage .floor-line { bottom: var(--floor); left: 0; right: 0; }
.char-stage::after {
  content: ""; position: absolute; left: 50%; bottom: calc(var(--floor) - 7px); width: 34%; height: 14px; margin-left: -17%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--shadow-ink) / .16), rgba(var(--shadow-ink) / 0));
}
/* characters that have walk + idle sprites pace the stage (CSS only, like the parade): walk left, stop (idle),
   turn, walk back, stop. The thumbnail is the fallback (no sprite, reduced motion). All lengths are relative
   to the track, so the walking speed holds at any width. The generator sets per character: --ww (walk width,
   % of the track), --wh / --ih (walk / idle height, % of the track height; both sprites share one scale) and
   --pace (the cycle, from the app's own walk speed). */
.char-walk { --ww: 46.7%; --wh: 100%; --ih: 100%; --pace: 8s; display: none; position: absolute; left: 7%; right: 7%; bottom: var(--floor); height: 50%; pointer-events: none; }
.char-walk > span { position: relative; display: block; height: 100%; animation: pace var(--pace) linear infinite; animation-delay: calc(var(--pace) * -.15); animation-play-state: var(--pace-state, running); }
.char-walk > span::after {
  content: ""; position: absolute; z-index: -1; left: calc(var(--ww) * .14); width: calc(var(--ww) * .72); bottom: -7px; height: 14px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--shadow-ink) / .16), rgba(var(--shadow-ink) / 0));
}
/* the cycle starts 15% in: the walker enters mid-stage, where the thumbnail it replaces stood */
.char-walk img { position: absolute; left: 0; bottom: 0; height: 100%; width: auto; max-width: none; transform-origin: 50% 100%; animation: var(--pace) steps(1, end) infinite; animation-delay: calc(var(--pace) * -.15); animation-play-state: var(--pace-state, running); }
.char-walk .cw-walk { height: var(--wh); animation-name: pace-walk; }
.char-walk .cw-idle { height: var(--ih); left: calc(var(--ww) / 2); transform: translateX(-50%); animation-name: pace-idle; opacity: 0; }
@keyframes pace {
  0% { transform: translateX(calc(100% - var(--ww))); }
  30%, 50% { transform: translateX(0); }
  80%, 100% { transform: translateX(calc(100% - var(--ww))); }
}
@keyframes pace-walk {
  0% { opacity: 1; transform: scaleX(1); }
  30% { opacity: 0; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(-1); }
  80% { opacity: 0; transform: scaleX(-1); }
  100% { opacity: 1; transform: scaleX(1); }
}
@keyframes pace-idle { 0% { opacity: 0; } 30% { opacity: 1; } 50% { opacity: 0; } 80% { opacity: 1; } 100% { opacity: 0; } }

.char-copy { display: grid; gap: 20px; justify-items: start; }
.char-copy h1 { font-size: clamp(3rem, 1rem + 6vw, 6rem); }
.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin: 4px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); width: 100%; }
.facts div { padding: 14px 22px 14px 0; }
.facts div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.facts dt { font-size: .8125rem; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font-weight: 650; font-size: 1.0625rem; letter-spacing: -.01em; }
.char-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hint { font-size: .875rem; color: var(--ink-2); max-width: 40em; }
.hint strong { color: var(--ink); }
@media (min-width: 900px) { .char-hero { grid-template-columns: 1fr 1.05fr; } }
@media (max-width: 520px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div { padding-right: 10px; }
  .facts div + div { padding-left: 14px; }
  .facts dd { font-size: 1rem; font-stretch: 94%; letter-spacing: -.015em; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts div:nth-child(4) { border-top: 1px solid var(--line); }
}

.char-detail { padding-top: clamp(72px, 9vw, 128px); }
.detail-grid { display: grid; gap: clamp(14px, 1.5vw, 20px); }
.detail-grid .tile { background: var(--bg-2); padding: clamp(28px, 3vw, 44px); display: grid; gap: 16px; align-content: start; }
.detail-grid .tile p { font-size: 1.125rem; color: var(--ink-2); max-width: 26em; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1.1fr 1fr 1.2fr; } }

.faq { padding-top: clamp(72px, 9vw, 128px); display: grid; gap: clamp(24px, 3vw, 40px); }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 2fr; align-items: start; } }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 650; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat,
    var(--bg-2);
  transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 44px 22px 0; color: var(--ink-2); max-width: 40em; }
.catalog-related { padding-top: clamp(72px, 9vw, 128px); }

/* ------------------------------------------------------------- page types */
/* category, /mascots/, /download/, legal, 404 and the iPhone app pages reuse the system: crumbs, a page head
   (display headline + lede), shelves or a wrapping shelf grid, tiles, the closing slab without a parade */
.page-head { display: grid; gap: clamp(14px, 1.6vw, 22px); justify-items: start; padding: clamp(20px, 3vw, 40px) 0 clamp(28px, 3.4vw, 48px); }
.page-head .display-l { font-size: clamp(2.6rem, 1rem + 5vw, 5.5rem); max-width: 13em; }
.page-head .lede { max-width: 36em; }
.page-head strong { color: var(--ink); font-weight: 650; }

/* category pages: every character on a wrapping set of shelves (one hairline per row, feet on it) */
.cat-grid { padding-bottom: 8px; }
.char-grid {
  --pic: clamp(84px, 9vw + 52px, 140px);   /* three per row on a 360 px phone, seven at 1240 px */
  list-style: none; display: grid; row-gap: clamp(10px, 1.6vw, 22px);
  grid-template-columns: repeat(auto-fill, minmax(calc(var(--pic) + 20px), 1fr));
}
.char-grid li {
  display: grid; justify-items: center; padding-top: 18px;
  background: linear-gradient(var(--line), var(--line)) 0 calc(18px + var(--pic) - 6px) / 100% 1.5px no-repeat;
}
.related-grid:empty { min-height: calc(var(--pic) + 74px); }

/* subpages: the closing slab follows the content a little sooner than on the long homepage */
.page-cat .cta, .page-mascots .cta, .page-legal .cta, .page-char .cta { margin-top: clamp(80px, 10vw, 152px); }

/* /mascots/: the homepage shelves without the section rhythm */
.catalog-page { padding-top: 0; }

/* /download/ */
.badges-page { margin-top: 6px; }
.dl-detail { padding-bottom: clamp(72px, 9vw, 128px); }
.dl-grid .tile p { max-width: 30em; }
.dl-grid .badges { margin-top: 4px; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps li { position: relative; padding-left: 44px; min-height: 30px; color: var(--ink-2); counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .875rem;
}
.dl-hint { margin-top: clamp(24px, 3vw, 36px); }
.dl-grid .dl-chip { justify-self: start; background: var(--bg); margin-bottom: -6px; }
.dl-head-copy { display: grid; gap: clamp(14px, 1.6vw, 22px); justify-items: start; }
.dl-stage {
  position: relative; display: flex; align-items: flex-end; justify-content: center; gap: clamp(28px, 4vw, 48px);
  width: min(340px, 100%); height: clamp(104px, 11vw, 150px); margin-top: 4px;
}
.dl-sprite { position: relative; height: 100%; width: auto; max-width: none; }
.dl-cat { height: 92%; }
.dl-stage .floor-line { bottom: 0; }
@media (min-width: 900px) {
  .dl-head { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(32px, 5vw, 80px); align-items: end; }
}
.dl-hint a, .hint a { color: var(--accent); }
@media (min-width: 900px) { .dl-grid { grid-template-columns: 1fr 1fr; } }

/* legal pages (about, terms, privacy, iPhone privacy + support): one centered reading column */
.page-legal .page-head, .prose { width: min(46rem, 100% - 2 * var(--gutter)); }
.page-legal .page-head { padding-top: clamp(40px, 6vw, 88px); border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 48px); }
.page-legal .page-head .display-l { font-size: clamp(2.6rem, 1rem + 4.4vw, 4.75rem); }
.prose { font-size: 1.0625rem; line-height: 1.65; color: var(--ink); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem); letter-spacing: -.03em; line-height: 1.1; font-stretch: 92%; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { margin-top: 1.7em; font-size: 1.1875rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--accent); }
/* long URLs as link text (Terms 9.4: play.google.com/store/account/subscriptions) wrap instead of widening a 360 px page */
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 650; }
.prose code { font-size: .9em; padding: .1em .4em; border-radius: 6px; background: var(--bg-2); }
.prose .muted, .muted { color: var(--ink-2); }
.summary-box { background: var(--bg-2); border-radius: var(--r-tile); padding: clamp(18px, 2.4vw, 28px) clamp(20px, 2.8vw, 32px); }
.summary-box > * + * { margin-top: .8em; }
.summary-box ul { margin: 0; }
.toc { columns: 2; column-gap: 32px; }
@media (max-width: 640px) { .toc { columns: 1; } }
.page-ios .prose { padding-bottom: clamp(64px, 8vw, 112px); }

/* iPhone app pages: their own header (Support, Privacy) and footer; nothing Android on them */
.site-header-ios .brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-header-ios .nav { margin-right: 0; }
.site-footer-ios .footer-in { border-top: 1px solid var(--line); padding-top: 22px; }
.footer-links a { color: var(--ink); font-weight: 550; text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }

/* 404 */
.error-page { min-height: 62vh; display: grid; align-content: center; justify-items: center; gap: 18px; text-align: center; padding: clamp(40px, 7vw, 96px) 0; }
.err-stage { position: relative; width: min(340px, 86%); height: clamp(96px, 12vw, 140px); }
.err-stage .floor-line { bottom: 0; }
.err-sprite { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); }
.error-code { line-height: .85; }
.error-msg { max-width: 26em; text-wrap: balance; }
.page-404 main { padding-bottom: clamp(40px, 6vw, 80px); }

/* ------------------------------------------------------------------ motion */
@keyframes hop {
  0% { transform: translateY(0) scale(1, 1); }
  18% { transform: translateY(0) scale(1.06, .92); }
  45% { transform: translateY(-16px) scale(.96, 1.05); }
  72% { transform: translateY(0) scale(1.05, .94); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes hop-shadow { 45% { transform: scale(.6); opacity: .5; } }
@keyframes march { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes breathe { 0%, 100% { transform: translate(-50%, var(--tf, 11%)) scale(1, 1); } 50% { transform: translate(-50%, var(--tf, 11%)) scale(1.012, .985); } }
@keyframes rise-in { from { transform: translateY(135%); } to { transform: none; } }   /* hidden by the .ln clip, not opacity */
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes phone-up { from { transform: translateY(28px) scale(.98); } to { transform: none; } }
@keyframes arch-up { from { transform: scaleY(.12); } to { transform: none; } }
@keyframes floor-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes crawl { from { transform: translateX(100%); } to { transform: translateX(calc(var(--sprite) * -1.1)); } }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

@media (prefers-reduced-motion: no-preference) {
  /* the one orchestrated moment: page-load sequence in the hero. Transforms only on the phone and the headline,
     so the poster and the h1 are painted (and count for LCP) from the first frame; the store badges never take
     part (badge rules: the art is never animated) */
  .hero .app-chip { animation: fade-up .7s var(--ease-out) both; }
  .hero .ln > span { animation: rise-in 1s var(--ease-out) both; }
  .hero .ln:nth-child(1) > span { animation-delay: .08s; }
  .hero .ln:nth-child(2) > span { animation-delay: .18s; }
  .hero-left > :not(.badges), .hero-right { animation: fade-up .8s .45s var(--ease-out) both; }
  .hero-phone { animation: phone-up 1.1s .3s var(--ease-out) both; }
  .hero-phone::before { animation: arch-up 1.2s .15s var(--ease-out) both; transform-origin: 50% 100%; }
  .hero .floor-line { animation: floor-in 1.3s .2s var(--ease-out) both; }
  .hero .sitter { animation: appear .6s 1.2s var(--ease-out) both; }
  .hero .kuro { animation: appear .5s 1.1s both; }
  .hero .kuro.is-live { animation: none; }
  .char-thumb { animation: breathe 3.6s ease-in-out infinite; }
  .char-stage.has-walk .char-walk { display: block; }
  .char-stage.has-walk .char-thumb { opacity: 0; animation: none; }
  .char-stage.has-walk::after { display: none; }
  /* with JS (html.js is set inline before first paint) the thumbnail keeps standing until both stage sprites have
     arrived; mascot.js then adds .is-walking and the walker cross-fades in, starting its cycle at that moment.
     Without JS the walker shows at once, as before. */
  .char-stage.has-walk .char-thumb, .char-walk { transition: opacity .4s var(--ease-out); }
  .js .char-stage.has-walk:not(.is-walking) .char-thumb { opacity: 1; animation: breathe 3.6s ease-in-out infinite; }
  .js .char-stage.has-walk:not(.is-walking)::after { display: block; }
  .js .char-stage.has-walk:not(.is-walking) .char-walk { opacity: 0; }
  .js .char-stage.has-walk:not(.is-walking) .char-walk > span,
  .js .char-stage.has-walk:not(.is-walking) .char-walk img { animation-name: none; }
  .hanger { animation: sway 3.2s ease-in-out infinite; }
  .ceiling { animation: crawl 24s linear infinite; animation-delay: -9s; }
  .doodle .d-a { animation: boil-a .5s steps(1) infinite; }
  .doodle .d-b { animation: boil-b .5s steps(1) infinite; }

  /* scroll-driven: progressive enhancement, static where unsupported */
  @supports (animation-timeline: view()) {
    .media-phone .phone {
      animation: tile-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
    .peek {
      animation: peek-up linear both;
      animation-timeline: view();
      animation-range: entry 40% cover 30%;
    }
    .free-peeks img {
      animation: peek-up linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 15%;    /* they rise as the tile's bottom comes up: standing once it is 60-150 px above the fold */
    }
    .lvl-bar span {
      animation: lvl-fill linear both;
      animation-timeline: view();
      animation-range: entry 60% cover 55%;
    }
    /* the iPhone rows: staggered, but all in place while still in the lower part of the screen (they sit near
       the bottom of the panel, so later ranges left them faded at the /#iphone landing) */
    .ia {
      animation: fade-up linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 15%;
    }
    .ia-2 { animation-range: entry 20% cover 18%; }
    .ia-3 { animation-range: entry 30% cover 20%; }
    .ia-4 { animation-range: entry 40% cover 22%; }
    .ia-5 { animation-range: entry 45% cover 24%; }
    .doodle {
      animation: fade-up linear both;
      animation-timeline: view();
      animation-range: entry 30% cover 20%;
    }
  }
}
@keyframes boil-a { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes boil-b { 0% { opacity: 0; } 50% { opacity: 1; } }
@keyframes tile-rise { from { transform: translateY(90px); } to { transform: none; } }
@keyframes peek-up { from { transform: translateY(70%); } to { transform: none; } }
@keyframes lvl-fill { from { transform: scaleX(.18); } to { transform: scaleX(.86); } }

/* full-page capture mode: only with an explicit ?capture=1 (QA screenshots), see site.js */
.is-capture .media-phone .phone, .is-capture .peek, .is-capture .free-peeks img, .is-capture .ia, .is-capture .doodle { animation: none !important; }
.is-capture .lvl-bar span { animation: none !important; transform: scaleX(.86); }

/* ---------------------------------------------------------- big viewports */
@media (min-width: 1800px) {
  :root { --wrap: 1440px; }
  .display-xl { font-size: 10rem; }
  :root { --hero-pw: 360px; }
  .hero { --sprite: 128px; }
  .bento { grid-auto-rows: minmax(460px, auto); }
  .t-buddies .phone-sm { --pw: 380px; }
  .t-magic .phone-sm { --pw: 310px; }
}
@media (min-width: 2400px) {
  :root { --wrap: 1600px; }
  .display-xl { font-size: 11rem; }
  :root { --hero-pw: 390px; }
  .hero { --sprite: 140px; }
}

/* -------------------------------------------------------------- dark tweaks */
@media (prefers-color-scheme: dark) {
  /* black cats and dark outlines need a little rim light on a dark canvas */
  .mover img, .sitter, .peek, .hanger, .parade-track img, .ia, .free-peeks img, .char-thumb, .cat-buddy, .hat-cat, .err-sprite, .char-walk img, .dl-sprite {
    filter: drop-shadow(0 0 1.2px rgba(255, 255, 255, .8)) drop-shadow(0 0 12px rgba(255, 255, 255, .16));
  }
  .char-pic img { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .7)); }
  .cta .parade-track img { filter: none; }   /* the slab is bright pink in dark mode: no rim light needed */
  .badge-apple img, .badge-google img { box-shadow: none; }
  .app-chip img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
  .hats input:checked + span { background: var(--ink); color: var(--bg); }
}

/* ---------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .parade-track { animation: none; left: 50%; transform: translateX(-50%); }
  .char:hover .char-pic img, .char:hover .char-pic::after { animation: none; }
  .hanger { animation: none; }
  .ceiling { left: auto; right: 12%; width: var(--sprite); }
  .walker-css img { animation: none; transform: translateX(calc(var(--sprite) * .6)); }
  .doodle .d-a, .doodle .d-b { animation: none; }
}
