* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --night: #02050a;
  --silver: rgba(210, 224, 239, 0.78);
  --blue: rgba(118, 164, 208, 0.22);
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--night);
}

body {
  font-family: Arial, sans-serif;
  overscroll-behavior: none;
}

#experience {
  position: fixed;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(22, 35, 52, 0.16), transparent 44%),
    #02050a;
}

#scene {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

#camera {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.48), transparent 25%, transparent 70%, rgba(0, 0, 0, 0.78)),
    radial-gradient(ellipse at center, transparent 38%, rgba(0, 0, 0, 0.44) 100%);
}

.camera-state {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(190, 211, 234, 0.34);
  display: grid;
  place-items: center;
  opacity: 0.65;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.state-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(180, 205, 231, 0.65);
  box-shadow: 0 0 8px rgba(155, 197, 237, 0.45);
}

.camera-state.active .state-dot {
  background: rgba(194, 225, 255, 0.95);
  box-shadow: 0 0 10px rgba(145, 196, 246, 0.9);
}

.camera-button {
  position: absolute;
  right: 13px;
  bottom: 13px;
  z-index: 5;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 0.01;
}

.camera-button:focus-visible {
  opacity: 0.4;
  outline: 1px solid rgba(190, 211, 234, 0.5);
}

.permission-note {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .camera-state {
    transition: none;
  }
}
