/* Le Chonk Cannon: the control bar under the frame and the touch behaviour of the launch button.
 * Game chrome (HUD, overlays, frame) comes from style.css. */

.cannon-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.cannon-controls .field { min-width: 0; gap: 8px; }
.cannon-controls .field-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cannon-controls [data-hud="angle"] {
  color: var(--cream);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 900;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

/* the range input is styled bare: style.css boxes every .field input */
#angle {
  width: 100%;
  min-height: 0;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  accent-color: var(--orange-hi);
  cursor: pointer;
  touch-action: none;
}
#angle:disabled { opacity: 0.45; cursor: not-allowed; }

#btn-charge {
  min-width: 210px;
  min-height: 56px;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
#btn-charge:not(:disabled):active { transform: translateY(1px) scale(0.98); }

#game {
  outline: none;
  cursor: crosshair;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
#game:focus-visible { box-shadow: inset 0 0 0 2px var(--orange-hi); }

@media (max-width: 640px) {
  .cannon-controls { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px 14px; }
  #btn-charge { width: 100%; min-width: 0; }
}
