/* 大花火大会 — official site. Design notes: site/DESIGN.md */

:root {
  --night-0: #05070f; --night-1: #0a0d1c; --night-2: #141a33;
  --ember: #ff8a3d; --lantern: #ffb56b; --shu: #e0583a;
  --gold-hi: #fff6dc; --gold: #e9c27a; --gold-lo: #8a5a1c;
  --ink: #eef0f6; --ink-soft: #a6abba; --ink-faint: #6b7085;
  --hair: rgba(233, 194, 122, .22);
  /* sky light from the fireworks engine (main.js writes these every frame) */
  --flash-r: 255; --flash-g: 220; --flash-b: 160; --flash-a: 0;
  --flash: rgba(var(--flash-r), var(--flash-g), var(--flash-b), var(--flash-a));
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: max(6vw, 20px);
  --display: "Hanabi Display", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --serif: "Hanabi Serif", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --brush: "Hanabi Brush", var(--display);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night-0); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
.nw { white-space: nowrap; }
:lang(ja) .text, :lang(ja) .title, :lang(ja) .venue-text, :lang(ja) .prose p, :lang(ja) .prose dd { word-break: auto-phrase; }
.title, .legal-title, .venue-text, .hero-tagline { text-wrap: balance; }
.text, .prose p { text-wrap: pretty; }
body {
  margin: 0; min-height: 100vh; background: var(--night-0);
  font: 400 clamp(15px, .3vw + 14px, 18px) / 1.95 var(--serif);
  font-feature-settings: "palt" 0; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[data-lang="en"] body, body[data-lang="en"] { line-height: 1.75; letter-spacing: .005em; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(233, 194, 122, .35); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--night-2); color: var(--gold-hi); text-decoration: none; border: 1px solid var(--hair); transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
br.sp { display: none; }
@media (max-width: 640px) { br.sp { display: inline; } }

/* ------------------------------------------------------------------ sky + grain */
#sky { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; display: block; background: var(--night-0); }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{background-position:0 0} 20%{background-position:-37px 23px} 40%{background-position:29px -41px} 60%{background-position:-17px -11px} 80%{background-position:43px 31px} 100%{background-position:0 0} }
main, .foot, .bar { position: relative; z-index: 2; }

/* ------------------------------------------------------------------ top bar */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: max(env(safe-area-inset-top), 18px) var(--gutter) 18px; pointer-events: none;
  transition: opacity 1s var(--ease), transform 1s var(--ease); }
