:root {
  --bg: #08080a;
  --ivory: #efe6d2;
  --muted: #8d8576;
  --gold: #d8b46a;
  --serif: "Cormorant Garamond", "Didot", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body {
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.vignette {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0,0,0,.7) 100%);
}

.top, .bottom {
  position: fixed; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(20px, env(safe-area-inset-top)) clamp(16px, 4vw, 44px) 20px;
  pointer-events: none;
}
.top { top: 0; }
.bottom { bottom: 0; justify-content: center; gap: 14px; padding-bottom: max(22px, env(safe-area-inset-bottom));
  font-size: 10px; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }

.brand { font: 500 22px/1 var(--serif); letter-spacing: .08em; color: var(--ivory); }
.brand i { font-style: italic; font-weight: 300; color: var(--gold); padding: 0 .08em; }

.pager { display: flex; align-items: center; gap: 6px; pointer-events: auto; }
.pager span { font: 400 10px/1 var(--sans); letter-spacing: .3em; color: var(--muted); min-width: 8ch; text-align: center; font-variant-numeric: tabular-nums; }
.pager button {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: none; border: 1px solid rgba(216,180,106,.25); color: var(--ivory);
  font: 300 14px/1 var(--sans); transition: border-color .3s, background .3s;
}
.pager button:hover, .pager button:focus-visible { border-color: var(--gold); background: rgba(216,180,106,.08); outline: none; }

.caption { position: fixed; left: 0; right: 0; bottom: 64px; z-index: 2; text-align: center; pointer-events: none; padding: 0 16px; }
.hint {
  margin: 0; font: italic 300 clamp(15px, 1.6vw, 19px)/1.4 var(--serif); color: var(--muted);
  letter-spacing: .04em; transition: opacity 1.2s;
}
.hint span { color: var(--ivory); font-style: normal; font-weight: 500; }
.hint.gone { opacity: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 560px) {
  .caption { bottom: 58px; }
}
