/* From the Soundnight export's src/styles.css, with Tailwind taken out:
   the @theme colors became plain variables, plus the few resets Tailwind
   used to supply. */
:root {
  --color-ink: #070814;
  --color-magenta: #ff2e97;
  --color-cyan: #3cffe0;
  --color-gold: #f6c15b;
  --color-cream: #f3e6c4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--color-ink);
  color: var(--color-cream);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  overflow: hidden;
  overscroll-behavior: none;
}

button {
  cursor: pointer;
  font: inherit;
}

[hidden] {
  display: none;
}

.scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background: var(--color-ink);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.scene-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.scene-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    color-mix(in srgb, var(--color-ink) 55%, transparent) 0px,
    color-mix(in srgb, var(--color-ink) 55%, transparent) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.28;
  mix-blend-mode: multiply;
}

.scene-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 42%,
    color-mix(in srgb, var(--color-ink) 78%, transparent) 100%
  );
}

.scene-sound {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--color-cream);
  background: color-mix(in srgb, var(--color-ink) 42%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-cyan) 45%, transparent);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.scene-sound svg {
  width: 18px;
  height: 18px;
}

.scene-sound.is-on {
  color: var(--color-cyan);
  border-color: color-mix(in srgb, var(--color-cyan) 80%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .scene-scan {
    opacity: 0.14;
  }
}
