:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  background: #09050f;
}

* {
  box-sizing: border-box;
}

html,
body,
.stage {
  width: 100%;
  min-width: 320px;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  min-height: 100svh;
}

.stage {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  background:
    radial-gradient(circle at 20% 15%, rgba(250, 71, 126, 0.38), transparent 34%),
    radial-gradient(circle at 80% 85%, rgba(74, 154, 255, 0.3), transparent 32%),
    #09050f;
}

.ambient {
  position: absolute;
  inset: -20%;
  z-index: -2;
  background: conic-gradient(from 90deg, #ff477e, #8b5cf6, #38bdf8, #ff477e);
  opacity: 0.2;
  filter: blur(80px);
  animation: drift 12s linear infinite;
}

.video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #000;
}

.sound-button {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  color: #fff;
  font: inherit;
  font-weight: 750;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(13, 7, 20, 0.72);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, opacity 240ms ease;
}

.sound-button:hover {
  transform: translateY(-2px);
  background: rgba(25, 13, 37, 0.88);
}

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

.sound-button.is-active {
  pointer-events: none;
  opacity: 0;
}

.sound-icon {
  font-size: 1.15rem;
}

.fallback {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 3;
  margin: 0;
  padding: 1rem;
  text-align: center;
  border-radius: 1rem;
  background: #17101f;
}

.fallback a {
  color: #7dd3fc;
}

@keyframes drift {
  to {
    transform: rotate(360deg);
  }
}

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