/* Landing page. A deep-to-pale sky hero with the phone rising out of a cloud bank; below it a
   quiet cool-white page over a globe that rises with the modes section and then turns with the
   scroll: a sticky "ways to play" rail beside a flight route the biplane flies, one soft-blue
   mastery panel, a globe-style picker, and a closing sky card. The document pages (support,
   privacy, terms, delete account) reuse its tokens, nav, theme and footer, plus style.css. */
:root {
  --bg: #F4F7FC;
  --surface: #FFFFFF;
  --soft: #E3EDFB;
  --ink: #172442;
  --ink-2: #34425F;
  --ink-3: #55637F;
  --line: rgba(23, 36, 66, 0.10);
  --line-strong: rgba(23, 36, 66, 0.26);
  --accent: #FFB020;
  --accent-ink: #2A1A00;
  --accent-text: #8A4A00;
  --sky-1: #1D5FD1;
  --sky-2: #2F78E3;
  --sky-3: #6CA8F0;
  --sky-4: #BAD7F8;
  --cloud: #FFFFFF;
  --hero-ink: #FFFFFF;
  --hero-ink-2: rgba(255, 255, 255, 0.94);
  --glass: rgba(255, 255, 255, 0.20);
  --glass-line: rgba(255, 255, 255, 0.42);
  --nav-bg: rgba(255, 255, 255, 0.80);
  --bezel: #0E1424;
  --tint-solo: #DCEAFD;
  --tint-daily: #FFEFCF;
  --tint-duel: #EBE2FB;
  --shadow: 0 1px 2px rgba(23, 36, 66, 0.06), 0 22px 44px -22px rgba(23, 36, 66, 0.30);
  --shadow-lift: 0 1px 2px rgba(23, 36, 66, 0.08), 0 34px 60px -24px rgba(23, 36, 66, 0.42);
  --shadow-phone: 0 40px 70px -30px rgba(12, 28, 70, 0.55);
  --star-o: 0;
  --globe-o: 0.36;
  --day-d: block;
  --night-d: none;

  --font-display: "Gabarito", "Onest", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "DM Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0F1F; --surface: #131A2E; --soft: #111A38;
    --ink: #F2F4F8; --ink-2: #C9D0DF; --ink-3: #9AA4BA;
    --line: rgba(255, 255, 255, 0.10); --line-strong: rgba(255, 255, 255, 0.30);
    --accent-text: #FFC457;
    --sky-1: #03050F; --sky-2: #070E2A; --sky-3: #0E1C48; --sky-4: #0C1633;
    --cloud: #22346B;
    --glass: rgba(255, 255, 255, 0.08); --glass-line: rgba(255, 255, 255, 0.18);
    --nav-bg: rgba(19, 26, 46, 0.80); --bezel: #000000;
    --tint-solo: #14213F; --tint-daily: #0F2630; --tint-duel: #1F1838;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 22px 44px -22px rgba(0, 0, 0, 0.7);
    --shadow-lift: 0 1px 2px rgba(0, 0, 0, 0.5), 0 34px 60px -24px rgba(0, 0, 0, 0.9);
    --shadow-phone: 0 40px 70px -30px rgba(0, 0, 0, 0.9);
    --star-o: 1; --globe-o: 0.42; --day-d: none; --night-d: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0F1F; --surface: #131A2E; --soft: #111A38;
  --ink: #F2F4F8; --ink-2: #C9D0DF; --ink-3: #9AA4BA;
  --line: rgba(255, 255, 255, 0.10); --line-strong: rgba(255, 255, 255, 0.30);
  --accent-text: #FFC457;
  --sky-1: #03050F; --sky-2: #070E2A; --sky-3: #0E1C48; --sky-4: #0C1633;
  --cloud: #22346B;
  --glass: rgba(255, 255, 255, 0.08); --glass-line: rgba(255, 255, 255, 0.18);
  --nav-bg: rgba(19, 26, 46, 0.80); --bezel: #000000;
  --tint-solo: #14213F; --tint-daily: #0F2630; --tint-duel: #1F1838;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 22px 44px -22px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 1px 2px rgba(0, 0, 0, 0.5), 0 34px 60px -24px rgba(0, 0, 0, 0.9);
  --shadow-phone: 0 40px 70px -30px rgba(0, 0, 0, 0.9);
  --star-o: 1; --globe-o: 0.42; --day-d: none; --night-d: block;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* no rubber-band at the page edges: the bounce showed the page colour as a pale strip
   above the sky; where a browser still bounces, the strip is the sky's own top colour */
html { color-scheme: light; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; background: var(--sky-1); }
[hidden] { display: none !important; }
img { max-width: 100%; }
body {
  margin: 0;
  min-height: 100vh; /* a short page must not show the html sky colour under its footer */
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
:lang(ja) { word-break: auto-phrase; }
:lang(ko) { word-break: keep-all; }
a { color: inherit; }
img { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.only-day { display: var(--day-d); }
.only-night { display: var(--night-d); }
.mono {
  font: 500 11.5px/1.4 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.wrap { position: relative; z-index: 1; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }

/* ── The background globe: blurred, turned by the scroll ──
   It rises with the modes section (its top just above the heading) until it is centred on
   screen, then stays put for the rest of the page. That is position: sticky, so the browser's
   own scrolling moves it: a script-set position lags the compositor's scroll on phones and
   made the globe shake. A zero-height pin takes no room; the canvas hangs from it. Sizes use
   lvh, which does not change as a phone's toolbar slides away mid-scroll. */
:root { --section-pad: clamp(72px, 10vw, 132px); --vh-l: 1vh; --globe-drop: calc(var(--section-pad) - 56px); }
@supports (height: 1lvh) { :root { --vh-l: 1lvh; } }
:root { --globe-size: min(calc(124 * var(--vh-l)), 132vw, 1280px); }
.globe-pin {
  position: sticky; z-index: -1; height: 0;
  top: calc((100 * var(--vh-l) - var(--globe-size)) / 2 - var(--globe-drop));
  pointer-events: none;
}
/* screen-wide and clipped: the globe is wider than a phone, and unlike a fixed element an
   absolute one would widen the page (iOS lets you pan sideways into that) */
.globe-clip {
  position: absolute; left: 50%; top: var(--globe-drop); translate: -50% 0;
  width: 100vw; height: var(--globe-size); overflow: hidden;
}
.bg-globe {
  position: absolute; left: 50%; top: 0;
  width: var(--globe-size); aspect-ratio: 1;
  translate: -50% 0;
  filter: blur(4px);
  opacity: var(--globe-o);
}

/* ── Nav: one floating pill that reads over the sky and over the page ── */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 0;
  display: flex; justify-content: center; pointer-events: none;
}
.nav {
  position: relative; pointer-events: auto;
  display: flex; align-items: center; gap: 4px;
  padding: 6px 6px 6px 14px;
  background: var(--nav-bg);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.brand {
  display: flex; align-items: center; gap: 9px;
  padding-right: 10px;
  font: 700 18px/1 var(--font-display);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 9px 13px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  text-decoration: none; white-space: nowrap;
}
.nav-links a:hover { background: var(--line); color: var(--ink); }
.nav-btn {
  height: 38px; min-width: 38px; flex: none;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 9px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink);
  cursor: pointer;
}
.nav-btn:hover, .nav-btn[aria-expanded="true"] { background: var(--line); }
.nav-btn svg { width: 19px; height: 19px; }
.nav-btn .mono { letter-spacing: 0.06em; line-height: 1; padding-top: 1px; } /* DM Mono caps ride high */
.nav-cta {
  margin-left: 4px; padding: 10px 17px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.nav-cta:hover { filter: brightness(1.06); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 264px; max-height: min(70vh, 520px); overflow-y: auto;
  margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lift);
}
.lang-menu a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 13px;
  font-size: 15px; font-weight: 500; text-decoration: none;
}
.lang-menu a:hover { background: var(--line); }
.lang-menu a[aria-current="page"] { background: var(--soft); font-weight: 700; }
.lang-menu .mono { color: var(--ink-3); text-transform: none; letter-spacing: 0.02em; }

/* ── Hero ── */
.hero {
  position: relative; z-index: 1; overflow: hidden; isolation: isolate;
  padding-top: calc(env(safe-area-inset-top, 0px) + 132px);
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 30%, var(--sky-3) 54%, var(--sky-4) 78%, var(--bg) 100%);
  color: var(--hero-ink);
  text-align: center;
}
.stars {
  position: absolute; inset: 0 0 35% 0; z-index: -1; opacity: var(--star-o);
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 41% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 72% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 38%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 9%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 6% 55%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 66% 62%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 80% 76%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 19% 84%, #fff 50%, transparent 51%);
}
.flightpath, .closing-sky { position: absolute; inset: 0; z-index: -1; }
.flightpath svg, .closing-sky svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.flightpath .arc { fill: none; stroke: var(--hero-ink); stroke-opacity: 0.45; stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
.puff {
  position: absolute; z-index: -1;
  width: 240px; height: 74px; border-radius: 74px;
  background: var(--cloud); opacity: 0.85; filter: blur(9px);
  animation: drift 46s ease-in-out infinite alternate;
}
.puff::before, .puff::after { content: ""; position: absolute; background: var(--cloud); border-radius: 50%; }
.puff::before { width: 110px; height: 110px; left: 38px; top: -52px; }
.puff::after { width: 84px; height: 84px; left: 122px; top: -34px; }
.puff-a { left: -60px; top: 330px; }
.puff-b { right: -40px; top: 210px; transform: scale(0.8); animation-duration: 58s; animation-direction: alternate-reverse; }
.puff-c { left: 16%; top: 600px; transform: scale(1.25); opacity: 0.7; animation-duration: 70s; }
/* A plane on an arc: landing.js flies it (a transform animation the compositor runs, so the sky
   never repaints) and sizes it to its sky's scale; the propeller is the 12-frame sheet stepping
   through the box. Without the script it stays out of sight. */
.plane {
  position: absolute; left: 0; top: 0;
  width: var(--size); height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  overflow: hidden; visibility: hidden; will-change: transform;
}
.plane.is-flying { visibility: visible; }
.plane img { width: auto; height: 100%; max-width: none; animation: propeller 0.2s steps(12) infinite; }
@keyframes propeller { to { transform: translateX(-100%); } }
@keyframes drift { from { translate: -18px 0; } to { translate: 34px 0; } }

.hero-copy { position: relative; z-index: 5; padding-inline: 20px; }
.eyebrow {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line);
  color: var(--hero-ink);
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(42px, 7.6vw, 98px); font-weight: 800;
  line-height: 0.96; letter-spacing: -0.025em;
}
:lang(ja) .hero h1, :lang(ko) .hero h1, :lang(zh) .hero h1 { font-size: clamp(34px, 6vw, 78px); line-height: 1.14; letter-spacing: 0; }
:lang(uk) .hero h1, :lang(de) .hero h1 { font-size: clamp(38px, 6.6vw, 88px); }
.lede {
  max-width: 35em; margin: 22px auto 0;
  font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; line-height: 1.5;
  color: var(--hero-ink-2); text-wrap: pretty;
}
.store { display: inline-block; margin-top: 30px; line-height: 0; border-radius: 12px; }
.store img { height: 58px; width: auto; }
.store:hover { filter: brightness(1.18); }
/* before release: the badge's black pill, with text instead of Apple's artwork */
.store-soon {
  height: 58px; padding: 0 30px; line-height: 56px; box-sizing: border-box;
  background: #000; color: #fff; border: 1px solid #A6A6A6;
  font-size: 22px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; cursor: default;
}
.store-soon:hover { filter: none; }
.fine { margin-top: 12px; color: var(--hero-ink-2); }

.hero-stage {
  --w: clamp(236px, 25vw, 310px);
  position: relative;
  height: calc(var(--w) * 1.86);
  margin-top: 54px;
  display: flex; justify-content: center;
}
.phone {
  --w: 300px;
  width: var(--w); flex: none;
  aspect-ratio: 1206 / 2622;
  height: fit-content;
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.17);
  background: var(--bezel);
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px rgba(255, 255, 255, 0.16);
}
.phone img { width: 100%; height: auto; border-radius: calc(var(--w) * 0.142); }
.hero-stage .phone { --w: inherit; position: relative; z-index: 2; }
.hero-stage .phone video { background: transparent; }

