/* Explorer hardware contract: all worlds use the same controls and positions.
   Only pigments change between skins. The themed art remains on the actual
   map pins, place sheets, Studio and the rest of each world's identity. */
body[data-theme]{
  --map-key-surface:#e7eff1;
  --map-key-ink:#274e5c;
  --map-key-stroke:#88a0a7;
  --map-key-active:#bde5de;
  --map-key-active-ink:#194d48;
  --map-key-active-stroke:#6ab4a5;
}
body[data-theme=aero]{--map-key-surface:#e9eff5;--map-key-ink:#35556b;--map-key-stroke:#94a9b8;--map-key-active:#c7e9dd;--map-key-active-ink:#2b685b;--map-key-active-stroke:#7ab6ac}
body[data-theme=frontier]{--map-key-surface:#e6d9bb;--map-key-ink:#634c2f;--map-key-stroke:#bda477;--map-key-active:#d9ba80;--map-key-active-ink:#4c3824;--map-key-active-stroke:#997c50}
body[data-theme=kawaii]{--map-key-surface:#ffe5f0;--map-key-ink:#a24b78;--map-key-stroke:#e4a6bf;--map-key-active:#f9bfdc;--map-key-active-ink:#85355f;--map-key-active-stroke:#d781ae}
body[data-theme=neon]{--map-key-surface:#29233e;--map-key-ink:#f4b7e5;--map-key-stroke:#865d99;--map-key-active:#563366;--map-key-active-ink:#ffc3ef;--map-key-active-stroke:#ed82cd}
body[data-theme=atomic]{--map-key-surface:#edf0e0;--map-key-ink:#426a62;--map-key-stroke:#8bafa2;--map-key-active:#b8d7c4;--map-key-active-ink:#35655a;--map-key-active-stroke:#659b8a}
body[data-theme=block]{--map-key-surface:#e3e7ca;--map-key-ink:#416743;--map-key-stroke:#8cab81;--map-key-active:#b7d59d;--map-key-active-ink:#345735;--map-key-active-stroke:#6b9569}
body[data-theme=coral]{--map-key-surface:#eef5e9;--map-key-ink:#287572;--map-key-stroke:#9acbc3;--map-key-active:#bce6dc;--map-key-active-ink:#286d68;--map-key-active-stroke:#65b7ad}
body[data-theme=tactical]{--map-key-surface:#dee1c9;--map-key-ink:#3e5640;--map-key-stroke:#889b7d;--map-key-active:#b4c7a3;--map-key-active-ink:#354e36;--map-key-active-stroke:#739069}
body[data-theme=nightops]{--map-key-surface:#1b3525;--map-key-ink:#b4e9a6;--map-key-stroke:#547962;--map-key-active:#335a38;--map-key-active-ink:#cdffc1;--map-key-active-stroke:#82c98a}
body[data-theme=wasteland]{--map-key-surface:#2b3729;--map-key-ink:#d1f5a9;--map-key-stroke:#727f60;--map-key-active:#405439;--map-key-active-ink:#d8ff9c;--map-key-active-stroke:#9ab26c}

/* Override per-skin buttons and paper/neon/radio silhouettes with one
   accessible, touch-sized 44px component family. */
body[data-theme] :is(.header-actions .studio-launch,.header-actions .circle-button,.map-tools .tool-button){
  display:flex!important;
  flex:0 0 44px!important;
  align-items:center!important;
  justify-content:center!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  padding:0!important;
  margin:0!important;
  box-sizing:border-box!important;
  color:var(--map-key-ink)!important;
  background:var(--map-key-surface)!important;
  border:1px solid var(--map-key-stroke)!important;
  border-radius:11px!important;
  clip-path:none!important;
  filter:none!important;
  transform:none!important;
  text-shadow:none!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.20),0 3px 9px rgba(0,0,0,.20)!important;
  text-decoration:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  transition:background-color .15s,border-color .15s,color .15s!important;
}
body[data-theme] :is(.header-actions .studio-launch,.header-actions .circle-button,.map-tools .tool-button):is(:hover,:focus-visible):not(:disabled){
  background:var(--map-key-active)!important;
  border-color:var(--map-key-active-stroke)!important;
  color:var(--map-key-active-ink)!important;
}
body[data-theme] :is(.header-actions .circle-button,.map-tools .tool-button).active,
body[data-theme] .map-tools .tool-button[aria-pressed=true]{
  background:var(--map-key-active)!important;
  border-color:var(--map-key-active-stroke)!important;
  color:var(--map-key-active-ink)!important;
}
body[data-theme] :is(.header-actions .studio-launch,.header-actions .circle-button,.map-tools .tool-button):focus-visible{
  outline:3px solid var(--map-key-active-stroke)!important;
  outline-offset:3px;
}

/* Ignore skin-specific PNG hardware glyphs, keeping the same semantic SVG
   for saved places, day/night, about, GPS, 3D, buildings and reset. */
body[data-theme] :is(.header-actions .studio-launch,.header-actions .circle-button,.map-tools .tool-button)>img{display:none!important}
body[data-theme] .header-actions .studio-launch>span{display:none!important}
/* Frontier and Kitty Pop previously hid the mode toggle entirely. */
body[data-theme] #uiModeButton{display:flex!important}
body[data-theme] :is(.header-actions .studio-launch,.header-actions .circle-button,.map-tools .tool-button)>svg{
  display:block!important;
  visibility:visible!important;
  position:static!important;
  width:22px!important;
  height:22px!important;
  margin:0!important;
  padding:0!important;
  color:inherit!important;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  transform:none!important;
  translate:none!important;
  opacity:1!important;
  filter:none!important;
  pointer-events:none;
}
body[data-theme] .map-tools #buildingsButton>svg{width:23px!important;height:23px!important}
body[data-theme] :is(.header-actions .studio-launch,.header-actions .circle-button,.map-tools .tool-button)::before,
body[data-theme] :is(.header-actions .studio-launch,.header-actions .circle-button,.map-tools .tool-button)::after{
  display:none!important;content:none!important;
}
body[data-theme] .map-tools::before{display:none!important;content:none!important}
body[data-theme] .map-tools{gap:9px!important}
body[data-theme] .header-actions{gap:8px!important;flex-shrink:0;flex-wrap:nowrap}

@media(max-width:760px){
  body[data-theme] :is(.header-actions .studio-launch,.header-actions .circle-button,.map-tools .tool-button){
    flex-basis:42px!important;
    width:42px!important;height:42px!important;
    min-width:42px!important;min-height:42px!important;
  }
  body[data-theme] .header-actions{gap:6px!important}
  body[data-theme] .map-tools{gap:8px!important}
}
@media(max-width:365px){
  body[data-theme] .header-actions{gap:4px!important}
  body[data-theme] .header-actions :is(.studio-launch,.circle-button){
    flex-basis:40px!important;width:40px!important;height:40px!important;
    min-width:40px!important;min-height:40px!important;
  }
}
