/* Keep the desktop layout; mobile uses the browser's current visible area. */
html.mobile-game, .mobile-game body {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  overscroll-behavior: none;
}
.mobile-game #GameDiv {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
}
#game-safe-area {
  position: fixed;
  visibility: hidden;
  pointer-events: none;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
#game-fullscreen {
  position: fixed;
  top: max(6px, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  min-width: 48px;
  min-height: 30px;
  padding: 3px 10px;
  border: 1px solid #b9a17b;
  border-radius: 16px;
  background: #211a13dd;
  color: #f8e5c2;
  font: 13px system-ui, sans-serif;
  touch-action: manipulation;
}
#game-fullscreen[hidden], #game-fullscreen-tip[hidden] { display: none; }
#game-fullscreen-tip {
  position: fixed;
  top: calc(44px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  box-sizing: border-box;
  width: min(90vw, 360px);
  padding: 10px 14px;
  border-radius: 8px;
  background: #211a13ee;
  color: #f8e5c2;
  font: 14px/1.5 system-ui, sans-serif;
  pointer-events: none;
}
