/* ==========================================================================
   次元道标官网 · Cyber-Astral Dark Design System
   Zero external CDN / zero Google Fonts blocking — self-hosted & CSP safe
   ========================================================================== */

@font-face {
  font-family: "TitleHeavy";
  src: url("assets/fonts/title-heavy.woff?v=cel31") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SloganSerif";
  src: url("assets/fonts/slogan-serif.woff?v=cel31") format("woff");
  font-weight: 650;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #131222;
  --surface: #131222;
  --surface-lowest: #0d0c1c;
  --surface-low: #1b1a2a;
  --surface-container: #1f1e2f;
  --surface-high: #292839;
  --surface-highest: #343345;
  --surface-bright: #393749;

  --on-surface: #e4e0f7;
  --on-surface-variant: #cbc3d7;
  --outline: #958ea0;
  --outline-variant: #494454;

  --primary: #d0bcff;
  --primary-fixed: #e9ddff;
  --primary-container: #a078ff;
  --on-primary: #3c0091;
  --on-primary-container: #340080;

  --secondary: #ffb0cd;
  --secondary-fixed: #ffd9e4;
  --secondary-container: #aa0266;
  --on-secondary: #640039;

  --tertiary: #7bd0ff;
  --tertiary-fixed: #c4e7ff;
  --tertiary-fixed-dim: #7bd0ff;
  --tertiary-container: #009bd1;
  --on-tertiary: #00354a;

  --font-display: "Sora", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-sans: "Plus Jakarta Sans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --font-title: "TitleHeavy", "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  --font-serif: "SloganSerif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --container: 1320px;
}

body[data-scene-theme="s01"] { --ink: #2A1F66; --af: #E0407E; --halo: rgba(255, 255, 255, 0.85); --scene-base: #eef0ff; }
body[data-scene-theme="s02"] { --ink: #14295E; --af: #E0407E; --halo: rgba(255, 255, 255, 0.85); --scene-base: #e8f1fb; }
body[data-scene-theme="s03"] { --ink: #3B2458; --af: #E0407E; --halo: rgba(255, 255, 255, 0.85); --scene-base: #f9efe5; }
body[data-scene-theme="s04"] { --ink: #F4EEFF; --af: #FFB86B; --halo: rgba(10, 6, 30, 0.72); --scene-base: #120b24; }
body[data-scene-theme="s05"] { --ink: #3E1A4F; --af: #E0407E; --halo: rgba(255, 236, 236, 0.82); --scene-base: #f8e5ea; }
body[data-scene-theme="s06"] { --ink: #FFF1E6; --af: #FFB86B; --halo: rgba(10, 8, 30, 0.78); --scene-base: #100d26; }

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  scroll-behavior: auto;
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--on-surface);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 22px;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.intro-locked {
  overflow: hidden;
}

::-webkit-scrollbar {
  display: none;
}

::selection {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

img, svg {
  display: block;
}

h1, h2, h3, p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--tertiary);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 9999px;
  background: var(--surface-highest);
  color: var(--primary-fixed);
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ==========================================================================
   1. Ambient Cosmos Backdrop Orbs
   ========================================================================== */
.ambient-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 9999px;
}

.ambient-orb--violet {
  top: -160px;
  left: 25%;
  width: 550px;
  height: 550px;
  background: rgba(160, 120, 255, 0.20);
  filter: blur(140px);
}

.ambient-orb--pink {
  top: 33%;
  right: -160px;
  width: 600px;
  height: 600px;
  background: rgba(170, 2, 102, 0.15);
  filter: blur(160px);
}

.ambient-orb--cyan {
  bottom: -80px;
  left: 33%;
  width: 500px;
  height: 500px;
  background: rgba(0, 155, 209, 0.15);
  filter: blur(140px);
}

/* ==========================================================================
   2. Intro Splash Stage (Line-Art -> Color -> Wake & Reach -> Blend Into BG)
   ========================================================================== */
.beacon-intro {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #0b0a18;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.85s var(--ease-out), visibility 0.85s var(--ease-out);
  touch-action: none;
  user-select: none;
}

.beacon-intro[hidden] {
  display: none !important;
}

html.intro-booting .beacon-intro[hidden] {
  display: block !important;
}

.beacon-intro.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.beacon-intro canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.intro-hud {
  position: absolute;
  top: 24px;
  left: 28px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 9999px;
  background: rgba(13, 12, 28, 0.56);
  border: 1px solid rgba(208, 188, 255, 0.20);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--on-surface-variant);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out);
}

.beacon-intro.is-handoff .intro-hud {
  opacity: 0;
  transform: translateY(-6px);
}

.intro-hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--tertiary);
  box-shadow: 0 0 10px rgba(123, 208, 255, 0.9);
  animation: beaconPulse 1.6s ease-in-out infinite;
}

.intro-skip-btn {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border-radius: 9999px;
  background: rgba(25, 23, 44, 0.72);
  border: 1px solid rgba(208, 188, 255, 0.26);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--on-surface);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 28px rgba(6, 5, 16, 0.55);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, opacity 0.45s ease;
}

.intro-skip-btn:hover {
  background: rgba(45, 42, 74, 0.88);
  border-color: rgba(123, 208, 255, 0.55);
  transform: translateY(-1px);
}

.intro-skip-btn:active {
  transform: scale(0.97);
}

.beacon-intro.is-handoff .intro-skip-btn {
  opacity: 0;
  pointer-events: none;
}

.intro-skip-ring {
  width: 20px;
  height: 20px;
  transform: rotate(-90deg);
}

.intro-skip-ring circle {
  fill: none;
  stroke-width: 2.2;
}

.intro-skip-ring .ring-track {
  stroke: rgba(208, 188, 255, 0.22);
}

.intro-skip-ring .ring-progress {
  stroke: var(--tertiary);
  stroke-linecap: round;
  stroke-dasharray: 50.265;
  stroke-dashoffset: 50.265;
}

.intro-skip-kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--tertiary);
}

