/* =====================================================================
   Stellar Archive — base.css
   Design system "Stellar Night · Idol Stage" (winner: concept A, with grafts
   from B and C). Unofficial trilingual (中文 / 日本語 / English) fan site
   for 星街すいせい / 星街彗星 / Hoshimachi Suisei.

   Source of truth : design/DESIGN_SYSTEM.md. This file = design/base.css + the site-only blocks
                     [shell] [palette] [fresh] [soon] [nf] near the end. Every other block is identical in
                     both files: edit them together (fixes are marked "fix:", site additions "site addition").
   Fonts           : system CJK faces (no CJK webfonts); Outfit + Cormorant Garamond are self-hosted in
                     assets/fonts/ and declared by index.html (see DESIGN_SYSTEM.md §2.5)
   Performance     : docs/ARCHITECTURE.md › Performance rules (no backdrop-filter on persistent elements,
                     no filter over animated children, masks only where nothing cheaper exists, .cv-auto)
   Rules           : below [tokens] no raw colours — components use semantic tokens only,
                     so [data-theme="light"] is a pure token swap. Page styles go to
                     assets/css/pages/<id>.css, scoped under .page-<id>.
   Section markers : "/* ==== [name] ..." — DESIGN_SYSTEM.md quotes these blocks verbatim.
   ===================================================================== */

/* ==== [tokens] Design tokens — dark "Stellar Night" is the default ==== */
:root {
  /* raw palette — brand-derived; only referenced by the semantic tokens */
  --night-950: #04061a;
  --night-900: #070b24;
  --night-850: #0a1030;
  --night-800: #0e143c;
  --night-700: #151d4f;
  --night-600: #1e2866;
  --navy-900: #1b1f45;          /* her line-art navy */
  --blue-700: #2448a8;
  --blue-600: #2f5bc4;
  --blue-500: #3b6fd9;          /* deep hair */
  --blue-400: #6fa1e6;          /* hair */
  --blue-300: #9cc3f2;          /* light hair */
  --blue-200: #c8ddf8;
  --blue-100: #e6effd;
  --cyan-600: #0a6a7e;
  --cyan-400: #4fcfe6;
  --cyan-300: #7fe3f2;          /* comet coma */
  --gold-700: #8a5a00;
  --gold-600: #a86f00;
  --gold-500: #e0a93a;
  --gold-400: #f6c453;          /* star */
  --gold-300: #f2d08a;          /* crown */
  --gold-200: #fff1c4;
  --violet-600: #5b45c9;
  --violet-300: #c9bbff;
  --mint-700: #0b6b4a;
  --mint-600: #0f7a55;
  --mint-300: #8ee6c0;
  --amber-600: #9a4d00;
  --amber-300: #ffc27a;
  --rose-700: #c8173a;
  --rose-600: #d61f45;          /* LIVE fill — white text 5.1:1 */
  --rose-500: #e11d48;
  --rose-400: #ff5c7e;          /* LIVE glow / dot — never behind text */
  --rose-300: #ff8fa8;          /* LIVE as text on dark */
  --plaid-base: #5d6278;        /* grey tartan of her outfit */
  --white: #ffffff;
  --paper: #e9eefc;             /* barcode ink, printed-on-dark details */
  --brand-youtube: #ff3355;     /* platform glyph tints (icons only, never text) */
  --brand-youtube-deep: #e8002d;
  --brand-bilibili: #20b0e3;
  --brand-spotify: #1ed760;
  --brand-line: #06c755;
  --avatar-bg: radial-gradient(circle at 50% 30%, #2d418f, #111848);
  --card-prop: linear-gradient(135deg, #2a3690 0%, #1a2266 45%, #0e1440 100%);   /* member card */

  /* typography — families (roles are resolved per element via :lang(), see [fonts]). No CJK webfonts: Chinese and
     Japanese use each system's own faces (fast, and complete where a webfont host is unreachable); only the Latin
     display faces Outfit + Cormorant Garamond are self-hosted (assets/fonts/, declared by index.html — §2.5) */
  --font-zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, "Noto Sans CJK JP", "Source Han Sans JP", sans-serif;
  --font-en: "Outfit", "Hiragino Sans", "Yu Gothic UI", "Noto Sans CJK JP", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;   /* CJK inside English: Japanese forms */
  --font-latin: "Outfit";
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia;   /* fix: no generic serif, so CJK falls through to the sans CJK stacks (not Mincho) */

  /* type scale (px on purpose: CJK glyphs need predictable sizes) */
  --fs-2xs: 11px;               /* Latin caps labels only (eyebrows, cue tags) — never CJK */
  --fs-xs: 12px;                /* badges, tiny meta — the CJK minimum */
  --fs-sm: 13px;                /* meta lines, captions */
  --fs-md: 14px;                /* secondary copy, list sub-lines, buttons-sm */
  --fs-base: 16px;              /* body */
  --fs-title: 15px;             /* card / row titles */
  --fs-lg: 18px;                /* lead, card-head titles */
  --fs-xl: 22px;                /* featured titles */
  --fs-h2: clamp(26px, 1.4vw + 18px, 38px);
  --fs-h1: clamp(34px, 2.2vw + 22px, 56px);
  --hero-fs: clamp(56px, 5.2vw + 26px, 112px);   /* per language below */
  --lh: 1.75;                   /* body line-height, per language below */
  --lh-tight: 1.2;
  --lh-snug: 1.45;
  --ls: .02em;                  /* body tracking, per language below */
  --ls-head: .02em;             /* heading tracking, per language below */
  --ls-caps: .24em;             /* tracked Latin caps */

  /* radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;                 /* thumbnails */
  --r-lg: 24px;                 /* cards */
  --r-xl: 32px;
  --r-pill: 999px;

  /* spacing — 4 px base */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --gutter: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left), env(safe-area-inset-right));   /* fix: viewport-fit=cover → keep content out of the notch / rounded corners (landscape) */
  --maxw: 1200px;
  --maxw-wide: 1320px;          /* dashboards (tracker), archive tables */
  --maxw-prose: 38em;
  --header-h: 72px;
  --section-gap: clamp(64px, 7vw, 104px);
  --card-pad: clamp(20px, 2.2vw, 28px);

  /* z-index */
  --z-sky: 0;
  --z-content: 1;
  --z-raised: 10;
  --z-sticky: 50;
  --z-header: 100;
  --z-popover: 150;
  --z-drawer: 200;
  --z-modal: 250;
  --z-toast: 300;
  --z-skip: 400;

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);        /* entrances, hovers */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);     /* loops: float, twinkle, sway */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);  /* tiny pops: play orb, nodes, press */
  --dur-1: 150ms;               /* colour, press */
  --dur-2: 250ms;               /* hover lift, small moves */
  --dur-3: 450ms;               /* drawers, cards, thumbs */
  --dur-4: 900ms;               /* reveals */

  /* glyph masks (currentColor via background + mask) */
  --sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.3 5.7 11.2 12 12-6.3.8-11.2 5.7-12 12-.8-6.3-5.7-11.2-12-12C6.3 11.2 11.2 6.3 12 0z'/%3E%3C/svg%3E");
  --crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.8 8.6l4.9 3.8L12 5.2l4.3 7.2 4.9-3.8-1.8 9.6H4.6z'/%3E%3Crect x='4.6' y='19.2' width='14.8' height='2.4' rx='.8'/%3E%3Ccircle cx='2.8' cy='7.6' r='1.8'/%3E%3Ccircle cx='12' cy='3.7' r='1.8'/%3E%3Ccircle cx='21.2' cy='7.6' r='1.8'/%3E%3C/svg%3E");
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.2l2.95 6.2 6.8.83-5 4.7 1.3 6.73L12 17.4l-6.05 3.26 1.3-6.73-5-4.7 6.8-.83z'/%3E%3C/svg%3E");
  /* hero sparkles: white → blue / pale gold → gold star with its halo drawn in (one image, no mask or filter) */
  --spark-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 48 48'%3E%3Cdefs%3E%3CradialGradient id='h'%3E%3Cstop offset='.3' stop-color='%239cc3f2' stop-opacity='.5'/%3E%3Cstop offset='.62' stop-color='%239cc3f2' stop-opacity='.13'/%3E%3Cstop offset='1' stop-color='%239cc3f2' stop-opacity='0'/%3E%3C/radialGradient%3E%3ClinearGradient id='f' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%239cc3f2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='21' fill='url(%23h)'/%3E%3Cpath fill='url(%23f)' d='M12 0c.8 6.3 5.7 11.2 12 12-6.3.8-11.2 5.7-12 12-.8-6.3-5.7-11.2-12-12C6.3 11.2 11.2 6.3 12 0z'/%3E%3C/svg%3E");
  --spark-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 48 48'%3E%3Cdefs%3E%3CradialGradient id='h'%3E%3Cstop offset='.3' stop-color='%23f6c453' stop-opacity='.5'/%3E%3Cstop offset='.62' stop-color='%23f6c453' stop-opacity='.13'/%3E%3Cstop offset='1' stop-color='%23f6c453' stop-opacity='0'/%3E%3C/radialGradient%3E%3ClinearGradient id='f' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fff1c4'/%3E%3Cstop offset='1' stop-color='%23f6c453'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='21' fill='url(%23h)'/%3E%3Cpath fill='url(%23f)' d='M12 0c.8 6.3 5.7 11.2 12 12-6.3.8-11.2 5.7-12 12-.8-6.3-5.7-11.2-12-12C6.3 11.2 11.2 6.3 12 0z'/%3E%3C/svg%3E");
  /* the three yellow emphasis strokes next to the chibi's thumbs-up */
  --sparks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='3.8' stroke-linecap='round'%3E%3Cpath d='M14 3.5 18.5 13M3.5 12.5 12.5 17M4 26.5l8.8-3'/%3E%3C/svg%3E");
  /* grey tartan from her outfit — ticket stub, member card, podium, footer hem */
  --plaid:
    repeating-linear-gradient(90deg, rgba(255,255,255,.20) 0 1px, transparent 1px 11px, rgba(255,255,255,.12) 11px 12px, transparent 12px 36px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.20) 0 1px, transparent 1px 11px, rgba(255,255,255,.12) 11px 12px, transparent 12px 36px),
    repeating-linear-gradient(90deg, rgba(12,14,34,.50) 0 7px, transparent 7px 18px, rgba(12,14,34,.22) 18px 26px, transparent 26px 36px),
    repeating-linear-gradient(0deg, rgba(12,14,34,.50) 0 7px, transparent 7px 18px, rgba(12,14,34,.22) 18px 26px, transparent 26px 36px),
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
}

/* semantic colours — dark. Re-declared on .prop in the light theme: "stage props"
   (the concert ticket, the member card) stay dark printed objects on a daylight page. */
