:root {
  --glass: rgba(20, 22, 34, 0.55);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e8e8f0;
  --accent: #ff6688;
}

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

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;700&family=JetBrains+Mono:wght@400;700&display=swap');

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #1a0a14 0%, #050308 75%);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
}

#scene-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
}

#title {
  position: fixed;
  top: 22px;
  left: 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 4vw, 34px);
  letter-spacing: 0.35em;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 102, 136, 0.55), 0 0 40px rgba(102, 170, 255, 0.35);
  pointer-events: none;
  user-select: none;
}

#panel {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 230px;
  padding: 16px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}

.row { display: flex; flex-direction: column; gap: 5px; }

.row label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  display: flex;
  justify-content: space-between;
}

.row label span { color: var(--accent); font-weight: 700; opacity: 1; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 102, 136, 0.7);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 102, 136, 0.7);
  cursor: pointer;
}

.btnrow { display: flex; gap: 8px; }

.btn {
  flex: 1;
  padding: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn.wide { width: 100%; }
.btn:hover { background: rgba(255, 255, 255, 0.15); }
.btn:active { transform: scale(0.96); }
#chaos { color: var(--accent); border-color: rgba(255, 102, 136, 0.4); }

#remix {
  position: fixed;
  bottom: 10px;
  left: 14px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  z-index: 10;
}
#remix:hover { color: var(--accent); }

@media (max-width: 520px) {
  #panel { width: 190px; padding: 12px; bottom: 14px; right: 14px; gap: 9px; }
  #title { letter-spacing: 0.2em; top: 16px; left: 16px; }
}