/* Cards grow vertically and wrap their own labels rather than crossing neighbours. */
.world-shop,.weapon-grid,.world-loadout{grid-template-columns:repeat(2,minmax(0,1fr))}.world-shop>article,.world-loadout>article,.weapon-choice,.item-slot{min-width:0;overflow:hidden}.world-shop h3,.world-loadout b,.weapon-choice strong,.item-slot strong,.enemy-name-row strong{white-space:normal!important;overflow-wrap:anywhere;word-break:normal;text-wrap:balance;max-width:100%;line-height:1.25!important}.weapon-choice strong{min-height:2.5em;font-size:clamp(10px,2.6vw,12px)!important;text-align:center}.world-shop h3{font-size:17px!important}.world-shop p{overflow-wrap:anywhere;font-size:12px!important}.weapon-detail-title{flex-wrap:wrap}.weapon-detail-title h2{overflow-wrap:anywhere}.weapon-details dl>div{min-width:0;flex-wrap:wrap}.weapon-details dd{white-space:normal!important}.item-slot strong{font-size:clamp(10px,3vw,15px)!important}.enemy-name-row strong{font-size:clamp(11px,3vw,19px)!important}.world-shop .weapon-art,.world-shop .ammo-art{height:110px;width:100%;flex-shrink:0}.ammo-art{display:block;aspect-ratio:1;background-image:url('./assets/ammo-sprites-v2.webp');background-size:300% 200%;background-repeat:no-repeat}.ammo-bullets{background-position:0 0}.ammo-shells{background-position:50% 0}.ammo-cells{background-position:100% 0}.ammo-bolts{background-position:0 100%}.ammo-nails{background-position:50% 100%}.ammo-flares{background-position:100% 100%}
.enemy[data-enemy="boris"] .character-art{background:none!important;display:block!important}.enemy[data-enemy="boris"] .character-art svg{width:100%;height:100%;display:block;overflow:hidden}.enemy[data-enemy="boris"].dead .character-art{display:none!important}
/* A name sits below the face; the larger transparent body target remains tappable. */
.room-plane .hotspot-talk{top:78%!important;height:40%;transform:translate(-50%,-75%)}.room-plane .hotspot-talk .room-label{position:absolute;bottom:0}.room-plane .hotspot-inspect .room-label{max-width:100%;font-size:13px}.road-panel,.road-summary{position:absolute;z-index:14;left:12px;right:12px;top:calc(var(--world-header-height,64px) + 58px);border:1px solid #b7a36a;border-radius:14px;padding:16px;background:linear-gradient(130deg,#273327f7,#101b15fa);box-shadow:0 8px 40px #000a;color:#efe4c7}.road-panel.has-attack{border-color:#e6a55b;background:linear-gradient(130deg,#4b3021fa,#1e2518fa);z-index:20}.road-panel h3{font-size:23px!important;margin:4px 0 10px!important}.road-panel p{font-size:13px!important;margin:8px 0!important;line-height:1.5!important}.road-panel>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.road-panel button,.road-summary button{min-height:44px;border:1px solid #a99c62;border-radius:7px;background:#3f492b;color:#f2e1b9;padding:9px;font-size:13px;white-space:normal}.road-panel button:first-child{background:#c2a665;color:#162415;font-weight:700}.road-panel progress{width:100%;height:8px;accent-color:#cbb16b}.road-summary{top:auto;bottom:calc(62px + env(safe-area-inset-bottom,0px));display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px}.road-summary b{font-size:13px}.road-summary span{font-size:12px}.road-summary button:last-child{margin-left:auto;font-size:20px}.road-panel small{letter-spacing:.12em;color:#d6c391!important}
#adventure.illustrated .illustrated-nav{min-height:calc(58px + env(safe-area-inset-bottom,0px))}.scene-modal-layer{bottom:calc(58px + env(safe-area-inset-bottom,0px))}
@media(min-width:550px){.weapon-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:360px){.road-panel{padding:12px}.road-panel>div{grid-template-columns:1fr}.world-shop h3{font-size:15px!important}.road-panel h3{font-size:20px!important}}

.bag-stock .ammo-art{width:52px;height:52px;flex-shrink:0}.bag-stock{display:flex!important;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}.report-economy{padding:12px;border:1px solid #bd9c57;border-radius:8px;background:#2a3521;color:#ead59d;font-size:13px;line-height:1.5}

.enemy[data-enemy="boris"] .enemy-name-row strong{font-size:clamp(16px,4vw,22px)!important}

.gear-tabs button{min-width:0;height:auto;min-height:62px}.gear-tabs small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;line-height:1.3;min-height:2.6em}.world-equipment summary{white-space:normal;overflow-wrap:anywhere}.world-loadout b{min-height:2.5em}

/* Fixed old translations caused the rest/name overlap. Only the measured layout moves labels. */
.room-plane .room-label{min-height:44px;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;text-wrap:balance;line-height:1.2;transform:none}.room-plane .hotspot-talk{top:64%!important;height:52%;transform:translate(-50%,-50%)!important}.room-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px 12px;flex-shrink:0;background:#1c261a;border-top:1px solid #8b774b}.room-actions[hidden]{display:none!important}.room-actions button{min-width:0;min-height:44px;border:1px solid #b39a5a;background:linear-gradient(#323b28,#182116);color:#f1dfb0;border-radius:7px;padding:8px;font-size:13px;line-height:1.25;overflow-wrap:anywhere}

#adventure.illustrated .scene-toast{position:relative;inset:auto;margin:6px 12px;flex-shrink:0;max-height:100px;overflow:auto;padding-right:46px}#adventure.illustrated .scene-toast button{width:44px;height:44px}

/* Intrinsic width keeps short scene actions on one line inside narrow hit targets. */
.room-plane .room-label{width:max-content;flex-shrink:0;white-space:nowrap;overflow-wrap:normal;text-wrap:nowrap;font-size:clamp(12px,2.8vw,17px)}
.room-label>span{flex-shrink:0}
