.gear-station{--ink:#eef6e8;--muted:#acc9cb;--border:#5c929c66;--foam:#b8ead9;--ocean:#153549;position:absolute;z-index:3;right:max(22px,calc(env(safe-area-inset-right) + 10px));bottom:max(22px,calc(env(safe-area-inset-bottom) + 10px));color:var(--ink)}
.gear-station button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.gear-station button:focus-visible{outline:2px solid #cff5e4;outline-offset:4px}
.gear-tools{display:flex;gap:8px;align-items:flex-end}
.dock-tool{position:relative;display:grid;grid-template-rows:39px 17px;justify-items:center;align-content:center;gap:2px;min-width:74px;height:70px;padding:5px 8px;border-radius:13px;border:1px solid #709fa3b3;background:linear-gradient(155deg,#294e5f 0%,#193949 66%,#143343 100%);box-shadow:inset 0 1px #d1fcf131,inset 0 -2px #091e3069,0 4px 0 #091d2b9e,0 6px 14px #071c2940;transition:transform .16s cubic-bezier(.2,.8,.25,1),border-color .18s,box-shadow .18s,background-color .18s;user-select:none}
.dock-tool>img{width:40px;height:39px;object-fit:contain;filter:drop-shadow(0 2px 1px #09233366);transition:transform .2s cubic-bezier(.2,.8,.25,1);pointer-events:none}
.dock-tool>span{font:500 16px/1 Pixelify,monospace;letter-spacing:-.35px;text-shadow:0 1px #102535}
.dock-tool[aria-expanded=true]{border-color:#a7dece;background:linear-gradient(155deg,#396b74,#245160 65%,#204757);box-shadow:inset 0 1px #dafff047,inset 0 -2px #50888480,0 3px 0 #091d2ba6,0 0 12px #83dbcc24}
@media(hover:hover){.dock-tool:hover{transform:translateY(-3px);border-color:#aadbd4;box-shadow:inset 0 1px #d8fff047,0 4px 0 #091d2ba6,0 8px 16px #071c2955}.dock-tool:hover img{transform:translateY(-1px) rotate(-3deg)}}
.dock-tool:active{transform:translateY(2px) scale(.96);box-shadow:inset 0 2px 4px #051e2d70,0 1px 0 #051c29}
.stock-badge{position:absolute;top:-5px;right:-3px;min-width:19px;height:19px;padding:1px 4px;border:1px solid #244b55;border-radius:8px;display:grid;place-items:center;font:750 11px/1 DM,sans-serif;background:#b9ead5;color:#173c42;box-shadow:0 1px 3px #0a233e80}
.stock-badge[hidden]{display:none}
.gear-panel{position:absolute;right:0;bottom:calc(100% + 14px);width:min(404px,calc(100vw - 28px));max-height:min(535px,calc(100dvh - 116px));display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(155deg,#214a59,#173b4b 36%,#143245);border:1px solid #6d9fa4;border-radius:16px;box-shadow:inset 0 1px #d9ffef28,0 6px 0 #0a233058,0 14px 32px #0b243b80;visibility:hidden;opacity:0;pointer-events:none;transform:translateY(9px) scale(.982);transform-origin:bottom right;transition:transform .21s cubic-bezier(.2,.82,.25,1),opacity .16s ease,visibility 0s linear .21s}
.gear-panel.shown{visibility:visible;opacity:1;pointer-events:auto;transform:none;transition-delay:0s}
.gear-header{display:flex;align-items:center;gap:12px;padding:17px 16px 14px 19px;border-bottom:1px solid var(--border);flex:none;background:linear-gradient(100deg,#335d653d,#2d5c6500)}
.gear-header h2{margin:0 auto 0 0;font:600 28px/1 Pixelify,monospace;letter-spacing:-1px;color:#f0f6de}
.gear-wallet{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;background:#112e3c;color:#f1d89b;border:1px solid #597982;border-radius:18px;font:500 13px/1 DM,sans-serif;padding:6px 8px}
.gear-wallet strong{font-variant-numeric:tabular-nums}.coin-icon{position:relative;display:inline-block;flex:none;width:13px;height:13px;border-radius:50%;border:1px solid #9a743e;background:#e7bf70;box-shadow:inset 1px 1px #fff0b2,inset -1px -2px #bd9254}.coin-icon::after{content:"";position:absolute;left:4px;top:3px;height:5px;width:2px;background:#bc8c49;border-left:1px solid #fbe7a1}.gear-close{display:grid;place-items:center;flex:none;height:34px;width:34px;border-radius:9px;border:1px solid #63808a7d;background:#123444}
.gear-close svg{width:15px;height:15px;fill:none;stroke:#c1ddd8;stroke-width:1.8;stroke-linecap:round}
.gear-scroll{overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#477681 #143848;min-height:0}.gear-scroll>div{padding:4px 17px}
.gear-row{display:flex;align-items:center;gap:11px;padding:16px 0;min-height:82px}.gear-row+.gear-row{border-top:1px solid #5b879044}
.item-art,.empty-art{display:grid;place-items:center;flex:none;background:radial-gradient(ellipse at 40% 20%,#396975,#285262 72%);border:1px solid #63949975;box-shadow:inset 0 1px #c8f7da17}
.item-art{width:48px;height:48px;border-radius:12px}.item-art img{display:block;width:39px;height:39px}.item-info{min-width:0;flex:1}.item-info h3,.empty-stock h3{margin:0;color:#eff4df;font:550 20px/1.15 Pixelify,monospace;letter-spacing:-.5px}.item-info p,.empty-stock p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.35}.next-stat{color:#bae7d6;white-space:nowrap}.fish-well{width:56px}.specimen{width:52px;height:35px;object-fit:contain;image-rendering:pixelated}
.trade-action{display:inline-flex;justify-content:center;align-items:center;gap:5px;flex:none;padding:8px 10px;min-height:36px;background:linear-gradient(#b4e4d0,#93c7bb);border:1px solid #c3ecdb;border-radius:8px;box-shadow:inset 0 1px #e7fff354,0 2px #0a2836;transition:filter .15s,transform .12s,box-shadow .12s}
.gear-station .trade-action{font:700 14px/1 DM,sans-serif;color:#193d45}.trade-action .price-number{font-variant-numeric:tabular-nums}.trade-action[data-affordable=false]{background:linear-gradient(#305663,#294c5a);color:#c1d3d0;border-color:#58808a;box-shadow:inset 0 1px #b4ede312,0 2px #092737}
.gear-close:hover,.trade-action:hover{filter:brightness(1.1)}.gear-close:active,.trade-action:active{transform:translateY(1px) scale(.97);box-shadow:inset 0 1px 3px #1a4c5366}
.gear-foot{border-top:1px solid var(--border);background:#122e3e;flex:none;padding:10px 17px;color:var(--muted);font:500 13px/1.4 DM,sans-serif}.gear-foot[data-tone=success]{color:#bbebd6}.gear-foot[data-tone=neutral]{color:#f4daaa}
.empty-stock{display:flex;align-items:center;flex-direction:column;text-align:center;padding:22px 10px 24px}.empty-art{border-radius:22px;width:73px;height:66px;margin:0 0 12px}.empty-art img{width:57px;height:57px}.empty-stock h3{font-size:23px}.empty-stock p{max-width:260px;font-size:14px}
.stock-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 1px 4px;font-size:13px;color:var(--muted)}.stock-summary strong{font-weight:650;color:#ceebe1}.stock-row{padding:10px 0;min-height:66px}.max-level{color:#abddcf;font-size:13px;white-space:nowrap}
.catch-toast{position:absolute;left:50%;bottom:94px;z-index:2;display:flex;align-items:center;gap:8px;max-width:calc(100% - 28px);width:max-content;opacity:0;visibility:hidden;transform:translate(-50%,5px);pointer-events:none;font:550 14px/1.3 DM,sans-serif;color:#e1f4de;padding:7px 12px;background:#153c4dfa;border:1px solid #7fadae;border-radius:11px;box-shadow:0 5px 14px #09273666;transition:opacity .18s,transform .2s,visibility 0s linear .2s}.catch-toast.shown{opacity:1;visibility:visible;transform:translate(-50%,0);transition-delay:0s}.catch-toast .specimen{width:42px;height:28px}
@media(max-width:620px){.gear-station{bottom:max(17px,calc(env(safe-area-inset-bottom) + 8px));right:max(12px,calc(env(safe-area-inset-right) + 8px))}.gear-tools{gap:7px}.dock-tool{height:59px;min-width:61px;grid-template-rows:32px 15px;gap:1px;padding:4px 6px;border-radius:11px}.dock-tool>img{width:34px;height:32px}.dock-tool>span{font-size:14px}.gear-panel{bottom:calc(100% + 12px);max-height:calc(100dvh - 105px)}.controls{left:max(14px,calc(env(safe-area-inset-left) + 8px));transform:none;bottom:max(20px,calc(env(safe-area-inset-bottom) + 11px));align-items:flex-start}.controls #cast{min-width:143px}.controls kbd{display:none}.gear-header{padding:13px;gap:8px}.gear-scroll>div{padding:3px 12px}.gear-foot{padding:10px 12px}.gear-row{gap:8px}.gear-header h2{font-size:25px}.item-info h3{font-size:18px}.trade-action{padding:7px}.item-art{width:41px;height:43px}.item-art img{width:34px;height:34px}.fish-well{width:46px}.fish-well .specimen{width:44px}.catch-toast{bottom:90px}}
@media(max-height:440px){.gear-station{bottom:max(9px,env(safe-area-inset-bottom))}.dock-tool{height:48px;min-width:56px;grid-template-rows:25px 13px;gap:0}.dock-tool>img{height:25px;width:28px}.dock-tool>span{font-size:13px}.gear-panel{bottom:calc(100% + 9px);max-height:calc(100dvh - 78px)}.gear-header{padding-top:8px;padding-bottom:8px}.gear-row{min-height:60px;padding:8px 0}.catch-toast{bottom:65px}}
@media(max-width:370px){.controls #cast{min-width:0;width:134px;padding-inline:7px;gap:5px;font-size:18px}.controls #cast svg{width:16px;height:16px}}
#cast{transition:transform .12s ease,background-color .15s,box-shadow .12s}
.upgrade-level{display:block;margin-top:3px;color:#a9c9c6;font-size:12px}.upgrade-row .item-info p{font-variant-numeric:tabular-nums}
.gear-station .trade-action:disabled{cursor:default;transform:none;filter:none}
.fishing-days{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0 12px;border-top:1px solid var(--border);color:#c4ddda;font-size:13px}
.fishing-days strong{color:#f2dbab;white-space:nowrap}.item-info .day-lock{color:#f4dba6}
.shiny-fish .fish-well,.catch-toast.shiny-catch{border-color:#e7c779;background:linear-gradient(120deg,#2b4c59,#453e50)}
.shiny-fish .item-info h3,.catch-toast.shiny-catch{color:#ffe7a8}
@media(prefers-reduced-motion:reduce){.gear-station *,.catch-toast,#cast{transition:none!important;animation:none!important}}

