/* ── Dialogue Box (§8) — dark HUD card at bottom, no frosted glass ── */
.dialogue-box {
  position: absolute;
  bottom: 34px;
  left: 18px;
  right: 18px;
  padding: 18px 20px 22px;
  background: var(--dialogue-box-bg);
  border: none;
  clip-path: var(--clip-cut-md);
  box-shadow: var(--dialogue-box-shadow);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

/* ── Speaker chip with gold readability per §15.2 ── */
.dialogue-speaker {
  display: inline-block;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #E4CA8F;
  padding: 3px 9px 4px;
  background: linear-gradient(to right, var(--deep-30), var(--deep-10));
  border: 1px solid var(--gold-18);
  clip-path: var(--clip-cut-sm);
  text-shadow: 0 1px 2px var(--black-72), 0 0 10px var(--gold-20);
  margin-bottom: var(--space-xs);
}

.dialogue-text {
  font-family: var(--font-sans);
  font-size: var(--fs-dialogue);
  line-height: var(--lh-dialogue);
  color: var(--snow-94);
  text-shadow: 0 1px 3px var(--text-shadow-color);
}

.dialogue-box.narration .dialogue-text {
  font-family: var(--font-serif);
}

.dialogue-continue {
  align-self: flex-end;
  margin-top: var(--space-sm);
  margin-right: 0;
  width: 17px;
  height: 9px;
  opacity: 0;
  animation: breathe 1.6s ease-in-out infinite;
}

.dialogue-continue::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 9px solid var(--text-secondary);
}

@keyframes breathe {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ── Fullscreen narration ── */
.narration-fullscreen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background: var(--overlay-full-dim);
  cursor: pointer;
}

.narration-fullscreen-text {
  font-family: var(--font-serif);
  font-size: var(--fs-narration);
  line-height: var(--lh-narration);
  color: var(--snow-94);
  text-align: center;
  text-shadow: 0 1px 4px var(--text-shadow-color);
}

/* ── Long narration (§9 / §17.4 / Android TASK-20260723-002) ── soft radial fog, no solid block */
.long-narration {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 88px 18px 126px;
  overflow-y: auto;
  cursor: pointer;
}

/* Full-screen very light vertical dim (Android: deepBlue 0.06→0.12→0.24) */
.long-narration::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(16, 24, 39, 0.06) 0%,
    rgba(16, 24, 39, 0.12) 44%,
    rgba(16, 24, 39, 0.24) 100%);
  pointer-events: none;
  z-index: 0;
}

.long-narration-frame {
  position: relative;
  z-index: 1;
  background: radial-gradient(ellipse at center,
    rgba(16, 24, 39, 0.44) 0%,
    rgba(16, 24, 39, 0.32) 58%,
    transparent 100%);
  padding: 148px 18px 152px;
  width: 100%;
  min-height: 280px;
  max-height: 100%;
  overflow-y: auto;
}

.long-narration-text {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.88;
  color: var(--parchment-92);
  text-align: left;
  text-shadow: 0 1px 8px rgba(16, 24, 39, 0.18);
}

.long-narration-text p {
  margin: 0 0 1em 0;
}

.long-narration-text p:last-child {
  margin-bottom: 0;
}

.long-narration-pager {
  position: absolute;
  bottom: 120px;
  z-index: 1;
  font-size: 13px;
  color: var(--parchment-78);
  letter-spacing: 2px;
}