.bar-mark { transition: opacity .8s var(--ease); }
.js .page-home .bar:not(.on) .bar-mark { opacity: 0; pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar::before { content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none;
  height: 110px; bottom: auto; background: linear-gradient(to bottom, rgba(5, 7, 15, .9) 0, rgba(5, 7, 15, .65) 50%, rgba(5, 7, 15, 0)); }
.bar-mark img { height: 22px; width: auto; filter: drop-shadow(0 0 12px rgba(255, 200, 120, .25)); }
[data-lang="en"] .bar-mark img { height: 26px; }
.bar-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-size: 13px; letter-spacing: .14em; }
.bar-nav a { text-decoration: none; color: var(--ink-soft); transition: color .3s; }
.bar-nav a:hover { color: var(--gold-hi); }
.lang { font-family: var(--display); letter-spacing: .2em; }
.sound { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--ink-soft); font: inherit; letter-spacing: inherit; cursor: pointer; }
.sound:hover, .sound[aria-pressed="true"] { color: var(--gold-hi); }
.sound-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-bars i { width: 2px; height: 3px; background: currentColor; opacity: .8; }
.sound[aria-pressed="true"] .sound-bars i { animation: eq 1.1s var(--ease) infinite; }
.sound-bars i:nth-child(2) { animation-delay: -.3s !important; } .sound-bars i:nth-child(3) { animation-delay: -.7s !important; } .sound-bars i:nth-child(4) { animation-delay: -.5s !important; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.sound-short { display: none; }
@media (max-width: 560px) {
  .sound-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sound-short { display: inline; } .sound { gap: 7px; }
  .bar-nav { gap: 18px; font-size: 12px; letter-spacing: .1em; }
  .bar-mark img { height: 18px; } [data-lang="en"] .bar-mark img { height: 20px; }
}

/* ------------------------------------------------------------------ shared type */
.num { font-family: var(--display); font-weight: 800; color: var(--gold); opacity: .75; font-size: 15px; letter-spacing: .3em; margin: 0 0 26px; white-space: nowrap; }
[lang="ja"] .num, [data-lang="ja"] .num { writing-mode: vertical-rl; font-size: 17px; letter-spacing: .4em; position: absolute; left: calc(var(--gutter) * -.55); top: .4em; margin: 0; }
.kicker { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .38em; color: var(--gold); margin: 0 0 22px; text-transform: uppercase; }
.kicker::before { content: ""; display: inline-block; width: 36px; height: 1px; background: var(--gold); opacity: .6; vertical-align: middle; margin-right: 16px; transform: translateY(-1px); }
.title { font-family: var(--display); font-weight: 800; font-feature-settings: "palt"; letter-spacing: .04em; line-height: 1.32; margin: 0 0 clamp(24px, 3vw, 40px);
  font-size: clamp(32px, 4.6vw, 68px); color: var(--gold-hi);
  text-shadow: 0 0 calc(var(--flash-a) * 60px) var(--flash), 0 2px 30px rgba(0, 0, 0, .6); }
[data-lang="en"] .title { letter-spacing: .005em; line-height: 1.12; }
.title-xl { font-size: clamp(44px, 8.2vw, 128px); line-height: 1.12; }
.text { max-width: 31em; color: rgba(238, 240, 246, .86); margin: 0 0 1.4em; font-feature-settings: "palt" 0; }
[data-lang="en"] .text { max-width: 34em; }
.note { color: var(--ink-soft); font-size: .86em; letter-spacing: .06em; }
.list { color: var(--gold); opacity: .85; font-size: 13px; letter-spacing: .14em; line-height: 2.2; max-width: 36em; }
.dot-sep { opacity: .5; }
a.inline { color: var(--gold-hi); text-decoration: none; border-bottom: 1px solid var(--hair); padding-bottom: 2px; transition: border-color .3s; white-space: nowrap; }
a.inline:hover { border-color: var(--gold); }

/* reveal: rises 14px and un-blurs */
.js [data-reveal] { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease), filter 1.3s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* micro-shake of the type layer on big booms (main.js sets --shake) */
main { transform: translate3d(calc(var(--shake-x, 0) * 1px), calc(var(--shake-y, 0) * 1px), 0); }

/* ------------------------------------------------------------------ chapters */
.chapter { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 18vh var(--gutter); }
.chapter-inner { position: relative; width: min(100%, 720px); isolation: isolate; }
/* the night gathers behind the words: a wide, soft darkness so copy stays readable over bright shells */
.chapter-inner::before { content: ""; position: absolute; inset: -18% -22% -22% -26%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(5, 7, 15, .72), rgba(5, 7, 15, .45) 55%, rgba(5, 7, 15, 0)); }
.align-left { margin-right: auto; margin-left: 4vw; }
.align-right { margin-left: auto; margin-right: 2vw; }
@media (max-width: 820px) { .align-left, .align-right { margin: 0; } .chapter { padding: 16vh var(--gutter); } [data-lang="ja"] .num { position: static; writing-mode: horizontal-tb; margin: 0 0 14px; } }

