/* =====================================================================
   kickSphere. CHRISTMAS WONDERLAND 2026
   Mobile-first. Layers: world(0) < snow(1) < main(2) < chrome(20+) < opening(50)
   ===================================================================== */

:root {
  --navy: #07142d;
  --navy-2: #0b1d40;
  --navy-3: #12285a;
  --red: #b81024;
  --red-deep: #7a0a18;
  --green: #064b35;
  --green-2: #0b6b4c;
  --gold: #e8bc62;
  --gold-hi: #fff1c9;
  --gold-lo: #9c6b22;
  --snow: #f7faff;
  --snow-dim: rgba(247, 250, 255, 0.78);
  --line: rgba(232, 188, 98, 0.38);

  --f-display: 'Cinzel', 'Shippori Mincho B1', serif;
  --f-mincho: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --f-body: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;

  --gold-text: linear-gradient(180deg, #fff7de 0%, #f6dc98 30%, #e8bc62 55%, #b07c2c 78%, #fbe6ad 100%);
  --gold-fill: linear-gradient(135deg, #fff1c9 0%, #f0cf82 28%, #e8bc62 50%, #c8913b 72%, #f7dc95 100%);

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --dock-h: 64px;
  --radius: 22px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--navy);
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy);
  color: var(--snow);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--dock-h) + 24px + var(--safe-b));
}
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.sp-br { display: inline; }
@media (min-width: 640px) { .sp-br { display: none; } }

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: calc(var(--safe-t) + 12px); }

:focus-visible { outline: 3px solid var(--snow); outline-offset: 3px; border-radius: 8px; }

/* ---------- Gold wordmark ---------- */
.brand-text, .hero-logo, .final-logo {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-text em, .hero-logo em, .final-logo em, .ft-from em { font-style: normal; }
.brand-text i, .hero-logo i, .final-logo i { font-style: normal; color: var(--red); -webkit-text-fill-color: #e0334a; }

/* =====================================================================
   WORLD
   ===================================================================== */
.world {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #10275a 0%, var(--navy) 60%, #040b1b 100%);
  pointer-events: none;
}
.scene { position: absolute; inset: 0; opacity: 0; }
.scene.is-on { opacity: 1; }
/* JS without GSAP (or reduced motion): simple cross-fade driven by the active chapter */
.js:not(.has-gsap) .scene { transition: opacity 1.2s ease; }
.js:not(.has-gsap) .scene.is-current { opacity: 1; }
.layer { position: absolute; inset: 0; }
.layer-bg { overflow: hidden; }
.bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: 50% 62%;
  will-change: transform;
}
.scene-town .bg { object-position: 50% 50%; }
.scene-street .bg { object-position: 50% 50%; }
.scene-workshop .bg { object-position: 48% 60%; }
.scene-castle .bg { object-position: 50% 40%; }

/* readability veils */
.scene::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 20, 45, 0.55) 0%, rgba(7, 20, 45, 0) 26%, rgba(7, 20, 45, 0) 58%, rgba(7, 20, 45, 0.72) 100%);
}
.scene-street::after, .scene-workshop::after {
  background:
    radial-gradient(70% 55% at 50% 50%, rgba(7, 20, 45, 0.25), rgba(7, 20, 45, 0.6) 100%),
    linear-gradient(180deg, rgba(7, 20, 45, 0.5), rgba(7, 20, 45, 0.15) 30%, rgba(7, 20, 45, 0.75));
}
.world-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(130% 95% at 50% 45%, transparent 55%, rgba(2, 6, 16, 0.75) 100%);
}

.moon {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fffdf3 0%, #f8edcd 45%, #e6d3a3 70%, #cdb57d 100%);
  box-shadow: 0 0 40px 10px rgba(255, 240, 200, 0.45), 0 0 140px 50px rgba(232, 188, 98, 0.22);
}
.moon-small { width: clamp(46px, 9vw, 86px); aspect-ratio: 1; top: 13%; left: 10%; }

.aurora {
  position: absolute; left: -20%; right: -20%; top: -10%; height: 60%;
  background:
    radial-gradient(40% 30% at 30% 40%, rgba(46, 255, 170, 0.55), transparent 70%),
    radial-gradient(35% 28% at 60% 30%, rgba(80, 220, 255, 0.4), transparent 70%),
    radial-gradient(30% 25% at 78% 45%, rgba(170, 110, 255, 0.4), transparent 70%);
  filter: blur(36px);
  mix-blend-mode: screen;
  opacity: 0.38;
  animation: aurora 18s ease-in-out infinite alternate;
}
.aurora-strong { opacity: 0.45; }
@keyframes aurora {
  0% { transform: translate3d(-4%, 0, 0) skewX(-6deg) scaleY(1); }
  100% { transform: translate3d(5%, 3%, 0) skewX(8deg) scaleY(1.15); }
}

