:root {
  color-scheme: dark;
  --ink: rgba(236, 241, 247, 0.92);
  --muted: rgba(206, 216, 228, 0.58);
  --hairline: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background:
    radial-gradient(120% 85% at 50% 8%, #1d2531 0%, #101722 42%, #05070a 100%),
    #05070a;
  color: var(--ink);
  font: 400 13px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(78% 62% at 50% 46%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55) 100%);
}

#stage {
  position: fixed;
  inset: 0;
  display: block;
  touch-action: none;
  cursor: grab;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

#stage:active {
  cursor: grabbing;
}

#hint {
  position: fixed;
  left: 22px;
  bottom: 20px;
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--muted);
  transition: opacity 0.6s ease;
}

#hint.is-hidden {
  opacity: 0;
}

#ui {
  position: fixed;
  right: 20px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

button {
  appearance: none;
  padding: 7px 13px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 10px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

button:hover {
  background: rgba(255, 255, 255, 0.12);
}

button:focus-visible {
  outline: 2px solid rgba(255, 120, 96, 0.8);
  outline-offset: 2px;
}

button.is-off {
  color: var(--muted);
}

@media (max-width: 620px) {
  #ui {
    right: 14px;
    bottom: 14px;
  }

  #hint {
    left: 14px;
    bottom: 62px;
  }
}
