#chromeCanvas.city-chrome-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
#viewport:has(#cityView[hidden]) #chromeCanvas { display: none; }
.city-chrome-controls { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.city-chrome-controls .city-chrome-hit {
  position: absolute;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  box-shadow: none;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  filter: none !important;
  transform: none !important;
  transition: none;
  -webkit-tap-highlight-color: transparent;
}
.city-chrome-controls .city-chrome-hit:hover,
.city-chrome-controls .city-chrome-hit:active {
  background: transparent;
  box-shadow: none;
  color: transparent;
}
.city-chrome-controls .city-chrome-hit:focus-visible { outline: 1px solid #f2db78; outline-offset: -2px; }
.city-chrome-controls .city-chrome-hit[hidden] { display: none !important; }

.city-nav-button .task-badge { position:absolute; top:-5px; right:-4px; min-width:20px; height:20px; padding:0 4px; box-sizing:border-box; border:1px solid #ffe0ce; border-radius:12px; background:#e52f35; color:#fff; font:bold 14px/18px sans-serif; box-shadow:0 1px 5px #310000a0; pointer-events:none; }
.city-nav-button .task-badge[hidden] { display:none; }

/* Battle visibility is shared by local, story and network entries. */
#viewport:has(#battleView:not([hidden])) #chromeCanvas,
#viewport:has(#battleView:not([hidden])) .city-chrome-controls,
#viewport:has(#battleView:not([hidden])) #island > .city-chat { display:none!important; }
