/* Map and location controls retain the existing shell and bottom navigation. */
#world .map{background:#d9cfb2;transition:inset .32s cubic-bezier(.22,.75,.25,1)}
#world .map-art{background:#d9cfb2}
#world .destination{height:var(--card);gap:8px;padding:12px 14px;border-radius:22px 22px 0 0;transition:height .32s cubic-bezier(.22,.75,.25,1);overflow:visible}
#world .destination-heading{display:flex;align-items:center;gap:10px;justify-content:center;flex-shrink:0}
#world .destination-heading:before,#world .destination-heading:after{content:"";height:1px;background:#b8b09c80;flex:1}
#world .destination-kicker,#world #destination-kicker{font-size:10px;letter-spacing:2px;color:#8b806b}
#world .destination-thumb{width:58px;height:55px;border:1px solid #d5c7aa;border-radius:10px}
#world .destination-top{min-height:57px;gap:10px}
#world .destination h2{font-size:20px;line-height:1.1;color:#24585a}
#world .destination p{font-size:10px;line-height:1.4;color:#918571}
#world .destination-symbol{display:none}
#world .destination-divider{margin:0}
#world .location-here #destination-access,#world .location-here #primary-action{display:none!important}
#world .location-here .secondary-actions{display:block;margin:0;flex:1;min-height:0}
.location-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;height:100%;min-height:0}
.location-choice{position:relative;min-width:0;padding:4px 4px 6px;background:linear-gradient(#fffdf6,#f6f1e5);border:1px solid #d8c9ad;border-radius:10px;color:#24585a;display:flex;flex-direction:column;align-items:center;box-shadow:inset 0 0 0 2px #fff9;overflow:hidden;transition:transform .16s ease,background .2s}
.location-choice:active{transform:translateY(1px)}
.location-choice>img{width:100%;height:62px;min-height:35px;object-fit:cover;object-position:center 35%;border-radius:7px;border:1px solid #e0d5bc}
.location-choice:first-child>img{object-fit:contain;background:linear-gradient(#d8dfd2,#eadcc0)}
.location-choice-icon{display:grid;place-items:center;width:27px;height:27px;margin-top:-15px;border:1px solid #d6c5a1;border-radius:50%;background:#fbf6e9;z-index:1;color:#8d7755}
.location-choice-icon .icon{font-size:15px}
.location-choice strong{font-family:Interface,sans-serif;font-size:17px;line-height:1.15;margin:3px 0 4px}
.location-choice small{padding:3px 14px;min-width:75%;background:#eee5d23d;border:1px solid #e6dbc6;border-radius:14px;font-size:10px;color:#8a7c62}
.location-choice:disabled{opacity:.6}
.resident-card{display:flex;width:100%;align-items:center;gap:12px;padding:10px;margin:0 0 8px;background:#fcf9ef;border:1px solid #ddd4bd;border-radius:12px;text-align:left;color:#285c5b}
.resident-card>img{width:53px;height:56px;object-fit:contain;border-radius:8px}
.resident-card>span{display:flex;flex-direction:column;gap:5px;flex:1}
.resident-card>span>small{font-size:11px;color:#8f8673}
#world .map-pin{width:35px;height:35px;background:#faf4df;border:1.5px solid #bca77d;box-shadow:0 2px 5px #68553842;color:#837049}
#world .map-pin.selected{box-shadow:0 0 0 3px #faf4dfbb,0 0 0 5px #57786c75;background:#fcf9e9}
#world #traveler{pointer-events:none;z-index:5}
/* Journal contents are unchanged. Only its header shares a row with potions. */
#battle-root .battle-log{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:4px;row-gap:0}
#battle-root .battle-log>.battle-log-toggle{width:100%;min-width:0;border:1px solid #c8cfbd;border-radius:10px 10px 0 0;padding:7px 8px;min-height:32px;font-size:12px;background:#f5f6eb;color:#345f59}
#battle-root .potion-toggle>span{display:flex;gap:5px;align-items:center}
#battle-root .potion-toggle>span>img{width:16px;height:18px;object-fit:contain}
#battle-root .battle-log>.battle-log-content,#battle-root .combat-potions{grid-column:1/-1}
#battle-root .combat-potions{margin-top:5px;border:1px solid #d1d6c2;border-radius:10px;background:#f7f5e9;max-height:173px;overflow:auto;padding:7px}
#battle-root .combat-potions[hidden]{display:none!important}
#battle-root .battle-potion-list{display:flex;gap:7px;width:max-content;min-width:100%;align-items:stretch}
#battle-root .battle-potion-card{position:relative;display:flex;flex:0 0 98px;width:98px;min-height:125px;flex-direction:column;align-items:center;gap:4px;background:linear-gradient(#fffdf5,#f5efdc);border:1px solid #d8ccb3;border-radius:9px;padding:8px 6px;color:#345e56;text-align:center;box-shadow:inset 0 0 0 2px #fff8}
#battle-root .battle-potion-card>img{width:49px;height:53px;object-fit:contain}
#battle-root .battle-potion-card strong{font-size:10px;line-height:1.2}
#battle-root .battle-potion-card small{font-size:9px;line-height:1.3;color:#8c7c5c;white-space:normal}
#battle-root .potion-stack{position:absolute;top:5px;right:5px;font-size:10px;font-weight:700;background:#f8f8ecc9;padding:2px 4px;border-radius:5px}
#battle-root .battle-potion-card:disabled{opacity:.55}
#battle-root .combat-popup[class*="potion-"]{background:#f0f5e9f5;border:1px solid #93aa85;color:#537950}
#battle-root .combat-popup.potion-resource{background:#edf3f2f5;color:#467c89;border-color:#92b5b8}
#battle-root .combat-popup.potion-defense{background:#f8f0dcf5;color:#92702e;border-color:#bca269}
#battle-root .combat-popup[class*="potion-"]>img:first-child{width:17px;height:20px;object-fit:contain}
#battle-root .potion-bleed-badge{width:9px;height:9px;margin-left:-8px;align-self:flex-end}
#battle-root .aura-potion-mana{filter:hue-rotate(110deg) saturate(.9)}
#battle-root .aura-potion-might,#battle-root .aura-potion-defense{filter:hue-rotate(-52deg) saturate(1.2)}
.potion-item-sheet>header{display:flex;gap:16px;align-items:center;padding:13px 0 18px;border-bottom:1px solid #ddd5c0;margin-bottom:12px}
.potion-item-sheet>header>img{width:90px;height:100px;object-fit:contain;background:#f6f1df;border:1px solid #d8d0b8;border-radius:13px;padding:7px}
.potion-item-sheet>header>div{flex:1;min-width:0}
.potion-item-sheet h2{font-size:24px;color:#3d6459;line-height:1.12;margin:7px 0}
.potion-item-sheet header small,.potion-item-sheet header p{font-size:13px;color:#a0957e}
.potion-item-sheet .property-grid{grid-template-columns:1fr 1fr}
.potion-item-sheet .property-tile{min-width:0;border:1px solid #d8d1ba;background:#faf6e7;border-radius:11px;padding:12px 8px}
.potion-item-sheet .property-tile strong{font-size:14px;white-space:normal}
.potion-item-sheet details{border-block:1px solid #ded7c5;margin:14px 0;padding:12px 0}
.potion-item-sheet summary{display:flex;justify-content:space-between;font-size:13px;color:#9a8c74;cursor:pointer}
.potion-item-sheet details p{font-size:14px;line-height:1.5;color:#8b806b;margin-top:10px}
#battle-root .enemy-card[data-arrival-pending="true"]{visibility:hidden!important;pointer-events:none}
#battle-root .monster-unit.eldar-hand[data-arrival-state] .selection-floor,#battle-root .monster-unit.eldar-hand[data-arrival-state] .unit-health,#battle-root .monster-unit.eldar-hand[data-arrival-state] .battle-enemy-number{visibility:hidden!important}
@media(max-height:700px){#world .location-here{height:235px}#world .location-choice>img{height:45px}.potion-item-sheet>header>img{width:74px;height:82px}}
@media(prefers-reduced-motion:reduce){#world .map,#world .destination{transition:none}}

#battle-root .combat-effect-icon[data-effect-kind="damageBonus"],#battle-root .combat-effect-icon[data-effect-kind="defenseBonus"]{flex:0 0 auto;min-width:31px;width:auto;max-width:none;padding-inline:2px}
#battle-root .combat-effect-icon[data-effect-kind="damageBonus"] .effect-duration,#battle-root .combat-effect-icon[data-effect-kind="defenseBonus"] .effect-duration{white-space:nowrap;overflow:visible;flex-shrink:0}
