/* Design system v2 · components (Sazanami Scrapbook).
   Surfaces: .paper (note/card) · .stitch (featured only) · .tape · .sticker
   Icons are ILLUSTRATED, FILLED SVG stickers from /assets/svg/v2-sprite.svg (#pg-penguin, #star, #drop, #ripple,
   #shell) — never flat or hollow outline shapes. --shell-mask is only used to clip photos, not as an icon. */

@layer components {
  :root {
    --shell-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-36 -40 72 82'%3E%3Cpath d='M-6 33 L-30 4 A12 12 0 0 1 -31 -18 A11 11 0 0 1 -15 -32 A10 10 0 0 1 3 -35 A10 10 0 0 1 19 -29 A11 11 0 0 1 31 -13 L6 33 Z'/%3E%3Cpath d='M-12 31 L12 31 L9 41 L-9 41 Z'/%3E%3C/svg%3E");
  }

  /* ================================================================ surfaces */
  .paper {
    position: relative;
    /* no backdrop-filter: blurring the moving artwork behind every card on every scroll frame was the most expensive
       effect on the page; a slightly denser fill reads the same (the blur only ever showed through 10%) */
    background: rgb(var(--paper-rgb) / 0.94);
    border: 1px solid rgb(255 255 255 / 0.75);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-paper);
    padding: var(--s-5);
  }
  .paper--panel { border-radius: var(--r-panel); padding: var(--s-6); }

  /* Stitch: an inset dashed line — used ONLY for featured items (≈4–6 per screen) */
  .stitch::before {
    content: ''; position: absolute; inset: 7px; pointer-events: none;
    border: 2px dashed color-mix(in srgb, var(--sky-500) 55%, transparent);
    border-radius: calc(var(--r-card) - 6px);
  }
  .paper--panel.stitch::before { border-radius: calc(var(--r-panel) - 6px); }

  /* Washi tape: translucent strip in the section accent, torn edges */
  .tape {
    --tape-rot: -6deg;
    position: absolute; top: -12px; left: 22px; width: 84px; height: 24px; z-index: 2; pointer-events: none;
    background:
      repeating-linear-gradient(90deg, rgb(255 255 255 / 0.28) 0 6px, transparent 6px 12px),
      color-mix(in srgb, var(--accent) 82%, white);
    opacity: 0.92;
    rotate: var(--tape-rot);
    clip-path: polygon(0 12%, 4% 0, 9% 10%, 14% 0, 20% 9%, 80% 9%, 86% 0, 91% 10%, 96% 0, 100% 12%, 100% 88%, 96% 100%, 91% 90%, 86% 100%, 80% 91%, 20% 91%, 14% 100%, 9% 90%, 4% 100%, 0 88%);
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
  }
  .tape--right { left: auto; right: 22px; --tape-rot: 7deg; }
  .tape--center { left: 50%; translate: -50% 0; --tape-rot: -2deg; }

  /* Die-cut sticker heading */
  .sticker {
    --sticker-rot: -2deg;
    display: inline-flex; align-items: center; gap: 0.35em;
    padding: 0.28em 0.8em 0.32em;
    font-size: var(--fs-h2); font-weight: 700; line-height: 1.1; letter-spacing: 0.01em;
    color: var(--white);
    background: linear-gradient(180deg, var(--sky-500), var(--sky-600));
    border-radius: 0.55em;
    box-shadow: 0 0 0 5px var(--white), var(--shadow-sticker);
    rotate: var(--sticker-rot);
    text-shadow: 0 2px 0 rgb(22 63 107 / 0.35);
  }
  .sticker--sm { font-size: var(--fs-title); box-shadow: 0 0 0 4px var(--white), var(--shadow-sticker); }
  .sticker--gold { background: linear-gradient(180deg, var(--gold-600), var(--gold-700)); text-shadow: 0 2px 0 rgb(110 60 0 / 0.35); }
  .sticker .pg { width: 0.95em; height: 0.95em; margin-left: -0.15em; }

  /* ================================================================ buttons, chips */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    min-height: 44px; padding: 0 var(--s-5);
    border: 0; border-radius: var(--r-pill);
    font-weight: 600; font-size: var(--fs-body); text-decoration: none;
    color: var(--white); background: var(--sky-700);
    box-shadow: var(--shadow-sticker);
    transition: transform var(--t-tap) var(--ease-out), box-shadow var(--t-pop) var(--ease-out), background-color var(--t-pop);
  }
  .btn:hover { color: var(--white); background: var(--sky-900); transform: translateY(-2px); }
  .btn:active { transform: translateY(0) scale(0.96); }
  .btn--ghost { color: var(--sky-700); background: rgb(var(--paper-rgb) / 0.92); box-shadow: inset 0 0 0 2px var(--sky-200), var(--shadow-paper); }
  .btn--ghost:hover { color: var(--sky-900); background: var(--white); }
  .btn--sm { min-height: 36px; padding: 0 var(--s-4); font-size: var(--fs-meta); }
  .btn svg { width: 1.1em; height: 1.1em; }

  .chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
  .chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px;
    border-radius: var(--r-pill); font-size: var(--fs-meta); font-weight: 600; text-decoration: none;
    color: var(--sky-700); background: var(--sky-50); box-shadow: inset 0 0 0 1.5px var(--sky-200);
    transition: transform var(--t-tap) var(--ease-out), background-color var(--t-pop), color var(--t-pop);
  }
  .chip:hover { color: var(--white); background: var(--sky-700); box-shadow: none; }
  .chip:active { transform: scale(0.95); }
  .chip svg { width: 14px; height: 14px; }

  .date-chip {
    display: inline-block; padding: 2px 10px; border-radius: var(--r-pill);
    font-size: var(--fs-meta); font-weight: 700; letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
    color: var(--sky-700); background: var(--sky-50);
  }

  /* ================================================================ JP/EN sliding pill */
  .lang-pill {
    position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    padding: 4px; border-radius: var(--r-pill);
    background: rgb(var(--paper-rgb) / 0.92); box-shadow: inset 0 0 0 2px var(--sky-200), var(--shadow-paper);
  }
  .lang-pill::before {
    content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
    border-radius: var(--r-pill); background: var(--sky-700); box-shadow: var(--shadow-sticker);
    transition: translate var(--t-move) var(--ease-pop);
  }
  .lang-pill[data-active='en']::before { translate: 100% 0; }
  .lang-pill button {
    position: relative; z-index: 1; min-width: 46px; min-height: 34px; border: 0; background: none;
    font-weight: 700; font-size: 14px; color: var(--sky-700); border-radius: var(--r-pill);
    transition: color var(--t-pop);
  }
  .lang-pill button[aria-pressed='true'] { color: var(--white); }

  /* ================================================================ motion toggle */
  .motion-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 10px;
    border: 0; border-radius: var(--r-pill); font-size: var(--fs-meta); font-weight: 700;
    color: var(--sky-700); background: rgb(var(--paper-rgb) / 0.92); box-shadow: inset 0 0 0 2px var(--sky-200);
  }
  .motion-toggle .pg { width: 22px; height: 22px; transition: rotate var(--t-move) var(--ease-pop), filter var(--t-pop); }
  .motion-toggle[aria-pressed='true'] .pg { rotate: 45deg; }
  .motion-toggle[aria-pressed='false'] .pg { filter: grayscale(1) opacity(0.6); }

  /* ================================================================ next-stream ticket */
  .ticket {
    display: grid; grid-template-columns: auto 1fr; align-items: stretch; padding: 0; overflow: visible;
    -webkit-mask: radial-gradient(circle 11px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle 11px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
    mask: radial-gradient(circle 11px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
          radial-gradient(circle 11px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
  }
  .ticket__stub {
    display: grid; place-items: center; padding: var(--s-4) var(--s-3) var(--s-4) var(--s-4);
    border-right: 2px dashed color-mix(in srgb, var(--sky-500) 45%, transparent);
  }
  .ticket__stub span {
    writing-mode: vertical-rl; rotate: 180deg; font-size: 13px; font-weight: 700; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--gold-700);
  }
  .ticket__body { padding: var(--s-4) var(--s-5); display: grid; gap: var(--s-2); }
  .ticket__label { font-size: var(--fs-meta); font-weight: 600; color: var(--ink-soft); }
  .ticket__live {
    display: none; align-items: center; gap: 6px; justify-self: start; padding: 2px 10px 2px 8px; border-radius: var(--r-pill);
    font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--white); background: var(--gold-700);
  }
  .ticket__live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--white); }
  .ticket.is-live .ticket__live { display: inline-flex; }
  .ticket.is-live .flip { display: none; }

  .flip { display: flex; align-items: flex-end; gap: var(--s-2); }
  .flip__unit { display: grid; justify-items: center; gap: 2px; }
  .flip__num {
    position: relative; display: block; min-width: 2.1ch; padding: 4px 6px 5px; border-radius: 10px;
    font-size: clamp(24px, 1rem + 1.2vw, 34px); font-weight: 700; line-height: 1; text-align: center;
    font-variant-numeric: tabular-nums; color: var(--white);
    background: linear-gradient(180deg, var(--sky-600) 0 50%, var(--sky-700) 50%);
    box-shadow: var(--shadow-sticker); perspective: 300px;
  }
  .flip__num::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgb(0 0 0 / 0.18); }
  .flip__unit small { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
  .flip__sep { padding-bottom: 20px; font-weight: 700; color: var(--sky-500); }

  /* ================================================================ polaroid (latest video) */
  .polaroid {
    --polaroid-rot: 1.5deg;
    position: relative; margin: 0; padding: 10px 10px 0; background: var(--white);
    border-radius: 6px; box-shadow: var(--shadow-lift); rotate: var(--polaroid-rot);
    transition: rotate var(--t-move) var(--ease-pop), translate var(--t-move) var(--ease-pop), box-shadow var(--t-move);
  }
  .polaroid:hover { rotate: 0deg; translate: 0 -4px; }
  .polaroid__photo {
    position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden;
    border-radius: 3px; background: var(--sky-100) center / cover no-repeat;
  }
  .polaroid__photo img { width: 100%; height: 100%; object-fit: cover; }
  .polaroid__photo::after { /* shine sweep on hover */
    content: ''; position: absolute; inset: -20% -60%; pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / 0.55) 50%, transparent 60%);
    translate: -70% 0; transition: translate 0s;
  }
  .polaroid:hover .polaroid__photo::after { translate: 70% 0; transition: translate 0.9s var(--ease-out); }
  .play {
    position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; translate: -50% -50%; border-radius: 50%;
    background: var(--white); box-shadow: var(--shadow-lift);
    transition: scale var(--t-pop) var(--ease-pop);
  }
  .play::after {
    content: ''; position: absolute; left: 54%; top: 50%; translate: -50% -50%;
    border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--sky-700);
  }
  .polaroid:hover .play { scale: 1.12; }
  .polaroid figcaption { padding: 10px 6px 14px; font-size: var(--fs-body); font-weight: 600; line-height: 1.35; color: var(--ink); }
  .ribbon {
    position: absolute; top: 18px; left: -8px; z-index: 2; padding: 3px 12px 3px 14px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white);
    background: var(--gold-700); border-radius: 0 6px 6px 0; box-shadow: var(--shadow-sticker);
  }
  .ribbon::before { /* folded corner */
    content: ''; position: absolute; left: 0; top: 100%;
    border-style: solid; border-width: 0 8px 6px 0; border-color: transparent var(--gold-700) transparent transparent; filter: brightness(0.7);
  }

  /* ================================================================ news note */
  .note { display: grid; align-content: start; gap: var(--s-2); padding-top: var(--s-5); }
  .note__title { font-size: var(--fs-title); font-weight: 600; line-height: 1.35; color: var(--ink); }
  .note__text { color: var(--ink-soft); }
  .note .chips { margin-top: var(--s-1); }
  .pg.pin { position: absolute; top: -15px; left: 16px; width: 34px; height: 34px; rotate: -16deg; z-index: 2; }
  .stamp {
    position: absolute; top: 12px; right: 14px; padding: 2px 8px; rotate: 8deg; border-radius: 6px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--gold-700);
    box-shadow: inset 0 0 0 2px var(--gold-500);
  }

  /* ================================================================ film strip (other videos) */
  .film {
    display: flex; gap: var(--s-3); padding: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
    background: #1d2a3d; border-radius: 10px;
    background-image:
      radial-gradient(circle 3px at 8px 6px, var(--sky-100) 97%, transparent),
      radial-gradient(circle 3px at 8px calc(100% - 6px), var(--sky-100) 97%, transparent);
    background-size: 16px 100%; background-repeat: repeat-x;
  }
  .film__frame {
    flex: 0 0 min(180px, 60%); scroll-snap-align: start; padding: 0; border: 0; border-radius: 4px; overflow: hidden;
    background: #000; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color var(--t-pop), translate var(--t-pop) var(--ease-pop);
  }
  .film__frame img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; opacity: 0.85; transition: opacity var(--t-pop); }
  .film__frame:hover { translate: 0 -2px; }
  .film__frame:hover img, .film__frame[aria-current='true'] img { opacity: 1; }
  .film__frame[aria-current='true'] { outline-color: var(--sky-300); }

  /* ================================================================ profile card */
  .profile { padding: 0; overflow: hidden; }
  .profile__head {
    display: flex; align-items: center; gap: var(--s-4); padding: var(--s-5) var(--s-5) var(--s-4);
    background: color-mix(in srgb, var(--accent) 55%, var(--paper));
  }
  .profile__avatar {
    width: 84px; height: 84px; flex: none; object-fit: cover; border-radius: 50%;
    box-shadow: 0 0 0 4px var(--white), var(--shadow-sticker);
  }
  .profile__name { font-size: var(--fs-h3); color: var(--sky-900); }
  .profile__name span { display: block; font-size: max(13px, 0.6em); color: var(--sky-700); }
  .profile__role { font-size: var(--fs-meta); font-weight: 600; color: var(--ink-soft); }
  .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2px var(--s-5); padding: var(--s-4) var(--s-5) var(--s-5); margin: 0; }
  .facts div { padding: var(--s-2) 0; border-bottom: 1px dashed var(--sky-100); }
  .facts dt { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky-700); }
  .facts dt:lang(ja) { letter-spacing: 0.02em; }
  .facts dd { margin: 2px 0 0; font-weight: 500; }

  /* ================================================================ release sleeve */
  .sleeve { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: var(--s-4); align-items: start; }
  .sleeve__art { position: relative; width: 112px; aspect-ratio: 1; }
  .sleeve__cover, .sleeve__art img {
    position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow-lift);
  }
  .sleeve__disc {
    position: absolute; inset: 6% 0 6% 12%; border-radius: 50%; z-index: 0;
    background: radial-gradient(circle, var(--sky-300) 0 12%, #18202e 13% 15%, #232d3d 16% 100%);
    background-image: radial-gradient(circle, var(--sky-300) 0 12%, #18202e 13% 15%, transparent 16%),
                      repeating-radial-gradient(circle, #232d3d 0 2px, #2d3a4d 3px 4px);
    transition: translate var(--t-glide) var(--ease-pop), rotate var(--t-glide) var(--ease-out);
  }
  .sleeve:hover .sleeve__disc { translate: 38% 0; rotate: 120deg; }
  .sleeve__cover { /* designed placeholder when there is no YouTube thumbnail */
    display: grid; align-content: space-between; padding: 10px; overflow: hidden;
    background:
      radial-gradient(circle at 80% 18%, rgb(255 255 255 / 0.5) 0 12%, transparent 13%),
      linear-gradient(145deg, color-mix(in srgb, var(--accent) 80%, white), color-mix(in srgb, var(--accent) 70%, var(--sky-300)));
    color: var(--ink);
  }
  .sleeve__cover .pg { position: absolute; right: -14%; bottom: -14%; width: 74%; height: auto; aspect-ratio: 1; opacity: 0.9; }
  .sleeve__cover b { position: relative; z-index: 1; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky-900); }
  .sleeve__cover span { position: relative; z-index: 1; font-size: 15px; font-weight: 700; line-height: 1.2; color: var(--sky-900); }
  .sleeve__meta { display: grid; gap: 4px; }
  .sleeve__kind { font-size: var(--fs-meta); font-weight: 600; color: var(--ink-soft); }
  .sleeve__title { font-size: var(--fs-title); font-weight: 700; line-height: 1.3; color: var(--ink); }
  .sleeve__note { font-size: var(--fs-meta); color: var(--ink-soft); }

  /* "Coming soon" card */
  .soon { display: grid; gap: var(--s-2); }
  .soon__label { justify-self: start; }
  .soon__title { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; }
  .soon__count { font-size: var(--fs-lead); font-weight: 700; color: var(--gold-700); font-variant-numeric: tabular-nums; }

  /* ================================================================ achievements timeline */
  .timeline { list-style: none; position: relative; display: grid; gap: var(--s-3); padding-left: 28px; }
  .timeline::before {
    content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px;
    border-left: 2px dashed color-mix(in srgb, var(--sky-500) 60%, transparent);
  }
  .timeline__year {
    position: relative; justify-self: start; margin-left: -28px; padding: 2px 12px; border-radius: var(--r-pill);
    font-size: var(--fs-meta); font-weight: 700; color: var(--white); background: var(--sky-700); box-shadow: 0 0 0 3px var(--white);
  }
  .timeline__item { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: var(--s-3); }
  .timeline__item > .pg { position: absolute; left: -29px; top: 2px; width: 20px; height: 20px; }
  .timeline__item time { font-size: var(--fs-meta); font-weight: 700; color: var(--sky-700); font-variant-numeric: tabular-nums; }

  /* ================================================================ gallery tile */
  .tile {
    position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden;
    border-radius: 14px; background: var(--sky-100); box-shadow: 0 0 0 4px var(--white), var(--shadow-paper);
    transition: translate var(--t-move) var(--ease-pop), box-shadow var(--t-move);
  }
  .tile img { width: 100%; height: auto; transition: scale var(--t-glide) var(--ease-out); }
  .tile__credit {
    position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 4px 10px; border-radius: var(--r-pill);
    font-size: 13px; font-weight: 600; text-align: left; color: var(--ink);
    background: rgb(var(--paper-rgb) / 0.92); translate: 0 calc(100% + 12px); transition: translate var(--t-move) var(--ease-pop);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .tile:hover, .tile:focus-visible { translate: 0 -4px; box-shadow: 0 0 0 4px var(--white), var(--shadow-lift); }
  .tile:hover img { scale: 1.04; }
  .tile:hover .tile__credit, .tile:focus-visible .tile__credit { translate: 0 0; }
  @media (hover: none) { .tile__credit { translate: 0 0; } }

  /* ================================================================ floating nav pill */
  .nav-pill {
    display: flex; align-items: center; gap: var(--s-4); padding: 6px 8px 6px 16px; border-radius: var(--r-pill);
  }
  .nav-pill__logo img { height: 36px; width: auto; }
  .nav-pill__links { position: relative; display: flex; gap: 4px; list-style: none; }
  .nav-pill__links a {
    display: block; padding: 6px 12px 10px; border-radius: var(--r-pill);
    font-size: 17px; font-weight: 600; text-decoration: none; color: var(--sky-700);
    transition: color var(--t-pop), background-color var(--t-pop);
  }
  .nav-pill__links a:hover { background: var(--sky-50); color: var(--sky-900); }
  .nav-pill__links a[aria-current='true'] { color: var(--gold-700); }
  .nav-pill__dot { /* the moving star under the active link */
    position: absolute; bottom: -4px; left: 0; width: 16px; height: 16px; list-style: none;
    translate: var(--dot-x, 0) 0; transition: translate var(--t-move) var(--ease-pop);
  }
  .nav-pill__dot .pg { width: 100%; height: 100%; }

  /* penguin meter: a pale penguin that fills up from the bottom like rising water as --fill goes 0 → 1 */
  .pg-meter { position: relative; width: 34px; height: 34px; flex: none; }
  .pg-meter .pg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .pg-meter__base { --pg-body: #cde4f6; --pg-shade: #b9d4ec; --pg-bow: #e9f2fb; filter: none; opacity: 0.9; }
  /* no transition: --fill is updated every scroll frame, and a clip-path transition restarted each frame forces a repaint */
  .pg-meter__fill { clip-path: inset(calc((1 - var(--fill)) * 100%) 0 0 0); }

  /* ================================================================ marquee ribbon */
  .marquee {
    overflow: hidden; padding: 10px 0; background: var(--sky-600); color: var(--white);
    box-shadow: 0 -3px 0 var(--white), 0 3px 0 var(--white); rotate: -1.2deg;
  }
  .marquee__track { display: flex; width: max-content; will-change: transform; }
  .marquee__track span { padding-right: 2.2em; font-size: var(--fs-lead); font-weight: 700; letter-spacing: 0.08em; white-space: nowrap; }

  /* ================================================================ star spinner (loader) */
  /* Two counter-rotating 4-point stars: the outer one white with a blue edge, the inner pale-blue one whose four rays
     light up gold with real progress. A small penguin sits still in the middle (it never rotates). */
  .star-spinner { position: relative; width: var(--spinner-size, 132px); aspect-ratio: 1; }
  .star-spinner svg { position: absolute; overflow: visible; }
  .star-spinner__outer { inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgb(31 63 107 / 0.25)); }
  .star-spinner__inner { inset: 15%; width: 70%; height: 70%; }
  .star-spinner .star-spinner__penguin { inset: 33%; width: 34%; height: 34%; filter: drop-shadow(0 2px 2px rgb(22 63 107 / 0.3)); }
  .star-spinner .s-outer { fill: var(--white); stroke: var(--sky-500); stroke-width: 3.5; stroke-linejoin: round; }
  .star-spinner .s-outer-shade { fill: var(--sky-50); }
  .star-spinner .s-inner-bg { fill: var(--sky-200); stroke: var(--white); stroke-width: 3; stroke-linejoin: round; }
  .star-spinner .s-inner-gloss { fill: #fff; opacity: 0.6; }
  .star-spinner .ray {
    fill: var(--gold-300); transform-box: fill-box; scale: 0;
    transition: scale var(--t-move) var(--ease-pop), fill var(--t-move);
  }
  .star-spinner .ray:nth-of-type(1) { transform-origin: 50% 100%; }
  .star-spinner .ray:nth-of-type(2) { transform-origin: 0 50%; }
  .star-spinner .ray:nth-of-type(3) { transform-origin: 50% 0; }
  .star-spinner .ray:nth-of-type(4) { transform-origin: 100% 50%; }
  .star-spinner .ray.is-on { scale: 1; }
  .star-spinner.is-complete .ray { fill: var(--gold-500); }
  /* The pair keeps turning for as long as it is on screen (owner requirement) — outer clockwise, inner counter-clockwise */
  .star-spinner__outer { animation: v2-spin 4s linear infinite; }
  .star-spinner__inner { animation: v2-spin 2.5s linear infinite reverse; }

  .wave { display: inline-flex; }
  .wave > span { display: inline-block; white-space: pre; }

  /* ================================================================ mascot cameo (the penguin sticker peeking in) */
  .pg.mascot-peek {
    position: absolute; width: 96px; height: 96px; pointer-events: auto; cursor: pointer;
    filter: drop-shadow(0 6px 8px rgb(31 63 107 / 0.3));
    transition: translate var(--t-move) var(--ease-pop), rotate var(--t-move) var(--ease-pop);
  }
  .pg.mascot-peek:hover { translate: 0 -10px; rotate: -6deg; }

  /* ================================================================ empty / error note */
  .state-note { display: grid; justify-items: center; gap: var(--s-3); text-align: center; }
  .state-note .pg { width: 96px; height: 96px; }

  /* ================================================================ cursor sparkles */
  .sparkle-layer { position: fixed; inset: 0; z-index: 9999; pointer-events: none; contain: strict; }
  .sparkle { position: absolute; left: 0; top: 0; width: 14px; height: 14px; pointer-events: none; opacity: 0; overflow: visible; }

  /* ================================================================ lightbox (<dialog>) */
  .lightbox {
    max-width: min(1100px, 94vw); max-height: 92vh; padding: 12px 12px 0; border: 0; border-radius: 10px;
    background: var(--white); box-shadow: var(--shadow-modal); overflow: visible;
  }
  .lightbox img { max-height: calc(92vh - 70px); width: auto; margin: 0 auto; border-radius: 4px; }
  .lightbox__caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 12px 4px 14px; }
  .lightbox::backdrop { background: rgb(16 36 64 / 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .lightbox__close {
    position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border: 0; border-radius: 50%;
    font-size: 22px; line-height: 1; color: var(--sky-700); background: var(--white); box-shadow: var(--shadow-lift);
  }

  /* ================================================================ illustrated stickers (sprite) */
  /* One class for every sprite sticker. Penguin: --pg-body / --pg-shade / --pg-bow. Star, drop, ripple, shell:
     --c1 main · --c2 inner · --c3 light · --c4 deep line. Variants recolour both (pg--gold = gold star / gold bow). */
  .pg {
    display: inline-block; width: 1em; height: 1em; flex: none; overflow: visible; vertical-align: -0.14em;
    --pg-body: #4f97f5; --pg-shade: #3b82e0; --pg-bow: #ff8fb8;
    --c1: #79b5ff; --c2: #cde4f6; --c3: #f3f9fe; --c4: #1f5e9e;
    filter: drop-shadow(0 2px 1.5px rgb(22 63 107 / 0.28));
  }
  .pg--gold { --pg-bow: #f6bf3a; --c1: #f6bf3a; --c2: #ffe08a; --c3: #fff6d6; --c4: #a35f00; filter: drop-shadow(0 2px 1.5px rgb(120 80 10 / 0.3)); }
  .pg--pink { --pg-bow: #ff8fb8; --c1: #f78db5; --c2: #ffc3d9; --c3: #ffeef5; --c4: #c2457a; }
  .pg--mint { --pg-bow: #4fc4a0; --c1: #4fc4a0; --c2: #a6e8d2; --c3: #e6f8f1; --c4: #1f7a5f; }
  .pg--lav { --pg-bow: #b39cf0; --c1: #b39cf0; --c2: #ddd2fa; --c3: #f4f0ff; --c4: #5b45a8; }
  .pg--navy { --pg-body: #1f5e9e; --pg-shade: #163f6b; --c1: #1f5e9e; --c2: #79b5ff; --c3: #cde4f6; --c4: #163f6b; }
  .pg--pale { --c1: #e2f0fb; --c2: #fff; --c3: #fff; --c4: #79b5ff; filter: none; }
  .pg--white { --c1: #fff; --c2: #e2f0fb; --c3: #fff; --c4: #cde4f6; }
  .spark { display: inline-block; width: 18px; height: 18px; overflow: visible; --c1: #fff; --c2: transparent; }
  .spark--pink { --c1: #ffd6e6; --c2: #f898c0; }
  .spark--gold { --c1: #fff2b3; --c2: #f2b632; }
  .spark--sky { --c1: #eaf4ff; --c2: #4a90d9; }
  .heart { display: inline-block; width: 22px; height: 22px; overflow: visible; }

  /* ================================================================ section title block (JP-site style) */
  .sec-title { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px var(--s-4); }
  .sec-title__num {
    grid-row: span 2; display: grid; place-items: center; align-content: center; width: 62px; height: 62px; border-radius: 50%;
    font-size: 22px; font-weight: 700; line-height: 1; color: var(--white);
    background: radial-gradient(circle at 35% 30%, #c27a0c, var(--gold-700) 70%);
    box-shadow: 0 0 0 4px var(--white), var(--shadow-sticker); rotate: -10deg;
  }
  .sec-title__num small { display: block; font-size: 9px; letter-spacing: 0.12em; opacity: 0.85; }
  .sec-title__en {
    display: flex; align-items: center; gap: 0.12em;
    font-size: clamp(40px, 1.3rem + 3.6vw, 86px); line-height: 0.95; letter-spacing: 0.015em; color: var(--sky-500);
    -webkit-text-stroke: 9px var(--white); paint-order: stroke fill;
    text-shadow: 0 6px 0 rgb(22 63 107 / 0.16), 0 14px 26px rgb(31 63 107 / 0.28);
  }
  .sec-title__en .pg { width: 0.72em; height: 0.72em; }
  .sec-title__ja {
    justify-self: start; display: inline-flex; align-items: center; gap: 0.6em; padding: 4px 16px 5px; border-radius: var(--r-pill);
    font-family: var(--font-ja); font-size: var(--fs-body); font-weight: 800; letter-spacing: 0.08em;
    color: var(--white); background: var(--sky-700); box-shadow: 0 0 0 3px var(--white), var(--shadow-sticker);
  }
  .sec-title__ja::after { content: ''; width: 34px; height: 2px; background: repeating-linear-gradient(90deg, #fff 0 5px, transparent 5px 9px); }
  .sec-title__line {
    grid-column: 1 / -1; height: 10px; margin-top: var(--s-2);
    background: radial-gradient(circle, var(--white) 2.4px, transparent 3px) 0 50% / 16px 10px repeat-x;
    -webkit-mask: linear-gradient(90deg, #000 60%, transparent); mask: linear-gradient(90deg, #000 60%, transparent);
  }

  /* giant outlined words and vertical Japanese text that fill the background */
  .bg-word {
    position: absolute; z-index: -1; pointer-events: none; user-select: none;
    font-size: clamp(110px, 20vw, 360px); font-weight: 700; line-height: 0.8; letter-spacing: -0.01em; white-space: nowrap;
    color: rgb(255 255 255 / 0.14); -webkit-text-stroke: 3px rgb(255 255 255 / 0.85); rotate: -5deg;
  }
  .v-text {
    position: absolute; writing-mode: vertical-rl; pointer-events: none;
    font-family: var(--font-ja); font-size: clamp(22px, 0.9rem + 1.5vw, 42px); font-weight: 800; letter-spacing: 0.14em; line-height: 1;
    color: var(--gold-700); -webkit-text-stroke: 7px var(--white); paint-order: stroke fill;
    text-shadow: 0 6px 14px rgb(31 63 107 / 0.25);
  }
  .v-text--blue { color: var(--sky-600); }

  /* rotating circular text badge */
  .badge-round { position: relative; width: 132px; aspect-ratio: 1; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-lift); }
  .badge-round::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 2px dashed var(--sky-400); }
  .badge-round__text { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .badge-round text { font-family: var(--font); font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; fill: var(--sky-700); }
  .badge-round .pg { position: absolute; inset: 29%; width: 42%; height: 42%; }

  /* speech bubble (site voice — never words put in Hanon's mouth) */
  .bubble {
    position: relative; display: inline-block; padding: 8px 16px; border-radius: 22px; rotate: 4deg;
    font-weight: 700; color: var(--gold-700); background: var(--white); box-shadow: var(--shadow-paper), 0 0 0 3px var(--gold-300);
  }
  .bubble::after { content: ''; position: absolute; left: 22px; bottom: -11px; border: 11px solid transparent; border-top-color: var(--white); border-bottom: 0; }
  .bubble--left::after { left: auto; right: 22px; }

  /* stamps & labels */
  .stamp--pickup {
    padding: 5px 12px; rotate: -12deg; color: var(--white); background: var(--gold-700);
    box-shadow: 0 0 0 3px var(--white), var(--shadow-sticker); border-radius: 8px; font-size: 13px;
  }
  .label-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: var(--r-pill);
    font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky-700);
    background: var(--white); box-shadow: inset 0 0 0 2px var(--sky-200);
  }
  .label-chip .pg { width: 16px; height: 16px; }

  /* paper textures */
  .paper--grid {
    background:
      linear-gradient(rgb(74 144 217 / 0.09) 1px, transparent 1px) 0 0 / 18px 18px,
      linear-gradient(90deg, rgb(74 144 217 / 0.09) 1px, transparent 1px) 0 0 / 18px 18px,
      rgb(var(--paper-rgb) / 0.93);
  }
  .paper--lined {
    background:
      linear-gradient(90deg, transparent 38px, rgb(248 152 192 / 0.35) 38px 40px, transparent 40px),
      repeating-linear-gradient(180deg, transparent 0 27px, rgb(74 144 217 / 0.14) 27px 28px),
      rgb(var(--paper-rgb) / 0.94);
    padding-left: 54px;
  }
  .lace { position: relative; }
  .lace::after {
    content: ''; position: absolute; left: 10px; right: 10px; bottom: -9px; height: 10px; pointer-events: none;
    background: radial-gradient(circle at 8px 0, rgb(var(--paper-rgb)) 7px, transparent 7.5px) 0 0 / 16px 10px repeat-x;
    filter: drop-shadow(0 2px 1px rgb(31 63 107 / 0.12));
  }

  /* this week's stream schedule (JST) */
  .week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; list-style: none; }
  .week__day {
    position: relative; display: grid; justify-items: center; gap: 1px; padding: 6px 2px 7px; border-radius: 12px;
    font-size: 13px; font-weight: 700; color: var(--ink-soft); background: rgb(var(--paper-rgb) / 0.9); box-shadow: inset 0 0 0 1.5px var(--sky-100);
  }
  .week__date { font-size: 18px; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
  .week__tag { font-size: 13px; color: var(--gold-700); min-height: 1.2em; }
  .week__day.is-stream { color: var(--white); background: linear-gradient(180deg, var(--gold-600), var(--gold-700)); box-shadow: var(--shadow-sticker); }
  .week__day.is-stream .week__date, .week__day.is-stream .week__tag { color: var(--white); }
  .week__day.is-stream .pg { position: absolute; top: -9px; right: -6px; width: 20px; height: 20px; rotate: 20deg; }
  .week__day.is-today { box-shadow: 0 0 0 3px var(--sky-500), var(--shadow-sticker); }

  /* social badges */
  .socials { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; }
  .social {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: var(--r-pill); text-decoration: none;
    font-size: 13px; font-weight: 700; color: var(--sky-700); background: rgb(var(--paper-rgb) / 0.95); box-shadow: var(--shadow-paper), inset 0 0 0 2px var(--white);
    transition: translate var(--t-pop) var(--ease-pop), background-color var(--t-pop);
  }
  .social img { width: 30px; height: 30px; border-radius: 50%; background: var(--white); object-fit: contain; }
  .social:hover { translate: 0 -3px; background: var(--white); }

  /* mini "fan art of the moment" frame */
  .fanart { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-3); align-items: center; }
  .fanart img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 4px var(--white), var(--shadow-paper); rotate: -3deg; }
}
