/* style.css — Pouring Simulation */

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a1a2e;
  font-family: system-ui, -apple-system, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  /* Prevent pull-to-refresh and overscroll on mobile */
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
  touch-action: none;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  /* Ensure canvas fills the viewport exactly */
  position: fixed;
  top: 0;
  left: 0;
  /* High-DPI friendly — we'll set CSS size = display size */
  image-rendering: auto;
}

/* ── HUD overlay (optional) ───────────────────── */
.hud {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-family: monospace;
  z-index: 10;
}

/* ── Help text (fades out) ───────────────────── */
.help {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.3);
  font-size: 13px;
  text-align: center;
  pointer-events: none;
  z-index: 10;
  animation: fadeHelp 4s ease-out forwards;
  animation-delay: 2s;
}

@keyframes fadeHelp {
  to { opacity: 0; }
}