.fishing-hud{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:calc(95px * var(--ui-scale,1));width:245px;z-index:12;padding:10px;background:#203b35f5;border:2px solid #ccb987;border-radius:12px;color:#fff2d0;box-shadow:0 4px 16px #10292166;font-size:12px;pointer-events:auto}
.fishing-hud header{display:flex;justify-content:space-between;align-items:center;gap:8px}.fishing-hud button{min-height:34px;font-size:12px;padding:5px 8px}.fishing-gear{display:flex;gap:4px;margin-top:7px}.fishing-gear button{flex:1;min-width:0;overflow-wrap:anywhere}.fishing-status{min-height:2em;margin:8px 0}.fishing-action{width:100%;touch-action:none;user-select:none}.fishing-power{height:9px;background:#122b27;margin:8px 0;overflow:hidden;border-radius:4px}.fishing-power i{display:block;height:100%;background:#d7bf73;transform-origin:left}.fishing-challenge{height:240px;display:flex;justify-content:center;gap:7px;margin:8px auto}.fishing-track{height:100%;width:42px;background:#6099a5;position:relative;border:4px solid #b99052;border-radius:8px;overflow:hidden}.fishing-zone{position:absolute;left:0;width:100%;background:#a4d16aaa;outline:2px solid #e7f7a0}.fishing-fish{position:absolute;left:12px;transform:translateY(50%);color:#fff3b1;text-shadow:1px 1px #1b535d;font-size:19px}.fishing-progress{height:100%;width:10px;background:#182b24;border:2px solid #b99052;overflow:hidden}.fishing-progress i{display:block;height:100%;background:#d9cc63;transform-origin:bottom}.fish-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.fish-catalog img{width:48px;height:48px;image-rendering:pixelated}.fish-unknown{opacity:.65}.fish-unknown b{font-size:32px}.fishing-hud [hidden]{display:none!important}
@media(max-width:600px){.fishing-hud{width:185px;right:8px;bottom:105px;padding:8px;font-size:11px}.fishing-hud button{font-size:10px}.fishing-challenge{height:180px}.fishing-gear{gap:2px}.fishing-gear button{padding:4px 2px}.fishing-rod{font-size:11px}}
.has-fishing-action #interact-button,.has-fishing-action #context-hint{visibility:hidden}
.fishing-hud[hidden]{display:none!important}
.fishing-hud.is-anchored{left:0;top:0;right:auto;bottom:auto;transform:translate(var(--fishing-panel-x,calc(50vw + 96px)),var(--fishing-panel-y,12px))}
.fishing-fish{width:32px;height:24px;left:1px;background-size:contain;background-repeat:no-repeat;image-rendering:pixelated}
.fishing-scenery{position:absolute;inset:0;width:100%;height:100%;opacity:.88;filter:blur(.15px);pointer-events:none;z-index:0}
.fishing-zone{z-index:1}.fishing-fish{z-index:2}
.skill-tabs{display:flex;gap:5px;flex-wrap:wrap;padding:6px 14px;border-bottom:1px solid #cbb98f;flex:none}
.skill-tabs button{flex:1;min-width:70px;padding:6px;font-size:12px;min-height:42px}.skill-tabs small{display:block;font-size:9px}.skill-tabs .active{background:#7d9467;color:#fff4d4}
@media(pointer:coarse){.fishing-hud button{min-height:44px}.fishing-cancel{min-width:44px}}
@media(max-height:560px){.fishing-hud{bottom:110px;width:255px;padding:8px}.fishing-hud.is-challenge{display:grid;grid-template-columns:55px 1fr;gap:5px}.fishing-hud.is-challenge header{grid-column:2;grid-row:1}.fishing-challenge{grid-column:1;grid-row:1/4;height:130px;margin:0}.fishing-hud.is-challenge .fishing-gear{display:none}.fishing-status{grid-column:2;grid-row:2;min-height:0;margin:0}.fishing-action{grid-column:2;grid-row:3;align-self:end}.fishing-power{grid-column:1/3}}
.fishing-hud.is-mobile{left:auto;right:max(8px,env(safe-area-inset-right));top:50%;bottom:auto;transform:translateY(-50%);width:150px;padding:6px;font-size:11px}
.fishing-hud.is-mobile{padding:0;background:transparent;border:0;box-shadow:none;pointer-events:none}
.fishing-hud.is-mobile .fishing-rod,.fishing-hud.is-mobile .fishing-gear,.fishing-hud.is-mobile .fishing-action{display:none}
.fishing-hud.is-mobile .fishing-power{display:none}
.fishing-hud.is-mobile header,.fishing-hud.is-mobile .fishing-status{display:none}
.fishing-hud.is-mobile.is-challenge{display:grid;grid-template-columns:1fr 64px;gap:6px}
.fishing-hud.is-mobile.is-challenge .fishing-status{grid-column:1;grid-row:1}
.fishing-hud.is-mobile .fishing-challenge{grid-column:2;grid-row:1;height:180px;margin:0}
@media(orientation:landscape){.fishing-hud.is-mobile{left:calc(92px + env(safe-area-inset-left));right:auto;top:calc(106px * var(--ui-scale,1));transform:none;width:150px}.fishing-hud.is-mobile.is-challenge{grid-template-columns:55px 1fr}.fishing-hud.is-mobile .fishing-challenge{grid-column:1;height:clamp(64px,calc(100dvh - 250px * var(--ui-scale,1)),130px)}}
@media(pointer:coarse) and (orientation:portrait){.fishing-hud.is-mobile{right:calc(29px + env(safe-area-inset-right))}}
@media(max-width:700px) and (orientation:portrait){.fishing-hud.is-mobile{right:calc(13px + env(safe-area-inset-right))}}
@media(max-width:640px) and (orientation:portrait){.fishing-hud.is-mobile{right:calc(17px + env(safe-area-inset-right))}}
/* Desktop challenge: original track height and the action hint only. */
.fishing-hud.is-anchored{display:flex;flex-direction:column;gap:8px;width:190px;padding:0;background:#273f3533;border:0;box-shadow:none;pointer-events:none}
.fishing-hud.is-anchored header,.fishing-hud.is-anchored .fishing-gear,.fishing-hud.is-anchored .fishing-status{display:none}
.fishing-hud.is-anchored .fishing-challenge{height:240px;flex:none;margin:0 auto}
.fishing-hud.is-anchored .fishing-action{width:100%;min-height:34px;padding:8px 15px;background:#273f35dd;border:1px solid #ddcca158;border-radius:7px;color:#f1e5bb;font-size:11px;font-weight:400;line-height:1.4;box-shadow:none;pointer-events:auto}

/* Equipment reuses the fisher's frame; only the owned-item list scrolls. */
#modal[data-shop-theme=elias][data-screen=fishing-equipment]{width:min(700px,calc((100vw - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))/var(--ui-scale)));height:min(460px,calc((100dvh - 24px - var(--safe-top) - var(--safe-bottom))/var(--ui-scale)));padding:10px}
#modal[data-shop-theme=elias][data-screen=fishing-equipment]>header{min-height:72px;padding:10px 38px 10px 12px;gap:12px}
#modal[data-shop-theme=elias][data-screen=fishing-equipment] #modal-title{font-size:27px}
#modal[data-shop-theme=elias][data-screen=fishing-equipment] #modal-kicker{font:400 10px/1.4 var(--font-ui);letter-spacing:1px}
#modal[data-shop-theme=elias][data-screen=fishing-equipment] .shop-seal{width:43px;height:43px}
#modal[data-shop-theme=elias][data-screen=fishing-equipment] #modal-body{display:flex;overflow:visible;padding:12px;margin-top:8px}
#modal[data-screen=fishing-equipment] .fishing-equipment-paper{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}
#modal[data-screen=fishing-equipment] .fishing-equipment-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;flex:none;padding-bottom:10px}
#modal[data-shop-theme=elias][data-screen=fishing-equipment] .fishing-equipment-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;background:#dde4ce;border-color:#8a9e8e;box-shadow:inset 0 0 0 1px #fff7e1}
#modal[data-shop-theme=elias][data-screen=fishing-equipment] .fishing-equipment-tabs button:hover{background:#c9d7c0}
#modal[data-shop-theme=elias][data-screen=fishing-equipment] .fishing-equipment-tabs button[aria-selected=true]{background:linear-gradient(#efd48b,#e4bc63);border-color:#987238}
#modal[data-screen=fishing-equipment] .fishing-equipment-tabs img{width:24px;height:24px;object-fit:contain;image-rendering:pixelated}
#modal[data-screen=fishing-equipment] .fishing-equipment-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ccbd92 #f5ecd1;display:grid;align-content:start;gap:8px;padding:1px 5px 3px 1px}
#modal[data-screen=fishing-equipment] .fishing-equipment-item{display:grid;grid-template-columns:40px minmax(0,1fr) 96px;align-items:center;gap:10px;padding:11px;border:1px solid #c3ac7b;border-radius:3px;background:#efe3be;box-shadow:inset 0 0 0 1px #fff5d580;min-width:0}
#modal[data-screen=fishing-equipment] .fishing-equipment-item.is-equipped{background:#e2e9cf;border-color:#88a084}
#modal[data-screen=fishing-equipment] .fishing-equipment-item>img{width:36px;height:36px;object-fit:contain;image-rendering:pixelated}
#modal[data-shop-theme=elias][data-screen=fishing-equipment] .fishing-equipment-item h3{font:400 13px/1.4 var(--font-ui);margin:0 0 4px}
#modal[data-shop-theme=elias][data-screen=fishing-equipment] .fishing-equipment-item p{font:400 17px/1.3 var(--font-body);color:#59664f;margin:0 0 4px}
#modal[data-screen=fishing-equipment] .fishing-equipment-item small{display:block;font:400 14px/1.3 var(--font-body);color:#80643a}
#modal[data-screen=fishing-equipment] .fishing-equipment-equipped{display:inline-flex;align-items:center;justify-content:center;gap:5px;font:400 12px/1.4 var(--font-ui);color:#42634d}
#modal[data-screen=fishing-equipment] .fishing-equipment-equipped>span{display:grid;place-items:center;width:17px;height:17px;border:1px solid #a5af8c;background:#fffef5;color:#448257;font:400 16px/1 var(--font-body)}
#modal[data-screen=fishing-equipment] .fishing-equipment-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:9px 2px 0}
#modal[data-shop-theme=elias][data-screen=fishing-equipment] .fishing-equipment-footer p{margin:0;max-width:330px;color:#f3edd7;font:400 15px/1.3 var(--font-body)}
#modal[data-shop-theme=elias][data-screen=fishing-equipment] .fishing-equipment-footer button{flex:none;min-width:145px;min-height:44px;font-size:11px;background:linear-gradient(#f5e9c7,#e9dcb5)}
#modal[data-screen=fishing-equipment] .fishing-equipment-empty{margin:20px 8px;text-align:center;color:#59664f;grid-column:1/-1}
#modal[data-screen=fishing-equipment] .fishing-equipment-empty img{width:40px;height:40px;image-rendering:pixelated;opacity:.65}
@media(max-width:700px) and (orientation:portrait){
 #modal[data-shop-theme=elias][data-screen=fishing-equipment]{width:calc((100vw - 20px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))/var(--ui-scale));height:min(580px,calc((100dvh - 24px - var(--safe-top) - var(--safe-bottom))/var(--ui-scale)));padding:8px}
 #modal[data-shop-theme=elias][data-screen=fishing-equipment]>header{min-height:64px;gap:8px;padding:10px 30px 10px 9px;grid-template-columns:35px minmax(0,1fr)}
 #modal[data-shop-theme=elias][data-screen=fishing-equipment] #modal-title{font-size:23px}
 #modal[data-shop-theme=elias][data-screen=fishing-equipment] #modal-kicker{font-size:9px;letter-spacing:.6px}
 #modal[data-shop-theme=elias][data-screen=fishing-equipment] .shop-seal{width:35px;height:35px}
 #modal[data-shop-theme=elias][data-screen=fishing-equipment] #modal-body{padding:9px}
 #modal[data-shop-theme=elias][data-screen=fishing-equipment] .fishing-equipment-tabs button{padding:5px;gap:3px;font-size:11px}
 #modal[data-screen=fishing-equipment] .fishing-equipment-tabs img{width:20px;height:20px}
 #modal[data-screen=fishing-equipment] .fishing-equipment-item{grid-template-columns:32px minmax(0,1fr);gap:8px;padding:10px}
 #modal[data-screen=fishing-equipment] .fishing-equipment-item>img{width:30px;height:30px;align-self:start}
 #modal[data-screen=fishing-equipment] .fishing-equipment-item>button,#modal[data-screen=fishing-equipment] .fishing-equipment-item>.fishing-equipment-equipped{grid-column:2;justify-self:stretch;min-height:38px}
 #modal[data-shop-theme=elias][data-screen=fishing-equipment] .fishing-equipment-item p{font-size:16px}
 #modal[data-screen=fishing-equipment] .fishing-equipment-footer{flex-direction:column;gap:7px;padding-top:9px}
 #modal[data-shop-theme=elias][data-screen=fishing-equipment] .fishing-equipment-footer p{font-size:14px;text-align:center}
 #modal[data-screen=fishing-equipment] .fishing-equipment-footer button{width:100%}
}
@media(pointer:coarse){
 #modal[data-shop-theme=elias][data-screen=fishing-equipment] button{min-height:max(44px,calc(44px / var(--ui-scale)))}
 #modal[data-shop-theme=elias][data-screen=fishing-equipment] #close-modal{width:max(38px,calc(44px / var(--ui-scale)));height:max(38px,calc(44px / var(--ui-scale)))}
}
@media(orientation:landscape) and (max-height:560px){
 #modal[data-shop-theme=elias][data-screen=fishing-equipment]{height:calc((100dvh - 20px - var(--safe-top) - var(--safe-bottom))/var(--ui-scale));padding:8px}
 #modal[data-shop-theme=elias][data-screen=fishing-equipment]>header{min-height:54px;padding:6px 34px 6px 10px;gap:10px;grid-template-columns:35px minmax(0,1fr)}
 #modal[data-shop-theme=elias][data-screen=fishing-equipment] #modal-title{font-size:24px}
 #modal[data-shop-theme=elias][data-screen=fishing-equipment] #modal-kicker{font-size:9px}
 #modal[data-shop-theme=elias][data-screen=fishing-equipment] .shop-seal{width:35px;height:35px}
 #modal[data-shop-theme=elias][data-screen=fishing-equipment] #modal-body{padding:8px 10px;margin-top:6px}
 #modal[data-screen=fishing-equipment] .fishing-equipment-tabs{padding-bottom:7px}
 #modal[data-screen=fishing-equipment] .fishing-equipment-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 #modal[data-screen=fishing-equipment] .fishing-equipment-item{grid-template-columns:30px minmax(0,1fr);gap:6px;padding:9px}
 #modal[data-screen=fishing-equipment] .fishing-equipment-item>img{width:28px;height:28px}
 #modal[data-shop-theme=elias][data-screen=fishing-equipment] .fishing-equipment-item h3{font-size:12px}
 #modal[data-shop-theme=elias][data-screen=fishing-equipment] .fishing-equipment-item p{font-size:15px}
 #modal[data-screen=fishing-equipment] .fishing-equipment-item>button,#modal[data-screen=fishing-equipment] .fishing-equipment-item>.fishing-equipment-equipped{grid-column:2;justify-self:stretch;min-height:44px}
 #modal[data-shop-theme=elias][data-screen=fishing-equipment] .fishing-equipment-footer p{font-size:14px}
}