/* ------------------------------------------------------------------ 0 hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter); }
.hero-logo { margin: 0 0 clamp(26px, 4vh, 48px); width: min(82vw, 960px); }
[data-lang="en"] .hero-logo { width: min(80vw, 860px); }
.hero-logo img { width: 100%; height: auto; }
.js .hero-logo img { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(14px) drop-shadow(0 0 0 rgba(0,0,0,0));
  transition: opacity 2.2s var(--ease), transform 2.6s var(--ease), filter 2.2s var(--ease); }
.js .hero.lit .hero-logo img { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 6px 40px rgba(255, 190, 110, .28)) drop-shadow(0 0 calc(var(--flash-a) * 90px) var(--flash)); }
.hero-tagline { font-family: var(--display); font-weight: 800; font-feature-settings: "palt"; font-size: clamp(17px, 1.9vw, 27px); letter-spacing: .32em; color: var(--gold-hi); margin: 0 0 14px; transition-delay: .9s; text-shadow: 0 0 24px rgba(0, 0, 0, .8); }
[data-lang="en"] .hero-tagline { letter-spacing: .08em; font-size: clamp(17px, 1.7vw, 25px); }
.hero-platform { font-size: 12px; letter-spacing: .3em; color: var(--ink-soft); margin: 0; transition-delay: 1.3s; }
.hero-cue { position: absolute; bottom: max(env(safe-area-inset-bottom), 28px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 14px; text-decoration: none; color: var(--ink-faint);
  opacity: 1; transition: opacity 1.4s var(--ease) 2.2s; }
.js .hero-cue { opacity: 0; }
.js .hero.lit .hero-cue { opacity: var(--cue, 1); transition: opacity .3s linear; }
.cue-line { width: 1px; height: 64px; background: linear-gradient(to bottom, rgba(233, 194, 122, 0), var(--gold)); transform-origin: top; animation: cue 2.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(20px); opacity: 0; } }
.cue-text { font-size: 11px; letter-spacing: .5em; writing-mode: vertical-rl; }
[data-lang="en"] .cue-text { writing-mode: horizontal-tb; letter-spacing: .3em; text-transform: uppercase; }

/* ------------------------------------------------------------------ 二 venues (sticky stage, 6 scenes) */
.venues { position: relative; height: 560vh; }
.venues-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* the stage fades in from the sky above and out into the sky below: the pictures and their shade share one mask
   (a shade outside the mask drew a hard dark line where the stage begins) */
.venues-media, .venues-shade {
  -webkit-mask-image: linear-gradient(to bottom, transparent calc((1 - var(--enter, 1)) * 30%), #000 calc((1 - var(--enter, 1)) * 70%), #000 calc(100% - (1 - var(--leave, 1)) * 70%), transparent calc(100% - (1 - var(--leave, 1)) * 30%));
          mask-image: linear-gradient(to bottom, transparent calc((1 - var(--enter, 1)) * 30%), #000 calc((1 - var(--enter, 1)) * 70%), #000 calc(100% - (1 - var(--leave, 1)) * 70%), transparent calc(100% - (1 - var(--leave, 1)) * 30%));
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.venues-media { position: absolute; inset: 0; }
.venues-media .media { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); will-change: opacity; }
.venues-media .media.on { opacity: 1; }
.media-window { background: transparent; }
.media-window .window { position: absolute; inset: 0; width: 100%; height: 100%; }
.media-window .window-glow { opacity: calc(.4 + var(--flash-a) * 1.6); }
.venues-media img, .venues-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.06 + var(--kb, 0) * .06)); transform-origin: 50% 60%; }
.venues-media video { opacity: 0; transition: opacity 1s var(--ease); }
.venues-media video.ready { opacity: 1; }
.venues-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 52% 44% at 0% 100%, rgba(5, 7, 15, .78) 0%, rgba(5, 7, 15, .5) 45%, rgba(5, 7, 15, 0) 100%),
    linear-gradient(to right, rgba(5, 7, 15, .82) 0%, rgba(5, 7, 15, .35) 38%, rgba(5, 7, 15, 0) 62%),
    linear-gradient(to bottom, rgba(5, 7, 15, .9) 0%, rgba(5, 7, 15, 0) 22%, rgba(5, 7, 15, 0) 72%, rgba(5, 7, 15, .95) 100%); }
.venues-head { position: absolute; top: 15vh; left: var(--gutter); width: min(560px, 80vw); opacity: var(--head-a, 1); transform: translateY(calc((1 - var(--head-a, 1)) * -12px)); }
.venues-head .title { font-size: clamp(26px, 3.2vw, 46px); }
[data-lang="ja"] .venues-head .num { left: -28px; }
.venues-list { list-style: none; margin: 0; padding: 0; }
.venue { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 560px) 1fr auto; grid-template-rows: 1fr auto auto auto;
  padding: 18vh var(--gutter) 13vh; pointer-events: none; }