:root,
:root[data-theme="light"] .prop {
  color-scheme: dark;
  --bg: var(--night-900);
  --bg-deep: var(--night-950);
  --surface-1: linear-gradient(180deg, rgba(28, 39, 104, .86) 0%, rgba(14, 20, 60, .9) 100%);   /* cards */
  --surface-panel: rgba(12, 18, 54, .82);        /* flat panels: dense lists, toolbars */
  --surface-2: rgba(156, 195, 242, .06);         /* raised tint: chips, hover rows */
  --surface-inset: rgba(4, 7, 28, .55);          /* inputs, countdown cells, segmented */
  --surface-overlay: rgba(11, 16, 50, .97);      /* popovers, drawer, modal */
  --surface-header: linear-gradient(180deg, rgba(6, 9, 30, .84), rgba(6, 9, 30, .62));
  --surface-header-solid: rgba(6, 9, 30, .985);      /* the scrolled bar: no blur behind it, so nearly opaque */
  --surface-media: var(--night-700);             /* thumbnail placeholder */
  --scrim: rgba(3, 6, 24, .78);                  /* labels on thumbnails (white text ≥ 8.5:1) */
  --backdrop: rgba(2, 4, 16, .66);

  --line: rgba(156, 195, 242, .14);
  --line-2: rgba(156, 195, 242, .26);
  --line-strong: rgba(156, 195, 242, .45);
  --dash: rgba(156, 195, 242, .28);              /* perforations, dashed separators */
  --hover: rgba(156, 195, 242, .07);
  --edge: linear-gradient(160deg, rgba(200,221,248,.42), rgba(156,195,242,.06) 38%, rgba(156,195,242,.04) 70%, rgba(246,196,83,.28));
  --edge-live: linear-gradient(150deg, rgba(255,120,150,.7), rgba(255,92,126,.12) 34%, rgba(156,195,242,.06) 65%, rgba(156,195,242,.22));
  --edge-gold: linear-gradient(160deg, rgba(255,241,196,.62), rgba(246,196,83,.14) 40%, rgba(246,196,83,.08) 70%, rgba(246,196,83,.42));

  --text-1: #eef3ff;                             /* 13.1–17.5 : 1 */
  --text-2: #bcc8ea;                             /* 8.7–11.6 : 1 */
  --text-3: #96a3cf;                             /* 5.8–7.8 : 1 — meta */
  --on-primary: #081030;                         /* text on --grad-primary / --accent fills */
  --on-gold: #2a1e00;
  --on-live: #ffffff;
  --on-media: #ffffff;

  --accent: var(--blue-300);                     /* links, selected */
  --accent-2: var(--cyan-300);                   /* focus, "next", hover highlights */
  --accent-fill: var(--blue-500);
  --focus: var(--cyan-300);
  --gold: var(--gold-400);                       /* fills, icons, stars */
  --gold-text: var(--gold-400);                  /* gold as text, AA on every surface */
  --gold-soft: var(--gold-300);
  --live: var(--rose-400);
  --live-bg: var(--rose-600);
  --live-text: var(--rose-300);
  --success: var(--mint-300);
  --warn: var(--amber-300);
  --danger: var(--rose-300);                     /* errors only — red is otherwise LIVE-only */

  --tag-neutral-fg: var(--text-2);  --tag-neutral-bg: rgba(255,255,255,.04); --tag-neutral-bd: rgba(156,195,242,.26);
  --tag-blue-fg: #c3dbff;           --tag-blue-bg: rgba(111,161,230,.12);    --tag-blue-bd: rgba(111,161,230,.4);
  --tag-cyan-fg: #a4f0fa;           --tag-cyan-bg: rgba(127,227,242,.08);    --tag-cyan-bd: rgba(127,227,242,.38);
  --tag-gold-fg: #ffe3a3;           --tag-gold-bg: rgba(246,196,83,.08);     --tag-gold-bd: rgba(246,196,83,.42);
  --tag-violet-fg: #d9d0ff;         --tag-violet-bg: rgba(201,187,255,.08);  --tag-violet-bd: rgba(201,187,255,.4);
  --tag-mint-fg: #b4f0d6;           --tag-mint-bg: rgba(142,230,192,.08);    --tag-mint-bd: rgba(142,230,192,.38);

  --grad-stellar: linear-gradient(100deg, #9cc3f2 0%, #7fe3f2 48%, #f6c453 100%);   /* progress · now · selected */
  --grad-name: linear-gradient(180deg, #ffffff 12%, #dce8ff 52%, #9cc3f2 100%);
  --grad-primary: linear-gradient(135deg, #e3eeff 0%, #9cc3f2 45%, #7fe3f2 100%);
  --grad-gold: linear-gradient(135deg, #fff1c4 0%, #f6c453 55%, #e0a93a 100%);
  --grad-gold-text: linear-gradient(135deg, #fff1c4 0%, #f6c453 55%, #e0a93a 100%);   /* gold as large text */
  --grad-live: linear-gradient(135deg, #e11d48 0%, #c8173a 100%);
  --grad-tour: linear-gradient(100deg, #fff6d8 0%, #f6c453 42%, #f2d08a 62%, #9cc3f2 100%);
  --grad-num: linear-gradient(180deg, #ffffff 35%, #9cc3f2 100%);
  --grad-path: linear-gradient(90deg, rgba(156,195,242,.06) 0%, rgba(156,195,242,.34) 30%, rgba(127,227,242,.7) 70%, rgba(246,196,83,.95) 96%, #fff 100%);
  --grad-horizon: linear-gradient(90deg, transparent, #7fe3f2, #f6c453, transparent);

  --shadow-1: 0 1px 0 rgba(255,255,255,.05) inset, 0 24px 60px -28px rgba(2,4,20,.85);
  /* fix: .card's lift — --shadow-1 redrawn with a 28 px blur, fitted to its falloff (screenshots within 4 levels of 255
     in dark, 11 in light): a 60 px blur on every repeated card was re-rastered with each of them. --shadow-1 stays for
     the single hero cards (.card-live, .card-gold, the feature video card) */
  --shadow-card: 0 1px 0 rgba(255,255,255,.05) inset, 0 24px 28px -10px rgba(2,4,20,.4);
  --shadow-2: 0 30px 60px -24px rgba(2,4,20,.9), 0 0 0 1px rgba(156,195,242,.28);
  --shadow-pop: 0 24px 60px -20px rgba(0,0,0,.8);
  --shadow-thumb: 0 0 0 1px rgba(156,195,242,.12), 0 12px 22px -14px rgba(0,0,0,.88);   /* fix: a smaller blur — it repeats on every thumbnail */
  --glow-blue: 0 0 0 1px rgba(111,161,230,.35), 0 12px 40px -10px rgba(59,111,217,.65);
  --glow-cyan: 0 10px 34px -10px rgba(127,227,242,.7);
  --glow-gold: 0 10px 34px -10px rgba(246,196,83,.7);
  --glow-live: 0 10px 34px -10px rgba(255,61,104,.75);

  /* sky — read by the starfield script (core.js) as well */
  --sky:
    radial-gradient(60% 42% at 88% -4%, rgba(59,111,217,.34), transparent 70%),
    radial-gradient(46% 38% at -6% 26%, rgba(104,84,220,.20), transparent 70%),
    radial-gradient(50% 40% at 104% 64%, rgba(79,207,230,.09), transparent 70%),
    radial-gradient(64% 46% at 18% 104%, rgba(59,111,217,.18), transparent 70%),
    linear-gradient(118deg, transparent 32%, rgba(156,195,242,.045) 46%, rgba(200,221,248,.07) 51%, rgba(156,195,242,.04) 56%, transparent 70%),
    linear-gradient(180deg, #050818 0%, #080d2b 34%, #0b1136 68%, #080c27 100%);
  --star-1: #ffffff;
  --star-2: #dce8ff;
  --star-3: #bfe9f5;
  --star-4: #ffe7a8;
  --star-alpha: 1;
  --comet-head: #ffffff;
  --comet-tail: 127 227 242;                     /* rgb triple, used as rgb(var(--comet-tail) / a) */

  /* component tokens that change per theme */
  --tl-c-1: #9cc3f2;                             /* timeline steps: 2018 → now */
  --tl-c-2: #8fd0f4;
  --tl-c-3: #7fe3f2;
  --tl-c-4: #dbe8ff;
  --tl-c-5: #f6c453;
  --moon: radial-gradient(circle at 32% 26%, rgba(220,234,255,.26), transparent 42%),
          radial-gradient(circle at 50% 50%, rgba(111,161,230,.22), rgba(59,111,217,.10) 55%, rgba(27,31,69,0) 72%);
  --moon-glow: 0 0 140px 20px rgba(59,111,217,.26), inset 0 0 0 1px rgba(156,195,242,.14), inset 0 0 80px rgba(156,195,242,.10);
  --hero-glow: rgba(59, 111, 217, .34);
  --penlight-1: 111 161 230;                     /* rgb triples */
  --penlight-2: 127 227 242;
  --penlight-3: 255 255 255;
  --penlight-alpha: 1;
  --poster-stroke: rgba(156, 195, 242, .42);
  --poster-fill: linear-gradient(180deg, rgba(156,195,242,.16) 0%, rgba(127,227,242,.10) 40%, rgba(246,196,83,.08) 70%, transparent 96%);
  --bubble-bg: #ffffff;
  --bubble-fg: var(--navy-900);
  --bubble-line: var(--navy-900);
  --ticket-bg: radial-gradient(90% 120% at 0% 0%, rgba(59,111,217,.45), transparent 60%), linear-gradient(120deg, #172060 0%, #10164a 45%, #0b1036 100%);
  --ticket-foil: rgba(242, 208, 138, .35);
  --flap-bg: linear-gradient(180deg, #1b2257 0 50%, #141a48 50% 100%);
  --name-glow: drop-shadow(0 8px 34px rgba(111,161,230,.4));
  --chibi-shadow: drop-shadow(0 22px 34px rgba(3,6,26,.55));
  /* the concert ticket's static shadow (fix: was filter: drop-shadow() over the wrap, re-rendered with the flip countdown
     inside it): the dark drop, the gold edge light and the faint gold haze the second drop-shadow cast around the first —
     drop-shadow's blur length is a standard deviation, box-shadow's is twice one. The notch holes (inside the box, where a
     box-shadow never draws) show what the filter showed through them, and a thin gold arc rims each hole */
  --prop-shadow: 0 26px 80px rgba(2,4,20,.55), 0 0 2px rgba(246,196,83,.45), 0 26px 80px rgba(246,196,83,.25);
  --ticket-hole: rgba(60,49,35,.41); --ticket-hole-top: rgba(68,56,37,.24); --ticket-hole-bot: rgba(52,43,33,.55);
  --ticket-rim: rgba(246,196,83,.1);
  --spark-mark: var(--gold-200);
  --yt-glyph: var(--brand-youtube-deep);
  --brand-spotify-ink: var(--brand-spotify);
  --brand-line-ink: var(--brand-line);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239cc3f2' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --stat-glow: rgba(59, 111, 217, .35);          /* site addition: stat tile inner glow (was a raw colour) */
  --stat-glow-gold: rgba(246, 196, 83, .3);
  /* site addition: categorical chart series (stream · video · short) — validated for both themes (streams page) */
  --chart-1: var(--accent-fill);
  --chart-2: #b37a00;
  --chart-3: #1f9fc0;

  color: var(--text-1);
}

/* semantic colours — light "Daybreak": the same system, tokens swapped (no component overrides) */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef4ff;
  --bg-deep: #e2ebfb;
  --surface-1: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(248,251,255,.9) 100%);
  --surface-panel: rgba(255, 255, 255, .9);
  --surface-2: rgba(59, 111, 217, .05);
  --surface-inset: rgba(226, 235, 252, .88);
  --surface-overlay: rgba(250, 252, 255, .98);
  --surface-header: linear-gradient(180deg, rgba(247,250,255,.92), rgba(247,250,255,.76));
  --surface-header-solid: rgba(247, 250, 255, .99);
  --surface-media: #dbe6fa;
  --scrim: rgba(12, 16, 46, .78);
  --backdrop: rgba(20, 26, 61, .42);

  --line: rgba(27, 31, 69, .10);
  --line-2: rgba(27, 31, 69, .18);
  --line-strong: rgba(27, 31, 69, .32);
  --dash: rgba(47, 91, 196, .28);
  --hover: rgba(59, 111, 217, .06);
  --edge: linear-gradient(160deg, rgba(255,255,255,.95), rgba(156,195,242,.35) 40%, rgba(156,195,242,.2) 70%, rgba(246,196,83,.45));
  --edge-live: linear-gradient(150deg, rgba(225,29,72,.55), rgba(225,29,72,.10) 34%, rgba(47,91,196,.10) 65%, rgba(47,91,196,.25));
  --edge-gold: linear-gradient(160deg, rgba(246,196,83,.8), rgba(246,196,83,.2) 40%, rgba(246,196,83,.14) 70%, rgba(224,169,58,.6));

  --text-1: #141a3d;                             /* 15.3–16.9 : 1 */
  --text-2: #3a4470;                             /* 8.2–9.4 : 1 */
  --text-3: #525c86;                             /* 5.7–6.5 : 1 */
  --on-primary: #ffffff;
  --accent: var(--blue-600);                     /* 5.4–6.2 : 1 */
  --accent-2: var(--cyan-600);                   /* 5.6–6.2 : 1 */
  --accent-fill: var(--blue-600);
  --focus: var(--blue-600);
  --gold: var(--gold-500);
  --gold-text: var(--gold-700);                  /* 5.2–5.9 : 1 */
  --gold-soft: var(--gold-700);
  --live-text: #c81e45;
  --success: var(--mint-600);
  --warn: var(--amber-600);
  --danger: #c81e45;

  --tag-neutral-fg: var(--text-2);  --tag-neutral-bg: rgba(27,31,69,.04);    --tag-neutral-bd: rgba(27,31,69,.18);
  --tag-blue-fg: var(--blue-700);   --tag-blue-bg: rgba(47,91,196,.07);      --tag-blue-bd: rgba(47,91,196,.3);
  --tag-cyan-fg: var(--cyan-600);   --tag-cyan-bg: rgba(14,124,147,.07);     --tag-cyan-bd: rgba(14,124,147,.3);
  --tag-gold-fg: var(--gold-700);   --tag-gold-bg: rgba(246,196,83,.16);     --tag-gold-bd: rgba(168,111,0,.35);
  --tag-violet-fg: var(--violet-600); --tag-violet-bg: rgba(91,69,201,.07);  --tag-violet-bd: rgba(91,69,201,.3);
  --tag-mint-fg: var(--mint-700);   --tag-mint-bg: rgba(15,122,85,.07);      --tag-mint-bd: rgba(15,122,85,.3);   /* fix: #0f7a55 was 4.1–4.8 : 1 on tinted cards */

  --grad-stellar: linear-gradient(100deg, #2f5bc4 0%, #0a6a7e 50%, #8a5a00 100%);   /* fix: white NEW text ≥ 5.9 : 1 at every stop (was 2.4) */
  --grad-name: linear-gradient(180deg, #1b1f45 10%, #2f5bc4 70%, #3b6fd9 100%);
  --grad-primary: linear-gradient(135deg, #3b6fd9 0%, #2f5bc4 60%, #2a4fb0 100%);
  --grad-tour: linear-gradient(100deg, #b37a00, #d99a1e 45%, #2f5bc4 100%);
  --grad-gold-text: linear-gradient(135deg, #a86f00 0%, #7a4f00 100%);   /* ≥ 3.9 : 1, large text only */
  --grad-num: linear-gradient(180deg, #1b1f45 30%, #3b6fd9 100%);
  --grad-path: linear-gradient(90deg, rgba(47,91,196,.08) 0%, rgba(47,91,196,.34) 30%, rgba(14,124,147,.6) 70%, rgba(224,169,58,.95) 96%, #e0a93a 100%);
  --grad-horizon: linear-gradient(90deg, transparent, #3b6fd9, #e0a93a, transparent);

  --shadow-1: 0 1px 0 rgba(255,255,255,.9) inset, 0 24px 50px -30px rgba(27,31,69,.35);
  --shadow-card: 0 1px 0 rgba(255,255,255,.9) inset, 0 24px 28px -16px rgba(27,31,69,.2);
  --shadow-2: 0 30px 60px -28px rgba(27,31,69,.4), 0 0 0 1px rgba(47,91,196,.22);
  --shadow-pop: 0 24px 60px -24px rgba(27,31,69,.45);
  --shadow-thumb: 0 0 0 1px rgba(27,31,69,.08), 0 10px 20px -14px rgba(27,31,69,.46);
  --glow-blue: 0 0 0 1px rgba(47,91,196,.3), 0 12px 32px -14px rgba(47,91,196,.55);
  --glow-cyan: 0 12px 30px -12px rgba(59,111,217,.55);
  --glow-gold: 0 10px 30px -12px rgba(224,169,58,.6);
  --glow-live: 0 10px 30px -12px rgba(225,29,72,.55);

  --sky:
    radial-gradient(60% 42% at 88% -4%, rgba(111,161,230,.40), transparent 70%),
    radial-gradient(46% 38% at -6% 26%, rgba(200,180,255,.30), transparent 70%),
    radial-gradient(64% 46% at 18% 104%, rgba(127,227,242,.22), transparent 70%),
    linear-gradient(180deg, #dfeaff 0%, #eef4ff 40%, #f7f9ff 100%);
  --star-1: #3b6fd9;
  --star-2: #2f5bc4;
  --star-3: #1f9fc0;
  --star-4: #d99a1e;
  --star-alpha: .42;
  --comet-head: #2f5bc4;
  --comet-tail: 31 159 192;

  --tl-c-1: #3b6fd9;
  --tl-c-2: #2d7fd0;
  --tl-c-3: #1c8fb0;
  --tl-c-4: #5566cf;
  --tl-c-5: #b37a00;
  --moon: radial-gradient(circle at 34% 28%, #ffffff, rgba(200,221,248,.9) 40%, rgba(156,195,242,.35) 65%, transparent 72%);
  --moon-glow: 0 0 120px 20px rgba(111,161,230,.35);
  --hero-glow: rgba(111, 161, 230, .35);
  --penlight-1: 59 111 217;
  --penlight-2: 31 159 192;
  --penlight-3: 111 161 230;
  --penlight-alpha: .4;
  --poster-stroke: rgba(47, 91, 196, .32);
  --poster-fill: linear-gradient(180deg, rgba(47,91,196,.14) 0%, rgba(31,159,192,.09) 40%, rgba(224,169,58,.1) 70%, transparent 96%);
  --name-glow: none;
  --chibi-shadow: drop-shadow(0 22px 34px rgba(27,31,69,.22));
  --prop-shadow: 0 22px 68px rgba(27,31,69,.28), 0 0 2px rgba(168,111,0,.5), 0 22px 68px rgba(168,111,0,.14);
  --ticket-hole: rgba(69,55,49,.23); --ticket-hole-top: rgba(71,56,47,.13); --ticket-hole-bot: rgba(67,53,50,.31);
  --ticket-rim: rgba(168,111,0,.12);
  --spark-mark: var(--gold-500);
  --yt-glyph: currentColor;
  --brand-spotify-ink: #0b8a43;
  --brand-line-ink: #0b8a43;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5bc4' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --stat-glow: rgba(59, 111, 217, .1);
  --stat-glow-gold: rgba(224, 169, 58, .16);
}

/* per-language metrics — the hero name gets a size per script */
:root:lang(zh) { --lh: 1.75; --ls: .02em;  --ls-head: .02em;  --hero-fs: clamp(56px, 5.2vw + 26px, 112px); }
:root:lang(ja) { --lh: 1.8;  --ls: .03em;  --ls-head: .04em;  --hero-fs: clamp(44px, 4.2vw + 24px, 92px); }
:root:lang(en) { --lh: 1.6;  --ls: .003em; --ls-head: -.01em; --hero-fs: clamp(44px, 3.6vw + 24px, 84px); }
@media (max-width: 719px) { :root { --header-h: 60px; --section-gap: 64px; } }

/* ==== [fonts] Font roles — every element resolves its face from its own language ==== */
/* -- fonts -- */
/* Components never set font-family. They pick a ROLE by setting --f-zh/--f-ja/--f-en;
   :lang() then picks the stack. A Japanese title (lang="ja") inside a Chinese page gets
   Japanese glyph forms (直 画 骨), a Chinese name inside a Japanese page gets SC forms,
   and a nested lang span always switches face — no matter which role it sits in. */
:root {
  --f-zh: var(--font-zh);
  --f-ja: var(--font-ja);
  --f-en: var(--font-en);
}
:lang(zh) { font-family: var(--f-zh); }
:lang(ja) { font-family: var(--f-ja); }
:lang(en) { font-family: var(--f-en); }

/* Latin role — Outfit for Latin letters & digits, the language's CJK face for the rest */
:where(.latin, .num, .eyebrow, .cue, .badge, .thumb-tag, .vdur, .poster-word, .brand-kicker, .live-pill,
       .chip-n, .kbd, .cd-num, .cd-unit, .stat-value, .tl-year, .tl-md, .date-tile, .route-city, .route-date,
       .ticket-admit, .ticket-kicker, .ticket-no, .ticket-city, .ticket-meta dt, .stub-code, .mc-brand, .mc-sub,
       .mc-no, .lt-handle, .c-idx, .c-num, .dn-no, .dn-en, .stamp, .seg-latin) {
  --f-zh: var(--font-latin), var(--font-zh);
  --f-ja: var(--font-latin), var(--font-ja);
  --f-en: var(--font-latin), var(--font-ja);
}
/* Serif role — brand wordmark and the fairy-tale tour title only */
:where(.serif, .brand-name, .ticket-title) {
  --f-zh: var(--font-serif), var(--font-zh);
  --f-ja: var(--font-serif), var(--font-ja);
  --f-en: var(--font-serif), var(--font-ja);
}
.num, .c-num, .cd-num, .stat-value, .date-tile, .tl-year { font-variant-numeric: tabular-nums; }

/* CJK display headings: proportional punctuation (tight 「」【】) + a touch of tracking */
:is(h1, h2, .display, .hero-name, .sec-title, .page-title, .mc-name, .card-title):is(:lang(zh), :lang(ja)) {
  font-feature-settings: "palt";
  letter-spacing: var(--ls-head);
}
/* phrase-aware Japanese wrapping for short text (never combined with text-wrap: pretty) */
:is(h1, h2, h3, h4, .title, .vtitle, .news-title, .tl-title, .tagline-ja, .c-title, .bubble):lang(ja) {
  word-break: auto-phrase;
}
/* short Japanese copy wraps at phrase boundaries too (long-form .prose keeps normal breaking) */
:is(p, li, dd, figcaption):lang(ja):not(.prose *) { word-break: auto-phrase; }
:is(.stat-label, .lt-name, .lt-desc, .card-title, .sub-title, .sub-note, .empty-title, .soon-title):lang(ja) { word-break: auto-phrase; }   /* site addition */
/* optical alignment of a leading 「【 in titles */
:is(.vtitle, .news-title, .news-orig, .c-title, .up-title, .live-title, .tl-title, .tagline-ja) { text-spacing-trim: trim-start; }

/* ==== [base] Reset & base elements ==== */
/* -- base -- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-gutter: stable;                      /* fix: body.is-locked (drawer, dialogs) must not shift the page */
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  font-size: var(--fs-base);
  line-height: var(--lh);
  letter-spacing: var(--ls);
  color: var(--text-1);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  line-break: strict;
  text-autospace: normal;                        /* CJK ↔ Latin spacing where supported */
}
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { line-height: var(--lh-tight); text-wrap-style: balance; }
p { text-wrap-style: pretty; }
p:lang(ja) { text-wrap-style: auto; }        /* auto-phrase + pretty breaks inside words in Chrome */
:where(ul[role="list"], ol[role="list"]) { margin: 0; padding: 0; list-style: none; }
img, svg, canvas, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a, button, summary, label { -webkit-tap-highlight-color: transparent; }   /* fix: no grey flash over stretched-link cards; the :active press states give the feedback */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: rgba(127, 227, 242, .35); color: var(--text-1); }
.i { width: 1.15em; height: 1.15em; fill: currentColor; flex-shrink: 0; }
.sprite { display: none; }                      /* fix: <use> still clones its symbols; its 180 elements are no longer styled at every start */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nw { white-space: nowrap; }                     /* hashtags, handles, 「…」 units */
.jp-keep { word-break: keep-all; overflow-wrap: anywhere; }   /* site addition: a long Japanese unit (SUI.jpText) breaks only at spaces / after ！】」 */
.phrase { display: inline-block; }               /* authored zh phrase chunks (no orphans like 梦/想) */
.muted { color: var(--text-3); }
.skip-link {
  position: fixed; top: 12px; left: calc(12px + env(safe-area-inset-left)); z-index: var(--z-skip);
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--grad-primary); color: var(--on-primary); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform var(--dur-2) var(--ease-out);
}
.skip-link:focus { transform: none; }
main { position: relative; z-index: var(--z-content); display: block; outline: none; }
main:focus, main:focus-visible { outline: none; }   /* fix: #app is a programmatic focus target (route change, skip link), not a control — no page-wide ring */

/* ==== [layout] Layout primitives ==== */
/* -- layout -- */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.wrap-wide { --maxw: var(--maxw-wide); }
.section { position: relative; padding-top: var(--section-gap); }
.section:last-child { padding-bottom: var(--s-4); }
.stack { display: grid; gap: var(--gap, var(--s-4)); align-content: start; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, var(--s-2)); }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap, var(--s-5)); align-items: start; }
.split-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap, var(--s-5)); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 260px)), 1fr)); gap: var(--gap, var(--s-5)); }
.prose { max-width: var(--maxw-prose); color: var(--text-2); }
.prose p + p { margin-top: 1em; }
@media (max-width: 1023px) { .split, .split-even { grid-template-columns: minmax(0, 1fr); } }

/* ==== [sky] Night-sky backdrop — static stars + CSS twinkles + event-driven comets ==== */
/* -- sky -- */
.sky {                                          /* 100vh = the large viewport on phones: a collapsing URL bar never resizes it */
  position: fixed; top: 0; left: 0; right: 0; height: 100vh; z-index: var(--z-sky); pointer-events: none; overflow: hidden;
  background: var(--sky);
}
.sky::before {                                   /* no-JS fallback star dust */
  content: ""; position: absolute; inset: 0; opacity: calc(.75 * var(--star-alpha));
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, var(--star-1) 50%, transparent 55%),
    radial-gradient(1px 1px at 28% 72%, var(--star-2) 50%, transparent 55%),
    radial-gradient(1.4px 1.4px at 46% 34%, var(--star-2) 50%, transparent 55%),
    radial-gradient(1px 1px at 63% 81%, var(--star-1) 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 77% 22%, var(--star-1) 50%, transparent 55%),
    radial-gradient(1px 1px at 91% 58%, var(--star-4) 50%, transparent 55%),
    radial-gradient(1px 1px at 6% 90%, var(--star-3) 50%, transparent 55%);
  background-size: 420px 420px;
}
.js .sky::before { display: none; }
.sky-stars { position: absolute; inset: 0; width: 100%; height: 100%; }   /* <canvas>, painted once per resize/theme (not behind the header) */
.twinkle {                                       /* <svg><use href="#i-sparkle"> — core.js makes 10 (5 on phones); fill, not a mask */
  position: absolute; left: var(--x); top: max(calc(var(--header-h) + 6px), var(--y)); width: var(--s, 10px); height: var(--s, 10px);
  fill: var(--star-1); opacity: calc(.9 * var(--star-alpha));
  animation: twinkle var(--t, 4.2s) var(--ease-in-out) var(--d, 0s) infinite;
}
.twinkle.is-gold { fill: var(--star-4); }
.sky.is-scrolling .twinkle { animation-play-state: paused; }   /* core.js: they hold still while the page scrolls (no style pass per frame) */
.sky.hero-on .twinkle.is-alt { animation-play-state: paused; }   /* core.js: half of them while a .hero (sparkles of its own) is on screen */
.comet {                                         /* the glow is a second, softer gradient band (no filter: cheap while it flies) */
  position: absolute; left: var(--x, 70%); top: var(--y, 12%); width: var(--len, 240px); height: 14px; margin-top: -6px;
  border-radius: 7px; opacity: 0; transform-origin: 100% 50%;
  transform: rotate(var(--a, 152deg)) translateX(0);
  background:
    linear-gradient(90deg, rgb(var(--comet-tail) / 0), rgb(var(--comet-tail) / .55) 72%, var(--comet-head)) center / 100% 2px no-repeat,
    radial-gradient(farthest-side at 100% 50%, rgb(var(--comet-tail) / .4), rgb(var(--comet-tail) / .12) 45%, transparent) center / 100% 100% no-repeat;
}
.comet::after {
  content: ""; position: absolute; right: -3px; top: 3px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--comet-head); box-shadow: 0 0 12px 4px rgb(var(--comet-tail) / .8);
}
.comet.is-flying { animation: comet-fly var(--dur, 1.5s) var(--ease-out) forwards; }
@keyframes comet-fly {
  0% { opacity: 0; transform: rotate(var(--a, 152deg)) translateX(0); }
  15% { opacity: 1; }
  70% { opacity: .9; }
  100% { opacity: 0; transform: rotate(var(--a, 152deg)) translateX(var(--dist, 560px)); }
}
@keyframes twinkle {
  0%, 100% { transform: scale(.45) rotate(0deg); opacity: calc(.25 * var(--star-alpha)); }
  50% { transform: scale(1) rotate(20deg); opacity: calc(.95 * var(--star-alpha)); }
}

/* -- penlights -- */
/* penlight sea — the Hoshiyomi's blue lights at the foot of a hero. Pure CSS: 7 perspective rows
   (far = small & dense, near = large bokeh), each row two layers with co-prime spacings so the
   pattern never looks like a dotted line; the two halves sway in opposite phase. */
.penlights {
  position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: var(--pl-h, 180px);
  pointer-events: none; overflow: hidden; opacity: var(--penlight-alpha);
  -webkit-mask-image: linear-gradient(0deg, #000 0%, rgba(0,0,0,.8) 40%, transparent 100%);
  mask-image: linear-gradient(0deg, #000 0%, rgba(0,0,0,.8) 40%, transparent 100%);
}
.penlights::before, .penlights::after {
  content: ""; position: absolute; inset: 0 -60px; background-repeat: repeat-x;
  animation: sway 6.5s var(--ease-in-out) infinite alternate;
}
.penlights::before {                             /* rows 1 · 3 · 5 · 7 */
  background-image:
    radial-gradient(circle, rgb(var(--penlight-1) / .95) 0 1px, rgb(var(--penlight-1) / .35) 2.5px, transparent 4px),
    radial-gradient(circle, rgb(var(--penlight-2) / .9) 0 1px, rgb(var(--penlight-2) / .3) 2.5px, transparent 4px),
    radial-gradient(circle, rgb(var(--penlight-1) / .95) 0 1.6px, rgb(var(--penlight-1) / .38) 4px, transparent 6.5px),
    radial-gradient(circle, rgb(var(--penlight-3) / .85) 0 1.4px, rgb(var(--penlight-2) / .32) 3.6px, transparent 6px),
    radial-gradient(circle, rgb(var(--penlight-3) / .95) 0 2.6px, rgb(var(--penlight-1) / .5) 6px, rgb(var(--penlight-1) / .12) 10px, transparent 13px),
    radial-gradient(circle, rgb(var(--penlight-2) / .9) 0 2.4px, rgb(var(--penlight-2) / .45) 5.6px, rgb(var(--penlight-2) / .1) 9.5px, transparent 12px),
    radial-gradient(circle, rgb(var(--penlight-3) / .95) 0 3.6px, rgb(var(--penlight-2) / .55) 8px, rgb(var(--penlight-2) / .14) 14px, transparent 19px),
    radial-gradient(circle, rgb(var(--penlight-3) / .9) 0 3.2px, rgb(var(--penlight-1) / .5) 7.5px, rgb(var(--penlight-1) / .12) 13px, transparent 18px);
  background-size: 11px 10px, 17px 10px, 19px 14px, 29px 14px, 37px 28px, 53px 28px, 61px 40px, 89px 40px;
  background-position: 0 24%, 6px 26%, 4px 46%, 13px 48%, 9px 69%, 30px 72%, 17px 96%, 52px 99%;
}
.penlights::after {                              /* rows 2 · 4 · 6 */
  background-image:
    radial-gradient(circle, rgb(var(--penlight-2) / .9) 0 1.2px, rgb(var(--penlight-2) / .32) 3px, transparent 5px),
    radial-gradient(circle, rgb(var(--penlight-1) / .9) 0 1.2px, rgb(var(--penlight-1) / .3) 3px, transparent 5px),
    radial-gradient(circle, rgb(var(--penlight-1) / .95) 0 2px, rgb(var(--penlight-1) / .42) 5px, rgb(var(--penlight-1) / .1) 8px, transparent 10px),
    radial-gradient(circle, rgb(var(--penlight-3) / .85) 0 1.8px, rgb(var(--penlight-2) / .38) 4.5px, rgb(var(--penlight-2) / .08) 7.5px, transparent 9.5px),
    radial-gradient(circle, rgb(var(--penlight-2) / .95) 0 3px, rgb(var(--penlight-2) / .5) 7px, rgb(var(--penlight-2) / .12) 12px, transparent 16px),
    radial-gradient(circle, rgb(var(--penlight-1) / .9) 0 3px, rgb(var(--penlight-1) / .48) 7px, rgb(var(--penlight-1) / .12) 12px, transparent 16px);
  background-size: 14px 12px, 23px 12px, 27px 22px, 41px 22px, 47px 34px, 71px 34px;
  background-position: 3px 35%, 11px 37%, 7px 58%, 21px 60%, 12px 84%, 40px 86%;
  animation-duration: 5.2s; animation-direction: alternate-reverse;
}
@keyframes sway { from { transform: translateX(-7px); } to { transform: translateX(7px); } }

/* ==== [type] Typography components — eyebrow, cue, section head, page hero, poster word ==== */
/* -- section-head -- */
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 10px;
  font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::after { content: ""; width: 44px; height: 1px; background: linear-gradient(90deg, currentColor, transparent); opacity: .6; }
.eyebrow-live { color: var(--live-text); }
.cue {                                           /* setlist cue tag: M01 … M06, ENCORE */
  display: inline-grid; place-items: center; height: 20px; padding: 0 7px 0 8px; border-radius: 3px;
  font-size: var(--fs-2xs); font-weight: 800; letter-spacing: .14em; line-height: 1;
  color: var(--on-gold); background: var(--gold); transform: skewX(-10deg);
}
.sec-head {
  position: relative; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 24px; margin-bottom: var(--s-6);
}
.sec-head-main { min-width: 0; }
.sec-title { font-size: var(--fs-h2); line-height: 1.25; font-weight: 800; }
.sec-title::before {                             /* the chibi's three emphasis strokes */
  content: ""; display: inline-block; width: .74em; height: .74em; margin: 0 .26em 0 -.04em; vertical-align: -.06em;
  background: var(--gold);
  -webkit-mask: var(--sparks) center / contain no-repeat; mask: var(--sparks) center / contain no-repeat;
  rotate: -4deg;
}
:root:lang(en) .sec-title { font-weight: 700; }
.sec-desc { margin-top: var(--s-2); max-width: 44em; font-size: var(--fs-md); color: var(--text-3); }
.sub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 var(--s-4); }
.sub-title { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-lg); font-weight: 700; }
.sub-title .i { width: 16px; height: 16px; color: var(--gold); }
.sub-note { font-size: var(--fs-sm); color: var(--text-3); }

/* -- poster-word -- */
.poster-word {                                   /* luminous poster word (ON AIR · NEXT STAGE · ENCORE) — max ONE per page */
  display: block; pointer-events: none; user-select: none;
  font-size: clamp(64px, 11vw, 168px); font-weight: 800; line-height: .82; letter-spacing: .02em;
  text-transform: uppercase; white-space: nowrap; text-align: center;
  color: transparent; background: var(--poster-fill); -webkit-background-clip: text; background-clip: text;
}
.poster-word.is-watermark { position: absolute; z-index: -1; right: 0; bottom: -.1em; text-align: right; }
/* no -webkit-text-stroke: Google's variable fonts have overlapping contours that a stroke exposes */

/* -- page-hero -- */
.page-hero { position: relative; padding: clamp(32px, 5vw, 64px) 0 clamp(8px, 2vw, 16px); isolation: isolate; }
.page-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); }
.page-hero-inner > :first-child { flex: 1 1 auto; min-width: 0; }   /* fix: wide tabs / long titles must not push the page mark off-screen */
.page-title { font-size: var(--fs-h1); font-weight: 800; line-height: 1.12; }
:root:lang(en) .page-title { font-weight: 700; }
.page-lead { margin-top: var(--s-3); max-width: 40em; font-size: var(--fs-base); color: var(--text-2); }
.page-mark {                                     /* small head sticker at the right of a page hero */
  position: relative; flex: none; width: clamp(84px, 9vw, 120px); aspect-ratio: 1; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 200deg, var(--blue-400), var(--cyan-300), var(--gold-400), var(--blue-300), var(--blue-400));
  box-shadow: 0 0 40px -6px rgba(127, 227, 242, .55);
}
.page-mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--avatar-bg); }
.page-mark::after {
  content: ""; position: absolute; right: -6px; top: -4px; width: 26px; height: 26px; background: var(--gold);
  -webkit-mask: var(--sparkle) center / contain no-repeat; mask: var(--sparkle) center / contain no-repeat;
}
@media (max-width: 719px) { .page-mark { display: none; } }

/* -- title-tr -- */
/* original title + translation (fan-club news, media, archive) */
.title-tr { display: grid; gap: 2px; min-width: 0; }
.tr-line { font-size: var(--fs-sm); color: var(--text-3); line-height: 1.5; }
.tr-badge {                                      /* 译 / 訳 / EN — marks an unofficial translation */
  display: inline-grid; place-items: center; min-width: 1.7em; height: 1.55em; margin-right: .45em; padding: 0 .3em;
  border-radius: 5px; font-size: 10.5px; font-weight: 700; line-height: 1; vertical-align: .12em;
  color: var(--tag-cyan-fg); background: var(--tag-cyan-bg); border: 1px solid var(--tag-cyan-bd);
}
.tr-badge:lang(zh), .tr-badge:lang(ja) { font-size: var(--fs-xs); }   /* fix: 译 / 訳 at the CJK minimum; 10.5 px stays for the Latin "EN" */
.sources { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--fs-xs); color: var(--text-3); }
.sources a { color: var(--text-3); text-decoration: none; border-bottom: 1px dotted var(--line-strong); }
.sources a:hover { color: var(--accent); }
.sources-rest:not([hidden]) { display: contents; }   /* site addition: "+N" reveals the rest in place (the links join the row) */
.sources-more {
  position: relative; display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: transparent; color: var(--accent); font: inherit; font-weight: 700; line-height: 1;
  cursor: pointer; transition: color var(--dur-1), border-color var(--dur-1), background-color var(--dur-1);
}
.sources-more:hover { color: var(--accent-2); border-color: var(--accent-2); background: var(--hover); }
/* site addition: touch — one-line source links get a ≥ 40 px invisible hit area, the look unchanged */
@media (pointer: coarse), (max-width: 719px) {
  .sources { row-gap: 10px; }
  .sources a { position: relative; }
  .sources a::after, .sources-more::after { content: ""; position: absolute; inset: -10px -4px; }
}
/* site addition: the page's setlist — cue-numbered in-page links in a page hero (links · lives · profile on phones) */
.setlist { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.setlist > li { position: relative; display: flex; min-width: 0; max-width: 100%; }
.setlist a {
  display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; min-height: 42px; padding: 6px 10px 6px 12px; border-radius: var(--r-sm);
  font-size: var(--fs-md); font-weight: 600; line-height: 1.3; white-space: nowrap; color: var(--text-2); text-decoration: none;
  background: var(--surface-inset); border: 1px solid var(--line);
  transition: color var(--dur-1), border-color var(--dur-1), background-color var(--dur-1);
}
.setlist .cue, .setlist .chip-n { flex: none; }
.setlist-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.setlist a:hover { color: var(--text-1); border-color: var(--line-strong); background: var(--hover); }
.setlist a:hover .chip-n { color: var(--text-2); }
@media (max-width: 1023px) {
  .setlist { gap: 6px; }
  .setlist a { gap: 8px; min-height: 40px; padding: 4px 9px 4px 10px; font-size: var(--fs-sm); }
}

/* ==== [buttons] Buttons & links ==== */
/* -- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; text-decoration: none;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-1);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2), background-color var(--dur-2), border-color var(--dur-2), color var(--dur-2);
}
.btn .i { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); transition-duration: 60ms; }
.btn-sm { height: 40px; padding: 0 16px; gap: 8px; font-size: var(--fs-md); }
.btn-sm .i { width: 18px; height: 18px; }
.btn-block { width: 100%; }
.btn-primary { border: 0; background: var(--grad-primary); color: var(--on-primary); box-shadow: var(--glow-cyan), inset 0 1px 0 rgba(255,255,255,.55); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(127,227,242,.9), inset 0 1px 0 rgba(255,255,255,.55); }
.btn-primary .i-yt { color: var(--yt-glyph); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--hover); box-shadow: var(--glow-blue); }
.btn-gold { color: var(--gold-soft); border-color: rgba(246,196,83,.5); background: rgba(246,196,83,.06); }
.btn-gold:hover { border-color: rgba(246,196,83,.9); background: rgba(246,196,83,.12); box-shadow: var(--glow-gold); }
.btn-gold-solid { border: 0; background: var(--grad-gold); color: var(--on-gold); box-shadow: var(--glow-gold), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-live { border: 0; background: var(--grad-live); color: var(--on-live); box-shadow: var(--glow-live), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-live:hover { box-shadow: 0 16px 40px -12px rgba(255,61,104,.95), inset 0 1px 0 rgba(255,255,255,.25); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; padding: 0;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); text-decoration: none;
  transition: color var(--dur-1), background-color var(--dur-1), border-color var(--dur-1), transform var(--dur-2) var(--ease-out);
}
.icon-btn:hover { color: var(--text-1); border-color: var(--line-2); background: var(--hover); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .i { width: 20px; height: 20px; }
.icon-btn-sm { width: 36px; height: 36px; border-radius: 10px; }
.icon-btn-sm .i { width: 18px; height: 18px; }
.icon-btn-round { border-radius: 50%; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 2px; flex-shrink: 0;
  color: var(--accent); font-size: var(--fs-md); font-weight: 600; text-decoration: none;
}
.text-link .i { width: 18px; height: 18px; transition: transform var(--dur-2) var(--ease-out); }
.text-link:hover { color: var(--accent-2); }
.text-link:hover .i { transform: translateX(4px); }
.link { color: var(--accent); text-decoration: underline; text-decoration-color: var(--line-strong); }
.link:hover { color: var(--accent-2); text-decoration-color: currentColor; }
/* site addition: touch — small controls reach a ≥ 40 px hit area without changing their look */
@media (pointer: coarse) {
  .text-link, .icon-btn-sm { position: relative; }
  .text-link::after { content: ""; position: absolute; inset: -4px -2px; }
  .icon-btn-sm::after { content: ""; position: absolute; inset: -3px; }
  /* fix: the drawer / footer theme + language switches, the drawer extras, the footer lists and "back to top" reach 40 px too */
  .drawer .seg button, .site-footer .seg button { height: 40px; }
  .drawer-links a, .footer-col a, .to-top { min-height: 40px; }
  .site-footer .footer-col ul { row-gap: 0; }      /* the 40 px rows replace the 10 px gap (35 → 40 px pitch) */
}

/* ==== [badges] Tags, badges, chips, stamps ==== */
/* -- tags -- */
.tag {                                           /* category pill — hue by modifier, text always present */
  --tag-fg: var(--tag-neutral-fg); --tag-bg: var(--tag-neutral-bg); --tag-bd: var(--tag-neutral-bd);
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; line-height: 1; white-space: nowrap;
  color: var(--tag-fg); background: var(--tag-bg); border: 1px solid var(--tag-bd);
}
.tag .i { width: 13px; height: 13px; }
.tag-blue   { --tag-fg: var(--tag-blue-fg);   --tag-bg: var(--tag-blue-bg);   --tag-bd: var(--tag-blue-bd); }
.tag-cyan   { --tag-fg: var(--tag-cyan-fg);   --tag-bg: var(--tag-cyan-bg);   --tag-bd: var(--tag-cyan-bd); }
.tag-gold   { --tag-fg: var(--tag-gold-fg);   --tag-bg: var(--tag-gold-bg);   --tag-bd: var(--tag-gold-bd); }
.tag-violet { --tag-fg: var(--tag-violet-fg); --tag-bg: var(--tag-violet-bg); --tag-bd: var(--tag-violet-bd); }
.tag-mint   { --tag-fg: var(--tag-mint-fg);   --tag-bg: var(--tag-mint-bg);   --tag-bd: var(--tag-mint-bd); }
.tag-latin  { letter-spacing: .06em; }

/* -- badges -- */
.badge {                                         /* compact status label (Latin caps) */
  display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; line-height: 1; white-space: nowrap; text-transform: uppercase;
}
.badge .i { width: 11px; height: 11px; }
.badge-live { color: var(--on-live); background: var(--live-bg); box-shadow: 0 4px 14px -4px rgba(255,61,104,.9); }
.badge-new { color: var(--on-primary); background: var(--grad-stellar); box-shadow: 0 0 14px -2px rgba(127,227,242,.5); }
.badge-new::before { content: ""; width: 7px; height: 7px; background: currentColor; -webkit-mask: var(--sparkle) center / contain no-repeat; mask: var(--sparkle) center / contain no-repeat; }
.badge-gold { color: var(--on-gold); background: var(--grad-gold); }
.badge-members { color: var(--gold-text); border: 1px solid var(--tag-gold-bd); background: var(--tag-gold-bg); }
.badge-next { color: var(--on-primary); background: var(--grad-primary); }
.badge-outline { color: var(--text-2); border: 1px solid var(--line-2); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: .7;
  animation: ping 1.8s var(--ease-out) infinite;
}
.badge .live-dot { width: 6px; height: 6px; }
.eyebrow-live .live-dot { color: var(--live); }

.stamp {                                         /* gold starburst "NEW" stamp for a featured MV */
  display: grid; place-items: center; width: 64px; aspect-ratio: 1; padding-top: 2px;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; line-height: 1; text-align: center; color: var(--on-gold);
  background: var(--grad-gold); rotate: 12deg;
  clip-path: polygon(50% 0%, 61% 13%, 78% 7%, 80% 24%, 97% 28%, 89% 44%, 100% 57%, 85% 66%, 88% 84%, 71% 84%, 62% 100%, 50% 89%, 38% 100%, 29% 84%, 12% 84%, 15% 66%, 0% 57%, 11% 44%, 3% 28%, 20% 24%, 22% 7%, 39% 13%);
  filter: drop-shadow(0 6px 14px rgba(246,196,83,.45));
}

/* -- chips -- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {                                          /* filter chip: <button aria-pressed> or <label> + radio */
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 16px;
  border-radius: var(--r-pill); border: 1px solid var(--line-2); background: transparent; color: var(--text-2);
  font-size: var(--fs-md); font-weight: 600; white-space: nowrap; cursor: pointer; user-select: none;
  transition: color var(--dur-1), background-color var(--dur-1), border-color var(--dur-1), box-shadow var(--dur-2);
}
.chip:not(:has(.chip-n)) { padding-right: 16px; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip:hover { color: var(--text-1); border-color: var(--line-strong); }
.chip:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.chip[aria-pressed="true"], .chip:has(input:checked) {
  color: var(--text-1); border-color: var(--accent-2);
  background: linear-gradient(135deg, rgba(156,195,242,.2), rgba(127,227,242,.08));
  box-shadow: 0 0 20px -6px rgba(127,227,242,.55);
}
.chip-n { min-width: 24px; padding: 1px 7px; border-radius: var(--r-pill); font-size: 11.5px; text-align: center; color: var(--text-3); background: var(--surface-2); }
.chip[aria-pressed="true"] .chip-n, .chip:has(input:checked) .chip-n { color: var(--on-primary); background: var(--accent-2); }
.chips-scroll {                                  /* phones: one scrolling row with edge fade */
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--bleed, 16px)); padding: 2px var(--bleed, 16px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 36px), transparent);
}
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .chip { flex-shrink: 0; }
.chips-scroll .chip:focus-visible, .chips-scroll .chip:has(input:focus-visible) { outline-offset: -2px; }   /* fix: the scroller clips outside rings */

