:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #100e25; color: #ece6fb; }
* { box-sizing: border-box; }
body { margin: 0; overflow: hidden; }
#world, #world canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#world canvas { touch-action: none; }
.controls {
  position: fixed;
  bottom: max(21px, env(safe-area-inset-bottom));
  left: max(24px, env(safe-area-inset-left));
  display: flex;
  gap: 20px;
  padding: 11px 14px 8px;
  background: #100e21ca;
  border: 1px solid #aaa3e03d;
  border-radius: 9px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px #0705136b;
}
.controls label { display: grid; gap: 2px; font-size: 11px; font-weight: 650; letter-spacing: .075em; }
.controls input { width: 87px; height: 15px; margin: 0; accent-color: #f67ae8; cursor: pointer; }
#rain { accent-color: #63dce9; }
.hint {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(27px, env(safe-area-inset-bottom));
  margin: 0;
  color: #c9c3e3;
  font-size: 11px;
  letter-spacing: .035em;
  pointer-events: none;
}
.hint b { margin: 0 .3em; color: #f297de; }
.touch { display: none; }
#status { position: fixed; top: 46%; width: 100%; padding: 0 20px; text-align: center; font-size: 14px; pointer-events: none; }
@media (pointer: coarse) { .mouse { display: none; } .touch { display: inline; } }
@media (max-width: 520px) {
  .controls { left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); }
  .hint { top: max(24px, env(safe-area-inset-top)); bottom: auto; right: 0; width: 100%; text-align: center; }
}