.venue > * { grid-column: 1; opacity: 0; transform: translateY(16px); filter: blur(5px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.venue.on > * { opacity: 1; transform: none; filter: none; }
.venue.on > :nth-child(2) { transition-delay: .1s; } .venue.on > :nth-child(3) { transition-delay: .2s; } .venue.on > :nth-child(4) { transition-delay: .3s; }
.venue-en { grid-row: 2; } .venue-text { grid-row: 3; } .venue-note { grid-row: 4; }
.venue-name { grid-column: 3; grid-row: 1 / -1; align-self: end; margin: 0; font-family: var(--display); font-weight: 800; color: var(--gold-hi); max-height: 66vh;
  writing-mode: vertical-rl; white-space: nowrap; font-size: clamp(56px, 7.4vw, 124px); letter-spacing: .16em; line-height: 1;
  text-shadow: 0 0 40px rgba(0, 0, 0, .55), 0 0 calc(var(--flash-a) * 60px) var(--flash); transform: translateY(24px); }
.venues .venues-list, .venues .venues-index { opacity: calc(var(--leave, 1) * 1.6 - .6); }
.venue-en { white-space: nowrap; }
.venue-en { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-hi); margin: 0 0 12px; text-shadow: 0 1px 14px rgba(0, 0, 0, .9); }
.venue-en::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--gold); opacity: .6; vertical-align: middle; margin-right: 14px; transform: translateY(-1px); }
/* the captions sit on photographs: full ink, a heavier weight, and a tight dark halo so the strokes hold on any picture */
.venue-text { margin: 0; color: #f6f7fb; font-weight: 600; font-size: clamp(16px, .45vw + 13.5px, 20px); line-height: 1.9; max-width: 26em;
  text-shadow: 0 0 2px rgba(5, 7, 15, .9), 0 1px 4px rgba(5, 7, 15, .85), 0 2px 22px rgba(5, 7, 15, .9); }
.venue-note { margin: 8px 0 0; font-size: 12px; letter-spacing: .12em; color: var(--ink-soft); text-shadow: 0 1px 6px rgba(5, 7, 15, .9); }
.venues-index { position: absolute; left: var(--gutter); bottom: 5vh; display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: 12px; letter-spacing: .2em; color: var(--gold); }
.vi-bar { position: relative; width: 90px; height: 1px; background: var(--hair); }
.vi-bar i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(var(--vp, 0)); }
@media (max-width: 820px) {
  .venues-shade { background: linear-gradient(to bottom, rgba(5, 7, 15, .9) 0%, rgba(5, 7, 15, .2) 30%, rgba(5, 7, 15, .3) 48%, rgba(5, 7, 15, .9) 70%, rgba(5, 7, 15, .97) 100%); }
  .venue { grid-template-columns: 1fr auto; padding-bottom: 9vh; }
  .venue-name { grid-column: 2; grid-row: 1 / 2; font-size: 58px; align-self: end; margin-bottom: 18px; }
  .venues-head { top: 12vh; }
  .venues-index { top: auto; bottom: 4vh; }
}

/* ------------------------------------------------------------------ 三 shaku (the sky alone) */
.chapter-shaku { min-height: 0; height: 300vh; display: block; padding: 0; }
.shaku-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: flex-end; padding: 0 var(--gutter) 14vh; }
.chapter-shaku .chapter-inner { width: min(100%, 860px); }
.chapter-shaku .text { max-width: 30em; }

