/* Sky Rally's canvas is portrait (380x560), unlike most canvas games on this site. The
   shared .game-panel/#game-root layout assumes width:100% scaling for a landscape canvas,
   which (per Orchard Overflow's earlier bug) stretches a portrait canvas far taller than
   any screen on a wide desktop layout. Cap max-width at native resolution here so it
   never over-stretches, same fix as Orchard Overflow's own style.css. */
#sr-canvas {
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 380 / 560;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 2px var(--color-border);
  display: block;
  margin: 0 auto;
  touch-action: none;
}

.sr-course-select {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.sr-course-select button {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.sr-course-select button[aria-pressed="true"] {
  background: var(--color-primary);
  color: #0e0f13;
  border-color: var(--color-primary);
}

.sr-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}
.sr-controls button {
  border: none;
  border-radius: 999px;
  padding: 18px 36px;
  font-weight: 800;
  font-size: 1.3rem;
  color: #0e0f13;
  background: var(--color-accent, #ee6fa8);
  cursor: pointer;
  user-select: none;
  touch-action: none;
}
.sr-controls button:active { filter: brightness(0.9); }

@media (max-width: 420px) {
  .sr-controls button { padding: 16px 26px; font-size: 1.1rem; }
}
