:root {
  --panel: rgba(11, 17, 27, 0.78);
  --panel-border: rgba(232, 220, 196, 0.12);
  --cream: #f3ead6;
  --muted: #8e9aaf;
  --orange: #ff8c00;
  --track: rgba(255, 255, 255, 0.1);
  --icon-ring: rgba(243, 234, 214, 0.72);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--cream);
  background: #05070c;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #05070c;
}

.bg-live,
.fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.bg-live {
  z-index: 0;
}

.bg-live.is-calm {
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 32%,
    transparent 36%,
    transparent 78%,
    #000 84%,
    #000 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 32%,
    transparent 36%,
    transparent 78%,
    #000 84%,
    #000 100%
  );
}

.fx {
  opacity: 0;
}

.fx-sea {
  z-index: 1;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 32%,
    #000 36%,
    #000 78%,
    transparent 84%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 32%,
    #000 36%,
    #000 78%,
    transparent 84%
  );
}

.fx-fire {
  z-index: 2;
  mask-image: linear-gradient(
    to top,
    #000 0%,
    #000 24%,
    transparent 38%
  );
  -webkit-mask-image: linear-gradient(
    to top,
    #000 0%,
    #000 24%,
    transparent 38%
  );
}

.fx-rain {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}

.bg-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(4, 8, 16, 0.42) 0%,
    rgba(4, 8, 16, 0.08) 42%,
    rgba(4, 8, 16, 0.18) 100%
  );
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  align-items: center;
  padding: 24px 28px;
}

.mixer {
  width: min(292px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 18px 16px 14px;
  border-radius: 26px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mixer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.moon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: var(--orange);
  filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.7));
  margin-top: 0;
}

h1.kicker {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 600;
  line-height: 1.2;
}

.tracks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.track {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
}

.toggle {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--icon-ring);
  background: transparent;
  color: var(--cream);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toggle.is-on {
  border-color: var(--orange);
  color: var(--cream);
  box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.12);
}

.toggle:not(.is-on) {
  opacity: 0.55;
}

.track-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.track-value {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.slider {
  grid-column: 2 / 4;
  width: 100%;
  height: 14px;
  margin-top: 2px;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.slider:focus {
  outline: none;
}

.slider::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--orange) 0 var(--fill, 70%),
    var(--track) var(--fill, 70%) 100%
  );
}

.slider::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--cream);
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.slider::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: var(--track);
}

.slider::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--orange);
}

.slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: none;
  border-radius: 50%;
  background: var(--cream);
}

.hint {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 400;
}

@media (max-width: 640px) {
  .page {
    align-items: flex-start;
    padding: 14px;
  }

  .mixer {
    width: 100%;
    max-height: calc(100vh - 28px);
    border-radius: 22px;
    padding: 16px 14px 12px;
  }
}