/* ------------------------------------------------------------------ 四 ennichi (warmth) */
.chapter-ennichi { display: block; min-height: 150vh; padding: 30vh var(--gutter) 22vh; }
.ennichi-bg { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 70%, transparent 100%); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.ennichi-bg .media { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.ennichi-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.78); transform: scale(1.04); }
.ennichi-bg .media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(5, 7, 15, .88) 0%, rgba(5, 7, 15, .55) 40%, rgba(5, 7, 15, .15) 70%, rgba(5, 7, 15, .35) 100%); }
.ennichi-grid { position: relative; display: grid; grid-template-columns: minmax(0, 620px) 1fr; gap: 6vw; align-items: end; }
.ennichi-copy { width: auto; }
.insets { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-self: end; justify-self: end; width: min(100%, 560px); }
.frame { margin: 0; position: relative; }
.frame .media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #120a08; }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.85); }
.frame video { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.frame video.ready { opacity: 1; }
.frame .media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 210, 160, .14), inset 0 0 50px rgba(0, 0, 0, .4); pointer-events: none; }
.frame-c { margin-top: 12vh; }
.frame figcaption { margin-top: 12px; font-size: 12px; letter-spacing: .24em; color: var(--ink-soft); font-family: var(--display); }
.frame figcaption::before { content: ""; display: inline-block; width: 20px; height: 1px; background: var(--lantern); opacity: .6; vertical-align: middle; margin-right: 10px; }
@media (max-width: 900px) {
  .chapter-ennichi { padding-top: 22vh; }
  .ennichi-grid { grid-template-columns: 1fr; gap: 8vh; }
  .insets { justify-self: stretch; width: 100%; }
  .frame-c { margin-top: 6vh; }
}

/* ------------------------------------------------------------------ 五 song (bar meter) */
.chapter-song { display: block; min-height: 0; height: 200vh; padding: 0; }
.song-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: 0 var(--gutter); }
.chapter-song .chapter-inner { width: min(100%, 600px); margin-top: -14vh; }
.meter { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 9vh; height: 20vh; pointer-events: none; }
.meter-bars { position: absolute; inset: 0 0 26px; display: flex; align-items: center; justify-content: space-between; }
.meter-bars i { flex: 1 1 0; min-width: 1px; max-width: 2px; height: calc(var(--h) * 100%); background: rgba(233, 194, 122, .16); border-radius: 1px; transition: background .25s; }
.meter-bars i.lit { background: var(--gold); box-shadow: 0 0 8px rgba(233, 194, 122, .45); }
.meter-bars i.peak.lit { background: var(--gold-hi); box-shadow: 0 0 14px rgba(255, 230, 180, .8); }
.meter-labels { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; border-top: 1px solid var(--hair); }
.meter-labels span { position: absolute; top: 8px; font-family: var(--display); font-size: 11px; letter-spacing: .28em; color: var(--ink-soft); white-space: nowrap; }
.meter-labels span::before { content: ""; position: absolute; left: 0; top: -12px; width: 1px; height: 7px; background: var(--gold); opacity: .6; }
@media (max-width: 820px) { .meter { bottom: 6vh; height: 16vh; } .chapter-song .chapter-inner { margin-top: -18vh; } }

