@font-face {
  font-family: Ovvls;
  src: url('../fonts/04B_03__.TTF') format('truetype');
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --pixel: 4px;
  --scene-width: 768px;
  --scene-height: 432px;
  --type: 32px;
  --control-type: var(--type);
  background: #1a1a1a;
  color: #b9d39e;
  font-family: Ovvls, monospace;
  font-size: var(--type);
  font-synthesis: none;
  -webkit-font-smoothing: none;
}
* { box-sizing: border-box; }
html { width: 100%; height: 100%; overflow: hidden; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
main { position: fixed; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; }
main::-webkit-scrollbar { display: none; }
button { color: inherit; font: inherit; }
.music-toggle {
  position: fixed;
  z-index: 3;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.music-toggle svg { display: block; width: var(--control-type); height: var(--control-type); overflow: visible; }
.music-toggle[aria-pressed="false"] { opacity: .2; }
.chapter { flex: 0 0 100%; width: 100%; height: 100vh; height: 100svh; scroll-snap-align: start; }
.stage {
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  width: var(--scene-width);
  height: var(--scene-height);
  pointer-events: none;
  mask-size: calc(var(--pixel) * 8) calc(var(--pixel) * 8);
  mask-repeat: repeat;
  mask-mode: alpha;
  -webkit-mask-size: calc(var(--pixel) * 8) calc(var(--pixel) * 8);
  -webkit-mask-repeat: repeat;
}
.stage video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.stage video.active { display: block; }
.footer { position: fixed; z-index: 2; left: 0; width: 100%; text-align: center; }
.footer { bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pagination { display: flex; gap: 8px; align-items: center; }
.arrow { border: 0; background: transparent; cursor: pointer; min-width: 44px; min-height: 44px; padding: 0 8px; }
.arrow:disabled { opacity: .2; cursor: default; }
.counter { min-width: 7ch; font-variant-numeric: tabular-nums; }
button:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.resume { position: fixed; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 2px solid currentColor; padding: 16px; background: #1a1a1a; cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px), (max-height: 600px) {
  .footer { bottom: 16px; }
}
@media (max-width: 700px), (pointer: coarse) {
  :root { --control-type: 24px; }
  .footer { font-size: var(--control-type); }
}
