:root {
  --background: #6a2787;
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--background);
  scrollbar-width: none;
  overscroll-behavior-y: none;
}
:root::-webkit-scrollbar { display: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: calc(100vh + 8rem);
  min-height: calc(100dvh + 8rem);
}
main {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--background);
}
.scene {
  position: absolute;
  left: 76%;
  top: 54%;
  width: min(17.5rem, 36vw, 38vh);
  width: min(17.5rem, 36vw, 38svh);
  transform: translate(-50%, -50%);
}
.scene img, .scene video {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}
.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding: max(1.75rem, env(safe-area-inset-top)) 1rem .75rem;
  border-radius: 0 0 2rem 2rem;
  background: var(--background);
  pointer-events: none;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 840ms cubic-bezier(.16, 1, .3, 1), opacity 380ms ease-out;
}
.bar.shown, .bar:focus-within {
  transform: none;
  opacity: 1;
}
.bar.shown button, .bar:focus-within button { pointer-events: auto; }
.bar button {
  display: block;
  min-height: 2.85rem;
  padding: 0 1.65rem;
  border: 0;
  border-radius: 2rem;
  background: #f4e3fa;
  color: #41204f;
  font: 600 .96rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bar button:focus-visible { outline: 2px solid white; outline-offset: 4px; }
@media (max-width: 600px) {
  .bar { padding-top: max(1rem, env(safe-area-inset-top)); }
  .scene { left: 72%; width: min(48vw, 36svh); }
}
@media (max-height: 440px) {
  .bar { padding-top: max(.65rem, env(safe-area-inset-top)); }
  .scene { top: 60%; }
}
@media (prefers-reduced-motion: reduce) {
  .bar { transition: none; }
}
@media (scripting: none) {
  .bar { transform: none; opacity: 1; }
  .bar button { pointer-events: auto; }
}
