body.story-intro-active { overflow: hidden; }
.story-intro[hidden], .story-intro [hidden] { display: none !important; }
.story-intro {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 2147483647;
  isolation: isolate;
  background: #000;
  color: #fff;
}
.story-intro-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.story-intro button {
  position: absolute;
  z-index: 1;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  background: rgba(10,16,28,.88);
  color: #fff;
  font: 700 16px/1.4 system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.story-intro button:hover { background: #293a58; }
.story-intro button:focus-visible { outline: 3px solid #8fc9ff; outline-offset: 4px; }
.story-intro-close {
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  min-width: 120px;
}
.story-intro-sound { top: max(20px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); }
.story-intro-play { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.story-intro-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: max(94px, calc(env(safe-area-inset-bottom) + 74px));
  margin: 0;
  text-align: center;
  font: 500 15px/1.6 system-ui, sans-serif;
  text-shadow: 0 1px 5px #000;
}
.story-intro-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
