/* Hide scrollbar chrome without removing wheel, touch or keyboard scrolling. */
html, body, * { scrollbar-width: none !important; }
::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
html { scrollbar-gutter: auto; }

html[data-zupio-phone][data-zupio-game],
html[data-zupio-phone][data-zupio-game] body,
html[data-zupio-turned],
html[data-zupio-turned] body {
  overflow: hidden !important;
  overscroll-behavior: none;
}
/* A centered play shell can extend beyond its own normal-flow height.
   Give the clipping body the full viewport so its footer stays tappable. */
html[data-zupio-phone][data-zupio-game] { height: 100%; }
html[data-zupio-phone][data-zupio-game] body { height: 100vh; height: 100dvh; }
#zupio-turn-phone[open] {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  padding: 12px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  color: #f7e9c9;
  background: radial-gradient(ellipse at center, #243c35, #12241f 75%);
  text-align: center;
  touch-action: none;
}
#zupio-turn-phone::backdrop { background: #12241f; }
#zupio-turn-title { font: 650 clamp(19px, 4vmin, 28px)/1.35 system-ui, sans-serif; margin: 0; color: inherit; outline: none; }
.turn-phone-icon { position: relative; display: block; box-sizing: border-box; width: 29px; height: 44px; border: 2px solid #efd197; border-radius: 6px; }
.turn-phone-icon::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 3px; height: 2px; border-radius: 2px; background: #efd197; }
@media (prefers-reduced-motion: no-preference) {
  #zupio-turn-phone[open] .turn-phone-icon { animation: zupio-turn-upright .65s ease-out both; }
  @keyframes zupio-turn-upright { from { transform: rotate(-80deg); } to { transform: rotate(0); } }
}
