.range-page {
  color: #fbefda;
  background: #1d2d2a;
}
.range-page::before { background: radial-gradient(ellipse at 66% 8%, #3b4e42, #192725 70%); }
.range-header, .range { width: min(calc(100% - 2rem), 73rem); margin-inline: auto; }
.range-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: .75rem 0; border-bottom: 1px solid #d7e1c138;
}
.range { padding-block: 1.4rem 2.5rem; }
.range-intro h1 {
  padding: 0; font: 700 clamp(2.7rem, 7vw, 5.5rem)/.91 Georgia, serif;
  letter-spacing: -.07em;
}
.range-intro h1 span { color: #f5c87e; }
.range-intro p { margin: .65rem 0 1rem; color: #e5e5ce; }
.range-stage {
  position: relative; overflow: hidden; border-radius: .6rem;
  border: 1px solid #ecdbb87a; background: #bfd5c4;
  box-shadow: 0 .45rem 1.8rem #101b19b0;
}
#range-canvas { display: block; width: 100%; aspect-ratio: 2.25; touch-action: none; cursor: crosshair; }
.range-depth { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.range-hud {
  position: absolute; inset: .55rem .6rem auto; display: flex; justify-content: space-between;
  pointer-events: none; color: #24382e; font: 750 clamp(.73rem, 2vw, .9rem) ui-monospace, monospace;
}
.range-hud span { padding: .38rem .55rem; background: #fff2d7d9; border-radius: .25rem; }
.range-controls { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem 1rem; padding-top: .9rem; }
.range-controls label {
  flex: 1 1 8rem; display: grid; grid-template-columns: 1fr auto; gap: .3rem;
  font-size: .9rem; font-weight: 700;
}
.range-controls output { color: #f5c87e; }
.range-controls input { grid-column: 1/-1; width: 100%; min-height: 26px; margin: 0; accent-color: #efbe76; }
.range-controls button {
  min-height: 44px; padding: .55rem .8rem; border: 1px solid #c1c7a16b; border-radius: .35rem;
  color: #fbefda; background: #374b41; font: 700 .9rem system-ui, sans-serif; cursor: pointer;
}
.range-controls button:hover { background: #506658; }
.range-controls #shoot { background: #f3c687; color: #31291d; }
.range-controls #shoot:hover { background: #ffe0a9; }
.range-controls button:disabled { opacity: .55; cursor: default; }
#range-status { flex: 1 1 15rem; align-self: center; margin: 0; min-height: 1.4em; color: #ffe0a9; }
.range-keyboard { margin-top: .85rem; color: #e5e5ce; }
.range-keyboard summary { width: fit-content; cursor: pointer; font-size: .9rem; }
@media (max-width: 40rem) {
  #range-canvas { aspect-ratio: 1.36; }
  .range-intro p { font-size: .95rem; }
}
