#practice-panel {
  position: absolute;
  z-index: 5;
  /* Bottom centre: clear of the score HUD, the far court and the side readouts. */
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  /* Narrow enough to wrap between the stamina gauge (left) and the control guide (right). */
  max-width: min(720px, calc(100% - 24px));
  padding: 10px 12px;
  border: 1px solid #ffffff45;
  border-radius: 10px;
  background: #142c37f2;
  color: #fff;
  font-size: 13px;
}
#practice-panel.editing { border-color: #e8dfa3; }
.practice-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.practice-controls label { display: flex; align-items: center; gap: 5px; }
.practice-controls select,
.practice-controls button {
  min-height: 34px;
  border: 1px solid #ffffff50;
  border-radius: 6px;
  padding: 4px 8px;
  font: inherit;
}
.practice-controls select { color: #fff; background: #294753; }
.practice-controls input[type="text"] { width: 9.5em; min-height: 34px; border: 1px solid #ffffff50; border-radius: 6px; padding: 4px 8px; color: #fff; background: #294753; font: inherit; }
.practice-controls input[type="text"]::placeholder { color: #ffffff90; }
.practice-presets { margin-top: 7px; padding-top: 7px; border-top: 1px solid #ffffff25; }
.practice-controls button:disabled { opacity: .5; cursor: default; }
.practice-controls input[type="range"] { width: 110px; accent-color: #e8dfa3; }
.practice-height-value { min-width: 4.2em; font-variant-numeric: tabular-nums; }
.practice-controls button { color: #fff; background: #294753; }
.practice-controls button[data-action="edit"] { color: #172d36; background: #e8dfa3; font-weight: 700; }
.practice-controls button[aria-pressed="true"] { color: #fff; background: #b4572e; border-color: #ffd2b8; }
#practice-panel p { min-height: 1.45em; margin: 7px 0 0; text-align: center; color: #eef6eb; }
.practice-markers { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.practice-marker {
  position: absolute;
  transform: translate(-50%, -100%);
  padding: 2px 7px;
  border: 1px solid #ffffffb0;
  border-radius: 999px;
  background: #142c37d9;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.practice-marker.ball { transform: translate(-50%, -150%); background: #6b6416e0; }
.practice-marker.active { background: #b4572e; }
.arena.practice-editing #court { cursor: grab; }
.arena.practice-editing:active #court { cursor: grabbing; }
@media (max-width: 690px) {
  #practice-panel { bottom: 64px; }
}

.practice-coordinates { margin-top: 7px; padding-top: 7px; border-top: 1px solid #ffffff25; }
.practice-coordinates input[type="number"] { width: 5.4em; min-height: 34px; border: 1px solid #ffffff50; border-radius: 6px; padding: 4px 8px; color: #fff; background: #294753; font: inherit; }
