/* Map underlap reveals the rounded upper corners of the location card. */
#world .map{bottom:calc(var(--card) - 14px)}
#world .destination{border-radius:22px;transition:none}
#world .destination-heading{margin-right:0}
#world .destination>.location-inline-panel{padding:13px 15px;border-radius:21px}
.world-panel-heading{padding-right:0;gap:7px}
.location-inline-panel[data-world-side="1"]>.world-panel-heading{flex-direction:row-reverse}
.location-inline-panel[data-world-side="1"]>.world-panel-heading>h3{text-align:right}
.world-panel-heading>small{max-width:25%;font-size:8px}
.world-panel-swipe,.location-fold-toggle{display:none!important}
/* A native asset owns the framed preview; no picture or circular duplicate. */
#world .world-choice{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(36px,1fr) 24px 29px;align-items:stretch;justify-content:stretch;gap:7px;padding:8px;border-radius:12px}
#world .world-choice-scene{display:grid;place-items:center;min-height:0;width:100%;border:1px solid #dfd2b5;border-radius:8px;background:#f7f3e8;overflow:hidden}
#world .world-choice-scene>.world-choice-asset{display:block;width:clamp(49px,17vw,70px);height:70px;max-width:72%;max-height:72%;object-fit:contain;filter:none;opacity:.98}
#world .world-choice>strong{display:grid;place-items:center;margin:0;min-height:0;font:700 clamp(16px,4.3vw,19px)/23px Interface,sans-serif;color:#315f55}
#world .world-choice-footer{display:grid;grid-template-columns:minmax(0,1fr) 15px;gap:4px;align-items:center;width:100%;height:29px;min-width:0}
#world .world-choice[data-world-side="1"]>.world-choice-footer{grid-template-columns:15px minmax(0,1fr)}
#world .world-choice-caption{display:flex;align-items:center;justify-content:center;gap:6px;grid-column:1;grid-row:1;min-width:0;height:29px;padding:3px 6px;border:1px solid #ddd0b5;border-radius:8px;background:#f2eddf;color:#8c8067;font-size:9px;line-height:11px}
#world .world-choice[data-world-side="1"] .world-choice-caption{grid-column:2}
#world .world-choice-caption-label{min-width:0;white-space:nowrap}
#world .world-choice-caption>b{flex:none;display:grid;place-items:center;min-width:21px;height:20px;padding:2px 4px;border:1px solid #cfd7bf;border-radius:6px;background:#e6ecdc;color:#59735c;font-size:9px;line-height:14px;white-space:nowrap}
#world .world-choice-caption-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-align:center;text-wrap:balance;font-size:8px;line-height:11px}
#world .world-choice .world-choice-direction{display:grid;place-items:center;position:static;grid-column:2;grid-row:1;width:15px;height:29px;opacity:.68;pointer-events:none;transform:none}
#world .world-choice[data-world-side="1"] .world-choice-direction{grid-column:1}
#world .world-choice .world-choice-direction>.icon{font-size:12px}
#world .world-choice.is-favourite:after{top:12px;right:12px}
/* Workshop previews use service assets in the same ink as the main blocks. */
.world-npc-scene{display:grid;place-items:center;align-self:stretch;width:100%;min-height:32px;border:1px solid #dfd2b5;border-radius:9px;background:#f7f3e8}
.world-npc-scene>img,.world-npc-card.npc-master .world-npc-scene>img{width:64px;height:64px;max-width:65%;max-height:70%;border:0;border-radius:0;object-fit:contain;object-position:center;filter:none;transform:none}
.world-npc-card>strong{font-size:17px;line-height:21px}
.world-person>img,.world-person>img.is-portrait{align-self:center;justify-self:center;width:74px;height:74px;max-height:74px;padding:9px;border:1px solid #ded2b8;border-radius:10px;background:#f6f1e5;object-fit:contain;object-position:center}
.world-forge-master>img{padding:7px;width:48px;height:48px;border:1px solid #ded2b8;background:#f6f1e5;object-fit:contain}
/* The item name and owned amount share one aligned lead. Type appears once. */
.world-pit-item-lead{display:grid;grid-template-columns:65px minmax(0,1fr);align-items:center;gap:11px;min-height:85px;padding:9px 11px;border:1px solid #d9cbb0;border-radius:10px;background:#f6f0df}
.world-pit-detail-thumb{display:grid;place-items:center;width:65px;height:65px;padding:4px;border:1px solid #ded0b3;border-radius:8px;background:#fffaf0}
.world-pit-detail-thumb>img{display:block;width:54px;height:54px;object-fit:contain;filter:none}
.world-pit-item-lead>.world-pit-detail-copy{display:flex;flex-direction:column;gap:5px;min-width:0;align-items:flex-start}
.world-pit-detail-copy>.world-pit-detail-rarity{font-size:8px;line-height:11px;color:#a08b64}
.world-pit-detail-copy>strong{max-width:100%;font:700 17px/20px Interface,sans-serif;color:#3b6858;text-wrap:balance;overflow-wrap:break-word}
.world-pit-detail-copy>.world-pit-detail-stock{display:flex;align-items:center;gap:7px;min-height:20px;font-size:9px;line-height:13px;color:#849077}
.world-pit-detail-stock>b{display:grid;place-items:center;min-width:27px;padding:2px 5px;border:1px solid #cfd7bf;border-radius:6px;background:#e9efdf;font-size:10px;line-height:14px;color:#58765d}
.world-pit-detail-stock>small{font-size:8px;color:#9b8e76}
.world-pit-properties{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-height:24px;margin:0 0 7px}
.world-pit-properties>span{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border:1px solid #ddd1b7;border-radius:6px;background:#f3eddd;font-size:9px;line-height:13px;color:#67806b}
.world-pit-properties>span>img{width:14px;height:14px;object-fit:contain}
.world-pit-properties>small{font-size:9px;line-height:13px;color:#a08c69}
.world-pit-quantity{display:grid;grid-template-columns:minmax(0,1fr) 28px 30px 28px auto;align-items:center;gap:5px}
.world-pit-quantity>span{margin:0}
.world-pit-quantity>button,.world-pit-quantity>output{width:100%;min-width:0}
.world-pit-quantity>button:last-child{padding:3px 8px}
/* Potion cards read vertically; the drawer remains one native horizontal scroller. */
#battle-root .spell-panel-battle .battle-console{--potion-drawer-height:clamp(190px,27dvh,224px)}
#battle-root .spell-panel-battle .combat-drawer[data-active="potions"][data-open="true"]{height:var(--potion-drawer-height)}
#battle-root .spell-panel-battle .combat-drawer>.combat-potions{height:calc(var(--potion-drawer-height) - 6px);padding:8px;scrollbar-width:none;-ms-overflow-style:none;scroll-snap-type:none;touch-action:pan-x;overscroll-behavior-x:contain;cursor:grab;user-select:none;-webkit-user-select:none}
#battle-root .combat-potions::-webkit-scrollbar,#battle-root .battle-potion-list::-webkit-scrollbar{display:none;width:0;height:0}
#battle-root .combat-potions.is-dragging,#battle-root .combat-potions.is-dragging *{cursor:grabbing!important}
#battle-root .combat-potions img{-webkit-user-drag:none;user-select:none;pointer-events:none}
#battle-root .spell-panel-battle .battle-potion-list{gap:10px;align-items:stretch;width:max-content;min-width:100%;height:100%}
#battle-root .spell-panel-battle .battle-potion-card{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:42px 27px minmax(33px,1fr) 25px;justify-content:stretch;flex:0 0 162px;width:162px;height:100%;gap:4px;padding:7px 9px;border:1px solid #d4c5a6;border-radius:12px;background:#fffcf3;box-shadow:inset 0 0 0 2px #fffef8;overflow:hidden;text-align:center;scroll-snap-align:none}
#battle-root .potion-card-art{position:relative;display:grid;place-items:center;height:42px;min-height:0;padding:0 27px}
#battle-root .potion-card-art>.potion-card-bottle{display:grid;place-items:center;width:42px;height:42px;min-height:0;max-height:none;padding:2px;border:1px solid #e0d3b8;border-radius:9px;background:#f7f0df}
#battle-root .potion-card-art>.potion-card-bottle>img{display:block;width:36px;height:37px;max-height:none;object-fit:contain}
#battle-root .potion-card-stock{position:absolute;right:0;top:1px;display:flex;align-items:center;flex-direction:column;gap:3px;min-width:27px;color:#829075}
#battle-root .potion-card-stock>small{font-size:7px;line-height:9px}
#battle-root .potion-card-stock>b{padding:2px 5px;min-width:25px;border:1px solid #d9ceb5;border-radius:6px;background:#f2eddc;font-size:10px;line-height:13px;color:#557361}
#battle-root .battle-potion-card>.potion-card-name{align-self:center;margin:0;font:700 13px/15px Interface,sans-serif;color:#365f51;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-align:center}
#battle-root .potion-card-effect{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:0}
#battle-root .potion-card-effect>b{font-size:21px;line-height:24px;font-weight:800;color:#527859}
#battle-root .potion-resource .potion-card-effect>b{color:#4b7880}
#app[data-hero-class="warrior"] #battle-root .potion-resource .potion-card-effect>b{color:#9d8447}
#battle-root .potion-defense .potion-card-effect>b{color:#948251}
#battle-root .potion-card-effect>span{font-size:10px;line-height:12px;color:#63806b}
#battle-root .potion-card-effect>small{margin-top:2px;font-size:8px;line-height:10px;color:#a08e6e}
#battle-root .potion-card-use{min-height:25px;height:25px;padding:4px 3px;font-size:10px;line-height:14px;border-radius:7px;background:#e9f0df;border-color:#b9ccb0;color:#4a7054}
#battle-root .spell-panel-battle .battle-potion-card:disabled{opacity:.72}
#battle-root .battle-potion-card:disabled .potion-card-use{font-size:8px}
.loading-preview-button{display:flex;align-items:center;gap:11px;width:100%;min-height:61px;padding:10px 12px;margin:12px 0;border:1px solid #d1d7c1;border-radius:12px;background:#f1f3e7;color:#466e60;text-align:left}
.loading-preview-button>img{width:34px;height:34px;object-fit:contain}
.loading-preview-button>span:not(.icon){display:flex;flex-direction:column;gap:4px;flex:1}
.loading-preview-button strong{font-size:12px;line-height:16px}
.loading-preview-button small{font-size:10px;line-height:14px;color:#9b8e74}
.loading-preview-button>.icon{font-size:17px;color:#8c9d82}
@media(max-height:730px){
 #world .destination>.location-inline-panel{padding:10px 13px}
 #world .world-choice{grid-template-rows:minmax(24px,1fr) 21px 28px;gap:5px;padding:7px}
 #world .world-choice-scene>.world-choice-asset{width:54px;height:54px;max-height:72%}
 #world .world-choice>strong{font-size:16px;line-height:21px}
 .world-pit-item-lead{grid-template-columns:57px minmax(0,1fr);gap:9px;min-height:75px;padding:8px}
 .world-pit-detail-thumb{width:57px;height:57px}
 .world-pit-detail-thumb>img{width:48px;height:48px}
 .world-pit-detail-copy>strong{font-size:15px;line-height:18px}
 .world-pit-properties{gap:6px;margin-bottom:5px}
}
