/* Compact fishing dock. Popovers carry details; the normal control bar is one row. */
#fishingPanel{
 --fish-space:4px;--fish-gap:8px;--fish-pad:12px;--fish-control:44px;
 --fish-text:var(--wood-ivory,#f6ecd2);--fish-muted:var(--wood-muted,#d3bf9b);
 --fish-edge:var(--wood-gold,#e7c681);--fish-dark:var(--wood-dark,#1c130d);
 --fish-mid:var(--wood-mid,#63412b);--fish-radius:var(--wood-radius,6px);
 --fish-water-top:var(--lagoon,#3fc6d6);--fish-water:#126f9f;--fish-water-deep:#08486e;--fish-foam:#baf7fa;
 position:absolute;z-index:44;right:16px;top:160px;width:min(284px,calc(100% - 32px));
 box-sizing:border-box;padding:var(--fish-space);background:var(--wood-surface,#302218);background-size:auto,280px 280px;
 background-color:var(--fish-mid);color:var(--fish-text);border:1px solid var(--wood-dark,#1c130d);border-radius:var(--s1,4px);
 box-shadow:var(--wood-bevel);pointer-events:auto;overflow:visible;
 font:var(--wood-type-sm,13px)/1.35 var(--prose,'Alegreya Sans',system-ui,sans-serif);
}
#fishingPanel *{box-sizing:border-box}
#fishingPanel[hidden],#fishingPanel [hidden]{display:none!important}
#fishingPanel .fish-bar{display:flex;align-items:center;gap:var(--fish-space);height:var(--fish-control);min-width:0}
#fishingPanel #fishSummary{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:600}
#fishingPanel button{font:inherit;color:var(--fish-text);background:linear-gradient(180deg,rgba(151,100,58,.2),rgba(22,12,7,.6)),var(--wood-grain);background-size:auto,280px 280px;box-shadow:var(--wood-bevel);border:1px solid var(--wood-dark,#1c130d);border-radius:var(--fish-space);min-height:var(--fish-control);padding:var(--fish-gap) var(--fish-pad);cursor:pointer}
#fishingPanel .fish-icon-button{width:var(--fish-control);min-width:var(--fish-control);height:var(--fish-control);padding:0;display:grid;place-items:center;flex-shrink:0}
#fishingPanel .fish-icon{width:18px;height:18px;pointer-events:none}
#fishingPanel .fish-info{position:relative;color:var(--fish-edge)}
#fishingPanel .fish-progress-button{flex:1;min-width:0;height:var(--fish-control);padding:0;overflow:hidden;background:var(--fish-dark);box-shadow:var(--wood-recess);text-align:left}
#fishingPanel .fish-progress-track{--fish-fraction:0;position:absolute;inset:0;display:block;overflow:hidden}
#fishingPanel .fish-water{position:absolute;inset:0 auto 0 0;width:calc(var(--fish-fraction)*100%);overflow:hidden;background:linear-gradient(180deg,var(--fish-water-top),var(--fish-water) 34%,var(--fish-water-deep));pointer-events:none}
#fishingPanel .fish-water::before{content:'';position:absolute;inset:0 -28px;background:radial-gradient(ellipse at 10px 0,transparent 8px,rgba(186,247,250,.33) 9px,transparent 11px) 0 0/28px 9px repeat-x;animation:fish-ripples 3s linear infinite}
#fishingPanel .fish-water::after{content:'';position:absolute;right:-7px;top:-5px;height:54px;width:13px;border-radius:45%;background:rgba(138,233,243,.36);animation:fish-swell 2.5s ease-in-out infinite alternate}
#fishingPanel .fish-bubbles{position:absolute;inset:0 0 -48px;opacity:.5;background:radial-gradient(circle at 20px 12px,var(--fish-foam) 1px,transparent 1.6px),radial-gradient(circle at 64px 32px,var(--fish-foam) 1.2px,transparent 1.8px),radial-gradient(circle at 105px 17px,var(--fish-foam) 1px,transparent 1.6px);background-size:128px 48px;animation:fish-bubbles 4s linear infinite}
#fishingPanel .fish-progress-content{position:absolute;inset:0;display:flex;align-items:center;gap:var(--fish-gap);padding:0 10px}
#fishingPanel .fish-progress-fish{position:relative;width:26px;height:26px;flex:0 0 26px;color:var(--fish-muted)}
#fishingPanel .fish-progress-fish .fish-icon{position:absolute;inset:0;width:26px;height:26px}
#fishingPanel .fish-fish-base{opacity:.38}
#fishingPanel .fish-fish-reveal{position:absolute;inset:0;color:var(--fish-foam);clip-path:inset(0 calc((1 - var(--fish-fraction))*100%) 0 0);filter:drop-shadow(0 0 3px rgba(67,199,223,.45))}
#fishingPanel #fishSummary{color:var(--fish-text);text-shadow:0 1px 2px var(--fish-water-deep)}
#fishingPanel .fish-progress-track:not([data-phase=wait]) .fish-water::before,#fishingPanel .fish-progress-track:not([data-phase=wait]) .fish-water::after,#fishingPanel .fish-progress-track:not([data-phase=wait]) .fish-bubbles{animation-play-state:paused}
#fishingPanel[data-attention=true] .fish-info::after{content:'!';position:absolute;z-index:2;top:2px;right:2px;width:12px;height:12px;border-radius:50%;font-size:10px;line-height:12px;text-align:center;color:var(--fish-dark);background:var(--fish-edge);font-weight:700}
@keyframes fish-ripples{to{transform:translateX(28px)}}
@keyframes fish-swell{to{transform:translateX(2px) rotate(8deg)}}
@keyframes fish-bubbles{to{transform:translateY(-48px)}}
#fishingPanel button:hover:not(:disabled),#fishingPanel select:hover:not(:disabled){border-color:var(--fish-edge)}
#fishingPanel button:active:not(:disabled){transform:translateY(1px);box-shadow:var(--wood-recess)}
#fishingPanel button:disabled,#fishingPanel select:disabled{cursor:default;opacity:.65}
#fishingPanel :focus-visible{outline:2px solid var(--fish-edge);outline-offset:2px}
#fishingPanel .fish-sr,#fishingPanel progress{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#fishingPanel .fish-popover{position:absolute;top:calc(100% + var(--fish-gap));right:-1px;width:calc(100% + 2px);max-height:calc(100dvh - 240px);overflow:auto;overscroll-behavior:contain;padding:var(--fish-pad);border:1px solid var(--fish-edge);border-radius:var(--fish-radius);background:var(--wood-surface,#302218);background-size:auto,280px 280px;box-shadow:var(--wood-elevation)}
#fishingPanel h2,#fishingPanel h3{font:600 17px/1.3 var(--wood-display,Georgia);margin:0 0 var(--fish-gap)}
#fishingPanel p{font-size:var(--wood-type-sm,13px);line-height:1.4;margin:var(--fish-gap) 0 0;color:var(--fish-muted)}
#fishingPanel p:empty,#fishingPanel .fish-actions:not(:has(button:not([hidden]))){display:none}
#fishingPanel .fish-setup{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#fishingPanel .fish-field{display:flex;flex-direction:column;min-width:0;gap:7px}
#fishingPanel .fish-setup label{display:flex;align-items:center;gap:5px;color:var(--fish-muted);font-size:11px;font-weight:500;letter-spacing:.09em;text-transform:uppercase}
#fishingPanel .fish-setup label .fish-icon{width:13px;height:13px;color:var(--fish-edge);opacity:.85}
#fishingPanel .fish-picker{position:relative;display:block;min-width:0;height:46px;border:1px solid var(--wood-hairline,rgba(215,176,106,.32));border-radius:var(--fish-space);background:linear-gradient(180deg,rgba(22,13,8,.6),rgba(49,32,21,.6));box-shadow:inset 0 2px 5px rgba(16,8,3,.4),0 1px 0 rgba(237,207,145,.19)}
#fishingPanel .fish-picker:hover,#fishingPanel .fish-picker:focus-within{border-color:var(--fish-edge);background:linear-gradient(180deg,rgba(33,20,12,.6),rgba(64,41,26,.6))}
#fishingPanel select{position:relative;z-index:1;appearance:none;-webkit-appearance:none;display:block;min-width:0;min-height:var(--fish-control);height:var(--fish-control);width:100%;padding:0 25px 0 9px;color:var(--fish-text);background:transparent;border:0;border-radius:3px;font:inherit;font-weight:500;letter-spacing:.01em}
#fishingPanel select option{background:var(--fish-dark);color:var(--fish-text)}
#fishingPanel .fish-picker>.fish-icon{position:absolute;z-index:2;right:7px;top:50%;width:12px;height:12px;transform:translateY(-50%);pointer-events:none;color:var(--fish-edge)}
#fishingPanel #fishSupplies,#fishingPanel #fishSetupSupplies,#fishingPanel #fishWarning{color:var(--fish-edge)}
#fishingPanel #fishSetupHint{font-size:12px}
#fishingPanel .fish-actions{display:flex;flex-wrap:wrap;gap:var(--fish-gap);margin-top:var(--fish-pad)}
#fishingPanel #fishAction{flex:1;background:var(--fish-edge);color:var(--fish-dark);font-weight:700}
@media(max-width:600px){
 #fishingPanel{top:auto;bottom:88px;right:8px;width:min(284px,calc(100% - 16px))}
 #fishingPanel .fish-popover{top:auto;bottom:calc(100% + var(--fish-gap));max-height:calc(100dvh - 176px)}
}
@media(max-height:500px){
 #fishingPanel{top:8px;bottom:auto;right:8px}
 #fishingPanel .fish-popover{top:calc(100% + var(--fish-gap));bottom:auto;max-height:calc(100dvh - 80px)}
}
/* Leave the phone dock in place; desktop fishing sits between chat and the action dock. */
@media(min-width:761px) and (pointer:fine){
 #fishingPanel{top:auto;bottom:calc(var(--gap,12px) + var(--sb,0px));left:50%;right:auto;transform:translateX(-50%)}
 #fishingPanel .fish-popover{top:auto;bottom:calc(100% + var(--fish-gap));max-height:calc(100dvh - 96px)}
 .coast-play.desktop-hud #hud:has(#fishingPanel:not([hidden])) .bl:has(#chat:not(.min)){max-width:calc(50vw - 174px)}
}
@media(prefers-reduced-motion:reduce){#fishingPanel *,#fishingPanel *::before,#fishingPanel *::after{transition:none!important;animation:none!important}}