/* floating moments from a round, left and right of the phone */
.chip {
  position: absolute; z-index: 5; width: 240px; padding: 14px 16px 16px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow);
  text-align: center;
}
.chip-q { right: calc(50% + var(--w) / 2 + 34px); top: 64px; rotate: -5deg; }
.chip-f { left: calc(50% + var(--w) / 2 + 34px); top: 176px; rotate: 4deg; }
.chip-row { display: flex; align-items: baseline; justify-content: space-between; color: var(--ink-3); }
.chip-row b { font: 800 26px/1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.chip-row i { font-style: normal; color: var(--accent-text); }
.chip-ask { margin-top: 8px; font: 700 19px/1.2 var(--font-display); text-wrap: balance; }
.chip-ask em { font-style: normal; color: var(--accent-text); }
.bar { display: block; height: 5px; margin-top: 12px; border-radius: 5px; background: var(--line); overflow: hidden; }
.bar i { display: block; width: 78%; height: 100%; border-radius: 5px; background: var(--accent); }
.flags { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.flags span {
  display: grid; place-items: center; height: 52px; border-radius: 13px;
  background: var(--bg); border: 1px solid var(--line);
}
.flags img { height: 28px; width: auto; max-width: 64px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(23, 36, 66, 0.12), 0 2px 4px rgba(23, 36, 66, 0.12); }

.cloudbank {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  width: 100%; height: 360px; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 28%, transparent 100%);
  mask-image: linear-gradient(to top, #000 28%, transparent 100%);
}
.cloudbank .flood { flood-color: var(--cloud); }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: 4;
  background: linear-gradient(to top, var(--bg) 12%, transparent);
  pointer-events: none;
}

/* ── Facts ── */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-block: 28px 0; padding: 0; list-style: none;
}
.facts li { padding: 8px 20px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts b { display: block; font: 800 44px/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: 8px; color: var(--ink-3); }

/* ── Ways to play ── */
section { padding-block: var(--section-pad) 0; scroll-margin-top: 24px; }
.h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; line-height: 1.04; letter-spacing: -0.022em; }
.sub { margin-top: 16px; max-width: 34em; color: var(--ink-2); text-wrap: pretty; }
.modes {
  display: grid; grid-template-columns: minmax(0, 300px) 84px minmax(0, 540px);
  justify-content: center; column-gap: 24px;
}
.modes-aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 30vh); align-self: start; padding-bottom: 40px; }
.progress { display: flex; align-items: center; gap: 12px; margin-top: 20px; color: var(--ink-3); }
.progress .track { width: 56px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress .track i { display: block; height: 100%; width: 33.3%; background: var(--accent); transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.progress b { font-weight: 500; color: var(--accent-text); }
.mode-list { display: flex; flex-direction: column; margin: 22px 0 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.mode-list a {
  display: block; margin-left: -1px; padding: 9px 14px;
  border-left: 2px solid transparent;
  color: var(--ink-3); text-decoration: none;
  transition: color 0.4s ease, border-color 0.4s ease;
}
.mode-list a:hover { color: var(--ink); }
.mode-list a[aria-current="true"] { border-left-color: var(--accent); color: var(--ink); }
.route { position: relative; }
.route > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route .base { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 0.5 7; stroke-linecap: round; }
.route .flown { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.route .halo { fill: var(--accent); opacity: 0; transition: opacity 0.5s ease, r 0.5s ease; }
.route .stop { fill: var(--bg); stroke: var(--line-strong); stroke-width: 2; transition: fill 0.4s ease, stroke 0.4s ease; }
.route .passed .stop { fill: var(--accent); stroke: var(--accent); }
.route .passed .halo { opacity: 0.2; }
.route .plane { --size: 62px; visibility: visible; filter: drop-shadow(0 5px 5px rgba(12, 28, 70, 0.32)); }
.cards { display: flex; flex-direction: column; gap: clamp(56px, 9vw, 112px); padding-bottom: 8px; }
.mode {
  padding: 8px; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  scroll-margin-top: 120px;
  transition: box-shadow 0.6s ease, scale 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.modes.is-live .mode { scale: 0.972; }
.modes.is-live .mode.is-active { scale: 1; box-shadow: var(--shadow-lift); }
.mode-media {
  position: relative; overflow: hidden;
  display: flex; justify-content: center;
  padding-block: 30px;
  border-radius: 20px; background: var(--tint);
}
.mode-media .phone { --w: 252px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* no `display` here: it would outrank .only-day/.only-night and show both themes' clips */
.phone video {
  width: 100%; height: auto; border-radius: calc(var(--w) * 0.142);
  /* the poster again, under the video: iOS drops the poster the moment play() starts and shows
     nothing until the first frame decodes; landing.js sets the image (background-image) */
  background: var(--soft) center / cover no-repeat;
}
.mode-body { padding: 22px 20px 22px; }
.mode-body .mono { color: var(--accent-text); }
.mode-body h3 { margin-top: 8px; font-size: 27px; font-weight: 700; line-height: 1.12; letter-spacing: -0.012em; }
.mode-body p:last-child { margin-top: 10px; color: var(--ink-2); text-wrap: pretty; }

/* ── Mastery panel ── */
.panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 36px; background: var(--soft); overflow: hidden;
}
.panel-copy .mono { color: var(--accent-text); }
.panel-copy .h2 { margin-top: 12px; }
.checks { display: flex; flex-direction: column; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--accent-text); }
.panel-media { position: relative; width: min(100%, 460px); aspect-ratio: 46 / 47; margin-inline: auto; }
.panel-media img { position: absolute; height: auto; filter: drop-shadow(0 26px 30px rgba(8, 16, 40, 0.34)); }
.card-mastery { width: 66%; left: 0; top: 0; rotate: -3deg; z-index: 1; }
.card-streak { width: 62%; right: 0; bottom: 0; rotate: 4deg; }

/* ── Globe styles ── */
.styles-head { text-align: center; }
.styles-head .sub { margin-inline: auto; }
.style-stage {
  display: grid; grid-template-columns: auto minmax(0, 320px); justify-content: center; align-items: center;
  gap: clamp(24px, 5vw, 64px); margin-top: 48px;
}
.style-stage img { width: clamp(200px, 26vw, 280px); height: auto; filter: drop-shadow(0 26px 30px rgba(12, 28, 70, 0.28)); }
.style-info .tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--soft); color: var(--ink-2);
}
.style-info h3 { margin-top: 12px; font-size: 40px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.style-info p:last-child { margin-top: 10px; color: var(--ink-2); min-height: 3.2em; }
.style-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.style-picker button {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 104px; padding: 12px 4px 10px;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface); color: var(--ink-3);
  font: 600 13px/1.1 var(--font-body); cursor: pointer;
}
.style-picker button img { width: 52px; height: 52px; }
.style-picker button:hover { color: var(--ink); }
.style-picker button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); color: var(--ink); }

