/* Focus rings, motion preferences and small-screen trims. */
.btn:focus-visible,
.hud-pause:focus-visible,
.settings-close:focus-visible,
.seg button:focus-visible,
.coach-skip:focus-visible,
.rotate-skip:focus-visible,
.touch-buttons button:focus-visible {
  outline: 2px solid #9df; outline-offset: 2px;
}

/* Portrait handsets get the rotate notice; the menu still works if dismissed. */
@media (orientation: portrait) and (max-width: 820px) {
  .menu h1 { font-size: clamp(46px, 13vw, 76px); }
}

@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
  .sky-scan, .sky-particles, .sky-ship, .rotate-phone { animation: none; }
  .touch-ui, .stick-knob, .btn { transition: none; }
  .touch-buttons #tSurge.ready { animation: none; }
  * { scroll-behavior: auto !important; }
}
