/* A compact catch bag: only the types you own, with one action surface. */
.conversation-close{z-index:4;pointer-events:auto;isolation:isolate;min-width:36px;min-height:36px}
.location-panel[data-place=inventory],.location-panel[data-place=npc][data-topic=sell]{width:min(650px,calc(100vw - 30px));height:fit-content;inset:0;margin:auto;max-height:76dvh}
.location-panel[data-place=inventory]>.panel-content,.location-panel[data-place=npc][data-topic=sell]>.panel-content{max-height:calc(76dvh - 72px);padding:18px 22px 22px;overflow:auto}
.location-panel[data-place=npc][data-topic=sell]{bottom:0}
.location-panel[data-place=npc][data-topic=sell]>.panel-header{position:relative;inset:auto;min-height:60px;padding:12px 20px!important;display:flex;z-index:2}
.location-panel[data-place=npc][data-topic=sell]>.panel-header>img,.location-panel[data-place=npc][data-topic=sell]>.panel-header>div{visibility:visible;display:block}
.location-panel[data-place=npc][data-topic=sell]>.panel-header #panel-kicker{display:none}
.fish-bag{color:#18485e;min-width:0;font:14px/1.45 system-ui,sans-serif}
.fish-bag-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px;padding-bottom:13px;border-bottom:1px solid #b3cdca}
.fish-bag-heading p{margin:0;color:#60808a;font-size:13px}
.fish-bag-heading>strong{font-size:16px;white-space:nowrap;color:#18485e}
.fish-bag-heading h2{font:800 21px/1.2 system-ui,sans-serif;color:#18485e;margin:0 0 4px}
.nori-bag-heading>.resident-art{width:42px;height:68px;flex:0 0 42px}
.nori-bag-heading>div{flex:1}
.fish-bag-tabs,.fish-bag-navigation{display:flex;align-items:center;gap:8px;margin:0 0 18px}
.fish-bag-tabs>button{border:1px solid transparent;background:transparent;font:700 14px system-ui;color:#336477;padding:9px 17px;min-height:40px;border-radius:5px;cursor:pointer}
.fish-bag-tabs>button[aria-pressed=true]{background:#ffe59a;border-color:#d6b252;box-shadow:inset 0 0 0 2px #fff3c5}
.fish-bag-tabs>span,.fish-bag-navigation>span{margin-left:auto;font-size:12px;color:#65828b}
.fish-bag-navigation .pixel-button{min-height:36px;font:700 12px system-ui;padding:7px 12px}
.fish-stack-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;align-items:start}
.fish-stack{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:145px;padding:20px 7px 12px;border:1px solid #b2c8bb;border-radius:6px;background:linear-gradient(#f6f6e9,#eaf0df);box-shadow:inset 0 0 0 3px #fffbed;color:#194b5e;cursor:pointer}
.fish-stack.rarity-Rare{background:linear-gradient(#eef7f8,#dceef0);border-color:#a6c9d2}
.fish-stack.rarity-Epic{background:linear-gradient(#f5effa,#e8e0f1);border-color:#c1b2ce}
.fish-stack.rarity-Legendary{background:linear-gradient(#fff3d6,#f8e5ab);border-color:#d7b359}
.fish-stack:hover{border-color:#5eacb7;box-shadow:inset 0 0 0 2px #fffbe6,0 3px 9px #4779861a}
.fish-stack[aria-pressed=true]{background:#fff0af;border-color:#d3a92a;box-shadow:inset 0 0 0 3px #fff7d8}
.fish-stack .fish-art{display:block;width:72px;height:64px;flex-basis:64px;background-color:transparent;border:0;image-rendering:pixelated;filter:drop-shadow(0 3px #42738614)}
.fish-stack strong{font:750 13px/1.4 system-ui;margin-top:8px;text-align:center}
.fish-stack small{font:11px/1.4 system-ui;color:#61808b;margin-top:3px}
.fish-stack-count{position:absolute;right:9px;top:8px;color:#265b6d;font:800 15px/1 system-ui}
.fish-bag-hint{font-size:12px!important;color:#69878c!important;margin:16px 0 0!important}
.fish-bag-notice{padding:10px 12px;border:1px solid #b5d3b5;border-radius:4px;background:#e5f4dc;color:#2f704d;font:650 13px/1.5 system-ui;margin:0 0 15px}
.fish-bag-notice[hidden]{display:none}
.fish-popover{position:fixed;inset:auto;margin:0;padding:17px;width:310px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box;border:2px solid #d2ac50;border-radius:7px;background:#fff9e9;color:#194a60;box-shadow:inset 0 0 0 2px #ffefbc,0 8px 28px #183a4e38;font:13px/1.45 system-ui,sans-serif}
.fish-popover::backdrop{background:transparent;pointer-events:none}
.fish-popover header{display:flex;align-items:center;gap:13px;padding:0 26px 12px 0;border-bottom:1px solid #b9cdca}
.fish-popover header .fish-art{width:54px;height:49px;flex:0 0 54px;border:0;background-color:transparent}
.fish-popover h3{font:800 18px/1.25 system-ui;margin:0 0 5px;color:#194a60}
.fish-popover header small{display:block;color:#6b8487;margin-top:4px}
.fish-popover .play-rarity{font:700 11px system-ui}
.fish-popover-close{position:absolute;right:9px;top:9px;width:32px;height:32px;border:1px solid #d5b66e;border-radius:4px;color:#20516a;background:#fff0c4;font:24px/1 system-ui;cursor:pointer}
.fish-stamp-label,.fish-price-label{display:block;margin:12px 0;color:#66818a;font:12px/1.5 system-ui}
.fish-stamp-label select,.fish-price-label input{display:block;width:100%;box-sizing:border-box;border:1px solid #a6c5c7;border-radius:4px;padding:8px;background:#fffdf4;color:#194a60;font:600 13px system-ui;margin-top:5px}
.fish-quantity{display:flex;gap:6px;align-items:center;margin:14px 0}
.fish-quantity>button{border:1px solid #a7c6c7;border-radius:4px;background:#e8f3ef;color:#205369;min-width:36px;height:38px;font:750 16px system-ui;cursor:pointer}
.fish-quantity>button:last-child{font-size:12px;flex:1}
.fish-quantity input{box-sizing:border-box;width:70px;max-width:100%;height:38px;text-align:center;font:750 16px system-ui;color:#205369;background:#fffdf4;border:1px solid #a7c6c7;border-radius:4px;appearance:textfield}
.fish-quantity input::-webkit-inner-spin-button{appearance:none}
.fish-proceeds{padding:11px 0;border-top:1px solid #d2dccc;border-bottom:1px solid #d2dccc}
.fish-proceeds>span{display:block;font-size:12px;color:#66818a}
.fish-proceeds>strong{display:block;font:800 22px/1.6 system-ui;color:#194a60}
.fish-proceeds>small{display:block;font-size:11px;color:#6d878c}
.fish-limit{font:11px/1.5 system-ui;color:#70888c;margin:10px 0}
.fish-popover-actions{display:flex;gap:8px;margin-top:12px}
.fish-popover-actions .pixel-button{flex:1;padding:10px 8px;min-height:40px;font:750 12px/1.3 system-ui}
.fish-popover button:disabled{opacity:.45;cursor:default}
.fish-action-error{font:12px/1.5 system-ui;color:#9c4332;background:#fff0df;padding:8px;border-radius:4px;margin:10px 0 0}
.fish-popover button:focus-visible,.fish-stack:focus-visible,.fish-bag-tabs button:focus-visible{outline:3px solid #248eb1;outline-offset:3px}
@media(max-width:600px){
 .location-panel[data-place=inventory],.location-panel[data-place=npc][data-topic=sell]{width:calc(100vw - 24px);max-height:83dvh;inset:0;margin:auto}
 .location-panel[data-place=inventory]>.panel-content,.location-panel[data-place=npc][data-topic=sell]>.panel-content{padding:12px 14px 16px;max-height:calc(83dvh - 65px)}
 .fish-bag-heading{gap:10px}.fish-bag-heading>strong{font-size:13px}.nori-bag-heading h2{font-size:18px}.nori-bag-heading p{font-size:11px}.nori-bag-heading>.resident-art{width:32px;flex-basis:32px;height:54px}
 .fish-stack-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.fish-stack{min-height:119px;padding:19px 5px 10px}.fish-stack .fish-art{width:58px;height:52px;flex-basis:52px}.fish-stack strong{font-size:11px}.fish-stack small{font-size:10px}.fish-stack-count{font-size:13px;right:7px;top:7px}
 .fish-bag-tabs>button{padding:8px 12px;font-size:13px}.fish-popover{width:300px;padding:14px}.fish-quantity>button,.fish-popover-actions .pixel-button{min-height:44px}.fish-popover-close{min-height:36px;min-width:36px}
}
/* Junk uses the approved transparent atlas at the existing catch-icon size. */
.scrap-art{display:inline-block;width:50px;height:50px;flex-shrink:0;background-image:url('./assets/pixel/fishing-junk-v42.png');background-size:300% 100%;background-position:var(--junk-x,0%) 0;background-repeat:no-repeat;image-rendering:pixelated}
.junk-help{font:13px/1.5 system-ui;color:#64828a;margin:0 0 15px}
.junk-stack .scrap-art{width:64px;height:64px;flex-basis:64px}
.junk-stack{background:linear-gradient(#f5f5e8,#e7eee1);border-color:#b5c9bc}
.junk-popover header .scrap-art{width:54px;height:54px;flex:0 0 54px}
.junk-popover .junk-help{margin:14px 0 12px}
.junk-popover .fish-popover-actions .pixel-button{font-size:14px}
@media(max-width:600px){.junk-stack .scrap-art{width:52px;height:52px;flex-basis:52px}}
