/* ライバー個別ページの「ステージ演出」ヒーロー（build_livers.py が assets/stage/<slug>/ の
   素材を見つけたときだけ使う）。kit.css（site-motion-kit）の上に、このページ固有の見た目を足す。 */

:root {
  --k-ink: #05060f; --k-paper: #eef0ff;
  --k-opening-zoom: 1.06;
}
body { --accent: var(--lc, var(--accent)); }

/* ===== ステージ（舞台裏 → ステージ → プロフィール） ===== */
.liver-stage { --k-scene-length: 5; padding: 0; }
.liver-stage .k-scene__stage { background: #05060f; }
.liver-stage .k-frames { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.liver-stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.liver-stage .k-frames[data-frame] ~ .poster { opacity: 0; }
/* 舞台袖の静止画：最初の 10% で消え、キャラクターが現れる */
.liver-stage .backstage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: clamp(0, calc(1 - var(--k-p) / .1), 1); pointer-events: none; }
/* 客席の静止画：.62〜.74 で切り替わる */
.liver-stage .arena { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: clamp(0, calc((var(--k-p) - .62) / .12), 1); scale: calc(1.08 - clamp(0, calc((var(--k-p) - .62) / .38), 1) * .08); pointer-events: none; }
/* 照明を落とし、スポットライトを当てる */
.liver-stage .dimmer { position: absolute; inset: 0; background: rgba(3,4,10,.72); opacity: clamp(0, calc((var(--k-p) - .58) / .18), 1); pointer-events: none; }
.liver-stage .light { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 38%, color-mix(in srgb, var(--lc) 34%, transparent), transparent 52%); opacity: clamp(0, calc((var(--k-p) - .62) / .2), 1); pointer-events: none; }
.liver-stage .veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,15,.78) 0%, rgba(5,6,15,.35) 45%, transparent 70%); opacity: clamp(0, calc(1 - var(--k-p) / .5), 1); pointer-events: none; }
html.motion-off .liver-stage .backstage, html:not(.js) .liver-stage .backstage { opacity: 0; }
html.motion-off .liver-stage .arena, html:not(.js) .liver-stage .arena { opacity: 1; scale: 1; }
html.motion-off .liver-stage .dimmer, html:not(.js) .liver-stage .dimmer { opacity: .6; }

.liver-stage .k-scene__panel { display: grid; align-content: end; padding: 0 clamp(20px, 7vw, 110px) clamp(96px, 14vh, 150px); }
.liver-stage .copy { max-width: 42em; translate: 0 calc(var(--k-step-p) * -14px); }
.liver-stage .crumb { font-family: var(--font-en); font-size: 12px; letter-spacing: .12em; color: var(--muted); margin: 0 0 18px; }
.liver-stage .crumb a { color: var(--muted); }
.liver-stage .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-en); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--lc); margin: 0 0 14px; }
.liver-stage .eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--lc); }
.liver-stage h1, .liver-stage .h { font-size: clamp(34px, 5.4vw, 76px); font-weight: 900; line-height: 1.15; margin: 0; }
.liver-stage .stroke { display: block; font-family: var(--font-en); -webkit-text-stroke: 1.5px var(--text); color: transparent; font-weight: 800; letter-spacing: .02em; }
.liver-stage .lead { margin: 16px 0 0; color: var(--muted); max-width: 34em; font-size: 15px; line-height: 1.9; }
.liver-stage .liver-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.liver-stage .tag-chip { background: rgba(5,6,15,.5); backdrop-filter: blur(6px); }

/* 3区間目：スポットライトの中にプロフィール */
.liver-stage .k-scene__panel[data-i="2"] { align-content: center; justify-items: center; text-align: center; }
.liver-stage .profile { display: grid; justify-items: center; gap: 14px; }
.liver-stage .profile .liver-avatar { width: clamp(120px, 16vw, 176px); height: auto; aspect-ratio: 1; box-shadow: 0 0 60px -6px var(--lc), 0 30px 60px rgba(0,0,0,.6); }
.liver-stage .profile .liver-en { margin: 0; }
.liver-stage .profile .big-name { font-size: clamp(40px, 7vw, 92px); font-family: var(--font-en); font-weight: 800; line-height: 1; letter-spacing: -.01em; margin: 0; text-shadow: 0 10px 40px rgba(0,0,0,.6); }
.liver-stage .profile .liver-tags { justify-content: center; margin-top: 4px; }
.liver-stage .stage-cta { margin-top: 10px; display: inline-flex; gap: 8px; align-items: center; padding: 12px 22px; border-radius: 999px; background: var(--lc); color: var(--bg); font-weight: 700; font-size: 14px; text-decoration: none; }

.liver-stage .bottom { position: absolute; inset: auto clamp(16px, 4vw, 40px) 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; z-index: 6; font-family: var(--font-en); font-size: 11px; letter-spacing: .25em; color: var(--muted); }
.liver-stage .bottom b { color: var(--text); font-size: 20px; letter-spacing: 0; }
.liver-stage .cue { display: inline-flex; align-items: center; gap: 10px; }
.liver-stage .cue i { display: block; width: 1px; height: 28px; background: var(--muted); animation: stage-cue 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes stage-cue { 0%, 100% { transform: scaleY(.2); opacity: .2; } 50% { transform: scaleY(1); opacity: 1; } }
.liver-stage .steps { display: flex; gap: 6px; }
.liver-stage .steps button { width: 28px; height: 4px; border: 0; border-radius: 2px; background: var(--line); cursor: pointer; padding: 0; }
.liver-stage .steps button[aria-pressed="true"] { background: var(--lc); }
.liver-stage .tools { display: inline-flex; gap: 8px; }
.stage-btn { font: inherit; font-family: var(--font-en); font-size: 11px; letter-spacing: .1em; color: var(--text); border: 1px solid var(--line); background: rgba(5,6,15,.55); padding: 6px 12px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(6px); white-space: nowrap; }
.liver-stage .track { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); z-index: 6; }
.liver-stage .track i { display: block; height: 100%; background: var(--lc); transform-origin: left; transform: scaleX(var(--k-p)); }
@media (max-width: 760px) {
  .liver-stage .k-scene__panel { padding-bottom: 120px; }
  .liver-stage .cue span, .liver-stage .counter, .liver-stage .steps { display: none; }
  .liver-stage .bottom { justify-content: flex-end; }
}
html.motion-off .liver-stage .k-scene__panel, html:not(.js) .liver-stage .k-scene__panel { padding-top: 140px; padding-bottom: 60px; min-height: 100svh; }

/* ===== オープニングのタイトル ===== */
.k-opening__title .en { font-family: var(--font-en); font-size: 12px; letter-spacing: .4em; color: var(--lc); }
.k-opening__title h2 { font-family: var(--font-en); font-size: clamp(48px, 9vw, 120px); font-weight: 800; line-height: 1; text-shadow: 0 10px 40px rgba(0,0,0,.7); margin: 0; }
.k-opening__title p { color: rgba(255,255,255,.85); font-size: 15px; margin: 0; }
.k-opening .sr-only { position: absolute; left: -9999px; }
.k-opening, .k-opening * { cursor: auto; }

/* サイト共通の main フェードとぶつからないように */
body.opening-active .site-header { visibility: hidden; }
