/* ============================================
   K-POP Rising Star — Cinematic Documentary Styles
   ============================================ */

:root {
  --blue: #0047A0;
  --red: #CD2E3A;
  --gold: #FFD166;
  --white: #FFFFFF;
  --bg: #050510;
  --bg-soft: rgba(255, 255, 255, 0.04);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', sans-serif;
  --transition-scene: 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --glow-gold: 0 0 60px rgba(255, 209, 102, 0.35);
  --glow-blue: 0 0 80px rgba(0, 71, 160, 0.4);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  word-break: keep-all;
  text-wrap: balance;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
}

.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;
}

/* ---- Ambient & Film Grain ---- */
.ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  transition: transform 1.5s ease-out;
}

.ambient-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  top: -10%;
  left: -5%;
}

.ambient-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  bottom: -10%;
  right: -5%;
}

.film-grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Persistent UI ---- */
.persistent-ui {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.persistent-ui.visible {
  opacity: 1;
}

.persistent-ui > * {
  pointer-events: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  font-weight: 600;
}

.logo-sub {
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  color: var(--text-muted);
}

.ui-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-selector {
  display: flex;
  gap: 0.15rem;
  background: var(--bg-soft);
  border-radius: 4px;
  padding: 0.15rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.35rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}

.lang-btn.active,
.lang-btn:hover {
  color: var(--text);
  background: rgba(255, 209, 102, 0.12);
}

.music-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s;
}

.music-toggle svg {
  width: 16px;
  height: 16px;
}

.music-toggle .icon-music-off { display: none; }
.music-toggle.muted .icon-music-on { display: none; }
.music-toggle.muted .icon-music-off { display: block; }
.music-toggle.active {
  color: var(--gold);
  border-color: rgba(255, 209, 102, 0.3);
}

.btn-apply {
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  transition: all 0.3s;
}

.btn-apply:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.chapter-indicator {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 100;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.chapter-indicator.visible {
  opacity: 1;
}

.chapter-current {
  color: var(--gold);
  font-weight: 500;
}

.scroll-hint {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.8s ease;
  animation: pulse-hint 2.5s ease-in-out infinite;
}

.scroll-hint.visible {
  opacity: 0.6;
}

@keyframes pulse-hint {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.7; transform: translateX(-50%) translateY(-4px); }
}

/* ---- Scene Container ---- */
#scene-container {
  position: fixed;
  inset: 0;
  z-index: 10;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity var(--transition-scene),
              transform var(--transition-scene),
              visibility var(--transition-scene);
  overflow: hidden;
}

.scene.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.scene.exit-up {
  opacity: 0;
  transform: scale(0.98) translateY(-20px);
}

.scene.exit-down {
  opacity: 0;
  transform: scale(0.98) translateY(20px);
}

.scene-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.scene-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transform: scale(1.05);
  will-change: transform;
}

