/* Map 11 fishing HUD — low-pixel wood, no impact on canvas/map layout. */
#stage #lvFishAction{
 position:absolute;right:14px;bottom:76px;z-index:30;padding:9px 13px;
 background:#73512e;color:#fff0ba;border:3px solid #d7b875;border-radius:5px;
 box-shadow:0 4px 0 #352313;font:700 13px monospace;cursor:pointer;
}
#stage #lvFishAction[hidden],#stage #lvFishingPanel[hidden],#stage #lvFishNotice[hidden]{display:none!important}
#stage #lvFishingPanel{
 position:absolute;z-index:34;left:50%;bottom:16px;transform:translateX(-50%);
 box-sizing:border-box;width:min(310px,calc(100% - 18px));
 padding:11px;border:4px solid #4b2916;border-radius:5px;
 background:#e5c997;color:#392716;
 box-shadow:inset 0 0 0 2px #94704a,0 5px 0 #27180d;
 font:13px monospace;text-align:center;
}
#lvFishingPanel header{display:flex;justify-content:space-between;align-items:center;
 gap:6px;background:#654024;padding:5px 7px;color:#ffe3aa}
#lvFishingPanel strong{font-size:14px}
#lvFishingPanel p{margin:7px 0;line-height:1.4}
#lvFishingPanel button{background:#67402a;color:#ffebae;border:2px solid #301d13;
 padding:8px 9px;font:700 13px monospace;cursor:pointer}
#lvFishingPanel button[hidden],#lvFishingPanel #lvFishReel[hidden]{display:none!important}
#lvFishingPanel #lvFishClose{padding:0 7px;font-size:19px}
.lv-fish-meter{display:grid;grid-template-columns:64px 1fr 33px;
 align-items:center;gap:5px;margin-top:7px;font-size:11px}