/* ==== [header] Header, brand, nav, LIVE pill, language switch, theme toggle ==== */
/* -- header -- */
.site-header {                                   /* fix: no backdrop-filter (the GPU re-blurred the twinkling sky every frame). The
                                                   starfield leaves the header band empty, so the tint alone reads the same */
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--surface-header);
  border-bottom: 1px solid var(--line);
}
.site-header::before {                           /* fix: the scrolled state is a layer that fades in (opacity runs on the compositor;
                                                   a transition of background + box-shadow re-rastered the bar for 30 frames).
                                                   Near-opaque: without the blur, page content scrolling under the bar would
                                                   show through as sharp ghost text */
  content: ""; position: absolute; z-index: -1; inset: 0 0 -1px; pointer-events: none;
  background: var(--surface-header-solid); box-shadow: 0 10px 40px -20px rgba(0,0,0,.6);
  opacity: 0; transition: opacity var(--dur-3);
}
.site-header.is-scrolled::before { opacity: 1; }
.header-inner {
  max-width: 1400px; margin-inline: auto; height: var(--header-h);
  padding-inline: max(clamp(14px, 2.4vw, 32px), env(safe-area-inset-left)) max(clamp(14px, 2.4vw, 32px), env(safe-area-inset-right));   /* fix: notch-safe */
  display: flex; align-items: center; gap: clamp(10px, 1.6vw, 20px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; color: inherit; text-decoration: none; border-radius: var(--r-pill); }
.brand-mark {
  position: relative; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 200deg, var(--blue-400), var(--cyan-300), var(--gold-400), var(--blue-300), var(--blue-400));
  box-shadow: 0 0 22px -4px rgba(127,227,242,.6);
}
.brand-mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--avatar-bg); }
.brand-mark::after {
  content: ""; position: absolute; top: -3px; right: -4px; width: 13px; height: 13px; background: var(--spark-mark);
  -webkit-mask: var(--sparkle) center / contain no-repeat; mask: var(--sparkle) center / contain no-repeat;
}
.brand-text { display: grid; gap: 3px; line-height: 1; }
.brand-kicker { font-size: 9.5px; font-weight: 600; letter-spacing: .3em; color: var(--accent); white-space: nowrap; }
.brand-name {
  font-size: 23px; font-style: italic; font-weight: 600; letter-spacing: .01em; white-space: nowrap; padding-right: .08em;
  background: var(--grad-name); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.main-nav { margin-inline: auto; min-width: 0; }
.main-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  position: relative; display: block; padding: 8px clamp(7px, 1.1vw - 5px, 11px); border-radius: var(--r-pill);
  font-size: clamp(13.5px, .1vw + 12.3px, 14px); font-weight: 500; line-height: 1.4; white-space: nowrap;
  color: var(--text-2); text-decoration: none; transition: color var(--dur-1), background-color var(--dur-1);
}
.main-nav a:hover { color: var(--text-1); background: var(--hover); }
.main-nav a[aria-current="page"] { color: var(--text-1); font-weight: 700; }
.main-nav a[aria-current="page"]::before {       /* the crown marks "you are here" */
  content: ""; position: absolute; left: 50%; top: -7px; width: 13px; height: 13px; translate: -50% 0;
  background: var(--gold); filter: drop-shadow(0 0 6px rgba(246,196,83,.6));
  -webkit-mask: var(--crown) center / contain no-repeat; mask: var(--crown) center / contain no-repeat;
}
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
.main-nav + .header-tools { margin-left: 0; }
.menu-btn { display: none; }
/* nav collapses to the drawer at 1239 px — or earlier when core.js measures an overflow (long ja/en labels).
   fix: the hidden nav still matches .main-nav + .header-tools, so the tools take the free space back (right-aligned) */
