html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #060814;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

body {
  position: fixed;
  inset: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#game {
  display: block;
  width: 100vw;
  height: 100vh;
  cursor: crosshair;
}

#hud {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  top: max(12px, env(safe-area-inset-top));
  display: flex;
  gap: 12px;
  pointer-events: none;
  mix-blend-mode: screen;
}

.meter {
  flex: 1 1 0;
  min-width: 0;
}

.meter-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(229, 237, 255, 0.72);
  margin-bottom: 6px;
}

.meter-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(225, 235, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset;
}

.meter-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, rgba(113, 231, 255, 0.95), rgba(251, 225, 151, 0.95));
  box-shadow: 0 0 18px rgba(119, 230, 255, 0.35);
  border-radius: 999px;
}

.meter-fill.bloom {
  background: linear-gradient(90deg, rgba(255, 200, 120, 0.95), rgba(255, 124, 188, 0.95));
  box-shadow: 0 0 18px rgba(255, 182, 120, 0.35);
}

.hint {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  color: rgba(246, 248, 255, 0.82);
  letter-spacing: 0.12em;
  font-size: 12px;
  text-transform: uppercase;
  pointer-events: none;
  text-shadow: 0 0 18px rgba(131, 216, 255, 0.35);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
}

@media (max-width: 720px) {
  #hud {
    flex-direction: column;
    gap: 8px;
  }
}
