.intro-replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: .45rem .65rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: var(--paper);
  font-size: .82rem;
  white-space: nowrap;
}
.intro-replay:hover { background: var(--paper-deep); }
.intro-replay-short { display: none; }
@media (max-width: 900px) {
  .site-header:has(.intro-replay:not([hidden])) .header-nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
}
@media (max-width: 680px) {
  .intro-replay-label { display: none; }
  .intro-replay-short { display: inline; }
}
.opening-intro:not([open]) { display: none; }
.opening-intro {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #fffaf0;
  background: #08121e;
  opacity: 1;
  transition: opacity 380ms ease;
}
.opening-intro::backdrop { background: #08121e; transition: background 380ms ease; }
.opening-intro.is-leaving { opacity: 0; pointer-events: none; }
.opening-intro.is-leaving::backdrop { background: transparent; }
html:has(.opening-intro[open]) { overflow: hidden; }
.opening-intro-film {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.opening-intro-button {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid rgba(234,203,142,.45);
  border-radius: 999px;
  color: #fff5df;
  background: rgba(7,19,30,.78);
  font: 500 13px/1.2 ui-sans-serif, system-ui, -apple-system, sans-serif;
  letter-spacing: .025em;
  cursor: pointer;
  box-shadow: 0 2px 18px rgba(0,0,0,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}
.opening-intro-button:hover { color: #fff; background: rgba(28,43,52,.95); border-color: #eacb8e; }
.opening-intro-button:focus-visible { outline: 2px solid #eacb8e; outline-offset: 5px; }
.opening-intro-button span { color: #eacb8e; }
.opening-intro-button .opening-intro-play-label { color: inherit; }
.opening-intro-skip {
  top: max(22px, env(safe-area-inset-top));
  right: max(24px, env(safe-area-inset-right));
}
.opening-intro-play {
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
}
.opening-intro-progress {
  position: absolute;
  inset: auto 0 0;
  display: block;
  width: 100%;
  height: 2px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  color: #eacb8e;
  background: rgba(234,203,142,.12);
}
.opening-intro-progress::-webkit-progress-bar { background: rgba(234,203,142,.12); }
.opening-intro-progress::-webkit-progress-value { background: #eacb8e; }
.opening-intro-progress::-moz-progress-bar { background: #eacb8e; }
@media (max-width: 900px) and (orientation: portrait) {
  .opening-intro-play { width: 44px; height: 44px; padding: 0; }
  .opening-intro-play-label { display: none; }
}
@media (max-width: 600px) {
  .opening-intro-skip { top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); }
  .opening-intro-play { bottom: max(16px, env(safe-area-inset-bottom)); right: max(14px, env(safe-area-inset-right)); }
}
@media (prefers-reduced-motion: reduce) {
  .opening-intro, .opening-intro::backdrop, .opening-intro-button { transition: none; }
}
