/* All overrides require a coarse-pointer phone. Desktop rules stay intact. */
.mobile-stick { display: none; }
@media (orientation: landscape) {
  html.nomad-phone, .nomad-phone body { width: 100%; height: 100%; min-height: 0; overflow: hidden; }
  .nomad-phone body { padding: 0; }
  .nomad-phone .campaign, .nomad-phone.campaign-touch .campaign { width: 100%; height: 100dvh; }
  .nomad-phone .campaign > .top { position: absolute; top: max(6px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); height: auto; z-index: 20; }
  .nomad-phone .campaign > .top .brand, .nomad-phone .campaign > .footer { display: none; }
  .nomad-phone .tools { padding: 3px; background: #06131caa; border-radius: 9px; }
  .nomad-phone .tools button { min-height: 40px; padding: 7px 10px; font-size: 11px; }
  .nomad-phone.mobile-playing:not(.mobile-paused) .tools button:not(#pause) { display: none; }
  .nomad-phone .campaign > .viewport, .nomad-phone.campaign-touch .campaign > .viewport { width: 100%; height: 100dvh; aspect-ratio: auto; border: 0; box-shadow: none; }
  .nomad-phone .panel { padding: 42px max(6%, env(safe-area-inset-left)) 16px; }
  .nomad-phone .panel h1 { font-size: clamp(26px, 7vh, 54px); }
  .nomad-phone .panel .eyebrow { margin-bottom: 8px; }
  .nomad-phone .panel .copy { margin-bottom: 12px; }
  .nomad-phone .panel .buttons button { min-height: 44px; }
  .nomad-phone.master-touch #stage, .nomad-phone.master-touch #stage:fullscreen { padding: 0 !important; }
  .nomad-phone.master-touch.campaign #game, .nomad-phone.master-touch #stage:fullscreen #game {
    position: absolute !important; left: 50% !important; top: 50% !important;
    transform: translate(-50%, -50%);
    width: min(100vw, calc(100dvh * 16 / 9)) !important;
    height: min(100dvh, calc(100vw * 9 / 16)) !important;
    max-height: none !important; aspect-ratio: 16/9;
  }
  .nomad-phone.master-touch.campaign #stage > .overlay,
  .nomad-phone.master-touch.campaign #stage > .upgrade-overlay { bottom: 0 !important; }
  .nomad-phone.master-touch #master-touch {
    inset: 0; width: 100%; height: 100%; padding: 0; border: 0;
    background: transparent; pointer-events: none;
  }
  .nomad-phone.master-touch #master-touch.inactive { opacity: 0; }
  .nomad-phone.master-touch #master-touch.inactive * { pointer-events: none !important; }
  .nomad-phone.master-touch .master-pad {
    display: block; position: absolute; left: max(16px, env(safe-area-inset-left));
    bottom: max(14px, env(safe-area-inset-bottom)); width: 110px; height: 110px;
  }
  .nomad-phone.master-touch .master-pad > button, .nomad-phone.master-touch .master-pad > span { display: none; }
  .nomad-phone.master-touch .mobile-stick {
    display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
    border: 1px solid #b3ead670; background: #112c3b70; box-shadow: inset 0 0 30px #86e1c516;
    pointer-events: auto; touch-action: none;
  }
  .mobile-stick span { width: 44px; height: 44px; border-radius: 50%; background: #b3ead69c; border: 1px solid #dffff0aa; pointer-events: none; }
  .mobile-stick.engaged { border-color: #dffff0; }
  .nomad-phone.master-touch .master-actions {
    position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom));
    grid-template-columns: repeat(2, 76px); gap: 8px;
  }
  .nomad-phone.master-touch #master-touch .master-actions button {
    height: 48px; min-width: 0; padding: 4px; background: #143343a8; border-color: #b3ead680;
    border-radius: 15px; pointer-events: auto; font-size: 11px; text-shadow: 0 1px 3px #000;
  }
  .nomad-phone.master-touch #master-touch button[aria-pressed=true] { background: #b3ead6e6; color: #092b30; text-shadow: none; }
  .nomad-phone.master-touch .master-touch-center {
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%); bottom: auto;
    height: auto; width: auto; max-width: 45%; flex-direction: column;
  }
  .nomad-phone.master-touch #master-mobile-status { font-size: 12px; max-width: none; white-space: nowrap; padding: 4px 9px; background: #06131cc9; border-radius: 6px; }
  .nomad-phone.master-touch.campaign .master-touch-center > button { display: none; }
  .nomad-phone.master-touch .master-touch-center details { pointer-events: auto; background: #06131cdd; }
  .nomad-phone.master-touch .master-commands { top: 100%; bottom: auto; }
  .nomad-phone.master-touch .master-commands button { pointer-events: auto; }
}
