#terrain-camera {
  position: absolute;
  inset: 0;
  transform-origin: center;
}
.simulator #map.relief-view {
  background: radial-gradient(ellipse at 50% 65%, #273949, #0b141e 84%);
}
.relief-view #terrain-camera {
  /* Match the pitch and scale used by the pointer projection. */
  transform: perspective(1000px) rotateX(36deg) scale(1.32);
}
.simulator #map.relief-view #tiles {
  filter: saturate(.42) contrast(1.17) brightness(.76);
}
.simulator #map.relief-view #wash { display: none; }
#terrain-toggle[aria-pressed="true"] { background: #19374d; color: #eff8ff; }
#map:not(.relief-view) :is(.terrain-extrusions,.terrain-hillshade) { display: none; }
.relief-view #ov > path[stroke="#14181c"] { stroke: #d4e8fb; }
.relief-view #ov > text[fill="#14181c"] {
  fill: #e0f1fc;
  paint-order: stroke;
  stroke: #122637;
  stroke-width: 2px;
}
.relief-view #rov > rect:first-of-type { fill: #142536; stroke: #edf8ff; }
.relief-view .scale { display: none; }

.terrain-hillshade,.terrain-extrusions { pointer-events: none; }
.relief-view .L-elev path { stroke: #b1cde0; stroke-opacity: .31; }
.relief-view .L-shake path { stroke: #ff9252; stroke-opacity: .76; fill: #ff721a; }
.relief-view .L-shake path:nth-child(3) { fill-opacity: .12; }
.relief-view .L-shake path:nth-child(4) { fill-opacity: .19; }
.relief-view .terrain-wall { stroke: #dd8a65; stroke-width: .7; opacity: .82; }
.relief-view .terrain-roof { stroke: #ffc098; stroke-width: 1.7; opacity: .9; }
.relief-view polygon.L-dmg:not(.terrain-wall):not(.terrain-roof) { stroke: #fc8f58; fill-opacity: .35; }
.relief-view #routeG > path { stroke: #82dcff; filter: drop-shadow(0 0 2px #08233e); }
.simulator #map .mtools {
  top: auto; bottom: 34px; right: auto; left: 12px;
  display: flex; flex-wrap: nowrap; gap: 4px;
  max-width: calc(100% - 23px); overflow-x: auto;
  padding: 4px; border: 1px solid #64718b69; border-radius: 11px;
  background: #0d121be8; backdrop-filter: blur(11px);
}
.simulator #map .mtools button { flex: none; }
.simulator #map #phase-status { bottom: 84px; }
.simulator #map #card.action { bottom: 105px; }
.simulator #map .hintmap { top: 97px; right: 12px; bottom: auto; }
@media (max-width: 850px) {
  .simulator #map #phase-status { bottom: 82px; }
}
