/* Keep the existing play-field band and palette. Steering needs one thumb;
   Fire and Hyperspace have distinct targets under the other. */
.ast-pad {
  gap: 20px;
  padding-left: max(10px, env(safe-area-inset-left, 0px));
  padding-right: max(10px, env(safe-area-inset-right, 0px));
}
.ast-joystick {
  position: relative;
  flex: 0 0 108px;
  width: 108px;
  height: 108px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 233, 61, 0.32);
  border-radius: 50%;
  background: rgba(255, 233, 61, 0.04);
  color: var(--sc-score);
  pointer-events: auto;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ast-joystick-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 233, 61, 0.6);
  border-radius: 50%;
  background: rgba(255, 233, 61, 0.2);
  transform: translate(-50%, -50%) translate(0px, 0px);
  pointer-events: none;
}
.ast-joystick.is-active { border-color: var(--sc-score); }
.ast-joystick.is-active .ast-joystick-knob { background: rgba(255, 233, 61, 0.4); }
.ast-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ast-actions .ast-key {
  font-family: var(--font-arcade);
  text-transform: uppercase;
  cursor: pointer;
}
.ast-actions .ast-key-hyper {
  width: 112px;
  height: 44px;
  border-radius: 8px;
  font-size: 8px;
  letter-spacing: 0;
}
.ast-actions .ast-key-fire { width: 78px; height: 78px; font-size: 11px; }
.ast-key:focus-visible, .ast-joystick:focus-visible { outline: 2px solid var(--sc-score); outline-offset: 3px; }
@media (max-height: 560px) {
  .ast-actions { flex-direction: row; align-items: flex-end; gap: 16px; }
  .ast-actions .ast-key-fire { width: 68px; height: 68px; }
  .ast-pad { align-items: flex-end; }
}
@media (max-width: 430px) and (max-height: 560px) {
  .ast-actions { flex-direction: column; gap: 8px; }
}