.lv-fish-track{height:11px;border:2px solid #4d3326;background:#58452f;overflow:hidden}
.lv-fish-track i{display:block;width:0;height:100%;background:#72b84e}
.lv-fish-controls{display:flex;justify-content:space-between;gap:8px}
.lv-fish-controls button{flex:1;min-height:47px;touch-action:none;user-select:none}
.lv-fish-arrow{font-size:35px;color:#b05c20;font-weight:900;line-height:1.1}
#stage #lvFishNotice{position:absolute;z-index:31;bottom:164px;left:50%;
 transform:translateX(-50%);min-width:180px;max-width:80%;
 padding:8px 11px;background:#fff4cf;border:2px solid #8c5e32;
 font:12px/1.45 monospace;text-align:center;color:#563b20;pointer-events:none}
body:not(.playing) #stage :is(#lvFishAction,#lvFishingPanel,#lvFishNotice){display:none!important}
@media(max-width:540px){#stage #lvFishingPanel{bottom:6px;width:min(300px,calc(100% - 12px))}
 #stage #lvFishAction{bottom:70px;right:8px;font-size:12px}}


/* Explicit two-step fishing interaction: equip rod, then throw bait. */
#stage #lvFishCast{display:block;width:100%;margin-top:9px;background:#59753f;color:#fff4c9;border-color:#273b22;font-size:15px;min-height:44px}
#stage #lvFishCast[hidden]{display:none!important}
#stage #lvFishCast:focus-visible,#stage #lvFishAction:focus-visible{outline:3px solid #e8ce79;outline-offset:2px}
#stage #lvFishMessage{min-height:34px}

/* Dynamic rod picker. Stays outside the canvas and never changes terrain. */
.lv-rod-picker{
 border:4px solid #7a5930;border-radius:10px;
 background:#f0dcb2;color:#322314;box-shadow:0 12px 50px #0008;
 width:min(680px,calc(100vw - 24px));max-height:min(82vh,700px);
 padding:12px;font:13px/1.45 system-ui,sans-serif;
}
.lv-rod-picker::backdrop{background:#101b13b5}
.lv-rod-picker header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.lv-rod-picker header strong{font-size:17px}
.lv-rod-picker header button{border:2px solid #694a2b;background:#6c4728;color:#ffedc2;border-radius:5px;padding:3px 10px;cursor:pointer}
.lv-rod-picker p{margin:8px 0}
.lv-rod-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;padding:6px 0}
.lv-rod-choice{min-width:0;border:2px solid #9b7847;background:#fff2d4;color:#382a16;padding:8px;
 border-radius:8px;display:flex;align-items:center;flex-direction:column;gap:4px;cursor:pointer;font:inherit;text-align:center}
.lv-rod-choice.selected{background:#e0f0d3;border-color:#47743c;box-shadow:inset 0 0 0 1px #47743c}
.lv-rod-choice canvas{width:88px;height:88px;image-rendering:pixelated}
.lv-rod-choice strong{font-size:12px}
.lv-rod-choice small{font-size:11px;color:#665033}
.lv-rod-choice:focus-visible{outline:3px solid #3474bf;outline-offset:2px}
#lvRodStatus{min-height:1.5em;font-weight:bold}

/* The rod switch is always available in the game's top HUD (no backpack needed). */
.top-actions #lvRodQuickSwitch{
 display:inline-flex;align-items:center;justify-content:center;gap:5px;
 width:auto;height:38px;min-width:89px;padding:5px 9px;
 color:#fff1c4;background:#2f5035ed;border:1px solid #bea36d;border-radius:7px;
 font:700 12px/1.2 system-ui,sans-serif;filter:none;cursor:pointer;
 box-shadow:0 2px 6px #13271355;
}
.top-actions #lvRodQuickSwitch:hover{background:#436e48}
.top-actions #lvRodQuickSwitch:focus-visible{outline:3px solid #ffcc70;outline-offset:2px}
.top-actions #lvRodQuickSwitch[disabled]{opacity:.5;cursor:not-allowed}
@media(max-width:650px){
 .top-actions #lvRodQuickSwitch{min-width:38px;width:39px;padding:5px;font-size:17px}
 #lvRodQuickSwitch .lv-rod-quick-label{display:none}
}


/* Transparent vertical minigame: no card, backdrop, water or demo settings. */
#stage #lvFishingPanel.lv-reeling{left:auto;right:18px;bottom:110px;transform:none;width:112px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;pointer-events:none}
#lvFishingPanel.lv-reeling>header,#lvFishingPanel.lv-reeling>#lvFishMessage{display:none}
#lvFishingPanel.lv-reeling #lvFishReel{display:block;background:transparent}
#lvFishVertical{display:block;width:112px;height:320px;max-height:55dvh;object-fit:contain;image-rendering:pixelated;background:transparent;touch-action:none;user-select:none;pointer-events:auto}
#lvFishVertical:focus-visible{outline:1px dashed #d9d9a0;outline-offset:3px}
@media(max-width:540px){#stage #lvFishingPanel.lv-reeling{width:100px;right:8px;bottom:126px}#lvFishVertical{width:100px;height:auto}}

#lvFishBaitControls{margin:8px 0;padding:8px;background:#fff0ce;border:1px solid #987044;color:#50361f;border-radius:4px}
#lvFishBaitControls>strong{display:block;text-align:center;margin-bottom:8px;font-size:12px}
#lvFishBait[hidden]{display:none!important}
#lvFishBaitChoices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
#lvFishingPanel .lv-bait-choice{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;min-height:100px;padding:5px 2px;border:2px solid var(--bait-color);border-radius:2px;background:#e9bf78;color:#50361f;box-shadow:inset 0 0 0 1px #fff1c6;cursor:pointer}
.lv-bait-choice img{width:40px;height:40px;max-width:100%;object-fit:contain;image-rendering:pixelated}
.lv-bait-name{font-size:10px;line-height:1.2;min-height:24px;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere}
.lv-bait-quantity{font-size:11px;font-weight:bold}.lv-bait-empty img{opacity:.45}
#lvFishingPanel .lv-bait-selected{outline:2px solid #fff0a8;outline-offset:1px;box-shadow:inset 0 0 0 1px #fff8d6,0 0 0 3px var(--bait-color);background:#f6d891}
#lvFishingPanel .lv-bait-choice:focus-visible{outline:3px solid #fff;outline-offset:2px}
.lv-bait-check{position:absolute;right:0;top:0;z-index:1;line-height:14px;width:14px;background:#487636;color:#fff8cc;font-size:12px;font-weight:bold}.lv-bait-check[hidden]{display:none!important}
