/* Orbit R1: the approved concept 09. One native profile action and one native
   run/equipment action; XP is a decorative ring backed by its existing meter.
   First declared layer wins important rules without changing other HUD scopes. */
@layer player-hud-orbit-r1 {
 body:not(.is-battling) #gameScreen {
  --compact-profile-width:416px!important;
  --player-hud-height:116px!important;
  --orbit-paper:var(--ui-card,#f9fcff);
  --orbit-soft:var(--ui-soft,#e7eff4);
  --orbit-ink:var(--ui-ink,#19394d);
  --orbit-muted:var(--ui-muted,#506c80);
  --orbit-line:var(--ui-line,#bfd1df);
  --orbit-xp:#17b8ed;
  --orbit-energy:#f7c637;
  --orbit-run:#19bba2;
 }
 body:not(.is-battling) #gameScreen #playerHudOrbit {
  position:fixed!important;inset:calc(14px + env(safe-area-inset-top)) auto auto calc(14px + env(safe-area-inset-left))!important;
  width:416px!important;max-width:calc(100vw - 340px)!important;height:112px!important;
  margin:0!important;padding:0!important;pointer-events:auto!important;isolation:isolate;
 }
 body:not(.is-battling) #gameScreen #playerHudOrbit .selected-mobile-run {
  display:contents!important;position:static!important;inset:auto!important;margin:0!important;padding:0!important;
 }
 body:not(.is-battling) #gameScreen #playerHudOrbit .selected-mobile-walk {display:none!important}
 body:not(.is-battling) #gameScreen #playerProfileButton {
  position:relative!important;inset:0!important;display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;
  grid-template-rows:1fr!important;align-items:start!important;gap:12px!important;
  width:100%!important;max-width:none!important;min-width:0!important;height:100%!important;min-height:0!important;
  margin:0!important;padding:4px!important;overflow:visible!important;
  border:0!important;border-radius:14px!important;background:transparent!important;
  box-shadow:none!important;backdrop-filter:none!important;transform:none!important;clip-path:none!important;
  color:var(--orbit-ink)!important;text-align:left!important;cursor:pointer!important;
 }
 body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-avatar {
  position:relative!important;inset:auto!important;grid-column:1!important;grid-row:1!important;
  display:grid!important;place-items:center!important;align-self:start!important;
  box-sizing:border-box!important;width:84px!important;height:84px!important;min-width:0!important;min-height:0!important;
  padding:5px!important;margin:2px 0 0!important;border:0!important;border-radius:50%!important;
  background:var(--orbit-paper)!important;overflow:visible!important;transform:none!important;
  box-shadow:0 2px 5px #12334a2b!important;
 }
 body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-avatar::before {
  content:''!important;position:absolute!important;inset:-3px!important;display:block!important;
  border:0!important;border-radius:50%!important;pointer-events:none!important;
  background:conic-gradient(var(--orbit-xp) var(--player-experience,0%),var(--orbit-line) 0)!important;
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3px));
  mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3px));
  box-shadow:none!important;
 }
 body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-avatar::after {display:none!important}
 body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-avatar :is(img,canvas),
 body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-avatar.is-hero-portrait :is(img,canvas) {
  display:block!important;position:relative!important;inset:auto!important;width:100%!important;height:100%!important;
  min-width:0!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:center!important;
  border-radius:50%!important;transform:none!important;filter:none!important;
 }
 body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-copy {
  display:grid!important;grid-column:2!important;grid-row:1!important;grid-template-rows:32px 25px 25px!important;
  gap:5px!important;align-self:start!important;min-width:0!important;overflow:visible!important;
 }
 body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-identity {
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;
  box-sizing:border-box!important;height:32px!important;min-width:0!important;padding:0 13px!important;
  border:1px solid var(--orbit-line)!important;border-radius:11px!important;
  background:var(--orbit-paper)!important;color:var(--orbit-ink)!important;
  box-shadow:0 1px 3px #102f4617!important;clip-path:none!important;
 }
 body:not(.is-battling) #gameScreen #worldPlayerName {
  display:block!important;flex:1 1 auto!important;min-width:0!important;max-width:none!important;
  color:var(--orbit-ink)!important;font:800 18px/1.25 Onest,system-ui,sans-serif!important;
  text-shadow:none!important;letter-spacing:-.3px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
 }
 body:not(.is-battling) #gameScreen #worldPlayerLevel {
  position:absolute!important;left:45px!important;top:70px!important;right:auto!important;bottom:auto!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:44px!important;width:auto!important;height:25px!important;padding:0 6px!important;margin:0!important;
  border:2px solid var(--orbit-paper)!important;border-radius:13px!important;
  background:#195a89!important;color:#fff!important;box-shadow:0 1px 3px #12334a35!important;
  font:800 11px/1 Onest,system-ui,sans-serif!important;text-shadow:none!important;white-space:nowrap!important;clip-path:none!important;
 }
 body:not(.is-battling) #gameScreen #worldPlayerLevel::before,
 body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-meta,
 body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-open-hint {display:none!important}
 body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress {
  position:relative!important;inset:auto!important;display:grid!important;grid-template-columns:24px minmax(24px,1fr) 77px!important;
  grid-column:auto!important;grid-row:auto!important;align-items:center!important;gap:6px!important;
  box-sizing:border-box!important;min-width:0!important;width:100%!important;height:25px!important;min-height:0!important;
  margin:0!important;padding:0 8px!important;border:1px solid var(--orbit-line)!important;border-radius:10px!important;
  background:var(--orbit-paper)!important;box-shadow:0 1px 3px #102f4612!important;clip-path:none!important;transform:none!important;
 }
 body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerStaminaMiniRow {padding-right:52px!important;grid-template-columns:24px minmax(20px,1fr) 72px!important}
 body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress>small {
  position:relative!important;inset:auto!important;display:grid!important;place-items:center!important;width:24px!important;height:22px!important;
  min-width:0!important;max-width:none!important;max-height:none!important;padding:0!important;margin:0!important;
  background:none!important;clip-path:none!important;
 }
 body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress>small::before,
 body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress>small>span {display:none!important}
 body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress img {
  position:static!important;display:block!important;visibility:visible!important;width:20px!important;height:20px!important;
  max-width:20px!important;max-height:20px!important;object-fit:contain!important;filter:none!important;transform:none!important;
 }
 body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress>i {
  display:block!important;position:relative!important;inset:auto!important;box-sizing:border-box!important;
  width:100%!important;min-width:0!important;height:9px!important;min-height:0!important;padding:0!important;margin:0!important;
  border:0!important;border-radius:6px!important;background:var(--orbit-soft)!important;box-shadow:inset 0 0 0 1px var(--orbit-line)!important;
  overflow:hidden!important;transform:none!important;
 }
 body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress>i>b {
  position:static!important;display:block!important;height:100%!important;min-height:0!important;border-radius:inherit!important;
  background:var(--orbit-energy)!important;box-shadow:none!important;transition:none!important;
 }
 body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerStaminaMiniFill {background:var(--orbit-run)!important}
 body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress>em {
  position:static!important;inset:auto!important;display:block!important;min-width:0!important;max-width:none!important;
  padding:0!important;margin:0!important;background:none!important;border:0!important;clip-path:none!important;
  color:var(--orbit-ink)!important;font:750 12px/1.2 Onest,system-ui,sans-serif!important;
  text-align:right!important;white-space:nowrap!important;text-shadow:none!important;font-variant-numeric:tabular-nums!important;
 }
 body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpRow {
  position:absolute!important;left:0!important;top:99px!important;right:auto!important;bottom:auto!important;
  display:block!important;box-sizing:border-box!important;width:96px!important;height:17px!important;
  min-height:0!important;padding:1px 5px!important;border:1px solid var(--orbit-line)!important;border-radius:10px!important;
  background:var(--orbit-paper)!important;box-shadow:none!important;
 }
 body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpRow>small,
 body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpRow>i {display:none!important}
 body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpRow>em {font-size:10px!important;text-align:center!important;color:var(--orbit-muted)!important}
 body:not(.is-battling) #gameScreen #worldPlayerExpText::before {content:'XP '!important;color:#087eae!important;font-weight:850!important}
 body:not(.is-battling) #gameScreen #playerHudOrbit #worldMovementButton {
  position:absolute!important;inset:68px 4px auto auto!important;z-index:2!important;
  display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;
  gap:0!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;
  padding:8px!important;margin:0!important;border:1px solid var(--orbit-line)!important;border-radius:13px!important;
  background:var(--orbit-paper)!important;box-shadow:0 1px 4px #12334a26!important;transform:none!important;clip-path:none!important;
  color:var(--orbit-ink)!important;cursor:pointer!important;
 }
 body:not(.is-battling) #gameScreen #playerHudOrbit #worldMovementButton img {display:block!important;visibility:visible!important;width:24px!important;height:24px!important;object-fit:contain!important;filter:none!important;transform:none!important}
 body:not(.is-battling) #gameScreen #playerHudOrbit #worldMovementLabel {display:none!important}
 body:not(.is-battling) #gameScreen #playerHudOrbit[data-run-state="run"] #worldMovementButton {background:#d9f8ee!important;border-color:#28a68d!important;box-shadow:inset 0 0 0 1px #28a68d!important}
 body:not(.is-battling) #gameScreen #playerHudOrbit:is([data-run-state="rest"],[data-run-state="overloaded"],[data-run-state="locked"]) #worldMovementButton {background:var(--orbit-soft)!important;border-color:var(--orbit-line)!important;box-shadow:none!important}
 body:not(.is-battling) #gameScreen #playerHudOrbit[data-run-state="locked"] #worldPlayerStaminaMiniRow>i {opacity:.3!important}
 body:not(.is-battling) #gameScreen #playerHudOrbit[data-run-state="rest"] #worldPlayerStaminaMiniRow {border-color:#bd9447!important}
 body:not(.is-battling) #gameScreen #playerHudOrbit #worldMovementButton:disabled {opacity:.55!important;cursor:default!important}
 body:not(.is-battling) #gameScreen #playerStaminaHud {display:none!important}
 body:not(.is-battling) #gameScreen #playerHudOrbit :is(#playerProfileButton,#worldMovementButton):focus-visible {outline:3px solid var(--orbit-xp)!important;outline-offset:4px!important}
 body:not(.is-battling) #gameScreen #playerHudOrbit [hidden] {display:none!important}
 @media (max-width:760px),(pointer:coarse) and (max-height:560px),(min-width:761px) and (max-width:1099px) {
  body:not(.is-battling) #gameScreen {--player-hud-height:108px!important}
  body:not(.is-battling) #gameScreen #playerHudOrbit {
   inset:calc(14px + env(safe-area-inset-top)) auto auto calc(14px + env(safe-area-inset-left))!important;
   width:min(220px,calc(100% - var(--selected-map-size,176px) - 40px))!important;max-width:none!important;height:108px!important;
  }
  body:not(.is-battling) #gameScreen #playerProfileButton {
   display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;grid-template-rows:40px 20px 20px!important;
   gap:5px 8px!important;height:108px!important;min-height:0!important;padding:8px!important;
   border:1px solid var(--orbit-line)!important;border-radius:16px!important;background:var(--orbit-paper)!important;
   box-shadow:0 2px 8px #12334a18!important;overflow:visible!important;
  }
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-avatar {width:38px!important;height:38px!important;padding:3px!important;margin:1px!important;grid-column:1!important;grid-row:1!important;box-shadow:none!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-avatar::before {inset:-2px!important;-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px))}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-copy {display:contents!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-identity {grid-column:2!important;grid-row:1!important;display:grid!important;align-content:center!important;gap:3px!important;height:40px!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:none!important}
  body:not(.is-battling) #gameScreen #worldPlayerName {font-size:13px!important;line-height:1.25!important;letter-spacing:0!important}
  body:not(.is-battling) #gameScreen #worldPlayerLevel {position:static!important;display:inline-flex!important;justify-self:start!important;min-width:0!important;height:18px!important;padding:0 6px!important;border:0!important;border-radius:7px!important;font-size:10px!important;box-shadow:none!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress,
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerStaminaMiniRow {
   grid-column:1/-1!important;grid-template-columns:14px minmax(10px,1fr) 48px!important;gap:4px!important;
   width:calc(100% - 46px)!important;height:20px!important;padding:0!important;border:0!important;border-radius:0!important;
   background:none!important;box-shadow:none!important;
  }
  body:not(.is-battling) #gameScreen #worldPlayerEnergyRow {grid-row:2!important}
  body:not(.is-battling) #gameScreen #worldPlayerStaminaMiniRow {grid-row:3!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress>small {width:14px!important;height:18px!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress img {width:14px!important;height:14px!important;max-width:14px!important;max-height:14px!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress>i {height:6px!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress>em {font-size:10px!important;font-weight:650!important;max-width:48px!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpRow {display:none!important}
  body:not(.is-battling) #gameScreen #playerHudOrbit #worldMovementButton {inset:53px 7px auto auto!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:9px!important;border-radius:12px!important;box-shadow:none!important}
 }
 @media (pointer:coarse) and (min-width:761px) and (max-height:560px) {
  body:not(.is-battling) #gameScreen #playerHudOrbit {width:220px!important}
 }
 @media (prefers-reduced-motion:reduce) {
  body:not(.is-battling) #gameScreen #playerHudOrbit * {transition:none!important;animation:none!important}
 }
}

