:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: transparent;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 280px;
  min-height: 360px;
}

.dark-mode,
.dark-mode body {
  background:
    radial-gradient(circle at 50% 41%, rgba(34, 8, 29, 0.23), transparent 36%),
    radial-gradient(circle at 50% 80%, rgba(11, 68, 78, 0.16), transparent 34%),
    #020307;
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}

#love-scene {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  outline: none;
  touch-action: none;
}

#love-scene:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(134, 244, 255, 0.5);
}

.vignette {
  display: none;
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 48%, rgba(0, 0, 0, 0.24) 76%, rgba(0, 0, 0, 0.63) 115%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.12), transparent 18%, transparent 78%, rgba(0, 0, 0, 0.2));
}

.dark-mode .vignette {
  display: block;
}

.interaction-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  margin: 0;
  translate: -50% 0;
  color: rgba(202, 246, 250, 0.54);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  pointer-events: none;
  opacity: 0;
  animation: hint 5s ease 1.1s both;
}

noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  color: #e8f9fa;
  background: #020307;
}

@keyframes hint {
  0%,
  100% {
    opacity: 0;
    transform: translateY(5px);
  }
  18%,
  68% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-height: 520px) {
  .interaction-hint {
    display: none;
  }
}

.capture-mode .interaction-hint {
  display: none;
}

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