/* Lightweight, optional introduction. Full video only loads after a play click. */
.intro-disclosure { font-size: 12px; line-height: 1.5; }
.intro-dialog { width: min(410px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 18px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 22px; overflow-y: auto; overscroll-behavior: contain; }
.intro-dialog::backdrop { background: #24192ebd; }
.intro-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.intro-heading .eyebrow { margin-bottom: 6px; }
.intro-heading h2 { margin: 0; font-size: 22px; }
.intro-heading .icon { flex: 0 0 44px; }
.intro-dialog .intro-disclosure { margin: 10px 0; padding: 0; border: 0; background: transparent; color: var(--muted); font-weight: 400; }
.intro-video { display: block; width: auto; max-width: 100%; height: min(51svh, 440px); aspect-ratio: 9 / 16; object-fit: contain; margin: 0 auto; border-radius: 13px; background: #221929; }
.intro-status { margin: 10px 0; min-height: 2em; }
.intro-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.intro-actions button { flex: 1 1 140px; min-height: 48px; }
@media (max-width: 360px) { .intro-dialog { padding: 14px; } .intro-heading h2 { font-size: 20px; } .intro-actions button { flex-basis: 110px; padding-inline: 7px; font-size: 13px; } }
@media (max-height: 560px) { .intro-video { height: 38svh; } }
/* Unknown <dialog> elements in legacy browsers must not leak into the page. */
.intro-dialog:not([open]) { display: none; }


/* End-of-exercise cues stay clear of the face and never block the video tap. */
.countdown { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 8px; width: max-content; max-width: calc(100% - 16px); min-width: 124px; padding: 8px 12px; border: 1px solid #f7effc88; border-radius: 16px; background: #423051e8; color: #fff8fd; pointer-events: none; }
.countdown span { font-size: 13px; white-space: nowrap; }
.countdown strong { white-space: nowrap; font-size: 40px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.timer.final-seconds { background: var(--lavender); border-radius: 50%; }
.timer.final-seconds #digits { font-size: 36px; }

.countdown.is-complete strong { font-size: 25px; }
