#minimap{top:calc(18px * var(--ui-fit));right:calc(18px * var(--ui-fit));background:none;width:302px;height:338px}
#map-open{left:14px;top:12px;width:274px;height:274px;border-radius:50%;background:linear-gradient(135deg,#efcf87,#60441f 30%,#d7b56d 65%,#49351d);box-shadow:0 0 0 2px #171e13,inset 0 0 0 1px #ffe4a0,0 3px 12px #0009;overflow:visible}
#map-open:after{inset:6px;background:none;border:2px solid #b89a5f;border-radius:50%;box-shadow:inset 0 0 0 4px #111a12;pointer-events:none}
#map-open .map-terrain{left:10px;top:10px;width:254px;height:254px;z-index:0;background:#182219;filter:none;overflow:hidden;border-radius:50%}
#minimap-canvas{position:static;inset:auto;width:100%;height:100%;display:block}
#map-open .north{display:grid;place-items:center;position:absolute;left:119px;top:-10px;width:34px;height:31px;background:radial-gradient(#33402b,#11190f);border:1px solid #c2a163;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);font:17px Georgia;color:#f3dfa7;text-shadow:0 1px 2px #000;z-index:3}
#map-open #map-marker{left:50%;top:50%;width:17px;height:22px;border:0;clip-path:polygon(50% 0,100% 100%,50% 75%,0 100%);background:#fff0b6;box-shadow:none;filter:drop-shadow(0 0 3px #090b06);transform:translate(-50%,-50%);z-index:2}
#map-expand{position:absolute;left:250px;top:235px;width:38px;height:38px;display:grid;place-items:center;padding:8px;border:1px solid #c6a361;border-radius:50%;background:radial-gradient(circle at 35% 25%,#344331,#111a13);box-shadow:0 0 0 3px #1d2619,0 3px 5px #0009;color:#f1d7a1;z-index:4}
#map-expand svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7}
#map-expand:hover{background:#405436;box-shadow:0 0 0 3px #1d2619,0 0 10px #cfaa6855}
#minimap .map-label{left:20px;top:292px;width:262px;height:45px;padding:5px 10px;border:1px solid #826b3d;border-radius:4px;background:linear-gradient(#263023,#10190f);box-shadow:inset 0 1px 0 #f1d39b22,0 2px 5px #0008;font:20px/23px Georgia;box-sizing:border-box}
#minimap .map-label small{display:block;margin-top:0;font:12px/15px Georgia;color:#b7c797;letter-spacing:.02em}
/* Generated sculpted frame above the live map and below its controls. */
#minimap:after{content:'';position:absolute;inset:0;background:url('minimap-frame-v3.png') center/100% 100% no-repeat;z-index:3;pointer-events:none}
#minimap #map-open{left:0;top:0;width:302px;height:284px;background:none;border:0;box-shadow:none}
#minimap #map-open:after{display:none}
#minimap #map-open .map-terrain{left:43px;top:48px;width:216px;height:216px}
#minimap #map-open .north{left:137px;top:22px;width:28px;height:27px;background:none;border:0;clip-path:none;z-index:5;font:16px Georgia;color:#fff0c0;text-shadow:0 1px 3px #000,0 0 3px #000}
#minimap #map-expand{left:243px;top:226px;width:36px;height:36px;padding:8px;background:none;border:0;box-shadow:none;z-index:5}
#minimap #map-expand:hover{color:#fff2ca;filter:drop-shadow(0 0 4px #d5b86b)}
#minimap .map-label{left:38px;top:283px;width:226px;height:35px;padding:1px 3px;background:none;border:0;box-shadow:none;z-index:5;font:18px/20px Georgia}
#minimap .map-label small{font:11px/12px Georgia}
#minimap>.north{display:grid;place-items:center;position:absolute;left:139px;top:49px;width:24px;height:24px;font:15px Georgia;color:#fff0bd;text-shadow:0 1px 3px #000,0 0 4px #000;z-index:5;pointer-events:none}
#minimap:after{background-image:url('minimap-frame-v4.png')}
#minimap #map-open .map-terrain{left:40px;top:38px;width:233px;height:233px}
#minimap>.north{left:144px;top:39px}
#minimap #map-expand{left:255px;top:222px;width:38px;height:38px}
#minimap .map-label{left:45px;top:284px;width:223px}
#minimap .map-zoom{position:absolute;z-index:5;display:grid;place-items:center;width:32px;height:32px;margin:0;padding:0;border:0;border-radius:50%;background:none;box-shadow:none;color:#f9e3ad;font:25px/1 Georgia;transition:color .15s,filter .15s}
#map-zoom-in{left:8px;top:103px}
#map-zoom-out{left:5px;top:152px}
#minimap .map-zoom:hover:not(:disabled){color:#fff8d8;filter:drop-shadow(0 0 4px #e4be70)}
#minimap .map-zoom:disabled{color:#897c59;cursor:default}

#minimap .map-label{display:grid;place-items:center;padding:0;line-height:1}
/* Bronze leafwork matches the character HUD; both zoom sockets share one axis. */
#minimap:after{background-image:url('minimap-frame-v6.png')}
#minimap #map-open .map-terrain{left:58px;top:52px;width:186px;height:186px}
#map-zoom-in{left:7px;top:118px}
#map-zoom-out{left:7px;top:166px}
#minimap .map-zoom{font-family:Arial,sans-serif;font-size:23px;line-height:32px;color:#ead6ad}
#minimap #map-expand{left:248px;top:217px}
#minimap .map-label{left:43px;top:275px;width:217px;height:28px;display:flex;align-items:center;justify-content:center;text-align:center;line-height:28px}
#minimap .map-label small{position:absolute;top:100%;left:50%;transform:translateX(-50%);width:260px;margin:0;text-align:center;line-height:12px}
#minimap .map-zoom{transition:transform .18s ease,color .18s ease,filter .18s ease;transform-origin:center;isolation:isolate}
#minimap .map-zoom:before{content:'';position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle,#ead3a633,transparent 70%);border:1px solid #dbc28b;opacity:0;transform:scale(.78);transition:opacity .18s ease,transform .25s ease;pointer-events:none;z-index:-1}
#minimap .map-zoom:hover:not(:disabled),#minimap .map-zoom:focus-visible{transform:scale(1.1);color:#fff4cf;filter:drop-shadow(0 0 5px #d9b67a)}
#minimap .map-zoom:hover:not(:disabled):before,#minimap .map-zoom:focus-visible:before{opacity:.7;transform:scale(1.04)}
#minimap .map-zoom:active:not(:disabled){transform:scale(.9)}
#minimap .map-zoom:focus-visible{outline:1px solid #efdbab;outline-offset:3px}
@media(prefers-reduced-motion:reduce){#minimap .map-zoom,#minimap .map-zoom:before{transition:none}}

/* Align with the transparent aperture of frame v6; overlap its inner rim. */
#minimap #map-open .map-terrain{left:56px;top:44px;width:190px;height:190px}