/* Illumination twinkles */
.tw {
  position: absolute;
  width: var(--s, 6px); height: var(--s, 6px);
  border-radius: 50%;
  background: radial-gradient(circle, #fff8e1 0%, #f3cf7f 35%, rgba(232, 188, 98, 0) 72%);
  box-shadow: 0 0 10px 3px rgba(232, 188, 98, 0.35);
  opacity: 0.35;
  animation: twinkle var(--d, 3.6s) ease-in-out var(--dl, 0s) infinite alternate;
}
.tw.red { background: radial-gradient(circle, #ffe3e6 0%, #ff4d63 40%, rgba(184, 16, 36, 0) 72%); box-shadow: 0 0 10px 3px rgba(184, 16, 36, 0.35); }
.tw.green { background: radial-gradient(circle, #e6fff4 0%, #3de0a2 40%, rgba(6, 75, 53, 0) 72%); box-shadow: 0 0 10px 3px rgba(6, 140, 90, 0.35); }
@keyframes twinkle {
  0% { opacity: 0.2; transform: scale(0.7); }
  100% { opacity: 0.95; transform: scale(1.1); }
}

/* Foreground silhouettes (parallax nearest layer) */
.layer-fg { overflow: visible; }
.pine { position: absolute; bottom: -6%; height: 58vh; width: 29vh; filter: drop-shadow(0 0 24px rgba(0, 0, 0, 0.6)); will-change: transform; }
.pine-l1 { left: -12vh; }
.pine-l2 { left: 9vh; height: 36vh; width: 18vh; opacity: 0.85; bottom: -3%; }
.pine-r1 { right: -12vh; height: 64vh; width: 32vh; }
.pine-r2 { right: 10vh; height: 34vh; width: 17vh; opacity: 0.85; bottom: -3%; }
@media (max-width: 640px) {
  .pine { height: 40vh; width: 20vh; }
  .pine-l1 { left: -9vh; }
  .pine-r1 { right: -9vh; height: 44vh; width: 22vh; }
  .pine-l2, .pine-r2 { display: none; }
}

.layer-bokeh {
  background-image:
    radial-gradient(circle at 12% 78%, rgba(232, 188, 98, 0.22) 0 26px, transparent 46px),
    radial-gradient(circle at 86% 64%, rgba(255, 220, 160, 0.18) 0 34px, transparent 58px),
    radial-gradient(circle at 70% 90%, rgba(184, 16, 36, 0.18) 0 30px, transparent 52px),
    radial-gradient(circle at 24% 30%, rgba(247, 250, 255, 0.10) 0 18px, transparent 34px),
    radial-gradient(circle at 92% 20%, rgba(232, 188, 98, 0.14) 0 22px, transparent 40px);
  filter: blur(4px);
  will-change: transform;
}
.layer-firelight {
  background: radial-gradient(45% 50% at 12% 72%, rgba(255, 150, 60, 0.35), transparent 70%);
  mix-blend-mode: screen;
  animation: fire 3.2s ease-in-out infinite alternate;
}
@keyframes fire { from { opacity: 0.55; } to { opacity: 0.95; } }
.layer-garland {
  background:
    radial-gradient(60% 30% at 50% 0%, rgba(232, 188, 98, 0.18), transparent 70%),
    radial-gradient(30% 60% at 0% 60%, rgba(184, 16, 36, 0.14), transparent 70%),
    radial-gradient(30% 60% at 100% 60%, rgba(6, 75, 53, 0.22), transparent 70%);
}

/* Santa's sleigh */
.layer-sleigh { top: 12%; bottom: auto; height: 22%; }
.sleigh-run {
  position: absolute; top: 30%; left: 0;
  display: flex; align-items: flex-end; gap: 2px;
  transform: translate3d(-120%, 0, 0) rotate(-6deg);
  color: #f6dc98;
  filter: drop-shadow(0 0 6px rgba(255, 230, 160, 0.9)) drop-shadow(0 0 18px rgba(232, 188, 98, 0.6));
  opacity: 0;
  will-change: transform;
  flex-direction: row-reverse; /* reindeer lead to the right */
}
.reindeer { width: clamp(34px, 6vw, 58px); height: clamp(22px, 3.8vw, 36px); animation: gallop 0.9s ease-in-out infinite alternate; }
.reindeer.r2 { animation-delay: 0.2s; }
.reindeer.r3 { animation-delay: 0.4s; }
.sleigh { width: clamp(60px, 10vw, 104px); height: clamp(28px, 4.6vw, 48px); margin-left: 6px; }
.sleigh-trail {
  position: absolute; right: 100%; bottom: 6px;
  width: clamp(120px, 26vw, 360px); height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 200, 0.85));
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(232, 188, 98, 0.8);
}
@keyframes gallop { from { transform: translateY(0); } to { transform: translateY(-4px); } }

.fireworks { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Global snow */
.snow {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Opening particle overlay */
.opening { display: none; }
.js .opening {
  display: block;
  position: fixed; inset: 0; z-index: 50;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.intro-done .opening { opacity: 0; visibility: hidden; }
.opening-canvas { width: 100%; height: 100%; display: block; }

/* =====================================================================
   CHROME — header / progress / rail / dock
   ===================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-t) + 10px) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(7, 20, 45, 0.85), rgba(7, 20, 45, 0));
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.brand-text { font-size: 1.25rem; }
.brand img { height: 30px; width: auto; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.pill {
  display: inline-grid; place-items: center;
  min-width: 44px; height: 40px; padding: 0 12px;
  border-radius: 999px; text-decoration: none; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  border: 1px solid var(--line); background: rgba(7, 20, 45, 0.6); color: var(--snow);
}
.pill-line { color: #8ef0b0; }

.sound-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 20, 45, 0.65);
  cursor: pointer;
  font-family: var(--f-display); font-size: 0.72rem; letter-spacing: 0.14em;
}
.sound-toggle b { color: var(--gold); font-weight: 700; }
.sound-bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.sound-bars i { width: 3px; height: 4px; background: var(--gold); border-radius: 2px; transition: height 0.3s; }
.sound-toggle[aria-pressed='true'] .sound-bars i { animation: bars 1s ease-in-out infinite alternate; }
.sound-toggle[aria-pressed='true'] .sound-bars i:nth-child(2) { animation-delay: 0.2s; }
.sound-toggle[aria-pressed='true'] .sound-bars i:nth-child(3) { animation-delay: 0.4s; }
.sound-toggle[aria-pressed='true'] .sound-bars i:nth-child(4) { animation-delay: 0.1s; }
@keyframes bars { from { height: 3px; } to { height: 14px; } }
@media (max-width: 380px) { .sound-label { display: none; } }

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 21;
  background: rgba(247, 250, 255, 0.08);
}
.progress-fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold) 45%, var(--gold-hi));
  box-shadow: 0 0 10px rgba(232, 188, 98, 0.8);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.rail { display: none; }
@media (min-width: 1024px) {
  .rail {
    display: block;
    position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 20;
  }
  .rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
  .rail a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; text-decoration: none; flex-direction: row-reverse; }
  .rail i {
    width: 10px; height: 10px; border-radius: 50%;
    border: 1px solid var(--gold); background: transparent;
    transition: transform 0.4s, background 0.4s, box-shadow 0.4s;
  }
  .rail span {
    font-family: var(--f-display); font-size: 0.68rem; letter-spacing: 0.16em; color: var(--snow-dim);
    opacity: 0; transform: translateX(6px); transition: opacity 0.4s, transform 0.4s;
  }
  .rail a:hover span, .rail a.is-active span { opacity: 1; transform: none; }
  .rail a.is-active i { background: var(--gold); transform: scale(1.3); box-shadow: 0 0 12px rgba(232, 188, 98, 0.9); }
}

.dock {
  position: fixed; z-index: 30;
  left: 50%; bottom: calc(10px + var(--safe-b));
  transform: translateX(-50%);
  width: min(calc(100% - 20px), 480px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border-radius: 22px;
  background: rgba(7, 20, 45, 0.78);
  border: 1px solid rgba(232, 188, 98, 0.42);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 241, 201, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.dock a {
  min-height: calc(var(--dock-h) - 8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; border-radius: 18px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; color: var(--snow-dim);
  transition: background 0.3s, color 0.3s;
}
.dock svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.dock a.is-active { color: var(--snow); background: linear-gradient(180deg, rgba(232, 188, 98, 0.22), rgba(232, 188, 98, 0.06)); }
.dock a:active { background: rgba(232, 188, 98, 0.18); }

/* =====================================================================
   CONTENT
   ===================================================================== */
main { position: relative; z-index: 2; }
.chapter { position: relative; }
.chapter-body {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
  padding-block: 18vh 14vh;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid; place-items: center;
  text-align: center;
  padding: calc(var(--safe-t) + 70px) 20px calc(var(--dock-h) + 80px);
}
.hero-inner { display: grid; justify-items: center; gap: 6px; }
.hero-logo { margin: 0 0 4px; font-size: clamp(1.4rem, 5vw, 2.2rem); filter: drop-shadow(0 0 14px rgba(232, 188, 98, 0.55)); }
.hero-title { margin: 0; display: grid; justify-items: center; line-height: 1.02; }
.t-cw {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(2.3rem, 10.5vw, 6.6rem);
  letter-spacing: 0.04em;
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(90, 55, 10, 0.9)) drop-shadow(0 0 26px rgba(232, 188, 98, 0.45));
}
.t-year {
  margin-top: 8px;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.1rem, 4.4vw, 2rem);
  letter-spacing: 0.7em; padding-left: 0.7em;
  color: var(--snow);
  display: flex; align-items: center; gap: 0.6em;
}
.t-year::before, .t-year::after { content: ''; width: clamp(28px, 10vw, 90px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.t-year::after { transform: scaleX(-1); }
.hero-copy {
  margin: 22px 0 0;
  font-family: var(--f-mincho); font-weight: 800;
  font-size: clamp(1.45rem, 6vw, 2.6rem);
  letter-spacing: 0.08em; line-height: 1.5;
  text-shadow: 0 0 24px rgba(247, 250, 255, 0.45), 0 2px 12px rgba(0, 0, 0, 0.7);
}
.hero-sub {
  margin: 4px 0 0;
  font-family: var(--f-mincho); font-weight: 600;
  font-size: clamp(0.95rem, 3.6vw, 1.2rem);
  color: var(--gold-hi);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.scroll-cue {
  position: absolute; left: 50%; bottom: calc(var(--dock-h) + 28px + var(--safe-b));
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px;
  text-decoration: none;
  font-family: var(--f-display); font-size: 0.7rem; letter-spacing: 0.32em; color: var(--gold-hi);
  min-height: 44px;
}
.scroll-cue i {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--gold), transparent);
  position: relative; overflow: hidden;
}
.scroll-cue i::after {
  content: ''; position: absolute; left: -2px; top: -10px; width: 5px; height: 10px; border-radius: 3px;
  background: var(--snow); box-shadow: 0 0 8px var(--gold);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(56px); opacity: 0; } }

.js .hero-reveal { opacity: 0; }
.intro-done .hero-reveal { opacity: 1; transition: opacity 0.6s ease; }

/* ---------- Chapter heads ---------- */
.chapter-head { text-align: center; margin-bottom: clamp(32px, 7vw, 64px); }
.chapter-no {
  margin: 0;
  font-family: var(--f-display); font-weight: 700; color: var(--gold);
  font-size: 0.82rem; letter-spacing: 0.4em;
  display: inline-flex; align-items: center; gap: 14px;
}
.chapter-no span { font-weight: 500; color: var(--snow-dim); }
.chapter-no::before, .chapter-no::after { content: ''; width: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.chapter-no::after { transform: scaleX(-1); }
.chapter-title {
  margin: 10px 0 4px;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.7rem, 7vw, 3.6rem);
  line-height: 1.15; letter-spacing: 0.06em;
  text-shadow: 0 0 30px rgba(232, 188, 98, 0.35), 0 4px 18px rgba(0, 0, 0, 0.8);
}
.chapter-ja {
  margin: 0;
  font-family: var(--f-mincho); font-weight: 600; color: var(--gold-hi);
  font-size: clamp(0.95rem, 3.6vw, 1.15rem); letter-spacing: 0.2em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ---------- Banners (provided campaign art) ---------- */
.banner { position: relative; margin: 0 auto; width: 100%; max-width: 760px; }
.banner-3d { perspective: 1200px; }
.banner-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--navy-2);
  border: 1px solid rgba(232, 188, 98, 0.55);
  box-shadow:
    0 0 0 4px rgba(7, 20, 45, 0.7),
    0 0 0 5px rgba(232, 188, 98, 0.25),
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(232, 188, 98, 0.25);
  transform-style: preserve-3d;
  will-change: transform;
}
.banner-frame img { width: 100%; height: auto; display: block; }
.banner-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 250, 230, 0.32) 48%, transparent 60%);
  transform: translateX(-120%);
  animation: sheen 7s ease-in-out 1.5s infinite;
  pointer-events: none;
}
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.banner-halo {
  position: absolute; inset: -12% -8%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(232, 188, 98, 0.35), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
.banner-fallback { display: none; }
.banner.is-missing img { display: none; }
.banner.is-missing .banner-fallback {
  display: grid; place-content: center; justify-items: center; gap: 8px;
  aspect-ratio: var(--ar, 16 / 9);
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(60% 70% at 50% 40%, rgba(184, 16, 36, 0.5), transparent 70%),
    radial-gradient(80% 60% at 50% 110%, rgba(6, 75, 53, 0.7), transparent 70%),
    linear-gradient(160deg, #0d2350, var(--navy));
}
.banner.is-missing .banner-fallback::before {
  content: ''; position: absolute; inset: 10px; border: 1px solid rgba(232, 188, 98, 0.5); border-radius: 12px; pointer-events: none;
}
.bf-kicker { font-family: var(--f-display); font-size: 0.72rem; letter-spacing: 0.32em; color: var(--gold); }
.bf-title {
  font-family: var(--f-mincho); font-weight: 800; line-height: 1.35;
  font-size: clamp(1.4rem, 6vw, 2.6rem);
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bf-sub { font-size: 0.9rem; color: var(--snow-dim); }
.sc-thumb.is-missing .banner-fallback { aspect-ratio: 16 / 9; }
.sc-thumb .bf-title { font-size: clamp(1.1rem, 4.4vw, 1.5rem); }

/* ---------- CHAPTER 01 ---------- */
.ch01-grid { position: relative; display: grid; gap: 34px; justify-items: center; }
.ch01-text { text-align: center; max-width: 620px; }
.lead-title {
  margin: 0 0 12px;
  font-family: var(--f-mincho); font-weight: 800;
  font-size: clamp(1.7rem, 7vw, 2.8rem); line-height: 1.45; letter-spacing: 0.06em;
  text-shadow: 0 0 22px rgba(232, 188, 98, 0.35), 0 3px 14px rgba(0, 0, 0, 0.8);
}
.lead-body { margin: 0 0 28px; color: var(--snow-dim); font-size: clamp(0.95rem, 3.8vw, 1.08rem); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9); }
.niki { height: auto; pointer-events: none; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 20px rgba(232, 188, 98, 0.25)); }
.niki-ch01 { width: clamp(130px, 38vw, 260px); margin-top: -10px; animation: float 5s ease-in-out infinite alternate; }
@keyframes float { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-12px) rotate(1deg); } }
@media (min-width: 900px) {
  .ch01-grid { grid-template-columns: 1.35fr 1fr; align-items: center; justify-items: stretch; gap: 48px; }
  .ch01-text { text-align: left; }
  .niki-ch01 { position: absolute; right: -2%; bottom: -16%; width: 230px; z-index: 2; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px;
  border-radius: 999px;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; letter-spacing: 0.06em;
  text-decoration: none; cursor: pointer;
  border: 0;
  transition: transform 0.25s ease, filter 0.25s ease, background 0.25s ease;
  -webkit-user-select: none; user-select: none;
  touch-action: manipulation;
}
.btn-gold {
  color: #2a1906;
  background: var(--gold-fill);
  box-shadow: 0 0 0 1px rgba(255, 241, 201, 0.7) inset, 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(232, 188, 98, 0.45);
  animation: glow 3.4s ease-in-out infinite alternate;
}
.btn-gold::before {
  content: ''; position: absolute; inset: -6px; border-radius: inherit;
  border: 1px solid rgba(232, 188, 98, 0.45);
  pointer-events: none;
}
@keyframes glow {
  from { box-shadow: 0 0 0 1px rgba(255, 241, 201, 0.7) inset, 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 12px rgba(232, 188, 98, 0.35); }
  to { box-shadow: 0 0 0 1px rgba(255, 241, 201, 0.7) inset, 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 34px rgba(232, 188, 98, 0.75); }
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-gold:active { transform: translateY(1px) scale(0.98); }
.btn-ghost {
  color: var(--snow);
  background: rgba(7, 20, 45, 0.55);
  box-shadow: inset 0 0 0 1px rgba(232, 188, 98, 0.6);
}
.btn-ghost:hover { background: rgba(232, 188, 98, 0.14); }
.btn-sm { min-height: 48px; padding: 0 20px; font-size: 0.9rem; }
.btn-xl { min-height: 64px; padding: 0 44px; font-size: 1.15rem; }
.btn-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-row .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .cta-row .btn { flex: 0 0 auto; } }

/* ---------- CHAPTER 02 : chest ---------- */
.ch02 .chapter-body { padding-bottom: 20vh; }
.chest-stage {
  position: relative;
  height: clamp(250px, 66vw, 400px);
  display: grid; place-items: end center;
  margin-bottom: -40px;
}
.chest {
  position: relative; z-index: 2;
  width: clamp(200px, 60vw, 340px); height: auto;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.6));
}
.chest-glow {
  position: absolute; left: 50%; bottom: 30%; width: 120%; max-width: 620px; aspect-ratio: 1;
  translate: -50% 30%;
  background: radial-gradient(circle, rgba(255, 236, 180, 0.85) 0%, rgba(232, 188, 98, 0.45) 22%, rgba(232, 188, 98, 0) 60%);
  animation: breathe 4.5s ease-in-out infinite alternate;
  z-index: 1;
}
@keyframes breathe { from { opacity: 0.65; scale: 0.92; } to { opacity: 1; scale: 1.05; } }
.chest-rays {
  position: absolute; left: 50%; bottom: 35%; width: 150%; max-width: 900px; aspect-ratio: 1;
  translate: -50% 35%;
  transform: scale(var(--rs, 1));
  opacity: var(--ro, 1);
  background: repeating-conic-gradient(from 0deg, rgba(255, 230, 160, 0.28) 0deg 5deg, transparent 5deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 8%, transparent 62%);
  mask: radial-gradient(circle, #000 8%, transparent 62%);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.chest-points { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: visible; }
.pt {
  position: absolute; bottom: 28%;
  width: var(--s, 7px); height: var(--s, 7px);
  border-radius: 50%;
  background: radial-gradient(circle, #fffbe8, #f2cf7a 55%, rgba(232, 188, 98, 0) 75%);
  box-shadow: 0 0 10px rgba(255, 220, 140, 0.9);
  opacity: 0;
  animation: rise var(--d, 4s) ease-out var(--dl, 0s) infinite;
}
.pt.tag {
  width: auto; height: auto; border-radius: 0; background: none; box-shadow: none;
  font-family: var(--f-display); font-weight: 700; font-size: 0.72rem; color: var(--gold-hi);
  text-shadow: 0 0 8px rgba(232, 188, 98, 1);
}
@keyframes rise {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.6); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--x, 0px), -240px, 0) scale(1); }
}
.crystal { position: absolute; color: rgba(247, 250, 255, 0.85); filter: drop-shadow(0 0 8px rgba(200, 225, 255, 0.9)); animation: spin 22s linear infinite; z-index: 3; }
.crystal.c1 { width: 34px; height: 34px; left: 12%; top: 18%; }
.crystal.c2 { width: 22px; height: 22px; right: 14%; top: 8%; animation-duration: 30s; animation-direction: reverse; }
.crystal.c3 { width: 26px; height: 26px; right: 22%; bottom: 18%; animation-duration: 26s; }
.banner-rise { z-index: 4; margin-bottom: 36px; }

