/* style.css */
:root {
  --hud-bg: #000;
  --hud-fg: #fff;
  --accent: #ff7a00; /* rim/ball orange */
  --court-dark: #0e2c1b; /* deeper green */
  --court-light: #1e5a36; /* playfield green */
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--court-dark); color: var(--hud-fg); font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

#root { min-height: 100vh; display: flex; flex-direction: column; align-items: center; }

.hud { width: 100%; background: var(--hud-bg); color: var(--hud-fg); display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; gap: 8px; position: sticky; top: 0; z-index: 2; }
.time { font-variant-numeric: tabular-nums; font-weight: 700; }
.hud-center { display: flex; gap: 12px; align-items: center; justify-content: center; font-weight: 600; }
.hud-left, .hud-right { display: flex; gap: 8px; align-items: center; }
.sep { opacity: 0.6; }

.btn { background: #222; color: #fff; border: 1px solid #444; border-radius: 8px; padding: 10px 14px; min-height: 44px; min-width: 64px; font-weight: 700; cursor: pointer; }
.btn:hover { background: #333; }
.btn.primary { background: var(--accent); border-color: #c45e00; color: #000; }

.stage { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; padding: 12px; }

/* Canvas crisp scaling */
#game { image-rendering: pixelated; image-rendering: crisp-edges; background: var(--court-light); border: 2px solid #0a2616; display: block; box-shadow: 0 10px 30px rgba(0,0,0,0.4); touch-action: none; }

.hint { color: #fff; opacity: 0.9; font-size: 14px; padding: 8px 12px 16px; text-align: center; }
.hint.hidden { display: none; }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 10; }
.overlay.hidden { display: none; }
.modal { width: min(360px, 92vw); background: #101010; border: 1px solid #333; border-radius: 12px; padding: 20px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.modal h2 { margin: 0 0 12px; }
.modal .stats { display: grid; gap: 8px; margin-bottom: 16px; }

/* Responsive integer scaling handled in JS (canvas CSS size). */
