/* ── System background shared ── */
.system-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.system-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* System-level overlay (§1): vertical gradient + radial vignette + white highlight */
.system-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    var(--overlay-system-3),
    var(--overlay-system-2),
    var(--overlay-system-1);
}

/* Splash-type overlay (§1): gradient + radial vignette */
.system-bg-overlay.splash {
  background:
    var(--overlay-splash-2),
    var(--overlay-splash-1);
}

/* Story-type overlay (§1): top-bottom gradient + side darken */
.system-bg-overlay.story {
  background:
    var(--overlay-story-2),
    var(--overlay-story-1);
}

/* ── Prologue (§3) ── */
.prologue-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: var(--space-xl);
}

.prologue-counter {
  position: absolute;
  top: 66px;
  left: 48px;
  right: 48px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-size: 12px;
  font-family: var(--font-sans);
  color: var(--parchment-92);
  letter-spacing: 0.12em;
}

.prologue-counter::before,
.prologue-counter::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-60);
}

.prologue-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.68;
  color: #F7F3EC;
  text-align: center;
  opacity: 0;
  transition: opacity var(--duration-slow);
  max-width: 340px;
}

.prologue-text.visible {
  opacity: 1;
}

.prologue-hint {
  position: absolute;
  bottom: 58px;
  z-index: 1;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--parchment-84);
  animation: breathe 1.6s ease-in-out infinite;
}

.prologue-skip-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  background: transparent;
  border: 1px solid var(--gold-60);
  color: var(--parchment-84);
  font-size: 12px;
  padding: 6px 14px;
  cursor: pointer;
  clip-path: var(--clip-cut-sm);
  transition: all 0.2s;
}

.prologue-skip-btn:active {
  background: var(--gold-60);
  color: var(--bg-dark);
}
