@font-face {
  font-family: "Anybody";
  src: url("fonts/anybody.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 50% 150%;
  font-display: swap;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  background: #1a2970 url("still.jpg") center / cover no-repeat;
  color: #fff;
  font-family: "Anybody", system-ui, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

canvas {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.9s ease;
}

canvas.ready {
  opacity: 1;
}

canvas:active {
  cursor: grabbing;
}

.note,
.hint {
  position: fixed;
  margin: 0;
  pointer-events: none;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.4);
}

.note {
  left: 50%;
  top: max(clamp(1.25rem, 6vh, 3.5rem), env(safe-area-inset-top));
  transform: translate(-50%, -0.4rem);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 750;
  font-stretch: 125%;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.note.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hint {
  left: 50%;
  bottom: max(clamp(1.1rem, 4vh, 2.25rem), env(safe-area-inset-bottom));
  transform: translateX(-50%);
  font-size: 0.875rem;
  font-weight: 600;
  font-stretch: 112%;
  white-space: nowrap;
  opacity: 0.78;
  transition: opacity 1.2s ease;
}

.sound {
  position: fixed;
  top: max(clamp(0.9rem, 2.5vw, 1.5rem), env(safe-area-inset-top));
  right: max(clamp(0.9rem, 2.5vw, 1.5rem), env(safe-area-inset-right));
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  font-stretch: 112%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  cursor: pointer;
  transition: background 0.2s ease;
}

.sound:hover {
  background: rgba(255, 255, 255, 0.2);
}

.sound[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.26);
}

.sound:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hint.used {
  opacity: 0;
}

.no-webgl canvas,
.no-webgl .hint,
.no-webgl .sound,
.clean .note,
.clean .sound,
.clean .hint {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hint {
    display: none;
  }

  canvas {
    transition: none;
  }
}
