html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #9fc9cf;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #ecf7df;
}

.hud__chip {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 8px 10px;
  border: 1px solid rgba(236, 247, 223, 0.18);
  border-radius: 6px;
  background: rgba(19, 36, 18, 0.58);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0;
  backdrop-filter: blur(6px);
}

.hud__chip--animations {
  top: 52px;
}

/* eucharist-quest — objective chip, gold-tinted to stand apart from control chips */
.hud__chip--quest {
  top: 88px;
  color: #f2dc9e;
  border-color: rgba(217, 169, 44, 0.45);
}

/* fps-chip — live frame-rate readout anchored to the top-right corner */
.hud__chip--fps {
  left: auto;
  right: 16px;
  font-variant-numeric: tabular-nums;
}

.hud__crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.hud__crosshair::before,
.hud__crosshair::after {
  content: "";
  position: absolute;
  background: rgba(244, 255, 232, 0.8);
}

.hud__crosshair::before {
  left: 6px;
  top: 0;
  width: 2px;
  height: 14px;
}

.hud__crosshair::after {
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
}

.hud.overview .hud__crosshair {
  display: none;
}

/* action-hold-arc — draining radial ring centred on the crosshair */
.hud__hold-arc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%) rotate(-90deg);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.hud__hold-arc-track {
  fill: none;
  stroke: rgba(19, 36, 18, 0.45);
  stroke-width: 3;
}

.hud__hold-arc-fill {
  fill: none;
  stroke: rgba(244, 255, 232, 0.92);
  stroke-width: 3;
  stroke-linecap: round;
}

.hud.overview .hud__hold-arc {
  display: none;
}
