/* Atlas 17.1: research map height/readability; original Elario colors unchanged. */
body[data-start-world="6"] .map-wrap{background:#2a1a3b!important}
body[data-start-world="6"] .map-wrap :is(.maptitle,.mapcontrols,.map-status){background:#281833f5!important;border-color:#cf9fbb!important;box-shadow:0 7px 21px #07031395!important}
body[data-start-world="6"] .map-wrap .maptitle strong{color:#ffe2ac!important;font-size:clamp(13px,1.5vw,18px)!important}
body[data-start-world="6"] .map-wrap .maptitle small{color:#f3e2ed!important}
body[data-start-world="6"] .map-wrap #atlasCanvas{filter:brightness(1.14) contrast(1.04)}
body[data-start-world="6"] .map-wrap.j171-bright-map #atlasCanvas{filter:brightness(1.32) contrast(1.09) saturate(1.05)}
body[data-start-world="6"] .j171-tools{position:absolute;z-index:65;bottom:86px;left:10px;display:flex;flex-wrap:wrap;gap:7px;padding:6px;border:1px solid #d7a6c5;border-radius:12px;background:#241531ed;box-shadow:0 9px 25px #07020eb5;max-width:min(70%,340px)}
body[data-start-world="6"] .j171-tools button{min-height:44px;padding:9px 12px;border-radius:9px;border:1px solid #eec192;background:#40254e;color:#ffe5b8;font:800 12px/1.3 system-ui;cursor:pointer}
body[data-start-world="6"] .j171-tools button[aria-pressed="true"]{color:#26162e;background:linear-gradient(115deg,#ffe0aa,#f1ad70)}
body[data-start-world="6"] .j171-tools button:focus-visible{outline:3px solid #ffe5ae;outline-offset:3px}
body[data-start-world="6"].j171-map-expanded{overflow:hidden!important}
body[data-start-world="6"] .map-wrap.j171-full-map{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;min-height:0!important;z-index:1700!important;border:2px solid #e2b382}
body[data-start-world="6"] .map-wrap.j171-full-map #atlasCanvas{height:100%!important}
@media(max-width:700px){body[data-start-world="6"] .map-wrap{height:77dvh!important;min-height:530px!important}body[data-start-world="6"] .map-wrap.j171-full-map{height:100dvh!important;min-height:0!important}body[data-start-world="6"] .j171-tools{left:8px;bottom:85px;max-width:calc(100% - 100px)}body[data-start-world="6"] .j171-tools button{font-size:11px;padding:7px}body[data-start-world="6"] .map-wrap .maptitle small{color:#fff0ef!important;font-size:10px!important}}
@media(max-width:390px){body[data-start-world="6"] .j171-tools{max-width:61%}}
@media(prefers-reduced-motion:reduce){body[data-start-world="6"] .j171-tools *{transition:none!important}}

/* On compact phones the translucent research toolbar can visually border the
   map's Pins/Source actions. Its EMPTY padding must never eat taps intended
   for those controls; only the actual Expand/Brighten buttons capture input. */
@media(max-width:700px){
 body[data-start-world="6"] .j171-tools{pointer-events:none}
 body[data-start-world="6"] .j171-tools button{pointer-events:auto}
}
