/* World action pages remain inside the location card. Bottom navigation is unchanged. */
#world .destination{--location-accent:#587c6b;display:grid!important;grid-template-rows:14px 64px 10px minmax(0,1fr);grid-template-columns:minmax(0,1fr);justify-content:stretch;gap:8px;height:var(--card)!important;min-height:0;padding:12px 15px;overflow:hidden}
#world .destination[data-here="false"]{grid-template-rows:14px 64px 10px 33px minmax(0,1fr);gap:7px}
#world .destination .destination-top{display:flex!important;flex-direction:row!important;height:64px;min-height:0;align-items:center;gap:11px;flex:none}
#world .destination .destination-thumb{flex:0 0 61px!important;width:61px;height:61px;min-height:0}
#world .destination .destination-copy{flex:1;min-width:0}
#world .destination #primary-action{height:33px;min-height:33px;margin:0;padding:4px 9px;font-size:11px;border-radius:8px}
#world .destination #primary-action>.icon{font-size:17px}
#world .destination #secondary-actions{display:block!important;min-height:0;height:100%;margin:0;padding:0;overflow:hidden}
#world .destination #destination-access{display:none!important}
.location-board{position:relative;width:100%;height:100%;min-height:0;overflow:hidden;isolation:isolate;border-radius:11px;contain:layout paint}
.location-board-page{position:absolute;inset:0;width:100%;height:100%;min-height:0;background:#fcf8ed;backface-visibility:hidden}
#world .location-board .location-choices{height:100%;gap:10px}
#world .world-choice{position:relative;gap:0;padding:4px 4px 8px;border-color:#d4c29e;border-radius:10px;box-shadow:inset 0 0 0 2px #fffcf3;background:linear-gradient(140deg,#fffdf6,#f5eedb);overflow:hidden}
#world .world-choice-scene{position:relative;display:block;flex:1;min-height:35px;width:100%;border:1px solid #ddcfaf;border-radius:7px;background-repeat:no-repeat;overflow:hidden}
.world-choice-shade{position:absolute;inset:0;background:linear-gradient(180deg,#20393105 30%,#1d342e29 100%)}
#world .world-choice-figure{position:absolute;inset:2% 5% 0;width:90%;height:98%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 3px 3px #172c3266)}
#world .world-choice-figure.is-person{inset:0;width:100%;height:190%;object-fit:cover;object-position:center top;filter:none}
#world .world-choice-figure.is-item{inset:7% 14% 4%;width:72%;height:89%;object-fit:contain;filter:drop-shadow(0 3px 4px #162b2f66)}
#world .world-choice.choice-beacon .world-choice-figure{inset:9% 22%;width:56%;height:82%;filter:drop-shadow(0 3px 3px #3e352457)}
#world .world-choice .location-choice-icon{width:30px;height:30px;margin:-16px 0 0;border-color:#d3be94;background:#fff8e8;box-shadow:0 1px 3px #624b2128}
#world .world-choice .location-choice-icon>img{width:23px;height:23px;object-fit:contain}
#world .world-choice>strong{font:700 clamp(14px,4.3vw,18px)/1.12 Interface,sans-serif;white-space:normal;text-align:center;margin:4px 3px 5px;letter-spacing:-.25px;min-height:20px}
#world .world-choice>small{min-width:80%;max-width:97%;font-size:9px;line-height:12px;padding:3px 5px;white-space:normal;min-height:19px;display:grid;place-items:center}
.world-choice-direction{display:grid;position:absolute;bottom:4px;color:var(--location-accent);opacity:0;transition:opacity .16s}
.world-choice-direction>.icon{font-size:14px}
.world-choice:first-child .world-choice-direction{right:5px}
.world-choice:last-child .world-choice-direction{left:5px}
.world-choice:hover .world-choice-direction,.world-choice:focus-visible .world-choice-direction{opacity:1}
.location-inline-panel{display:flex;flex-direction:column;padding:6px;border:1px solid #cdbd9e;border-radius:11px;background:linear-gradient(135deg,#fffdf4,#f7f0df);box-shadow:inset 0 0 0 2px #fffaf0}
.world-panel-heading{display:flex;align-items:center;gap:7px;flex:0 0 29px;min-height:29px;padding:0 0 5px;margin-bottom:5px;border-bottom:1px solid #d9cdb5}
.world-panel-back{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border:1px solid #d6c9ac;border-radius:7px;background:#fffaf0;color:#4d786c}
.world-panel-back>.icon{font-size:17px}
.world-panel-heading>img{display:block;width:22px;height:22px;object-fit:contain}
.world-panel-heading>h3{flex:1;min-width:0;font:700 17px/1.05 Interface,sans-serif;color:#2e605a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.world-panel-heading>small{flex:none;font-size:8px;color:#9c8e74;background:#ede4ce70;border-radius:5px;padding:3px 5px}
.world-panel-body{flex:1;min-height:0;overflow:hidden}
.world-horizontal{display:flex;width:100%;height:100%;min-height:0;gap:8px;align-items:stretch;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#bfa77b transparent;touch-action:pan-x;padding:0 0 3px;scroll-snap-type:x proximity}
.world-horizontal>*{scroll-snap-align:start}
.world-encounter-card{display:flex;flex:0 0 134px;flex-direction:column;gap:4px;min-width:0;min-height:0;height:100%;padding:5px;border:1px solid #d8cbae;border-radius:8px;background:linear-gradient(#fffef8,#f0eddc);overflow:hidden;box-shadow:inset 0 0 0 1px #fff9}
.world-monster-preview{display:grid;grid-template-rows:17px minmax(24px,1fr) minmax(22px,auto) 14px;gap:2px;align-items:center;flex:1;min-height:0;width:100%;padding:0;text-align:center}
.world-monster-top{display:flex;align-items:center;justify-content:space-between;width:100%;min-width:0;color:#9c815b;font-size:8px}
.world-monster-top>b{display:flex;align-items:center;gap:2px;font-size:9px}
.world-monster-top .icon{font-size:12px}
.world-monster-top>small{border:1px solid #e6dac2;background:#fbf6e9;border-radius:5px;padding:2px 4px;font-size:8px}
.world-monster-preview>img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 2px 2px #3c422c22)}
.world-monster-preview>strong{font-size:10px;line-height:1.15;color:#2a5d56;max-height:2.3em;overflow:hidden}
.world-monster-stats{display:flex;align-items:center;justify-content:center;gap:6px;color:#957e5e}
.world-monster-stats>small{display:flex;align-items:center;gap:2px;font-size:8px;white-space:nowrap}
.world-monster-stats .icon{font-size:10px}
.world-mini-primary,.world-collect-button{display:flex;align-items:center;justify-content:center;flex:none;gap:5px;min-height:29px;padding:5px 7px;border:1px solid #98b3a0;border-radius:7px;background:linear-gradient(140deg,#dbe8d8,#c5d8c4);color:#315f50;font-size:10px;font-weight:700;line-height:1.15;text-align:center}
.world-mini-primary:disabled,.world-collect-button:disabled{background:#eee8d9;border-color:#d6c9b1;color:#9a8b75;opacity:.75}
.world-npc-card{position:relative;display:flex;flex:0 0 calc(50% - 4px);flex-direction:column;align-items:stretch;gap:4px;min-width:130px;min-height:0;height:100%;padding:5px;border:1px solid #d8c9aa;border-radius:8px;background:#fffaf0;color:#2c6158;text-align:center;overflow:hidden}
.world-npc-scene{display:block;position:relative;flex:1;min-height:28px;width:100%;border:1px solid #e2d4b7;border-radius:5px;overflow:hidden;background-size:cover;background-position:center}
.world-npc-scene:before{content:"";position:absolute;inset:0;background:linear-gradient(#e6e2ce33,#d2dcc0aa)}
.world-npc-scene>img{display:block;position:relative;width:100%;height:150%;object-fit:cover;object-position:center top}
.world-npc-card>strong{flex:none;font-size:12px;line-height:1.05;min-height:15px}
.world-npc-card>small{flex:none;min-height:24px;font-size:9px;line-height:12px;color:#94836a}
.world-npc-cta{display:flex;align-items:center;justify-content:center;flex:none;gap:4px;min-height:24px;border:1px solid #d6cbb2;border-radius:5px;background:#eee8d270;font-size:9px;font-weight:700}
.world-npc-cta>.icon{font-size:13px}
.world-resource-panel{display:flex;flex-direction:column;gap:5px;width:100%;height:100%;min-height:0}
.world-resource-list{flex:1;min-height:0}
.world-resource-card{position:relative;display:flex;flex:0 0 105px;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:0;height:100%;padding:5px;border:1px solid #d9caad;border-radius:8px;background:linear-gradient(135deg,#fffcf2,#f2ead6);overflow:hidden;text-align:center}
.world-resource-chance{position:absolute;right:4px;top:4px;padding:2px 4px;border-radius:4px;background:#fffaf0c9;color:#a28350;font-size:8px;font-weight:700}
.world-resource-card>img{display:block;flex:1;min-height:24px;max-height:85px;width:75%;object-fit:contain}
.world-resource-card>strong{flex:none;max-height:2.3em;font-size:10px;line-height:1.15;color:#416856;overflow:hidden}
.world-resource-card>small{font-size:8px;line-height:11px;color:#9d8967}
.world-resource-owned{font-size:8px;line-height:11px;color:#879274}
.world-collect-button{width:100%;min-height:29px}
.world-collect-button>.icon{font-size:16px}
.world-panel-footnote{flex:none;font-size:8px;line-height:12px;color:#9c8a6a;padding:0 2px}
.world-feature{display:flex;gap:10px;align-items:center;width:100%;height:100%;padding:6px;border:1px solid #ddcfb2;border-radius:8px;background:linear-gradient(135deg,#fbf8eb,#eee9d5);overflow:hidden}
.world-feature-art{display:grid;place-items:center;flex:0 0 31%;height:100%;min-height:0;overflow:hidden;border:1px solid #e1d3b7;border-radius:7px;background:#f3ecda}
.world-feature-art>img{display:block;width:90%;height:100%;min-height:0;object-fit:contain}
.forge-feature .world-feature-art>img{width:100%;object-fit:cover;object-position:center 20%}
.world-feature-copy{display:flex;flex:1;min-width:0;max-height:100%;flex-direction:column;gap:6px;overflow-y:auto}
.world-feature-copy>strong{font:700 18px/1.05 Interface,sans-serif;color:#3c6757}
.world-feature-copy>small{font-size:8px;letter-spacing:.7px;color:#a78b5b}
.world-feature-copy>p{font-size:10px;line-height:1.35;color:#978367}
.world-mini-secondary{flex:none;min-height:27px;font-size:9px;color:#7e896d;border:1px solid #d7ccb3;border-radius:6px;background:#fff9ed}
.feature-done{filter:saturate(.7)}
/* Crisp, distinct cartographic medallions, with a larger invisible touch area. */
#world #traveler{display:none}
#world #map-roads{position:absolute;z-index:2;overflow:visible;pointer-events:none}
#world #map-labels{position:absolute;inset:0;z-index:4;pointer-events:none}
#world .map.zoomable .world-map-pin{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:5px;background:none;border:0;border-radius:50%;box-shadow:none;overflow:visible;color:#3f7162;pointer-events:auto;transform:translate(-50%,-50%) scale(calc(1 / var(--map-zoom)));transition:opacity .2s}
.world-map-medallion{display:grid;place-items:center;width:34px;height:34px;border:1px solid #bda675;border-radius:11px;background:linear-gradient(145deg,#fffbed,#e8ddc0);box-shadow:0 2px 4px #253c345c,inset 0 0 0 2px #fff7;transition:box-shadow .2s,border-color .2s,background .2s,transform .2s}
.world-map-medallion>img{display:block;width:28px;height:28px;object-fit:contain}
#world .map.zoomable .world-map-pin.selected{box-shadow:none;background:none}
.world-map-pin.selected .world-map-medallion{border-color:#326e61;background:linear-gradient(#fffdf0,#e9e6ca);box-shadow:0 0 0 2px #fff7e4,0 0 0 3.5px #487d6dd4,0 3px 7px #283f3d70;transform:translateY(-1px)}
.world-map-pin:hover .world-map-medallion{border-color:#5b8d7b;box-shadow:0 0 0 2px #fff7e4,0 2px 5px #28463877}
.world-map-pin.locked .world-map-medallion{filter:saturate(.35);background:#e4ddcb;border-color:#aaa38e}
.world-map-lock{position:absolute;right:0;bottom:2px;min-width:14px;height:14px;padding:0 3px;border:1px solid #c2b08a;border-radius:5px;background:#f4ebd5;color:#8a795c;font-size:8px;line-height:12px;font-weight:700}
.world-map-current-dot{position:absolute;right:1px;top:1px;width:9px;height:9px;border:2px solid #fff7df;border-radius:50%;background:#b29550;box-shadow:0 0 0 1px #708267}
.world-map-pin-name{display:block;position:absolute;top:calc(100% - 1px);left:50%;transform:translateX(-50%) translateY(-3px);max-width:130px;padding:3px 6px;border:1px solid #d6c49d;border-radius:5px;background:#fff9e9ed;box-shadow:0 2px 3px #273e3424;color:#3e6657;font-size:8px;line-height:11px;font-weight:700;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .16s,transform .16s}
.world-map-pin.selected .world-map-pin-name,.world-map-pin:focus-visible .world-map-pin-name{opacity:1;transform:translateX(-50%)}
.world-road-bed{fill:none;stroke:#736846;stroke-width:14;stroke-linecap:round;stroke-linejoin:round;opacity:.22}
.world-road-dots{fill:none;stroke:#fff7df;stroke-width:6;stroke-dasharray:12 16;stroke-linecap:round;stroke-linejoin:round;opacity:.92}
.world-road-route-halo{fill:none;stroke:#fff4d5;stroke-width:18;stroke-linecap:round;stroke-linejoin:round;opacity:.95}
.world-road-route{fill:none;stroke:#3c8173;stroke-width:9;stroke-dasharray:17 16;stroke-linecap:round;stroke-linejoin:round}
.route-locked .world-road-route{stroke:#a28f77}
.route-walking .world-road-route{stroke:#b78f3d;animation:world-route-dashes 1.25s linear infinite}
.world-road-traveler{fill:#fff6cf;stroke:#477b68;stroke-width:6;transition:cx .12s linear,cy .12s linear}
@keyframes world-route-dashes{to{stroke-dashoffset:-66}}
/* An ongoing journey leaves the map and its selected route visible. */
#world #journey-root{position:absolute;inset:auto 8px 7px;z-index:7;display:block;background:none;padding:0;pointer-events:none;animation:none;backdrop-filter:none}
#world #journey-root[hidden]{display:none!important}
.world-travel-status{display:flex;align-items:center;gap:7px;width:max-content;min-width:160px;max-width:100%;padding:6px 9px;border:1px solid #d5c39b;border-radius:10px;background:#fff9e8ed;box-shadow:0 2px 6px #2b493a29}
.world-travel-status>img{flex:none;width:27px;height:27px}
.world-travel-status>div{flex:1;min-width:0}
.world-travel-status small{display:block;margin:0 0 2px;font-size:7px;line-height:9px;letter-spacing:.9px;color:#ad8b50}
.world-travel-status strong{display:block;font-size:10px;line-height:12px;color:#446c5c}
.world-travel-status .journey-progress{height:3px;margin:5px 0 0;border-radius:3px;background:#dfddc8}
.world-travel-status .journey-progress>span{display:block;height:100%;background:#8ba67b;transition:width .12s linear}
#app.world-traveling #world .map-pin:disabled{opacity:1}

@media(max-height:730px){
 #world .destination{grid-template-rows:12px 56px 8px minmax(0,1fr);gap:7px;padding:10px 14px}
 #world .destination[data-here="false"]{grid-template-rows:12px 56px 8px 30px minmax(0,1fr);gap:5px}
 #world .destination .destination-top{height:56px}
 #world .destination .destination-thumb{flex-basis:53px!important;width:53px;height:53px}
 #world .world-choice>strong{font-size:15px;margin-top:3px;margin-bottom:3px;min-height:17px}
 #world .world-choice>small{font-size:8px;line-height:10px;padding:2px 4px;min-height:15px}
 .world-panel-heading{flex-basis:25px;min-height:25px;padding-bottom:3px;margin-bottom:4px}
 .world-panel-heading>h3{font-size:15px}
 .world-panel-heading>img{width:19px;height:19px}
 .world-panel-back{width:22px;height:22px;flex-basis:22px}
 .world-encounter-card{flex-basis:119px;padding:4px;gap:3px}
 .world-monster-preview{grid-template-rows:14px minmax(20px,1fr) 22px;gap:1px}
 .world-monster-stats{display:none}
 .world-mini-primary{min-height:25px;padding:4px;font-size:9px}
 .world-npc-card{min-width:124px;padding:4px;gap:3px}
 .world-npc-card>strong{font-size:10px;min-height:12px}
 .world-npc-card>small{font-size:8px;line-height:10px;min-height:20px}
 .world-npc-cta{font-size:8px;min-height:20px}
 .world-resource-card{flex-basis:95px;gap:2px;padding:4px}
 .world-resource-card>strong{font-size:9px}
 .world-resource-card>small,.world-resource-owned{font-size:7px;line-height:9px}
 .world-collect-button{min-height:25px;font-size:9px}
 .world-feature{padding:4px;gap:7px}
 .world-feature-copy{gap:4px}
 .world-feature-copy>strong{font-size:15px}
 .world-feature-copy>p{font-size:9px;line-height:1.2}
}
@media(max-height:680px) and (max-width:899px){
 #world .destination{grid-template-rows:12px 52px 8px minmax(0,1fr);gap:6px;padding:8px 12px}
 #world .destination[data-here="false"]{grid-template-rows:12px 52px 8px 29px minmax(0,1fr);gap:4px}
 #world .destination .destination-top{height:52px}
 #world .destination .destination-thumb{flex-basis:49px!important;width:49px;height:49px}
 .world-resource-owned{display:none}
}
@media(min-width:900px){
 #world .destination{grid-template-rows:14px 94px 10px minmax(0,1fr);padding:16px;gap:12px}
 #world .destination[data-here="false"]{grid-template-rows:14px 94px 10px 34px minmax(0,1fr);gap:9px}
 #world .destination .destination-top{height:94px}
 #world .destination .destination-thumb{flex-basis:84px!important;width:84px;height:84px}
 #world .world-choice>strong{font-size:17px}
}
@media(prefers-reduced-motion:reduce){.world-road-route,.world-map-medallion,.world-map-pin-name,.world-travel-status .journey-progress>span,.world-road-traveler{animation:none!important;transition:none!important}}
.reduced-motion .world-road-route,.reduced-motion .world-map-medallion,.reduced-motion .world-map-pin-name,.reduced-motion .world-road-traveler{animation:none!important;transition:none!important}

/* The side page covers this location card, leaving the map and shell in place. */
#world .destination>.location-inline-panel{z-index:12;inset:12px 15px;width:auto;height:auto;padding:9px;border-radius:11px}
#world .world-choice-figure.is-bust{height:100%;object-fit:cover;object-position:center 23%}
.world-panel-heading>small{max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.world-panel-travel{margin-top:7px;min-height:32px}
.world-npc-scene>img{height:100%;object-fit:cover;object-position:center top}
@media(max-height:730px){#world .destination>.location-inline-panel{inset:10px 14px;padding:7px}.world-monster-preview{grid-template-rows:17px minmax(35px,1fr) minmax(22px,auto) 14px}.world-monster-stats{display:flex}.world-mini-primary{min-height:29px}.world-npc-card>strong{font-size:12px;min-height:15px}.world-npc-card>small{font-size:9px;line-height:12px;min-height:24px}.world-npc-cta{font-size:9px;min-height:24px}}
@media(max-height:680px) and (max-width:899px){#world .destination>.location-inline-panel{inset:8px 12px}.world-monster-preview{grid-template-rows:15px minmax(30px,1fr) 22px}.world-monster-stats{display:none}}
@media(min-width:900px){#world .destination>.location-inline-panel{inset:16px}}

.chat-modal .chat-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}

.world-encounter-card{flex:1 0 134px;max-width:205px}
.world-encounter-list[data-count="1"],.world-resource-list[data-count="1"]{justify-content:center}
.world-resource-card{flex:1 0 105px;max-width:195px}
.world-resource-card>img{max-height:125px}
.world-monster-preview>img{object-position:center}
@media(max-height:730px){.world-encounter-card{flex-basis:119px}.world-resource-card{flex-basis:95px}}

/* Painted landmarks sit above their road anchors, leaving forks readable. */
#world .map.zoomable .world-map-pin{touch-action:manipulation}
#world .world-map-medallion{width:30px;height:30px;border-radius:50%;border-color:#d0bc93;background:linear-gradient(145deg,#fffbedee,#f1e8d1e6);box-shadow:0 2px 3px #26382b36;transform:translateY(-10px)}
#world .world-map-medallion>img{width:29px;height:29px;filter:drop-shadow(0 1px 1px #30403524)}
#world .world-map-pin.selected .world-map-medallion{transform:translateY(-10px);box-shadow:0 0 0 1.5px #fff7e4,0 0 0 2.5px #487d6dbb,0 2px 4px #283f3d45}
.world-map-anchor{position:absolute;left:calc(50% - 2px);top:calc(50% + 5px);width:4px;height:4px;border:1px solid #fcf5dc;border-radius:50%;background:#547868;box-shadow:0 1px 2px #203c3044}
.world-map-pin.selected .world-map-anchor{background:#ad8b4e}
.world-map-current-dot{right:5px;top:-5px;width:7px;height:7px;border-width:1.5px}
.world-map-lock{right:3px;bottom:9px;height:12px;line-height:10px;font-size:7px;min-width:12px;border-radius:4px}
.world-road-bed{stroke-width:12;opacity:.17}
.world-road-dots{stroke-width:5.5;stroke-dasharray:10 16}
.world-road-route-halo{stroke-width:15;opacity:.96}
.world-road-route{stroke-width:7;stroke-dasharray:13 17;animation:world-route-flow 2.4s linear infinite}
.route-walking .world-road-route{stroke:#a98743;animation:world-route-flow 1.8s linear infinite}
.world-road-progress{fill:none;stroke:#5e8c77;stroke-width:4;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;opacity:.65;transition:stroke-dashoffset .12s linear}
.world-road-traveler{stroke-width:4;fill:#fff7dc;stroke:#3f7868}
@keyframes world-route-flow{to{stroke-dashoffset:-30}}
#world .world-choice{touch-action:pan-y;transition:transform .14s ease-out}
#world .world-choice.choice-pit .world-choice-figure{inset:6% 19%;width:62%;height:88%}
/* Equal portrait, name, role and action rows across every resident card. */
.world-npc-card{display:grid;grid-template-rows:minmax(40px,1fr) 30px 27px 26px;gap:5px;padding:6px;border-color:#d9c9aa;background:linear-gradient(#fffdf6,#f8f2e3)}
.world-npc-scene{height:100%;min-height:0;flex:none;isolation:isolate;background-position:center 55%}
.world-npc-scene:before{background:linear-gradient(#f3ecda55,#dce1c3aa)}
.world-npc-scene>img{height:100%;object-fit:contain;object-position:center bottom;transform:scale(1.04);transform-origin:center bottom}
.world-npc-card.npc-master .world-npc-scene>img,.world-npc-card.npc-keeper .world-npc-scene>img{object-fit:cover;object-position:center 20%;transform:none}
.world-npc-card>strong{display:flex;align-items:center;justify-content:center;min-height:0;font-size:12px;line-height:15px;overflow:hidden}
.world-npc-card>small{display:flex;align-items:center;justify-content:center;min-height:0;font-size:9px;line-height:12px;color:#93876f;overflow:hidden}
.world-npc-cta{height:26px;min-height:26px;font-size:9px;background:#f2ecd9;border-color:#ded1b4}
.world-forge{display:flex;flex-direction:column;gap:10px;min-height:100%;padding:8px;border:1px solid #ded0b1;border-radius:8px;background:linear-gradient(145deg,#fffdf4,#f2ecd8)}
.world-forge-master{display:flex;align-items:center;gap:12px;padding-bottom:9px;border-bottom:1px solid #e2d6ba}
.world-forge-master>img{display:block;width:55px;height:61px;flex:none;object-fit:cover;object-position:center 15%;border-radius:9px;border:1px solid #d8c4a0}
.world-forge-master>div{min-width:0;display:flex;flex-direction:column;gap:5px}
.world-forge-master small{font-size:7px;letter-spacing:1.1px;color:#a48c60}
.world-forge-master strong{font:700 18px/1.1 Interface,sans-serif;color:#315f55}
.world-forge-master p{font-size:10px;line-height:14px;color:#93836b}
.world-forge-services{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-height:75px;flex:1}
.world-forge-services>button{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px;border:1px solid #cbd3b9;border-radius:8px;background:linear-gradient(#f9faee,#e9efdc);text-align:center;color:#426b5b}
.world-forge-services>button>img{width:32px;height:33px;object-fit:contain}
.world-forge-services>button>span{display:flex;flex-direction:column;gap:4px}
.world-forge-services strong{font-size:11px;line-height:14px}
.world-forge-services small{font-size:8px;line-height:11px;color:#869174}
.world-forge-services>button>.icon{position:absolute;right:7px;top:8px;font-size:12px;color:#8c9e80}
.world-forge-note{margin:0;font-size:8px;line-height:12px;color:#a08e6d;text-align:center}
.world-feature-complete{display:flex;align-items:center;gap:5px;font-size:10px;line-height:16px;color:#729171;padding:5px 0}
.world-feature-complete .icon{font-size:14px;color:#ad925c}
.world-panel-body:has(.world-forge),.world-panel-body:has(.world-story){overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#bca67c transparent}
.world-feature-art{flex-basis:25%;height:95px;border:0;background:transparent}
.world-feature-art>img{width:100%;height:100%;object-fit:contain}
@media(max-height:730px){.world-npc-card{grid-template-rows:minmax(35px,1fr) 30px 24px 25px;gap:4px}.world-forge{gap:7px;padding:6px}.world-forge-master{gap:9px;padding-bottom:6px}.world-forge-master>img{width:46px;height:51px}.world-forge-master strong{font-size:16px}.world-forge-services{min-height:70px}.world-forge-services>button{gap:4px;padding:6px}.world-forge-services>button>img{width:27px;height:28px}}
/* Location loot is personal and stays in its own pit until explicitly taken. */
.world-pit{display:flex;flex-direction:column;height:100%;min-height:0;gap:7px;padding:2px}
.world-pit-tabs{display:flex;align-items:center;gap:5px;flex:none;min-height:27px;padding-bottom:5px;border-bottom:1px solid #e2d5b9}
.world-pit-tabs>button{display:flex;align-items:center;gap:5px;min-height:24px;padding:4px 9px;border:1px solid transparent;border-radius:7px;font-size:10px;color:#93866e}
.world-pit-tabs>button.active{border-color:#c4cfb3;color:#426c5b;background:#eaf0df}
.world-pit-tabs b{font-size:9px;background:#d5dfc7;padding:1px 5px;border-radius:5px}
.world-pit-tabs>small{margin-left:auto;font-size:8px;line-height:12px;color:#a29274;letter-spacing:.3px}
.world-pit-tabs .icon{font-size:13px}
.world-pit-list{flex:1;min-height:0;gap:8px;padding-bottom:4px;scrollbar-width:thin}
.world-pit-card{display:flex;flex-direction:column;gap:5px;flex:0 0 132px;min-height:0;height:100%;padding:5px;border:1px solid #d8cbae;border-radius:9px;background:linear-gradient(145deg,#fffef7,#f3ecd9);box-shadow:inset 0 0 0 1px #fff9;overflow:hidden}
.world-pit-card.rarity-uncommon{border-color:#a8bba0;background:linear-gradient(145deg,#fffef6,#edf0dd)}
.world-pit-card.rarity-rare{border-color:#a1b5c8;background:linear-gradient(145deg,#fffdf4,#e8edf0)}
.world-pit-card.rarity-epic{border-color:#baa4c2;background:linear-gradient(145deg,#fffbf4,#efe5ef)}
.world-pit-card.rarity-legendary{border-color:#c3a16b;background:linear-gradient(145deg,#fffdf0,#f3e4c1)}
.world-pit-item{display:grid;grid-template-rows:14px minmax(27px,1fr) 26px 12px;gap:3px;width:100%;flex:1;min-height:0;text-align:center}
.world-pit-rarity{display:flex;align-items:center;gap:3px;font-size:7px;color:#9c8c6c;line-height:12px;white-space:nowrap}
.world-pit-rarity>i{display:block;width:4px;height:4px;background:currentColor;border-radius:50%;flex:none}
.world-pit-rarity>b{font-size:8px;color:#537361;margin-left:auto}
.world-pit-item>img{width:100%;height:100%;min-height:0;object-fit:contain;filter:drop-shadow(0 3px 2px #5d503523)}
.world-pit-item>strong{display:flex;align-items:center;justify-content:center;min-height:0;font:700 11px/13px Interface,sans-serif;color:#3c6657;overflow:hidden}
.world-pit-item>small{font-size:8px;line-height:11px;color:#9e8a66;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.world-pit-item-actions{display:flex;gap:4px;flex:none;height:27px}
.world-pit-item-actions>.world-mini-primary{min-height:27px;flex:1;font-size:9px;padding:4px}
.world-pit-discard{display:grid;place-items:center;width:27px;min-width:27px;height:27px;border:1px solid #d3c4a6;border-radius:6px;background:#fbf5e9;color:#a08a6a;font-size:18px;line-height:20px}
.world-pit-take-all{min-height:30px;width:100%;font-size:10px}
.world-pit-take-all .icon{font-size:15px}
.world-pit-note{display:block;flex:none;font-size:8px;line-height:12px;color:#a29170;text-align:center;text-wrap:balance}
.world-pit-empty{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;flex-direction:column;gap:5px;padding:5px;text-align:center;background:radial-gradient(ellipse,#e7e5d180,transparent 65%);overflow:hidden}
.world-pit-empty>img{width:85px;height:75px;min-height:20px;flex:0 1 auto;object-fit:contain;opacity:.78}
.world-pit-empty>strong{font:700 17px/20px Interface,sans-serif;color:#577760;flex:none}
.world-pit-empty>p{font-size:10px;line-height:14px;color:#9b896a;flex:none;margin:0}
.world-pit>.world-resource-panel{flex:1;min-height:0}
.world-pit-detail{height:100%;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin}
.world-pit-list-back{display:flex;align-items:center;gap:5px;min-height:21px;font-size:9px;line-height:14px;color:#829577;flex:none;align-self:flex-start}
.world-pit-list-back>.icon{font-size:13px}
.world-pit-item-lead{display:flex;align-items:center;gap:9px;padding:5px;border:1px solid #dacbad;border-radius:9px;background:linear-gradient(140deg,#fffdf4,#f4edda);flex:none}
.world-pit-item-lead>img{width:60px;height:65px;object-fit:contain;flex:none;filter:drop-shadow(0 3px 2px #614c2523)}
.world-pit-item-lead>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.world-pit-item-lead small{font-size:8px;line-height:12px;color:#a48e65}
.world-pit-item-lead strong{font:700 16px/18px Interface,sans-serif;color:#3d6b59}
.world-pit-item-lead span{font-size:9px;line-height:12px;color:#7d9175}
.world-pit-description{flex:1;min-height:50px;font-size:10px;line-height:15px;color:#688365}
.world-pit-description p{font-size:10px;line-height:15px;color:#9b896b;margin:6px 0}
.world-pit-quantity{display:flex;align-items:center;gap:5px;min-height:30px;flex:none;border-top:1px solid #e3d8be;padding-top:5px}
.world-pit-quantity>span{margin-right:auto;font-size:10px;color:#97866b}
.world-pit-quantity>button,.world-pit-quantity>output{display:grid;place-items:center;min-width:27px;height:26px;padding:3px 6px;border:1px solid #d8cbb0;border-radius:6px;background:#faf5e8;font-size:11px;line-height:18px;color:#577760}
.world-pit-quantity>output{min-width:30px;border-color:transparent;background:none;font-weight:700}
.world-pit-detail-actions{display:grid;grid-template-columns:1.5fr 1fr;gap:7px;flex:none;min-height:30px}
.world-pit-confirm{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:7px;border:1px solid #d9b9a0;border-radius:8px;background:#f9eedf;flex:none}
.world-pit-confirm>p{grid-column:1/-1;font-size:10px;line-height:15px;color:#9e7557;margin:0;text-align:center}
.world-pit-discard-confirm{min-height:29px;border:1px solid #bb9879;border-radius:6px;background:#e9d8be;font-size:10px;font-weight:700;color:#855d46}
@media(max-height:730px){.world-pit{gap:5px}.world-pit-card{flex-basis:124px;padding:4px;gap:4px}.world-pit-item{grid-template-rows:12px minmax(25px,1fr) 26px 11px;gap:2px}.world-pit-empty>img{height:55px}.world-pit-note{font-size:7px;line-height:10px}}

.world-pit-item>strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:26px;text-overflow:ellipsis;align-self:center;width:100%}
/* A compact loot row stays readable even when the location card is short. */
.world-pit-list{flex-direction:column;align-items:stretch;overflow-x:hidden;overflow-y:auto;touch-action:pan-y;scroll-snap-type:y proximity;padding:0 2px 3px 0;gap:7px}
.world-pit-card{display:grid;grid-template-columns:minmax(0,1fr) 74px;align-items:center;flex:0 0 78px;width:100%;height:78px;min-height:78px;padding:6px;gap:8px}
.world-pit-item{display:grid;grid-template-columns:49px minmax(0,1fr);grid-template-rows:12px 26px 12px;gap:3px 8px;min-height:0;height:100%;text-align:left}
.world-pit-rarity{grid-column:2;grid-row:1;font-size:7px;min-width:0}
.world-pit-rarity>b{font-size:9px}
.world-pit-item>img{grid-column:1;grid-row:1/4;width:49px;height:100%;object-fit:contain}
.world-pit-item>strong{grid-column:2;grid-row:2;font-size:12px;line-height:13px;text-align:left}
.world-pit-item>small{grid-column:2;grid-row:3;font-size:8px;text-align:left}
.world-pit-item-actions{flex-direction:column;justify-content:center;gap:4px;width:74px;height:100%;min-height:0}
.world-pit-item-actions>.world-mini-primary{flex:none;width:100%;height:27px;min-height:27px;padding:3px;font-size:9px}
.world-pit-item-actions>.world-pit-discard{width:100%;height:23px;min-height:23px;font-size:8px;line-height:13px}

/* 03.11.2026 Скупщик: rows with art and price, tap to pick, −/+ for stacks, a sticky footer with the two sale buttons */
.buyer-panel{display:flex;flex-direction:column;gap:10px;padding:2px 0 0;font:12px/1.45 Interface,sans-serif;color:#3f5f50}
.buyer-head{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center}
.buyer-head img{width:44px;height:44px;border-radius:12px;object-fit:cover;border:1px solid #d4c79c;background:#f5efdc}
.buyer-head strong{display:block;font-size:14px;color:#35574a}.buyer-head small{display:block;font-size:10px;color:#8f866c;line-height:1.35}
.buyer-purse{display:flex;align-items:center;gap:5px;padding:5px 10px;border-radius:999px;background:#f6efd8;border:1px solid #dccd9c;font-weight:700;color:#8a6a1f}
.buyer-purse i{width:12px;height:12px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f7dc8a,#c9971f);box-shadow:inset 0 -1px 0 #9a7215}
.buyer-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:3px;border-radius:10px;background:#efe9d4}
.buyer-tabs button{border:0;border-radius:8px;padding:7px 4px;background:transparent;color:#7d7a60;font:600 11px/1.2 Interface,sans-serif}
.buyer-tabs button small{color:#a49b7c;font-weight:500}.buyer-tabs button.active{background:#fffdf4;color:#35574a;box-shadow:0 1px 3px #6b5f3a22}
.buyer-list{display:flex;flex-direction:column;gap:6px;max-height:min(46vh,420px);overflow:auto;padding:2px;scrollbar-width:none}
.buyer-list::-webkit-scrollbar{display:none}
.buyer-row{border:1px solid #e0d8bd;border-radius:11px;background:#fffdf5;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.buyer-row.is-picked{border-color:#8fb08a;background:#f3f8ec;box-shadow:0 0 0 2px #8fb08a33}
.buyer-row.is-locked{opacity:.55}
.buyer-pick{display:grid;grid-template-columns:40px minmax(0,1fr) auto 20px;gap:9px;align-items:center;width:100%;padding:7px 9px;border:0;background:transparent;text-align:left;color:inherit}
.buyer-pick img{width:40px;height:40px;object-fit:contain}
.buyer-name{min-width:0}.buyer-name strong{display:block;font-size:12px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.buyer-name strong b{color:#3f6f5c}.buyer-name small{display:block;font-size:10px;color:#968c70}
.buyer-price{display:flex;align-items:center;gap:4px;font-weight:700;color:#8a6a1f;font-size:12px}
.buyer-price::before{content:'';width:10px;height:10px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f7dc8a,#c9971f)}
.buyer-check{width:18px;height:18px;border-radius:6px;border:1.5px solid #cbbf98;background:#fff}
.is-picked .buyer-check{border-color:#5f8d5c;background:#6f9d69 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat}
.is-locked .buyer-check{border-style:dashed}
.buyer-qty{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0 10px 8px}
.buyer-qty button{width:30px;height:28px;border-radius:8px;border:1px solid #c9d3b6;background:#f4f7ec;color:#3f6f5c;font:700 15px/1 Interface,sans-serif}
.buyer-qty em{min-width:52px;text-align:center;font-style:normal;font-weight:600;color:#5c6b55}
.buyer-foot{position:sticky;bottom:0;display:grid;gap:6px;padding-top:6px;background:linear-gradient(transparent,#fbf7ea 30%)}
.buyer-foot button{min-height:42px;border-radius:11px;font:650 13px/1.2 Interface,sans-serif}
.buyer-foot .buyer-all.is-confirm{background:linear-gradient(180deg,#c9665a,#a8483e)!important;border-color:#8c362e!important;color:#fff8f2!important}
.buyer-empty{margin:14px 0;text-align:center;color:#968c70}
.buyer-panel.buyer-paid .buyer-purse{animation:buyer-paid .7s ease-out}
@keyframes buyer-paid{0%{transform:scale(1)}35%{transform:scale(1.14);box-shadow:0 0 0 6px #e7c87344}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.buyer-panel.buyer-paid .buyer-purse{animation:none}}
/* buyer inside the small location panel: the list takes the free height, both sale buttons sit side by side */
.world-panel-body.has-buyer{display:flex;flex-direction:column;min-height:0}
.world-panel-body.has-buyer>.buyer-panel,.world-panel-body.has-buyer .buyer-panel{flex:1 1 auto;min-height:0}
#world:not(.guardian-expanded) .buyer-panel{gap:7px}
#world:not(.guardian-expanded) .buyer-head{grid-template-columns:34px minmax(0,1fr) auto}
#world:not(.guardian-expanded) .buyer-head img{width:34px;height:34px;border-radius:9px}
#world:not(.guardian-expanded) .buyer-head small{display:none}
#world:not(.guardian-expanded) .buyer-tabs button{padding:5px 3px}
#world:not(.guardian-expanded) .buyer-list{flex:1 1 auto;min-height:96px;max-height:none}
#world:not(.guardian-expanded) .buyer-pick{grid-template-columns:32px minmax(0,1fr) auto 18px;padding:5px 8px}
#world:not(.guardian-expanded) .buyer-pick img{width:32px;height:32px}
#world:not(.guardian-expanded) .buyer-foot{grid-template-columns:1fr 1fr;position:static;background:none;padding-top:2px}
#world:not(.guardian-expanded) .buyer-foot button{min-height:38px;font-size:11.5px;padding:4px 6px}
#world.guardian-expanded .buyer-list{max-height:none;flex:1 1 auto}
#world.guardian-expanded .buyer-panel{max-width:720px;margin-inline:auto;height:100%}

/* 03.11.2026 buyer polish: steady buttons, a neat quantity line, no empty gaps in the full-screen view */
.buyer-foot{grid-template-columns:1fr 1fr!important;gap:8px}
.buyer-foot button{min-height:46px!important;border-radius:12px!important;font:650 13px/1.25 Interface,sans-serif!important;padding:6px 10px!important}
.buyer-foot .buyer-sell{background:linear-gradient(180deg,#3f7865,#2c5a4a)!important;border:1px solid #244c3e!important;color:#fff8ea!important}
.buyer-foot .buyer-sell:disabled{background:#c9d6cc!important;border-color:#b7c7bb!important;color:#f4f7f2!important}
.buyer-foot .buyer-all{background:#f6ecd4!important;border:1px solid #d8c59a!important;color:#6d5a2b!important}
.buyer-qty{justify-content:space-between;margin:0 10px 9px;padding:5px 6px;border-radius:10px;background:#eef4e6}
.buyer-qty em{font-size:13px;color:#3f5f50}
.buyer-name strong{font-size:13.5px!important}.buyer-name small{font-size:11px!important}
#world.guardian-expanded .buyer-panel{display:flex;flex-direction:column;height:100%;max-width:640px}
#world.guardian-expanded .buyer-list{flex:1 1 auto;min-height:0}
#world.guardian-expanded .buyer-foot{margin-top:auto}
/* place cards: both pictures in the same square tile */
.location-feature-card img,.location-action-card img{border-radius:14px}

/* 03.11.2026 enemy card front: one neat health block (attack and defences live on the back) */
.opponent-card .opponent-stats{overflow:visible!important;touch-action:auto}
.opponent-card .opponent-hp{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:3px 7px;margin:2px 6px 4px;padding:6px 9px 7px;border:1px solid #e6c9c2;border-radius:10px;background:linear-gradient(180deg,#fff7f4,#f9e8e3)}
.opponent-card .opponent-hp-heart{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#f3d3cc;color:#b4483f}
.opponent-card .opponent-hp-heart .icon{font-size:12px}
.opponent-card .opponent-hp b{font:700 15px/1 Interface,sans-serif;color:#8c3b33;font-variant-numeric:tabular-nums}
.opponent-card .opponent-hp i{grid-column:1/-1;display:block;height:4px;border-radius:3px;background:#efd6d0;overflow:hidden}
.opponent-card .opponent-hp i em{display:block;width:100%;height:100%;background:linear-gradient(90deg,#c9584c,#e07a66)}
/* mini location panels: no place-name chip in the heading (the place is already shown above) */
#location-inline-panel .world-panel-heading>small{display:none!important}

/* 03.11.2026 header: the Valgard mark opens the patch notes; status pills (dungeon pass, overload) sit neatly beside it */
#world-journal-open{display:none!important}
.brand{cursor:pointer;-webkit-tap-highlight-color:transparent}
.brand:active{transform:scale(.97)}
#header-dungeon-pass,.header-status-pill{display:inline-flex;align-items:center;gap:5px;height:30px;margin-left:6px;padding:0 10px;border-radius:999px;border:1px solid #d8cfa9;background:#fbf6e6;font:650 11.5px/1 Interface,sans-serif;color:#5d5734;box-sizing:border-box;vertical-align:middle;white-space:nowrap}
#header-dungeon-pass{width:auto;min-width:30px;padding:0 6px}
.header-status-pill.is-overload{border-color:#d9a093;background:#fbe9e3;color:#9a3d30;animation:overload-pulse 2.4s ease-in-out infinite}
@keyframes overload-pulse{0%,100%{box-shadow:0 0 0 0 #d9a09300}50%{box-shadow:0 0 0 4px #d9a09333}}
.perf-lite .header-status-pill.is-overload{animation:none}
/* bag: weight chip on every card, header weight, compact filter button */
#bag .inventory-art{position:relative}
#bag .item-weight{position:absolute;right:2px;bottom:2px;padding:1px 6px;border-radius:7px;background:#fffdf4e6;border:1px solid #e3d9b8;font:650 9.5px/1.3 Interface,sans-serif;color:#7a6f50;pointer-events:none}
#bag .bag-weight{font-weight:650;color:#5e6b4f}#bag .bag-weight.is-over{color:#a3412f}
#bag .bag-search-row{align-items:center}
#bag .bag-filter-toggle{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border:1px solid #cdd2b9;border-radius:8px;background:#fffef7;color:#476d62;font:650 12px/1 Interface,sans-serif;flex:none}
#bag .bag-filter-toggle i{font-style:normal;transition:transform .2s ease}
#bag .bag-filter-toggle[aria-expanded="true"] i{transform:rotate(180deg)}
#bag .bag-filter-fold .filter-tabs{margin:8px 0 0}
#bag .bag-filter-fold .filter-tabs[hidden]{display:none!important}
/* health block in one row: heart, number, a slim bar filling the rest */
.opponent-card .opponent-stats{height:auto!important;min-height:0!important;padding:0!important;display:block!important}
.opponent-card .opponent-hp{display:flex!important;align-items:center;gap:7px;height:30px;margin:4px 6px;padding:0 9px 0 5px;box-sizing:border-box}
.opponent-card .opponent-hp-heart{flex:none}
.opponent-card .opponent-hp b{flex:none;min-width:22px}
.opponent-card .opponent-hp i{flex:1 1 auto;height:5px;min-width:16px}

/* «Бои рядом» (05.11.2026): rises inside the enemies panel, exactly its size */
.world-panel-nearby[aria-pressed="true"]{border-color:#bba16a;background:#f3e8c8}
.world-panel-nearby>img{opacity:.75}
.world-panel-nearby[aria-pressed="true"]>img{opacity:1}
#nearby-battles{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;box-sizing:border-box;padding:6px 12px 10px;background:#fcf8ed;border-radius:inherit;transform:translateY(102%);transition:transform .28s cubic-bezier(.22,.8,.3,1);will-change:transform}
#nearby-battles[hidden]{display:none}
#nearby-battles.is-open{transform:none}
#nearby-battles>header{position:relative;flex:none;display:flex;align-items:center;justify-content:center;min-height:30px;margin-bottom:6px;touch-action:none;cursor:grab}
#nearby-battles .nearby-grip{position:absolute;top:0;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:#d3cfb6}
#nearby-battles h2{margin:5px 0 0;font:500 14px/1.2 Georgia,'Noto Serif',serif;color:#2f4a30}
#nearby-battles>header button{position:absolute;right:0;top:2px;width:26px;height:26px;padding:0;border:1px solid #d8cdb5;border-radius:7px;background:#fbf8ed;color:#6b7560;font-size:16px;line-height:1}
#nearby-battles .nearby-list{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:7px;scrollbar-width:none;overscroll-behavior:contain;touch-action:pan-y}
#nearby-battles .nearby-list::-webkit-scrollbar{display:none}
#nearby-battles .nearby-empty{margin:auto;text-align:center;color:#8a866e;font-size:12px}
#nearby-battles .nearby-battle{flex:none;padding:7px 9px;border:1px solid #ddd3b8;border-radius:10px;background:#fffdf4}
#nearby-battles .nearby-sides{display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:7px;align-items:center}
#nearby-battles .nearby-vs{width:16px;height:16px;opacity:.6}
#nearby-battles ul{margin:0;padding:0;list-style:none;display:grid;gap:5px;min-width:0}
#nearby-battles li{display:flex;align-items:center;gap:6px;min-width:0}
#nearby-battles li>img{flex:none;width:30px;height:30px;border-radius:7px;object-fit:cover;object-position:top;background:#efe9d3;border:1px solid #dcd3b7}
#nearby-battles li>span{flex:1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:5px;align-items:baseline}
#nearby-battles .nearby-name{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:600;color:#2e3a2a}
#nearby-battles .nearby-name b{font-weight:inherit}
#nearby-battles .nearby-name.is-run{text-overflow:clip}
#nearby-battles .nearby-name.is-run b{display:inline-block;animation:nearby-name var(--time,4s) ease-in-out both}
@keyframes nearby-name{0%,12%{transform:none}46%,60%{transform:translateX(var(--shift,0))}92%,100%{transform:none}}
#nearby-battles .nearby-foes li>img{order:2}
#nearby-battles li small{flex:none;font-size:10px;color:#827c63;white-space:nowrap}
#nearby-battles li.is-friend .nearby-name{color:#2f6a3a}
#nearby-battles li .nearby-bar{grid-column:1/-1;display:flex;align-items:center;gap:6px;margin-top:4px;min-width:0}
#nearby-battles .nearby-bar i{flex:1;min-width:0;display:block;height:4px;border-radius:2px;background:#e6dfc6;overflow:hidden}
#nearby-battles .nearby-bar em{display:block;height:100%;background:#5c9a4e;transition:width .3s ease}
#nearby-battles .nearby-foes .nearby-bar em{background:#b8483c}
#nearby-battles .nearby-bar u{flex:none;font-size:10px;font-weight:500;line-height:1;color:#8a866e;text-decoration:none;font-variant-numeric:tabular-nums}
#nearby-battles .nearby-battle>footer{margin-top:6px}
#nearby-battles .nearby-join{width:100%;min-height:28px;border:1px solid #cdc6a6;border-radius:8px;background:#eee9d4;color:#46603f;font:inherit;font-size:12px;font-weight:600}
#nearby-battles .nearby-join:disabled{opacity:.6}
#nearby-battles .nearby-reason{margin:0;font-size:11px;line-height:1.25;color:#8a6a50;text-align:center}
#nearby-battles .nearby-join+.nearby-reason:not(:empty){margin-top:4px}
#nearby-battles .nearby-reason:empty{display:none}
/* 03.11.2026 HP row v3: slim and contained — heart, number and a short bar stay inside the card */
.opponent-card .opponent-stats.has-hp{display:block!important;width:auto!important;min-width:0!important;overflow:hidden!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;scroll-snap-type:none!important}
.opponent-card .opponent-hp{display:flex!important;align-items:center;gap:5px;box-sizing:border-box;width:auto!important;max-width:calc(100% - 12px);height:22px!important;margin:3px auto!important;padding:0 7px 0 4px!important;border:1px solid #ecd6d0!important;border-radius:7px!important;background:#fdf3f0!important;overflow:hidden}
.opponent-card .opponent-hp-heart{flex:none;width:15px!important;height:15px!important;background:none!important}
.opponent-card .opponent-hp-heart .icon{font-size:12px!important}
.opponent-card .opponent-hp b{flex:none;min-width:0!important;font:700 12px/1 Interface,sans-serif!important}
.opponent-card .opponent-hp i{flex:1 1 0!important;min-width:0!important;width:auto!important;height:4px!important}
/* overload: a status icon beside the Valgard mark; the note opens on tap */
#header-overload.header-status-icon{display:grid;place-items:center;padding:0}
#header-overload.header-status-icon img{width:24px;height:24px;object-fit:contain}

/* 03.11.2026 HP row v4: smaller, never clipped */
.opponent-card .opponent-stats.has-hp{display:flex!important;align-items:center;justify-content:center;overflow:visible!important}
.opponent-card .opponent-hp{height:18px!important;max-width:calc(100% - 16px);margin:1px auto!important;padding:0 6px 0 3px!important;gap:4px;border-radius:6px!important}
.opponent-card .opponent-hp-heart{width:12px!important;height:12px!important}
.opponent-card .opponent-hp-heart .icon{font-size:10px!important}
.opponent-card .opponent-hp b{font:700 10px/1 Interface,sans-serif!important}
.opponent-card .opponent-hp i{height:3px!important;max-width:34px}
.opponent-card .opponent-hp i{flex:0 0 30px!important;width:30px!important}

/* The entire painted frame fills the world area; markers keep their circular size. */
#world:not(.in-dungeon) #map{background:#d4d5bf;}
#world:not(.in-dungeon) #map::before{display:none;}
#world:not(.in-dungeon) #map-art{background:transparent;}
#world:not(.in-dungeon) #map-art::before{display:none;}
#world:not(.in-dungeon) #map-art>.scene{object-fit:fill;object-position:center;}
#world:not(.in-dungeon) #map-roads{display:block!important;}
#world:not(.in-dungeon) .world-road-bed{stroke:#887650;stroke-width:16;opacity:.3;}
#world:not(.in-dungeon) .world-road-dots{stroke:#cbbb94;stroke-width:7;stroke-dasharray:none;opacity:.78;}
#world:not(.in-dungeon) .world-road-route-halo{stroke:#786b4b;stroke-width:13;opacity:.38;}
#world:not(.in-dungeon) .world-road-route{stroke:#fff6d9;stroke-width:7;stroke-dasharray:12 17;animation:world-route-flow 3.4s linear infinite;}
#world:not(.in-dungeon) .route-locked .world-road-route{stroke:#ddd6bf;opacity:.7;}
#world:not(.in-dungeon) .route-walking .world-road-route{stroke:#fff9e5;animation-duration:2.8s;}
#world:not(.in-dungeon) .world-road-progress{stroke:#dcc391;stroke-width:3;opacity:.65;}

/* Keep the chapter badge visible when larger text leaves little illustration space. */
#world .world-chapter-pass{grid-template-rows:minmax(0,1fr) auto auto auto;}

/* Opaque ivory rims separate the small paintings from similar terrain colours. */
#world:not(.in-dungeon) .world-map-pin .world-map-medallion{background:#fff8e5!important;filter:none!important;box-shadow:0 0 0 2.5px #fff9e9,0 0 0 3.5px #4b5c43,0 3px 6px #14261bc4!important;}
#world:not(.in-dungeon) .world-map-pin .world-map-medallion>img{object-fit:cover!important;filter:brightness(1.13) contrast(1.12) saturate(1.07)!important;}
#world:not(.in-dungeon) .world-map-pin.locked .world-map-medallion>img{filter:brightness(1.12) contrast(1.12) saturate(.82)!important;}
#world:not(.in-dungeon) .world-map-pin .world-map-medallion::after{inset:-6px;border:1px dashed #fffef3;filter:none;box-shadow:none;}
#world:not(.in-dungeon) .world-map-pin:hover .world-map-medallion,#world:not(.in-dungeon) .world-map-pin:focus-visible .world-map-medallion{box-shadow:0 0 0 2.5px #fffdf4,0 0 0 3.5px #64816a,0 3px 6px #14261bc4!important;}
#world:not(.in-dungeon) .world-map-pin.selected .world-map-medallion{box-shadow:0 0 0 2.5px #fffaf0,0 0 0 4px #397c65,0 3px 6px #14261bc4!important;}

/* The chosen place name can wrap beside its thumbnail on narrow phones. */
#world:not(.in-dungeon) .destination .destination-copy{flex:1 1 0;min-width:0;max-width:100%;}
#world:not(.in-dungeon) .destination #destination-title{min-width:0;white-space:normal;word-break:normal;overflow-wrap:normal;}

/* 04.11.2026 areas inside a location: a compact strip of the centre and its areas above the actions */
.location-areas{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;margin:0 0 8px}
.location-area{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:7px;min-height:44px;padding:5px 7px;border:1px solid #d9d0b0;border-radius:11px;background:#fffdf5;text-align:left;cursor:pointer;overflow:hidden}
.location-area.is-here{border-color:#8fae86;background:#eef4e4;box-shadow:inset 0 0 0 1px #fff}
.location-area-art{width:34px;height:34px;border-radius:9px;background:#e7e0c8 center/cover no-repeat;box-shadow:inset 0 0 0 1px #00000014}
.location-area-copy{display:grid;gap:1px;min-width:0}
.location-area-copy strong{font:650 11.5px/1.2 Interface,sans-serif;color:#2f4a3f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.location-area-copy small{font:500 10px/1.2 Interface,sans-serif;color:#8d8668;white-space:nowrap}
/* enemy cards: monsters that are out stand on the left, the ones still respawning move to the right */
.world-opponents>.opponent-card[data-phase="ACTIVE"]{order:1}
.world-opponents>.opponent-card[data-phase="RESPAWNING"],.world-opponents>.opponent-card[data-phase="EMPTY"]{order:2}
#destination>.location-areas,.location-areas{margin:2px 14px 8px}

/* location scene (04.11.2026): the place itself over the map; its marks are the same pins as on the world map */
#map-stage>.location-scene{position:absolute;inset:0;z-index:6;overflow:hidden;background:#1d2a22}
.location-scene-art{position:absolute;inset:-4%;background:center/cover no-repeat}
.location-scene-veil{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 40%,transparent 40%,#0b140f40 100%)}
.location-scene-roads{position:absolute;inset:0;width:100%;height:100%}
.location-scene-roads path{fill:none;stroke:#f6ecd0;stroke-width:3.5;stroke-dasharray:10 9;stroke-linecap:round;opacity:.85;filter:drop-shadow(0 1px 1px #0009)}
#world .location-scene .location-scene-mark{position:absolute!important;transform:translate(-50%,-50%)!important;margin:0!important}
.location-scene-exit{position:absolute;transform:translate(-50%,-50%);display:grid;place-items:center;width:44px;height:44px;padding:0;border:2px dashed #fffbea;border-radius:50%;background:#2f4a3fcc;color:#fffbea;box-shadow:0 2px 6px #0007;cursor:pointer;touch-action:manipulation}
.location-scene-exit .icon{font-size:14px}.opponent-card.is-fighting .opponent-attack{background:#f3e6d6!important;color:#9a5b3c!important;border-color:#e2c4a6!important;opacity:1!important}.opponent-card.is-fighting .opponent-art img{filter:saturate(.75)}
/* 05.11.2026: выход на карту — настоящий рисунок компаса из нижней панели, ровно по центру и в тех же тонах, что соседние метки */
#location-scene .location-scene-exit,.location-scene-exit{width:46px;height:46px;border:2px dashed #fffbea;background:#f6eed8;box-shadow:0 2px 6px #0006,inset 0 0 0 2px #fffaf0;overflow:hidden}
.location-scene-exit>img{display:block;width:34px;height:34px;object-fit:contain;pointer-events:none}
/* маршрут не перерисовывает страницу в каждом кадре: на телефоне стоит, на компьютере идёт шагами */
#world:not(.in-dungeon) .world-road-route,.world-road-route{animation-timing-function:steps(36)}
.perf-lite .world-road-route,.perf-lite #world:not(.in-dungeon) .world-road-route{animation:none}
.location-scene-exit{background:#f6eed8}
/* компас выхода на карту — такая же метка, как у локаций */
#location-scene .location-scene-exit.is-medallion,.location-scene-exit.is-medallion{width:auto;height:auto;padding:0;border:0;background:none;box-shadow:none;overflow:visible;border-radius:0}
.location-scene-exit.is-medallion .world-map-medallion>img{display:block;width:100%;height:100%;margin:0;object-fit:cover;border-radius:50%}
