/* This stylesheet is loaded by Blood Moon only. */
#bm21-map{position:fixed;left:calc(12px + env(safe-area-inset-left));bottom:calc(64px + env(safe-area-inset-bottom));width:166px;z-index:5;box-sizing:border-box;border:1px solid #806c79;border-radius:12px;background:#160f1dee;color:#f6ecf4;box-shadow:0 4px 18px #0006;font:700 12px/1.3 'Baloo 2','Malgun Gothic',system-ui,sans-serif;pointer-events:none;user-select:none}
#bm21-map[hidden],#bm21-map [hidden]{display:none!important}
#bm21-map .bm21-map-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;box-sizing:border-box;width:100%;min-width:44px;min-height:44px;padding:9px 11px;border:0;border-radius:11px;background:#231a2bdd;color:#ffdf9a;font:800 14px/1.25 'Baloo 2','Malgun Gothic',system-ui,sans-serif;cursor:pointer;pointer-events:auto;touch-action:manipulation;text-align:left}
#bm21-map .bm21-map-toggle:hover{background:#372636}
#bm21-map .bm21-map-toggle:focus-visible{outline:3px solid #ffdc94;outline-offset:3px}
#bm21-map .bm21-map-chevron{font-size:22px;line-height:1;font-weight:700}
#bm21-map .bm21-map-content{padding:0 10px 10px;pointer-events:none}
#bm21-map .bm21-map-canvas{display:block;width:144px;height:144px;border-radius:5px;pointer-events:none}
#bm21-map .bm21-map-legend{display:grid;grid-template-columns:1fr 1fr;gap:5px 4px;margin-top:8px;font-size:10px;color:#e4d9e3;pointer-events:none}
#bm21-map .bm21-map-key{display:flex;align-items:center;gap:4px;white-space:nowrap}
#bm21-map .bm21-map-dot{display:inline-block;flex:0 0 6px;width:6px;height:6px;border-radius:50%;box-sizing:border-box}
#bm21-map .bm21-map-dot-self{background:#fff4cb}
#bm21-map .bm21-map-dot-arena{border:1px solid #e47688}
#bm21-map .bm21-map-dot-frontier{border:1px dashed #75c4ac}
#bm21-map .bm21-map-dot-boss{border-radius:1px;background:#ff758d;transform:rotate(45deg)}
#bm21-map.bm21-map-folded{width:132px;background:#160f1dcf}
/* A compact common pause control leaves room for both sound states below the map. */
body #hig-pause-button{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;font-size:0;overflow:hidden}
body #hig-pause-button::before{content:'Ⅱ';font:800 20px/1 system-ui,sans-serif}
body .hig-game-sound-control,body .hig-game-sound-control[aria-pressed="false"],body .hig-game-sound-control[aria-pressed="true"]{left:calc(64px + env(safe-area-inset-left));bottom:calc(10px + env(safe-area-inset-bottom));top:auto;right:auto;transform:none;max-width:calc(100vw - 76px - env(safe-area-inset-left) - env(safe-area-inset-right));width:44px;height:44px;min-height:44px;box-sizing:border-box;font-size:0;line-height:1;padding:0;overflow:hidden}
body .hig-game-sound-control::before{content:"🔊";font:700 19px/1 system-ui,sans-serif}
body .hig-game-sound-control[aria-pressed="true"]::before{content:"🔇"}
@media(max-width:760px){#bm21-map{left:calc(12px + env(safe-area-inset-left));bottom:calc(64px + env(safe-area-inset-bottom))}#bm21-map .bm21-map-toggle{font-size:13px}}
/* Opening the map is an explicit compact map view; folding returns these panels. */
@media(max-width:760px) and (min-height:541px){#bm21-map:not(.bm21-map-folded){bottom:calc(276px + env(safe-area-inset-bottom))}}
@media(max-height:540px), (max-width:760px) and (max-height:800px){
 #bm21-map:not(.bm21-map-folded){top:calc(58px + env(safe-area-inset-top));bottom:auto;width:118px}
 #bm21-map:not(.bm21-map-folded) .bm21-map-canvas{width:96px;height:96px}
 #bm21-map:not(.bm21-map-folded) .bm21-map-toggle{font-size:11px;padding:8px 9px;gap:4px}
 #bm21-map:not(.bm21-map-folded) .bm21-map-legend{display:none}
 body.bm21-map-expanded #hud,body.bm21-map-expanded #growth,body.bm21-map-expanded #learnPrompt,body.bm21-map-expanded #boss{visibility:hidden}
}
@media(prefers-reduced-motion:reduce){#bm21-map *{transition:none;animation:none}}
