/* Geographic world, independent from the business panels. */
#territory-map {position:absolute;inset:0;background:#dad9b9;overflow:hidden;isolation:isolate;}
#territory-map::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;background:radial-gradient(ellipse at 48% 44%,transparent 40%,rgba(73,76,39,.08) 78%,rgba(58,61,34,.17));box-shadow:inset 0 0 160px rgba(51,55,30,.09);}
#territory-map .maplibregl-canvas{outline:none;filter:saturate(.93) contrast(.98);}
#territory-map .maplibregl-canvas-container{cursor:grab;}
#territory-map.is-dragging .maplibregl-canvas-container{cursor:grabbing;}
#territory-map .maplibregl-ctrl-bottom-right{z-index:4;bottom:12px;right:14px;}
#territory-map .maplibregl-ctrl-bottom-left{z-index:4;bottom:13px;left:14px;}
#territory-map .maplibregl-ctrl-attrib{color:#4a523d;background:rgba(248,244,226,.86);font:10px/1.4 Inter,system-ui,sans-serif;border:1px solid rgba(94,94,61,.16);box-shadow:0 2px 9px #36452a0a;}
#territory-map .maplibregl-ctrl-attrib a{color:#43553c;}
#territory-map .maplibregl-ctrl-scale{font:10px/1.5 Inter,system-ui,sans-serif;border-color:#6b7257;border-width:0 1px 1px;background:rgba(248,244,226,.65);color:#525b43;border-radius:0 0 2px 2px;}
.world-feedback{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:9;border-radius:13px;border:1px solid #b9b395;background:#f7efd8ed;box-shadow:0 12px 30px #35472723;display:flex;align-items:center;gap:12px;padding:17px 23px;color:#566247;font:500 13px/1.5 Inter,system-ui,sans-serif;max-width:calc(100% - 32px);text-align:center;}
.world-feedback[hidden]{display:none;}
.world-feedback.is-slow,.world-feedback.is-unavailable{top:auto;bottom:120px;transform:translateX(-50%);}
.world-loading-leaf{font-size:23px;color:#8d9a65;animation:world-breathe 2.6s ease-in-out infinite;}
.world-fauna{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none;}
.world-marker{background:none;border:0;border-radius:0;color:#465039;cursor:pointer;padding:0;width:126px;height:112px;overflow:visible;z-index:3;outline:none;-webkit-tap-highlight-color:transparent;box-shadow:none;}
.world-marker.is-shop{z-index:4;}
.world-marker.is-hovered,.world-marker.is-selected{z-index:8!important;}
.world-marker-body{display:flex;position:absolute;inset:0;align-items:center;flex-direction:column;justify-content:flex-end;transform-origin:50% 94%;transition:transform 220ms cubic-bezier(.2,.8,.2,1),filter 220ms ease;filter:drop-shadow(0 4px 4px #2f3e2c27);}
.world-building{width:85px;height:80px;display:block;flex-shrink:0;margin-bottom:-10px;transition:filter 200ms ease,transform 200ms ease;}
.world-marker.is-shop .world-building{width:96px;height:90px;}
.world-marker-anchor{position:absolute;width:11px;height:7px;border:2px solid #f7e8b8;border-radius:50%;background:#70865b;bottom:-4px;left:calc(50% - 5px);box-shadow:0 0 0 5px #41563718;transition:box-shadow 250ms ease,background 250ms ease;}
.world-marker-label{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;padding:6px 10px;border-radius:5px;background:linear-gradient(#f7efd9,#e4d9b7);border:1px solid #afa983;box-shadow:inset 0 1px 0 #fff7e7,0 2px 0 #747e5330;color:#425238;font:600 11px/1.1 Inter,system-ui,sans-serif;white-space:nowrap;max-width:190px;letter-spacing:-.02em;}
.world-marker-label-icon{font-size:13px;line-height:1;color:#78845b;}
.world-marker.is-shop .world-marker-label{background:linear-gradient(#fbf3dc,#eadbb5);border-color:#b69760;color:#4a5136;font-weight:700;font-size:12px;padding:7px 11px;}
.world-marker.is-approximate .world-marker-anchor{border-style:dashed;background:#a38b60;}
.world-marker.is-condensed:not(.is-hovered):not(.is-selected) .world-marker-label{max-width:22px;overflow:hidden;width:22px;min-width:22px;display:block;padding:5px 6px;color:transparent;border-radius:50%;white-space:nowrap;box-sizing:border-box;}
.world-marker.is-condensed:not(.is-hovered):not(.is-selected) .world-marker-label-icon{color:#6b7950;}
.world-marker.is-condensed:not(.is-hovered):not(.is-selected) .world-building{width:58px;height:58px;margin-bottom:-13px;}
.world-marker:hover .world-marker-body,.world-marker:focus-visible .world-marker-body{transform:translateY(-4px) scale(1.07);filter:drop-shadow(0 8px 5px #2f3e2c30);}
.world-marker:focus-visible .world-marker-label{outline:3px solid #557c68;outline-offset:3px;}
.world-marker:hover .world-marker-anchor,.world-marker.is-selected .world-marker-anchor{box-shadow:0 0 0 7px #fff3b357,0 0 20px #fff1ae8c;background:#c7aa5b;}
.world-marker.is-selected .world-marker-label{border-color:#ac8b3b;background:linear-gradient(#fff3c7,#e9d49c);box-shadow:0 0 0 2px #d1b36870,0 4px 14px #4d5b3233;}
.world-marker-tooltip{position:absolute;display:flex;flex-direction:column;gap:5px;bottom:calc(100% + 8px);left:50%;width:238px;transform:translate(-50%,9px);padding:15px 17px;background:linear-gradient(135deg,#fbf4e1,#eee3c6);border:1px solid #b0aa85;border-radius:9px;box-shadow:0 12px 32px #253b2b2e,inset 0 1px 0 #fff9ec;opacity:0;visibility:hidden;pointer-events:none;text-align:left;transition:opacity 160ms ease 65ms,transform 200ms ease 65ms,visibility 180ms;}
.world-marker-tooltip::after{content:"";position:absolute;width:10px;height:10px;bottom:-6px;left:calc(50% - 5px);transform:rotate(45deg);background:#eee3c6;border-bottom:1px solid #b0aa85;border-right:1px solid #b0aa85;}
.world-marker.is-hovered .world-marker-tooltip,.world-marker:focus-visible .world-marker-tooltip{opacity:1;visibility:visible;transform:translate(-50%,0);}
.world-marker-tooltip .world-marker-type{font:600 9px/1.2 Inter,system-ui,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:#87815d;}
.world-marker-tooltip strong{font:600 17px/1.2 Fraunces,Georgia,serif;letter-spacing:-.025em;color:#3c4c34;}
.world-marker-tooltip>span:not(.world-marker-type){font:11px/1.4 Inter,system-ui,sans-serif;color:#64684f;}
.world-marker-tooltip small{font:10px/1.4 Inter,system-ui,sans-serif;color:#898164;}
.world-marker-tooltip em{display:flex;justify-content:space-between;margin-top:4px;border-top:1px solid #bdb59160;padding-top:9px;font:600 11px/1.2 Inter,system-ui,sans-serif;font-style:normal;color:#6d7b4b;}
.world-marker.is-outside{visibility:hidden;}
.world-unavailable{background:radial-gradient(ellipse at 50% 40%,#d9ddbd,#bfc8a2);}
.world-unavailable .world-feedback{top:115px;bottom:auto;transform:translateX(-50%);}
.world-fallback-list{position:absolute;z-index:5;top:185px;bottom:115px;left:50%;transform:translateX(-50%);width:min(550px,calc(100% - 32px));overflow:auto;padding:22px;border:1px solid #b2b28d;border-radius:12px;background:#f7efdbe6;box-shadow:0 12px 30px #4b59351a;color:#4a5c3d;font:13px/1.4 Inter,system-ui,sans-serif;}
.world-fallback-list>strong{font:600 25px/1.3 Fraunces,Georgia,serif;}
.world-fallback-list>p{color:#6a7257;font-size:12px;}
.world-fallback-list>button{display:grid;grid-template-columns:26px 1fr;gap:2px 8px;width:100%;border:1px solid #c3bea1;background:#f8f0db;margin-top:8px;padding:11px 12px;border-radius:7px;text-align:left;color:#4f5d3e;font:600 12px/1.3 Inter,system-ui,sans-serif;cursor:pointer;}
.world-fallback-list>button>span{grid-row:span 2;align-self:center;color:#8d9668;font-size:20px;}
.world-fallback-list>button>small{font-weight:400;color:#7e8068;}
@keyframes world-breathe{50%{transform:rotate(16deg) scale(.86);opacity:.55;}}
@media(max-width:760px){
 #territory-map .maplibregl-ctrl-bottom-right{bottom:87px;right:8px;}
 #territory-map .maplibregl-ctrl-bottom-left{bottom:88px;left:9px;}
 #territory-map .maplibregl-ctrl-scale{font-size:9px;max-width:80px!important;}
 .world-marker{width:105px;height:98px;}
 .world-building{width:72px;height:68px;}
 .world-marker.is-shop .world-building{width:84px;height:80px;}
 .world-marker-label{font-size:10px;max-width:145px;padding:5px 8px;}
 .world-marker.is-shop .world-marker-label{font-size:11px;padding:6px 9px;}
 .world-marker-tooltip{width:205px;padding:12px 13px;}
 .world-marker-tooltip strong{font-size:15px;}
 .world-feedback.is-slow,.world-feedback.is-unavailable{bottom:165px;}
}
@media(prefers-reduced-motion:reduce){
 .world-loading-leaf{animation:none;}
 .world-marker-body,.world-building,.world-marker-anchor,.world-marker-tooltip{transition:none;}
}
.world-smoke{animation:world-smoke 5.5s ease-out infinite;transform-origin:64px 16px;}
@keyframes world-smoke{0%{opacity:0;transform:translate(0,4px) scale(.75)}30%{opacity:.62}100%{opacity:0;transform:translate(6px,-10px) scale(1.3)}}
#territory-map.is-paused .world-smoke{animation-play-state:paused;opacity:0;}
@media(prefers-reduced-motion:reduce){.world-smoke{animation:none;opacity:0;}}
/* When real WebGL dioramas render, keep labels/click targets and remove SVG duplicates. */
#territory-map.has-diorama-3d .world-building{opacity:0;visibility:hidden;}
#territory-map.has-diorama-3d .world-marker-anchor{width:8px;height:5px;opacity:.55;}
#territory-map.has-diorama-3d .world-marker-body{filter:drop-shadow(0 3px 3px #36432920);}
#territory-map.has-diorama-3d .world-marker-label{transform:translateY(var(--diorama-label-offset,65px));}
#territory-map.has-diorama-3d .world-marker:hover .world-marker-body,#territory-map.has-diorama-3d .world-marker:focus-visible .world-marker-body{transform:none;}
#territory-map.has-diorama-3d .world-marker.is-selected .world-marker-tooltip{bottom:calc(100% + 65px);}
#territory-map[data-ambience="evening"]::after{background:radial-gradient(ellipse at 45% 38%,rgba(248,202,143,.04),rgba(87,76,67,.13) 75%,rgba(56,63,56,.2));}
#territory-map[data-ambience="evening"] .world-marker-label{background:linear-gradient(#f6e4be,#d8c59d);}

/* Weekly signals float over the farms, separate from their geographic labels. */
.world-campaign-badge[hidden],.world-marker-spend[hidden]{display:none!important}
.world-campaign-badge{position:absolute;left:50%;bottom:81px;display:flex;align-items:center;justify-content:center;gap:5px;min-width:42px;min-height:24px;padding:5px 8px;border:1px solid #d2bc85;border-radius:5px;background:linear-gradient(#435f45,#2b4935);color:#f4edce;font:600 10px/1 Inter,system-ui,sans-serif;letter-spacing:.1px;white-space:nowrap;box-shadow:0 3px 10px #20382c35,inset 0 1px #bbcf9052;transform:translateX(-50%);font-variant-numeric:tabular-nums;pointer-events:none;transition:background .2s,border-color .2s,opacity .2s}
.world-campaign-badge:after{content:'';position:absolute;height:5px;width:5px;background:#2b4935;transform:rotate(45deg);bottom:-4px;left:calc(50% - 3px);border-bottom:1px solid #d2bc85;border-right:1px solid #d2bc85}
.world-campaign-badge-icon{display:grid;place-items:center;width:12px;height:12px;color:#d9c58a;flex-shrink:0}.world-campaign-badge-icon svg{height:12px;width:12px;stroke-width:1.6;fill:none}
.world-campaign-badge-label{line-height:1.2}
.world-marker.campaign-urgent .world-campaign-badge{background:linear-gradient(#9b7a48,#7d5c35);border-color:#dec695;color:#fff2d3;box-shadow:0 3px 11px #5a402333,inset 0 1px #f4dbab44}.world-marker.campaign-urgent .world-campaign-badge:after{background:#7d5c35;border-color:#dec695}.world-marker.campaign-urgent .world-campaign-badge-icon{color:#f3d69c}
.world-marker.campaign-overdue .world-campaign-badge{background:linear-gradient(#a4724e,#89583c);border-color:#e0b998;color:#fff2dd}.world-marker.campaign-overdue .world-campaign-badge:after{background:#89583c;border-color:#e0b998}.world-marker.campaign-overdue .world-campaign-badge-icon{color:#f2cd9c}
.world-marker.campaign-ordered .world-campaign-badge{background:linear-gradient(#e8efdb,#d2dfbf);border-color:#91a97b;color:#486c3e;box-shadow:0 3px 8px #2a462127,inset 0 1px #fcffef}.world-marker.campaign-ordered .world-campaign-badge:after{background:#d2dfbf;border-color:#91a97b}.world-marker.campaign-ordered .world-campaign-badge-icon{color:#5b8248}
.world-marker.campaign-skipped .world-campaign-badge{background:linear-gradient(#e7e9dc,#d4d8c8);border-color:#a4ac92;color:#6b765e;box-shadow:0 3px 8px #38453520,inset 0 1px #f7faed}.world-marker.campaign-skipped .world-campaign-badge:after{background:#d4d8c8;border-color:#a4ac92}.world-marker.campaign-skipped .world-campaign-badge-icon{color:#7f8a6d}
.world-marker.campaign-collapsed:not(.is-hovered):not(.is-selected):not(:focus-visible) .world-campaign-badge{min-width:23px;height:23px;min-height:23px;padding:4px;border-radius:50%;gap:0;opacity:.92}.world-marker.campaign-collapsed:not(.is-hovered):not(.is-selected):not(:focus-visible) .world-campaign-badge-label{display:none}.world-marker.campaign-collapsed:not(.is-hovered):not(.is-selected):not(:focus-visible) .world-campaign-badge:after{display:none}
.world-marker-label{border-radius:4px;border-color:#a8a783;background:linear-gradient(#fff9e8,#e9e2c7);font-size:10px;color:#3f533d;box-shadow:inset 0 1px #fffdf3,0 3px 8px #263d3020;padding:6px 9px}
.world-marker.is-shop .world-marker-label{font-size:11px;border-color:#a8ac82;background:linear-gradient(#fbf5e1,#e3ddbc);color:#3c543c;padding:7px 10px}
.world-marker.is-selected .world-marker-label{border-color:#b89e60;box-shadow:0 0 0 2px #d2bc7859,0 4px 14px #32432d2b;background:linear-gradient(#fff4d1,#e8d8ac)}
.world-marker-tooltip{border-color:#a6ac8a;border-radius:8px;background:linear-gradient(135deg,#fffbef,#ebe8d3);padding:15px 17px;box-shadow:0 12px 30px #16322735,inset 0 1px #fffef3;width:246px;transform:translate(calc(-50% + var(--world-tooltip-shiftX,0px)),calc(9px + var(--world-tooltip-shiftY,0px)))}
.world-marker.is-hovered .world-marker-tooltip,.world-marker:focus-visible .world-marker-tooltip{transform:translate(calc(-50% + var(--world-tooltip-shiftX,0px)),var(--world-tooltip-shiftY,0px))}
.world-marker-tooltip:after{background:#ebe8d3;border-color:#a6ac8a;left:calc(50% - 5px - var(--world-tooltip-shiftX,0px))}
.world-marker-tooltip strong{font-weight:500;font-size:18px;color:#355037}.world-marker-tooltip .world-marker-type{color:#8c8d6e;font-size:8px;letter-spacing:1.15px}.world-marker-tooltip>span:not(.world-marker-type){color:#738067;font-size:10px}.world-marker-tooltip small{font-size:9px;color:#8b8a73}.world-marker-tooltip em{font-size:10px;color:#748b5c;border-top-color:#bfc8a88f;padding-top:10px;margin-top:5px}
.world-marker-spend{display:flex;flex-direction:column;gap:4px;margin-top:7px;padding:10px 11px;background:linear-gradient(120deg,#e2ead5,#edf0e0);border:1px solid #b5c39b;border-radius:5px;box-shadow:inset 0 1px #f5fae8}
.world-marker-spend>span{font:500 9px/1.35 Inter,system-ui,sans-serif;color:#78886b;letter-spacing:.2px}
.world-marker-spend>b{font:500 25px/1.1 Fraunces,Georgia,serif;color:#3d5e38;font-variant-numeric:tabular-nums;letter-spacing:-.55px}
.world-marker-spend>small{font:9px/1.5 Inter,system-ui,sans-serif;color:#788568}
#territory-map .world-marker.is-tooltip-below .world-marker-tooltip{bottom:auto;top:calc(100% + 12px)}
#territory-map.has-diorama-3d .world-marker.is-tooltip-below .world-marker-tooltip{bottom:auto;top:calc(100% + var(--diorama-label-offset,65px) + 10px)}
.world-marker.is-tooltip-below .world-marker-tooltip:after{bottom:auto;top:-6px;transform:rotate(225deg);background:#fffbef}
.world-marker.is-tooltip-detached .world-marker-tooltip:after{display:none}
#territory-map.has-diorama-3d .world-campaign-badge{bottom:76px}
#territory-map[data-ambience=evening] .world-campaign-badge{box-shadow:0 4px 12px #182c2752,inset 0 1px #d1cd9859}
#territory-map[data-ambience=evening] .world-marker-label{background:linear-gradient(#f8ebca,#dccc9f);border-color:#b19e74}
@media(max-width:760px){.world-campaign-badge{bottom:69px;font-size:9px;min-height:22px;padding:4px 7px;gap:4px}.world-campaign-badge-icon,.world-campaign-badge-icon svg{height:11px;width:11px}#territory-map.has-diorama-3d .world-campaign-badge{bottom:68px}.world-marker-tooltip{width:218px;padding:13px 14px}.world-marker-tooltip strong{font-size:16px}.world-marker-spend>b{font-size:23px}.world-marker-label{font-size:9px}.world-marker.is-shop .world-marker-label{font-size:10px}.world-marker.campaign-collapsed:not(.is-hovered):not(.is-selected):not(:focus-visible) .world-campaign-badge{min-width:21px;height:21px;min-height:21px;padding:4px}}
@media(prefers-reduced-motion:reduce){.world-campaign-badge{transition:none}}
.world-marker-tooltip .world-marker-type,.world-marker-tooltip>span:not(.world-marker-type),.world-marker-tooltip small,.world-marker-tooltip em{color:#6b745a}.world-marker-spend>span,.world-marker-spend small{color:#5e7052}
.world-marker:focus-visible{outline:none}.world-marker:focus-visible .world-marker-label{outline:3px solid #5b7454;outline-offset:4px;box-shadow:0 0 0 1px #f6edcc,0 3px 12px #2c453630}
