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

* {
  box-sizing: border-box;
}

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

body {
  background:
    radial-gradient(circle at 50% 18%, rgba(58, 160, 130, 0.2), transparent 30%),
    linear-gradient(180deg, #030817 0%, #050712 58%, #010204 100%);
}

.experience {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 460px;
}

#aurora {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.controls {
  position: fixed;
  top: clamp(16px, 3vw, 30px);
  left: clamp(16px, 3vw, 30px);
  width: min(326px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(182, 255, 227, 0.18);
  border-radius: 8px;
  background: rgba(2, 8, 13, 0.78);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  contain: layout paint;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease;
}

body.controls-idle .controls {
  opacity: 0.08;
  transform: translateY(-10px);
}

body.controls-idle .controls:hover,
.controls:focus-within {
  opacity: 1;
  transform: translateY(0);
}

.title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

h1 {
  margin: 0;
  font-size: clamp(1.65rem, 7vw, 2.45rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.title p {
  max-width: 126px;
  margin: 0;
  color: #b6d7cf;
  font-size: 0.68rem;
  line-height: 1.25;
  text-align: right;
  text-transform: uppercase;
}

.control {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  margin-top: 10px;
  color: #dcfff3;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

input[type="range"] {
  width: 100%;
  accent-color: #77f2bf;
}

.switches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.switches label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: #d4eee7;
  font-size: 0.82rem;
}

.switches input {
  accent-color: #87f7c8;
}

button {
  width: 100%;
  min-height: 40px;
  margin-top: 14px;
  border: 1px solid rgba(198, 255, 232, 0.22);
  border-radius: 6px;
  background: rgba(84, 225, 171, 0.13);
  color: #effff8;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  outline: none;
  border-color: rgba(184, 255, 226, 0.72);
  background: rgba(97, 234, 185, 0.22);
}

@media (max-width: 690px) {
  .controls {
    top: auto;
    bottom: 14px;
    padding: 14px;
  }
}
