/* Phones and tablets: larger touch targets for the coach bar, a compact landscape layout, a rotate hint. */
@media (pointer: coarse) {
  .chips button { height: 46px; padding: 0 12px; font-size: 15px; }
  .coach .hit { height: 46px; padding: 0 18px; font-size: 16px; }
  .coach .to button { width: 40px; height: 40px; }
  .coach .tag { padding: 6px 10px; }
  .tb { min-width: 44px; height: 44px; }
  .shots li { min-height: 52px; }
}

/* Phone held sideways: keep the court big, move the controls to the edges */
@media (orientation: landscape) and (max-height: 540px) {
  .sb { transform: scale(.82); transform-origin: top left; top: 6px; left: 8px; }
  .tools { top: 6px; right: 6px; flex-direction: column; padding: 4px; gap: 2px; }
  .tools .tb { min-width: 38px; height: 38px; }
  .tools .tb.wide span { display: none; }
  .menu { right: 50px; top: 0; bottom: auto; }
  .tl { width: 230px; left: 8px; bottom: 8px; max-height: calc(100vh - 100px); }
  .tl .court, .tl .hint { display: none; }
  .coach { left: 50%; right: auto; transform: translateX(-50%); bottom: 6px; max-width: calc(100vw - 120px); padding: 6px; }
  .coach .khint { display: none; }
  .cbar { flex-wrap: nowrap; }
  .chips button { height: 40px; }
  .speedpop { top: 6px; right: 56px; }
  .speedpop b { font-size: 30px; }
  .toast { bottom: 8px; }
  .replay { top: auto; bottom: 8px; right: 56px; font-size: 18px; }
  .banner { top: 6px; }
  .lower { bottom: 10px; }
}

/* Portrait phone: suggest turning it sideways (shown once by the app) */
.rotate-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 22px; border-radius: 14px; background: rgba(9, 14, 26, .92); border: 1px solid rgba(255,255,255,.12); color: #eef2f8; text-align: center; max-width: 280px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.rotate-hint svg { width: 46px; height: 46px; color: #ffd21f; animation: rot 1.6s ease-in-out infinite; }
@keyframes rot { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
.rotate-hint button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: #ffd21f; color: #0b1426; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .rotate-hint svg { animation: none; } }