/* Phone revision: movement belongs to the native joystick; the desktop toggle stays. */
@layer player-hud-orbit-r1 {
 @media (max-width:760px),(pointer:coarse) and (max-height:560px) {
  body:not(.is-battling) #gameScreen {--player-hud-height:78px!important}
  body:not(.is-battling) #gameScreen #playerHudOrbit {inset:calc(12px + env(safe-area-inset-top)) auto auto calc(12px + env(safe-area-inset-left))!important;width:min(184px,calc(100% - var(--selected-map-size,144px) - 32px))!important}
  body:not(.is-battling) #gameScreen #playerHudOrbit,
  body:not(.is-battling) #gameScreen #playerProfileButton {height:78px!important}
  body:not(.is-battling) #gameScreen #playerProfileButton {width:100%!important;grid-template-columns:30px minmax(0,1fr)!important;grid-template-rows:30px 12px 12px!important;gap:4px 6px!important;padding:8px!important;background:color-mix(in srgb,var(--orbit-paper) 86%,transparent)!important;border-radius:14px!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-avatar {width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;margin:0!important;padding:2px!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-avatar::before {display:none!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-identity {display:flex!important;align-items:center!important;align-content:normal!important;gap:5px!important;height:30px!important;min-width:0!important}
  body:not(.is-battling) #gameScreen #worldPlayerName {min-width:0!important;flex:1 1 auto!important;font-size:13px!important}
  body:not(.is-battling) #gameScreen #worldPlayerLevel {flex:0 0 auto!important;height:18px!important;padding:0 5px!important;font-size:10px!important}
  body:not(.is-battling) #gameScreen #playerHudOrbit .selected-mobile-run,
  body:not(.is-battling) #gameScreen #playerHudOrbit #worldMovementButton,
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerStaminaMiniRow {display:none!important}
  body:not(.is-battling) #gameScreen #playerProfileButton :is(#worldPlayerExpRow,#worldPlayerEnergyRow) {display:grid!important;grid-column:1/-1!important;grid-template-columns:14px minmax(10px,1fr) max-content!important;gap:4px!important;width:100%!important;max-width:none!important;height:12px!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpRow {position:static!important;inset:auto!important;grid-row:2!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpRow>small {display:block!important;width:14px!important;height:12px!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpRow>small :is(img,span) {display:none!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpRow>small::after {content:'XP'!important;display:block!important;color:var(--orbit-xp)!important;font:800 9px/12px Onest,system-ui,sans-serif!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpRow>i {display:block!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpFill {background:var(--orbit-xp)!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpRow>em {font-size:10px!important;line-height:12px!important;text-align:right!important;color:var(--orbit-ink)!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpText::before {content:none!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerEnergyRow {grid-row:3!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress>small {height:12px!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress img {width:12px!important;height:12px!important;max-width:12px!important;max-height:12px!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress>i {height:5px!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress>em {font-size:10px!important;line-height:12px!important;max-width:none!important;font-variant-numeric:tabular-nums!important;white-space:nowrap!important}
  body:not(.is-battling) #gameScreen #joystick {
   --joystick-stamina-color:var(--orbit-run)!important;
   width:112px!important;height:112px!important;box-sizing:border-box!important;
   border:1px solid var(--orbit-line)!important;border-radius:50%!important;
   background:color-mix(in srgb,var(--orbit-paper) 85%,transparent)!important;
   box-shadow:0 3px 14px #12334a38!important;backdrop-filter:none!important;
   animation:none!important;transition:none!important;
  }
  body:not(.is-battling) #gameScreen #joystick[data-stamina-level="low"] {--joystick-stamina-color:#d5a032!important}
  body:not(.is-battling) #gameScreen #joystick[data-stamina-level="critical"] {--joystick-stamina-color:#df755e!important}
  body:not(.is-battling) #gameScreen #joystick::after {
   content:''!important;display:block!important;position:absolute!important;inset:-5px!important;
   border-radius:50%!important;background:conic-gradient(var(--joystick-stamina-color) calc(var(--joystick-stamina,100) * 1%),var(--orbit-line) 0)!important;
   -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px))!important;
   mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px))!important;
   filter:none!important;pointer-events:none!important;
  }
  body:not(.is-battling) #gameScreen #joystick::before {
   content:''!important;position:absolute!important;inset:16px!important;border:1px dashed var(--orbit-line)!important;
   border-radius:50%!important;opacity:.8!important;transform:none!important;transition:none!important;
  }
  body:not(.is-battling) #gameScreen #joystick>i {
   width:44px!important;height:44px!important;box-sizing:border-box!important;
   border:2px solid var(--orbit-line)!important;border-radius:50%!important;
   background:var(--orbit-paper)!important;box-shadow:0 2px 7px #12334a35!important;transition:none!important;
  }
  body:not(.is-battling) #gameScreen #joystick.is-sprinting:not(.is-exhausted):not(.is-walk-only)>i {border-color:var(--joystick-stamina-color)!important;background:color-mix(in srgb,var(--orbit-paper) 82%,var(--joystick-stamina-color))!important}
  body:not(.is-battling) #gameScreen #joystick[data-run-unlocked="false"]::after {background:var(--orbit-line)!important}
  body:not(.is-battling) #gameScreen #joystick>em.joystick-run-status-v69 {
   display:grid!important;grid-template-columns:18px auto auto!important;align-items:center!important;gap:6px!important;
   top:-35px!important;left:50%!important;min-width:108px!important;width:max-content!important;max-width:170px!important;
   min-height:27px!important;padding:4px 9px!important;border:1px solid var(--orbit-line)!important;border-radius:10px!important;
   background:var(--orbit-paper)!important;color:var(--orbit-ink)!important;box-shadow:0 2px 7px #12334a25!important;
   font:750 10px/1.2 Onest,system-ui,sans-serif!important;letter-spacing:0!important;white-space:nowrap!important;
   transform:translateX(-50%)!important;backdrop-filter:none!important;opacity:1!important;transition:none!important;
  }
  body:not(.is-battling) #gameScreen #joystick>em.joystick-run-status-v69 img {width:18px!important;height:18px!important;filter:none!important}
  body:not(.is-battling) #gameScreen #joystick>em.joystick-run-status-v69 strong {font-size:10px!important;color:var(--orbit-ink)!important;font-variant-numeric:tabular-nums!important}
 }
}
/* Player HUD R4: selected compact Orbit. Native portrait, XP and controls.
   This additive scope leaves the complete phone/coarse landscape revision exact. */
