
#map-tab{
 position:fixed;right:0;top:calc(48% + 110px);z-index:90;
 writing-mode:vertical-rl;padding:17px 11px;
 border:1px solid #e8920c80;border-right:0;border-radius:5px 0 0 5px;
 background:#242624;color:#eeeae1;
 font:11px "Michroma",sans-serif;letter-spacing:.14em;
 cursor:pointer;box-shadow:0 3px 16px #0004;
}
#map-tab[hidden],.map-gallery-link button[hidden]{display:none}
.map-gallery-link{text-align:center;margin:24px 0 0}
.map-gallery-link button{
 background:transparent;border:1px solid #eeeae150;
 color:#eeeae1;padding:12px 18px;min-height:44px;
 font:11px/1.6 "Michroma",sans-serif;cursor:pointer;
}
#subnautiq-map,#subnautiq-map *{box-sizing:border-box}
#subnautiq-map{
 width:min(1200px,98vw);height:96dvh;
 max-width:98vw;max-height:96dvh;margin:auto;padding:0;
 border:1px solid #eeeae130;background:#242624;color:#eeeae1;
 overflow:hidden;
}
#subnautiq-map[open]{display:flex;flex-direction:column}
#subnautiq-map::backdrop{background:#000c}
#subnautiq-map .map-dialog-head{
 display:flex;align-items:center;justify-content:space-between;
 gap:12px;padding:6px 14px;flex-shrink:0;
}
#map-dialog-title{margin:0;font:10px/1.6 "Michroma",sans-serif}
#map-close{
 min-height:44px;padding:8px;border:0;background:transparent;
 color:inherit;font:14px "Source Sans 3",sans-serif;cursor:pointer;
}
#map-frame{display:block;flex:1;width:100%;min-height:0;border:0}
#map-tab:focus-visible,.map-gallery-link button:focus-visible,
#map-close:focus-visible{outline:2px solid #e8920c;outline-offset:3px}
@media(max-width:700px){
 #map-tab{padding:14px 9px;font-size:10px}
 #subnautiq-map{
  width:100%;max-width:100vw;height:100dvh;max-height:100dvh;
  margin:0;border:0;
  padding:env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
 }
}
@media(prefers-reduced-motion:no-preference){
 #subnautiq-map[open]{animation:map-dialog-open 200ms ease-out both}
}
@keyframes map-dialog-open{from{opacity:0}to{opacity:1}}