.scene-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.scene-bg > *:not(.scene-bg-img):not(.scene-bg-overlay) {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.scene-vfx {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.scene-bg-void .scene-bg-overlay {
  background: radial-gradient(ellipse at center top, rgba(5, 5, 16, 0.4) 0%, rgba(5, 5, 16, 0.75) 100%);
}

.scene-bg-dream .scene-bg-overlay {
  background: linear-gradient(180deg, rgba(5, 5, 16, 0.45) 0%, rgba(0, 71, 160, 0.4) 100%);
}

.scene-bg-decision .scene-bg-overlay {
  background: radial-gradient(ellipse at center, rgba(5, 5, 16, 0.5) 0%, rgba(5, 5, 16, 0.7) 100%);
}

.scene-bg-challenge .scene-bg-overlay {
  background: linear-gradient(135deg, rgba(5, 5, 16, 0.45) 0%, rgba(20, 5, 30, 0.55) 100%);
}

.scene-bg-competition .scene-bg-overlay {
  background: linear-gradient(180deg, rgba(5, 5, 16, 0.55) 0%, rgba(5, 5, 16, 0.7) 100%);
}

.scene-bg-selection .scene-bg-overlay {
  background: radial-gradient(ellipse at center, rgba(255, 209, 102, 0.15) 0%, rgba(5, 5, 16, 0.65) 65%);
}

.scene-bg-show .scene-bg-overlay {
  background: linear-gradient(180deg, rgba(5, 5, 16, 0.4) 0%, rgba(80, 0, 30, 0.5) 100%);
}

.scene-bg-transformation .scene-bg-overlay {
  background: linear-gradient(135deg, rgba(5, 5, 16, 0.45) 0%, rgba(30, 20, 10, 0.55) 100%);
}

.scene-bg-korea .scene-bg-overlay {
  background: linear-gradient(180deg, rgba(5, 5, 16, 0.4) 0%, rgba(0, 71, 160, 0.45) 100%);
}

.scene-bg-debut .scene-bg-overlay {
  background: linear-gradient(180deg, rgba(5, 5, 16, 0.35) 0%, rgba(205, 46, 58, 0.4) 100%);
}

.scene-bg-finale .scene-bg-overlay {
  background: radial-gradient(ellipse at center, rgba(5, 5, 16, 0.45) 0%, rgba(5, 5, 16, 0.72) 100%);
}

.scene-content {
  position: relative;
  z-index: 5;
  padding: 2rem;
  max-width: 880px;
  text-align: center;
}

.scene-content-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ---- Typography ---- */
.headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  font-style: italic;
}

.headline-gold {
  color: var(--gold);
  text-shadow: var(--glow-gold);
}

.headline-climax {
  font-size: clamp(2.5rem, 7vw, 5rem);
  animation: climax-glow 3s ease-in-out infinite alternate;
}

@keyframes climax-glow {
  from { text-shadow: 0 0 20px rgba(255, 209, 102, 0.2); }
  to { text-shadow: 0 0 40px rgba(255, 209, 102, 0.5), 0 0 80px rgba(205, 46, 58, 0.2); }
}

.subheadline {
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.8;
}

.opening-line {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fade-in-line 2s ease 0.5s forwards;
}

@keyframes fade-in-line {
  to { opacity: 1; }
}

/* ---- Buttons ---- */
.btn-journey {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text);
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-journey::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 209, 102, 0.08));
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-journey:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: var(--glow-gold);
}

.btn-journey:hover::before {
  opacity: 1;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--red), #a02030);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 1rem 2rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  font-family: var(--font-body);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(205, 46, 58, 0.4);
}

.btn-glow {
  box-shadow: 0 0 30px rgba(205, 46, 58, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 1rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ---- Music Consent ---- */
.music-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 16, 0.85);
  backdrop-filter: blur(8px);
}

.music-consent-overlay[hidden] {
  display: none;
}

.music-consent-card {
  background: rgba(15, 15, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem;
  max-width: 420px;
  text-align: center;
  border-radius: 4px;
}

.music-consent-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.music-consent-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.music-consent-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ---- SCENE 0: Beginning ---- */
.scene-bg-void {
  background: radial-gradient(ellipse at center, #0a0a18 0%, var(--bg) 70%);
}

.single-spotlight {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 300px;
  height: 400px;
  background: radial-gradient(ellipse at center top, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: spotlight-breathe 4s ease-in-out infinite;
}

@keyframes spotlight-breathe {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -60%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -60%) scale(1.05); }
}

/* ---- SCENE 1: Dream ---- */
.scene-bg-dream {
  background: linear-gradient(180deg, #0a0820 0%, var(--bg) 100%);
}

.distant-stage {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  max-width: 600px;
  height: 200px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 71, 160, 0.15) 100%);
  border-top: 2px solid rgba(255, 209, 102, 0.3);
  box-shadow: 0 -20px 80px rgba(0, 71, 160, 0.3), inset 0 20px 60px rgba(255, 209, 102, 0.05);
  animation: stage-glow 5s ease-in-out infinite alternate;
}

