/* First-visit intro (U19): a centred card over a dimmed page, one scene at a time, a
   progress bar that runs the whole duration. Tokens only. */
.osce-intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: rgba(var(--shadow-rgb), 0.55); }
.osce-intro[hidden] { display: none; }
.osce-intro-card { width: min(520px, 100%); background: var(--bg-card); color: var(--fg);
  border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 16px 20px 0; overflow: hidden; }
.osce-intro-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.osce-intro-title { color: var(--fg-muted); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.06em; }
.osce-intro-scene { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 8px 0 18px; }
.osce-intro-scene[hidden] { display: none; }
.osce-intro-scene h2 { margin: 0; font-size: var(--fs-xl); font-weight: 600; }
.osce-intro-scene p { margin: 0; color: var(--fg-muted); max-width: 40ch; }
.osce-intro-icon { font-size: 44px; color: var(--accent); }
.osce-intro.is-playing .osce-intro-scene:not([hidden]) { animation: osce-intro-in 0.45s ease-out; }
.osce-intro-progress { height: 3px; margin: 0 -20px; background: var(--border); }
.osce-intro-bar { display: block; height: 100%; width: 0; background: var(--accent); }
.osce-intro.is-playing .osce-intro-bar { animation: osce-intro-bar var(--intro-ms, 12000ms) linear forwards; }
@keyframes osce-intro-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes osce-intro-bar { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .osce-intro.is-playing .osce-intro-scene:not([hidden]) { animation: none; }
  .osce-intro.is-playing .osce-intro-bar { animation: none; width: 100%; }
}
