@media (orientation: landscape) and (max-height: 500px) and (max-width: 1023px) {
  .actionDeck.is-playing .controls button.secondary:not(:disabled) {
    color: var(--game-ivory);
    border-color: #78b8c5;
    background: linear-gradient(180deg, #24617b, #164458);
  }

  .actionDeck.is-playing .controls button:disabled {
    color: rgba(214, 226, 236, .66);
    border-color: rgba(148, 163, 184, .24);
    background: rgba(10, 14, 20, .9);
  }

  .gamePage .backToOverview {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    left: calc(env(safe-area-inset-left, 0px) + 10px);
  }

  .gamePage:has(.app.mobile-run-active) .backToOverview {
    right: calc(env(safe-area-inset-right, 0px) + 10px);
    left: auto;
  }

  .game.has-pixi-scene[data-camera-mode="focused"] .mobileStreetNav {
    right: calc(env(safe-area-inset-right, 0px) + 8px);
    left: calc(env(safe-area-inset-left, 0px) + 8px);
  }

  .app.mobile-run-active .runBalance {
    position: absolute;
    z-index: 30;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: calc(env(safe-area-inset-right, 0px) + 62px);
    display: flex;
    gap: 7px;
    align-items: baseline;
    padding: 6px 11px;
    border: 1px solid var(--game-cyan-line);
    border-radius: 999px;
    background: var(--glass-bg-strong);
    box-shadow: var(--glass-shadow);
    pointer-events: none;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
  }

  .app.mobile-run-active .runBalance span {
    color: var(--game-muted);
    font-family: var(--utility);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .app.mobile-run-active .runBalance strong {
    color: #f0f4f6;
    font-family: var(--body);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
  }

  .game.has-pixi-scene .buildingValue { background: #0a0e14; }

  .game.has-pixi-scene .bld.is-selected .buildingValue,
  .game.has-pixi-scene .bld.visual-selected .buildingValue {
    background: var(--gold-gradient);
  }

  .game.has-pixi-scene .bld.is-locked .buildingValue,
  .game.has-pixi-scene .bld:disabled .buildingValue { opacity: .78; }

  .gamePage .overlay { padding: 8px 14px; }
}

.runBalance {
  display: none;
}

.gamePage .error-banner {
  z-index: 1300;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
}

.gamePage:has(.overlay.show) .backToOverview {
  opacity: 0;
  pointer-events: none;
}