@media (max-width: 1239px) { .main-nav { display: none; } .menu-btn { display: inline-grid; } .main-nav + .header-tools { margin-left: auto; } }
/* site addition: before collapsing, core.js first tries a tighter header (long ja/en labels) */
.nav-tight .header-inner { gap: 12px; }
.nav-tight .header-tools { gap: 8px; }
.nav-tight .main-nav a { padding-inline: 7px; }
.nav-tighter .header-inner { gap: 10px; }      /* 2nd step (long ja labels): even tighter links — the globe stays */
.nav-tighter .main-nav a { padding-inline: 5px; }
/* site addition: when the tools still overflow (small phones with a LIVE / time pill) core.js tightens, then drops the wordmark */
.hdr-tight .header-inner { gap: 6px; padding-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right)); }
.hdr-tight .header-tools { gap: 4px; }
.hdr-tight .lang-btn { padding-inline: 8px; }
.hdr-compact .brand-text { display: none; }
.nav-collapsed .main-nav { display: none; }
.nav-collapsed .menu-btn { display: inline-grid; }
.nav-collapsed .main-nav + .header-tools { margin-left: auto; }
@media (max-width: 719px) {
  .brand-kicker { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 21px; }
  .header-tools { gap: 8px; }
  .header-tools > .theme-btn { display: none; }  /* phones: theme lives in the drawer */
}
@media (max-width: 380px) {
  .brand { gap: 9px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 18.5px; }
  .header-tools { gap: 6px; }
}

/* -- live-pill -- */
.live-pill {                                     /* data-state: live | upcoming | offline | unknown */
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; line-height: 1; white-space: nowrap; text-decoration: none;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2);
}
.live-pill .i { width: 15px; height: 15px; }
.live-pill:hover { transform: translateY(-1px); }
.live-pill[data-state="live"] {
  color: var(--on-live); background: var(--live-bg);
  box-shadow: 0 0 0 1px rgba(255,92,126,.5), 0 6px 20px -6px rgba(255,61,104,.9);
}
.live-pill[data-state="upcoming"] {
  color: var(--accent); background: var(--surface-2); border: 1px solid var(--line-strong); letter-spacing: .04em;
}
.live-pill[data-state="offline"] { color: var(--text-3); background: var(--surface-2); border: 1px solid var(--line); letter-spacing: .04em; }
.live-pill[data-state="offline"] .live-dot::after { display: none; }
.live-pill[data-state="unknown"] { display: none; }
@media (max-width: 719px) {
  .live-pill { height: 28px; padding: 0 10px 0 9px; }
  .live-pill[data-state="upcoming"] .live-pill-k, .live-pill[data-state="offline"] .live-pill-k { display: none; }
}

/* -- lang-switch -- */
.lang-switch {                                   /* active state comes from html[data-lang] → no flash */
  display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 3px 3px 3px 10px;
  border-radius: var(--r-pill); background: var(--surface-inset); border: 1px solid var(--line);
}
.lang-switch .i { width: 16px; height: 16px; margin-right: 4px; color: var(--text-3); }
.lang-switch button {
  min-width: 34px; height: 28px; padding: 0 9px; border: 0; border-radius: var(--r-pill);
  background-color: transparent; color: var(--text-3); font-size: 13px; font-weight: 600;
  transition: color var(--dur-1), background-color var(--dur-1);
}
.lang-switch button:hover { color: var(--text-1); }
:root[data-lang="zh"] .lang-switch [data-set-lang="zh"],
:root[data-lang="ja"] .lang-switch [data-set-lang="ja"],
:root[data-lang="en"] .lang-switch [data-set-lang="en"] { background-color: var(--accent); color: var(--on-primary); }
.lang-switch [data-set-lang="en"] { letter-spacing: .06em; }
.lang-btn { display: none; width: auto; gap: 5px; padding: 0 10px; grid-auto-flow: column; }
.lang-btn .i { width: 18px; height: 18px; }
.lang-code { font-size: 12px; font-weight: 600; }
/* site addition: an empty .lang-code takes its label from html[data-lang] too — right from the first paint */
:root[data-lang="zh"] .lang-code:empty::before { content: "中"; }
:root[data-lang="ja"] .lang-code:empty::before { content: "日"; }
:root[data-lang="en"] .lang-code:empty::before { content: "EN"; letter-spacing: .06em; }
.lang-pop {                                      /* phones: globe → popover (Popover API) */
  position: fixed; inset: auto; top: calc(var(--header-h) + 6px); right: calc(12px + env(safe-area-inset-right)); margin: 0; width: 212px; padding: 8px;
  border-radius: 18px; border: 1px solid var(--line-2); color: var(--text-1); background: var(--surface-overlay);
  box-shadow: var(--shadow-pop);
}
.lang-pop-title { margin: 4px 10px 6px; font-size: var(--fs-xs); color: var(--text-3); }
.lang-pop button {
  display: flex; align-items: center; justify-content: space-between; width: 100%; height: 44px; padding: 0 12px;
  border: 0; border-radius: 12px; background: transparent; font-size: 15px; font-weight: 500;
}
.lang-pop button:hover { background: var(--hover); }
.lang-pop button .i { opacity: 0; color: var(--accent-2); }
:root[data-lang="zh"] .lang-pop [data-set-lang="zh"], :root[data-lang="ja"] .lang-pop [data-set-lang="ja"],
:root[data-lang="en"] .lang-pop [data-set-lang="en"] { background: var(--surface-2); }
:root[data-lang="zh"] .lang-pop [data-set-lang="zh"] .i, :root[data-lang="ja"] .lang-pop [data-set-lang="ja"] .i,
:root[data-lang="en"] .lang-pop [data-set-lang="en"] .i { opacity: 1; }
:root[data-lang="zh"] .seg [data-set-lang="zh"], :root[data-lang="ja"] .seg [data-set-lang="ja"],
:root[data-lang="en"] .seg [data-set-lang="en"] { color: var(--text-1); background-color: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }   /* footer list */
@media (max-width: 719px) { .lang-switch { display: none; } .lang-btn { display: inline-flex; align-items: center; } }

/* -- theme-toggle -- */
.theme-btn .i-moon { display: none; }            /* shows the theme you will switch TO */
:root[data-theme="light"] .theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-moon { display: block; }
/* segmented control — theme (dark / light / auto) in drawer & footer; also sort / small toggles */
.seg { display: inline-flex; gap: 2px; padding: 3px; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: var(--r-pill); background: var(--surface-inset); border: 1px solid var(--line); }
.seg button {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border: 0; border-radius: var(--r-pill);
  background-color: transparent; color: var(--text-3); font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: color var(--dur-1), background-color var(--dur-1);
}
.seg button .i { width: 15px; height: 15px; }
.seg button:hover { color: var(--text-1); }
.seg button[aria-pressed="true"] { color: var(--text-1); background-color: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.seg button:focus-visible { outline-offset: -2px; }   /* fix: .seg scrolls (clips outside rings) → inset ring */

/* ==== [drawer] Mobile drawer — the setlist ==== */
/* -- drawer -- */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); }
.drawer-backdrop { position: absolute; inset: 0; background: var(--backdrop); opacity: 0; transition: opacity var(--dur-3); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 400px); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 18px; padding: 14px calc(18px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) 18px;
  background:
    radial-gradient(90% 40% at 100% 0%, rgba(59,111,217,.28), transparent 70%),
    radial-gradient(70% 30% at 0% 100%, rgba(246,196,83,.08), transparent 70%),
    var(--surface-overlay);
  border-left: 1px solid var(--line-2); box-shadow: -30px 0 80px rgba(0,0,0,.45);
  transform: translateX(104%); transition: transform var(--dur-3) var(--ease-out);
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.drawer-title { margin-right: auto; display: grid; gap: 4px; }
.drawer-title .eyebrow { margin: 0; }
.drawer-lang { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 18px; background: var(--surface-inset); border: 1px solid var(--line); }
.drawer-lang button {
  display: grid; justify-items: center; gap: 1px; padding: 8px 4px; border: 0; border-radius: 13px; background-color: transparent;
  color: var(--text-2); font-size: var(--fs-xs); line-height: 1.3; transition: background-color var(--dur-1), color var(--dur-1);
}
.drawer-lang b { font-size: 17px; line-height: 1.2; }
:root[data-lang="zh"] .drawer-lang [data-set-lang="zh"], :root[data-lang="ja"] .drawer-lang [data-set-lang="ja"],
:root[data-lang="en"] .drawer-lang [data-set-lang="en"] { background-color: var(--accent); color: var(--on-primary); }
.drawer-nav { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.drawer-nav a {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px 0 12px;
  border-radius: 14px; color: var(--text-1); text-decoration: none; font-size: 16px; font-weight: 600;
  transition: background-color var(--dur-1);
}
.drawer-nav a:hover { background: var(--hover); }
.drawer-nav a[aria-current="page"] { background: linear-gradient(90deg, rgba(127,227,242,.16), rgba(127,227,242,0)); box-shadow: inset 2px 0 0 var(--accent-2); }
.dn-no { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--gold-text); }
.dn-en { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; color: var(--text-3); text-transform: uppercase; }
.drawer-foot { display: grid; gap: 14px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.drawer-social { display: flex; gap: 10px; }
body.is-locked { overflow: hidden; }

/* ==== [cards] Cards, panels, stage props ==== */
/* -- card -- */
.card {
  position: relative; border-radius: var(--r-lg); padding: var(--card-pad);
  background: var(--surface-1); box-shadow: var(--shadow-card); isolation: isolate;
}
.card::before {                                  /* luminous gradient hairline (no backdrop-filter, no mask where border-area clips) */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  border: 1px solid transparent; background: var(--card-edge, var(--edge)) border-box; background-clip: border-area;
}
@supports not (background-clip: border-area) {
  .card::before {
    border: 0; padding: 1px; background-clip: border-box;
    -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);
  }
}
.card-live { --card-edge: var(--edge-live); box-shadow: var(--shadow-1), 0 30px 70px -34px rgba(255,61,104,.42); }
.card-gold { --card-edge: var(--edge-gold); box-shadow: var(--shadow-1), 0 30px 70px -40px rgba(246,196,83,.4); }
.card-flush { padding: 0; }
.card-head { display: flex; align-items: center; gap: 12px; min-height: 30px; margin-bottom: 20px; }
.card-head .eyebrow { margin: 0; }
.card-head .eyebrow::after { width: 22px; }
.card-head > :last-child:not(:first-child):not(.card-title) { margin-left: auto; }   /* fix: a trailing tag / link floats right, never the title */
.card-title { font-size: var(--fs-lg); line-height: 1.3; font-weight: 700; }
.card-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin: var(--s-4) calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)); padding: 14px; border-top: 1px solid var(--line); }
.panel { position: relative; border-radius: var(--r-lg); background: var(--surface-panel); border: 1px solid var(--line); }
.prop { color: var(--text-1); }                  /* stage objects keep dark tokens in the light theme */
@media (max-width: 719px) {
  .card { border-radius: 22px; }
  .card-head { flex-wrap: wrap; gap: 8px 10px; margin-bottom: 16px; }
  .card-head .card-title { order: 3; flex-basis: 100%; }
  .card-head .eyebrow::after { display: none; }
}

