:root {
  --bg: #062235;
  --panel: rgba(4, 20, 30, 0.76);
  --text: #f4fbff;
  --accent: #73e7ff;
  --warm: #ffd76b;
  --danger: #ff704d;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: var(--bg); }
body { font-family: "Trebuchet MS", "Avenir Next", sans-serif; color: var(--text); }
#game-shell, #game-canvas, #overlay-root { position: absolute; inset: 0; }
#game-canvas { display: block; width: 100%; height: 100%; }
#overlay-root { pointer-events: none; }
#menu-screen, #camp-screen, #results-screen { pointer-events: auto; }

.menu-panel,
.screen-panel {
  width: min(420px, calc(100vw - 40px));
  margin: 32px;
  padding: 28px 28px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 20, 30, 0.78);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.menu-panel h1,
.screen-panel h2 {
  margin: 0 0 18px;
  font-size: 44px;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--warm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.menu-panel button {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font: 700 16px/1 "Trebuchet MS", "Avenir Next", sans-serif;
  cursor: pointer;
}

.primary-button,
.menu-panel button {
  background: linear-gradient(180deg, #ffe36d 0%, #ffc83d 100%);
  color: #062235;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

#hud-screen {
  position: absolute;
  inset: 0;
}

.hud-chip {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 20, 30, 0.72);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  color: var(--text);
}

.hud-score { top: 16px; left: 16px; padding: 12px 14px; font: 900 28px/1 "Trebuchet MS", sans-serif; }
.hud-lives { top: 16px; right: 16px; padding: 12px 14px; font: 700 16px/1 "Trebuchet MS", sans-serif; }
.hud-signal { top: 16px; left: 50%; transform: translateX(-50%); width: min(300px, calc(100vw - 48px)); padding: 12px; }
.hud-chain { left: 16px; bottom: 112px; padding: 10px 12px; transform-origin: left center; }
.hud-dodge { left: 16px; bottom: 16px; width: 120px; min-height: 78px; border-radius: 999px; display: grid; place-items: center; text-align: center; padding: 0 12px; }
.hud-dodge.is-ready { box-shadow: 0 0 0 2px rgba(255, 227, 109, 0.24), 0 0 28px rgba(255, 227, 109, 0.18); }
.hud-tool { right: 16px; bottom: 16px; width: 140px; min-height: 88px; padding: 14px; display: flex; align-items: center; justify-content: center; text-align: center; }

.hud-label {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.hud-meter {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.hud-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #73e7ff 0%, #ffe36d 100%);
}

.camp-panel,
.results-panel {
  margin-top: 48px;
}

.camp-grid,
.results-rows {
  display: grid;
  gap: 12px;
}

.camp-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 20px;
}

.camp-stat,
.results-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.results-score {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 8px;
}

.results-chain {
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 700;
}

.results-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
