.map-tools {
  position: absolute;
  right: max(clamp(1rem, 3vw, 2.8rem), env(safe-area-inset-right));
  bottom: max(clamp(1rem, 3vh, 2rem), env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  gap: .5rem;
  color: #2b3a2e;
}
.map-tools button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  color: inherit;
  background: var(--dial-arc);
  box-shadow: 0 2px 4px #152d291c;
  touch-action: manipulation;
}
.map-tools button:focus-visible { outline: 2px solid var(--dial-arc); outline-offset: 3px; }
:is(.map-tools button, #map-sound) svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#map-sound[aria-pressed="true"] .speaker-muted,
#map-sound[aria-pressed="false"] .speaker-waves { display: none; }
#accessibility-note a { color: inherit; text-underline-offset: .18em; }
#accessibility-note {
  position: absolute;
  right: 0;
  bottom: calc(100% + .65rem);
  width: min(15rem, calc(100vw - 2.5rem));
  margin: 0;
  padding: .8rem 1rem;
  border-radius: .85rem;
  color: inherit;
  background: var(--dial-arc);
  box-shadow: 0 4px 12px #152d2924;
  font: .84rem/1.5 Domine, Georgia, serif;
}
@media (prefers-reduced-motion: no-preference) {
  .map-tools:not([hidden]) { animation: map-tools-in .32s ease-out both; }
  .map-tools button { transition: transform .15s ease; }
  @keyframes map-tools-in { from { opacity: 0; translate: 0 5px; } }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .map-tools button:hover { transform: translateY(-2px); }
}
@media (max-width: 45rem) {
  .playing-kraken .map-tools { bottom: calc(max(1.1rem, env(safe-area-inset-bottom)) + 6.9rem); }
}
@media (max-width: 26rem) {
  .atlas:is([data-phase="boxed"], [data-phase="opening"]) .map-tools {
    bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 3.8rem);
  }
}