/* ==== [hero] Home hero (and profile variant) ==== */
/* -- hero -- */
.hero { position: relative; padding: clamp(24px, 4vw, 56px) 0 clamp(96px, 9vw, 136px); isolation: isolate; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; z-index: -2; top: -12%; right: -6%; width: min(1000px, 80vw); aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, var(--hero-glow), transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.hero-kickers { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px 0 11px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--surface-inset); font-size: 13px; font-weight: 500; color: var(--text-2);
  letter-spacing: .05em; text-decoration: none; white-space: nowrap;
}
.hero-kicker .i { width: 17px; height: 17px; color: var(--gold); }
a.hero-kicker:hover { border-color: var(--line-strong); color: var(--text-1); }
.hero-kicker img { width: 38px; height: 22px; margin-left: -4px; border-radius: 5px; object-fit: cover; }
.hero-name {                                     /* current language's name, poster scale, crowned */
  position: relative; display: inline-block; margin: 26px 0 12px; padding: .06em .04em .04em 0;
  font-size: var(--hero-fs); line-height: 1.04; font-weight: 800; letter-spacing: .04em;
  background: var(--grad-name); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: var(--name-glow);
}
.hero-name::before {                             /* the crown sits on the first glyph, like on her beret */
  content: ""; position: absolute; left: -.12em; top: -.2em; width: .48em; height: .48em; rotate: -18deg;
  background: var(--grad-gold);
  -webkit-mask: var(--crown) center / contain no-repeat; mask: var(--crown) center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(246,196,83,.55));
}
:root:lang(ja) .hero-name { letter-spacing: .05em; font-weight: 800; }
:root:lang(en) .hero-name { letter-spacing: -.012em; font-weight: 700; }
.hero-alt {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 26px;
  font-size: clamp(16px, .5vw + 13px, 21px); font-weight: 500; color: var(--text-2); letter-spacing: .08em;
}
.hero-alt .sep { width: 10px; height: 10px; background: var(--grad-stellar); -webkit-mask: var(--sparkle) center / contain no-repeat; mask: var(--sparkle) center / contain no-repeat; }
.hero-alt [lang="en"] { font-size: .84em; letter-spacing: .2em; text-transform: uppercase; }
.tagline { position: relative; margin: 0 0 16px; padding: 2px 0 2px 18px; }
.tagline::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-2), var(--gold)); box-shadow: 0 0 12px rgba(127,227,242,.5);
}
.tagline-ja { font-size: clamp(17px, .5vw + 14px, 21px); font-weight: 600; line-height: 1.6; letter-spacing: .04em; color: var(--text-1); }
.tagline-tr { margin-top: 4px; font-size: 15px; color: var(--text-2); }
.tagline-tr:lang(zh) { word-break: keep-all; overflow-wrap: anywhere; }
.hero-desc { margin: 0 0 24px; max-width: 34em; font-size: 15px; color: var(--text-3); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; }
.fact {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--surface-inset); border: 1px solid var(--line);
  transition: rotate var(--dur-2) var(--ease-spring), border-color var(--dur-2);
}
.fact:hover { rotate: -2deg; border-color: var(--line-2); }
.fact dt { font-size: var(--fs-xs); color: var(--text-3); letter-spacing: .04em; }
.fact dd { font-size: 14.5px; font-weight: 600; color: var(--text-1); }
.fact .note { color: var(--text-2); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; width: min(100%, 600px); aspect-ratio: 1; justify-self: center; }
.hv-stage { position: absolute; inset: 0; }
.hv-moon { position: absolute; left: 11%; top: 5%; width: 78%; aspect-ratio: 1; border-radius: 50%; background: var(--moon); box-shadow: var(--moon-glow); }
.hv-moon::after { content: ""; position: absolute; inset: -7%; border-radius: 50%; border: 1px dashed var(--line-2); }   /* fix: still (a 120 s turn of a dashed circle was one more loop, barely visible) */
.hv-comet {                                      /* the tail streams from behind her head — she IS the comet */
  position: absolute; z-index: 0; top: 29%; left: 52%; width: 72%; height: 22px; margin-top: -11px;
  transform-origin: 0 50%; transform: rotate(-31deg); filter: drop-shadow(0 0 10px rgb(var(--comet-tail) / .55));
}
.hv-comet::before {
  content: ""; position: absolute; inset: 0; clip-path: polygon(0 12%, 100% 48%, 100% 52%, 0 88%);
  background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgb(var(--comet-tail) / .6) 22%, rgb(var(--comet-tail) / .2) 58%, transparent 100%);
}
.hv-comet::after { content: ""; position: absolute; left: 0; right: 18%; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: linear-gradient(90deg, var(--white), rgba(255,241,196,.9) 30%, transparent); }
.hv-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hv-ring-back { z-index: 1; }
.hv-ring-front { z-index: 4; filter: drop-shadow(0 0 5px rgba(127,227,242,.7)); }
.hv-spark { position: absolute; z-index: 4; left: var(--x); top: var(--y); width: var(--s); height: var(--s); }
/* fix: one image per spark — the white → blue (gold) sparkle with its halo drawn in (no mask, and no drop-shadow filter
   over an animated child, which the GPU re-rendered every frame) */
.hv-spark::before {
  content: ""; position: absolute; inset: -50%; background: var(--spark-blue) center / contain no-repeat;
  animation: twinkle-hero 3.6s var(--ease-in-out) var(--d, 0s) infinite;
}
.hv-spark.is-gold::before { background-image: var(--spark-gold); }
.hv-chibi { position: absolute; z-index: 3; left: 4%; right: 4%; top: 1%; bottom: 6.5%; animation: float-sm 7s var(--ease-in-out) infinite alternate; }
.hv-chibi img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: var(--chibi-shadow); }
.hv-podium {                                     /* tartan stage lift (せり): hides the logo's flat cut */
  position: absolute; z-index: 4; left: 12%; right: 12%; bottom: 3%; height: 12.5%; border-radius: 50% / 40%;
  background: linear-gradient(180deg, rgba(12,16,46,.15), rgba(12,16,46,.7)), var(--plaid), var(--plaid-base);
  box-shadow: inset 0 3px 0 var(--gold-300), inset 0 -18px 30px rgba(4,6,26,.7), 0 18px 40px -12px rgba(0,0,0,.6), 0 0 60px -10px rgba(59,111,217,.55);
}
.hv-podium::before {                             /* spotlight pool on the stage lift */
  content: ""; position: absolute; left: 10%; right: 10%; top: -30%; height: 70%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200,221,248,.35), rgba(156,195,242,.1) 60%, transparent); pointer-events: none;
}
.hv-podium::after {                              /* rim light */
  content: ""; position: absolute; left: 6%; right: 6%; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-200), transparent); filter: blur(.5px);
}
.bubble {                                        /* speech bubble — her catchphrase, localized */
  position: absolute; z-index: 5; left: -2%; top: 4%; max-width: 12em; padding: 10px 15px 11px; border-radius: 20px;
  font-size: 14px; font-weight: 800; line-height: 1.45; text-align: center; letter-spacing: .02em;
  color: var(--bubble-fg); background: var(--bubble-bg); border: 2px solid var(--bubble-line);
  box-shadow: 0 4px 0 var(--bubble-line), 0 18px 40px -16px rgba(0,0,0,.6);
  rotate: -5deg; transform-origin: 80% 100%; animation: wobble 6s var(--ease-in-out) infinite;
}
.bubble::after {
  content: ""; position: absolute; right: 18%; bottom: -10px; width: 16px; height: 16px; background: var(--bubble-bg);
  border: solid var(--bubble-line); border-width: 0 2px 2px 0; border-bottom-right-radius: 4px; transform: rotate(45deg) skew(10deg, 10deg);
}
@media (min-width: 880px) and (max-width: 1120px) { .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
@media (max-width: 879px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-visual { order: -1; width: min(86vw, 460px); }
  .hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .hero-kickers, .hero-alt, .facts, .hero-cta { justify-content: center; }
  .tagline { padding: 16px 0 0; }
  .tagline::before { left: 50%; top: 0; bottom: auto; width: 44px; height: 2px; translate: -50% 0; background: linear-gradient(90deg, var(--accent-2), var(--gold)); }
  .hero-desc { margin-inline: auto; text-wrap: balance; }
}
@media (max-width: 719px) {
  .hero { padding-bottom: 88px; }
  .hero-kicker { height: auto; min-height: 32px; padding-block: 5px; white-space: normal; text-wrap-style: balance; font-size: 12.5px; letter-spacing: .03em; }
  .k-role { display: none; }                       /* authored: <span class="k-role">虚拟偶像 · </span>hololive 0期生 · … */
  .hero-name { margin-top: 18px; }
  .hero-alt { margin-bottom: 20px; font-size: 15.5px; }
  .hero-desc { font-size: 14px; }
  .fact { padding: 7px 12px; }
  .fact dd { font-size: 14px; }
  .hero-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 10px; }
  .hero-cta .btn { min-width: 0; padding: 0 12px; font-size: 14.5px; }
  .hero-cta .btn-primary { grid-column: 1 / -1; }
  .bubble { font-size: 12.5px; padding: 8px 12px 9px; }
  .penlights { --pl-h: 110px; }
}

/* ==== [live] Live card — live / upcoming / offline ==== */
/* -- live-card -- */
.live-card { display: flex; flex-direction: column; container-type: inline-size; overflow: hidden; }
.onair-band {                                    /* trilingual marquee, live state only */
  display: flex; overflow: hidden; margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) var(--s-5); height: 30px; align-items: center;
  background: var(--grad-live); color: var(--on-live); border-radius: var(--r-lg) var(--r-lg) 0 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.onair-track { display: flex; flex: none; white-space: nowrap; animation: marquee 40s linear infinite; }