@layer player-hud-orbit-r1 {
 @media (min-width:761px) and (pointer:fine) {
  body:not(.is-battling) #gameScreen {--compact-profile-width:292px!important;--player-hud-height:98px!important;--orbit-xp:#209cde;--orbit-energy:#eabd32;--orbit-run:#2eaf9b}
  body:not(.is-battling) #gameScreen #playerHudOrbit {width:292px!important;height:98px!important;max-width:calc(100vw - 340px)!important}
  body:not(.is-battling) #gameScreen #playerProfileButton {
   position:relative!important;
   grid-template-columns:64px minmax(0,1fr)!important;grid-template-rows:1fr!important;gap:11px!important;
   width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
   box-sizing:border-box!important;padding:9px 14px!important;border:1px solid var(--orbit-line)!important;border-radius:16px!important;
   background:var(--orbit-paper)!important;box-shadow:0 3px 12px #102d451a!important;
  }
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-avatar {width:64px!important;height:64px!important;padding:7px!important;margin:0!important;box-shadow:none!important;background:var(--orbit-soft)!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-avatar::before {inset:0!important;-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px))!important;mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px))!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-copy {position:static!important;display:grid!important;grid-column:2!important;grid-row:1!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:24px 14px 14px!important;gap:4px!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-identity {position:static!important;display:flex!important;grid-column:1!important;grid-row:1!important;align-content:normal!important;height:24px!important;padding:0!important;gap:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
  body:not(.is-battling) #gameScreen #worldPlayerName {font-size:18px!important;line-height:24px!important;letter-spacing:-.4px!important}
  body:not(.is-battling) #gameScreen #worldPlayerLevel {position:absolute!important;left:15px!important;top:75px!important;min-width:62px!important;height:16px!important;box-sizing:border-box!important;padding:0 5px!important;border:0!important;border-radius:6px!important;background:var(--orbit-soft)!important;color:var(--orbit-ink)!important;box-shadow:none!important;font-size:10px!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress,
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerStaminaMiniRow {grid-column:auto!important;grid-row:auto!important;grid-template-columns:14px minmax(24px,1fr) max-content!important;gap:7px!important;height:14px!important;width:100%!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress>small {width:14px!important;height:14px!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress>i {height:4px!important;border-radius:4px!important;box-shadow:none!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress>i>b {transition:width .18s ease!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress>em {font-size:10px!important;font-weight:650!important;line-height:14px!important;max-width:none!important;color:var(--orbit-muted)!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerEnergyRow>small img {display:none!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerEnergyRow>small::after {content:''!important;display:block!important;width:14px!important;height:14px!important;background:#c99b12!important;-webkit-mask:url('/assets/player-hud-r4/energy.svg') center/contain no-repeat;mask:url('/assets/player-hud-r4/energy.svg') center/contain no-repeat}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerStaminaMiniRow>small {visibility:hidden!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpRow {position:absolute!important;inset:77px 14px auto 89px!important;display:block!important;width:auto!important;height:14px!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpRow>em {font-size:10px!important;text-align:left!important;line-height:14px!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpText::before {content:'XP '!important;color:var(--orbit-muted)!important;font-weight:650!important}
  body:not(.is-battling) #gameScreen #playerHudOrbit #worldMovementButton {inset:52px auto auto 84px!important;width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;padding:5px!important;border:0!important;border-radius:7px!important;background:transparent!important;box-shadow:none!important;color:var(--orbit-run)!important}
  body:not(.is-battling) #gameScreen #playerHudOrbit #worldMovementButton img {display:none!important}
  body:not(.is-battling) #gameScreen #playerHudOrbit #worldMovementButton::before {content:''!important;display:block!important;width:14px!important;height:14px!important;background:currentColor!important;-webkit-mask:url('/assets/player-hud-r4/run.svg') center/contain no-repeat;mask:url('/assets/player-hud-r4/run.svg') center/contain no-repeat}
  body:not(.is-battling) #gameScreen #playerHudOrbit #worldMovementButton:hover {background:var(--orbit-soft)!important}
  body:not(.is-battling) #gameScreen #playerHudOrbit[data-run-state="run"] #worldMovementButton {background:var(--orbit-soft)!important;color:var(--orbit-run)!important}
  body:not(.is-battling) #gameScreen #playerHudOrbit[data-run-state="rest"] #worldMovementButton {color:#ba8b25!important}
  body:not(.is-battling) #gameScreen #playerHudOrbit[data-run-state="overloaded"] #worldMovementButton {color:#c66c61!important}
  body:not(.is-battling) #gameScreen #playerHudOrbit[data-run-state="locked"] #worldMovementButton::before {display:none!important}
  body:not(.is-battling) #gameScreen #playerHudOrbit[data-run-state="locked"] #worldMovementButton img {display:block!important;width:14px!important;height:14px!important}
  body:not(.is-battling) #gameScreen #playerHudOrbit[data-run-state="locked"] #worldPlayerStaminaMiniText {display:none!important}
  body:not(.is-battling) #gameScreen #playerHudOrbit[data-run-state="locked"] #worldPlayerStaminaMiniRow::after {content:'Бег'!important;display:block!important;grid-column:3!important;justify-self:end!important;color:var(--orbit-muted)!important;font:650 10px/14px Onest,system-ui,sans-serif!important}
 }
 @media (prefers-reduced-motion:reduce) {
  body:not(.is-battling) #gameScreen #playerHudOrbit .player-chip-progress>i>b {transition:none!important}
 }
}

/* Desktop HUD restoration R1: restore the original name/level rail, XP rail
   and energy rail on desktop only. Phone and coarse landscape stay unchanged. */
@layer player-hud-orbit-r1 {
  @media (min-width:761px) and (pointer:fine), (min-width:761px) and (min-height:561px) {
    body:not(.is-battling) #gameScreen {
      --compact-profile-width:400px!important;
      --player-hud-height:86px!important;
    }
    body:not(.is-battling) #gameScreen #playerProfileButton {
      --player-ink:var(--ui-ink,#122e59);
      --player-muted:var(--ui-muted,#193864);
      width:var(--compact-profile-width)!important;min-width:0!important;
      max-width:calc(100vw - 300px)!important;
      height:var(--player-hud-height)!important;min-height:var(--player-hud-height)!important;
      grid-template-columns:80px minmax(0,1fr)!important;
      grid-template-rows:minmax(0,1fr)!important;align-items:center!important;
      gap:7px!important;padding:3px!important;
      background:transparent!important;background-image:none!important;
      border:0!important;box-shadow:none!important;backdrop-filter:none!important;
      overflow:visible!important;
    }
    body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-avatar {
      box-sizing:border-box!important;width:80px!important;height:80px!important;
      padding:0!important;border:3px solid var(--ui-card,#f9fdff)!important;border-radius:50%!important;
      background:linear-gradient(145deg,var(--ui-tint,#e8f8ff),var(--ui-soft,#b9e0f6))!important;
      box-shadow:0 0 0 1px var(--ui-line,#83b5d3),0 2px 3px #173e5829!important;
      overflow:hidden!important;
    }
    body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-avatar.is-hero-portrait :is(img,canvas) {
      display:block!important;width:100%!important;height:100%!important;
      max-width:none!important;max-height:none!important;object-fit:contain!important;
      object-position:center!important;transform:none!important;filter:none!important;
    }
    body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-copy {
      display:grid!important;grid-template-rows:30px 20px 20px!important;
      gap:4px!important;align-self:center!important;min-width:0!important;
    }
    body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-identity {
      display:flex!important;align-items:center!important;justify-content:space-between!important;
      box-sizing:border-box!important;min-width:0!important;height:30px!important;
      gap:8px!important;padding:0 0 0 12px!important;
      background:var(--ui-card,#fcfeff)!important;border:1px solid var(--ui-line,#bdd8eb)!important;border-radius:6px!important;
      box-shadow:0 1px 2px #10365c24!important;
      clip-path:polygon(0 0,calc(100% - 8px) 0,100% 50%,calc(100% - 8px) 100%,8px 100%)!important;
    }
    body:not(.is-battling) #gameScreen #worldPlayerName {
      font-size:18px!important;font-weight:850!important;line-height:1.2!important;
      color:var(--ui-ink,#122e59)!important;text-shadow:none!important;letter-spacing:-.35px!important;
      flex:1 1 auto!important;min-width:0!important;max-width:none!important;
      white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important;
    }
    body:not(.is-battling) #gameScreen #worldPlayerLevel {
      box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;
      justify-content:center!important;flex:none!important;gap:6px!important;
      height:28px!important;padding:0 13px 0 15px!important;margin:0!important;
      background:var(--ui-tint,#e3f3ff)!important;color:var(--ui-ink,#122e59)!important;border:0!important;
      border-radius:0!important;text-shadow:none!important;font-size:12px!important;
      font-weight:800!important;line-height:1!important;white-space:nowrap!important;
      clip-path:polygon(9px 0,calc(100% - 7px) 0,100% 50%,calc(100% - 7px) 100%,0 100%)!important;
    }
    body:not(.is-battling) #gameScreen #worldPlayerLevel::before {
      content:''!important;display:block!important;flex:none!important;
      width:22px!important;height:22px!important;margin:0!important;
      background:url('/assets/pc-hud-light-v1/level.svg') center/contain no-repeat!important;
    }
    body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress {
      box-sizing:border-box!important;display:grid!important;
      grid-template-columns:32px minmax(90px,1fr) 92px!important;
      align-items:center!important;height:20px!important;min-height:20px!important;
      --meter-value-paper:var(--ui-tint,#e3f3ff);
      gap:4px!important;padding:0!important;margin:0!important;
      border:1px solid var(--ui-line,#bdd8eb)!important;border-radius:4px!important;
      background:linear-gradient(180deg,var(--ui-card,#fff),var(--ui-paper,#f5fbff))!important;box-shadow:none!important;
      clip-path:polygon(0 0,calc(100% - 6px) 0,100% 50%,calc(100% - 6px) 100%,6px 100%)!important;
    }
    body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress[hidden] {display:none!important;}
    body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress>small {
      position:relative!important;display:grid!important;place-items:center!important;
      width:32px!important;height:18px!important;max-width:32px!important;max-height:18px!important;
    }
    body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress img {
      position:relative!important;width:18px!important;height:18px!important;
      max-width:18px!important;max-height:18px!important;
    }
    body:not(.is-battling) #gameScreen #playerProfileButton :is(#worldPlayerExpRow,#worldPlayerEnergyRow)>small img {visibility:hidden!important;}
    body:not(.is-battling) #gameScreen #playerProfileButton :is(#worldPlayerExpRow,#worldPlayerEnergyRow)>small {
      background:var(--ui-tint,#e3f3ff)!important;
      clip-path:polygon(0 0,100% 0,calc(100% - 5px) 100%,0 100%)!important;
    }
    body:not(.is-battling) #gameScreen #playerProfileButton :is(#worldPlayerExpRow,#worldPlayerEnergyRow)>small::before {
      content:''!important;display:block!important;position:absolute!important;inset:0!important;
      width:32px!important;height:18px!important;
      background:url('/assets/pc-hud-light-v1/experience.svg') 6px center/21px 14px no-repeat!important;
    }
    body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerEnergyRow>small::before {
      background:url('/assets/pc-hud-light-v1/energy.svg') center/18px 18px no-repeat!important;
    }
    body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress>i {
      box-sizing:border-box!important;height:10px!important;padding:0!important;
      border:1px solid var(--ui-line,#96c9ee)!important;border-radius:5px!important;background:var(--ui-soft,#dbeefa)!important;
      box-shadow:none!important;overflow:hidden!important;transform:skewX(-12deg)!important;
    }
    body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress>i>b {
      position:static!important;display:block!important;height:100%!important;
      border-radius:4px!important;box-shadow:inset 0 1px #ffffff99,inset 0 -1px #0870cd40!important;
      transition:none!important;
    }
    body:not(.is-battling) #gameScreen #worldPlayerExpFill {
      background:linear-gradient(180deg,#48d7ff,#20b4ff 48%,#087ff0)!important;
    }
    body:not(.is-battling) #gameScreen #worldPlayerEnergyFill {
      background:linear-gradient(180deg,#fff278,#ffdb43 48%,#ffbb14)!important;
      box-shadow:inset 0 1px #ffffff99,inset 0 -1px #c7851540!important;
    }
    body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-progress>em {
      display:flex!important;align-items:center!important;justify-content:flex-end!important;
      box-sizing:border-box!important;align-self:stretch!important;
      padding:0 11px 0 8px!important;min-width:0!important;
      background:var(--meter-value-paper)!important;
      clip-path:polygon(5px 0,100% 0,100% 100%,0 100%)!important;
      font-size:12px!important;font-weight:800!important;text-align:right!important;
      line-height:1!important;color:var(--ui-ink,#193864)!important;text-shadow:none!important;
      font-variant-numeric:tabular-nums!important;white-space:nowrap!important;
    }
  }
}


/* The native Orbit wrapper and sibling movement action are retained; these
   resets undo only their later desktop presentation, not their handlers. */
@layer player-hud-orbit-r1 {
 @media (min-width:761px) and (pointer:fine), (min-width:761px) and (min-height:561px) {
  body:not(.is-battling) #gameScreen #playerHudOrbit {width:400px!important;max-width:calc(100vw - 360px)!important;height:86px!important}
  body:not(.is-battling) #gameScreen #playerProfileButton {width:100%!important;max-width:none!important;align-items:center!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-avatar {margin:0!important;align-self:center!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-avatar::before {display:none!important}
  body:not(.is-battling) #gameScreen #playerProfileButton .player-chip-copy {grid-template-rows:30px 20px 20px!important;align-self:center!important}
  body:not(.is-battling) #gameScreen #worldPlayerLevel {position:static!important;inset:auto!important;min-width:0!important;width:auto!important}
  body:not(.is-battling) #gameScreen #worldPlayerLevel::before {display:block!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpRow {
   position:relative!important;inset:auto!important;display:grid!important;width:100%!important;
   grid-template-columns:32px minmax(90px,1fr) 92px!important;grid-column:auto!important;grid-row:auto!important;
   height:20px!important;min-height:20px!important;padding:0!important;border:1px solid var(--ui-line,#bdd8eb)!important;border-radius:4px!important;
   background:linear-gradient(180deg,var(--ui-card,#fff),var(--ui-paper,#f5fbff))!important;
   clip-path:polygon(0 0,calc(100% - 6px) 0,100% 50%,calc(100% - 6px) 100%,6px 100%)!important;
  }
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpRow>small {display:grid!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpRow>i {display:block!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpRow>em {font-size:12px!important;text-align:right!important;color:var(--ui-ink,#193864)!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpText::before {content:none!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerExpFill {background:linear-gradient(180deg,#48d7ff,#20b4ff 48%,#087ff0)!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerEnergyFill {background:linear-gradient(180deg,#fff278,#ffdb43 48%,#ffbb14)!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerEnergyRow>small::after {display:none!important}
  body:not(.is-battling) #gameScreen #playerProfileButton #worldPlayerStaminaMiniRow {display:none!important}
  body:not(.is-battling) #gameScreen #playerHudOrbit #worldMovementButton {
   inset:21px auto auto calc(100% + 8px)!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;
   padding:9px!important;border:1px solid var(--orbit-line)!important;border-radius:12px!important;background:var(--orbit-paper)!important;box-shadow:0 1px 4px #12334a26!important;
  }
  body:not(.is-battling) #gameScreen #playerHudOrbit #worldMovementButton::before {display:none!important}
  body:not(.is-battling) #gameScreen #playerHudOrbit #worldMovementButton img {display:block!important;width:24px!important;height:24px!important}
 }
}

/* Team progress belongs to the world HUD and uses the native loading lock. */
@layer player-hud-orbit-r1 {
  #worldTeamQuick[hidden],
  #worldTeamQuick:not([data-team-ready]),
  #app:not([data-screen="game"]) #worldTeamQuick,
  html:is(.game-entry-pending,[data-world-loading],[data-mobile-keyboard="open"]) #worldTeamQuick,
  body.is-battling #worldTeamQuick {
    display: none !important;
  }

  #gameScreen #worldTeamQuick[data-team-ready] {
    background: var(--ui-paper,#fff) !important;
    border-color: var(--ui-line,#c7d8e3) !important;
  }

  #gameScreen #worldTeamQuick .exp-team-empty {
    color: var(--ui-ink,#19394d) !important;
    border-color: var(--ui-line,#c7d8e3) !important;
  }

  #gameScreen #worldTeamQuick > button[data-pokemon-details] {
    min-height: 72px !important;
    padding: 3px 4px !important;
    gap: 3px !important;
  }

  #gameScreen #worldTeamQuick > button.is-lead {
    background: var(--ui-soft,#e3f2fd) !important;
    box-shadow: inset 0 0 0 1px var(--ui-line,#bfd1df) !important;
  }

  #gameScreen #worldTeamQuick .exp-team-vitals {
    display: grid !important;
    width: 100% !important;
    max-width: 52px !important;
    gap: 2px !important;
  }

  #gameScreen #worldTeamQuick .exp-team-meter {
    display: grid !important;
    grid-template-columns: 13px minmax(0,1fr) !important;
    gap: 3px !important;
    align-items: center !important;
    color: var(--ui-ink,#19394d) !important;
    --team-fill: #239b80;
  }

  #gameScreen #worldTeamQuick .exp-team-meter[data-stat="XP"] {
    --team-fill: #299ddb;
  }

  #gameScreen #worldTeamQuick .exp-team-meter > small {
    font: 700 8px/1 Onest,system-ui,sans-serif !important;
    color: inherit !important;
  }

  #gameScreen #worldTeamQuick .exp-team-meter > i {
    display: block !important;
    height: 3px !important;
    overflow: hidden !important;
    border-radius: 4px !important;
    background: var(--ui-line,#c7d8e3) !important;
  }

  #gameScreen #worldTeamQuick .exp-team-meter > i > b {
    display: block !important;
    height: 100% !important;
    border-radius: inherit !important;
    background: var(--team-fill) !important;
  }

  @media (max-width:760px), (pointer:coarse) and (max-height:560px) {
    html:not(.game-entry-pending,[data-world-loading],[data-mobile-keyboard="open"]) body:not(.is-battling)
      #app[data-screen="game"] #gameScreen[data-selected-mobile-hud] #worldTeamQuick[data-team-ready]:not([hidden]) {
      position: absolute !important;
      inset: auto calc(12px + env(safe-area-inset-right)) calc(152px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left)) !important;
      display: grid !important;
      grid-template-columns: repeat(6,minmax(0,1fr)) !important;
      gap: 3px !important;
      width: auto !important;
      max-width: none !important;
      min-height: 0 !important;
      height: 60px !important;
      padding: 4px !important;
      margin: 0 !important;
      border: 1px solid var(--selected-line,var(--ui-line)) !important;
      border-radius: 16px !important;
      background: var(--selected-paper,var(--ui-paper)) !important;
      box-shadow: 0 3px 12px #244c6724 !important;
      transform: none !important;
      box-sizing: border-box !important;
    }

    html:not(.game-entry-pending,[data-world-loading],[data-mobile-keyboard="open"]) body:not(.is-battling)
      #app[data-screen="game"] #gameScreen[data-selected-mobile-hud]:has(#contextAction.is-ready) #worldTeamQuick[data-team-ready]:not([hidden]) {
      bottom: calc(220px + env(safe-area-inset-bottom)) !important;
    }

    #gameScreen[data-selected-mobile-hud] #worldTeamQuick > button {
      min-width: 0 !important;
      width: 100% !important;
      min-height: 44px !important;
      height: 50px !important;
      padding: 2px 3px !important;
      gap: 2px !important;
    }

    #gameScreen[data-selected-mobile-hud] #worldTeamQuick .exp-team-portrait,
    #gameScreen[data-selected-mobile-hud] #worldTeamQuick .exp-team-portrait img {
      width: 30px !important;
      height: 30px !important;
    }

    @media (min-width:560px) and (max-height:480px) {
      html:not(.game-entry-pending,[data-world-loading],[data-mobile-keyboard="open"]) body:not(.is-battling)
        #app[data-screen="game"] #gameScreen[data-selected-mobile-hud] #worldTeamQuick[data-team-ready]:not([hidden]) {
        left: auto !important;
        right: calc(64px + env(safe-area-inset-right)) !important;
        width: clamp(289px,calc(50vw - 82px),332px) !important;
      }

      html[data-control-side="left"]:not(.game-entry-pending,[data-world-loading],[data-mobile-keyboard="open"]) body:not(.is-battling)
        #app[data-screen="game"] #gameScreen[data-selected-mobile-hud] #worldTeamQuick[data-team-ready]:not([hidden]) {
        left: calc(14px + env(safe-area-inset-left)) !important;
        right: auto !important;
      }

      html:not(.game-entry-pending,[data-world-loading],[data-mobile-keyboard="open"]) body:not(.is-battling)
        #app[data-screen="game"] #gameScreen[data-selected-mobile-hud]:has(#contextAction.is-ready) #worldTeamQuick[data-team-ready]:not([hidden]) {
        bottom: calc(172px + env(safe-area-inset-bottom)) !important;
      }
    }
  }
}

/* In short landscape view, keep the contextual action and minimap clear. */
@layer player-hud-orbit-r1 {
  @media (min-width:640px) and (max-height:382px) and (orientation:landscape) {
    html:not([data-control-side="left"],.game-entry-pending,[data-world-loading],[data-mobile-keyboard="open"]) body:not(.is-battling)
      #app[data-screen="game"] #gameScreen[data-selected-mobile-hud]:has(#contextAction.is-ready) #worldTeamQuick[data-team-ready]:not([hidden]) {
      left: calc(14px + env(safe-area-inset-left)) !important;
      right: auto !important;
    }
  }
}
