/* Attunely home · foundation stylesheet (phone-first; ≥1024 px lives ONLY in desktop.css).
   One night with your team: night ink + mood light, pearl paper artifacts, the logo's ink line, lime = the one next step.
   Layers: reset < tokens < base < comp. Scene files (home/scenes/*.css) and desktop.css are unlayered, so they win. */
@layer reset, tokens, base, comp;

/* ───────────────────────── tokens ───────────────────────── */
@layer tokens {
  :root {
    /* ground */
    --night-0: #100B28;  --night: #1D1640;  --night-2: #2A2258;
    --ink: #1D1640;      --ink-2: #4B4473;  --ink-3: #6A6490;
    --cream: #FFFDF8;    --cream-2: rgba(255, 253, 248, .8);  --cream-3: rgba(255, 253, 248, .62);
    --sky-halo: 0 0 12px rgba(16, 11, 40, .62), 0 1px 2px rgba(16, 11, 40, .4);   /* small cream type over a mood glow: a soft night halo, never a box */
    /* paper (pearl) */
    --pearl: #FFFFFF;    --pearl-2: #F4F2FB; --pearl-3: #E8E4F5;
    --paper-shadow: 0 1.5px 0 rgba(8, 5, 26, .28), 0 16px 30px -12px rgba(8, 5, 26, .58), 0 38px 64px -34px rgba(8, 5, 26, .6);
    /* the one next step */
    --lime: #F1FF52;     --lime-lip: #9AB00E; --lime-glow: rgba(170, 196, 0, .38);
    /* brand marks */
    --star: #00A5FF;     --dot: #FA0691;
    /* mood light (atmosphere) */
    --honey: #FFB547; --iris: #A88BFF; --lagoon: #5CC8FA; --rose: #FF6B98; --mint: #5FD5AE; --gold: #FFD21C;
    --mood: var(--honey);
    /* the ink line: the logo's heavy round-capped stroke */
    --ink-w: 5;  --ink-w-s: 3.2;
    /* type */
    --font-display: "Attunely Display", "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
    --font-body: "PingFang TC", "Noto Sans TC", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --t-h1: clamp(36px, 11vw, 44px);
    --t-h2: clamp(31px, 9vw, 37px);
    --t-hour: clamp(38px, 11.4vw, 48px);
    --t-body: 17px;
    /* rhythm */
    --gut: clamp(16px, 5.2vw, 24px);
    --col: min(calc(100% - 2 * var(--gut)), 460px);
    --scene-pad: clamp(60px, 16vw, 80px);
    --r-paper: 22px;
    /* motion */
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-in: cubic-bezier(.4, 0, 1, 1);
    --dock-h: 76px;
    /* what flips with the theme (light mode): text on the sky --on-sky (body, display) -2 (sub-lines) -3 (numerals,
       notes), the ink line on the sky --ink-line, paper --paper-edge. Dark values = the night's own */
    --on-sky: var(--cream);
    --on-sky-2: var(--cream-2);
    --on-sky-3: var(--cream-3);
    --ink-line: var(--cream);
    --paper-edge: inset 0 0 0 1px rgba(29, 22, 64, .05);
    --focus: var(--lime);
    /* title ink (owner R10: "closer to pure black, blended with some blue"): black with a blue cast, L* 8.7, HSL 228,
       OKLCH .215/.056/271 (blue, short of navy and of the old violet). -2 = the same hue at the old sub-line contrast
       (L* 24, Y .041 vs #3B3463's .043). The stickers wear it in both themes (they sit on cream); the display titles on
       the sky wear it by day (--on-sky-title), by night they stay cream */
    --title-ink: #101733;  --title-ink-2: #2F3858;
    --on-sky-title: var(--cream);
  }
  /* light: ink on the day-lit night (every night and dawn stop ≥ 4.5:1 for all three, measured on pixels; the day's
     foot is the app's #4A83EE, where only --on-sky holds). Paper gets a cool hairline and the app's day pearl shadow;
     focus turns ink (lime on paper is invisible) */
  :root[data-theme="light"] {
    --on-sky: #1D1640;
    --on-sky-2: var(--title-ink-2);
    --on-sky-3: #4A4474;
    --on-sky-title: var(--title-ink);
    --ink-line: #0E0A26;
    --sky-halo: 0 0 12px rgba(255, 255, 255, .88), 0 1px 2px rgba(255, 255, 255, .7);
    --paper-edge: inset 0 0 0 1px rgba(29, 22, 64, .05), 0 0 0 1px rgba(74, 90, 154, .12);
    --paper-shadow: 0 1px 2px rgba(60, 74, 122, .1), 0 10px 24px -12px rgba(74, 90, 154, .34), 0 30px 56px -30px rgba(74, 90, 154, .36);
    --focus: #1D1640;
  }
  /* teammate identity: costume colour (names), tint (tags), mood (light) */
  [data-teammate="concierge"], .t-concierge { --tm: #AD3E69; --tm-tint: #FFE1EC; --mood: var(--honey); }
  [data-teammate="strategist"], .t-strategist { --tm: #3C4B9A; --tm-tint: #E2E5FF; --mood: var(--iris); }
  [data-teammate="scout"], .t-scout { --tm: #7E45BB; --tm-tint: #EEE2FB; --mood: var(--lagoon); }
  [data-teammate="commander"], .t-commander { --tm: #C01F3B; --tm-tint: #FFDCE1; --mood: var(--rose); }
  [data-teammate="scientist"], .t-scientist { --tm: #00774F; --tm-tint: #D6F4E6; --mood: var(--mint); }
  [data-teammate="crown"], .t-crown { --tm: #8A5A00; --tm-tint: #FFF0B0; --mood: var(--gold); }
}

/* ───────────────────────── reset ───────────────────────── */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, blockquote { margin: 0; }
  ul, ol { list-style: none; padding: 0; }
  fieldset { border: 0; padding: 0; min-width: 0; }
  img, svg, video, picture { display: block; max-width: 100%; }
  button, input { font: inherit; color: inherit; }
  a { color: inherit; text-decoration: none; }
  [hidden] { display: none !important; }
}

/* ───────────────────────── base ───────────────────────── */
@layer base {
  html {
    background-color: var(--night-0);           /* solid: iOS tints its toolbar from it; gradients live on .sky */
    color-scheme: dark;
    scroll-padding-top: 72px;
    scroll-padding-bottom: calc(var(--dock-h) + 16px);
  }
  html[data-sky-phase="day"] { background-color: #F6F4FF; }
  :root[data-theme="light"] { background-color: #F6F4FF; color-scheme: light; }   /* the light hero sky's top, until sky.js paints */
  :root[data-theme="light"][data-sky-phase="day"] { background-color: #F6F4FF; }
  body {
    background: transparent;
    color: var(--on-sky);
    font: 500 var(--t-body)/1.65 var(--font-body);
    overflow-x: clip;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-break: strict;
    word-break: keep-all; overflow-wrap: break-word;
  }
  ::selection { background: var(--lime); color: var(--ink); }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
  [data-display] { font-family: var(--font-display); font-weight: 800; }
  h1, h2, h3, .display { font-family: var(--font-display); font-weight: 800; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
  p, li, dd, figcaption { text-wrap: pretty; }
  time { font-variant-numeric: tabular-nums; }
  .nobr { white-space: nowrap; }                       /* a number never leaves its unit (步行 6 分 · 6-min walk) */
  .sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; border-radius: 12px; background: var(--lime); color: var(--ink); font-weight: 700; }
  .skip:focus { top: 12px; }
  :root[data-theme="light"] .skip { box-shadow: 0 0 0 1.5px var(--ink), 0 8px 20px -8px rgba(60, 74, 122, .5); }

  /* the sky: one fixed box at the large viewport height (never resized by the toolbar). sky.js paints the live layers. */
  .sky {
    position: fixed; inset: 0 0 auto; height: 100vh; height: 100lvh; z-index: -1;
    overflow: hidden; contain: strict; pointer-events: none; user-select: none; -webkit-user-select: none;
    background: radial-gradient(90% 40% at 22% 24%, rgba(255, 150, 156, .14), transparent 70%),   /* the painted sky's lamp, below the zenith */
                linear-gradient(#221A48, #1F1743 30%, #1D1640 55%, #221A4B 82%, #2A2057);
  }
  html[data-sky-phase="dawn"] .sky { background: linear-gradient(#211A52, #3A317E 20%, #6F62B6 42%, #B091D2 60%, #EDA8C8 76%, #FFC9B4 90%, #FFE2C6); }
  html[data-sky-phase="day"] .sky { background: linear-gradient(#F6F4FF, #DDDCFD 28%, #B4C3FA 52%, #7EA4F4 76%, #4A83EE); }
  .sky.is-live { background: none; }
  /* iOS 26 Safari colours its status bar and toolbar bands from this fixed box's OWN background (it ignores the painted
     layers inside), so once live it carries the sky's live edge colours (sky.js sets them on .sky): hidden under the opaque
     layers, read only by the browser chrome, so the bands always continue the sky with no cut */
  html[data-theme] .sky.is-live, html[data-sky-phase] .sky.is-live { background: linear-gradient(var(--sky-edge-top, #100B28), var(--sky-edge-bottom, #2A2057)); }
  /* light: the app chat room's day sky (R10: the light night is CandySky's DAY), the pastel sunrise. Kept under the live
     layers too, so nothing that samples the fixed sky (the browser's chrome) ever reads the night */
  :root[data-theme="light"] .sky { background: linear-gradient(#F6F4FF, #DDDCFD 28%, #B4C3FA 52%, #7EA4F4 76%, #4A83EE); }
  :root[data-theme="light"][data-sky-phase="dawn"] .sky { background: linear-gradient(#F1EDFF, #E8DCFD 20%, #EECBF0 42%, #F9BDD6 60%, #FFC3BA 76%, #FFD5AB 90%, #FFE6A6); }
  :root[data-theme="light"][data-sky-phase="day"] .sky { background: linear-gradient(#F6F4FF, #DDDCFD 28%, #B4C3FA 52%, #7EA4F4 76%, #4A83EE); }
  .sky-layer { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; max-width: none; will-change: opacity; -webkit-user-drag: none; }
  .sky-layer--stars { height: 74%; }
  .sky-layer--sun { height: 130%; transform-origin: 50% 76.9%; }
  .sky-layer[data-breathe] { animation: sky-breathe 10s cubic-bezier(.45, 0, .55, 1) infinite paused; }
  .sky[data-mood="strategist"]:not(.is-paused):not(.is-hidden):not(.is-reduced) .sky-layer[data-breathe]:not(.is-held) { animation-play-state: running; }
  @keyframes sky-breathe { 0%, 100% { scale: 1; } 50% { scale: 1.05; } }
  .sky-glint { position: absolute; top: 0; left: 0; z-index: 7; width: 24px; height: 24px; opacity: 0; pointer-events: none; border-radius: 50%; }
  .sky-glint svg { display: block; width: 100%; height: 100%; overflow: visible; }
  .sky-glint .halo { display: none; }
  .sky-glint.is-night { background: radial-gradient(closest-side, rgba(255, 255, 255, .3), rgba(220, 214, 255, .1) 55%, rgba(220, 214, 255, 0)); }
  .sky-glint.is-night .ray, .sky-glint.is-night .core { fill: #fff; }
  .sky-glint.is-day { background: radial-gradient(closest-side, rgba(255, 201, 60, .38), rgba(255, 201, 60, 0)); }
  .sky-glint.is-day .ray { fill: #FFC93C; }
  .sky-glint.is-day .core { fill: #FFF6D2; }
  .sky.is-reduced .sky-glint, .sky.is-hidden .sky-glint, :root[data-motion="off"] .sky-glint { display: none; }
  :root[data-motion="off"] .sky-layer[data-breathe] { animation: none; }
  /* the light sky's decor (R10 §1; sky.js builds it, light theme only; the night keeps its own stars as they are):
     prism leak (AttunePrismLeak: -20°, 1.1 × the diagonal by .48 × the short side, at 42 % 20 %, breathing over 20 s), five
     pearl stars twinkling slowly, the app's six gold sparkles (3.4 s, staggered: scale .6 → 1, turn ≤ 20°, opacity .55 → 1,
     the glow baked into the image). R10b (owner: "smooth, no little particles"): no grain, no dust tile; the light itself is
     painted into the sky (sky-paint.js dayGround, paintLumen). Images, transform/opacity only: nothing repaints on scroll. */
  .sky-decor {
    display: none; position: fixed; inset: 0 0 auto; height: 100vh; height: 100lvh; z-index: -1;   /* the sky's own box, just above it */
    overflow: hidden; contain: strict; pointer-events: none; user-select: none; -webkit-user-select: none;
  }
  :root[data-theme="light"] .sky-decor { display: block; }
  .sky-decor > i { position: absolute; display: block; }
  .sky-prism {
    left: 42%; top: 20%; width: 160vmax; width: calc(hypot(100vw, 100lvh) * 1.1); height: calc(min(100vw, 100lvh) * .48);
    translate: -50% -50%; rotate: -20deg; background: url("/h/media/sky/prism.webp") 0 0 / 100% 100% no-repeat;
    will-change: transform, opacity; animation: sky-prism 20s cubic-bezier(.45, 0, .55, 1) infinite;
  }
  @keyframes sky-prism { 0%, 100% { transform: translate3d(-6px, 2px, 0); opacity: .86; } 50% { transform: translate3d(8px, -3px, 0); opacity: 1; } }
  .sky-twinkle {
    width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
    background: radial-gradient(closest-side, #fff 0 22%, rgba(255, 255, 255, .55) 34%, rgba(226, 206, 255, .32) 58%, rgba(226, 206, 255, 0));
    will-change: transform, opacity; animation: sky-twinkle 6.4s cubic-bezier(.45, 0, .55, 1) var(--d, 0s) infinite;
  }
  @keyframes sky-twinkle { 0%, 100% { transform: scale(.5); opacity: .2; } 45% { transform: scale(1); opacity: 1; } 70% { transform: scale(.62); opacity: .4; } }
  .sky-spark {
    width: calc(var(--s) * 5 / 3); height: calc(var(--s) * 5 / 3); margin: calc(var(--s) * -5 / 6) 0 0 calc(var(--s) * -5 / 6);
    background: var(--spark-day) center / contain no-repeat; will-change: transform, opacity;
    animation: sky-spark 3.4s linear var(--d, 0s) infinite;
  }
  /* the app's beat: pulse = max(0, sin): half the cycle swells and turns, half it rests glowing at .6 */
  @keyframes sky-spark {
    0%, 50%, 100% { transform: scale(.6) rotate(0deg); opacity: .55; animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
    25% { transform: scale(1) rotate(20deg); opacity: 1; animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
  }
  @media (hover: none) and (pointer: coarse) {   /* the sky's phone box (12 px short of both edges), its paint running on behind the bars */
    .sky-decor { top: 12px; bottom: 12px; height: auto; overflow: hidden; contain: strict; }   /* clipped: any paint past the 12 px gap reads to iOS Safari as touching the edge and bands the bar */
  }
  .sky:is(.is-paused, .is-hidden, .is-reduced) + .sky-decor > i { animation-play-state: paused; }
  :root[data-motion="off"] .sky-decor > i { animation: none; }
  .sky-edge { position: fixed; left: 0; right: 0; z-index: 2147483000; pointer-events: none; opacity: 0; background-color: var(--sky-edge-top, #100B28); }
  .sky-edge--top { top: 0; height: max(4px, env(safe-area-inset-top, 0px)); }
  /* iOS 26 Safari tints its status-bar band from a VISIBLE fixed element at the top edge (it skips opacity 0 and falls back to
     the .sky's static gradient top, which left a flat band over the live sky). So on notched screens the top strip is real:
     exactly the safe area, the sky's live edge colour, under the status bar only. No inset (desktop): it stays invisible. */
  /* Edge to edge on phones (owner, 2026-10-24): iOS 26 Safari turns any fixed element touching the top or bottom edge into
     a solid status-bar / toolbar band, which cut the page off. So on touch screens nothing fixed touches an edge: the sky
     stops 12 px short of both (its top gap is filled by its own shadow, which Safari does not count; the bottom gap shows
     the root, which sky.js keeps on the sky's live bottom colour) and the nav floats 12 px down. Content then scrolls
     freely behind both bars, under Safari's own soft edge. */
  @media (hover: none) and (pointer: coarse) {
    .sky-edge { display: none; }
    .sky { top: 12px; bottom: 12px; height: auto; overflow: visible; contain: none; }
    /* the painted sky itself runs on past the box, up behind the status bar and down behind the toolbar (Safari counts the
       box, not its paint): no flat colour anywhere, the real sky all the way to the glass */
    .sky > .sky-layer:not(.sky-layer--stars):not(.sky-layer--sun), .sky-bands .sky-layer { top: -110px; height: calc(100% + 220px); object-fit: cover; }
  }
  .sky-edge--bottom { bottom: 0; height: max(4px, env(safe-area-inset-bottom, 0px)); background-color: var(--sky-edge-bottom, #2A2057); }
  :root[data-theme="light"] .sky-edge--top { background-color: #F6F4FF; }      /* until sky.js tints them live */
  :root[data-theme="light"] .sky-edge--bottom { background-color: #4A83EE; }
  .sky-end { display: block; height: 1px; margin-top: -1px; pointer-events: none; }
  .sky-marks { position: absolute; inset: 0; pointer-events: none; visibility: hidden; }
  .sky-marks i { position: absolute; left: 0; width: 1px; }
}

/* ───────────────────────── components ───────────────────────── */
@layer comp {

  /* ── nav: brand · clock pill · EN · 下載. A scrim, not frosted glass: words never ghost underneath ── */
  .nav {
    position: fixed; z-index: 60; inset: 0 0 auto;
    display: flex; align-items: center; gap: 4px;
    height: calc(58px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) calc(var(--gut) - 6px) 0;
    color: var(--cream);
    pointer-events: none;
  }
  .nav > * { pointer-events: auto; }
  .nav__brand, .clock, .nav__theme, .nav__end, .nav__end > * { white-space: nowrap; flex: none; }
  /* no band: at the top of the page the nav floats on the bare night (the sky keeps its zenith ink, sky-paint `zen`).
     Once content can pass beneath (home.js: .is-scrim from the first frame of a gesture, dropped at rest at the top),
     a long eased veil of the sky's own zenith colour (sky.js keeps --sky-edge-top live) dissolves it: no flat stretch, no edge */
  .nav::before {
    content: ""; position: absolute; inset: 0 0 -34px; z-index: -1; pointer-events: none;
    opacity: 0; transition: opacity .32s var(--ease);
    background: linear-gradient(var(--scrim), transparent);
    background: linear-gradient(var(--scrim) 0%, color-mix(in srgb, var(--scrim) 95%, transparent) 40%, color-mix(in srgb, var(--scrim) 84%, transparent) 56%,
      color-mix(in srgb, var(--scrim) 66%, transparent) 67%, color-mix(in srgb, var(--scrim) 46%, transparent) 76%, color-mix(in srgb, var(--scrim) 27%, transparent) 84%,
      color-mix(in srgb, var(--scrim) 11%, transparent) 92%, transparent 100%);
  }
  .nav.is-scrim::before, .nav:has([aria-expanded="true"])::before { opacity: 1; transition-duration: .2s; }
  .nav { --scrim: var(--sky-edge-top, #100B28); }
  :root[data-theme="light"] .nav { --scrim: var(--sky-edge-top, #F6F4FF); }
  :root[data-sky-tone="light"] .nav { color: var(--ink); }
  .nav__brand { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 6px; border-radius: 12px; }
  .mark { width: 34px; height: auto; overflow: visible; }
  /* the mark's star and dot: official on light grounds. On a dark ground (the nav over the night or dawn sky) the white
     stroke outshines them, so they step up (P3 where the screen has it) and each gets a soft static glow of its own
     colour, painted behind the stroke so the line stays crisp (variant C, 2026-10-23) */
  .mark__star { fill: var(--mark-star, var(--star)); }
  .mark__dot { fill: var(--mark-dot, var(--dot)); }
  .mark__glow { display: none; opacity: .6; }
  :root:not([data-sky-tone="light"]) .nav .mark { --mark-star: #38C6FF; --mark-dot: #FF3EA5; }
  :root:not([data-sky-tone="light"]) .nav .mark__glow { display: inline; }
  @supports (color: color(display-p3 1 1 1)) {
    :root:not([data-sky-tone="light"]) .nav .mark { --mark-star: color(display-p3 .16 .78 1); --mark-dot: color(display-p3 1 .24 .64); }
  }
  /* on a light-tone sky the ground can turn periwinkle (the footer's morning), where the official blue star dissolves:
     the star and dot are die-cut from paper, a thin pearl keyline in the site's paper-artifact language (item 11,
     2026-10-24). 1.5 px outside at every mark size: the stroke does not scale and the fill covers its inner half */
  :root[data-sky-tone="light"] .mark__star, :root[data-sky-tone="light"] .mark__dot {
    stroke: var(--pearl); stroke-width: 3px; stroke-linejoin: round; paint-order: stroke; vector-effect: non-scaling-stroke;
  }
  .nav__word { font-size: 19px; letter-spacing: .02em; }
  .nav__end { margin-left: auto; display: flex; align-items: center; gap: 2px; }
  /* the theme toggle leads the right group on a phone (with the links on desktop). Under 375 px the zh wordmark yields
     (the kicker says 愛通); under 390 px gaps close a pixel, its face is 40 px in a 44 px target, and the 110 px clock
     keeps its 44 px of height but no side overhang, so no two targets ever touch */
  .nav__theme + .nav__end { margin-left: 0; }
  /* the phone nav has no clock pill (owner, 2026-10-24), so the wordmark always fits */
  @media (max-width: 389px) {
    .nav { gap: 3px; }
    .nav .nav__theme { width: 40px; }
    .nav .nav__theme::after { content: ""; position: absolute; inset: 0 -2px; }
    .nav .clock::after { inset: -4px 0; }
  }
  .nav__links { display: none; }                      /* desktop only (desktop.css): 隊友・圓桌・常見問題 */
  .nav__lang { display: grid; place-items: center; min-width: 44px; min-height: 44px; font: 700 15px/1 var(--font-body); letter-spacing: .04em; border-radius: 12px; }
  /* 下載: the nav's own lime key, always lit (owner, round 2: exempt from one lime per screen). The lime's glass in
     miniature (its tokens and layers are the lime's: see the lime, below): it squashes, brightens and springs back.
     The anchor is the 44 px target and runs 6 px past the face into the gutter (an easier thumb), so the face's edge
     lands on the column edge, mirroring the mark on the left */
  .nav__dl {
    position: relative; display: grid; place-items: center; min-height: 44px; padding: 0 6px 0 0;
    font: 800 15px/1 var(--font-display); letter-spacing: .04em; isolation: isolate;
    -webkit-tap-highlight-color: transparent;
  }
  .nav__dl::before { content: ""; position: absolute; inset: 11px 12px 7px 6px; z-index: -1; border-radius: 999px; box-shadow: 0 5px 20px -2px var(--glass-light); }
  .nav__dl-face {
    position: relative; isolation: isolate; display: grid; place-items: center; height: 34px; padding: 0 14px; border-radius: 999px; color: var(--ink);
    background: var(--glass); box-shadow: var(--glass-rim-s), var(--glass-edge), var(--glass-drop-s);
    transition: scale .55s cubic-bezier(.28, 1.55, .45, 1), translate .55s cubic-bezier(.28, 1.55, .45, 1);
  }
  .nav__dl-face::after { padding: 1.25px; }
  /* at 34 px the pale rim would swallow the colour: the key keeps a wider lime heart and a thinner rim */
  .nav__dl-face { background: radial-gradient(30% 60% at 50% 110%, rgba(255, 255, 250, .9), rgba(255, 255, 244, 0)), radial-gradient(74% 150% at 50% 24%, #DCFB00, #E5FF14 36%, #EEFF4C 62%, #F6FF9E 84%, #FBFFD6); }
  .nav__dl { --glass-rim-s: inset 0 0 0 1px rgba(232, 242, 255, .55), inset 0 0 3px 1px rgba(253, 255, 236, .85), inset 0 -5px 6px -5px rgba(104, 126, 0, .5); --glass-drop-s: 0 1px 1.5px rgba(6, 4, 22, .4), 0 9px 16px -9px rgba(6, 4, 22, .9); }
  :root[data-theme="light"] .nav__dl, :root[data-sky-tone="light"] .nav__dl { --glass-rim-s: inset 0 0 0 1px rgba(255, 255, 255, .6), inset 0 0 3px 1px rgba(252, 255, 232, .8), inset 0 -5px 6px -5px rgba(104, 126, 0, .6); --glass-drop-s: 0 8px 14px -8px rgba(60, 74, 122, .55); }
  .nav__dl.is-pressed .nav__dl-face, .nav__dl:active .nav__dl-face, .nav__dl.is-busy .nav__dl-face {
    scale: .95 .92; translate: 0 1px; transition-duration: 90ms; transition-timing-function: cubic-bezier(0, 0, .58, 1);
  }
  .nav__dl:is(.is-pressed, :active, .is-busy) .nav__dl-face::before { opacity: 1; transition-duration: 70ms; }
  .nav__dl:focus-visible { outline: 0; }
  .nav__dl:focus-visible .nav__dl-face { outline: 3px solid var(--cream); outline-offset: 3px; }
  :root[data-sky-tone="light"] .nav__dl:focus-visible .nav__dl-face, :root[data-theme="light"] .nav__dl:focus-visible .nav__dl-face { outline-color: var(--ink); }
  @media (hover: hover) and (pointer: fine) {
    :root:not([data-motion="off"]) .nav__dl:hover:not(:active):not(.is-pressed):not(.is-busy) .nav__dl-face { translate: 0 -1.5px; }
    .nav__dl:hover:not(:active):not(.is-pressed):not(.is-busy) .nav__dl-face::before { opacity: .45; }
  }
  @media (max-width: 339px) { .nav__dl { padding-right: 0; } .nav__dl::before { right: 6px; } }   /* 320: every pixel to the row */

  /* faces: one sprite, 160 px cells (8 px clear gutters stop neighbours bleeding into a downscaled face), 144 px face centred.
     <img src="/h/media/face/faces.webp" data-face="scout" alt="" width="48" height="48"> — size it square in CSS. */
  img[data-face] { aspect-ratio: 1; object-fit: cover; object-position: var(--fx, .9804%) 50%; }
  [data-face="strategist"] { --fx: 20.5882%; }
  [data-face="scout"] { --fx: 40.1961%; }
  [data-face="commander"] { --fx: 59.8039%; }
  [data-face="scientist"], [data-face="body"] { --fx: 79.4118%; }
  [data-face="crown"] { --fx: 99.0196%; }

  /* the clock pill: the hour + the teammate on duty; tap for chapter jumps */
  .clock {
    position: relative; display: inline-flex; align-items: center; gap: 7px;
    height: 36px; margin-left: 0; padding: 0 11px 0 4px; border: 0; border-radius: 999px;
    background: rgba(16, 11, 40, .26); color: inherit; cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 253, 248, .2);
    -webkit-tap-highlight-color: transparent;
  }
  .clock::after { content: ""; position: absolute; inset: -4px -2px; }      /* 44 px hit area */
  :root[data-sky-tone="light"] .clock { background: rgba(29, 22, 64, .06); box-shadow: inset 0 0 0 1px rgba(29, 22, 64, .12); }
  .clock__disc { position: relative; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--tm-tint, #fff); }
  .clock__disc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .clock__time { display: inline-block; font-size: 16px; letter-spacing: .02em; font-variant-numeric: tabular-nums; min-width: 4.4ch; }   /* a box, so its tick is composited */
  .clock[aria-expanded="true"] { background: var(--cream); color: var(--ink); }
  :root[data-theme="light"] .clock[aria-expanded="true"] { background: var(--ink); color: var(--cream); box-shadow: none; }

  /* the theme toggle, in ink: the moon (a disc bitten by a mask) becomes the sun (the disc drawn in, eight round-capped
     rays). 300 ms, transform and opacity; the bite also fades, so the sun is never bitten */
  .nav__theme {
    position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 0 0 auto; padding: 0;
    border: 0; border-radius: 12px; background: none; color: inherit; cursor: pointer;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .tmark { display: block; width: 22px; height: 22px; overflow: visible; transition: transform .2s var(--ease); }
  .tmark__body { fill: currentColor; transform-origin: 12px 12px; transition: transform .3s var(--ease); }
  .tmark__bite { transform-origin: 12px 12px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .tmark__rays { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; transform-origin: 12px 12px;
    opacity: 0; transform: rotate(-40deg) scale(.45); transition: opacity .16s linear, transform .3s var(--ease); }
  :root[data-theme="light"] .tmark__body { transform: scale(.58); }
  :root[data-theme="light"] .tmark__bite { transform: translate(7px, -7px); opacity: 0; }
  :root[data-theme="light"] .tmark__rays { opacity: 1; transform: none; transition-delay: .04s; }
  .nav__theme:active .tmark { transform: scale(.88); transition-duration: 80ms; }
  @media (hover: hover) and (pointer: fine) {
    .nav__theme:hover { background: rgba(255, 253, 248, .08); }
    :root[data-sky-tone="light"] .nav__theme:hover { background: rgba(29, 22, 64, .06); }
  }
  :root[data-motion="off"] :is(.tmark, .tmark__body, .tmark__bite, .tmark__rays) { transition: none; }
  /* the switch (home.js): old and new pages are captured apart; the new opens in a round frame from the toggle, its
     page counter-scaled so it never moves. Transform only; nothing here changes per switch (no extra restyle) */
  html.vt-old { view-transition-name: theme-old; }
  html.vt-new { view-transition-name: theme-new; }
  html.is-theming::view-transition-group(theme-old), html.is-theming::view-transition-group(theme-new),
  html.is-theming::view-transition-old(theme-old), html.is-theming::view-transition-new(theme-new) { animation: none; mix-blend-mode: normal; }
  html.is-theming::view-transition-group(theme-new) { z-index: 1; }
  html.is-theming::view-transition-image-pair(theme-new) {
    position: absolute; inset: auto; left: 0; top: 0; width: 300vmax; height: 300vmax;
    border-radius: 50%; overflow: clip; transform-origin: 0 0; animation: none;
  }
  html.is-theming::view-transition-new(theme-new) { position: absolute; inset: auto; left: 0; top: 0; width: 100vw; height: auto; transform-origin: 0 0; }

  /* chapter sheet (opened from the clock) */
  .chapters {
    position: fixed; z-index: 70; top: calc(54px + env(safe-area-inset-top, 0px)); left: var(--gut); right: var(--gut);
    max-width: 380px; margin-inline: auto; padding: 18px 16px 14px;
    background: var(--pearl); color: var(--ink); border-radius: 24px; box-shadow: var(--paper-shadow);
    transform-origin: 50% 0;
  }
  :root[data-theme="light"] .chapters { box-shadow: 0 0 0 1px rgba(74, 90, 154, .12), var(--paper-shadow); }
  .chapters:not([hidden]) { animation: sheet-in .32s var(--ease) both; }
  @keyframes sheet-in { from { opacity: 0; scale: .96; translate: 0 -6px; } }
  .chapters__title { font-size: 15px; color: var(--ink-2); padding: 0 8px 8px; }
  .chapters__list a {
    display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 12px;
    min-height: 46px; padding: 0 8px; border-radius: 14px; font-weight: 600; font-size: 16px;
  }
  .chapters__list a[aria-current] { background: var(--pearl-2); box-shadow: inset 3px 0 0 var(--tm, var(--ink)); }
  .chapters__list a:hover, .chapters__list a:focus-visible { background: var(--pearl-2); }
  .chapters__list img { width: 30px; height: 30px; border-radius: 50%; background: var(--tm-tint); }
  .chapters__motion { margin: 10px 8px 2px; }
  .chapters__ctrls { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 8px 2px; }
  .chapters__ctrls .chapters__motion { margin: 0; }

  /* the pause control (WCAG 2.2.2): a real button, label swap, persisted */
  .motion-btn, .chapters__motion, .chapters__theme {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px;
    border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer;
    font: 600 14px/1 var(--font-body); opacity: .82;
  }
  .chapters__motion, .chapters__theme { background: var(--pearl-2); opacity: 1; }
  .chapters__theme .tmark { width: 16px; height: 16px; }
  .motion-icon { position: relative; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.6px currentColor; }
  .motion-icon::before, .motion-icon::after { content: ""; position: absolute; top: 4.5px; width: 2px; height: 7px; border-radius: 1px; background: currentColor; }
  .motion-icon::before { left: 5px; } .motion-icon::after { left: 9px; }
  [data-motion-toggle][data-state="off"] .motion-icon::before { left: 6px; width: 0; height: 0; border-radius: 0; background: none; border-left: 6px solid currentColor; border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; }
  [data-motion-toggle][data-state="off"] .motion-icon::after { display: none; }

  /* ── scene frame: the night clock is the page's spine ── */
  .scene { position: relative; padding: var(--scene-pad) 0 calc(var(--scene-pad) * .5); }
  /* a scene's backdrop is the painted sky (a fixed layer of images, night → dawn → day): declare it as an image so
     automated contrast tools ask for a pixel check instead of measuring against <html>'s rubber-band colour.
     Real contrast over the sky is measured on rendered pixels: foundation-1/tools/contrast-real.cjs (0 failures). */
  .scene { background-image: linear-gradient(transparent, transparent); }
  .scene, .faq, .team { overflow-x: clip; }          /* stage art may bleed to the screen edge, never past it */
  .scene__head { width: var(--col); margin-inline: auto; position: relative; z-index: 2; }
  .hour { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
  .hour .hour__no {
    font-size: var(--t-hour); line-height: 1; letter-spacing: -.01em; color: var(--on-sky);
    opacity: .5;
  }
  .scene__head :is(h2, h3) { margin-top: 10px; font-size: var(--t-h2); line-height: 1.24; color: var(--on-sky-title); }
  .lede { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--on-sky-2); }
  [data-stage] { position: relative; width: var(--col); margin-inline: auto; }

  /* ── name tag (round 6): the .dl button's logic at badge scale. A thin raised frame (translucent metal at night,
     pearl by day: its border, lit at the top edge, shaded at the bottom) holds a capsule lit softly from below in the
     teammate's tint; the name in the teammate's deep colour, display face. No tilt, no drop, no glow ── */
  .nametag {
    --nt-frame: linear-gradient(#FFFFFF73, #A4B2D04D 2px, #3E465A47 calc(100% - 2px), #00000070);
    --nt-tint: var(--tm-tint, var(--pearl));
    display: inline-block; padding: 3px 10px 4px; border: 1.5px solid transparent; border-radius: 999px;
    font: 800 13px/1.15 var(--font-display); letter-spacing: .04em; white-space: nowrap;
    color: var(--tm, var(--ink));
    background:
      radial-gradient(90% 120% at 50% 135%, #FFFFFFD9, #FFFFFF00 64%) padding-box,
      linear-gradient(color-mix(in srgb, var(--nt-tint) 55%, #FFF), var(--nt-tint) 58%, color-mix(in srgb, var(--nt-tint) 90%, var(--tm, #1D1640))) padding-box,
      var(--nt-frame) border-box;
    box-shadow: inset 0 1px 0 #FFFFFFB3, inset 0 -2px 5px #FFFFFF73, 0 0 0 1px #A0B0D226;
  }
  .nametag--lg { padding: 5px 14px 6px; font-size: 16px; border-width: 2px; translate: 0 -2px; }
  :root[data-theme="light"] .nametag { --nt-frame: linear-gradient(#FFFFFF, #ECEAF6 calc(100% - 2px), #3C4A7A4D); box-shadow: inset 0 1px 0 #FFFFFFB3, inset 0 -2px 5px #FFFFFF73, 0 0 0 1px #3C4A7A26; }
  .nametag--table { --tm: var(--ink); --tm-tint: #FFF0B0; }

  /* ── pearl paper: every product proof. Die-cut, tilted, cool shadow, lit by the scene's mood ── */
  .paper {
    position: relative; color: var(--ink);
    background:
      radial-gradient(150% 100% at 0% 0%, color-mix(in oklab, var(--mood) 10%, transparent), transparent 52%),
      linear-gradient(165deg, #FFFFFF 0%, #FCFBFF 46%, #F3F0FA 100%);
    border-radius: var(--r-paper);
    box-shadow: inset 0 1px 0 #fff, var(--paper-edge), var(--paper-shadow);
    rotate: var(--tilt, 0deg);
  }
  .by { display: flex; align-items: center; gap: 7px; font: 600 14px/1.3 var(--font-body); color: var(--ink-2); }
  .by img { width: 28px; height: 28px; border-radius: 50%; background: var(--tm-tint, var(--pearl-2)); }
  .by b { color: var(--tm, var(--ink)); font-weight: 800; }
  .by > span:last-child:not(.ex) { margin-left: auto; color: var(--ink-3); font-weight: 600; font-size: 13px; }
  /* 範例 / Example labels are retired (owner, round 2): the page reads as illustrative on its own. Any .ex left in a
     scene stays out of sight and out of the accessibility tree */
  .ex { display: none !important; }
  .draft-tag { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1.3 var(--font-body); color: var(--ink-2); }
  .draft-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }

  /* chat bubbles on paper: their words = pearl, yours = ink (never a rainbow) */
  .bubble { display: flex; align-items: flex-end; gap: 8px; }
  .bubble > span { padding: 9px 15px 10px; border-radius: 20px; font: 600 16px/1.45 var(--font-body); }
  .bubble small { flex: none; font: 600 12px/1.3 var(--font-body); color: var(--ink-3); padding-bottom: 3px; }
  .bubble--me { justify-content: flex-end; }
  .bubble--me > span { background: var(--ink); color: var(--cream); border-bottom-right-radius: 7px; }
  .bubble--them > span { background: var(--pearl-2); color: var(--ink); border-bottom-left-radius: 7px; box-shadow: inset 0 0 0 1px rgba(29, 22, 64, .05); }

  /* ── the ink line: hand-drawn gestures from the mark's stroke. Black on paper, white on night. ── */
  .ink { position: absolute; overflow: visible; pointer-events: none; max-width: none; }
  .ink path { fill: none; stroke: var(--ink-color, #0E0A26); stroke-width: var(--ink-w); stroke-linecap: round; stroke-linejoin: round; }
  .ink--s path { stroke-width: var(--ink-w-s); }
  .ink--dashed path { stroke-dasharray: 6.5 8.5; }
  .ink--night path, .on-night .ink path { --ink-color: var(--ink-line); }
  /* ink performance hook: home.ink.draw() sets these; the static (final) state is fully drawn */
  .ink.is-drawing path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }

  /* ── the character: a still under its own floor light; eyes, yaws and rendered moves are layered by home.js ── */
  .actor {
    position: absolute; display: block; padding: 0; border: 0; background: none; color: inherit;
    width: var(--w, 40%); aspect-ratio: 180 / 176; cursor: pointer; touch-action: manipulation;
    -webkit-tap-highlight-color: transparent; z-index: 2;
    pointer-events: none;                  /* the 180:176 art box overlaps its neighbours: only the figure (::after) takes taps */
  }
  /* the target = the figure's body. --hit (an inset of the art box) tunes it per placement; a paper over the feet keeps its own taps */
  .actor::after { content: ""; position: absolute; inset: var(--hit, 6% 24% 8% 26%); z-index: 5; border-radius: 42%; pointer-events: auto; }
  .actor__rig, .actor__act { position: absolute; inset: 0; display: block; }
  .actor__img, .actor__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .actor__img img { object-fit: contain; }
  .actor__glow {
    position: absolute; left: 25.7%; top: 84%; width: 56%; height: 14%; border-radius: 50%;
    background: radial-gradient(closest-side, var(--glow, rgba(255, 196, 216, .5)), transparent);
    pointer-events: none;
  }
  /* lit like a collectible figure: a soft back-light in the teammate's own mood, the floor glow under the feet */
  .actor::before {
    content: ""; position: absolute; inset: -6% -10% 0; z-index: -1; pointer-events: none;
    background: radial-gradient(44% 42% at 54% 46%, var(--glow, rgba(255, 255, 255, .3)), transparent 72%); opacity: .55;
  }
  .hero .actor::before { opacity: .38; }
  .actor[data-actor="concierge"] { --glow: rgba(255, 210, 160, .55); }
  .actor[data-actor="strategist"] { --glow: rgba(168, 139, 255, .55); }
  .actor[data-actor="scout"] { --glow: rgba(92, 200, 250, .5); }
  .actor[data-actor="commander"] { --glow: rgba(255, 107, 152, .5); }
  .actor[data-actor="scientist"] { --glow: rgba(95, 213, 174, .5); }
  .actor[data-actor="crown"] { --glow: rgba(255, 200, 90, .6); }
  .actor:focus-visible { outline: 0; }
  .actor:focus-visible .actor__glow { background: radial-gradient(closest-side, var(--lime), transparent); }
  .actor__eyes, .actor__clip { position: absolute; pointer-events: none; }
  .actor__eyes { opacity: 0; }
  .actor__clip { left: -14.328%; top: -16.808%; width: 136.091%; height: 139.184%; max-width: none; opacity: 0; }
  .actor.is-playing .actor__clip { opacity: 1; }
  .actor.is-playing .actor__img, .actor.is-playing .actor__eyes { opacity: 0; }
  .actor .nametag { position: absolute; z-index: 3; }
  .actor__flash {
    position: absolute; left: calc(var(--fx) - 60%); top: calc(var(--fy) - 60%); width: 120%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(closest-side, var(--fc), rgba(255, 220, 200, .35) 45%, transparent 70%); opacity: 0; pointer-events: none; z-index: 4;
  }
  /* first-time tap affordance: one soft ring on the first actor of a stage, once */
  .actor.is-hint::after { box-shadow: 0 0 0 2px rgba(255, 253, 248, .7); opacity: 0; animation: hint 1.6s var(--ease) 2; }
  :root[data-theme="light"] .actor.is-hint::after { box-shadow: 0 0 0 2px rgba(255, 255, 255, .95), 0 0 0 3.5px rgba(74, 90, 154, .2); }   /* by day: a pearl ripple with a faint cool edge, never a grey box */
  /* keyboard focus: a lime ring around the target (the same shape a tap uses) */
  .actor:focus-visible::after { opacity: 1; animation: none; box-shadow: 0 0 0 3px var(--lime), 0 0 0 6px rgba(16, 11, 40, .5); }
  @keyframes hint { 0% { opacity: 0; scale: .7; } 30% { opacity: .9; } 100% { opacity: 0; scale: 1.25; } }
  :root[data-motion="off"] .actor.is-hint::after { animation: none; }
  /* the in-character line after a tap: anchored to the actor, designed per placement (data-say) */
  .say {
    position: absolute; z-index: 20; width: max-content; max-width: min(232px, 72vw); padding: 8px 13px 10px; border-radius: 16px;
    background: var(--pearl); color: var(--ink); box-shadow: var(--paper-shadow);
    font: 600 15px/1.45 var(--font-body); pointer-events: none; opacity: 0; translate: 0 6px;
    transition: opacity .18s var(--ease), translate .32s var(--ease);
  }
  .say::after { content: ""; position: absolute; left: calc(var(--tail, 50%) - 7px); bottom: -6px; width: 14px; height: 14px; border-radius: 0 0 4px 0; background: var(--pearl); rotate: 45deg; }
  .say.is-low::after { bottom: auto; top: -6px; border-radius: 4px 0 0 0; }
  [data-say-slot] .say-line { font: 600 15px/1.5 var(--font-body); color: var(--on-sky); }
  .say-line b { margin-right: .5em; font: 800 .86em/1 var(--font-display); color: var(--mood, var(--on-sky)); letter-spacing: .04em; }
  [data-say-slot][data-speaking] { color: var(--on-sky); }
  /* light: the speaker's name in its costume ink (the mood colours are light, made for the night) */
  :root[data-theme="light"] .say-line b { color: var(--say-ink, var(--on-sky)); }
  :root[data-theme="light"] [data-speaking="concierge"] { --say-ink: #AD3E69; }
  :root[data-theme="light"] [data-speaking="strategist"] { --say-ink: #3C4B9A; }
  :root[data-theme="light"] [data-speaking="scout"] { --say-ink: #7E45BB; }
  :root[data-theme="light"] [data-speaking="commander"] { --say-ink: #C01F3B; }
  :root[data-theme="light"] [data-speaking="scientist"] { --say-ink: #00774F; }
  :root[data-theme="light"] [data-speaking="crown"] { --say-ink: #8A5A00; }
  :root[data-theme="light"] .say { box-shadow: 0 0 0 1px rgba(74, 90, 154, .12), var(--paper-shadow); }
  .say b { display: block; font: 800 12px/1.3 var(--font-display); color: var(--tm, var(--ink-2)); letter-spacing: .04em; margin-bottom: 1px; }
  .say.is-on { opacity: 1; translate: 0 0; }

  /* ── chips: the router (hero) and the chooser (finale) share one look, the user's own sentences ── */
  .chip {
    position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none;
    min-height: 46px; padding: 5px 16px 5px 5px; border-radius: 999px;
    background: var(--pearl); color: var(--ink); cursor: pointer;
    font: 600 15px/1.2 var(--font-body); white-space: nowrap;
    box-shadow: inset 0 0 0 1px rgba(29, 22, 64, .06), 0 10px 22px -12px rgba(8, 5, 26, .6);
    transition: translate .31s cubic-bezier(.241, .165, .184, 1.195);
    -webkit-tap-highlight-color: transparent;
  }
  .chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; appearance: none; -webkit-appearance: none; border-radius: inherit; }
  .chip img { width: 36px; height: 36px; border-radius: 50%; background: var(--tm-tint); flex: none; }
  .chip.is-pressed, .chip:active { translate: 0 2px; transition-duration: 80ms; transition-timing-function: cubic-bezier(0, 0, .58, 1); }
  .chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
  :root[data-theme="light"] .chip { box-shadow: inset 0 0 0 1px rgba(29, 22, 64, .06), 0 0 0 1px rgba(74, 90, 154, .12), 0 8px 18px -10px rgba(60, 74, 122, .42); }
  /* chosen = circled by the ink line */
  .chip::after {
    content: ""; position: absolute; inset: -5px; border-radius: inherit; pointer-events: none;
    box-shadow: 0 0 0 3px var(--ink-line); opacity: 0; scale: .96;
    transition: opacity .2s var(--ease), scale .36s var(--ease);
  }
  .chip:has(input:checked)::after { opacity: 1; scale: 1; }

  /* ── lime: the one next step, in lime liquid glass (owner, round 5). Lit from within: a saturated heart high in the
     centre, a cream rim, a caustic pool at the bottom, a specular hairline strongest top-left, its own light on the
     night; no lip. Static light = gradients + shadows; motion = transform + opacity only. One material: hero, dock,
     finale, nav 下載. A ↓ bead, never Apple's logo (Apple allows it only inside the official badge) ── */
  .lime, .nav__dl {
    --glass: radial-gradient(22% 62% at 50% 108%, #FFFFFC, #FFFFF699 44%, #FFFFF000 80%), radial-gradient(46% 118% at 50% 20%, #D8F800, #E2FF0A 24%, #EBFF3A 44%, #F5FF8E 66%, #FBFFD2 86%, #FDFFEE);
    --glass-rim: inset 0 0 0 1.5px #E4EEFF99, inset 0 0 6px 2px #FDFFEEF2, inset 0 0 20px 5px #FBFFDE99, inset 0 -9px 12px -10px #687E0073;
    --glass-edge: 0 0 0 .5px #E2EEFF52;
    --glass-drop: 0 1px 1.5px #06041673, 0 14px 24px -14px #060416F2;
    --glass-light: #E0FF2475;
  }
  /* light grounds (finale paper, the dawn keyboard's fix and send keys, light mode, the nav over the morning): more lime in the rim, an ink hairline, a cool shadow */
  .finale__cta .lime, :root[data-theme="light"] :is(.lime, .nav__dl), :root[data-sky-tone="light"] .nav__dl, .kbd__fix, .send__btn {
    --glass: radial-gradient(22% 62% at 50% 108%, #FFFFFCFA, #FFFFF68C 44%, #FFFFF000 80%), radial-gradient(54% 128% at 50% 26%, #DCFB00, #E4FF12 26%, #ECFF3E 46%, #F4FF84 68%, #F9FFC2 86%, #FCFFE2);
    --glass-rim: inset 0 0 0 1.5px #FFFFFF99, inset 0 0 7px 2px #FCFFE8D9, inset 0 0 18px 4px #FAFFD680, inset 0 -9px 12px -10px #687E0094;
    --glass-edge: 0 0 0 .75px #1D164029, 0 1.5px 0 #76880057;
    --glass-drop: 0 12px 20px -12px #3C4A7A99;
    --glass-light: #BEDE0080;
  }
  .lime { position: relative; display: inline-flex; border-radius: 999px; color: var(--ink); -webkit-tap-highlight-color: transparent; isolation: isolate; }
  /* the light it throws (inset: a pressed face never uncovers it); the bloom that swells on hover and press */
  .lime::before { content: ""; position: absolute; inset: 4px 8px; z-index: -2; border-radius: inherit; box-shadow: 0 8px 32px -2px var(--glass-light); }
  .lime::after {
    content: ""; position: absolute; inset: -16px -12px -20px; z-index: -1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(closest-side, #EAFF328C, #EAFF3229 62%, #EAFF3200);
    opacity: 0; scale: .94; transition: opacity .55s var(--ease), scale .7s var(--ease);
  }
  .lime__face {
    position: relative; display: flex; align-items: center; width: 100%; isolation: isolate;
    min-height: 56px; padding: 8px; border-radius: inherit;
    background: var(--glass); box-shadow: var(--glass-rim), var(--glass-edge), var(--glass-drop);
    transition: scale .62s cubic-bezier(.28, 1.55, .45, 1), translate .62s cubic-bezier(.28, 1.55, .45, 1);
  }
  /* inside: the press light (the glass brightens from within); on top: the specular hairline (a masked ring) */
  .lime__face::before, .nav__dl-face::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(60% 120% at 50% 100%, #FFFFEEF2, #FFFFEE00 70%), radial-gradient(54% 110% at 50% 10%, #E8FF14F2, #E8FF1400 74%);
    opacity: 0; transition: opacity .6s var(--ease);
  }
  .lime__face::after, .nav__dl-face::after, .kbd__face::after, .send__lime::after {
    content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; padding: 1.5px;
    background: radial-gradient(42% 150% at 14% 0%, #FFF, #FFFE 35%, #FFF0 75%), linear-gradient(#FFFFFFF2, #FFF8 34%, #FFFFFF1A 62%, #FFFFFF0F 80%, #FFFFFF73);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  }
  /* press: the glass squashes and sinks, brightens and blooms, then settles on a spring */
  .lime.is-pressed .lime__face, .lime:active .lime__face, .lime.is-busy .lime__face { scale: .975 .955; translate: 0 1.5px; transition-duration: 90ms; transition-timing-function: cubic-bezier(0, 0, .58, 1); }
  .lime:is(.is-pressed, :active, .is-busy) .lime__face::before { opacity: 1; transition-duration: 70ms; }
  .lime:is(.is-pressed, :active, .is-busy)::after { opacity: 1; scale: 1.05; transition-duration: 110ms; }
  @media (hover: hover) and (pointer: fine) {
    :root:not([data-motion="off"]) .lime:hover:not(:active):not(.is-pressed):not(.is-busy) .lime__face { translate: 0 -2px; }
    .lime:hover:not(:active):not(.is-pressed):not(.is-busy)::after { opacity: .7; scale: 1; }
    .lime:hover:not(:active):not(.is-pressed):not(.is-busy) .lime__face::before { opacity: .45; }
  }
  .lime:focus-visible { outline: 3px solid var(--cream); outline-offset: 5px; border-radius: 999px; }
  .finale__cta .lime:focus-visible, :root[data-theme="light"] .lime:focus-visible { outline-color: var(--ink); }
  .lime--block { display: flex; width: 100%; }
  /* the teammate in a clear glass bead */
  .lime__disc {
    position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
    background: radial-gradient(circle at 50% 36%, #FFF 0 50%, #EFECF8 84%, #DDD8EE);
    box-shadow: 0 1px 1.5px #38440052, 0 3px 7px -3px #38440073;
  }
  .lime__disc::after {
    content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(62% 34% at 50% 3%, #FFFFFFC7, #FFF0);
    box-shadow: inset 0 0 0 1.25px #FFFE, inset 0 -3px 4px -1px #DEF62899;
  }
  .lime__disc img { position: absolute; inset: 0; width: 100%; height: 100%; }
  /* what the tap does: ↓ into the tray, in ink glass with its own highlight, the lime glowing through its foot. Busy:
     the arrow drops into the tray three times (finite) */
  .lime__go {
    position: relative; flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
    background: radial-gradient(70% 42% at 50% 110%, #E2FF3C9E, #E2FF3C00), radial-gradient(92% 92% at 50% 36%, #3D3294, #251C60 44%, #150E3A 74%, #0C0826);
    box-shadow: inset 0 0 0 1px #FFFFFF1F, inset 0 -1px 0 #ECFF7859, 0 1px 1.5px #28320066, 0 4px 8px -3px #28320080;
  }
  .lime__go::before {
    content: ""; position: absolute; left: 16%; right: 16%; top: 5%; height: 42%; border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%;
    background: linear-gradient(#FFFFFFA8, #FFFFFF1A 88%, #FFF0);
  }
  .lime__go svg { position: relative; width: 22px; height: 22px; overflow: visible; fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .lime.is-busy .lime__arrow { animation: lime-drop .84s cubic-bezier(.45, 0, .55, 1) .1s 3 both; }
  @keyframes lime-drop { 0%, 100% { translate: 0 0; opacity: 1; } 42% { translate: 0 6px; opacity: 0; } 43% { translate: 0 -7px; opacity: 0; } }
  /* the sheen: one pass of light every 5.6 s while the lime is on screen (home.loops, low priority; motion off: never) */
  .lime__sheen { position: absolute; inset: 0; z-index: 1; border-radius: inherit; overflow: hidden; pointer-events: none; }
  .lime__sheen::before {
    content: ""; position: absolute; top: -30%; bottom: -30%; left: 0; width: 24%; opacity: 0; transform: translateX(-130%) skewX(-20deg);
    background: linear-gradient(90deg, #FFF0, #FFFFFF33 30%, #FFF8 50%, #FFFFFF33 70%, #FFF0);
  }
  .lime__sheen[data-loop="on"]::before { animation: lime-sheen 5.6s 1s infinite; }
  .hero__cta .lime__sheen[data-loop="on"]::before { animation-delay: 2.6s; }   /* the hero's own entrance first */
  @keyframes lime-sheen {
    0% { transform: translateX(-130%) skewX(-20deg); opacity: 0; animation-timing-function: cubic-bezier(.45, .05, .3, 1); }
    2% { opacity: 1; }
    21% { transform: translateX(440%) skewX(-20deg); opacity: 1; }
    21.5%, 100% { transform: translateX(440%) skewX(-20deg); opacity: 0; }
  }
  /* phone: the 42px disc must read as a face, not a shrunk figure: the busy sprites crop to the head, eyes centred
     (管家's sprite already is a face). transform, not translate: the face roll animates translate. */
  @media (max-width: 1023.98px) {
    .lime__disc img:is([data-face="commander"], [data-face="scout"], [data-face="scientist"]) { transform: scale(1.6) translate(var(--hx), var(--hy)); }
    .lime__disc img[data-face="commander"] { --hx: -3%; --hy: -8%; }
    .lime__disc img[data-face="scout"] { --hx: -12%; --hy: -3%; }
    .lime__disc img[data-face="scientist"] { --hx: -3%; --hy: 0%; }
  }
  /* the words, in the store badge's logic (owner, round 5): the download is the large line (「App Store 下載」; EN the
     badge's lockup, "Download on the" small before a large "App Store"), the key's hook small on top. The action comes
     first in the markup (a screen reader hears 「在 App Store 下載愛通，給將軍看看」); each row's states share one cell */
  .lime__text { position: relative; display: grid; grid-template-areas: "hook" "act"; flex: 1; min-width: 0; justify-items: center; align-content: center; gap: 1px; padding-inline: 8px; }
  .lime__labels { grid-area: hook; display: grid; justify-items: center; font: 600 12px/1.2 var(--font-body); letter-spacing: .04em; color: rgba(29, 22, 64, .72); }
  :lang(en) .lime__labels { letter-spacing: .01em; }
  .lime__label { grid-area: 1 / 1; white-space: nowrap; opacity: 0; translate: 0 5px; transition: opacity .16s linear, translate .3s var(--ease); }
  .lime__label.is-current { opacity: 1; translate: 0 0; transition-delay: .06s; }
  .lime__act { grid-area: act; display: grid; justify-items: center; font: 800 19px/1.15 var(--font-display); letter-spacing: .02em; color: rgba(29, 22, 64, .95); }
  :lang(en) .lime__act { font-size: clamp(16px, 5vw, 19px); letter-spacing: 0; }
  :lang(en) .finale__cta .lime__act { font-size: clamp(15px, 4.6vw, 19px); }   /* the finale's paper is narrower */
  .lime__act > span { grid-area: 1 / 1; white-space: nowrap; transition: opacity .16s linear, translate .3s var(--ease); }
  .lime__pre { font-size: .64em; letter-spacing: .01em; opacity: .78; }
  [data-copy="android"] { visibility: hidden; }
  html[data-device-platform="android"] [data-copy="android"], html[data-ad-platform="android"] [data-copy="android"] { visibility: inherit; }
  html[data-device-platform="android"] [data-copy="apple"], html[data-ad-platform="android"] [data-copy="apple"] { visibility: hidden; }
  .android-note { display: none; }
  html[data-device-platform="android"] .android-note { display: block; }
  .lime__label.was-current { translate: 0 -5px; }
  .lime.is-quiet .lime__label { transition: none; }
  /* the hand-off: the hook stays; the download line turns into the store opening, and the arrow drops into the tray */
  .lime__busy { display: inline-flex; align-items: center; gap: 6px; font-size: .76em; opacity: 0; translate: 0 6px; }
  .lime.is-busy .lime__act > [data-copy] { opacity: 0; transition-delay: .24s; }
  .lime.is-busy .lime__busy { opacity: 1; translate: 0 0; transition-delay: .24s; }
  /* the hand-off visibly failed (the page never left): say so, in the reader's register, on the download line */
  .lime__act > .lime__retry { font: 700 clamp(13px, 4.1vw, 15px)/1.2 var(--font-body); opacity: 0; translate: 0 6px; }
  .lime.is-retry .lime__act > [data-copy], .lime.is-retry .lime__busy { opacity: 0; }
  .lime.is-retry .lime__retry { opacity: 1; translate: 0 0; }
  .dots { display: inline-flex; gap: 3px; }
  .dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .25; }
  .lime.is-busy .dots i { animation: dot 1.2s linear infinite; }
  .lime.is-busy .dots i:nth-child(2) { animation-delay: .24s; } .lime.is-busy .dots i:nth-child(3) { animation-delay: .48s; }
  @keyframes dot { 0%, 100% { opacity: .25; } 20% { opacity: 1; } 45% { opacity: .55; } }
  .lime--l .lime__face { min-height: 62px; }
  .lime--2 .lime__face { min-height: 60px; padding-block: 7px; }
  /* 320: every pixel to the words (the beads step down to 38) */
  @media (max-width: 359px) {
    .lime__face { padding: 6px; }
    .lime :is(.lime__disc, .lime__go) { width: 38px; height: 38px; }
    .lime__text { padding-inline: 6px; }
  }
  .note { margin-top: 10px; font: 600 13px/1.5 var(--font-body); color: var(--on-sky-3); text-align: center; letter-spacing: .02em; }
  .note--ink { color: var(--ink-2); }

  /* ── dock: a slim pill after the hero; transparent wrapper, never on a headline, gone at the finale ── */
  .dock {
    position: fixed; z-index: 55; left: 0; right: 0; bottom: 0;
    display: flex; justify-content: center;
    padding: 0 var(--gut) max(12px, env(safe-area-inset-bottom, 0px));
    pointer-events: none;            /* away = slid below the screen + inert (home.js); no visibility transition: it would tick the main thread */
  }
  .dock > a { max-width: 100%; pointer-events: auto; translate: 0 calc(100% + 40px); opacity: 0; transition: translate .24s var(--ease-in), opacity .2s linear; }
  .dock.is-on > a { translate: 0 0; opacity: 1; transition: translate .5s var(--ease), opacity .16s linear; }
  /* ── .dl: the download button (owner, round 5: "remake the apple download logo, make it yellow"). Two layers: a dark
     raised metal frame (its thickness is the padding, lit from above) holding a self-lit yellow capsule whose light
     rises from below and spills on the night. Ink type and glyphs. Motion is compositor-only: a sweep inside the
     capsule (behind the words), and on .lg a breathing glow and a light orbiting the frame (a rotating conic layer
     under a static ring mask; no @property). One unit for home.loops per button: off screen, hidden or motion off,
     nothing runs. Variants: .lg (hero, finale), .wide (dock), .sm (nav) ── */
  .dl {
    --g: 6px; --h: 48px; --fs: 18px;
    position: relative; display: inline-flex; padding: var(--g); border-radius: 999px; isolation: isolate; color: #1D1640;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    background: linear-gradient(#96A6C657, #3E465A42);
    box-shadow: inset 0 1px 0 #FFFFFF3D, inset 0 -1px 0 #00000066, 0 0 0 1px #A0B0D229, 0 16px 36px -14px #000000E6;
    transition: scale .5s cubic-bezier(.28, 1.55, .45, 1);
  }
  .dl-in {
    position: relative; z-index: 0; display: flex; flex: 1; align-items: center; justify-content: center; gap: 10px;
    min-height: var(--h); padding: 0 24px; border-radius: inherit; overflow: hidden;
    font: 800 var(--fs)/1 var(--font-display); letter-spacing: .02em; white-space: nowrap; text-shadow: 0 1px 0 #FFFFFF73;
    background: radial-gradient(95% 130% at 50% 128%, #FFFDEEF2, #FFFAD28C 34%, #FFF8C800 66%), linear-gradient(#FAFF9C, #F1FF52 40%, #E2F21C 74%, #CBDA00);
    box-shadow: inset 0 1px 0 #FFFFFFB3, inset 0 0 0 1px #FFFFFF33, inset 0 -7px 16px #FFFCDC8C, 0 0 22px #E2FF2873, 0 0 60px #D6F00047;
  }
  .dl-in::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #FFFFFF; opacity: 0; transition: opacity .25s var(--ease); }   /* hover light */
  .dl-in::after {                                                                     /* the sweep: lights the glass, never the words */
    content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-130%);
    background: linear-gradient(105deg, #FFF0 32%, #FFFFFF6B 48%, #FFF0 64%);
  }
  .dl-g { flex: none; width: calc(var(--fs) * .92); height: calc(var(--fs) * 1.12); fill: currentColor; translate: 0 -1px; }
  .dl-c { flex: none; width: calc(var(--fs) * 1.05); height: calc(var(--fs) * 1.05); fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; margin-right: -6px; transition: translate .3s var(--ease); }
  .dl-t { display: grid; } .dl-t > span { grid-area: 1 / 1; }
  html:is([data-device-platform="android"], [data-ad-platform="android"]) .dl-g { display: none; }
  .dl:is(.is-pressed, :active, .is-busy) { scale: .97; transition-duration: 90ms; transition-timing-function: cubic-bezier(0, 0, .58, 1); }
  @media (hover: hover) and (pointer: fine) {
    .dl:hover .dl-in::before { opacity: .14; }
    .dl:hover .dl-c { translate: 3px 0; }
  }
  .dl:focus-visible { outline: 3px solid var(--focus, #F1FF52); outline-offset: 4px; }
  .dl.lg { --g: 8px; --h: 56px; --fs: 19px; }
  .dl.block, .dl.wide { display: flex; width: 100%; }
  .dl.sm { --g: 4px; --h: 26px; --fs: 14px; }
  .dl.sm .dl-in { gap: 6px; padding: 0 12px; box-shadow: inset 0 1px 0 #FFFFFFB3, inset 0 0 0 1px #FFFFFF33, inset 0 -4px 9px #FFFCDC8C, 0 0 12px #E2FF2866; }
  .dl.sm::after { content: ""; position: absolute; inset: -5px -3px; }                 /* the 44 px target */
  @media (max-width: 359px) { .dl.sm .dl-g { display: none; } .dl.lg .dl-in { padding: 0 16px; } }
  /* .lg: the glow breathes (opacity + scale) and a light orbits the frame (a rotating conic layer, masked to the ring) */
  .dl.lg::before { content: ""; position: absolute; inset: var(--g); z-index: -1; border-radius: inherit; box-shadow: 0 0 34px 8px #E2FF2861, 0 0 80px 18px #D6F00033; opacity: .62; }
  .dl-ring { position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: var(--g); overflow: hidden; pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
  .dl-orbit { position: absolute; left: 50%; top: 50%; width: 140%; aspect-ratio: 1; translate: -50% -50%; opacity: 0;
    background: conic-gradient(#FFF0 0 62%, #F1FF5299 74%, #FFFFFFE6 82%, #F1FF5299 88%, #FFF0 96%); }
  .dl[data-loop="on"] .dl-in::after { animation: dl-sweep 6.2s cubic-bezier(.45, .05, .3, 1) .8s infinite; }
  .dl.lg[data-loop="on"]::before { animation: dl-breath 2.6s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
  .dl.lg[data-loop="on"] .dl-orbit { opacity: 1; animation: dl-orbit 3.4s linear infinite; }
  @keyframes dl-sweep { 0% { transform: translateX(-130%); } 30%, 100% { transform: translateX(130%); } }
  @keyframes dl-breath { from { opacity: .4; scale: .98; } to { opacity: .9; scale: 1.04; } }
  @keyframes dl-orbit { from { rotate: 0deg; } to { rotate: 360deg; } }
  /* light grounds: a pearl ring that still reads raised; the capsule glows less */
  :root[data-theme="light"] .dl, .finale__cta .dl {
    background: linear-gradient(#FFFFFF, #E2DFF0);
    box-shadow: inset 0 1px 0 #FFF, inset 0 -1px 0 #3C4A7A40, 0 0 0 1px #3C4A7A2E, 0 14px 28px -14px #3C4A7A8C;
  }
  :root[data-theme="light"] .dl-in, .finale__cta .dl-in { box-shadow: inset 0 1px 0 #FFFFFFB3, inset 0 0 0 1px #FFFFFF33, inset 0 -7px 16px #FFFCDC8C, 0 0 14px #D6F0004D; }
  :root[data-theme="light"] .dl.lg::before, .finale__cta .dl.lg::before { box-shadow: 0 0 22px 4px #D6F00040; }
  :root[data-theme="light"] .dl:focus-visible, .finale__cta .dl:focus-visible { outline-color: #1D1640; }
  :root[data-motion="off"] :is(.dl, .dl-c), :root[data-motion="off"] .dl-in::before { transition: none; }
  :root[data-motion="off"] .dl-orbit { display: none; }
  @media (forced-colors: active) {
    .dl, .dl-in { background: Canvas; color: LinkText; box-shadow: none; forced-color-adjust: none; }
    .dl { border: 2px solid LinkText; }
    .dl-ring, .dl::before { display: none; }
  }

  /* ── store badges: official artwork, never animated; feedback is a plate behind ── */
  .badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 18px; }
  .store-badge { position: relative; display: block; padding: 10px; border-radius: 14px; }
  .store-badge::before { content: ""; position: absolute; inset: 4px; border-radius: 12px; background: rgba(29, 22, 64, .12); opacity: 0; transition: opacity .12s; }
  .store-badge.is-pressed::before, .store-badge:active::before { opacity: 1; }
  .store-badge img { position: relative; height: 40px; width: auto; }
  .store-badge--play img { height: 52px; margin: -6px 0; }
  /* Google's English badge art carries more transparent margin (the badge is 67% of its height, not
     77%), so it is drawn larger to stand level with Apple's */
  :lang(en) .store-badge--play img { height: 60px; margin: -10px; }
  html[data-device-platform="ios"] .store-badge[href*="play.google.com"],
  html[data-device-platform="android"] .store-badge[href*="apps.apple.com"] { display: none; }
  .qr { display: none; }

  /* ── FAQ and footer: home/ending.css (unlayered, loaded last) owns the ending ── */
  .foot { position: relative; }

  /* loops (home.loops): an element marked data-loop runs its CSS animation only while home.js sets data-loop="on"
     (visible, within the 3-loop budget, motion on, the reader at rest). !important in a layer beats a scene's shorthand.
     The R9 scroll-motion layers (.sx-*) are bound to the scroll, never loops: a loop container never freezes them. */
  [data-loop]:not([data-loop="on"]), [data-loop]:not([data-loop="on"]) :not(.sx-explode, .sx-leave, .sx-par, .sx-rise, .sx-part) { animation-play-state: paused !important; }

  /* reduced motion / pause control: everything rests in its designed end state */
  :root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .sky-glint { display: none; }
  .sky-decor > i { animation: none; }
  .sky-layer[data-breathe] { animation: none; }
}

/* ───────────────────────── English (/en/): same DOM, its own typographic register ───────────────────────── */
@layer comp {
  :root:lang(en) { --t-h1: clamp(33px, 10.4vw, 42px); --t-h2: clamp(29px, 9vw, 37px); }
  :lang(en) body { letter-spacing: 0; }
  :lang(en) h1, :lang(en) h2, :lang(en) h3 { letter-spacing: -.01em; }
  :lang(en) .clock__time { min-width: 6.6ch; font-size: 15px; }
  :lang(en) .nametag { letter-spacing: .01em; }
  :lang(en) .hero__tags .nametag { padding: 3px 7px 4px; font-size: 12px; }
  /* the EN row (mark, Attunely, 11:47 PM, 中, Get) is the longest: under 414 px the wordmark loses its tracking and the
     clock steps down a size so both gutters hold; under 390 px the mark speaks alone (the hero kicker says Attunely) */
  @media (max-width: 413px) { :lang(en) .nav__word { font-size: 18px; letter-spacing: 0; } :lang(en) .clock__time { font-size: 14px; } }
  /* under 360 px (11:47 PM, ☾, 中, Get): the gutters give 3 px a side and the clock steps down once more */
  @media (max-width: 359px) {
    :lang(en) .nav { padding-inline: calc(var(--gut) - 9px); }
    :lang(en) .clock { padding-right: 9px; }
    :lang(en) .clock__time { font-size: 13px; }
  }
  :lang(en) .kicker { letter-spacing: .01em; }
  /* iMessage: "Read 9:12 PM" sits under your bubble, not beside it */
  :lang(en) .bubble--me { flex-direction: column; align-items: flex-end; gap: 3px; }
  :lang(en) .bubble--me small { order: 2; padding: 0 4px 0 0; }
  :lang(en) .bubble--them { flex-wrap: wrap; }
}
@layer comp {
  /* the scene's number signs off with the brand mark: the logo's cyan star over its magenta dot, right after the digits */
  .hour .colon {
    display: inline-block; width: .36em; height: .74em; margin-left: .04em; color: transparent; vertical-align: baseline;   /* the digits' cap height: the star tops out with them, the dot sits on the baseline */
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='279 316 203 180'%3E%3Cpath d='M368.54 316.48C380.91 305.98 385.26 365.01 414.03 381.24C438.33 394.96 495.64 387.64 481.29 400.71C476.88 404.72 440.44 418.71 425.06 429.3C396.56 448.9 395.57 490.27 386.38 495.56C376.19 501.42 372.78 464.79 351.81 449.73C328.98 433.34 281.33 440.64 279.24 431.48C277.81 425.2 320.21 413.32 338.1 397.48C364.48 374.12 359.41 324.23 368.54 316.48Z' fill='%2300A5FF'/%3E%3C/svg%3E") 50% 6% / .3em auto no-repeat,
      radial-gradient(circle at 50% 80%, #FA0691 .085em, transparent .095em);
  }
  /* on a dark ground the colon wears the nav mark's lifted star and dot too: one brand star across the night */
  :root:not([data-sky-tone="light"]) .hour .colon {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='279 316 203 180'%3E%3Cpath d='M368.54 316.48C380.91 305.98 385.26 365.01 414.03 381.24C438.33 394.96 495.64 387.64 481.29 400.71C476.88 404.72 440.44 418.71 425.06 429.3C396.56 448.9 395.57 490.27 386.38 495.56C376.19 501.42 372.78 464.79 351.81 449.73C328.98 433.34 281.33 440.64 279.24 431.48C277.81 425.2 320.21 413.32 338.1 397.48C364.48 374.12 359.41 324.23 368.54 316.48Z' fill='%2338C6FF'/%3E%3C/svg%3E") 50% 6% / .3em auto no-repeat,
      radial-gradient(circle at 50% 80%, #FF3EA5 .085em, transparent .095em);
  }
  .hour .hour__no { opacity: 1; color: var(--on-sky-3); }
}
@layer comp {
  /* motion off (pause control or OS Reduce Motion): state changes become short crossfades, nothing travels */
  :root[data-motion="off"] .chapters:not([hidden]) { animation: none; }
  :root[data-motion="off"] :is(.lime__label, .lime__busy, .say, .hero__hint) { translate: none; }
  :root[data-motion="off"] .dock > a { translate: none; transition: none; }
  :root[data-motion="off"] .dock:not(.is-on) { visibility: hidden; }   /* no slide to hide it: away is simply gone */
  :root[data-motion="off"] :is(.mate, .chip, .lime__face, .nav__dl-face) { transition: none; }
  /* the lime at rest: no sheen, no drop; the press still lights the glass, at once */
  :root[data-motion="off"] :is(.lime__act > span, .lime__arrow) { translate: none; }
  :root[data-motion="off"] .lime__sheen { display: none; }
  :root[data-motion="off"] .lime__arrow { animation: none; }
  :root[data-motion="off"] .lime::after, :root[data-motion="off"] .lime__face::before, :root[data-motion="off"] .nav__dl-face::before { transition: none; }
}

/* owner 2026-10-24: the phone nav stays clean: no clock pill (brand · theme · EN · 下載). Desk keeps it (desktop.css). */
@media (max-width: 1023.98px) { .nav .clock { display: none; } }

/* phones, edge to edge: the nav half of the rule in the base layer (.sky). Unlayered, so it outranks the nav's own rules in comp */
@media (hover: none) and (pointer: coarse) {
    .nav { top: 4px; }
    :root .nav::after { top: calc(env(safe-area-inset-top, 0px) + 5px); }   /* 9px from the edge: the closest Safari allows without banding (tested) */   /* a hair under the edge: still clear of it, so Safari does not band it */
    /* no veil: a veil is a fixed background touching the top, which Safari bands. The floating bar below carries legibility */
    .nav::before { display: none; }
}

/* the nav bar (owner, 2026-10-24, after AlphaX): one translucent rounded bar holds the brand, the toggle, EN and 下載, so they
   read as one instrument over anything passing beneath. Frosted night glass by night, pearl glass by day. It floats inside
   the nav box, clear of the screen edge, so Safari never takes it for a toolbar */
.nav::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: calc(env(safe-area-inset-top, 0px) + 5px) max(4px, calc(var(--gut) - 14px)) 3px;
  border-radius: 999px;
  background: rgba(24, 17, 56, .44);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .09), 0 12px 32px -14px rgba(8, 5, 26, .7);
}
:root[data-theme="light"] .nav::after, :root[data-sky-tone="light"] .nav::after {
  background: rgba(255, 255, 255, .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .55), 0 0 0 1px rgba(74, 90, 154, .12), 0 12px 32px -16px rgba(60, 74, 122, .4);
}
.nav::before { display: none; }   /* the bar replaces the old scroll veil everywhere */
@media (min-width: 1024px) { .nav::after { inset: 10px 14px; } }

/* ───────────────────────── R9 components (Phantom grade; markup and API: COMPONENTS-R9.md) ─────────────────────────
   blob (tonal silhouettes, slow parallax) · float (a 3D render or a chip, tilted, idle wobble) · glass (frosted mini chip)
   · sparkle (gold four-point star) · sticker (giant headline, thick cream die-cut outline) · scroll motion (.sx scope with
   .sx-explode .sx-leave .sx-par .sx-rise .sx-part). Layered (comp), so scene files tune them freely. Compositor only:
   transform/opacity, baked keyframes, scroll-driven only inside @supports + :root[data-sda]; idle loops run only inside a
   registered home.loops container ([data-loop="on"]); motion off = the static layout, which is always the designed end. */
@layer tokens {
  :root {
    --sticker-ink: var(--title-ink); --sticker-cream: #FFFDF8;   /* Phantom's die-cut stroke, measured live (STICKER-R10.md) */
    --sticker-drop: rgba(8, 5, 26, .34);
    /* the clouds are the app's hills (CandySky.hill, R10 §2): night = the same dome at about a quarter strength, a
       lavender-white lit top and a faint rim melting into the starry sky */
    --hill-wide: url("/h/media/sky/hill-wide-night.svg"); --hill-tall: url("/h/media/sky/hill-tall-night.svg");
    --glass-fill: linear-gradient(150deg, rgba(98, 80, 188, .7), rgba(46, 34, 108, .66));
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 0 0 1px rgba(255, 255, 255, .11), 0 22px 40px -18px rgba(8, 5, 26, .9);
    --glass-ink: var(--cream);
    --spark: #FFE08A;
    /* the sparkle as the app draws it (CandySparkle): the star, its lighter heart at 45 %, its glow baked in (no filter) */
    --spark-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-20 -20 40 40'%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23FFE08A' stop-opacity='.62'/%3E%3Cstop offset='.5' stop-color='%23FFE08A' stop-opacity='.2'/%3E%3Cstop offset='1' stop-color='%23FFE08A' stop-opacity='0'/%3E%3C/radialGradient%3E%3Ccircle r='20' fill='url(%23g)'/%3E%3Cpath d='M0-12C.9-4.9 4.9-.9 12 0C4.9.9.9 4.9 0 12C-.9 4.9-4.9.9-12 0C-4.9-.9-.9-4.9 0-12Z' fill='%23FFE08A'/%3E%3Cpath transform='scale(.45)' d='M0-12C.9-4.9 4.9-.9 12 0C4.9.9.9 4.9 0 12C-.9 4.9-4.9.9-12 0C-4.9-.9-.9-4.9 0-12Z' fill='%23FFFBEC'/%3E%3C/svg%3E");
    --spark-day: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-20 -20 40 40'%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23FFC93C' stop-opacity='.62'/%3E%3Cstop offset='.5' stop-color='%23FFC93C' stop-opacity='.2'/%3E%3Cstop offset='1' stop-color='%23FFC93C' stop-opacity='0'/%3E%3C/radialGradient%3E%3Ccircle r='20' fill='url(%23g)'/%3E%3Cpath d='M0-12C.9-4.9 4.9-.9 12 0C4.9.9.9 4.9 0 12C-.9 4.9-4.9.9-12 0C-4.9-.9-.9-4.9 0-12Z' fill='%23FFC93C'/%3E%3Cpath transform='scale(.45)' d='M0-12C.9-4.9 4.9-.9 12 0C4.9.9.9 4.9 0 12C-.9 4.9-4.9.9-12 0C-4.9-.9-.9-4.9 0-12Z' fill='%23FFF6D2'/%3E%3C/svg%3E");
    --spark-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.9 7.1 16.9 11.1 24 12C16.9 12.9 12.9 16.9 12 24C11.1 16.9 7.1 12.9 0 12C7.1 11.1 11.1 7.1 12 0Z'/%3E%3C/svg%3E");
  }
  :root[data-theme="light"] {
    --sticker-drop: rgba(60, 74, 122, .2);
    --hill-wide: url("/h/media/sky/hill-wide.svg"); --hill-tall: url("/h/media/sky/hill-tall.svg");   /* + a whisper of the holo pastels */
    --glass-fill: linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .64));
    --glass-shadow: inset 0 1px 0 #FFFFFF, inset 0 0 0 1px rgba(255, 255, 255, .7), 0 0 0 1px rgba(74, 90, 154, .12), 0 18px 34px -16px rgba(60, 74, 122, .45);
    --glass-ink: var(--ink);
    --spark: #FFC93C;
    --spark-img: var(--spark-day);
  }
}
@layer comp {
  /* ── blob: a cloud of light, the app's hill (CandySky.hill; owner R10: "implicit, melting into the sky, never block by
     block"). A huge dome with a circular top: its lit top (lavender-white .62 → .32 at 32 % → nothing by 70 %) fades to
     nothing, its sides fade out (0 → 1 at 30 %, 1 → 0 from 70 %) so no seam ever shows, its edge is feathered, and a
     1.2 px white rim fades out over the top 24 %, "between there and not there". By day the lit top carries a whisper of
     the holo pastels (pink, peach, butter, mint, aqua, lilac); by night it is the same hill at about a quarter strength.
     A static SVG image (the mask and gradients live inside it), so a parallax layer only moves, never repaints.
     .blob = the wide dome (2:1, a half circle) · .blob--orb = the tall dome (1:1, half circle on straight sides) ·
     .blob--deep = the hill further back (fainter) · --hill (0–1) = strength. Place it with left/top/--bw ── */
  .blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
  .blob {
    position: absolute; display: block; width: var(--bw, 120%); aspect-ratio: 2; opacity: var(--hill, 1);
    background: var(--hill-wide) 0 0 / 100% 100% no-repeat;
  }
  .blob--orb { aspect-ratio: 1; background-image: var(--hill-tall); }
  .blob--deep { --hill: .6; }
  .blob--flip { scale: -1 1; }

  /* ── float: an absolutely placed object (a render's <picture>, or a .glass chip) at --x --y, --w wide, tilted --r. Its
     first child wobbles (rotate ±1.5°, ±6 px, --wt 6–9 s, --wd a negative delay to stagger); it runs only inside a
     registered loop container ([data-loop="on"]) and rests at its pose otherwise ── */
  .float { position: absolute; z-index: var(--z, 1); display: block; left: var(--x, 0); top: var(--y, 0); width: var(--w, auto); rotate: var(--r, 0deg); pointer-events: none; }
  .float > picture { display: block; }
  .float > :first-child { animation: float-wob var(--wt, 7.4s) cubic-bezier(.45, 0, .55, 1) var(--wd, 0s) infinite paused; }
  .float--alt > :first-child { animation-direction: reverse; }
  .float > picture img, .float > img { display: block; width: 100%; height: auto; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
  [data-loop="on"] .float > :first-child { animation-play-state: running; }
  @keyframes float-wob {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    30% { transform: translate3d(0, -6px, 0) rotate(1.5deg); }
    64% { transform: translate3d(0, 4px, 0) rotate(-1.2deg); }
  }

  /* ── glass: the see-through mini chip, an output in two lines (R10, after Phantom's "Receive" chip). Face (the faces
     sprite) or icon, a small label in the teammate's colour, the value in the display face. Low fill, the sky clearly
     through it; a bright specular top rim, a soft inner glow, a sheen over the top half, a deep soft drop; a hairline
     holographic rim in the holo card's pastels (--gls-holo: its strength, 0 = none). Night: translucent violet glass.
     No backdrop blur: it floats (no filters on moving layers), so the frost is faked by light alone; .glass--blur adds
     real blur for a chip that never moves. A scene tints a chip by setting --gls-fill (team.css) ── */
  .glass {
    --gls-fill: linear-gradient(155deg, rgba(182, 164, 255, .3), rgba(116, 94, 226, .15) 52%, rgba(76, 56, 178, .24));
    --gls-shadow: inset 0 1px 0 rgba(255, 255, 255, .44), inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 0 18px rgba(200, 182, 255, .17),
      inset 0 -10px 16px -12px rgba(18, 8, 58, .55), 0 2px 6px -2px rgba(8, 5, 26, .42), 0 26px 44px -20px rgba(8, 5, 26, .92);
    --gls-sheen: linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .04) 46%, rgba(255, 255, 255, 0) 56%);
    --gls-holo: .6;
    position: relative; isolation: isolate;
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 18px;
    white-space: nowrap; text-align: left; color: var(--glass-ink); background: var(--gls-fill); box-shadow: var(--gls-shadow);
  }
  :root[data-theme="light"] .glass {
    --gls-fill: linear-gradient(155deg, rgba(255, 255, 255, .48), rgba(255, 255, 255, .18) 54%, rgba(242, 238, 255, .28));
    --gls-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .96), inset 0 0 0 1px rgba(255, 255, 255, .32), inset 0 0 16px rgba(255, 255, 255, .34),
      inset 0 -10px 16px -12px rgba(96, 88, 204, .24), 0 2px 6px -2px rgba(52, 60, 140, .16), 0 24px 40px -20px rgba(52, 60, 140, .5);
    --gls-sheen: linear-gradient(180deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, .08) 46%, rgba(255, 255, 255, 0) 56%);
    --gls-holo: .95;
  }
  .glass::before, .glass::after { content: ""; position: absolute; z-index: -1; border-radius: inherit; pointer-events: none; }
  .glass::before { inset: 1px; background: var(--gls-sheen); }                          /* the sheen, under the words */
  .glass::after {                                                                         /* the holographic hairline */
    inset: 0; padding: 1px; opacity: var(--gls-holo);
    background: linear-gradient(118deg, #FFC9E3, #FFDBBD 17%, #FFF7B8 33%, #C7F5DE 50%, #BFE8FF 67%, #D9C7FF 84%, #FFC9E3);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  }
  .glass__face, .glass__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #ECEBF2; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5), 0 5px 10px -5px rgba(18, 10, 60, .45); }
  .glass__icon { display: grid; place-items: center; color: var(--tm, var(--ink)); }
  .glass__icon svg { width: 20px; height: 20px; }
  .glass__t { display: grid; gap: 1px; }
  .glass__t > b { font: 700 12px/1.25 var(--font-body); letter-spacing: .04em; color: #D8D7E2; }
  /* owner 2026-10-26: chips carry no colour. Labels are a light grey-white by night, a neutral grey ink by day */
  :root[data-theme="light"] .glass__t > b { color: #505266; }
  .glass__t > :last-child { font-size: 16px; line-height: 1.2; letter-spacing: .01em; }
  :lang(en) .glass__t > b { letter-spacing: .02em; }
  .glass--blur { -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); }
  /* dense: the same glass, filled enough to hold AA over a bright or dark render passing behind it (the sheen, rims and
     holo hairline stay). For a chip parked over art, not over sky */
  .glass--dense { --gls-fill: linear-gradient(155deg, rgba(122, 102, 222, .8), rgba(72, 54, 172, .74) 52%, rgba(48, 34, 124, .8)); }
  :root[data-theme="light"] .glass--dense { --gls-fill: linear-gradient(155deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .8) 54%, rgba(246, 242, 255, .86)); }

  /* ── sparkle: the gold four-point star with its cream heart and baked glow (the app's CandySparkle), a star --s wide
     centred on the same spot as before (the box is 5/3 of it, so the glow has room). Twinkles (3.4 s: scale .6 ↔ 1, turn
     20°, opacity .55 ↔ 1) only inside a running loop container; it rests full and still otherwise ── */
  .sparkle {
    position: absolute; z-index: var(--z, 1); left: var(--x, 0); top: var(--y, 0); width: calc(var(--s, 18px) * 5 / 3); aspect-ratio: 1;
    margin: calc(var(--s, 18px) * -1 / 3) 0 0 calc(var(--s, 18px) * -1 / 3); pointer-events: none;
    background: var(--spark-img) center / contain no-repeat;
    animation: sparkle var(--st, 3.4s) cubic-bezier(.37, 0, .63, 1) var(--sd, 0s) infinite paused;
  }
  [data-loop="on"] .sparkle { animation-play-state: running; }
  @keyframes sparkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(.6) rotate(20deg); opacity: .55; } }

  /* ── sticker (owner 2026-10-26: no die-cut): the giant headline set straight on the sky, title ink by day and cream
     by night, lifted by one soft static glow behind it (a gradient, no filter: nothing repaints). Set font-size per scene ── */
  .sticker {
    position: relative; isolation: isolate; display: block; padding: .06em .1em .1em;
    color: var(--on-sky-title, var(--sticker-ink)); font-family: var(--font-display); font-weight: 800; line-height: .98; letter-spacing: .01em;
    text-align: center; text-wrap: balance;
  }
  .sticker::before {
    content: ""; position: absolute; inset: -18% -10%; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(255, 253, 248, .72), rgba(255, 253, 248, .32) 55%, rgba(255, 253, 248, 0));
  }
  :root[data-theme="dark"] .sticker::before { background: radial-gradient(closest-side, rgba(150, 128, 255, .34), rgba(150, 128, 255, .12) 55%, rgba(150, 128, 255, 0)); }

  /* ── scroll motion. .sx = a scope (its own view timeline, --sx); inside it:
       .sx-explode  flies out to --ex --ey and grows to --es (1.7) as the scope leaves the screen (the hero's explode)
       .sx-leave    fades, lifts and settles back as the scope leaves (the words handing over)
       .sx-par      parallax: drifts --par (60px) against the scroll while the scope crosses the screen (blobs)
       .sx-part     arrives from --pfrom (x y) to its place as the scope enters (parting blobs)
       .sx-rise     rises in on its own entry, from --rx --ry (0 48px), --rs (1), transparent
     Each uses the individual translate/scale properties, so it composes with a float's rotate and its child's wobble. ── */
  .sx { view-timeline: --sx block; }
  @supports (animation-timeline: view()) {
    :root[data-sda]:not([data-motion="off"]) :is(.sx-explode, .sx-leave, .sx-par, .sx-part, .sx-rise) { animation-duration: auto; animation-timing-function: linear; animation-fill-mode: both; }
    :root[data-sda]:not([data-motion="off"]) .sx-explode { animation-name: sx-explode; animation-timeline: --sx; animation-range: exit 0% exit 100%; }
    :root[data-sda]:not([data-motion="off"]) .sx-leave { animation-name: sx-leave; animation-timeline: --sx; animation-range: exit 12% exit 78%; }
    :root[data-sda]:not([data-motion="off"]) .sx-par { animation-name: sx-par; animation-timeline: --sx; animation-range: cover 0% cover 100%; }
    :root[data-sda]:not([data-motion="off"]) .sx-part { animation-name: sx-part; animation-timeline: --sx; animation-range: entry 0% cover 50%; }
    /* not in a page-tall render (a crawler's 412 × page-height screenshot: the 100svh hero grows with it and pushes the
       rest out of view, so every rise would wait at opacity 0); no real screen is 1600 px tall */
    @media (max-height: 1599.98px) { :root[data-sda]:not([data-motion="off"]) .sx-rise { animation-name: sx-rise; animation-timeline: view(); animation-range: entry 0% cover 28%; } }
  }
  @keyframes sx-explode { to { translate: var(--ex, 0) var(--ey, -30%); scale: var(--es, 1.7); } }
  @keyframes sx-leave { to { opacity: 0; translate: 0 -10%; scale: .9; } }
  @keyframes sx-par { from { translate: 0 var(--par, 60px); } to { translate: 0 calc(var(--par, 60px) * -1); } }
  @keyframes sx-part { from { translate: var(--pfrom, 0 0); } }
  @keyframes sx-rise { from { opacity: 0; translate: var(--rx, 0) var(--ry, 48px); scale: var(--rs, 1); } }

  /* motion off (the pause control or OS Reduce Motion): every R9 layer rests in its designed pose at once */
  :root[data-motion="off"] :is(.float > :first-child, .sparkle) { animation: none; }
}