.onair-track span { padding: 0 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .18em; }
.onair-track span::after { content: "✦"; margin-left: 28px; opacity: .7; }
.live-body { display: grid; grid-template-columns: minmax(0, 50%) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 24px; }
.live-note { display: flex; align-items: flex-start; gap: 8px; margin: -6px 0 18px; font-size: var(--fs-sm); line-height: 1.6; color: var(--text-3); }   /* status unknown (stale data / file://) */
.live-note .i { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
.live-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--surface-media); box-shadow: var(--shadow-thumb); }
.live-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.live-card:hover .live-thumb img { transform: scale(1.04); }
.live-card:hover .play-orb { opacity: 1; scale: 1; }
.live-thumb .badge { position: absolute; top: 10px; left: 10px; }
.live-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.live-channel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; font-size: var(--fs-sm); color: var(--text-3); }
.live-channel img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2); }
.live-channel b { font-weight: 700; color: var(--text-1); }
.live-title { margin: 0 0 8px; font-size: 16.5px; line-height: 1.6; font-weight: 700; }
.live-title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur-3) var(--ease-out); }
.live-title a:hover { background-size: 100% 1px; }
.live-gloss { margin: 0 0 12px; font-size: 13.5px; line-height: 1.6; color: var(--text-3); }
.live-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 13px; color: var(--text-2); }
.live-meta li { display: inline-flex; align-items: center; gap: 6px; }
.live-meta .i { width: 15px; height: 15px; color: var(--text-3); }
.live-meta .live-local { color: var(--text-3); }            /* site addition: the viewer's own clock beside the JST start */
.upnext { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.upnext-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.upnext-k { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.upnext-k .i { width: 16px; height: 16px; }
.up { display: grid; grid-template-columns: 11.6em minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 8px 0; }
.up + .up { border-top: 1px dashed var(--line); }
/* site addition: an up-next row is one link, as tall as the row, with the focus ring on the whole row (§7 Do) */
.up { position: relative; }
.up-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 10px; }
.up-title a:focus-visible { outline: none; }
.up:has(.up-title a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 0; border-radius: 10px; }
.up-when { display: grid; line-height: 1.35; }
.up-when time { font-size: 13.5px; font-weight: 600; color: var(--text-1); white-space: nowrap; }
.up-local { font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }  /* "your time" — hidden for JST viewers */
.up-title { font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-title a { color: inherit; text-decoration: none; transition: color var(--dur-1); }
.up-title a:hover { color: var(--accent); }
.live-card[data-state="offline"] .live-body { grid-template-columns: 136px minmax(0, 1fr); gap: 16px; align-items: center; }
.live-card[data-state="offline"] .live-title { font-size: 15px; }
@container (max-width: 560px) {
  .live-body, .live-card[data-state] .live-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .live-info .btn { width: 100%; }
  .up { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "when tag" "title title"; gap: 2px 10px; padding: 10px 0; }
  .up-when { grid-area: when; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; overflow: hidden; }
  /* fix: the "·" sits in the gap, so when "your time" wraps it falls outside and is clipped (a line never starts with it) */
  .up-when .up-local { margin-left: -14px; }
  .up-when .up-local::before { content: "·"; display: inline-block; width: 14px; text-align: center; }
  .up > .tag { grid-area: tag; }
  .up-title { grid-area: title; }
}

/* ==== [ticket] Concert ticket, flip countdown, tour route ==== */
/* -- ticket -- */
.ticket-wrap {                                   /* fix: a static box-shadow (was filter: drop-shadow() over the countdown) — tokens */
  container-type: inline-size; position: relative; border-radius: var(--r-lg); box-shadow: var(--prop-shadow);
  --tk-hole: var(--ticket-hole); --tk-hole-top: var(--ticket-hole-top); --tk-hole-bot: var(--ticket-hole-bot); --tk-rim: var(--ticket-rim);   /* read here: the ticket (.prop) re-declares the dark tokens */
}
.ticket {                                        /* its own ground shows only through the notch holes */
  --notch: 14px; position: relative; display: flex; flex-direction: column; min-height: 100%; border-radius: var(--r-lg); background: var(--tk-hole);
  --tk-ring: transparent calc(var(--notch) - .4px), var(--tk-rim) calc(var(--notch) - .3px), var(--tk-rim) calc(var(--notch) + .5px), transparent calc(var(--notch) + 1.2px);
}
.ticket-main, .ticket-stub { position: relative; }
.ticket-main {
  padding: var(--card-pad); padding-bottom: 24px; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden;
  background: radial-gradient(circle at 0 100%, var(--tk-ring)), radial-gradient(circle at 100% 100%, var(--tk-ring)), var(--ticket-bg);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 100%, transparent 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% 100%, transparent 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--notch) at 0 100%, transparent 97%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle var(--notch) at 100% 100%, transparent 97%, #000) right / 51% 100% no-repeat;
}
.ticket-main::before { content: ""; position: absolute; inset: 10px 10px 0; border: 1px solid var(--ticket-foil); border-bottom: 0; border-radius: 16px 16px 0 0; pointer-events: none; }
.ticket-castle { position: absolute; right: -8px; bottom: 6px; width: 180px; color: rgba(156,195,242,.14); pointer-events: none; }
.ticket-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 18px; }
.ticket-head .card-title { margin-right: auto; }
.ticket-admit { padding: 3px 8px; border: 1px solid var(--gold-300); border-radius: 2px; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .24em; color: var(--gold-300); }
.ticket-kicker { margin: 0 0 4px; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .24em; color: var(--text-3); }
.ticket-title {
  margin: 0 0 14px; padding: 0 .1em .06em 0; font-size: clamp(36px, 1.6vw + 22px, 50px); font-style: italic; font-weight: 600; line-height: 1.02; letter-spacing: 0;
  background: var(--grad-tour); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 22px rgba(246,196,83,.28));
}
.ticket-stop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 16px; }
.ticket-no { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 16px; font-weight: 800; color: var(--on-gold); background: var(--grad-gold); }
.ticket-city { font-size: clamp(26px, 1vw + 20px, 34px); font-weight: 800; letter-spacing: .06em; line-height: 1; text-transform: uppercase; }
.ticket-flag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px 0 9px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; color: var(--gold-200); border: 1px solid rgba(246,196,83,.5); background: rgba(246,196,83,.08); }
.ticket-flag::before { content: ""; width: 14px; height: 14px; background: var(--gold); -webkit-mask: var(--crown) center / contain no-repeat; mask: var(--crown) center / contain no-repeat; }
.ticket-meta { display: grid; grid-template-columns: repeat(3, auto) minmax(0, 1fr); gap: 6px 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.ticket-meta dt { font-size: 10.5px; font-weight: 700; letter-spacing: .22em; color: var(--text-3); text-transform: uppercase; }
.ticket-meta dd { margin-top: 2px; font-size: 16px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticket-meta dd small { margin-left: 3px; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.ticket-meta .venue dd { white-space: normal; }
.ticket-title.is-cjk { --f-zh: var(--font-zh); --f-ja: var(--font-ja); --f-en: var(--font-en); font-style: normal; font-weight: 800; font-size: clamp(26px, 1.2vw + 18px, 36px); line-height: 1.25; letter-spacing: .02em; }   /* serif italic is for Latin titles only */
.ticket-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ticket-stub {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 26px var(--card-pad) 22px; text-align: center;
  border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; background: var(--plaid), var(--plaid-base);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 0, transparent 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% 0, transparent 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--notch) at 0 0, transparent 97%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle var(--notch) at 100% 0, transparent 97%, #000) right / 51% 100% no-repeat;
}
.ticket-stub::before {                          /* navy wash + the rims of the stub's holes */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 0 0, var(--tk-ring)), radial-gradient(circle at 100% 0, var(--tk-ring)), linear-gradient(180deg, rgba(9,12,38,.58), rgba(9,12,38,.8));
}
.ticket-stub::after {                            /* perforation */
  content: ""; position: absolute; top: 0; left: calc(var(--notch) + 8px); right: calc(var(--notch) + 8px); height: 2px;
  background: repeating-linear-gradient(90deg, rgba(4,6,22,.95) 0 6px, transparent 6px 12px);
}
.ticket-stub > * { position: relative; z-index: 1; }
.stub-k { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--gold-200); }
.stub-code { display: grid; justify-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .24em; color: var(--text-2); }
.barcode {
  display: block; width: 180px; height: 30px; opacity: .88;
  background: repeating-linear-gradient(90deg, var(--paper) 0 2px, transparent 2px 4px, var(--paper) 4px 5px, transparent 5px 8px, var(--paper) 8px 11px, transparent 11px 12px, var(--paper) 12px 13px, transparent 13px 16px, var(--paper) 16px 18px, transparent 18px 19px, var(--paper) 19px 20px, transparent 20px 23px);
}
@container (max-width: 540px) {
  .ticket-meta { grid-template-columns: repeat(3, auto) minmax(0, 1fr); }
  .ticket-meta .venue { grid-column: 1 / -1; }
  .ticket-meta .venue dd { font-size: 15px; }
}
@container (min-width: 760px) {                  /* wide: horizontal ticket, vertical perforation */
  .ticket { flex-direction: row; background: linear-gradient(180deg, var(--tk-hole-top), var(--tk-hole-bot)); }   /* holes at the top and bottom of the tear */
  .ticket-main {
    flex: 1 1 auto; border-radius: var(--r-lg) 0 0 var(--r-lg); padding: clamp(24px, 3vw, 40px) clamp(24px, 3.4vw, 44px);
    background: radial-gradient(circle at 100% 0, var(--tk-ring)), radial-gradient(circle at 100% 100%, var(--tk-ring)), var(--ticket-bg);
    -webkit-mask: radial-gradient(circle var(--notch) at 100% 0, transparent 97%, #000) top / 100% 51% no-repeat,
                  radial-gradient(circle var(--notch) at 100% 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle var(--notch) at 100% 0, transparent 97%, #000) top / 100% 51% no-repeat,
          radial-gradient(circle var(--notch) at 100% 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
  }
  .ticket-main::before { inset: 12px 0 12px 12px; border: 1px solid var(--ticket-foil); border-right: 0; border-radius: 12px 0 0 12px; }
  .ticket-stub {
    flex: 0 0 clamp(280px, 32cqi, 340px); border-radius: 0 var(--r-lg) var(--r-lg) 0; padding: 30px 26px;
    -webkit-mask: radial-gradient(circle var(--notch) at 0 0, transparent 97%, #000) top / 100% 51% no-repeat,
                  radial-gradient(circle var(--notch) at 0 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle var(--notch) at 0 0, transparent 97%, #000) top / 100% 51% no-repeat,
          radial-gradient(circle var(--notch) at 0 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
  }
  .ticket-stub::before { background: radial-gradient(circle at 0 0, var(--tk-ring)), radial-gradient(circle at 0 100%, var(--tk-ring)), linear-gradient(180deg, rgba(9,12,38,.58), rgba(9,12,38,.8)); }
  .ticket-stub::after { top: calc(var(--notch) + 8px); bottom: calc(var(--notch) + 8px); left: 0; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(4,6,22,.95) 0 6px, transparent 6px 12px); }
}

/* -- countdown -- */
.cd { display: flex; justify-content: center; gap: 8px; contain: layout style; }   /* flip countdown (role="timer"); ticks stay inside */
.cd-cell { display: grid; justify-items: center; gap: 6px; }
.cd-num {
  position: relative; display: grid; place-items: center; min-width: 70px; height: 76px; padding: 0 8px; border-radius: 9px;
  font-size: 46px; font-weight: 600; line-height: 1; letter-spacing: .01em; color: var(--text-1);
  background: var(--flap-bg); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 10px 20px -10px rgba(0,0,0,.8);
}
.cd-num::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(4,6,22,.85); }
.cd-cell:first-child .cd-num { color: var(--gold-300); }
.cd-num.is-flip { animation: flip .5s var(--ease-in-out); }
.cd-unit { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; color: var(--text-2); }
:root:lang(en) .cd-unit { text-transform: uppercase; font-size: 10.5px; letter-spacing: .2em; }

/* -- route -- */
.route { position: relative; display: grid; grid-template-columns: repeat(var(--stops, 4), minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; --progress: 0; }
.route::before, .route::after { content: ""; position: absolute; top: 16px; left: calc(50% / var(--stops, 4)); height: 2px; border-radius: 2px; }
.route::before { right: calc(50% / var(--stops, 4)); background: repeating-linear-gradient(90deg, var(--dash) 0 8px, transparent 8px 14px); }
.route::after {                                  /* travelled part + comet head at "today" */
  width: calc((100% - 100% / var(--stops, 4)) * var(--progress)); background: linear-gradient(90deg, rgb(var(--comet-tail) / .3), var(--accent-2));
  box-shadow: 0 0 10px rgb(var(--comet-tail) / .7);
}
.route-stop { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.route-node {
  position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  color: var(--accent); background: var(--bg); border: 1.5px solid var(--line-strong);
  transition: transform var(--dur-3) var(--ease-spring), box-shadow var(--dur-2);
}
.route-node .i { width: 16px; height: 16px; }
.route-city { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .14em; color: var(--text-2); text-transform: uppercase; }
.route-date { font-size: var(--fs-xs); color: var(--text-3); }
.route-venue { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.4; }
.route-state { margin-top: 2px; }
.route-stop.is-done .route-node { color: var(--text-3); border-color: var(--line-2); }
.route-stop.is-done :is(.route-city, .route-date) { color: var(--text-3); }
.route-stop.is-next .route-node { color: var(--on-primary); background: var(--grad-primary); border-color: transparent; box-shadow: 0 0 0 4px rgba(127,227,242,.16), 0 0 22px rgba(127,227,242,.5); }
.route-stop.is-next .route-city { color: var(--accent-2); }
.route-stop.is-final .route-node { color: var(--on-gold); background: var(--grad-gold); border-color: transparent; box-shadow: 0 0 20px rgba(246,196,83,.55); }
.route-stop.is-final .route-city { color: var(--gold-text); }
button.route-node:hover { transform: scale(1.1); }
.ticket-stub .route { align-self: stretch; margin: 6px 0 4px; }
.ticket-stub .route-date { color: var(--text-2); }
@media (max-width: 480px) { .route-city { letter-spacing: .06em; font-size: 10.5px; } }

/* ==== [video] Video card, bento grid, list row, rail ==== */
/* -- video-card -- */
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; margin: 0; padding: 0; list-style: none; }
.vgrid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.vcard { position: relative; display: flex; flex-direction: column; min-width: 0; }
.vthumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--surface-media);
  box-shadow: var(--shadow-thumb); transition: box-shadow var(--dur-3), transform var(--dur-3) var(--ease-out);
}
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.thumb-tag, .vdur {
  position: absolute; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em; line-height: 1; color: var(--on-media); background: var(--scrim);
}
.thumb-tag { top: 10px; left: 10px; }
.thumb-tag-mv { color: var(--on-gold); background: var(--grad-gold); letter-spacing: .14em; }
.thumb-tag-3d { color: var(--on-primary); background: var(--grad-primary); letter-spacing: .12em; }
.thumb-tag-live { color: var(--on-live); background: var(--live-bg); }
.thumb-tag-members { color: var(--gold-200); background: var(--scrim); box-shadow: inset 0 0 0 1px rgba(246,196,83,.55); }
.vdur { right: 10px; bottom: 10px; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.vbody { padding: 14px 2px 0; min-width: 0; }
.vtitle { font-size: var(--fs-title); line-height: 1.55; font-weight: 700; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.vtitle a { text-decoration: none; transition: color var(--dur-1); }
.vmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; font-size: var(--fs-sm); color: var(--text-3); }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--r-md); }
.stretched:focus-visible { outline: none; }
.vcard:hover .vthumb { box-shadow: 0 0 0 1px rgba(127,227,242,.5), 0 26px 50px -22px rgba(59,111,217,.9); transform: translateY(-3px); }
.vcard:hover .vthumb img { transform: scale(1.05); }
.vcard:hover .play-orb { opacity: 1; scale: 1; }
.vcard:hover .vtitle a { color: var(--accent); }
.vcard:has(.stretched:focus-visible) .vthumb { outline: 2px solid var(--focus); outline-offset: 3px; }
.play-orb {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; translate: -50% -50%; display: grid; place-items: center; border-radius: 50%;
  color: var(--white); background: rgba(8,12,40,.55); border: 1px solid rgba(255,255,255,.45);
  opacity: 0; scale: .8; transition: opacity var(--dur-2), scale var(--dur-3) var(--ease-spring);
}
.play-orb .i { width: 22px; height: 22px; margin-left: 3px; }
.vcard-feature { grid-column: span 2; grid-row: span 2; padding: 12px; border-radius: 28px; background: var(--surface-1); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.vcard-feature .vthumb { border-radius: 20px; flex: 1 1 auto; aspect-ratio: auto; min-height: 300px; }
.vcard-feature .vbody { padding: 18px 14px 8px; }
.vcard-feature .vtitle { font-size: var(--fs-xl); line-height: 1.35; }
.vcard-feature .stretched::after { border-radius: 28px; }
.vcard-feature .play-orb { width: 76px; height: 76px; opacity: 1; scale: 1; background: rgba(8,12,40,.45); }
.vcard-feature .play-orb .i { width: 28px; height: 28px; }
.vcard-feature:hover .vthumb { transform: none; }
.vcard-feature .stamp { position: absolute; z-index: 3; top: -10px; right: -8px; }
.vfeature-k { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: var(--gold-text); letter-spacing: .08em; }
.vdesc { margin-top: 6px; font-size: var(--fs-md); color: var(--text-2); }
.vcredits { display: grid; gap: 4px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: var(--fs-sm); }
.vcredits div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 12px; }
.vcredits dt { color: var(--text-3); font-weight: 600; }
.vcredits dd { color: var(--text-2); }
@media (max-width: 1023px) { .vgrid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px) {                      /* phones: featured card stays big, the rest become rows */
  .vgrid, .vgrid-4 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .vcard-feature { grid-column: auto; grid-row: auto; margin-bottom: 14px; padding: 10px; border-radius: 22px; }
  .vcard-feature .vthumb { border-radius: 14px; flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .vcard-feature .vtitle { font-size: 19px; }
  .vcard-feature .play-orb { width: 58px; height: 58px; }
  .vcard-feature .stamp { width: 54px; font-size: 11px; }
  .vgrid > .vcard:not(.vcard-feature) { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; }
  .vgrid > .vcard:not(.vcard-feature) + .vcard { border-top: 1px solid var(--line); }
  .vgrid > .vcard:not(.vcard-feature) .vthumb { border-radius: 12px; }
  .vgrid > .vcard:not(.vcard-feature) .vbody { padding: 0; }
  .vgrid > .vcard:not(.vcard-feature) .vtitle { font-size: 14px; line-height: 1.5; }
  .vgrid > .vcard:not(.vcard-feature) .vmeta { margin-top: 4px; font-size: var(--fs-xs); }
  .vgrid > .vcard:not(.vcard-feature) :is(.thumb-tag, .vdur) { height: 20px; padding: 0 6px; font-size: 10.5px; border-radius: 5px; }
  .vgrid > .vcard:not(.vcard-feature) .thumb-tag { top: 6px; left: 6px; }
  .vgrid > .vcard:not(.vcard-feature) .vdur { right: 6px; bottom: 6px; }
  .vgrid > .vcard:not(.vcard-feature) .play-orb { display: none; }
  .vcard:hover .vthumb { transform: none; }
}
/* site addition: press feedback (replaces the browser's tap highlight on the stretched link) */
.vcard:active .vthumb, .vrow:active .vthumb { transform: scale(.975); transition-duration: 80ms; }

/* -- video-row -- */
.vrow { position: relative; display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; }
.vrow + .vrow { border-top: 1px solid var(--line); }
.vrow .vthumb { border-radius: 12px; }
.vrow .vbody { padding: 0; }
.vrow .vtitle { font-size: 14px; line-height: 1.5; }
.vrow .vmeta { margin-top: 4px; font-size: var(--fs-xs); }
.vrow :is(.thumb-tag, .vdur) { height: 20px; padding: 0 6px; font-size: 10.5px; border-radius: 5px; }
.vrow .thumb-tag { top: 6px; left: 6px; }
.vrow .vdur { right: 6px; bottom: 6px; }
.vrow .stretched::after { border-radius: 12px; }
@media (max-width: 719px) { .vrow { grid-template-columns: 124px minmax(0, 1fr); } }

/* -- rail -- */
.hrail {                                         /* horizontal scroll-snap rail (originals, outfits, series) */
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--item, 260px); gap: 18px; margin: 0; padding: 4px 0 14px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.hrail > * { scroll-snap-align: start; min-width: 0; }
.hrail-bleed { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.ometa { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-3); }

/* ==== [list] Toolbar, search, tabs, select, dense list rows (songs, archive) ==== */
/* -- toolbar -- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 16px var(--row-px, 24px); border-bottom: 1px solid var(--line); }
.toolbar-sticky { position: sticky; top: calc(var(--header-h) + 8px); z-index: var(--z-sticky); border-radius: var(--r-md); background: var(--surface-overlay); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.toolbar .spacer { flex: 1; }
@media (max-width: 719px) {
  .toolbar { --row-px: 16px; }
  .toolbar .search { flex-basis: 100%; max-width: none; }
  .toolbar .kbd { display: none; }
  .toolbar .search input { padding-right: 16px; }
}

/* -- search -- */
.search { position: relative; display: block; flex: 1 1 300px; max-width: 480px; }   /* fix: label is inline by default */
.search > .i { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.search input {
  width: 100%; height: 46px; padding: 0 46px 0 44px; border-radius: var(--r-pill);
  background: var(--surface-inset); border: 1px solid var(--line-2); color: var(--text-1); font-size: 14px; text-overflow: ellipsis;   /* fix: a long placeholder ends in "…", never mid-word */
  transition: border-color var(--dur-1), box-shadow var(--dur-2);
}
.search input::placeholder { color: var(--text-3); opacity: 1; }
.search input:hover { border-color: var(--line-strong); }
.search input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(127,227,242,.16); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search input:placeholder-shown::-webkit-search-cancel-button { display: none; }   /* fix: an empty field keeps no room for it — the hint gets the whole width */
.kbd {
  position: absolute; right: 14px; top: 50%; translate: 0 -50%; min-width: 22px; padding: 1px 6px; border-radius: 6px;
  font-size: 11px; line-height: 1.5; color: var(--text-3); text-align: center; border: 1px solid var(--line-2); background: var(--surface-2);
}
.search input:focus ~ .kbd, .search input:not(:placeholder-shown) ~ .kbd { opacity: 0; }

/* -- select-tabs -- */
.select {
  appearance: none; height: 40px; padding: 0 38px 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  background: var(--surface-inset) var(--chev) right 14px center / 14px no-repeat;   /* fix: chevron is a theme token */
  color: var(--text-1); font-size: var(--fs-md); font-weight: 600; cursor: pointer;
}
.select:hover { border-color: var(--line-strong); }
/* fix: iOS Safari zooms into any field under 16 px on focus (and stays zoomed) — on phones and touch screens what you
   type is 16 px; the placeholder keeps its 14 px so the hint still fits (and ends in "…" where it cannot) */
@media (max-width: 719px), (pointer: coarse) {
  .search input, .select { font-size: var(--fs-base); }
  .search input::placeholder { font-size: var(--fs-md); }
}
.tabs {                                          /* page tabs — links that keep state in the hash (#/music?tab=covers) */
  display: flex; gap: 4px; padding: 4px; overflow-x: auto; scrollbar-width: none; width: max-content; max-width: 100%;
  border-radius: var(--r-pill); background: var(--surface-inset); border: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: var(--r-pill); flex-shrink: 0;
  color: var(--text-2); font-size: var(--fs-md); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: color var(--dur-1), background-color var(--dur-1);
}
.tabs a:hover { color: var(--text-1); background: var(--hover); }
.tabs a[aria-current="page"] { color: var(--on-primary); background: var(--accent); }
.tabs a:focus-visible { outline-offset: -2px; }   /* fix: .tabs scrolls (clips outside rings) → inset ring … */
.tabs a[aria-current="page"]:focus-visible { box-shadow: inset 0 0 0 4px var(--surface-inset); }   /* … with a gap on the filled tab */
.tabs .chip-n { font-size: 11px; }
.tabs a[aria-current="page"] .chip-n { color: var(--on-primary); background: rgba(8,16,48,.12); }

/* -- table -- */
.tlist { --cols: 30px 112px minmax(0, 1fr) 104px 96px 64px 92px 34px; --row-px: 24px; }   /* # thumb title type date views length|cue play */
.tlist-head, .trow { display: grid; grid-template-columns: var(--cols); align-items: center; gap: 16px; padding-inline: var(--row-px); }
.tlist-head { height: 42px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; color: var(--text-3); border-bottom: 1px solid var(--line); }
:root:lang(en) .tlist-head { text-transform: uppercase; }
.tlist-head .r, .trow .r { text-align: right; justify-self: end; }
.trows { margin: 0; padding: 6px 0; list-style: none; }
.trow { position: relative; min-height: 78px; padding-block: 9px; transition: background-color var(--dur-1); }
.trow + .trow::before { content: ""; position: absolute; top: 0; left: var(--row-px); right: var(--row-px); height: 1px; background: var(--line); }
.trow:hover { background: linear-gradient(90deg, var(--hover), transparent 80%); }
.trow:active { background: var(--hover); }       /* site addition: tap / press feedback */
.trow:has(.stretched:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 12px; }
.trow .stretched::after { border-radius: 0; }
.trow.is-flash { animation: flash 1.2s var(--ease-out); }
.c-idx { font-size: 13px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.c-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-media); box-shadow: 0 0 0 1px var(--line); }
.c-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.trow:hover .c-thumb img { transform: scale(1.07); }
.c-thumb .vdur { right: 4px; bottom: 4px; height: 18px; padding: 0 5px; font-size: 10.5px; border-radius: 4px; }
.c-main { display: grid; gap: 3px; min-width: 0; }
.c-title { font-size: 15.5px; font-weight: 700; line-height: 1.45; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--dur-1); }
.trow:hover .c-title { color: var(--accent); }
.c-sub { font-size: 12.5px; line-height: 1.5; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-num { font-size: 13px; color: var(--text-2); letter-spacing: .03em; white-space: nowrap; }
.c-num.strong { font-size: 13.5px; font-weight: 700; color: var(--text-1); }
.c-cue {                                         /* 歌枠 timestamp deep link: plays from t= */
  position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; color: var(--accent); text-decoration: none; border: 1px solid var(--line-2); background: var(--surface-2); font-variant-numeric: tabular-nums;
}
.c-cue:hover { border-color: var(--accent-2); color: var(--accent-2); }
.c-cue .i { width: 11px; height: 11px; }
.c-play {
  position: relative; z-index: 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; padding: 0;
  border: 1px solid var(--line-2); background: transparent; color: var(--text-2);
  transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1), scale var(--dur-3) var(--ease-spring);
}
.c-play .i { width: 14px; height: 14px; margin-left: 2px; }
.trow:hover .c-play { background: var(--accent); color: var(--on-primary); border-color: transparent; scale: 1.08; }
.tlist-foot { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 10px var(--row-px) 24px; }
@media (max-width: 1023px) { .tlist { --cols: 28px 104px minmax(0, 1fr) 96px 64px 34px; } .tlist .hide-md { display: none; } }
@media (max-width: 719px) {
  .tlist { --row-px: 16px; }
  .tlist-head { display: none; }
  .trow {
    grid-template-columns: 104px auto auto minmax(0, 1fr); grid-template-areas: "thumb main main main" "thumb meta1 meta2 meta3";
    gap: 5px 10px; min-height: 0; padding-block: 12px;
  }
  .trow .c-idx, .trow .c-play, .trow .hide-sm { display: none; }
  .trow .c-thumb { grid-area: thumb; grid-row: 1 / span 2; }
  .trow .c-main { grid-area: main; align-self: end; gap: 1px; }
  .trow .c-title { font-size: 14.5px; }
  .trow .c-sub { font-size: 12px; }
  .trow .m1 { grid-area: meta1; justify-self: start; }
  .trow .m2 { grid-area: meta2; }
  .trow .m3 { grid-area: meta3; justify-self: end; }
  .tlist .trow .m2 { display: block; }            /* fix: .hide-md hid the date on phones too */
  .trow .c-num { font-size: 12px; }
  .trow .tag { height: 20px; padding: 0 7px; font-size: 10.5px; }
}

/* ==== [news] News list — date tile, category, translation + original ==== */
/* -- news -- */
.news { margin: 0; padding: 0; list-style: none; }
.news > li + li { border-top: 1px solid var(--line); }
.news-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 20px; grid-template-areas: "date body meta arrow";
  align-items: center; gap: 6px 16px; padding: 13px 12px; border-radius: 14px; color: inherit; text-decoration: none;
  transition: background-color var(--dur-1);
}
.news-row > .date-tile { grid-area: date; }
.news-row > .news-body { grid-area: body; }
.news-row > .news-meta { grid-area: meta; justify-content: flex-end; }
.news-row > .news-arrow { grid-area: arrow; }
.news-row:hover { background: var(--hover); }
.date-tile {                                     /* mini ticket stub: month band + day */
  display: grid; overflow: hidden; width: 52px; border-radius: 10px; text-align: center; line-height: 1;
  background: var(--surface-inset); border: 1px solid var(--line-2);
  transition: rotate var(--dur-3) var(--ease-spring);
}
.news-row:hover .date-tile { rotate: -5deg; }
.dt-m { padding: 4px 0 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--on-primary); background: var(--accent); text-transform: uppercase; }
.dt-d { padding: 5px 0 6px; font-size: 21px; font-weight: 600; color: var(--text-1); }
.news-body { display: grid; gap: 2px; min-width: 0; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.news-meta time { font-size: var(--fs-xs); color: var(--text-3); letter-spacing: .04em; }
.news-title { font-size: var(--fs-title); font-weight: 600; line-height: 1.55; text-wrap-style: pretty; }
.news-title:lang(ja) { text-wrap-style: auto; }   /* fix: auto-phrase + pretty breaks inside words */
.news-orig { font-size: 12.5px; line-height: 1.5; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-arrow { width: 18px; height: 18px; color: var(--text-3); transition: transform var(--dur-2) var(--ease-out), color var(--dur-1); }
.news-row:hover .news-arrow { transform: translateX(3px); color: var(--accent-2); }
.news-row:hover .news-title { color: var(--accent); }
@media (max-width: 719px) {
  .news-row { grid-template-columns: 46px minmax(0, 1fr) 16px; grid-template-areas: "date meta arrow" "date body arrow"; gap: 6px 12px; padding: 14px 8px; align-items: start; }
  .news-row > .news-meta { justify-content: flex-start; }
  .news-row > .news-arrow { align-self: center; }
  .date-tile { width: 46px; }
  .dt-d { font-size: 18px; }
  .news-title { font-size: 14.5px; }
}

/* ==== [timeline] Timeline — the comet's path ==== */
/* -- timeline -- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 28px; margin: 0; padding: 52px 0 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 15px; left: 0; right: -8px; height: 2px; border-radius: 2px; background: var(--grad-path); box-shadow: 0 0 12px rgb(var(--comet-tail) / .3); }
.timeline::after { content: ""; position: absolute; top: 16px; right: -14px; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--comet-head); box-shadow: 0 0 12px 4px rgba(255,241,196,.9), 0 0 36px 10px rgba(246,196,83,.45); }
.tl { position: relative; min-width: 0; --tl-c: var(--tl-c-1); }
.tl[data-step="2"] { --tl-c: var(--tl-c-2); }
.tl[data-step="3"] { --tl-c: var(--tl-c-3); }
.tl[data-step="4"] { --tl-c: var(--tl-c-4); }
.tl[data-step="5"] { --tl-c: var(--tl-c-5); }
.tl-node { position: absolute; top: -52px; left: -6px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--tl-c); background: radial-gradient(closest-side, var(--bg) 55%, transparent); }
.tl-node .i {                                   /* fix: the glow is a gradient behind the glyph, on its padding (the icon box is the same
                                                   size in the layout) — a drop-shadow filter per node re-rastered with every row */
  width: 20px; height: 20px; padding: 7px; margin: -7px; box-sizing: content-box; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tl-c) 34%, transparent), color-mix(in srgb, var(--tl-c) 16%, transparent) 50%, color-mix(in srgb, var(--tl-c) 5%, transparent) 78%, transparent);
}
.tl.is-key .tl-node .i {                         /* the key nodes' filled star / sparkle carried a stronger glow */
  width: 26px; height: 26px; padding: 8px; margin: -8px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tl-c) 44%, transparent), color-mix(in srgb, var(--tl-c) 20%, transparent) 50%, color-mix(in srgb, var(--tl-c) 6%, transparent) 80%, transparent);
}
.tl.is-now .tl-node { color: var(--on-gold); background: var(--grad-gold); box-shadow: 0 0 22px rgba(246,196,83,.55); }
.tl.is-now .tl-node::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--crown) center / contain no-repeat; mask: var(--crown) center / contain no-repeat; }
.tl.is-now .tl-node .i { display: none; }
.tl.is-now .tl-node::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--gold); animation: ping 2.4s var(--ease-out) infinite; }
.tl-date { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.tl-year { font-size: 38px; font-weight: 700; line-height: 1; letter-spacing: .01em; color: var(--tl-c); text-shadow: 0 0 24px color-mix(in srgb, var(--tl-c) 40%, transparent); }
.tl-md { font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--text-3); }
.tl-when { font-size: var(--fs-sm); font-weight: 600; letter-spacing: .04em; color: var(--text-2); }   /* timelineItem {date:'full'|'md'}: under a .tl-group year */
.tl-title { margin: 0 0 8px; font-size: 16px; line-height: 1.55; font-weight: 700; }
.tl-desc { margin: 0 0 12px; font-size: 13.5px; line-height: 1.75; color: var(--text-2); }
:root:lang(en) .tl-desc { line-height: 1.6; }
.tl-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-link {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px 0 10px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: none; border: 1px solid var(--line-2); background: var(--surface-2);
  transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.tl-link .i { width: 13px; height: 13px; }
.tl-link:hover { color: var(--on-primary); background: var(--accent); border-color: transparent; }
.timeline-v, .timeline.is-vertical { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 0 0 48px; }
.timeline-v::before, .timeline.is-vertical::before { top: 6px; bottom: 6px; left: 16px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, rgba(156,195,242,.08), rgba(156,195,242,.34) 30%, rgb(var(--comet-tail) / .7) 70%, var(--gold) 97%, var(--comet-head)); }
.timeline-v::after, .timeline.is-vertical::after { top: auto; bottom: -10px; right: auto; left: 11px; margin: 0; }
.timeline-v .tl, .timeline.is-vertical .tl { padding: 0 0 30px; }
.timeline-v .tl-node, .timeline.is-vertical .tl-node { top: -4px; left: -49px; }
.timeline-v .tl-year, .timeline.is-vertical .tl-year { font-size: 30px; }
.tl-group { position: sticky; top: calc(var(--header-h) + 8px); z-index: 2; margin: 0 0 14px -48px; padding: 6px 0 6px 48px; background: linear-gradient(90deg, var(--bg) 60%, transparent); font-size: 34px; font-weight: 700; color: var(--gold-text); }
@media (max-width: 900px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 0 0 48px; }
  .timeline::before { top: 6px; bottom: 6px; left: 16px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, rgba(156,195,242,.08), rgba(156,195,242,.34) 30%, rgb(var(--comet-tail) / .7) 70%, var(--gold) 97%, var(--comet-head)); }
  .timeline::after { top: auto; bottom: -10px; right: auto; left: 11px; margin: 0; }
  .tl { padding: 0 0 30px; }
  .tl-node { top: -4px; left: -49px; }
  .tl-year { font-size: 30px; }
}

