/* Tumble Theory Studios - shared sideways-phone screen (approved by Jacqui, Nov 21, 2026).
   Studio standard sec 4. The same two files in every game, used unchanged:
   assets/shared/sideways.css + assets/shared/sideways.svg. Link this file in index.html.
   Master copy: Documents\Tumble Theory Studios\1 Studio\Guidelines\Shared\.
   Needs the game's bundled Fredoka font (every game has it); falls back to the system font. */
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  /* Open messages sit above everything, so they step aside until the phone is upright again. */
  dialog { visibility: hidden; }
  dialog::backdrop { background: transparent; }
  body::after {
    content: "Turn your phone upright to play";
    position: fixed; inset: 0; z-index: 2147483647;
    display: flex; align-items: center; justify-content: center;
    padding: 150px 24px 24px; box-sizing: border-box; text-align: center;
    background: #4A787D url("sideways.svg") no-repeat center calc(50% - 46px) / 150px auto;
    color: #FFFDF8; /* 4.8:1 on the teal */
    font: 600 1.35rem/1.4 "Fredoka", system-ui, sans-serif;
  }
}