.distant-stage::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 80px;
  background: linear-gradient(180deg, var(--gold), transparent);
  box-shadow: 0 0 40px var(--gold);
}

@keyframes stage-glow {
  from { box-shadow: 0 -20px 60px rgba(0, 71, 160, 0.2); }
  to { box-shadow: 0 -30px 100px rgba(0, 71, 160, 0.4), 0 -10px 40px rgba(255, 209, 102, 0.15); }
}

.dream-figure {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 80px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  border-radius: 20px 20px 0 0;
  opacity: 0.6;
}

.parallax-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.parallax-far {
  background: radial-gradient(circle at 50% 80%, rgba(0, 71, 160, 0.08) 0%, transparent 50%);
}

/* ---- SCENE 2: Decision ---- */
.scene-bg-decision {
  background: radial-gradient(ellipse at center, #12101f 0%, var(--bg) 80%);
}

.phone-visual {
  margin-bottom: 2rem;
}

.phone-frame {
  display: inline-block;
  width: 160px;
  height: 280px;
  background: #1a1a2e;
  border-radius: 24px;
  padding: 8px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--glow-blue);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0d0d1a 0%, #151525 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.notification-pulse {
  position: absolute;
  top: 30%;
  left: 10%;
  right: 10%;
  height: 80px;
  background: rgba(0, 71, 160, 0.2);
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 12px;
  animation: notification-glow 2s ease-in-out infinite;
}

@keyframes notification-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 209, 102, 0.2); }
  50% { box-shadow: 0 0 25px rgba(255, 209, 102, 0.5); }
}

.notification-text {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* ---- SCENE 3: Challenge ---- */
.scene-bg-challenge {
  background: linear-gradient(135deg, #0a0818 0%, #120820 50%, var(--bg) 100%);
}

.challenge-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.challenge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  transition: transform 0.4s, border-color 0.4s;
}

.challenge-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 209, 102, 0.2);
}

.challenge-icon {
  font-size: 2rem;
  opacity: 0.9;
}

.challenge-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- SCENE 4: Competition ---- */
.scene-bg-competition {
  background: var(--bg);
}

.applicant-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 4px;
  padding: 2rem;
  opacity: 0.15;
}

.applicant-grid::before {
  content: '';
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 30px,
    rgba(255, 255, 255, 0.03) 30px,
    rgba(255, 255, 255, 0.03) 31px
  );
}

.counter-display {
  margin-bottom: 2rem;
}

.counter-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  line-height: 1;
}

.counter-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- SCENE 5: Selection ---- */
.scene-bg-selection {
  background: radial-gradient(ellipse at center, rgba(255, 209, 102, 0.08) 0%, var(--bg) 60%);
}

.selection-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.15) 0%, transparent 70%);
  animation: burst-pulse 2s ease-out;
}