/* ==== [stat] Stat tile, debut counter ==== */
/* -- stat -- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 156px), 1fr)); gap: 12px; }
.stat {
  position: relative; display: grid; align-content: start; gap: 6px; padding: 16px 18px 15px; border-radius: var(--r-md);
  background: var(--surface-inset); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), inset 0 -24px 34px -24px var(--stat-glow);
}
.stat-label { display: flex; align-items: center; gap: 7px; font-size: var(--fs-sm); color: var(--text-3); }
.stat-label .i { width: 16px; height: 16px; color: var(--accent); }
.stat-value {
  font-size: clamp(28px, 1.2vw + 20px, 38px); font-weight: 600; line-height: 1.05; letter-spacing: .01em;
  background: var(--grad-num); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-value small { font-size: .5em; font-weight: 600; margin-left: .12em; }
.stat-sub { font-size: var(--fs-xs); color: var(--text-3); }
.delta { font-weight: 600; font-variant-numeric: tabular-nums; }
.delta.is-up { color: var(--success); }
.delta.is-down { color: var(--warn); }
.stat-gold { border-color: var(--tag-gold-bd); box-shadow: inset 0 -24px 34px -24px var(--stat-glow-gold); }
.stat-gold .stat-label .i { color: var(--gold); }
.stat-gold .stat-value { background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; }
/* -- debut-counter -- */
.debut-counter {                                 /* "出道第 3,114 天 · 距 9 周年还有 174 天" */
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 18px 10px 14px; border-radius: var(--r-pill);
  border: 1px dashed var(--tag-gold-bd); background: var(--tag-gold-bg); font-size: var(--fs-md); font-weight: 600; color: var(--text-2);
}
.debut-counter .i { width: 22px; height: 22px; color: var(--gold); }
.debut-counter b { margin: 0 .15em; font-size: 22px; font-weight: 700; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.debut-counter .next { font-size: var(--fs-sm); color: var(--text-3); }
.debut-counter .next::before { content: "·"; margin-right: 12px; color: var(--text-3); }
@media (max-width: 719px) {
  .debut-counter { border-radius: var(--r-md); }
  .debut-counter .next { flex-basis: 100%; padding-left: 34px; }
  .debut-counter .next::before { display: none; }
}

/* ==== [member] Fan-club member card (stage prop) ==== */
/* -- member-card -- */
.member-card {
  position: relative; width: min(100%, 400px); aspect-ratio: 1.586; padding: 20px 22px; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; border-radius: 18px; color: var(--text-1);
  background: var(--card-prop);
  box-shadow: 0 0 0 1px rgba(246,196,83,.45) inset, 0 30px 60px -28px rgba(0,0,0,.9), 0 0 60px -20px rgba(59,111,217,.6);
  rotate: -2.5deg; transition: rotate var(--dur-3) var(--ease-spring);
}
.member-card:hover { rotate: -1deg; }
.member-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--plaid); opacity: .5; -webkit-mask: linear-gradient(115deg, transparent 40%, #000 75%); mask: linear-gradient(115deg, transparent 40%, #000 75%); }
.member-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 20%, rgba(156,195,242,.22) 38%, rgba(246,196,83,.22) 46%, transparent 60%); }
.mc-top, .mc-bottom { display: flex; align-items: center; justify-content: space-between; }
.mc-bottom { align-items: flex-end; }
.mc-brand { font-size: 10.5px; font-weight: 700; letter-spacing: .3em; color: var(--gold-200); }
.mc-crown { width: 28px; height: 28px; background: var(--gold); -webkit-mask: var(--crown) center / contain no-repeat; mask: var(--crown) center / contain no-repeat; filter: drop-shadow(0 0 8px rgba(246,196,83,.6)); }
.mc-name { font-size: clamp(34px, 1.6vw + 24px, 46px); font-weight: 900; letter-spacing: .1em; line-height: 1; background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 18px rgba(246,196,83,.25)); }
.mc-sub { margin-top: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .26em; color: var(--blue-200); }
.mc-avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: rgba(5,7,26,.4); box-shadow: 0 0 0 2px var(--gold); }
.mc-no { font-size: 12.5px; font-weight: 600; letter-spacing: .2em; color: var(--text-2); }
.fc-contents { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }

