@layer interface {
  .we3d-skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 10000;
    padding: 10px 14px;
    border: 2px solid var(--wx-line-soft);
    border-radius: 6px;
    color: var(--wx-text);
    background: var(--wx-panel-solid);
    transform: translateY(-150%);
  }

  .we3d-skip-link:focus { transform: translateY(0); }

  .we3d-visually-hidden {
    position: fixed !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  :where(button, a, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--wx-focus) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 2px var(--wx-bg) !important;
  }

  html[data-we3d-text-scale="115"] :where(
    #globeSelectorScreen, #globeHubOverlay, #controlsTab, #pauseScreen,
    #resultScreen, #caughtScreen, #urbanEquipment, #discoveryPanel,
    #roomPanelModal, #liveGpsPermissionPanel, #arExperience
  ) { font-size: 115%; }

  html[data-we3d-text-scale="130"] :where(
    #globeSelectorScreen, #globeHubOverlay, #controlsTab, #pauseScreen,
    #resultScreen, #caughtScreen, #urbanEquipment, #discoveryPanel,
    #roomPanelModal, #liveGpsPermissionPanel, #arExperience
  ) { font-size: 130%; }

  html[data-we3d-text-scale="160"] :where(
    #globeSelectorScreen, #globeHubOverlay, #controlsTab, #pauseScreen,
    #resultScreen, #caughtScreen, #urbanEquipment, #discoveryPanel,
    #roomPanelModal, #liveGpsPermissionPanel, #arExperience
  ) { font-size: 160%; }

  html[data-we3d-text-scale="200"] :where(
    #globeSelectorScreen, #globeHubOverlay, #controlsTab, #pauseScreen,
    #resultScreen, #caughtScreen, #urbanEquipment, #discoveryPanel,
    #roomPanelModal, #liveGpsPermissionPanel, #arExperience
  ) { font-size: 200%; }

  html[data-we3d-contrast="more"] :where(
    #globeSelectorScreen, #globeHubOverlay, #controlsTab, #pauseScreen,
    #resultScreen, #caughtScreen, #urbanEquipment, #discoveryPanel,
    #roomPanelModal, #liveGpsPermissionPanel, #arExperience
  ) {
    --wx-text: #fff;
    --wx-muted: #e5edf2;
    --wx-line-soft: rgba(255, 255, 255, .68);
    filter: contrast(1.12);
  }

  html[data-we3d-contrast="more"] :where(button, input, select, textarea) {
    border-color: currentColor !important;
  }

  html[data-we3d-motion="reduce"] *,
  html[data-we3d-motion="reduce"] *::before,
  html[data-we3d-motion="reduce"] *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  html[data-we3d-effects="reduce"] #urbanCrashFeedback,
  html[data-we3d-effects="reduce"] .pirateCombatHud::before { display: none !important; }
  html[data-we3d-reticle="large"] #urbanWeaponReticle { --reticle-gap: 13px; width: 74px; height: 74px; }
  html[data-we3d-reticle="large"] #urbanWeaponReticle i,
  html[data-we3d-reticle="large"] #urbanWeaponReticle b { left: 36px; height: 11px; }
  html[data-we3d-reticle="large"] #urbanWeaponReticle span,
  html[data-we3d-reticle="large"] #urbanWeaponReticle em { top: 36px; width: 11px; }
  html[data-we3d-action-details="always"] #urbanVehiclePrompt.familiar #urbanVehiclePromptMeta { display: block; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      scroll-behavior: auto !important;
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
    }
  }

  @media (forced-colors: active) {
    :where(button, a, input, select, textarea, [tabindex]):focus-visible {
      outline: 3px solid Highlight !important;
      box-shadow: none !important;
    }
  }

  @media (pointer: coarse) {
    :where(button, input[type="button"], input[type="submit"], select, a) {
      min-width: 44px;
      min-height: 44px;
    } #mobileControlsReset{ min-height: 44px !important; }
  }
}
