:root {
  --ice: #cdeafd;
  --ink: #0e2a3a;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #bfe6ff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  touch-action: none;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- HUD --- */
#hud {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  pointer-events: none;
}

.hud-item {
  background: rgba(6, 30, 45, 0.72);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 7px 11px;
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
  letter-spacing: 0.2px;
}

#mute {
  margin-left: auto;
  border: none;
  cursor: pointer;
  pointer-events: auto;
  font-family: inherit;
}

/* --- Hint --- */
#hint {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 30, 45, 0.6);
  color: #eaf6ff;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#hint.fade { opacity: 0; }

#debug {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  background: rgba(6, 30, 45, 0.8);
  color: #bff0ff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
}
