/* Website copy: keep the original desktop room, and give phones a direct player. */
html.site-embedded:not(:fullscreen) { overflow:hidden; }
.pointer-status[hidden] { display:block !important; visibility:hidden; }
.room { overflow: hidden; scrollbar-gutter: auto; }
.pause-card { width: 100%; height: 100%; padding: 12px; border: 0; cursor: pointer; }
.buttons #choose-rom { margin-left: 0; }
.cartridge-tray .cartridge-info { flex: 1; min-width: 0; }
/* Give the cartridge and controls separate rows before the buttons have to wrap. */
@media (min-width: 981px) {
  .console-bar { flex-direction: column; align-items: stretch; }
  .cartridge-tray { width: 100%; }
  .buttons { width: 100%; align-items: center; }
  .buttons button { min-height: 44px; }
}
@media (max-width: 600px), (pointer: coarse) and (max-width: 1000px) {
  :root { background: #172b20; }
  body { background: #172b20; }
  main { display: flex; flex-direction: column; }
  .room { order: 0; }
  .pointer-status { order: 1; }
  .touch-pad.virtual-pad { order: 2; }
  .console-bar { order: 3; }
  .cartridge-notice { order: 4; }
  .quick-controls { order: 5; }
  .credits { order: 6; }
  .masthead, .room-art { display: none; }
  .room { aspect-ratio: auto; overflow: visible; background: #172b20; }
  .scene { position: relative; left: auto; top: auto; width: auto; aspect-ratio: auto; padding: 8px; }
  .glass { position: relative; left: auto; top: auto; width: 100%; height: auto; aspect-ratio: 320 / 224; border-radius: 5px; box-shadow: 0 0 0 4px #72915f, 0 0 0 7px #253e2c; }
  .glass:fullscreen, .glass.enlarged { position: fixed; inset: 0; width: 100vw; height: 100vh; border-radius: 0; }
  .console-bar { background: #172b20; padding: 12px 8px 8px; gap: 10px; border: 0; }
  .cartridge-tray { gap: 10px; }
  .cartridge-info { flex: 1; }
  .buttons { gap: 5px; }
  .buttons button { padding: 9px; min-height: 40px; font-size: 10px; }
  .buttons #choose-rom { margin-left: 0; }
  .cartridge-notice { margin: 4px 10px 0; }
  .pointer-status { margin: 2px 8px 0; }
  .touch-pad.virtual-pad { width: min(100% - 12px, 440px); margin: 4px auto 0; }
  .quick-controls { margin: 6px 10px 12px; gap: 8px; }
  .credits { margin: 0 10px 12px; }
}