/* ---------- Campaign card ---------- */
.campaign-card {
  position: relative;
  max-width: 760px; margin: 0 auto;
  padding: clamp(26px, 6vw, 44px) clamp(20px, 5vw, 44px);
  border-radius: var(--radius);
  text-align: center;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(184, 16, 36, 0.22), transparent 70%),
    linear-gradient(170deg, rgba(14, 32, 70, 0.92), rgba(7, 20, 45, 0.95));
  border: 1px solid rgba(232, 188, 98, 0.45);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 241, 201, 0.15);
}
.campaign-card::before {
  content: ''; position: absolute; inset: 7px; border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(232, 188, 98, 0.18); pointer-events: none;
}
.cc-top { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.cc-name, .sc-name {
  margin: 0;
  font-family: var(--f-mincho); font-weight: 800; color: var(--gold);
  font-size: clamp(1rem, 4vw, 1.2rem); letter-spacing: 0.12em;
}
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  border: 1px solid currentColor;
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status[data-state='active'] { color: #5ff0b4; background: rgba(6, 75, 53, 0.55); }
.status[data-state='active']::before { box-shadow: 0 0 8px currentColor; }
.status[data-state='upcoming'] { color: var(--gold); background: rgba(232, 188, 98, 0.12); }
.status[data-state='ended'] { color: #a8b3c7; background: rgba(120, 130, 150, 0.15); }
.cc-catch {
  margin: 14px 0 12px;
  font-family: var(--f-mincho); font-weight: 800;
  font-size: clamp(1.75rem, 8vw, 3rem); line-height: 1.35; letter-spacing: 0.04em;
}
.em-num {
  font-family: var(--f-display); font-weight: 900;
  font-size: 1.5em;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 16px rgba(232, 188, 98, 0.6));
}
.cc-sub { margin: 0 0 20px; color: var(--snow-dim); font-size: clamp(0.95rem, 3.8vw, 1.05rem); }
.chips { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips li {
  padding: 6px 16px; border-radius: 999px;
  font-weight: 700; font-size: 0.9rem;
  border: 1px solid rgba(232, 188, 98, 0.55);
  background: linear-gradient(180deg, rgba(184, 16, 36, 0.55), rgba(122, 10, 24, 0.55));
}
.chips li:nth-child(2) { background: linear-gradient(180deg, rgba(11, 107, 76, 0.6), rgba(6, 75, 53, 0.6)); }
.chips li:nth-child(3) { background: rgba(232, 188, 98, 0.16); color: var(--gold-hi); }
.cc-period { margin: 0 0 22px; font-size: 0.85rem; color: var(--snow-dim); }

/* ---------- CHAPTER 03 : gift ---------- */
.ch03 > .chapter-body:first-child { padding-bottom: 0; }
.gift-pin { position: relative; }
.gift-sticky {
  --gs: min(56vw, 40svh, 330px);
  position: relative;
  height: 90vh; height: 90svh;
  display: grid; place-items: center;
  overflow: hidden;
}
.has-gsap .gift-pin { height: 260vh; height: 260svh; }
.has-gsap .gift-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; }
.gift {
  position: relative;
  width: var(--gs); height: calc(var(--gs) * 1.02);
  margin-top: 22svh;
  z-index: 2;
}
.gift-shadow {
  position: absolute; left: -10%; right: -10%; bottom: -8%; height: 16%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.55), transparent 70%);
}
.gift-body {
  position: absolute; left: 5%; right: 5%; bottom: 0; height: 72%;
  border-radius: 6px 6px 10px 10px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 220, 150, 0.16) 0 2px, transparent 3px) 0 0 / 26px 26px,
    linear-gradient(90deg, #6e0814 0%, #a50e21 22%, #d12a40 50%, #a50e21 78%, #5e0711 100%);
  box-shadow: inset 0 -26px 40px rgba(0, 0, 0, 0.35), inset 0 10px 18px rgba(0, 0, 0, 0.3), 0 30px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.ribbon-v, .ribbon-h { position: absolute; display: block; }
.ribbon-v {
  left: 50%; top: 0; bottom: 0; width: 17%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #8a5c1b, #f7dc95 38%, #e8bc62 60%, #8a5c1b);
  box-shadow: 0 0 14px rgba(232, 188, 98, 0.5);
}
.ribbon-h {
  left: 0; right: 0; top: 38%; height: 15%;
  background: linear-gradient(180deg, #8a5c1b, #f7dc95 38%, #e8bc62 60%, #8a5c1b);
}
.gift-lid {
  position: absolute; left: 0; right: 0; bottom: 70%; height: 19%;
  border-radius: 8px;
  background: linear-gradient(90deg, #7a0a18 0%, #b81024 25%, #df3a50 50%, #b81024 75%, #6a0814 100%);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.45), inset 0 3px 0 rgba(255, 255, 255, 0.18);
  transform-origin: 18% 100%;
  will-change: transform;
}
.gift-bow { position: absolute; left: 50%; bottom: 62%; width: 82%; transform: translateX(-50%); overflow: visible; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45)); }
.gift-bow g { transform-box: fill-box; }
.bow-l { transform-origin: 100% 80%; }
.bow-r { transform-origin: 0% 80%; }
.bow-tail-l { transform-origin: 100% 0%; }
.bow-tail-r { transform-origin: 0% 0%; }

.gift-burst {
  position: absolute; left: 50%; top: calc(50% + 11svh - var(--gs) * 0.42);
  width: 160vmax; height: 160vmax;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.gift-burst > div { position: absolute; inset: 0; border-radius: 50%; }
.burst-rainbow {
  background: conic-gradient(from 0deg, #ff5f6d, #ffc371, #fff59d, #7ef29d, #6ad8ff, #9b8cff, #ff7ad9, #ff5f6d);
  -webkit-mask: radial-gradient(circle, transparent 6%, #000 9%, transparent 34%);
  mask: radial-gradient(circle, transparent 6%, #000 9%, transparent 34%);
  filter: blur(18px);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.burst-rays {
  background: repeating-conic-gradient(from 0deg, rgba(255, 236, 180, 0.55) 0deg 3deg, transparent 3deg 12deg);
  -webkit-mask: radial-gradient(circle, #000 2%, transparent 40%);
  mask: radial-gradient(circle, #000 2%, transparent 40%);
  animation: spin 50s linear infinite;
}
.burst-core { background: radial-gradient(circle, #fffef6 0%, rgba(255, 238, 190, 0.9) 4%, rgba(232, 188, 98, 0.45) 10%, transparent 24%); }

.gift-reveal {
  position: absolute; left: 0; right: 0; top: calc(var(--safe-t) + 13svh);
  text-align: center; z-index: 3; padding: 0 16px;
}
.gr-name {
  margin: 0;
  font-family: var(--f-mincho); font-weight: 800; letter-spacing: 0.18em;
  font-size: clamp(1.1rem, 4.6vw, 1.6rem); color: var(--gold-hi);
  text-shadow: 0 0 18px rgba(232, 188, 98, 0.8), 0 2px 10px rgba(0, 0, 0, 0.8);
}
.gr-points, .cc-points {
  margin: 4px 0 0;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: 0.25em;
  font-family: var(--f-display); font-weight: 900; line-height: 1.1;
}
.gr-before, .cp-before { font-size: clamp(1.3rem, 5.5vw, 2.2rem); color: var(--snow); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.gr-arrow, .cp-arrow { font-size: clamp(1.2rem, 5vw, 2rem); color: var(--gold); }
.gr-after, .cp-after { font-size: clamp(3.4rem, 17vw, 8.2rem); letter-spacing: -0.01em; }
.gr-suffix, .cp-suffix {
  font-family: var(--f-mincho); font-weight: 800;
  font-size: clamp(1.5rem, 6.5vw, 2.8rem); color: var(--snow);
  text-shadow: 0 0 16px rgba(232, 188, 98, 0.7), 0 2px 10px rgba(0, 0, 0, 0.8);
}
.gr-after { flex-basis: 100%; order: 3; }
.gr-suffix { order: 4; flex-basis: 100%; }
@media (min-width: 900px) {
  .gr-after { flex-basis: auto; order: 0; }
  .gr-suffix { flex-basis: auto; order: 0; }
}
.gift-hint {
  position: absolute; left: 0; right: 0; bottom: calc(var(--dock-h) + 30px + var(--safe-b));
  margin: 0; text-align: center;
  font-family: var(--f-display); font-size: 0.7rem; letter-spacing: 0.34em; color: var(--gold-hi);
  opacity: 0;
}
.has-gsap .gift-hint { opacity: 0.85; }

/* rainbow 3D numerals */
.rainbow-3d {
  position: relative; display: inline-block;
  background: linear-gradient(100deg, #ff6a7a 0%, #ffc371 18%, #fff3a0 34%, #8ef7b0 50%, #74dcff 66%, #b99bff 82%, #ff86dc 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9))
    drop-shadow(0 3px 0 #b77a22)
    drop-shadow(0 5px 0 #7a4a12)
    drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 22px rgba(255, 220, 150, 0.45));
  animation: rainbow 7s linear infinite;
}
.rainbow-3d::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.1) 46%, rgba(255, 255, 255, 0) 52%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  pointer-events: none;
}
@keyframes rainbow { to { background-position: -200% 0; } }

.ch03 .chapter-body:last-child { padding-top: 6vh; }
.ch03-grid { display: grid; gap: 36px; }
.cc-points { margin: 12px 0 24px; }
@media (min-width: 1000px) {
  .ch03-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  .ch03-grid .cp-after { font-size: clamp(3.4rem, 7vw, 6rem); }
}

/* countdown */
.countdown {
  margin: 0 auto 26px; max-width: 520px;
  padding: 18px 14px 14px;
  border-radius: 18px;
  background: rgba(3, 10, 26, 0.6);
  border: 1px solid rgba(232, 188, 98, 0.3);
}
.cd-label { margin: 0 0 10px; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.12em; color: var(--gold-hi); }
.cd-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd-cell {
  display: grid; justify-items: center; gap: 2px;
  padding: 12px 4px 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 40, 90, 0.9), rgba(7, 20, 45, 0.9));
  box-shadow: inset 0 0 0 1px rgba(232, 188, 98, 0.35), inset 0 1px 0 rgba(255, 241, 201, 0.2);
}
.cd-cell b {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.7rem, 8vw, 2.6rem); line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cd-cell span { font-family: var(--f-display); font-size: clamp(0.56rem, 2.4vw, 0.7rem); letter-spacing: 0.14em; color: var(--snow-dim); }
.cd-ended {
  margin: 4px 0 6px;
  font-family: var(--f-mincho); font-weight: 800; font-size: 1.25rem; color: var(--snow);
}
.countdown.is-ended .cd-cells { display: none; }
.cd-end { margin: 10px 0 0; font-size: 0.8rem; color: var(--snow-dim); }

/* ---------- CHAPTER 04 ---------- */
.ch04 .chapter-body { padding-top: 26vh; }
.finale-title { text-align: center; margin: 0 0 14vh; }
.ft-merry {
  margin: 0;
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(2.3rem, 11vw, 7.2rem); line-height: 1.05; letter-spacing: 0.04em;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(90, 55, 10, 0.9)) drop-shadow(0 0 30px rgba(232, 188, 98, 0.55));
}
.ft-from {
  margin: 6px 0 18px;
  font-family: var(--f-display); font-weight: 700; letter-spacing: 0.22em;
  font-size: clamp(1rem, 4.4vw, 1.9rem);
  text-shadow: 0 0 18px rgba(247, 250, 255, 0.5), 0 2px 10px rgba(0, 0, 0, 0.8);
}
.ft-from em { color: var(--gold); }
.ft-copy {
  margin: 0;
  font-family: var(--f-mincho); font-weight: 800;
  font-size: clamp(1.15rem, 5vw, 1.8rem); letter-spacing: 0.08em; line-height: 1.6;
  text-shadow: 0 0 18px rgba(232, 188, 98, 0.45), 0 2px 12px rgba(0, 0, 0, 0.9);
}

.summary { scroll-margin-top: 80px; }
.summary-label {
  margin: 0 0 22px; text-align: center;
  font-family: var(--f-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.34em; color: var(--gold);
  display: grid; gap: 2px;
}
.summary-label span { font-family: var(--f-mincho); font-size: 1.15rem; letter-spacing: 0.14em; color: var(--snow); }
.summary-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .summary-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.summary-card {
  display: grid;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(170deg, rgba(14, 32, 70, 0.92), rgba(7, 20, 45, 0.96));
  border: 1px solid rgba(232, 188, 98, 0.42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.sc-thumb { max-width: none; }
.sc-thumb .banner-frame { border-radius: 0; border: 0; box-shadow: none; border-bottom: 1px solid rgba(232, 188, 98, 0.35); }
.sc-body { padding: 20px 20px 24px; text-align: center; }
.sc-catch { margin: 10px 0 8px; font-family: var(--f-mincho); font-weight: 800; font-size: clamp(1.1rem, 4.6vw, 1.4rem); line-height: 1.5; }
.sc-catch .rainbow-3d { font-family: var(--f-display); font-size: 1.6em; }

.final { position: relative; text-align: center; padding: 16vh 0 6vh; display: grid; justify-items: center; gap: 22px; }
.final::before {
  content: ''; position: absolute; left: 50%; top: 45%; width: min(120vw, 900px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232, 188, 98, 0.28), transparent 60%);
  pointer-events: none; z-index: -1;
}
.niki-final { width: clamp(120px, 32vw, 200px); animation: float 5s ease-in-out infinite alternate; }
.final-logo { margin: 0; font-size: clamp(2.6rem, 12vw, 5.4rem); line-height: 1; filter: drop-shadow(0 0 26px rgba(232, 188, 98, 0.6)); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: 2;
  text-align: center; padding: 30px 20px 20px;
  font-size: 0.8rem; color: var(--snow-dim);
  background: linear-gradient(180deg, transparent, rgba(3, 9, 22, 0.9));
}
.footer-links { display: flex; gap: 18px; justify-content: center; margin: 0 0 8px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-note, .copy { margin: 4px 0; }
.copy { font-family: var(--f-display); letter-spacing: 0.14em; color: var(--gold); }

/* =====================================================================
   DETAIL DIALOG
   ===================================================================== */
.detail {
  width: min(100% - 24px, 580px);
  max-height: 86vh; max-height: 86svh;
  padding: 0;
  border-radius: 22px;
  border: 1px solid rgba(232, 188, 98, 0.55);
  background: linear-gradient(170deg, #0e2148, var(--navy));
  color: var(--snow);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  overscroll-behavior: contain;
}
.detail::backdrop { background: rgba(2, 6, 18, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.detail-inner { position: relative; padding: 30px 22px 26px; }
.detail-close {
  position: absolute; right: 10px; top: 10px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(7, 20, 45, 0.7);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.detail-kicker { margin: 0; font-family: var(--f-display); font-size: 0.72rem; letter-spacing: 0.3em; color: var(--gold); }
.detail-title { margin: 4px 0 18px; font-family: var(--f-mincho); font-weight: 800; font-size: 1.45rem; padding-right: 40px; }
.detail-list { margin: 0; display: grid; gap: 0; }
.detail-list > div { padding: 12px 0; border-top: 1px solid rgba(232, 188, 98, 0.2); }
.detail-list dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; color: var(--gold); }
.detail-list dd { margin: 2px 0 0; font-size: 0.95rem; }
.detail-list ul { margin: 4px 0 0; padding-left: 1.2em; }
.detail-common { margin: 16px 0 18px; font-size: 0.85rem; color: var(--snow-dim); }
.detail-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* =====================================================================
   PRE-LAUNCH CHECK MODE (?check)
   ===================================================================== */
.is-unset { outline: 2px dashed #ff4d63 !important; outline-offset: 4px; }
.check-panel {
  position: fixed; left: 10px; bottom: calc(var(--dock-h) + 24px + var(--safe-b)); z-index: 60;
  width: min(92vw, 380px); max-height: 46vh; overflow: auto;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(40, 4, 12, 0.94); border: 1px solid #ff4d63;
  font-size: 0.78rem; line-height: 1.6;
}
.check-panel h2 { margin: 0 0 6px; font-size: 0.9rem; }
.check-panel ul { margin: 0; padding-left: 1.2em; }

/* =====================================================================
   MOBILE PERFORMANCE + REDUCED MOTION
   ===================================================================== */
@media (max-width: 640px) {
  .aurora { filter: blur(24px); }
  .layer-bokeh { filter: none; opacity: 0.7; }
  .chapter-body { padding-block: 14vh 10vh; }
  .campaign-card { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .tw { opacity: 0.7; }
  .pt { display: none; }
  .js .hero-reveal { opacity: 1; }
  .js .opening { display: none; }
  .has-gsap .gift-pin { height: auto; }
  .has-gsap .gift-sticky { position: relative; height: 90svh; }
  .gift-burst { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  .gift-lid { transform: translate(10%, -90%) rotate(-16deg); }
  .gift-bow { opacity: 0; }
}
