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

* {
  box-sizing: border-box;
}

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

body {
  background:
    radial-gradient(circle at 50% 78%, rgba(255, 74, 104, 0.17), transparent 36%),
    linear-gradient(180deg, #080912 0%, #05050a 54%, #020204 100%);
}

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

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

.controls {
  position: fixed;
  left: clamp(16px, 3vw, 30px);
  top: clamp(16px, 3vw, 30px);
  width: min(320px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(255, 223, 231, 0.15);
  border-radius: 8px;
  background: rgba(9, 8, 15, 0.82);
  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);
}

.brand {
  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;
}

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

body.is-full-lava .brand p {
  color: #ffd0da;
}

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

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

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

.toggles label:last-child {
  grid-column: 1 / -1;
}

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

.toggles input {
  accent-color: #ff8ca7;
}

button {
  width: 100%;
  min-height: 40px;
  margin-top: 14px;
  border: 1px solid rgba(255, 217, 226, 0.22);
  border-radius: 6px;
  background: rgba(255, 94, 128, 0.15);
  color: #fff1f6;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  outline: none;
  border-color: rgba(255, 199, 215, 0.76);
  background: rgba(255, 96, 132, 0.25);
}

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