/* ==========================================================================
   3. Header & Mobile Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(19, 18, 34, 0.74);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(11, 10, 26, 0.48);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(13, 12, 28, 0.88);
  border-bottom-color: rgba(208, 188, 255, 0.12);
}

.brand-app-icon {
  display: none;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.site-header.is-poster-mode {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
  pointer-events: none;
  padding-top: 0;
  color: var(--ink, #2A1F66);
  text-shadow: 0 0 12px var(--halo, rgba(255, 255, 255, 0.85));
}

.site-header.is-poster-mode .header-inner {
  height: auto;
  max-width: none;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 18px 0;
}

.site-header.is-poster-mode .header-left,
.site-header.is-poster-mode .site-nav,
.site-header.is-poster-mode .header-actions {
  pointer-events: auto;
}

.site-header.is-poster-mode .brand-logo {
  display: none;
}

.site-header.is-poster-mode .brand-app-icon {
  display: block;
}

.site-header.is-poster-mode .brand-name {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  color: inherit;
  letter-spacing: 0.04em;
}

.site-header.is-poster-mode .brand-sub {
  display: none;
}

.site-header.is-poster-mode .dev-pill,
.site-header.is-poster-mode .nav-replay-btn,
.site-header.is-poster-mode .cta-glow-pill {
  display: none !important;
}

.site-header.is-poster-mode .header-mascot-btn {
  display: none;
}

.site-header.is-poster-mode .mobile-menu-btn {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: inherit;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .site-header.is-poster-mode .header-inner {
    padding: 30px 52px 0;
  }

  .site-header.is-poster-mode .brand-app-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .site-header.is-poster-mode .brand-name {
    font-size: 17px;
  }

  .site-header.is-poster-mode .brand-sub {
    display: block;
    font-family: Consolas, var(--font-mono);
    font-size: 9.5px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: inherit;
    opacity: 0.72;
    margin-top: 1px;
  }

  .site-header.is-poster-mode .site-nav {
    display: flex;
    gap: 30px;
    margin-left: auto;
    margin-right: 30px;
  }

  .site-header.is-poster-mode .nav-link {
    padding: 4px 0;
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    opacity: 0.82;
  }

  .site-header.is-poster-mode .nav-link:hover,
  .site-header.is-poster-mode .nav-link.is-active {
    color: inherit;
    opacity: 1;
    font-weight: 700;
  }

  .site-header.is-poster-mode .header-mascot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid currentColor;
    box-shadow: none;
    overflow: hidden;
  }

  .site-header.is-poster-mode .mascot-avatar-wrap {
    width: 100%;
    height: 100%;
  }

  .site-header.is-poster-mode .mascot-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }

  .site-header.is-poster-mode .mascot-meta,
  .site-header.is-poster-mode .mascot-status-dot {
    display: none;
  }

  .site-header.is-poster-mode .mobile-menu-btn {
    display: none;
  }
}

body.is-live-overlay-open .site-header.is-poster-mode {
  opacity: 0;
  pointer-events: none;
}

.header-inner {
  height: 62px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: height 0.28s var(--ease-out);
}

@media (min-width: 640px) {
  .header-inner {
    height: 72px;
    padding: 0 24px;
    gap: 16px;
  }
}

@media (min-width: 768px) {
  .header-inner {
    height: 80px;
    padding: 0 48px;
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 1;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(208, 188, 255, 0.65));
  transition: transform 0.3s var(--ease-out);
}

@media (min-width: 640px) {
  .brand-logo {
    height: 32px;
  }
}

.brand-link:hover .brand-logo {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--on-surface);
  letter-spacing: 0.025em;
  white-space: nowrap;
  transition: color 0.25s ease;
}

@media (min-width: 640px) {
  .brand-name {
    font-size: 18px;
    line-height: 24px;
  }
}

.brand-link:hover .brand-name {
  color: var(--primary);
}

.brand-sub {
  display: none;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 15px;
  letter-spacing: 0.06em;
  color: var(--tertiary);
  margin-top: -2px;
}

@media (min-width: 640px) {
  .brand-sub {
    display: block;
  }
}

.dev-pill {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(41, 40, 57, 0.8);
  border: 1px solid rgba(208, 188, 255, 0.14);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 0 12px rgba(160, 120, 255, 0.18);
}

@media (min-width: 1280px) {
  .dev-pill {
    display: inline-flex;
  }
}

.site-nav {
  display: none;
  align-items: center;
  gap: 20px;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  padding: 8px 4px;
  white-space: nowrap;
  transition: color 0.25s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--on-surface);
}

.nav-link.is-active {
  color: var(--primary);
  font-weight: 600;
}

.nav-replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(208, 188, 255, 0.18);
  color: var(--on-surface-variant);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.nav-replay-btn:hover {
  color: var(--primary-fixed);
  border-color: rgba(123, 208, 255, 0.45);
  background: rgba(160, 120, 255, 0.16);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-mascot-btn {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 7px;
  border-radius: 9999px;
  background: rgba(31, 30, 47, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 16px rgba(123, 208, 255, 0.14);
  transition: background 0.28s ease, border-color 0.28s ease, transform 0.2s ease;
}

@media (min-width: 640px) {
  .header-mascot-btn {
    display: inline-flex;
  }
}

.header-mascot-btn:hover {
  background: var(--surface-high);
  border-color: rgba(208, 188, 255, 0.35);
}

.mascot-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.mascot-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid rgba(208, 188, 255, 0.48);
  transition: border-color 0.25s ease;
}

.header-mascot-btn:hover .mascot-avatar-img {
  border-color: var(--primary);
}

.mascot-status-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--tertiary);
  border: 2px solid var(--surface);
  box-shadow: 0 0 8px var(--tertiary);
  animation: beaconPulse 2s ease-in-out infinite;
}

.mascot-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.mascot-meta-title {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  color: var(--on-surface);
}

.mascot-meta-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 14px;
  color: var(--tertiary);
}

.cta-glow-pill {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  border-radius: 9999px;
  padding: 1px;
  box-shadow: 0 0 24px rgba(160, 120, 255, 0.40);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.cta-glow-pill:hover {
  box-shadow: 0 0 32px rgba(255, 176, 205, 0.55);
}

.cta-glow-pill:active {
  transform: scale(0.96);
}

.cta-glow-ring {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--tertiary));
  transition: transform 0.55s ease;
}

.cta-glow-pill:hover .cta-glow-ring {
  transform: rotate(180deg);
}

.cta-glow-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 9999px;
  background: rgba(13, 12, 28, 0.90);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--on-surface);
  transition: background 0.25s ease, color 0.25s ease;
}

@media (min-width: 640px) {
  .cta-glow-inner {
    gap: 6px;
    padding: 9px 20px;
    font-size: 13px;
  }
}

.cta-glow-pill:hover .cta-glow-inner {
  background: rgba(13, 12, 28, 0.72);
  color: #ffffff;
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(31, 30, 47, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--on-surface);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav-drawer {
  position: fixed;
  top: calc(70px + env(safe-area-inset-top, 0px));
  left: 14px;
  right: 14px;
  z-index: 49;
  max-height: calc(100dvh - 88px);
  overflow-y: auto;
  padding: 14px;
  border-radius: 20px;
  background: rgba(22, 20, 40, 0.96);
  border: 1px solid rgba(208, 188, 255, 0.22);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 56px rgba(6, 5, 16, 0.80);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-drawer[hidden] {
  display: none;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-surface);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.mobile-nav-item:hover {
  background: rgba(160, 120, 255, 0.16);
  color: var(--primary-fixed);
}

.mobile-drawer-chapters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 6px 0 4px;
}

.mobile-chap-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(108, 92, 231, 0.14);
  border: 1px solid rgba(208, 188, 255, 0.18);
  color: var(--primary-fixed);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mobile-chap-pill:hover,
.mobile-chap-pill.is-active {
  background: linear-gradient(90deg, rgba(160, 120, 255, 0.34), rgba(255, 126, 182, 0.28));
  border-color: rgba(255, 176, 205, 0.45);
  color: #ffffff;
}

/* ==========================================================================
   4. Fixed-Viewport Slide Deck & Hero Stage
   ========================================================================== */
.site-main,
.deck-viewport {
  position: fixed;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding-top: 0;
  background: var(--bg);
}

.deck-track {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translate3d(0, 0, 0);
  transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.deck-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.hero-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin-top: 0;
  padding: calc(70px + env(safe-area-inset-top, 0px)) 18px calc(74px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 768px) {
  .hero-stage {
    align-items: center;
    padding: 108px 48px 64px;
  }
}

.hero-art-world {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.84;
  filter: brightness(0.95) saturate(0.96);
  transition: opacity 0.9s var(--ease-out), filter 0.9s var(--ease-out);
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero-art-world {
    opacity: 0.38;
    filter: brightness(0.76) saturate(0.84);
  }
}

.hero-stage:hover .hero-art-world,
.hero-stage:focus-within .hero-art-world,
.hero-stage.is-awake .hero-art-world {
  opacity: 0.90;
  filter: brightness(0.98) saturate(0.98);
}

.hero-scene-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 35%;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.hero-char-wrap {
  position: absolute;
  right: 2%;
  top: 11%;
  width: min(62vw, 940px);
  aspect-ratio: 3 / 2;
  height: auto;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transform-origin: 50% 62%;
  filter: drop-shadow(0 0 38px rgba(208, 188, 255, 0.25)) saturate(0.94) brightness(0.95);
  animation: heroBreath 6.2s ease-in-out infinite;
}

.hero-char-wrap.is-live2d-ready {
  animation: none;
}

@media (max-width: 959px) {
  .hero-char-wrap {
    left: -15%;
    right: auto;
    top: 14%;
    width: 130vw;
  }
}

.hero-live2d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.hero-char-wrap.is-live2d-ready .hero-live2d-canvas {
  opacity: 1;
}

.hero-char-wrap.is-live2d-ready #heroCharOpen,
.hero-char-wrap.is-live2d-ready #heroCharHalf,
.hero-char-wrap.is-live2d-ready #heroCharClosed {
  opacity: 0 !important;
}

.hero-char-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transform-origin: 50% 58%;
  transition: none;
  will-change: opacity, transform;
}

/* Lock half/closed blink overlays strictly inside solid opaque eye sockets (no body/AA-edge flash) */
#heroCharHalf,
#heroCharClosed {
  clip-path: inset(14.8% 43.3% 75.8% 45% round 8px);
}

.hero-char-frame.is-hidden-frame {
  opacity: 0;
}

.hero-char-aura {
  position: absolute;
  left: 18%;
  top: 6%;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 9999px;
  border: 1px solid rgba(208, 188, 255, 0.18);
  pointer-events: none;
  animation: orbitSpin 36s linear infinite;
}

.hero-char-aura--dashed {
  left: 12%;
  top: 2%;
  width: 76%;
  border-style: dashed;
  border-color: rgba(255, 176, 205, 0.14);
  animation-duration: 54s;
  animation-direction: reverse;
}

/* Dark astral vignette & left text-protection scrims */
.hero-scrim-left {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #0d0c1c 0%,
    rgba(19, 18, 34, 0.90) 34%,
    rgba(19, 18, 34, 0.56) 54%,
    rgba(19, 18, 34, 0.18) 80%,
    rgba(19, 18, 34, 0.46) 100%
  );
}

@media (max-width: 960px) {
  .hero-scrim-left {
    background: linear-gradient(
      180deg,
      rgba(13, 12, 28, 0.36) 0%,
      rgba(13, 12, 28, 0.18) 28%,
      rgba(19, 18, 34, 0.72) 54%,
      rgba(19, 18, 34, 0.94) 76%,
      var(--bg) 100%
    );
  }
}

.hero-scrim-vertical {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 12, 28, 0.65) 0%, transparent 24%, transparent 68%, var(--bg) 100%),
    radial-gradient(ellipse at 72% 28%, rgba(160, 120, 255, 0.22), transparent 60%);
}