/* ==== [links] Link tiles ==== */
/* -- link-tile -- */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.link-tile {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; align-items: center; gap: 14px;
  min-height: 72px; padding: 12px 16px 12px 14px; border-radius: var(--r-md); color: inherit; text-decoration: none;
  background: var(--surface-panel); border: 1px solid var(--line);
  transition: border-color var(--dur-1), background-color var(--dur-1), transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2);
}
.link-tile:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--glow-blue); }
.lt-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--brand, var(--accent)); background: var(--surface-2); border: 1px solid var(--line); }
.lt-icon .i { width: 22px; height: 22px; }
.lt-body { display: grid; gap: 1px; min-width: 0; }
.lt-name { font-size: 15px; font-weight: 700; line-height: 1.4; }
.lt-handle { font-size: var(--fs-sm); color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-desc { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.5; }
.lt-ext { width: 16px; height: 16px; color: var(--text-3); }
.link-tile.is-official { border-color: var(--tag-gold-bd); }
.link-tile.is-official .lt-icon { border-color: var(--tag-gold-bd); }
.link-tile[data-brand="youtube"] { --brand: var(--brand-youtube); }
.link-tile[data-brand="bilibili"] { --brand: var(--brand-bilibili); }
.link-tile[data-brand="fanclub"], .link-tile[data-brand="shop"] { --brand: var(--gold); }
.link-tile[data-brand="spotify"] { --brand: var(--brand-spotify-ink); }
.link-tile[data-brand="line"] { --brand: var(--brand-line-ink); }

/* ==== [footer] Footer — ENCORE ==== */
/* -- footer -- */
.site-footer {                                  /* fix: no content-visibility — a skipped footer under the boot view made Chrome
                                                   restyle every running animation in every frame, even at idle */
  position: relative; z-index: var(--z-content); margin-top: var(--section-gap); padding: 72px 0 28px;
  background: linear-gradient(180deg, transparent, var(--bg-deep) 55%); border-top: 1px solid var(--line);
}
.footer-hem { position: absolute; top: 0; left: 0; right: 0; height: 10px; background: var(--plaid), var(--plaid-base); opacity: .8; box-shadow: 0 1px 0 var(--gold-300); }
.footer-horizon { position: absolute; top: 10px; left: 10%; right: 10%; height: 1px; background: var(--grad-horizon); box-shadow: 0 0 20px 1px rgb(var(--comet-tail) / .4); }
.footer-chibi { position: absolute; z-index: 2; right: max(var(--gutter), calc((100% - var(--maxw)) / 2)); top: -84px; width: 118px; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent 94%); mask-image: linear-gradient(180deg, #000 76%, transparent 94%); }
.footer-encore { margin-block: 40px -.2em; }      /* the curtain call — .poster-word between grid and disclaimer */
.footer-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr) minmax(0, .85fr) minmax(0, 1.2fr); gap: 40px; }   /* fix: room for the 2-column site list in ja/en */
.footer-about { margin: 18px 0 16px; max-width: 34em; font-size: 13.5px; color: var(--text-3); }
.footer-catch { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 15px; font-weight: 600; color: var(--text-1); }
.footer-catch-tr { font-size: 13px; font-weight: 500; color: var(--text-3); }
.footer-h { margin: 6px 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--text-1); }
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-col a { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-2); text-decoration: none; transition: color var(--dur-1); }
.footer-col a .i { width: 16px; height: 16px; color: var(--text-3); }
.footer-col a:hover { color: var(--text-1); }
.footer-col a:hover .i { color: var(--accent-2); }
.footer-updated { margin-top: 14px; font-size: var(--fs-xs); color: var(--text-3); letter-spacing: .04em; }
.footer-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-encore + .footer-bottom { margin-top: 0; }
.disclaimer { font-size: 12.5px; color: var(--text-3); }
.disclaimer b { color: var(--text-2); font-weight: 600; }
.to-top { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); text-decoration: none; }
.to-top .i { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease-out); }
.to-top:hover { color: var(--text-1); }
.to-top:hover .i { transform: translateY(-3px); }
@media (max-width: 1279px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-col-wide { grid-column: 1 / -1; } }
@media (max-width: 719px) {
  .site-footer { padding-top: 60px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer-col-wide { grid-column: 1 / -1; }
  .footer-grid > nav.footer-col { grid-column: 1 / -1; }
  .footer-grid > nav.footer-col ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-chibi { width: 92px; top: -64px; }
}

/* ==== [overlays] Modal (YouTube player), toast ==== */
/* -- modal -- */
.modal {                                         /* fix: never wider than the 16:9 player that still fits the height (landscape phones, short windows) */
  width: min(1040px, 100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right), (100dvh - 100px) * 16 / 9);
  max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: var(--r-xl);
  color: var(--text-1); background: var(--surface-overlay); box-shadow: var(--shadow-pop), 0 0 0 1px var(--line-2); overflow: hidden;
}
.modal::backdrop { background: var(--backdrop); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in var(--dur-3) var(--ease-out); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 22px; }
.modal-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.modal-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 719px) { .modal { width: min(100%, (100dvh - 92px) * 16 / 9); border-radius: var(--r-lg); } .modal-head { padding: 10px 10px 10px 16px; } .modal-head .btn { display: none; } }
/* -- toast -- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: var(--z-toast); translate: -50% 0;
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(92vw, 520px); padding: 12px 18px 12px 14px; border-radius: var(--r-pill);
  font-size: var(--fs-md); font-weight: 600; color: var(--text-1); background: var(--surface-overlay);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-pop), 0 -1px 0 var(--gold) inset;
  animation: toast-in var(--dur-3) var(--ease-spring);
}
.toast .i { width: 18px; height: 18px; color: var(--gold); }
.toast.is-leaving { animation: toast-out var(--dur-2) var(--ease-out) forwards; }

/* ==== [feedback] Skeleton, empty state ==== */
/* -- skeleton -- */
.skel { position: relative; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-2); }
.skel::after {                                   /* fix: the shimmer slides on the compositor (a background-position loop repainted every frame) */
  content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, var(--hover) 50%, transparent 70%);
  animation: shimmer 1.6s linear infinite;
}
.skel-thumb { aspect-ratio: 16 / 9; border-radius: var(--r-md); }
.skel-line { height: .9em; width: var(--w, 100%); margin: .45em 0; border-radius: 4px; }
.skel-circle { width: var(--s, 40px); aspect-ratio: 1; border-radius: 50%; }
/* -- empty -- */
.empty { display: grid; justify-items: center; gap: 10px; padding: 48px 24px; text-align: center; color: var(--text-3); font-size: var(--fs-md); }
.empty .i { width: 30px; height: 30px; color: var(--accent); animation: float 4s var(--ease-in-out) infinite alternate; }
.empty-title { font-size: var(--fs-base); font-weight: 700; color: var(--text-2); }

/* ==== [forced] Forced colours (Windows High Contrast) ==== */
/* -- forced-colors -- */
/* fix: forced colours drop backgrounds, box-shadows and masked glyphs, so the current tab, pressed chips and filters, the
   active 中/日/EN and theme buttons, the drawer's current page and the nav crown looked like their neighbours.
   Selected → a Highlight outline (the focus ring takes over while it has focus); the current nav link is underlined. */
@media (forced-colors: active) {
  :is(.tabs a[aria-current="page"], .chip[aria-pressed="true"], .chip:has(input:checked), .seg button[aria-pressed="true"],
      .lang-switch button[aria-pressed="true"], .drawer-lang button[aria-pressed="true"], .drawer-nav a[aria-current="page"]):not(:focus-visible):not(:has(input:focus-visible)) {
    outline: 2px solid Highlight; outline-offset: -2px;
  }
  .main-nav a[aria-current="page"] { text-decoration: underline 2px; text-underline-offset: 5px; }
}

/* ==== [shell] App shell — boot state, i18n guard, header search, drawer & footer extras, small shared bits ==== */
/* -- shell -- */
#app { min-height: calc(100vh - var(--header-h)); }
/* the footer sits right under the boot view: core.js shows it (.sui-foot) in a frame of its own after the boot view's
   first paint, or with the first real render — the start-up task styles and lays out only the header and the boot comet */
html.js body:not(.sui-foot) .site-footer { display: none; }
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 9px; pointer-events: none; visibility: hidden; }   /* core.js: header .is-scrolled */
.boot { display: grid; place-items: center; min-height: 56vh; color: var(--accent); }
.boot .i { width: 34px; height: 34px; opacity: .85; animation: float 4s var(--ease-in-out) infinite alternate; }
html:not(.js) .boot { display: none; }
/* the static shell is authored in zh: on ja/en pages hide its labels until core.js has translated them (failsafe 4 s) */
html.js:not(.sui-ready):not([data-lang="zh"]) :is([data-i18n], [data-i18n-html]) { visibility: hidden; animation: sui-show 0s 4s forwards; }
@keyframes sui-show { to { visibility: visible; } }
.search-btn .i { width: 19px; height: 19px; }
@media (max-width: 719px) { .header-tools > .search-btn { width: 36px; height: 36px; border-radius: 10px; } }
@media (max-width: 479px) { .header-tools > .search-btn { display: none; } }   /* phones: search sits in the drawer head (§4.1 phone header: pill · globe · menu) */
.lang-pop { z-index: var(--z-popover); }            /* only matters for the no-Popover-API fallback */
.drawer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.drawer-links a { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-md); color: var(--text-2); text-decoration: none; }
.drawer-links a:hover { color: var(--text-1); }
.drawer-links .i { width: 15px; height: 15px; color: var(--text-3); }
.drawer-links a[aria-current="page"], .footer-col a[aria-current="page"] { color: var(--text-1); font-weight: 700; }   /* "you are here" in the drawer extras and the footer site list */
.drawer-links a[aria-current="page"] .i { color: var(--gold); }
.footer-col ul.footer-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.footer-col ul.footer-list-2 > li:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* a lone last item ("このサイトについて") gets the full row */
.disclaimer a { color: var(--text-2); text-decoration-color: var(--line-strong); }
.disclaimer a:hover { color: var(--text-1); }
.key {                                           /* inline keyboard key (search palette hints) */
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px;
  border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--surface-2);
  font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .02em; color: var(--text-2); white-space: nowrap;
}
:where(.key) { --f-zh: var(--font-latin), var(--font-zh); --f-ja: var(--font-latin), var(--font-ja); --f-en: var(--font-latin), var(--font-ja); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.toast.is-error { box-shadow: var(--shadow-pop), 0 -1px 0 var(--danger) inset; }
.toast.is-error .i { color: var(--danger); }
.cd-msg { font-size: clamp(20px, 1vw + 15px, 26px); font-weight: 800; line-height: 1.2; letter-spacing: .06em; color: var(--gold-soft); }   /* 开演中 · Now on stage · ENDED */
.cd.is-days .cd-num { min-width: 96px; }
.up-empty { padding: 10px 0 2px; font-size: var(--fs-sm); color: var(--text-3); }
.sources-k { font-weight: 600; }
.tl .sources { margin-top: 10px; }
.tr-note { display: flex; align-items: center; gap: 4px; margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--text-3); }
.more-foot { display: flex; justify-content: center; margin-top: var(--s-5); }
.is-flash:not(.trow) { animation: flash-ring 1.6s var(--ease-out); }
@keyframes flash-ring { from { box-shadow: 0 0 0 2px var(--gold), 0 0 0 0 rgba(246,196,83,.5); } to { box-shadow: 0 0 0 2px transparent, 0 0 0 16px rgba(246,196,83,0); } }
.ticket-wrap.is-flash { animation-name: flash-ring-prop; }   /* the ring over the ticket's own (box-)shadow, which flash-ring would replace */
@keyframes flash-ring-prop { from { box-shadow: 0 0 0 2px var(--gold), 0 0 0 0 rgba(246,196,83,.5), var(--prop-shadow); } to { box-shadow: 0 0 0 2px transparent, 0 0 0 16px rgba(246,196,83,0), var(--prop-shadow); } }
.moon-art { position: relative; flex: none; width: var(--art, 220px); aspect-ratio: 1; isolation: isolate; }   /* the chibi inside a moon halo (placeholder · 404) */
.moon-art::before { content: ""; position: absolute; z-index: -1; inset: 6% 6% 12%; border-radius: 50%; background: var(--moon); box-shadow: var(--moon-glow); }
.moon-art img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: var(--chibi-shadow); animation: float-sm 7s var(--ease-in-out) infinite alternate; }

/* ==== [palette] Global search palette — header button · Ctrl/⌘K · "/" ==== */
/* -- palette -- */
.palette {
  width: min(700px, 100% - 32px); max-width: none; max-height: min(680px, 100dvh - 12vh - 24px); margin: 10vh auto auto; padding: 0;
  border: 0; border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; color: var(--text-1);
  background: radial-gradient(80% 50% at 100% 0%, rgba(59,111,217,.2), transparent 70%), var(--surface-overlay);
  box-shadow: var(--shadow-pop), 0 0 0 1px var(--line-2);
}
.palette:not([open]) { display: none; }          /* author display beats the UA dialog:not([open]) rule */
.palette::backdrop { background: var(--backdrop); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.palette[open] { animation: modal-in var(--dur-3) var(--ease-out); }
.pal-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); }
.pal-head > .i { width: 22px; height: 22px; color: var(--accent-2); }
.pal-input { flex: 1; min-width: 0; height: 48px; padding: 0; border: 0; background: transparent; color: var(--text-1); font-size: 18px; font-weight: 500; outline: none; text-overflow: ellipsis; }
.pal-input::placeholder { color: var(--text-3); opacity: 1; }
.pal-input::-webkit-search-cancel-button { display: none; }
.pal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 10px 14px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.pal-group-h { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 12px 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; color: var(--text-3); }
.pal-group-h .i { width: 14px; height: 14px; color: var(--gold); }
.pal-item {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 54px; padding: 7px 12px;
  border-radius: 14px; color: inherit; text-decoration: none; cursor: pointer; transition: background-color var(--dur-1);
}
.pal-item.has-thumb { grid-template-columns: 64px minmax(0, 1fr) auto; }
.pal-item:hover { background: var(--hover); }
.pal-item[aria-selected="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (forced-colors: active) { .pal-item[aria-selected="true"] { outline: 2px solid Highlight; outline-offset: -2px; } }   /* the fill is dropped there */
.pal-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--accent); background: var(--surface-2); border: 1px solid var(--line); }
.pal-ico .i { width: 19px; height: 19px; }
.pal-ico.is-gold { color: var(--gold); }
.pal-ico.is-cyan { color: var(--accent-2); }
.pal-thumb { position: relative; width: 64px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface-media); box-shadow: 0 0 0 1px var(--line); }
.pal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pal-main { display: grid; gap: 1px; min-width: 0; }
.pal-title { font-size: var(--fs-title); font-weight: 600; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-title mark { background: none; color: var(--accent-2); }
.pal-sub { font-size: 12.5px; line-height: 1.45; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-go { display: inline-flex; align-items: center; color: var(--text-3); opacity: 0; transition: opacity var(--dur-1); }
.pal-go .i { width: 16px; height: 16px; }
.pal-item:hover .pal-go, .pal-item[aria-selected="true"] .pal-go { opacity: 1; color: var(--accent-2); }
.pal-note { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 8px 12px; font-size: var(--fs-sm); color: var(--text-3); }
.pal-note .skel { width: 64px; height: 36px; border-radius: 8px; }
.pal-body .empty { padding: 40px 16px 32px; }
.pal-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 10px 20px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-3); }
.pal-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.pal-foot .pal-tip { margin-left: auto; }
@media (max-width: 719px) {
  .palette { width: 100%; max-height: calc(100dvh - 12px); margin: 0 auto auto; border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .pal-head { gap: 10px; padding: 8px 8px 8px 16px; }
  .pal-input { height: 44px; font-size: 16px; }
  .pal-body { padding-inline: 6px; }
  .pal-item { gap: 10px; padding: 7px 8px; }
  .pal-foot { display: none; }
}

/* ==== [fresh] Data-freshness panel — about · tracker ==== */
/* -- fresh -- */
.fresh { margin: 0; padding: 4px var(--card-pad); }
.fresh-row { display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr); align-items: center; gap: 4px 18px; padding: 13px 0; }
.fresh-row + .fresh-row { border-top: 1px dashed var(--line); }
.fresh-row dt { display: inline-flex; align-items: center; gap: 9px; font-size: var(--fs-md); font-weight: 600; color: var(--text-2); }
.fresh-row dt .i { width: 17px; height: 17px; color: var(--accent); }
.fresh-row dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; font-size: var(--fs-md); color: var(--text-1); }
.fresh-rel { font-size: var(--fs-sm); color: var(--text-3); }
.fresh-state { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-size: var(--fs-xs); font-weight: 700; color: var(--text-3); white-space: nowrap; align-self: center; }
.fresh-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.fresh-state.is-ok { color: var(--success); }
.fresh-state.is-warn { color: var(--warn); }
.fresh-state.is-err { color: var(--danger); }
.fresh-skel { color: transparent; border-radius: 6px; user-select: none; }   /* core.js: the curated row while its files are checked */
.fresh-skel::after { content: none; }            /* static: a looping shimmer in a lazily rendered card costs a style pass per frame */
.fresh-errors { display: grid; gap: 4px; margin: 0 0 12px; padding: 10px 14px; border-radius: var(--r-sm); list-style: none; background: var(--surface-inset); font-size: var(--fs-sm); color: var(--text-2); }
@media (max-width: 719px) { .fresh-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ==== [soon] "Coming soon" placeholder (until a page ships) ==== */
/* -- soon -- */
.soon { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 52px); }
.soon .moon-art { --art: clamp(150px, 17vw, 230px); }
.soon-body { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.soon-body .eyebrow { margin: 0; }
.soon-title { font-size: var(--fs-xl); font-weight: 800; line-height: 1.35; }
:root:lang(en) .soon-title { font-weight: 700; }
.soon-text { max-width: 38em; color: var(--text-2); }
.soon-body .facts { margin: 2px 0 4px; }
@media (max-width: 719px) {
  .soon { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .soon-body { justify-items: center; }
  .soon-body .facts, .soon-body .cluster { justify-content: center; }
}

/* ==== [nf] 404 — "this star isn't on the map" ==== */
/* -- not-found -- */
.nf { display: grid; justify-items: center; padding: clamp(28px, 6vw, 72px) 0 var(--s-4); text-align: center; }
.nf .moon-art { --art: min(260px, 62vw); }
.nf .eyebrow { justify-content: center; margin: 18px 0 0; }
.nf .eyebrow::before { content: ""; width: 44px; height: 1px; background: linear-gradient(270deg, currentColor, transparent); opacity: .6; }
.nf .empty { padding: 10px 24px 26px; }
.nf .empty-title { font-size: var(--fs-xl); color: var(--text-1); }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ==== [motion] Reveal, keyframes, reduced motion ==== */
/* -- motion -- */
/* core.js arms a block after the first paint (it is below the fold then): hiding it must not animate, so the
   transition belongs to .is-in only */
.reveal-armed { opacity: 0; transform: translateY(24px); }
.reveal-armed.is-in { opacity: 1; transform: none; transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@keyframes float { from { transform: translateY(4px); } to { transform: translateY(-10px); } }
@keyframes float-sm { from { transform: translateY(2px); } to { transform: translateY(-8px); } }
@keyframes wobble { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(3deg); } }
@keyframes twinkle-hero { 0%, 100% { transform: scale(.5) rotate(0deg); opacity: .35; } 50% { transform: scale(1) rotate(20deg); opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
@keyframes flash { 0% { background-color: rgba(246,196,83,.28); } 100% { background-color: transparent; } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }
/* core.js: the hero, the marquee, [data-pause-offscreen] out of view and the sky while the tab is hidden; the ones in
   view (.scroll-held) while the page scrolls */
.paused-offscreen, .paused-offscreen *, .paused-offscreen::before, .paused-offscreen::after,
.paused-offscreen *::before, .paused-offscreen *::after,
.scroll-held, .scroll-held *, .scroll-held::before, .scroll-held::after,
.scroll-held *::before, .scroll-held *::after { animation-play-state: paused !important; }
/* core.js gives below-the-fold .section blocks .cv-auto (and pages their long-list items): skipped until near the
   viewport; --cv-h is the placeholder height (core remembers the real one per view). overflow-clip-margin keeps
   shadows and glows that reach past the block from being cut by its paint containment. */
.cv-auto { content-visibility: auto; contain-intrinsic-size: auto var(--cv-h, 800px); overflow-clip-margin: 120px; }
.cv-auto.cv-shown { content-visibility: visible; }   /* core.js: rendered for real before SUI.scrollTo / an anchor jump to (or past) it */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal-armed { opacity: 1; transform: none; }
  .twinkle, .comet, .hv-spark::before { animation: none !important; }
  .comet { display: none; }
  .hv-chibi, .bubble, .penlights::before, .penlights::after, .onair-track, .empty .i, .boot .i, .moon-art img { animation: none !important; }
  .skel::after { animation: none; display: none; }
}

/* ==== [print] Print ==== */
/* -- print -- */
@media print {
  .sky, .penlights, .site-header, .drawer, .modal, .palette, .toast, .footer-chibi, .boot { display: none !important; }
  .reveal-armed { opacity: 1 !important; transform: none !important; }
  .cv-auto { content-visibility: visible; }
  body { background: #fff; color: #000; }
}
