.intro-overlay { position: absolute; inset: 0; z-index: 30; overflow: hidden; background: #080b10; color: #fff3dc; container-type: inline-size; }
.intro-overlay[hidden] { display: none; }
.intro-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.intro-tools { position: absolute; top: 2%; left: 2%; right: 2%; display: flex; gap: 6px; justify-content: flex-end; }
.intro-tools button, .intro-next, .intro-replay { border: 1px solid #baa27880; border-radius: 3px; background: #10191fe8; color: #f3e1c5; font: 600 clamp(9px, 1cqw, 13px)/1.25 system-ui, sans-serif; padding: .7cqw 1cqw; min-height: 28px; }
.intro-tools button:hover, .intro-next:hover, .intro-replay:hover { background: #36433ce8; border-color: #efc782; }
.intro-tools button:focus-visible, .intro-next:focus-visible, .intro-replay:focus-visible, .intro-begin:focus-visible { outline: 2px solid #ffcf82; outline-offset: 3px; }
.intro-transport { position: absolute; left: 3%; right: 3%; bottom: 2.3%; display: flex; gap: 12px; align-items: flex-end; }
.intro-subtitles { flex: 1; min-width: 0; max-width: 85%; margin: 0; padding: 1cqw 1.35cqw; background: #070d13e8; border-left: 3px solid #e5b467; font: 500 clamp(11px, 1.6cqw, 19px)/1.5 system-ui, sans-serif; text-shadow: 0 1px 2px #000; }
.intro-subtitles:empty { display: none; }
.intro-speaker { display: block; margin-bottom: .3em; color: #f6c57f; font-size: .72em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.intro-next { flex: 0 0 auto; min-height: 34px; white-space: nowrap; }
.intro-next:disabled { opacity: .5; cursor: default; }
.intro-welcome { position: absolute; inset: auto 0 2.5%; text-align: center; padding: 1cqw; background: #080d16c7; }
.intro-welcome p { margin: .35em 0 .9em; font: 500 clamp(10px, 1.2cqw, 15px)/1.4 system-ui, sans-serif; color: #ede2cc; }
.intro-begin { min-height: 38px; border: 1px solid #fdd191; border-radius: 3px; background: #edba6e; color: #1a2123; padding: 1cqw 2cqw; font: 800 clamp(11px, 1.3cqw, 16px)/1.2 system-ui, sans-serif; letter-spacing: .07em; }
.intro-begin:disabled { opacity: .5; }
.intro-pause-notice { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; padding: 20px; text-align: center; background: #04080acb; }
.intro-pause-notice[hidden], .intro-welcome[hidden], .intro-transport[hidden] { display: none; }
.intro-pause-notice p { margin: 0; font: 700 clamp(16px, 3cqw, 32px)/1.3 system-ui, sans-serif; }
.intro-replay { padding: 11px 16px; }
.intro-help { color: #d5d0c0; font: 500 clamp(8px, .85cqw, 12px)/1.5 system-ui, sans-serif; }
.intro-overlay[data-phase="paused"] .intro-tools { z-index: 2; }
.intro-progress { position: absolute; inset: auto 0 0; height: 2px; width: 0; background: #d7a96b; pointer-events: none; }
.intro-replay-title { display: block; padding: 5px 0; margin-top: .4cqw; border: 0; background: transparent; color: #cbdad2; font: 600 clamp(8px, .75cqw, 11px)/1.3 system-ui, sans-serif; text-align: left; letter-spacing: .06em; }
.intro-replay-title:hover { color: var(--amber); }
@media (max-width: 600px) and (orientation: portrait) {
  .intro-canvas { inset: 0 0 auto; height: auto; aspect-ratio: 16/9; margin-top: 15%; }
  .intro-tools { top: 10px; gap: 4px; }
  .intro-tools button { padding: 7px; font-size: 9px; }
  .intro-transport { bottom: 5%; display: block; }
  .intro-subtitles { max-width: none; padding: 12px; font-size: 15px; line-height: 1.5; }
  .intro-next { margin-top: 12px; float: right; padding: 10px 14px; font-size: 11px; }
  .intro-welcome { bottom: 10%; padding: 14px; }
  .intro-welcome p { font-size: 12px; }
  .intro-begin { font-size: 12px; padding: 13px 18px; }
  .intro-help { font-size: 10px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .intro-subtitles { font-size: clamp(10px, 1.4cqw, 15px); line-height: 1.35; padding: 6px 10px; }
  .intro-tools button { min-height: 24px; padding: 4px 7px; font-size: 9px; }
}