/* ------------------------------------------------------------------ 〆 finale */
.finale { position: relative; height: 260vh; padding: 0 var(--gutter); text-align: center; }
.finale-stage { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; padding-top: 16vh; }
.finale-inner { position: relative; max-width: 760px; isolation: isolate; }
.finale-inner::before { content: ""; position: absolute; inset: -20% -30%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(5, 7, 15, .7), rgba(5, 7, 15, .4) 55%, rgba(5, 7, 15, 0)); }
.finale .title { font-size: clamp(36px, 5.4vw, 84px); }
.finale .text { margin: 0 auto 2.6em; max-width: 30em; }
.brush { font-family: var(--brush); font-weight: 400; font-size: clamp(46px, 6vw, 90px); letter-spacing: 0; text-transform: none; color: var(--gold); line-height: 1; margin-bottom: 26px; }
.brush::before { display: none; }
[data-lang="en"] .finale .brush { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .4em; text-transform: uppercase; }
.cta-wrap { margin: 0 0 56px; }
.cta { display: inline-flex; align-items: center; gap: 18px; padding: 20px 34px; font-family: var(--display); font-weight: 800; letter-spacing: .2em; font-size: 15px;
  color: var(--night-0); text-decoration: none; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #c89a4c);
  box-shadow: 0 0 0 1px rgba(255, 240, 210, .4), 0 10px 40px rgba(233, 170, 90, .25); transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.cta:hover { box-shadow: 0 0 0 1px rgba(255, 240, 210, .7), 0 14px 60px rgba(233, 170, 90, .45); transform: translateY(-2px); }
.cta-arrow { transition: transform .4s var(--ease); } .cta:hover .cta-arrow { transform: translateX(4px); }
.cta-soon { background: none; box-shadow: none; padding: 0; color: var(--gold); letter-spacing: .3em; font-size: 13px; cursor: default; }
.cta-soon::before { content: "Meta Horizon Store"; color: var(--ink-soft); margin-right: 14px; letter-spacing: .16em; }
.facts { margin: 0 auto; font-size: 12px; letter-spacing: .14em; line-height: 2.2; color: var(--ink-soft); }
.senko-spot { position: absolute; left: 50%; top: 70vh; width: 1px; height: 1px; }

/* ------------------------------------------------------------------ footer */
.foot { padding: 72px var(--gutter) max(env(safe-area-inset-bottom), 48px); border-top: 1px solid rgba(233, 194, 122, .1); background: linear-gradient(to bottom, rgba(5, 7, 15, 0), rgba(5, 7, 15, .85) 40%); }
.foot-inner { display: grid; grid-template-columns: auto 1fr; gap: 22px 40px; align-items: center; }
.foot-mark img { height: 28px; width: auto; opacity: .9; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 28px; font-size: 13px; letter-spacing: .12em; }
.foot-nav a { text-decoration: none; color: var(--ink-soft); transition: color .3s; } .foot-nav a:hover { color: var(--gold-hi); }
.foot-copy, .foot-note { margin: 0; font-size: 11px; letter-spacing: .1em; color: var(--ink-faint); }
.foot-note { text-align: right; }
@media (max-width: 720px) { .foot-inner { grid-template-columns: 1fr; } .foot-nav { justify-content: flex-start; } .foot-note { text-align: left; } }

/* ------------------------------------------------------------------ legal / support */
.legal { padding: 22vh var(--gutter) 16vh; }
.legal-head { max-width: 1100px; margin: 0 auto 9vh; }
.legal-head .kicker a { text-decoration: none; }
.legal-title { font-family: var(--display); font-weight: 800; font-feature-settings: "palt"; font-size: clamp(36px, 5.6vw, 76px); letter-spacing: .05em; line-height: 1.2; margin: 0; color: var(--gold-hi); }
.legal-body { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 680px); gap: 72px; justify-content: space-between; }
.toc { position: sticky; top: 120px; align-self: start; font-size: 13px; }
.toc-label { font-family: var(--display); font-weight: 800; letter-spacing: .34em; color: var(--gold); margin: 0 0 18px; font-size: 12px; text-transform: uppercase; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 1px solid var(--hair); }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 7px 0 7px 18px; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; color: var(--ink-faint); line-height: 1.5; transition: color .3s, border-color .3s; }
.toc a::before { content: counter(toc, decimal-leading-zero) "  "; font-family: var(--display); font-size: 11px; letter-spacing: .1em; color: var(--gold-lo); }
.toc a:hover, .toc a.on { color: var(--gold-hi); border-color: var(--gold); }
.prose { font-size: 16px; line-height: 2; color: rgba(238, 240, 246, .88); }
[data-lang="en"] .prose { line-height: 1.8; }
.prose .lead { font-size: 1.12em; color: var(--ink); margin: 0 0 1em; }
.prose .updated { font-size: 12px; letter-spacing: .14em; color: var(--ink-faint); margin: 0 0 7vh; }
.prose section { padding-top: 4vh; margin-top: 4vh; border-top: 1px solid rgba(233, 194, 122, .12); scroll-margin-top: 100px; }
.prose h2 { font-family: var(--display); font-weight: 800; font-feature-settings: "palt"; font-size: clamp(21px, 2vw, 27px); letter-spacing: .06em; line-height: 1.5; color: var(--gold-hi); margin: 0 0 1em; }
.prose h3 { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .06em; color: var(--gold); margin: 2em 0 .6em; }
.prose p, .prose ul, .prose ol, .prose dl { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin: .35em 0; } .prose li::marker { color: var(--gold-lo); }
.prose a { color: var(--gold-hi); text-decoration: none; border-bottom: 1px solid var(--hair); } .prose a:hover { border-color: var(--gold); }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86em; color: var(--gold-hi); background: rgba(233, 194, 122, .08); padding: .1em .4em; border-radius: 3px; word-break: break-all; }
.prose pre { margin: 0 0 1.2em; padding: 18px 20px; overflow-x: auto; background: rgba(10, 13, 28, .8); border: 1px solid rgba(233, 194, 122, .14); border-radius: 4px; }
.prose pre code { background: none; padding: 0; word-break: normal; white-space: pre; font-size: 13px; line-height: 1.7; }
.prose dl { margin-top: 1.4em; }
.prose dt { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .04em; color: var(--gold-hi); margin: 1.8em 0 .5em; padding-left: 26px; position: relative; }
.prose dt::before { content: "問"; position: absolute; left: 0; top: .05em; font-size: 12px; color: var(--gold); opacity: .8; }
[data-lang="en"] .prose dt::before { content: "Q"; }
.prose dd { margin: 0 0 0 26px; }
@media (max-width: 900px) { .legal-body { grid-template-columns: minmax(0, 1fr); gap: 40px; } .toc { position: static; } }
.legal-body > * { min-width: 0; }
.prose { overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .hero-logo img { opacity: 1; transform: none; filter: none; }
  .hero-cue { opacity: 1; }
  main { transform: none !important; }
  .venues-media img, .venues-media video { transform: none; }
  .grain { animation: none; }
}
.page-legal .sound { display: none; }