.hero-petals {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-mascot-bubble {
  position: absolute;
  right: 8%;
  top: 15%;
  z-index: 15;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(31, 30, 47, 0.88);
  border: 1px solid rgba(208, 188, 255, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(10, 9, 24, 0.62);
  opacity: 0;
  transform: translateY(8px) rotate(-1.5deg);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero-mascot-bubble {
    display: inline-flex;
  }
}

.hero-stage:hover .hero-mascot-bubble,
.hero-stage.is-awake .hero-mascot-bubble {
  opacity: 1;
  transform: translateY(0) rotate(-1.5deg);
}

.hero-mascot-bubble.is-bubble-pop {
  animation: bubbleSpringPop 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.bubble-ping {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--tertiary);
  box-shadow: 0 0 10px var(--tertiary);
  animation: beaconPulse 1.8s ease-in-out infinite;
}

.bubble-text {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-fixed);
  letter-spacing: 0.015em;
}

/* Hero Foreground Left Column */
.hero-content-wrap {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero-content-wrap {
    padding: 24px 0;
  }
}

.hero-copy-col {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .hero-copy-col {
    gap: 24px;
  }
}

[data-hero-in] {
  opacity: 0;
  transform: translateY(44px);
  filter: blur(4px);
  transition:
    opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.15s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}

html.intro-done [data-hero-in] {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

html.intro-done [data-hero-in="1"] { transition-delay: 0.06s; }
html.intro-done [data-hero-in="2"] { transition-delay: 0.23s; }
html.intro-done [data-hero-in="3"] { transition-delay: 0.40s; }
html.intro-done [data-hero-in="4"] { transition-delay: 0.57s; }
html.intro-done [data-hero-in="5"] { transition-delay: 0.74s; }

.brand-capsule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(41, 40, 57, 0.82);
  border: 1px solid rgba(208, 188, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(160, 120, 255, 0.24);
  align-self: flex-start;
}

.brand-capsule img {
  height: 18px;
  width: auto;
  object-fit: contain;
}

.brand-capsule img.brand-capsule-icon33 {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.50);
}

.brand-capsule-text {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--tertiary);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(29px, 7.8vw, 60px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--on-surface);
}

.hero-title-gradient {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 52%, var(--tertiary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(208, 188, 255, 0.35));
}

.hero-subtitle {
  font-size: 14px;
  line-height: 22px;
  color: var(--on-surface-variant);
  max-width: 560px;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 16px;
    line-height: 27px;
  }
}

.hero-subtitle strong {
  color: var(--on-surface);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

@media (min-width: 768px) {
  .hero-actions {
    gap: 14px;
    padding-top: 6px;
  }
}

@media (max-width: 639px) {
  .brand-capsule {
    padding: 5px 12px;
    gap: 8px;
  }

  .brand-capsule-text {
    font-size: 11px;
  }

  .btn-hero-primary-inner {
    padding: 10px 20px;
    font-size: 13.5px;
  }

  .btn-hero-mascot {
    padding: 8px 14px 8px 10px;
    gap: 8px;
    font-size: 13px;
  }

  .btn-hero-mascot img {
    width: 24px;
    height: 24px;
  }

  .btn-hero-replay {
    display: none;
  }

  .hero-status-line {
    font-size: 11px;
    padding-top: 2px;
  }
}

.btn-hero-primary {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  border-radius: 9999px;
  padding: 1px;
  box-shadow: 0 0 28px rgba(160, 120, 255, 0.45);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-hero-primary:hover {
  box-shadow: 0 0 36px rgba(208, 188, 255, 0.60);
}

.btn-hero-primary:active {
  transform: scale(0.96);
}

.btn-hero-primary-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--primary-container), var(--secondary), var(--tertiary-container));
}

.btn-hero-primary-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 9999px;
  background: rgba(13, 12, 28, 0.90);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.25s ease;
}

.btn-hero-primary:hover .btn-hero-primary-inner {
  background: rgba(13, 12, 28, 0.66);
}

.btn-hero-primary .icon-arrow {
  color: var(--tertiary);
  transition: transform 0.25s ease;
}

.btn-hero-primary:hover .icon-arrow {
  transform: translateX(4px);
}

.btn-hero-mascot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px 10px 14px;
  border-radius: 9999px;
  background: rgba(31, 30, 47, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--on-surface);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(11, 10, 26, 0.45);
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.btn-hero-mascot:hover {
  background: var(--surface-high);
  border-color: rgba(255, 176, 205, 0.45);
  box-shadow: 0 0 24px rgba(255, 176, 205, 0.28);
}

.btn-hero-mascot img {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid rgba(255, 176, 205, 0.55);
  transition: transform 0.25s ease;
}

.btn-hero-mascot:hover img {
  transform: scale(1.08);
}

.btn-hero-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(208, 188, 255, 0.18);
  color: var(--on-surface-variant);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-hero-replay:hover {
  background: rgba(160, 120, 255, 0.16);
  color: var(--primary-fixed);
  border-color: rgba(123, 208, 255, 0.42);
}

.hero-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  color: var(--on-surface-variant);
}

.status-star {
  color: var(--tertiary);
  font-weight: 700;
  display: inline-block;
  animation: orbitSpin 8s linear infinite;
}

/* ==========================================================================
   5. Theater-Scroll Interactive Poster Gallery & Minimal Co-Creation
   ========================================================================== */
.content-section {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 20px;
}

@media (min-width: 768px) {
  .content-section {
    padding: 76px 48px;
  }
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 40px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(160, 120, 255, 0.18);
  border: 1px solid rgba(208, 188, 255, 0.24);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(27px, 3.5vw, 40px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--on-surface);
}

