/* Build 21.335 — geometric truth / full-bleed image, no false city halos */
#gameScreen.bt22325-underworld-mode #underworld .bt22319-map-frame{
 aspect-ratio:1672 / 941!important;
 height:auto!important; min-height:0!important;
 align-self:start; overflow:hidden!important;
 background:#030708!important;
 border:1px solid rgba(200,154,74,.28)!important;
 box-sizing:border-box!important;
}
#gameScreen.bt22325-underworld-mode #underworld .bt22319-map{
 position:absolute!important;inset:-1px!important;
 width:calc(100% + 2px)!important; height:calc(100% + 2px)!important;
 min-height:0!important; display:block!important; background:#030708!important;
}
#underworld .bt22319-map image{image-rendering:auto!important;pointer-events:none!important}
#underworld .bt22319-map-shade{fill:rgba(0,0,0,.07)!important;pointer-events:none!important}
/* Remove all old area-layer graphics. Only a reviewed contour may highlight. */
#underworld .bt22330-city-zone,#underworld .bt22329-city-zone,
#underworld .bt22319-city-halo,#underworld .bt22329-city-outline,
#underworld .bt22330-city-outline {display:none!important;}
#underworld .bt22335-city-anchor{cursor:pointer!important;pointer-events:all!important}
#underworld .bt22335-city-anchor rect {fill:transparent!important;stroke:none!important;pointer-events:all!important}
#underworld .bt22335-city-anchor:focus-visible rect {stroke:#bfe8ff!important;stroke-width:2!important}
#underworld .bt22335-approved-city{cursor:pointer!important;pointer-events:all!important}
#underworld .bt22335-city-hit {fill:rgba(0,0,0,.001)!important;pointer-events:all!important;stroke:none!important}
#underworld .bt22335-city-outline {fill:transparent!important;stroke:transparent!important;stroke-width:2!important;vector-effect:non-scaling-stroke!important;opacity:0!important;pointer-events:none!important}
#underworld .bt22335-approved-city:hover .bt22335-city-outline,
#underworld .bt22335-approved-city:focus-visible .bt22335-city-outline {
  opacity:1!important;fill:rgba(45,159,225,.15)!important;stroke:#81dcff!important;
  filter:drop-shadow(0 0 6px #50bbff)!important
}
#underworld .bt22335-approved-city.selected .bt22335-city-outline{
  opacity:1!important;fill:rgba(45,159,225,.11)!important;stroke:#71d1ff!important
}
/* No permanent bright blue home perimeter on untouched cities. */
#underworld .bt22335-approved-city.home:not(.selected) .bt22335-city-outline {opacity:0!important}

/* 21.336: live server-backed city labels cover artwork's illustrative counts. */
#underworld .bt22336-label-layer{pointer-events:none!important}
#underworld .bt22336-live-label rect{
 fill:#070809!important;stroke:#c39a50!important;stroke-width:1.6!important;
 vector-effect:non-scaling-stroke!important;opacity:.98!important;
}
#underworld .bt22336-live-label.selected rect{stroke:#8bd6fa!important;stroke-width:2!important}
#underworld .bt22336-live-label text{
 text-anchor:middle!important;pointer-events:none!important;
 paint-order:stroke!important;stroke:#08090b!important;stroke-width:1px!important;
}
#underworld .bt22336-live-label .bt22336-live-city{font: bold 16px Georgia,serif!important;fill:#f0e4ce!important}
#underworld .bt22336-live-label .bt22336-live-count{font: bold 14px Arial,sans-serif!important;fill:#e8b952!important}
#underworld .bt22336-expanded{cursor:pointer!important;pointer-events:all!important}
#underworld .bt22336-expanded:hover .bt22330-target-back{stroke:#92e6ff!important;stroke-width:3!important}

/* Build 21.337 — exact author-approved hit paths, clickable clear backdrop. */
#underworld .bt22337-empty-map-hit{fill:rgba(0,0,0,.001)!important;pointer-events:all!important;cursor:default!important}
#underworld .bt22335-approved-city .bt22335-city-hit{pointer-events:all!important;fill:rgba(0,0,0,.001)!important}
#underworld .bt22335-approved-city:hover .bt22335-city-outline,
#underworld .bt22335-approved-city:focus-visible .bt22335-city-outline{
 opacity:1!important;stroke:#9be5ff!important;stroke-width:2.8!important;
 fill:rgba(34,147,223,.17)!important;filter:drop-shadow(0 0 4px #4bb9ff)!important;
}
#underworld .bt22337-expanded{pointer-events:all!important;cursor:pointer!important}
#underworld .bt22337-expanded:hover .bt22330-target-back{stroke:#a6eaff!important;stroke-width:3!important}

/* Build 21.338: one accurate plaque and foreground city selection at 100%. */
#underworld .bt22338-single-plaque rect{fill:#060708!important;stroke:#c39a50!important;stroke-width:1.65!important;opacity:1!important;vector-effect:non-scaling-stroke!important}
#underworld .bt22338-single-plaque.selected rect{stroke:#8bd6fa!important;stroke-width:2.1!important}
#underworld .bt22338-active-overlay{pointer-events:none!important;isolation:isolate!important}
#underworld .bt22338-active-boundary{fill:rgba(36,164,234,.19)!important;stroke:#9de9ff!important;stroke-width:3.2!important;vector-effect:non-scaling-stroke!important;filter:drop-shadow(0 0 5px rgba(76,193,250,.85))!important;pointer-events:none!important}
#underworld .bt22338-cluster-back{cursor:pointer!important;pointer-events:all!important}
#underworld .bt22338-back-halo{fill:rgba(7,14,17,.35)!important;stroke:rgba(143,224,255,.28)!important;stroke-width:1.5!important}
#underworld .bt22338-back-disc{fill:#111b21!important;stroke:#c2e9ff!important;stroke-width:2.3!important}
#underworld .bt22338-back-arrow{fill:none!important;stroke:#fff1d0!important;stroke-width:3.5!important;stroke-linecap:round!important;stroke-linejoin:round!important;pointer-events:none!important}
#underworld .bt22338-cluster-back:hover .bt22338-back-disc,#underworld .bt22338-cluster-back:focus-visible .bt22338-back-disc{fill:#224b61!important;stroke:#fff!important;stroke-width:3!important}

/* Foreground selection is the single source for the active-city boundary. */
#underworld .bt22335-approved-city.selected .bt22335-city-outline,
#underworld .bt22335-approved-city.selected:hover .bt22335-city-outline{opacity:0!important;fill:transparent!important;stroke:transparent!important;filter:none!important}

/* Build 21.339 — home San Aurelio's hover must not be hidden by home-specific
   !important opacity rules. The foreground overlay reuses the same approved path. */
#underworld .bt22335-approved-city.home:not(.selected):hover .bt22335-city-outline,
#underworld .bt22335-approved-city.home:not(.selected):focus-visible .bt22335-city-outline{
  opacity:1!important;fill:rgba(37,171,234,.19)!important;stroke:#a2edff!important;
  stroke-width:3!important;filter:drop-shadow(0 0 6px rgba(61,190,247,.9))!important;
}
#underworld .bt22339-hover-overlay{pointer-events:none!important}
#underworld .bt22339-hover-boundary{
  fill:rgba(30,175,242,.22)!important;stroke:#b0efff!important;stroke-width:3.4!important;
  vector-effect:non-scaling-stroke!important;filter:drop-shadow(0 0 5px rgba(76,193,250,.95))!important;
  pointer-events:none!important;
}
