/* Sinuquinha — ajustes mobile + aviso de girar a tela.
   O layout imersivo da partida (só mesa + placar) vive no <style> do index.html
   e vale para desktop e mobile; aqui fica só o essencial de mobile. */
html { -webkit-text-size-adjust: 100%; }
body { overscroll-behavior: none; }
@media (max-width: 950px) {
  body.in-match { overflow: hidden; }
  body.in-match .versus, body.in-match .pool-frame, body.in-match #poolCanvas {
    -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  }
}

/* -------- Aviso "vire o celular" (retrato, durante a partida) -------- */
#rotateOverlay { display: none; }
#rotateOverlay .ph { width: 72px; height: 124px; border: 4px solid var(--gold); border-radius: 15px; position: relative; animation: rotph 2.1s ease-in-out infinite; }
#rotateOverlay .ph:before { content: ""; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 26px; height: 3px; border-radius: 3px; background: var(--gold); }
#rotateOverlay .ph:after { content: ""; position: absolute; left: 50%; top: 7px; transform: translateX(-50%); width: 30px; height: 3px; border-radius: 3px; background: #35433f; }
#rotateOverlay h3 { margin: 0; font-size: 22px; font-weight: 800; }
#rotateOverlay p { margin: 0; color: var(--muted); max-width: 270px; text-align: center; line-height: 1.5; }
@keyframes rotph { 0%, 35% { transform: rotate(0); } 55%, 100% { transform: rotate(90deg); } }
@media (max-width: 950px) and (orientation: portrait) {
  body.in-match #rotateOverlay {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
    position: fixed; inset: 0; z-index: 300; padding: 30px;
    background: radial-gradient(circle at 50% 32%, #11271d, #060d10 70%);
  }
}