@keyframes burst-pulse {
  from { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.selection-reveal {
  margin-bottom: 1.5rem;
}

.selection-number {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--gold);
  text-shadow: var(--glow-gold);
  line-height: 1;
}

/* ---- SCENE 6: Show ---- */
.scene-bg-show {
  background: linear-gradient(180deg, #0d0818 0%, var(--bg) 100%);
}

.camera-lights {
  position: absolute;
  top: 10%;
  left: 0;
  right: 0;
  height: 200px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 80px,
    rgba(255, 255, 255, 0.03) 80px,
    rgba(255, 255, 255, 0.03) 81px
  );
}

.stage-beams {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 50%;
  background: conic-gradient(from 180deg at 50% 100%, transparent 0deg, rgba(0, 71, 160, 0.1) 30deg, transparent 60deg, rgba(205, 46, 58, 0.08) 90deg, transparent 120deg);
  animation: beams-sweep 8s linear infinite;
}

@keyframes beams-sweep {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

.show-visual {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  opacity: 0.7;
}

/* ---- SCENE 7: Transformation ---- */
.scene-bg-transformation {
  background: linear-gradient(135deg, #0a0815 0%, #151020 50%, var(--bg) 100%);
}

.training-montage {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.montage-item {
  padding: 0.5rem 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  opacity: 0;
  animation: montage-fade 8s ease-in-out infinite;
}

.montage-item:nth-child(1) { animation-delay: 0s; }
.montage-item:nth-child(2) { animation-delay: 2s; }
.montage-item:nth-child(3) { animation-delay: 4s; }
.montage-item:nth-child(4) { animation-delay: 6s; }

@keyframes montage-fade {
  0%, 100% { opacity: 0.3; border-color: rgba(255, 255, 255, 0.08); }
  10%, 40% { opacity: 1; border-color: rgba(255, 209, 102, 0.3); color: var(--gold); }
  50% { opacity: 0.3; }
}

/* ---- SCENE 8: Korea ---- */
.scene-bg-korea {
  background: linear-gradient(180deg, #080818 0%, #0a1025 40%, var(--bg) 100%);
}

.academy-visual {
  margin-bottom: 2rem;
}

.academy-building {
  width: 200px;
  height: 120px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(0, 71, 160, 0.3) 0%, rgba(0, 71, 160, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px 4px 0 0;
  position: relative;
  box-shadow: var(--glow-blue);
}

.academy-building::before {
  content: 'SEOUL';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  opacity: 0.8;
}

/* ---- SCENE 9: Debut ---- */
.scene-bg-debut {
  background: radial-gradient(ellipse at center bottom, rgba(205, 46, 58, 0.15) 0%, var(--bg) 60%);
}

.arena-lights {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 71, 160, 0.2) 50%, rgba(255, 209, 102, 0.1) 100%);
}

.lightsticks {
  position: absolute;
  bottom: 20%;
  left: 0;
  right: 0;
  height: 100px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    rgba(255, 209, 102, 0.1) 20px,
    transparent 40px
  );
  animation: lightsticks-wave 3s ease-in-out infinite;
}

@keyframes lightsticks-wave {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ---- SCENE 10: Finale ---- */
.scene-bg-finale {
  background: radial-gradient(ellipse at center, #101020 0%, var(--bg) 70%);
}

.mirror-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(280px, 50vw);
  height: min(360px, 60vw);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.3;
  z-index: 1;
}

.mirror-reflection {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(0,71,160,0.1) 50%, rgba(255,209,102,0.05) 100%);
  animation: mirror-shimmer 4s ease-in-out infinite;
}

@keyframes mirror-shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 540px;
  margin: 1.5rem auto;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  transition: border-color 0.3s;
}

.benefit-item:hover {
  border-color: rgba(255, 209, 102, 0.2);
}

.benefit-icon {
  font-size: 1.2rem;
}

/* ---- Navigation ---- */
.nav-hints {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.nav-hints.visible {
  opacity: 1;
}

.nav-arrow {
  width: 40px;
  height: 40px;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-arrow:hover:not(:disabled) {
  color: var(--gold);
  border-color: rgba(255, 209, 102, 0.3);
}

.nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ---- Trailer Modal ---- */
.trailer-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trailer-modal[hidden] {
  display: none;
}

.trailer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 16, 0.9);
  backdrop-filter: blur(4px);
}

.trailer-content {
  position: relative;
  width: min(900px, 92vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.trailer-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.trailer-close:hover {
  opacity: 1;
}

.trailer-video {
  width: 100%;
  height: 100%;
}

.trailer-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- SEO Hidden Content ---- */
.seo-content {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .persistent-ui {
    padding: 1rem;
  }

  .logo-sub {
    display: none;
  }

  .btn-apply {
    padding: 0.45rem 0.75rem;
    font-size: 0.6rem;
  }

  .chapter-indicator {
    left: 1rem;
    bottom: 1rem;
  }

  .challenge-cards {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-hints {
    right: 1rem;
  }

  .scroll-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scene {
    transition-duration: 0.2s;
  }
}
