/* Mobile & iPhone/Android Support */

/* PWA: Hide address bar */
html, body { height: 100%; overflow: hidden; }

/* Prevent zoom on double-tap */
* { touch-action: manipulation; -webkit-touch-callout: none; }

/* Responsive iframe */
.game-iframe {
  width: 100%;
  height: calc(100vh - 120px);
  border: none;
}

/* Mobile layout */
@media (max-width: 767px) {
  .game-container { padding: 0; }
  .game-header { font-size: 16px; padding: 10px; }
  .game-title { font-size: 20px; }
  .back-button { padding: 8px 16px; font-size: 14px; }
  
  /* Full screen game on mobile */
  .game-iframe {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 140px;
    height: auto;
    z-index: 1;
  }
}

/* iPhone notch support */
@supports (padding-top: env(safe-area-inset-top)) {
  .game-header {
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* Prevent text selection */
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Landscape orientation lock prompt */
@media (max-width: 767px) and (orientation: portrait) {
  .landscape-prompt {
    display: flex;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    color: white;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    flex-direction: column;
  }
}
@media (orientation: landscape) {
  .landscape-prompt { display: none !important; }
}