/* ------------------------------------------------------------------ 404 */
.nf { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); max-width: 900px; }
.nf-title { font-family: var(--display); font-weight: 800; font-feature-settings: "palt"; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.35; color: var(--gold-hi); margin: 0 0 28px; }
.chapter, .finale, .hero { overflow-x: clip; }

/* ------------------------------------------------------------------ the game's fireworks (video sprites, screen-blended over the sky) */
.fw-layer { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; mix-blend-mode: screen; }
/* each clip is light on black: inside the layer the clips must add up too, or one clip's black frame hides the shell
   beneath it in a hard rectangle (the "boxes" around overlapping shells) */
.fw-layer video.fw { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; will-change: transform; mix-blend-mode: screen; }

/* ------------------------------------------------------------------ Japanese editorial: chapter titles set vertically beside the text (≥ 700px) */
.kicker::before { display: none; }
.kicker { letter-spacing: .3em; }
@media (min-width: 700px) {
  [data-lang="ja"] .chapter .chapter-inner { display: grid; grid-template-columns: auto minmax(0, 27em); column-gap: clamp(40px, 5vw, 88px); align-items: start; width: auto; max-width: 100%; }
  [data-lang="ja"] .chapter .chapter-inner > * { grid-column: 2; }
  [data-lang="ja"] .chapter .chapter-inner > .title { grid-column: 1; grid-row: 1 / span 8; writing-mode: vertical-rl; text-orientation: mixed;
    font-size: clamp(46px, 5.4vw, 92px); letter-spacing: .14em; line-height: 1.2; margin: 0; max-height: 78vh; text-wrap: initial; }
  [data-lang="ja"] .chapter .chapter-inner > .num { grid-column: 1; }
  [data-lang="ja"] .chapter .chapter-inner > .kicker { margin-top: .6em; }
  [data-lang="ja"] .chapter-shaku .chapter-inner > .title { font-size: clamp(64px, 8.4vw, 140px); letter-spacing: .1em; }
  [data-lang="ja"] .chapter-shaku .chapter-inner { grid-template-columns: auto minmax(0, 24em); }
  [data-lang="ja"] .finale .title { writing-mode: vertical-rl; margin: 0 auto 1.2em; font-size: clamp(48px, 5.6vw, 96px); letter-spacing: .16em; line-height: 1.2; max-height: 70vh; }
}

/* venue captions keep a soft dark ground under them; the room's sill catches the shell light */
.venue::before { content: ""; position: absolute; left: 0; bottom: 0; width: min(780px, 90vw); height: 46vh; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 100% at 0% 100%, rgba(5, 7, 15, .62), rgba(5, 7, 15, 0) 70%); }
.venue { isolation: isolate; }
.media-window .sill { opacity: calc(.04 + var(--flash-a) * .9); }
.finale .title { margin-bottom: .9em; }
