:root {
  --panel-bg: rgba(38, 26, 20, 0.55);
  --panel-border: rgba(255, 235, 214, 0.28);
  --text: #ffeedd;
  --accent: #ffc46b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #eed7c6 0%, #e2c0a8 46%, #cda48a 100%);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, rgba(0,0,0,0) 55%, rgba(58, 30, 18, 0.28) 100%);
}

#brand {
  position: fixed;
  top: 14px;
  left: 18px;
  z-index: 2;
  pointer-events: none;
  color: #4a3020;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
  opacity: 0.85;
}

#hint {
  position: fixed;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  pointer-events: none;
  color: #46301f;
  font-size: 11px;
  letter-spacing: 0.06em;
  background: rgba(255, 243, 228, 0.45);
  border: 1px solid rgba(120, 78, 52, 0.18);
  border-radius: 999px;
  padding: 5px 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#controls {
  position: fixed;
  left: 16px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 11px 14px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 22px rgba(60, 30, 12, 0.28);
}

.ctrl {
  display: grid;
  grid-template-columns: 46px 128px;
  align-items: center;
  gap: 10px;
}

.ctrl label {
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ctrl input[type="range"] {
  width: 128px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

@media (max-width: 600px) {
  #brand { font-size: 11px; top: 10px; left: 12px; }
  #hint { display: none; }
  #controls {
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    padding: 9px 12px;
    gap: 6px;
  }
  .ctrl { grid-template-columns: 42px 112px; gap: 8px; }
  .ctrl input[type="range"] { width: 112px; }
}
