/* The reel at /animation.html: one vertical stage, centered, in Vivi's
   colors, with a start button over it (browsers only play sound after a
   tap) and a replay button at the end. */
:root {
  --void: #07040c;
  --text: #f3e9ff;
  --dim: #b7a2cc;
  --v207: #ff5fff;
  --signal: #5fffd7;
  --grad: linear-gradient(100deg, #ffafff 0%, #ff87ff 30%, #ff5fff 52%, #d787ff 76%, #d75fff 100%);
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--void); color: var(--text); font: 17px/1.5 var(--body); }
body { overflow: hidden; }

.room {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: radial-gradient(40rem 40rem at 50% 30%, rgb(215 95 255 / .12), transparent 70%), var(--void);
}
#stage { display: block; touch-action: manipulation; cursor: pointer; }

.gate {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 14px; padding: 0 16px 18vh;
  background: linear-gradient(to bottom, transparent 40%, rgb(7 4 12 / .75));
}
.gate[hidden] { display: none; }
.end { justify-content: center; padding-bottom: 0; background: rgb(7 4 12 / .35); }

.tune {
  font: 700 1.15rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  color: #1a0526; background: var(--grad);
  border: 0; border-radius: 999px; padding: 18px 34px;
  box-shadow: 0 0 28px rgb(255 95 255 / .55);
  cursor: pointer; text-decoration: none;
}
.tune:disabled { opacity: .55; cursor: wait; }
.tune:not(:disabled):hover { filter: brightness(1.1); }
.tune.ghost { background: rgb(22 11 34 / .85); color: var(--text); border: 1px solid var(--v207); box-shadow: none; font-size: .95rem; }
.tune:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.hint { margin: 0; color: var(--dim); font-size: .9rem; letter-spacing: .06em; }

.nojs { position: fixed; inset: auto 16px 40px; text-align: center; }
.nojs a { color: var(--v207); }

@media (prefers-reduced-motion: reduce) {
  .tune { box-shadow: none; }
}
