﻿:root {
  --hud-bg: rgba(4, 12, 24, 0.56);
  --hud-border: rgba(114, 225, 255, 0.26);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: #eaf7ff;
  background: radial-gradient(circle at 50% 0%, #0a3b5d, #03101a 66%);
}
#game-wrap { position: fixed; inset: 0; }
canvas { width: 100%; height: 100%; display: block; }
.hud {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 10px;
  right: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  pointer-events: none;
}
.stat {
  background: var(--hud-bg);
  border: 1px solid var(--hud-border);
  border-radius: 12px;
  padding: 8px 10px;
}
.controls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(12px, env(safe-area-inset-bottom));
  padding: 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  pointer-events: none;
}
.stick-zone, .fire-btn { pointer-events: auto; }
.stick-zone {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(6, 20, 35, 0.55);
  border: 1px solid rgba(133, 213, 255, 0.28);
  position: relative;
}
.stick {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  position: absolute;
  left: 32px;
  top: 32px;
  background: radial-gradient(circle at 28% 24%, #8ae8ff, #2e739a 70%);
}
.fire-btn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px solid rgba(255, 210, 180, 0.8);
  background: radial-gradient(circle at 30% 30%, #ffc788, #ff7c2f 70%);
  color: #341200;
  font-weight: 900;
  font-size: 20px;
}
.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 20px;
  text-align: center;
  gap: 8px;
  background: linear-gradient(to bottom, rgba(2, 9, 17, 0.75), rgba(2, 15, 26, 0.92));
}
.overlay button {
  justify-self: center;
  min-width: 160px;
  padding: 13px 16px;
  border: 0;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 800;
}
.hidden { display: none; }
