/* Game-only presentation; the original room keeps its own coordinates. */
:root { background: #050505; }
#scene { width: 486px; height: 365px; }
#screen { left: 0; top: 0; width: 486px; height: 365px; border-radius: 0; transform: none; }
#game { left: 0 !important; width: 486px !important; }
.glass, #screen-glow, #physical-power, .room-vignette { display: none; }
#toolbar { inset: 0 0 auto; min-height: 44px; padding: 4px 8px; gap: 8px; background: #050505; pointer-events: auto; }
#toolbar nav { width: auto; gap: 4px; }
#toolbar button, #toolbar a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 9px; font-size: 12px; color: #d0d0d0; text-decoration: none; border: 1px solid #454545; border-radius: 5px; background: #141414; }
.player-brand { font: bold 12px system-ui; color: #eee; }
#resume-panel { top: 48px; }
#boot-panel { background: #050505; }
#boot-content h1 { font-size: 42px; }
#boot-content #power { font-size: 17px; }
#boot-content #status { font-size: 14px; }
dialog { background: #171717; max-height: calc(100dvh - 20px); padding: 28px; }
dialog::backdrop { backdrop-filter: none; }
.close { width: 44px; height: 44px; }
@media (max-width: 360px) { .player-brand { display: none; } #toolbar { justify-content: center; } }
@media (any-pointer: coarse) and (max-width: 1100px) {
  #room { padding: 0; }
  #toolbar { min-height: 48px; flex-wrap: nowrap; }
  #touch-controls { --pad-key: 44px; top: auto; bottom: max(8px, env(safe-area-inset-bottom)); left: 12px; right: 12px; height: 186px; }
  .direction-pad { bottom: 50px; }
  .action-pad { bottom: 72px; }
  .action-pad button { height: 66px; width: 80px; }
  .touch-tip { font-size: 10px; }
  .touch-utility { left: 0; right: 0; bottom: 0; gap: 8px; }
  .touch-utility button { min-width: 54px; height: 44px; }
}
@media (any-pointer: coarse) and (max-width: 1100px) and (orientation: landscape) {
  #touch-controls { top: 56px; height: auto; }
  .direction-pad { bottom: 50px; }
  .action-pad { bottom: 60px; right: 0; }
  .action-pad button { height: 54px; width: 76px; }
  .touch-tip { display: none; }
  .touch-utility { left: 144px; right: 88px; gap: 4px; }
  .touch-utility button { min-width: 44px; padding: 0 4px; }
}
