/* ═══════════════════════════════════════════
   THE SUITCASE — Cinematic Spiritual CSS
═══════════════════════════════════════════ */

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #020208;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #e8dfc8;
}

/* ── START SCREEN ── */
#start-screen {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: #020208;
  transition: opacity 1.2s ease;
}
#start-screen.hidden { opacity: 0; pointer-events: none; }

#start-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

.start-inner {
  position: relative; z-index: 2;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}

.start-eyebrow {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: clamp(13px, 2vw, 16px);
  letter-spacing: 0.35em;
  color: rgba(201,168,76,0.6);
  text-transform: lowercase;
}

.start-title {
  font-family: 'IM Fell English', serif;
  font-size: clamp(64px, 14vw, 120px);
  font-weight: 400;
  line-height: 0.95;
  color: #e8dfc8;
  letter-spacing: -0.01em;
}
.start-title em {
  font-style: italic;
  color: rgba(201,168,76,0.9);
}

.start-sub {
  font-size: clamp(14px, 2.2vw, 18px);
  font-style: italic;
  color: rgba(232,223,200,0.5);
  max-width: 380px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

#start-btn {
  margin-top: 12px;
  padding: 14px 44px;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.45);
  color: rgba(201,168,76,0.9);
  font-family: 'IM Fell English', serif;
  font-size: clamp(14px, 2vw, 17px);
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: all 0.4s ease;
}
#start-btn:hover {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.8);
  color: #c9a84c;
}

/* ── STAGE ── */
#stage {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
}

#bg-canvas,
#scene-canvas,
#particle-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
#bg-canvas    { z-index: 1; }
#scene-canvas { z-index: 2; }
#particle-canvas { z-index: 3; }

/* ── HUD ── */
#hud {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 22px 28px 0;
  display: flex; flex-direction: column; gap: 10px;
}

#scene-label {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: clamp(11px, 1.6vw, 14px);
  letter-spacing: 0.28em;
  color: rgba(201,168,76,0.0);
  text-transform: lowercase;
  transition: color 1s ease;
}
#scene-label.visible { color: rgba(201,168,76,0.55); }

#progress-bar {
  width: 100%; height: 1px;
  background: rgba(201,168,76,0.1);
}
#progress-fill {
  height: 100%;
  background: rgba(201,168,76,0.5);
  width: 0%;
  transition: width 1.2s ease;
}

/* ── POEM TEXT ── */
#poem-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 20;
  padding: 0 6vw 8vh;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}

#poem-text {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  max-width: 820px;
  width: 100%;
}

.poem-line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.poem-line.visible {
  opacity: 1;
  transform: translateY(0);
}
.poem-line.fading {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Line styles */
.line-open    { font-size: clamp(28px, 5.5vw, 52px); font-style: italic; color: rgba(232,223,200,0.75); }
.line-carry   { font-size: clamp(36px, 7vw, 68px); font-weight: 300; color: #e8dfc8; }
.line-items   { font-size: clamp(18px, 3.2vw, 30px); font-style: italic; color: rgba(201,168,76,0.8); letter-spacing: 0.08em; }
.line-wonder  { font-size: clamp(22px, 4vw, 38px); font-style: italic; color: rgba(232,223,200,0.65); }
.line-reveal  { font-size: clamp(30px, 5.8vw, 56px); color: #e8dfc8; }
.line-truth   { font-size: clamp(32px, 6.2vw, 60px); font-style: italic; color: rgba(201,168,76,0.95); }
.line-refuse  { font-size: clamp(28px, 5.5vw, 52px); color: #e8dfc8; }
.line-lighter { font-size: clamp(30px, 5.8vw, 56px); font-style: italic; color: rgba(201,168,76,0.9); }
.line-river   { font-size: clamp(26px, 5vw, 48px); color: rgba(232,223,200,0.8); }
.line-soft    { font-size: clamp(20px, 3.8vw, 36px); font-style: italic; color: rgba(232,223,200,0.6); }
.line-closing { font-size: clamp(28px, 5.5vw, 52px); color: #e8dfc8; }
.line-final   { font-size: clamp(32px, 6.2vw, 60px); font-style: italic; color: rgba(201,168,76,0.95); }
.line-spacer  { height: 10px; }

/* ── FLASH OVERLAYS ── */
.glow-overlay {
  position: fixed; inset: 0; z-index: 50;
  pointer-events: none;
  animation: flashFade 1.8s ease forwards;
}
.flash-gold   { background: radial-gradient(ellipse at center, rgba(201,168,76,0.18) 0%, transparent 70%); }
.flash-blue   { background: radial-gradient(ellipse at center, rgba(100,160,255,0.14) 0%, transparent 70%); }
.flash-white  { background: radial-gradient(ellipse at center, rgba(255,255,255,0.12) 0%, transparent 70%); }
.flash-river  { background: radial-gradient(ellipse at center, rgba(80,180,200,0.14) 0%, transparent 70%); }

@keyframes flashFade {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ── FINAL CARD ── */
#final-card {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 8vw;
  background: rgba(2,2,8,0.0);
  opacity: 0;
  transition: opacity 2s ease;
  gap: 20px;
}
#final-card.visible { opacity: 1; }

.final-rule {
  width: 60px; height: 1px;
  background: rgba(201,168,76,0.5);
  margin-bottom: 8px;
}

.final-title {
  font-family: 'IM Fell English', serif;
  font-size: clamp(52px, 11vw, 100px);
  line-height: 1.0;
  color: #e8dfc8;
  letter-spacing: -0.01em;
}
.final-title span {
  font-style: italic;
  color: rgba(201,168,76,0.95);
}

.final-body {
  font-size: clamp(16px, 2.8vw, 24px);
  font-style: italic;
  color: rgba(232,223,200,0.6);
  line-height: 1.7;
  max-width: 500px;
}

.final-tag {
  font-size: clamp(11px, 1.6vw, 14px);
  letter-spacing: 0.3em;
  color: rgba(201,168,76,0.4);
  text-transform: lowercase;
  font-family: 'IM Fell English', serif;
  font-style: italic;
}

.final-replay {
  margin-top: 10px;
  padding: 12px 38px;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.35);
  color: rgba(201,168,76,0.7);
  font-family: 'IM Fell English', serif;
  font-size: clamp(13px, 1.8vw, 16px);
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.4s ease;
}
.final-replay:hover {
  background: rgba(201,168,76,0.07);
  border-color: rgba(201,168,76,0.7);
  color: #c9a84c;
}