.section-desc {
  font-size: 15.5px;
  line-height: 25px;
  color: var(--on-surface-variant);
  max-width: 620px;
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-tertiary { color: var(--tertiary); }

/* Right-Side Chapter Rail (Desktop) & Bottom Slide HUD (Mobile/Tablet) */
.theater-rail {
  display: none;
}

@media (min-width: 1024px) {
  .theater-rail {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 9px 6px;
    border-radius: 9999px;
    background: rgba(14, 13, 28, 0.46);
    border: 1px solid rgba(208, 188, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 26px rgba(6, 5, 16, 0.42);
  }
}

.mobile-deck-hud {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 44;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 9999px;
  background: rgba(16, 15, 30, 0.86);
  border: 1px solid rgba(208, 188, 255, 0.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(4, 3, 14, 0.70);
  --deck-progress: 10%;
}

@media (min-width: 1024px) {
  .mobile-deck-hud {
    display: none;
  }
}

.mobile-hud-btn {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(208, 188, 255, 0.18);
  color: var(--primary-fixed);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.16s ease;
}

.mobile-hud-btn:active:not(:disabled) {
  transform: scale(0.92);
  background: rgba(160, 120, 255, 0.30);
}

.mobile-hud-btn:disabled {
  opacity: 0.32;
  cursor: default;
}

.mobile-hud-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 126px;
  padding: 0 4px;
}

.mobile-hud-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 14px;
  font-weight: 700;
  color: var(--primary-fixed);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.mobile-hud-track {
  width: 100%;
  height: 3px;
  border-radius: 9999px;
  background: rgba(208, 188, 255, 0.20);
  overflow: hidden;
}

.mobile-hud-fill {
  display: block;
  width: var(--deck-progress, 10%);
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #a078ff, #ff7eb6, #7bd0ff);
  transition: width 0.38s var(--ease-out);
}

body.intro-locked .mobile-deck-hud,
body.intro-locked .theater-rail,
body.intro-locked .scene-timeline-strip,
body.is-on-poster-slide .theater-rail,
body.is-on-poster-slide .mobile-deck-hud,
body:not(.is-on-poster-slide) .scene-timeline-strip,
body.is-live-overlay-open .scene-timeline-strip {
  opacity: 0;
  pointer-events: none;
}

.scene-timeline-strip {
  display: none;
}

@media (min-width: 768px) {
  .scene-timeline-strip {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 44;
    display: flex;
    align-items: flex-end;
    gap: 26px;
    color: var(--ink, #2A1F66);
    text-shadow: 0 0 12px var(--halo, rgba(255, 255, 255, 0.85));
    transition: opacity 0.25s ease, color 0.25s ease;
  }

  .strip-item {
    position: relative;
    text-align: center;
    opacity: 0.42;
    padding-bottom: 7px;
    color: inherit;
    transition: opacity 0.2s ease;
  }

  .strip-item:hover {
    opacity: 0.86;
  }

  .strip-item.is-active {
    opacity: 1;
  }

  .strip-item.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--af, #E0407E);
    border-radius: 2px;
  }

  .strip-item i {
    display: block;
    font-style: normal;
    font-family: Consolas, var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
  }

  .strip-item b {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
  }
}

.rail-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: rgba(208, 188, 255, 0.34);
  transition: height 0.28s var(--ease-out), transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.rail-dot span {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(18, 16, 36, 0.94);
  border: 1px solid rgba(208, 188, 255, 0.28);
  color: var(--primary-fixed);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rail-dot:hover span,
.rail-dot:focus-visible span {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.rail-dot.is-active {
  height: 18px;
  background: linear-gradient(180deg, #a078ff, #ff7eb6);
  box-shadow: 0 0 10px rgba(255, 176, 205, 0.65);
}

/* Editorial Six-Act Poster Theater (Pixel-Locked Scene Frame + Seamless Bleed) */
.poster-chapter {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  isolation: isolate;
  background: var(--scene-base, #0e0d1d);
  color: var(--ink, #2A1F66);
}

.poster-chapter[data-scene-theme="s01"] { --ink: #2A1F66; --af: #E0407E; --halo: rgba(255, 255, 255, 0.85); --scene-base: #eef0ff; }
.poster-chapter[data-scene-theme="s02"] { --ink: #14295E; --af: #E0407E; --halo: rgba(255, 255, 255, 0.85); --scene-base: #e8f1fb; }
.poster-chapter[data-scene-theme="s03"] { --ink: #3B2458; --af: #E0407E; --halo: rgba(255, 255, 255, 0.85); --scene-base: #f9efe5; }
.poster-chapter[data-scene-theme="s04"] { --ink: #F4EEFF; --af: #FFB86B; --halo: rgba(10, 6, 30, 0.72); --scene-base: #120b24; }
.poster-chapter[data-scene-theme="s05"] { --ink: #3E1A4F; --af: #E0407E; --halo: rgba(255, 236, 236, 0.82); --scene-base: #f8e5ea; }
.poster-chapter[data-scene-theme="s06"] { --ink: #FFF1E6; --af: #FFB86B; --halo: rgba(10, 8, 30, 0.78); --scene-base: #100d26; }

.poster-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  container-type: size;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--scene-base, #0e0d1d);
}

.scene-frame {
  position: relative;
  overflow: visible;
}

.scene-bg,
.scene-cut {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.scene-bg {
  left: -15%;
  top: -15.5556%;
  width: 130%;
  height: 131.1111%;
  z-index: 1;
}

.bg-s01 { filter: saturate(1.05) brightness(1.02); }
.bg-s03 { filter: sepia(0.12) saturate(1.05); }
.bg-s05 { filter: saturate(1.15); }
.bg-s06 { filter: hue-rotate(-12deg); }

.cut-s01 {
  left: 19.9479%;
  top: 21.2963%;
  width: 28.0729%;
  height: 78.7037%;
  z-index: 5;
  filter: saturate(1.05) brightness(1.02);
}

.cut-s05 {
  left: 5.5729%;
  top: 5.3704%;
  width: 42.1875%;
  height: 87.7778%;
  z-index: 5;
  filter: saturate(1.15);
}

.cut-s06 {
  left: 13.5417%;
  top: 12.963%;
  width: 28.5417%;
  height: 68.7037%;
  z-index: 5;
  filter: brightness(0.62) saturate(0.9) hue-rotate(-8deg);
}

.scene-ov {
  position: absolute;
  inset: -28%;
  pointer-events: none;
  z-index: 2;
}

.s01-ov {
  background:
    linear-gradient(180deg, rgba(170, 190, 255, 0.25), transparent 45%),
    linear-gradient(90deg, transparent 55%, rgba(255, 236, 220, 0.35));
}

.s02-map-svg {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
}

.s03-ov {
  background: linear-gradient(90deg, transparent 40%, rgba(255, 240, 220, 0.55) 60%, rgba(255, 244, 230, 0.70));
}

.s04-spotlight {
  background: radial-gradient(
    ellipse 20.625cqw 57.7778cqh at 34.615% 53.526%,
    rgba(20, 12, 40, 0) 30%,
    rgba(20, 12, 40, 0.2) 52%,
    rgba(18, 11, 36, 0.78) 80%,
    rgba(14, 9, 30, 0.93) 100%
  );
}

.s04-beam {
  z-index: 6;
  background: linear-gradient(122deg, rgba(255, 214, 160, 0) 6%, rgba(255, 206, 150, 0.20) 16%, rgba(255, 214, 160, 0) 34%);
  mix-blend-mode: screen;
}

.s05-ov {
  background: linear-gradient(180deg, rgba(110, 60, 150, 0.42), rgba(255, 150, 120, 0.12) 55%, rgba(120, 50, 110, 0.25));
}

.s05-line-svg {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
}

.s06-night {
  background: linear-gradient(90deg, rgba(16, 14, 48, 0.78), rgba(14, 12, 38, 0.90) 60%);
}

.s06-glow {
  inset: 0;
  z-index: 6;
  background: radial-gradient(circle 14.375cqw at 25.625% 53.3333%, rgba(190, 170, 255, 0.55), rgba(190, 170, 255, 0));
  mix-blend-mode: screen;
}

.scene-ttl {
  position: absolute;
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  z-index: 4;
  margin: 0;
  pointer-events: none;
  user-select: none;
}

.ttl-s01 { color: #33267F; }
.ttl-s02 { color: #1B2A6E; }
.ttl-s03 { color: #3B2458; }
.ttl-s04 { color: #F6F0FF; }
.ttl-s05 { color: #4A1D5E; }
.ttl-s06 { color: #FFF1E6; }

/* Viewfinder Corner L-Brackets */
.scene-vf {
  position: absolute;
  inset: 10px;
  z-index: 19;
  pointer-events: none;
  opacity: 0.50;
  background:
    linear-gradient(var(--ink), var(--ink)) left top / 18px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left top / 1.5px 18px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right top / 18px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right top / 1.5px 18px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left bottom / 18px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left bottom / 1.5px 18px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right bottom / 18px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right bottom / 1.5px 18px no-repeat;
}

/* Mobile-First Full-Bleed Scene Crop & Interactive Accordion Panel (< 768px) */
@media (max-width: 767px) {
  .scene-frame {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100cqh;
    width: calc(100cqh * 16 / 9);
    transform: translateX(calc(-1 * var(--mob-x, 0.335) * 100%));
  }

  .scene-frame--s01 { --mob-x: 0.335; }
  .scene-frame--s02 { --mob-x: 0.745; }
  .scene-frame--s03 { --mob-x: 0.215; }
  .scene-frame--s04 { --mob-x: 0.275; }
  .scene-frame--s05 { --mob-x: 0.265; }
  .scene-frame--s06 { --mob-x: 0.265; }

  .scene-ttl {
    left: calc(var(--mob-x, 0.335) * 100% - 50vw + 22px);
    letter-spacing: 0.03em;
  }

  .ttl-s01 { top: 12.2%; font-size: clamp(96px, 34vw, 150px); }
  .ttl-s02 { top: 10.6%; font-size: clamp(88px, 30vw, 134px); }
  .ttl-s03 { top: 9.2%; font-size: clamp(64px, 21vw, 96px); z-index: 7; text-shadow: 0 4px 20px rgba(255, 245, 235, 0.85); }
  .ttl-s04 { top: 9.2%; font-size: clamp(64px, 21vw, 96px); z-index: 7; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45); }
  .ttl-s05 { top: 8.6%; font-size: clamp(60px, 19.5vw, 80px); }
  .ttl-s06 { top: 8.8%; font-size: clamp(58px, 19.5vw, 78px); z-index: 7; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45); }

  .scene-tb,
  .af,
  .scene-big-btn,
  .scene-stamp,
  .s02-map-svg,
  .s03-notebook,
  .s04-frame85,
  .s04-frame85-meta,
  .s04-diagram,
  .s05-line-svg,
  .s05-pol,
  .s06-tablet,
  .s06-ticket,
  .cta-s06 {
    display: none;
  }

  .mob-scrim {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
  }

  .mob-scrim--light {
    background: linear-gradient(180deg, transparent 50%, rgba(247, 245, 255, 0.88) 64%, #F7F5FF 74%);
  }

  .mob-scrim--dusk {
    background: linear-gradient(180deg, transparent 48%, rgba(251, 238, 245, 0.88) 63%, #FBEEF5 74%);
  }

  .mob-scrim--dark-warm {
    background: linear-gradient(180deg, transparent 48%, rgba(18, 11, 36, 0.90) 62%, #120B24 73%);
  }

  .mob-scrim--dark-night {
    background: linear-gradient(180deg, transparent 48%, rgba(16, 13, 40, 0.90) 62%, #100D28 73%);
  }

  .mob-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12;
    padding: 0 22px calc(18px + env(safe-area-inset-bottom, 0px));
    color: var(--ink);
  }

  .mob-osd {
    font-family: Consolas, var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    opacity: 0.78;
    margin-bottom: 6px;
  }

  .mob-osd em {
    font-style: normal;
    color: var(--af);
  }

  .mob-slogan {
    font-family: var(--font-serif);
    font-size: 23px;
    line-height: 1.32;
    font-weight: 650;
  }

  .mob-sub {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.82;
    margin-top: 5px;
  }

  .mob-fl {
    margin-top: 12px;
    border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  }

  .mob-fl-item {
    display: block;
    width: 100%;
    padding: 9px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    text-align: left;
    color: inherit;
  }

  .mob-fl-head {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .mob-fl-head i {
    font-family: Consolas, var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    font-style: normal;
    color: var(--af);
    width: 18px;
    flex-shrink: 0;
  }

  .mob-fl-head b {
    font-size: 14px;
    font-weight: 700;
    flex: none;
  }

  .mob-fl-head span {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.72;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mob-fl-head::after {
    content: "›";
    font-size: 18px;
    font-weight: 500;
    opacity: 0.55;
    transition: transform 0.2s ease;
  }

  .mob-fl-item.is-expanded .mob-fl-head::after {
    transform: rotate(90deg);
    opacity: 0.95;
  }

  .mob-fl-more {
    display: none;
    padding: 6px 0 2px 28px;
    font-size: 12px;
    line-height: 1.55;
    opacity: 0.86;
  }

  .mob-fl-item.is-expanded .mob-fl-more {
    display: block;
  }

  .mob-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding: 10px 14px;
    border: 1.5px solid currentColor;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: inherit;
    transition: background 0.2s ease;
  }

  .mob-cta-btn:active {
    background: rgba(255, 255, 255, 0.14);
  }

  .mob-bt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    gap: 8px;
  }

  .mob-ticks {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .mob-tick {
    display: block;
    width: 12px;
    height: 3.5px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.28;
    flex-shrink: 0;
    transition: width 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  }

  .mob-tick.is-active {
    width: 22px;
    opacity: 1;
    background: var(--af);
  }

  .mob-ticks b {
    margin-left: 5px;
    font-family: Consolas, var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
  }

  .mob-bt-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .mob-big-btn {
    padding: 2px 5px;
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    opacity: 0.72;
  }

  .mob-stamp {
    font-family: Consolas, var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #FF8B3D;
    text-shadow: 0 0 5px rgba(255, 110, 30, 0.7);
    white-space: nowrap;
  }

  .poster-stage.is-live-mode .mob-scrim,
  .poster-stage.is-live-mode .mob-panel,
  .poster-stage.is-live-mode .scene-vf {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  .ttl-s01 { top: 9%; font-size: clamp(78px, 28vw, 110px); }
  .ttl-s02 { top: 8%; font-size: clamp(74px, 26vw, 104px); }
  .ttl-s03,
  .ttl-s04,
  .ttl-s05 { top: 7.5%; font-size: clamp(54px, 18vw, 76px); }
  .ttl-s06 { top: 7.0%; font-size: clamp(44px, 14.5vw, 56px); }

  .mob-scrim--light { background: linear-gradient(180deg, transparent 44%, rgba(247, 245, 255, 0.92) 57%, #F7F5FF 68%); }
  .mob-scrim--dusk { background: linear-gradient(180deg, transparent 43%, rgba(251, 238, 245, 0.92) 56%, #FBEEF5 68%); }
  .mob-scrim--dark-warm { background: linear-gradient(180deg, transparent 42%, rgba(18, 11, 36, 0.94) 55%, #120B24 67%); }
  .mob-scrim--dark-night { background: linear-gradient(180deg, transparent 42%, rgba(16, 13, 40, 0.94) 55%, #100D28 67%); }

  .mob-panel { padding: 0 18px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .mob-osd { margin-bottom: 3px; font-size: 10px; }
  .mob-slogan { font-size: 19px; line-height: 1.25; }
  .mob-sub { display: none; }
  .mob-fl { margin-top: 8px; }
  .mob-fl-item { padding: 7px 0; }
  .mob-fl-head b { font-size: 13px; }
  .mob-cta-btn { margin-top: 8px; padding: 8px 12px; font-size: 13px; }
  .mob-bt { margin-top: 8px; }
  .mob-tick { width: 10px; }
  .mob-tick.is-active { width: 18px; }
  .mob-stamp { font-size: 12px; }
}

@media (min-width: 768px) {
  .mob-scrim,
  .mob-panel {
    display: none;
  }

  .scene-frame {
    position: relative;
    width: min(100cqw, calc(100cqh * 16 / 9));
    height: min(100cqh, calc(100cqw * 9 / 16));
    flex-shrink: 0;
    container-type: size;
  }

  .ttl-s01 { left: 16.375%; top: 10.6667%; font-size: 14.75cqw; letter-spacing: 0.05em; }
  .ttl-s02 { left: 6%; top: 13.1111%; font-size: 12.5cqw; letter-spacing: 0.06em; }
  .ttl-s03 { left: 51.25%; top: 10.2222%; font-size: 9.375cqw; letter-spacing: 0.04em; }
  .ttl-s04 { left: 56.25%; top: 13.1111%; font-size: 10.5cqw; letter-spacing: 0.04em; }
  .ttl-s05 { left: 37.5%; top: 10.6667%; font-size: 14.375cqw; letter-spacing: 0.05em; }
  .ttl-s06 { left: 56.25%; top: 12.4444%; font-size: 7.5cqw; letter-spacing: 0.05em; }

  .scene-tb {
    position: absolute;
    z-index: 12;
    text-shadow: 0 0 1.125cqw var(--halo), 0 0 0.25cqw var(--halo);
  }

  .tb-s01 { left: 64.375%; top: 62.2222%; }
  .tb-s02 { left: 6.5%; top: 39.1111%; }
  .tb-s03 { left: 51.75%; top: 29.1111%; }
  .tb-s04 { left: 56.75%; top: 34.4444%; }
  .tb-s05 { left: 55%; top: 71.1111%; }
  .tb-s06 { left: 56.625%; top: 28.6667%; }

  .scene-tb .osd {
    font-family: Consolas, var(--font-mono);
    font-size: clamp(10.5px, 0.75cqw, 16px);
    font-weight: 600;
    letter-spacing: 0.2em;
    opacity: 0.78;
    margin-bottom: 0.875cqw;
  }

  .scene-tb .osd em {
    font-style: normal;
    color: var(--af);
  }

  .scene-tb .slogan {
    font-family: var(--font-serif);
    font-size: clamp(23px, 2.125cqw, 46px);
    line-height: 1.35;
    font-weight: 650;
    letter-spacing: 0.02em;
  }

  .scene-tb .sub {
    font-size: clamp(13px, 0.9375cqw, 20px);
    line-height: 1.75;
    font-weight: 450;
    opacity: 0.84;
    margin-top: 0.75cqw;
    max-width: 27.5cqw;
  }

  .scene-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5cqw;
    margin-top: 1.375cqw;
    padding: 0.6875cqw 1.125cqw;
    border: 1.5px solid currentColor;
    border-radius: 0.5cqw;
    font-size: clamp(12.5px, 0.875cqw, 18px);
    font-weight: 600;
    color: inherit;
    background: rgba(255, 255, 255, 0.04);
    text-shadow: none;
    transition: background 0.2s ease, transform 0.18s ease;
  }

  .scene-cta-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
  }

  .cta-s06 {
    position: absolute;
    left: 59.5%;
    top: 85.1111%;
    z-index: 12;
    margin: 0;
    color: #FFF1E6;
  }

  /* Scene 03 Notebook + Polaroid + Receipt Props */
  .s03-notebook {
    position: absolute;
    left: 50%;
    top: 43.3333%;
    width: 43.75%;
    height: 46.6667%;
    transform: rotate(-1.6deg);
    background-color: #FFFDF7;
    background-image: radial-gradient(#E6DCCF 1.1px, transparent 1.2px);
    background-size: 1.125cqw 1.125cqw;
    border: 1px solid #EADFD0;
    box-shadow: 0 1.125cqw 2.5cqw -1.375cqw rgba(80, 40, 20, 0.45);
    z-index: 6;
    color: #3B2458;
  }

  .tape {
    position: absolute;
    width: 5.375cqw;
    height: 1.5cqw;
    background: rgba(224, 64, 126, 0.38);
    z-index: 3;
  }

  .tape.tape-i {
    background: rgba(91, 73, 214, 0.30);
  }

  .tape-tl { left: -1.5cqw; top: -0.5cqw; transform: rotate(-28deg); }
  .tape-tr { right: -1.375cqw; top: -0.375cqw; transform: rotate(24deg); }
  .tape-pol { left: 2.875cqw; top: -0.75cqw; width: 4.375cqw; transform: rotate(-4deg); }

  .s03-nb-head {
    position: absolute;
    left: 1.875cqw;
    top: 1.375cqw;
    font-size: 0.9375cqw;
    font-weight: 700;
  }

  .hl-pink { background: linear-gradient(transparent 55%, #FFD3E3 55%); }
  .hl-lav { background: linear-gradient(transparent 55%, #DCD6FF 55%); }

  .s03-board {
    position: absolute;
    left: 1.75cqw;
    top: 3.5cqw;
    width: 25.625cqw;
    border: 1px solid #E8DFD2;
  }

  .s03-nb-cap {
    position: absolute;
    left: 1.875cqw;
    top: 18.25cqw;
    font-size: 0.78125cqw;
    font-weight: 500;
    color: #6B5A7E;
  }

  .s03-polaroid {
    position: absolute;
    left: 29.375cqw;
    top: 2.5cqw;
    width: 11.25cqw;
    padding: 0.625cqw 0.625cqw 2.125cqw;
    background: #ffffff;
    border: 1px solid #EEE6F2;
    transform: rotate(4deg);
    box-shadow: 0 0.625cqw 1.25cqw -0.875cqw rgba(60, 30, 80, 0.50);
  }

  .s03-polaroid img {
    width: 100%;
    height: 9.375cqw;
    object-fit: cover;
    display: block;
  }

  .s03-pol-cap {
    position: absolute;
    left: 0.75cqw;
    bottom: 0.5625cqw;
    font-size: 0.78125cqw;
    font-weight: 600;
    color: #3B2458;
  }

  .s03-stamp-ring {
    position: absolute;
    right: -1.125cqw;
    top: 7.375cqw;
    width: 4cqw;
    height: 4cqw;
    border-radius: 50%;
    border: 2px solid #E0407E;
    color: #E0407E;
    font-size: 0.8125cqw;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-14deg);
    background: rgba(255, 255, 255, 0.72);
  }

  .s03-receipt {
    position: absolute;
    left: 29.875cqw;
    top: 16.75cqw;
    width: 11.125cqw;
    padding: 0.7cqw 0.875cqw 1.15cqw;
    background: #ffffff;
    border: 1px solid #EEE6F2;
    transform: rotate(-3deg);
    font-family: Consolas, var(--font-mono);
    font-size: 0.75cqw;
    font-weight: 500;
    line-height: 1.25;
    color: #3B2458;
    -webkit-mask:
      linear-gradient(#000 0 0) top / 100% calc(100% - 0.5cqw) no-repeat,
      conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) bottom / 0.75cqw 0.5cqw repeat-x;
    mask:
      linear-gradient(#000 0 0) top / 100% calc(100% - 0.5cqw) no-repeat,
      conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) bottom / 0.75cqw 0.5cqw repeat-x;
  }

  .s03-rec-title {
    font-family: var(--font-sans);
    font-size: 0.8125cqw;
    font-weight: 700;
    margin-bottom: 0.375cqw;
  }

  .s03-rec-row,
  .s03-rec-total {
    display: flex;
    justify-content: space-between;
  }

  .s03-rec-total {
    border-top: 1px dashed #CBBFD8;
    margin-top: 0.375cqw;
    padding-top: 0.375cqw;
    font-weight: 700;
  }

  /* Scene 04 85mm Finder & Studio Diagram */
  .s04-frame85 {
    position: absolute;
    left: 15.625%;
    top: 14.6667%;
    width: 23.75%;
    height: 54.2222%;
    border: 1.5px dashed rgba(255, 215, 170, 0.90);
    z-index: 8;
    pointer-events: none;
  }

  .s04-frame85-meta {
    position: absolute;
    left: 15.75%;
    top: 12%;
    font-family: Consolas, var(--font-mono);
    font-size: clamp(10.5px, 0.75cqw, 16px);
    letter-spacing: 0.12em;
    color: #FFD6A8;
    z-index: 8;
    pointer-events: none;
  }

  .s04-diagram {
    position: absolute;
    left: 73.125%;
    top: 62.2222%;
    width: 20.625%;
    height: 25.5556%;
    z-index: 8;
    pointer-events: none;
  }

  /* Scene 05 Clothesline & Hanging Polaroids */
  .s05-pol {
    position: absolute;
    z-index: 7;
    background: #ffffff;
    padding: 0.5cqw 0.5cqw 1.875cqw;
    width: 9.375cqw;
    box-shadow: 0 0.75cqw 1.25cqw -0.75cqw rgba(60, 20, 60, 0.60);
    pointer-events: none;
  }

  .s05-pol img {
    width: 8.375cqw;
    height: 7.375cqw;
    object-fit: cover;
    display: block;
  }

  .s05-pol span {
    position: absolute;
    left: 0.625cqw;
    bottom: 0.4375cqw;
    font-size: 0.75cqw;
    font-weight: 600;
    color: #3E1A4F;
    white-space: nowrap;
  }

  .pol-1 { left: 54.5%; top: 46.6667%; transform: rotate(-5deg); }
  .pol-2 { left: 65.625%; top: 49.1111%; transform: rotate(3deg); }
  .pol-3 { left: 76.625%; top: 49.5556%; transform: rotate(-2deg); }
  .pol-4 { left: 87.5%; top: 47.7778%; transform: rotate(5deg); }

  /* Scene 06 Tablet Split Card & Ticket Stub */
  .s06-tablet {
    position: absolute;
    left: 56.625%;
    top: 44%;
    width: 27.5%;
    height: 32.2222%;
    border-radius: 1.25cqw;
    background: #0E0B1E;
    padding: 0.75cqw;
    z-index: 7;
    box-shadow: 0 0 3.75cqw rgba(170, 150, 255, 0.25);
  }

  .s06-tablet-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0.625cqw;
    overflow: hidden;
  }

  .s06-tab-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 28%;
  }

  .s06-tab-img--raw {
    clip-path: inset(0 52% 0 0);
    filter: saturate(0.45) brightness(0.82) contrast(0.85);
  }

  .s06-tab-div {
    position: absolute;
    left: 48%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ffffff;
  }

  .s06-tab-handle {
    position: absolute;
    left: 48%;
    top: 50%;
    width: 1.875cqw;
    height: 1.875cqw;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #ffffff;
    color: #5B49D6;
    font-size: 0.875cqw;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .s06-tab-tag {
    position: absolute;
    top: 0.625cqw;
    font-size: 0.71875cqw;
    font-weight: 600;
    color: #ffffff;
    padding: 0.1875cqw 0.4375cqw;
    border-radius: 0.25cqw;
  }

  .s06-tab-tag--raw { left: 0.625cqw; background: rgba(0, 0, 0, 0.45); }
  .s06-tab-tag--fix { right: 0.625cqw; background: #5B49D6; }

  .s06-tablet-hit {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: transparent;
  }

  .s06-ticket {
    position: absolute;
    left: 81.25%;
    top: 76%;
    width: 13.125%;
    height: 10.2222%;
    background: #FFF6EA;
    color: #3B2458;
    transform: rotate(6deg);
    z-index: 8;
    padding: 0.75cqw 0.875cqw 0 1.625cqw;
    border-radius: 0.375cqw;
    box-shadow: 0 0.875cqw 1.5cqw -0.75cqw rgba(0, 0, 0, 0.60);
    -webkit-mask: radial-gradient(circle 0.375cqw at 0.625cqw 50%, #0000 98%, #000);
    mask: radial-gradient(circle 0.375cqw at 0.625cqw 50%, #0000 98%, #000);
  }

  .s06-ticket-perf {
    position: absolute;
    left: 1.125cqw;
    top: 0.5cqw;
    bottom: 0.5cqw;
    border-left: 1.5px dashed #D9C6B4;
  }

  .s06-ticket-kicker {
    font-family: Consolas, var(--font-mono);
    font-size: 0.65625cqw;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #E0407E;
  }

  .s06-ticket-title {
    font-size: 0.9375cqw;
    font-weight: 700;
    margin-top: 0.1875cqw;
  }

  .s06-ticket-sub {
    font-size: 0.71875cqw;
    font-weight: 500;
    opacity: 0.72;
    margin-top: 0.1875cqw;
  }

  .s06-ticket-qr {
    position: absolute;
    right: 0.75cqw;
    top: 0.875cqw;
    width: 2.625cqw;
    height: 2.625cqw;
    background: repeating-conic-gradient(#3B2458 0 25%, #ffffff 0 50%) 0 0 / 0.625cqw 0.625cqw;
    border: 3px solid #ffffff;
    outline: 1px solid #3B2458;
  }

  /* Camera AF Brackets + Interactive Annotations */
  .af {
    position: absolute;
    width: 1.875cqw;
    height: 1.875cqw;
    transform: translate(-50%, -50%);
    z-index: 14;
    color: var(--ink);
    background:
      linear-gradient(var(--af), var(--af)) left top / 0.5625cqw 2px no-repeat,
      linear-gradient(var(--af), var(--af)) left top / 2px 0.5625cqw no-repeat,
      linear-gradient(var(--af), var(--af)) right top / 0.5625cqw 2px no-repeat,
      linear-gradient(var(--af), var(--af)) right top / 2px 0.5625cqw no-repeat,
      linear-gradient(var(--af), var(--af)) left bottom / 0.5625cqw 2px no-repeat,
      linear-gradient(var(--af), var(--af)) left bottom / 2px 0.5625cqw no-repeat,
      linear-gradient(var(--af), var(--af)) right bottom / 0.5625cqw 2px no-repeat,
      linear-gradient(var(--af), var(--af)) right bottom / 2px 0.5625cqw no-repeat;
    filter: drop-shadow(0 0 3px var(--halo));
    transition: transform 0.18s ease;
  }

  .af::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 5px;
    margin: -2.5px;
    border-radius: 50%;
    background: var(--af);
  }

  .af:hover,
  .af.is-open {
    transform: translate(-50%, -50%) scale(1.08);
    z-index: 24;
  }

  .af-indigo { --af: #5B49D6; }

  .af-01-1 { left: 60%; top: 47.7778%; }
  .af-01-2 { left: 35%; top: 39.1111%; }
  .af-01-3 { left: 45.125%; top: 29.7778%; }

  .af-02-1 { left: 55%; top: 50%; }
  .af-02-2 { left: 19.5%; top: 71.1111%; }
  .af-02-3 { left: 20.625%; top: 60%; }

  .af-03-1 { left: 65.375%; top: 62.2222%; }
  .af-03-2 { left: 85%; top: 57.7778%; }
  .af-03-3 { left: 83.125%; top: 83.5556%; }

  .af-04-1 { left: 73.125%; top: 62.2222%; }
  .af-04-2 { left: 39.375%; top: 68.8889%; }
  .af-04-3 { left: 62.5%; top: 77.7778%; }

  .af-05-1 { left: 73.75%; top: 45.7778%; }
  .af-05-2 { left: 6.875%; top: 38.8889%; }
  .af-05-3 { left: 43.125%; top: 71.1111%; }

  .af-06-1 { left: 93.125%; top: 75.1111%; }
  .af-06-2 { left: 12.8125%; top: 17.7778%; }
  .af-06-3 { left: 56.625%; top: 79.1111%; }

  .afl {
    position: absolute;
    left: 3.875cqw;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    text-align: left;
    text-shadow: 0 0 0.875cqw var(--halo), 0 0 3px var(--halo);
    color: var(--ink);
  }

  .afl::before {
    content: "";
    position: absolute;
    right: calc(100% + 0.375cqw);
    top: 50%;
    width: 1.5cqw;
    height: 1.5px;
    background: var(--af);
  }

  .afl.afl-l {
    left: auto;
    right: 3.875cqw;
    text-align: right;
  }

  .afl.afl-l::before {
    right: auto;
    left: calc(100% + 0.375cqw);
  }

  .afl-offset-down { top: calc(50% + 2.125cqw); }
  .afl-offset-right { left: 6cqw; }
  .afl-offset-up { top: calc(50% - 0.5cqw); }
  .afl-offset-far-left { right: 16.875cqw; }
  .afl-offset-far-up { top: calc(50% - 9.375cqw); }
  .afl-offset-left96 { right: 6cqw; }
  .afl-offset-top4 { top: -0.25cqw; }
  .afl-offset-top-left { left: -3.75cqw; top: -2.375cqw; transform: none; }
  .afl-s06-ticket { left: auto; right: -0.375cqw; top: -3.875cqw; transform: none; text-align: right; }

  .afl b {
    display: block;
    font-size: clamp(13px, 0.96875cqw, 20px);
    font-weight: 700;
  }

  .afl b em {
    font-family: Consolas, var(--font-mono);
    font-size: clamp(10px, 0.6875cqw, 14px);
    font-weight: 700;
    font-style: normal;
    color: var(--af);
    margin-right: 0.4375cqw;
    letter-spacing: 0.05em;
  }

  .afl span {
    display: block;
    font-size: clamp(11.5px, 0.78125cqw, 16px);
    font-weight: 500;
    opacity: 0.82;
    margin-top: 0.1875cqw;
  }

  .af-detail {
    display: none;
    margin-top: 6px;
    padding: 7px 11px;
    border-radius: 8px;
    background: rgba(16, 14, 34, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #F4EEFF;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    white-space: normal;
    width: max-content;
    max-width: 240px;
    text-align: left;
    text-shadow: none;
    box-shadow: 0 10px 24px rgba(8, 6, 20, 0.45);
  }

  .af.is-open .af-detail {
    display: block;
  }

  /* Viewport-Anchored Viewfinder, Lightbox Button & Film Timestamp */
  .scene-vf {
    inset: 18px;
    opacity: 0.55;
    background:
      linear-gradient(var(--ink), var(--ink)) left top / 26px 1.5px no-repeat,
      linear-gradient(var(--ink), var(--ink)) left top / 1.5px 26px no-repeat,
      linear-gradient(var(--ink), var(--ink)) right top / 26px 1.5px no-repeat,
      linear-gradient(var(--ink), var(--ink)) right top / 1.5px 26px no-repeat,
      linear-gradient(var(--ink), var(--ink)) left bottom / 26px 1.5px no-repeat,
      linear-gradient(var(--ink), var(--ink)) left bottom / 1.5px 26px no-repeat,
      linear-gradient(var(--ink), var(--ink)) right bottom / 26px 1.5px no-repeat,
      linear-gradient(var(--ink), var(--ink)) right bottom / 1.5px 26px no-repeat;
  }

  .scene-big-btn {
    position: absolute;
    left: 54px;
    bottom: 32px;
    z-index: 21;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    opacity: 0.78;
    text-shadow: 0 0 12px var(--halo);
    transition: opacity 0.2s ease, background 0.2s ease;
  }

  .scene-big-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.14);
  }

  .scene-stamp {
    position: absolute;
    right: 54px;
    bottom: 34px;
    z-index: 20;
    font-family: Consolas, var(--font-mono);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #FF8B3D;
    text-shadow: 0 0 6px rgba(255, 110, 30, 0.75), 0 0 1px #FFB070;
    pointer-events: none;
  }

  .poster-stage.is-live-mode .scene-vf,
  .poster-stage.is-live-mode .scene-big-btn,
  .poster-stage.is-live-mode .scene-stamp {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 960px) and (max-height: 520px) {
  .site-header.is-poster-mode .header-inner {
    padding: 14px 28px 0;
  }

  .scene-stamp {
    right: 28px;
    bottom: 18px;
    font-size: 15px;
  }

  .scene-big-btn {
    left: 28px;
    bottom: 16px;
  }

  .scene-timeline-strip {
    bottom: 14px;
    gap: 16px;
  }
}

/* In-Frame Live Interactive Layers for Scene 04 (3D Lighting) & Scene 06 (Retouch Split) */
.poster-live-layer {
  position: absolute;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  background: #0d0c18;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.poster-stage.is-live-mode .poster-live-layer {
  opacity: 1;
  pointer-events: auto;
}

.live-back-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 9;
  padding: 7px 14px;
  border-radius: 9999px;
  background: rgba(15, 14, 28, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #F4EEFF;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  transition: background 0.2s ease, transform 0.18s ease;
}

.live-back-btn:hover {
  background: rgba(41, 40, 66, 0.96);
  transform: translateY(-1px);
}

.live-back-btn--center {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.live-back-btn--center:hover {
  transform: translateX(-50%) translateY(-1px);
}

@media (min-width: 768px) {
  .live-back-btn {
    top: 24px;
    right: 32px;
    padding: 8px 16px;
    font-size: 13px;
  }

  .live-back-btn--center {
    right: auto;
    left: 50%;
  }
}

.live-lighting-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-lighting-bar {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  z-index: 5;
}

@media (min-width: 768px) {
  .live-lighting-bar {
    left: 20px;
    right: auto;
    bottom: 20px;
    gap: 8px;
  }
}

.live-scene-caption {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(15, 14, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--primary-fixed);
}

@media (min-width: 768px) {
  .live-scene-caption {
    padding: 5px 12px;
    font-size: 11px;
  }
}

.live-scene-pills {
  display: flex;
  gap: 6px;
}

.scene-switch-btn {
  padding: 5px 11px;
  border-radius: 9999px;
  background: rgba(17, 16, 32, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--on-surface-variant);
  font-size: 11px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

@media (min-width: 768px) {
  .scene-switch-btn {
    padding: 7px 14px;
    font-size: 12px;
  }
}

.scene-switch-btn.is-active {
  background: linear-gradient(90deg, #6c5ce7, #ff7eb6);
  border-color: transparent;
  color: #ffffff;
}

/* Scene 06 In-Frame Retouch Split Slider */
.retouch-live-box {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
  --split: 52%;
}

.retouch-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  pointer-events: none;
}

.retouch-before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--split, 52%)) 0 0);
  pointer-events: none;
}

.retouch-before-img {
  filter: saturate(0.70) contrast(0.90) brightness(0.90) sepia(0.08);
}

.split-tag {
  position: absolute;
  top: 10px;
  z-index: 4;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(15, 14, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 10.5px;
  font-weight: 600;
  color: #ffffff;
  pointer-events: none;
}

.split-tag--left { left: 10px; }
.split-tag--right { right: 10px; color: var(--secondary-fixed); }

@media (min-width: 768px) {
  .split-tag {
    top: 16px;
    padding: 5px 12px;
    font-size: 12px;
  }

  .split-tag--left { left: 16px; }
  .split-tag--right { right: 16px; }
}

.retouch-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 52%);
  width: 2px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 14px rgba(108, 92, 231, 0.85);
  z-index: 5;
  pointer-events: none;
}

.retouch-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: #ffffff;
  color: #5846ca;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(10, 9, 24, 0.6);
}

@media (min-width: 768px) {
  .retouch-handle {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
}

.retouch-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-x;
  z-index: 6;
}

/* Full-Screen Poster Lightbox Modal */
.poster-lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.poster-lightbox[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 6, 16, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-panel {
  position: relative;
  z-index: 2;
  width: min(1180px, 95vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-fixed);
}

.lightbox-close {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: rgba(41, 40, 57, 0.90);
  border: 1px solid rgba(208, 188, 255, 0.35);
  color: #ffffff;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.18s ease;
}

.lightbox-close:hover {
  background: rgba(160, 120, 255, 0.38);
  transform: scale(1.06);
}

.lightbox-img {
  width: 100%;
  max-height: calc(92vh - 54px);
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid rgba(208, 188, 255, 0.28);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.8);
}

@keyframes hotspotPulse {
  0% { transform: scale(0.95); opacity: 0.48; }
  70% { transform: scale(1.42); opacity: 0; }
  100% { transform: scale(1.42); opacity: 0; }
}

/* Co-Creation Panel */
.cocreation-card {
  position: relative;
  border-radius: 24px;
  background: rgba(27, 26, 42, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 40px 24px;
  box-shadow: 0 24px 56px rgba(6, 5, 16, 0.65);
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

@media (min-width: 768px) {
  .cocreation-card {
    padding: 56px 48px;
  }
}

.cocreation-card.is-highlighted {
  border-color: rgba(208, 188, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(160, 120, 255, 0.28), 0 24px 56px rgba(6, 5, 16, 0.72);
}

.cocreation-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 300px;
  border-radius: 9999px;
  background: rgba(208, 188, 255, 0.10);
  filter: blur(140px);
  pointer-events: none;
}

.cocreation-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.status-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: var(--surface-high);
  color: var(--tertiary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--tertiary);
  animation: beaconPulse 2s ease-in-out infinite;
}

/* Sleek Enterprise Collapsible Contact Drawer */
.contact-collapse-shell {
  width: 100%;
  max-width: 780px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-trigger-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-contact-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 9999px;
  background: rgba(41, 40, 57, 0.88);
  border: 1px solid rgba(208, 188, 255, 0.28);
  color: var(--on-surface);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(10, 9, 24, 0.45);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.btn-contact-toggle:hover,
.btn-contact-toggle[aria-expanded="true"] {
  background: rgba(52, 51, 69, 0.96);
  border-color: rgba(208, 188, 255, 0.52);
  box-shadow: 0 0 24px rgba(160, 120, 255, 0.25);
}

.btn-contact-toggle:active {
  transform: scale(0.98);
}

.contact-toggle-sub {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--on-surface-variant);
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-toggle-chevron {
  color: var(--primary);
  transition: transform 0.35s var(--ease-out);
  flex-shrink: 0;
}

.btn-contact-toggle[aria-expanded="true"] .contact-toggle-chevron {
  transform: rotate(180deg);
}

.btn-contact-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--on-surface-variant);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-contact-secondary:hover {
  background: rgba(123, 208, 255, 0.10);
  border-color: rgba(123, 208, 255, 0.36);
  color: var(--on-surface);
}

.contact-drawer {
  width: 100%;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
  transition:
    grid-template-rows 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease,
    margin-top 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-drawer.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 18px;
  pointer-events: auto;
}

.contact-drawer-inner {
  overflow: hidden;
  min-height: 0;
}

.contact-channel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(17, 16, 34, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-channel-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(31, 30, 47, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  transition: border-color 0.28s ease, background 0.28s ease;
}

@media (min-width: 768px) {
  .contact-channel-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
  }
}

.contact-channel-item:hover,
.contact-channel-item.is-channel-focus {
  border-color: rgba(208, 188, 255, 0.42);
  background: rgba(41, 40, 57, 0.94);
}

.channel-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}

.channel-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(123, 208, 255, 0.14);
  color: var(--tertiary);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.channel-badge--secondary {
  background: rgba(255, 176, 205, 0.16);
  color: var(--secondary);
}

.channel-desc {
  font-size: 13px;
  line-height: 20px;
  color: var(--on-surface-variant);
}

.channel-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .channel-right {
    justify-content: flex-end;
  }
}

.channel-addr {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-fixed);
  letter-spacing: 0.01em;
  word-break: break-all;
}

.channel-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-channel-act {
  padding: 6px 13px;
  border-radius: 10px;
  background: var(--surface-high);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--on-surface);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.btn-channel-act:hover {
  background: var(--surface-highest);
  border-color: rgba(208, 188, 255, 0.35);
}

.btn-channel-act--primary {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-color: transparent;
  color: var(--surface-lowest);
  font-family: var(--font-display);
  font-weight: 700;
}

.btn-channel-act--primary:hover {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 0 18px rgba(208, 188, 255, 0.45);
}

.btn-channel-act:active {
  transform: scale(0.96);
}

/* ==========================================================================
   6. Lightweight Mascot Sheet Drawer (#beaconMascotSheet)
   ========================================================================== */
.mascot-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(7, 6, 16, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mascot-sheet-backdrop[hidden] {
  display: none;
}

.mascot-sheet-backdrop.is-open {
  opacity: 1;
}

.mascot-sheet {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  top: auto;
  z-index: 90;
  width: auto;
  max-height: 82dvh;
  border-radius: 22px;
  background: rgba(24, 22, 42, 0.95);
  border: 1px solid rgba(208, 188, 255, 0.24);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 28px 64px rgba(5, 4, 15, 0.78), 0 0 36px rgba(160, 120, 255, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.32s var(--ease-out), transform 0.32s var(--ease-out);
}

@media (min-width: 768px) {
  .mascot-sheet {
    top: 92px;
    left: auto;
    right: 20px;
    bottom: 20px;
    width: min(410px, calc(100vw - 32px));
    max-height: calc(100vh - 112px);
    border-radius: 24px;
    transform: translateX(24px);
  }
}

.mascot-sheet[hidden] {
  display: none;
}

.mascot-sheet.is-open {
  opacity: 1;
  transform: translate(0, 0);
}

.sheet-header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sheet-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sheet-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(208, 188, 255, 0.50);
  box-shadow: 0 0 20px rgba(208, 188, 255, 0.30);
}

.sheet-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--on-surface);
}

.sheet-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(123, 208, 255, 0.15);
  color: var(--tertiary);
}

.sheet-sub {
  font-size: 12.5px;
  color: var(--on-surface-variant);
  margin-top: 2px;
}

.sheet-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-surface-variant);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.sheet-close-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.sheet-body {
  padding: 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.sheet-quote-box {
  padding: 16px;
  border-radius: 16px;
  background: rgba(13, 12, 28, 0.78);
  border: 1px solid rgba(208, 188, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-quote-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--outline);
}

.sheet-quote-text {
  font-size: 14px;
  line-height: 22px;
  color: var(--on-surface);
  min-height: 66px;
  transition: opacity 0.18s ease;
}

.sheet-quote-text.is-switching {
  opacity: 0;
}

.sheet-topics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-topic-btn {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(41, 40, 57, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--on-surface);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sheet-topic-btn:hover,
.sheet-topic-btn.is-selected {
  background: rgba(160, 120, 255, 0.20);
  border-color: rgba(208, 188, 255, 0.40);
  color: var(--primary-fixed);
}

.sheet-topic-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sheet-controls {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sheet-ctrl-btn {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--on-surface);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sheet-ctrl-btn:hover {
  background: rgba(123, 208, 255, 0.14);
  border-color: rgba(123, 208, 255, 0.40);
}

.sheet-ctrl-btn[aria-pressed="true"] {
  background: rgba(255, 176, 205, 0.16);
  border-color: rgba(255, 176, 205, 0.45);
  color: var(--secondary-fixed);
}

/* ==========================================================================
   7. Toast & Scroll Reveal
   ========================================================================== */
.copy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 10px);
  z-index: 95;
  padding: 11px 22px;
  border-radius: 9999px;
  background: rgba(52, 51, 69, 0.96);
  border: 1px solid rgba(208, 188, 255, 0.30);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--primary-fixed);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 0 30px rgba(208, 188, 255, 0.38);
  opacity: 0;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.28s ease, transform 0.28s var(--ease-out);
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(56px);
  filter: blur(4px);
  transition:
    opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.15s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.15s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].reveal-delay-1,
[data-reveal]:nth-child(4n+2) { --reveal-delay: 115ms; }
[data-reveal].reveal-delay-2,
[data-reveal]:nth-child(4n+3) { --reveal-delay: 230ms; }
[data-reveal].reveal-delay-3,
[data-reveal]:nth-child(4n+4) { --reveal-delay: 345ms; }

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.poster-chapter [data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

.poster-chapter [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ==========================================================================
   7.5 Final Fixed Slide (Co-Creation + Footer with Internal Scroll)
   ========================================================================== */
.snap-end-section {
  position: relative;
  z-index: 20;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(66px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
}

@media (min-width: 768px) {
  .snap-end-section {
    padding-top: 84px;
    padding-bottom: 0;
  }
}

.snap-end-section .content-section {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px 24px;
}

@media (min-width: 768px) {
  .snap-end-section .content-section {
    padding: 32px 48px;
  }
}

.snap-end-section .cocreation-card {
  width: 100%;
}

@media (max-width: 767px) {
  .snap-end-section .cocreation-card {
    padding: 28px 18px;
    border-radius: 20px;
  }

  .snap-end-section .section-title {
    font-size: 24px;
  }

  .snap-end-section .section-desc {
    font-size: 13.5px;
    line-height: 21px;
  }

  .snap-end-section .footer-inner {
    padding: 28px 18px;
    gap: 24px;
  }
}

.snap-end-section .site-footer {
  flex-shrink: 0;
  margin-top: 0;
}

/* ==========================================================================
   8. Footer
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  background: rgba(13, 12, 28, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  margin-top: 40px;
  box-shadow: 0 -8px 32px rgba(11, 10, 26, 0.60);
}

.footer-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px 20px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

@media (min-width: 768px) {
  .footer-inner {
    padding: 48px 48px;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-head img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(208, 188, 255, 0.50));
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--on-surface);
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
}

.footer-summary {
  font-size: 14px;
  line-height: 22px;
  color: var(--on-surface-variant);
  max-width: 440px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--on-surface);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.footer-link {
  font-size: 14px;
  line-height: 22px;
  color: var(--on-surface-variant);
  padding: 3px 0;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--on-surface);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-legal-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

@media (min-width: 640px) {
  .footer-legal-meta {
    flex-direction: row;
    gap: 16px;
  }
}

.footer-copy {
  font-size: 12px;
  color: var(--outline);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--outline);
  transition: color 0.2s ease;
}

.footer-icp:hover {
  color: var(--tertiary);
}

.footer-coord {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-surface-variant);
}

/* ==========================================================================
   9. Keyframes & Reduced Motion
   ========================================================================== */
@keyframes beaconPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.92); }
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes heroBreath {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-6px) scale(1.007); }
}

@keyframes bubbleSpringPop {
  0%   { transform: translateY(0) rotate(-1.5deg) scale(1); }
  35%  { transform: translateY(-4px) rotate(-0.4deg) scale(1.055); }
  75%  { transform: translateY(1px) rotate(-1.8deg) scale(0.99); }
  100% { transform: translateY(0) rotate(-1.5deg) scale(1); }
}

html[data-motion="off"] .hero-live2d-canvas {
  display: none !important;
}

html[data-motion="off"] .hero-char-wrap.is-live2d-ready #heroCharOpen {
  opacity: 1 !important;
}

html[data-motion="off"] .poster-stage {
  transform: none !important;
}

html[data-motion="off"] .deck-track {
  transition: none !important;
}

html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
