.gameLoader {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--game-ivory, #f4e8d2);
  background: #0a0e14;
  transition: opacity var(--motion-normal, .2s) ease-out;
}

.gameLoader[aria-hidden="true"] { opacity: 0; pointer-events: none; }
.gameLoader strong { font-family: var(--display); font-size: clamp(24px, 5vw, 44px); }
.gameLoader span { color: rgba(214, 226, 236, .72); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.gameLoader::after {
  width: 92px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  animation: gameLoading 1.1s ease-in-out infinite;
}

@keyframes gameLoading { 0%, 100% { opacity: .25; transform: scaleX(.45); } 50% { opacity: 1; transform: scaleX(1); } }

.gameUtilityMenu > summary { display: none; }
.gameUtilityPanel { display: flex; gap: 10px; }

.mobileStreetNav { display: none; }

@media (max-width: 1023px) {
  .game.has-pixi-scene[data-camera-mode="focused"] .street {
    bottom: auto;
    height: var(--scene-world-street-height);
    transform: translate3d(var(--street-camera-x, 0), 0, 0) scale(var(--street-camera-scale, 1));
    transform-origin: 0 0;
    will-change: transform;
  }

  .game.has-pixi-scene .streetWrap { overflow: hidden; touch-action: pan-y; }

  .game.has-pixi-scene[data-camera-mode="focused"] .mobileStreetNav {
    position: absolute;
    z-index: 8;
    top: var(--scene-street-top, 45%);
    right: max(8px, env(safe-area-inset-right));
    bottom: calc(100% - var(--scene-ground-y, 66%));
    left: max(8px, env(safe-area-inset-left));
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    pointer-events: none;
  }

  .mobileStreetNav button {
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    color: #fff4cf;
    border: 1px solid rgba(212, 175, 55, .7);
    border-radius: 50%;
    background: rgba(10, 14, 20, .85);
    box-shadow: 0 6px 18px rgba(1, 8, 15, .34);
    font: 700 34px/1 Arial, sans-serif;
    pointer-events: auto;
    backdrop-filter: blur(7px);
  }

  .mobileStreetNav button:last-child { justify-self: end; }
  .mobileStreetNav button:disabled { visibility: hidden; }
  .mobileStreetNav button:active { transform: scale(.95); }

  .mobileStreetPosition {
    align-self: end;
    justify-self: center;
    margin-bottom: 8px;
    padding: 5px 9px;
    color: rgba(244, 232, 210, .9);
    border: 1px solid rgba(151, 186, 215, .25);
    border-radius: 999px;
    background: rgba(10, 14, 20, .8);
    font: 800 9px/1 var(--utility);
    letter-spacing: .05em;
    pointer-events: none;
    text-transform: uppercase;
  }

  .accountCluster { align-items: center; gap: 7px; }
  .gameUtilityMenu { position: relative; }
  .gameUtilityMenu > summary {
    display: grid;
    min-width: 48px;
    min-height: 48px;
    padding: 4px;
    place-items: center;
    color: #f6e7c7;
    border: 1px solid rgba(212, 175, 55, .48);
    border-radius: 7px;
    background: rgba(16, 23, 34, .94);
    cursor: pointer;
    list-style: none;
  }

  .gameUtilityMenu > summary::-webkit-details-marker { display: none; }
  .gameUtilityMenu > summary span:first-child { font-size: 20px; }
  .utilityMenuLabel { font: 800 7px/1 var(--utility); letter-spacing: .08em; text-transform: uppercase; }
  .gameUtilityPanel {
    position: absolute;
    z-index: 70;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(48px, 1fr));
    gap: 7px;
    width: min(216px, calc(100vw - 20px));
    padding: 8px;
    border: 1px solid rgba(212, 175, 55, .46);
    border-radius: 8px;
    background: rgba(10, 14, 20, .97);
    box-shadow: 0 16px 32px rgba(1, 8, 15, .5);
  }

  .gameUtilityPanel .audioToggle { min-width: 48px; min-height: 48px; color: #f0e6cd; background: rgba(20, 28, 40, .7); }
  .gameUtilityPanel .accountBtn { grid-column: 1 / -1; width: auto; }
}

@media (max-width: 760px) and (orientation: landscape) {
  .app.mobile-run-active .topbar { display: none; }
  .app.mobile-run-active .shell { margin-top: 0; }
  .game.has-pixi-scene .actionDeck.is-playing .controls button { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .gameLoader::after { animation: none; opacity: 1; }
  .game.has-pixi-scene[data-camera-mode="focused"] .street,
  .mobileStreetNav button { transition: none; }
}
