.legendary-passive-card{grid-column:1 / -1;display:grid;gap:7px;min-width:0;margin-top:4px;padding:11px 12px;border:2px solid #d09b50;background:linear-gradient(135deg,rgba(111,65,38,.75),rgba(53,38,70,.85));color:#ffe7ad;overflow-wrap:anywhere}
.legendary-passive-card span{display:block;font-size:9px;font-weight:900;letter-spacing:.08em;line-height:1.4;color:#ffd166;overflow-wrap:anywhere}
.legendary-passive-card b{display:block;min-width:0;font-size:10px;line-height:1.55;color:#fff0c7;overflow-wrap:anywhere;word-break:break-word}
.aquarium-passive{margin:4px 0 6px}
.arena-passive{display:block;margin:4px 0 8px;color:#ffd166;font-size:9px;line-height:1.45;letter-spacing:.04em;overflow-wrap:anywhere}

/* Fish artwork stays inside its frame at every breakpoint. */
.inventory-card,.aquarium-card,.fish-inspector,.fight-panel,.arena-combatant,.catch-row,.shop-catch{min-width:0}
.bounded-art-frame{position:relative;min-width:0;overflow:hidden;box-sizing:border-box}
.inventory-sprite,.catch-image,.aquarium-fish-image,.inspector-image,.fight-fish{min-width:0;overflow:hidden}
.inventory-sprite{width:100%;height:auto;aspect-ratio:1;max-width:86px;align-self:start}
.catch-image{width:58px;height:58px;display:grid;place-items:center}
.aquarium-fish-image{box-sizing:border-box;height:150px!important}
.bounded-art-frame>img{position:absolute;inset:6px;display:block;width:calc(100% - 12px)!important;height:calc(100% - 12px)!important;max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important;object-fit:contain!important;transform:none!important;image-rendering:pixelated}
.inventory-card>span,.aquarium-fish-info,.fish-inspector>div:last-child,.catch-info,.shop-catch-info{min-width:0;overflow-wrap:anywhere}
.inventory-card>span strong,.aquarium-fish-info h3,.fish-inspector h3,.catch-info strong,.shop-catch-info strong{overflow-wrap:anywhere;word-break:break-word}
.inventory-card>span small,.aquarium-fish-info p:not(.eyebrow),.fish-description,.inline-fish-detail p,.inline-fish-detail span{line-height:1.6;overflow-wrap:anywhere;word-break:break-word}
.aquarium-fish-info{display:grid;gap:8px;align-content:start}
.aquarium-fish-info h3{margin:0}
.aquarium-fish-info p{margin:0}
.fish-inspector{grid-template-columns:minmax(140px,180px) minmax(0,1fr)}
.fish-inspector h3{line-height:1.15}
.fish-inspector dl{display:flex;flex-wrap:wrap;gap:12px 22px}
.fish-inspector dl div{min-width:0}
.fish-inspector dd{overflow-wrap:anywhere;word-break:break-word}
.inline-fish-detail{min-width:0;display:grid;gap:8px;line-height:1.5;overflow-wrap:anywhere}
.inline-fish-detail p{margin:0}
.inline-fish-detail span{display:block}
.inventory-card-actions,.inspector-actions{min-width:0}
.arena-team-slot img,.arena-combatant img,.arena-opponent img{display:block;max-width:100%;max-height:100%;object-fit:contain;transform:none!important}
.arena-team-slot h3,.arena-combatant h3,.arena-opponent strong{overflow-wrap:anywhere;word-break:break-word}

@media(max-width:620px){
  .inventory-sprite{max-width:58px}
  .catch-image{width:52px;height:52px}
  .aquarium-fish-image{height:132px!important}
  .fish-inspector{grid-template-columns:1fr}
  .inspector-image{height:220px}
  .fight-fish{width:230px!important;height:230px!important;margin:0 auto 18px!important}
  .legendary-passive-card{padding:10px}
}