/* ─── Scene 4 — cinematic narration ─────────────────────── */
#scene-04 {
  background: #06060f;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all; /* allow Continue button to be clicked */
}

/* Fades in after the scene-03 smile moment has settled */
body.scenes-started #stage #scene-04 {
  animation: s4FadeIn 1.4s 33s both;
}
@keyframes s4FadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Content container ──────────────────────────────────── */
.s4-content {
  text-align: center;
  padding: 40px 60px;
  max-width: 680px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* ── Text lines (filled by JS typewriter) ───────────────── */
.s4-line {
  font-family: 'Georgia', serif;
  font-size: 22px;
  color: #f0ede8;
  line-height: 1.75;
  letter-spacing: 0.3px;
  margin: 0;
  min-height: 1.75em;
}

/* Blinking cursor while typing */
.s4-line.typing::after {
  content: '|';
  color: #f0ede8;
  animation: s4Blink 0.65s step-end infinite;
}
@keyframes s4Blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Continue button ────────────────────────────────────── */
.s4-continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 44px;
  background: #e53935;
  color: white;
  font-family: 'Bangers', 'Impact', cursive;
  font-size: 38px;
  letter-spacing: 3px;
  border: 3px solid #000;
  border-radius: 6px;
  box-shadow: 5px 5px 0 #000;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease,
              box-shadow 0.08s, background 0.08s;
  pointer-events: none;
}
.s4-continue-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.s4-continue-btn:hover {
  background: #ef5350;
  box-shadow: 7px 7px 0 #000;
  transform: translateY(-2px) !important;
}
.s4-continue-btn:active {
  background: #b71c1c;
  box-shadow: 2px 2px 0 #000;
  transform: translateY(2px) !important;
}

/* ── Portrait adjustments ───────────────────────────────── */
@media (orientation: portrait) {
  .s4-line           { font-size: 18px; }
  .s4-continue-btn   { font-size: 28px; padding: 14px 32px; }
}