/* ── Languages ── */
.langs { text-align: center; }
.langs .mono { color: var(--ink-3); }
.lang-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 780px; margin: 20px auto 0; padding: 0; list-style: none; }
.lang-list a {
  display: block; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.lang-list a:hover { color: var(--ink); border-color: var(--line-strong); }
.lang-list a[aria-current="page"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); color: var(--ink); }

/* ── Closing sky card ── */
.closing {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px;
  padding: clamp(36px, 6vw, 72px) clamp(24px, 6vw, 72px) 0;
  border-radius: 36px;
  background: linear-gradient(160deg, var(--sky-1), var(--sky-2) 45%, var(--sky-3));
  color: var(--hero-ink);
}
.closing .stars { inset: 0; }
.closing-copy { padding-bottom: clamp(36px, 6vw, 72px); }
.closing .h2 { font-size: clamp(34px, 5.2vw, 62px); }
.closing p { margin-top: 12px; font-size: 19px; font-weight: 500; color: var(--hero-ink-2); }
.closing .store { margin-top: 28px; }
.closing .mascot { width: clamp(180px, 24vw, 280px); height: auto; margin-bottom: -18px; }

footer {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 56px; padding-block: 26px 40px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-3);
}
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer span { margin-right: auto; }

@media (max-width: 900px) {
  .chip { display: none; }
  .nav-links { display: none; }
  .modes { grid-template-columns: minmax(0, 560px); }
  .modes-aside { position: static; padding-bottom: 36px; }
  .mode-list, .progress, .route { display: none; }
  .panel { grid-template-columns: minmax(0, 1fr); }
  .closing { grid-template-columns: minmax(0, 1fr); }
  .closing-copy { padding-bottom: 8px; }
  .closing .mascot { margin-inline: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + 108px); }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .facts li:nth-child(odd) { border-left: 0; padding-left: 4px; }
  .facts b { font-size: 38px; }
  .mode-media { padding-block: 22px; }
  .mode-media .phone { --w: 228px; }
  .style-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; margin-top: 32px; }
  .style-picker button { width: 30%; max-width: 112px; }
  .panel, .closing { border-radius: 28px; }
  .puff { display: none; }
  .brand span { display: none; }
  .brand { padding-right: 2px; }
  .lang-menu { right: -8px; }
  .bg-globe { filter: blur(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .puff, .plane img { animation: none; }
  .progress .track i, .mode, .mode-list a, .route .halo, .route .stop { transition: none; }
}
