.fishing-layer{position:absolute;inset:0;pointer-events:none;z-index:12}
.fishing-layer[hidden]{display:none}
.fishing-spot,.fishing-rod{position:absolute;display:none;background:none;border:0;padding:0;pointer-events:auto}
.fishing-layer[data-phase=idle] .fishing-spot{display:block}
#scene .fishing-spot{inset:0;width:100%;height:100%;cursor:url('/assets/fishing/fish-cursor.png') 38 4,pointer!important}
#scene .fishing-spot[data-fish-cursor]{cursor:none!important}
.fishing-cursor{position:fixed;width:48px;transform:translate(-43px,-3px);transform-origin:43px 3px;pointer-events:none;z-index:100}
@media(prefers-reduced-motion:no-preference){
  .fishing-cursor{animation:fishing-cursor-wiggle .65s ease-in-out infinite alternate}
}
@keyframes fishing-cursor-wiggle{from{rotate:-9deg}to{rotate:9deg}}
.fishing-spot.left{clip-path:polygon(22% 47%,29% 41%,39% 40%,48% 32%,60% 34%,65% 42%,64% 47%,56% 53%,48% 62%,43% 70%,37% 70%,31% 63%,23% 57%)}
.fishing-spot.right{clip-path:polygon(63% 71%,70% 64%,75% 57%,80% 57%,82% 61%,92% 55%,98% 56%,100% 61%,100% 100%,56% 100%,55% 95%,58% 85%)}
.fishing-spot:focus-visible{background:#56d9ff35}
.fishing-rod{width:11.5%;left:46.55%;top:43.5%;translate:0 72%;cursor:pointer}
.fishing-layer[data-side=right] .fishing-rod{left:56.45%;top:58.5%}
.fishing-layer[data-phase=waiting] .fishing-rod,.fishing-layer[data-phase=bite] .fishing-rod{display:block}
.fishing-layer[data-phase=waiting] .fishing-rod{pointer-events:none}
.fishing-rod img{display:block;width:100%;transform-origin:70% 72%}
.fishing-layer[data-side=right] .fishing-rod img{scale:-1 1;transform-origin:30% 72%}
.fishing-rod span{display:none;position:absolute;left:19%;bottom:calc(90% + 12px);width:clamp(35px,3.75vw,70px);aspect-ratio:1;background:url('/assets/fishing/bite-ruby.webp') center/contain no-repeat;pointer-events:none}
.fishing-layer[data-side=right] .fishing-rod span{left:auto;right:19%}
.fishing-layer[data-phase=bite] .fishing-rod span{display:block;pointer-events:auto;cursor:pointer}
@media(prefers-reduced-motion:no-preference){
  .fishing-layer[data-phase=bite] .fishing-rod span{transform-origin:50% 88%;animation:fishing-alarm .6s ease-in-out infinite}
  .fishing-layer[data-phase=bite] img{animation:fishing-tug .9s ease-in-out infinite}
  .fishing-layer[data-side=right]{--fishing-tug:4deg}
}
@keyframes fishing-alarm{0%,60%,100%{transform:rotate(0)}10%,30%{transform:rotate(-12deg)}20%,40%{transform:rotate(12deg)}50%{transform:rotate(-6deg)}}
@keyframes fishing-tug{30%{rotate:var(--fishing-tug,-4deg)}60%{rotate:0deg}}
.fishing-quiz{width:min(92vw,720px,135dvh);aspect-ratio:3/2;padding:0;border:0;color:#33200c;background:transparent url('/assets/fishing/question-board.webp') center/contain no-repeat;font: bold clamp(12px,3vw,27px) Georgia,serif;overflow:visible}
.fishing-quiz{container-type:inline-size}
.fishing-quiz::backdrop{background:#050e19b8}
.fishing-quiz p{position:absolute;inset:30% 16% 43%;margin:0;align-content:safe center;text-align:center;line-height:1.18;overflow-wrap:anywhere;overflow-y:auto}
.fishing-quiz .fishing-choice{position:absolute;left:14%;top:60.5%;width:35.3%;height:12.3%;padding:0 2% 0 8%;background:transparent;color:inherit;border:0;border-radius:16px;font:inherit;text-align:left;cursor:pointer}
.fishing-quiz .fishing-choice:nth-of-type(2n){left:50.7%}
.fishing-quiz .fishing-choice:nth-of-type(n+3){top:75.1%}
.fishing-quiz .fishing-choice:hover,.fishing-quiz .fishing-choice:focus-visible{background:#ffd36045;outline:2px solid #bd7c20}

.fishing-reward{position:fixed;inset:0;z-index:100;display:grid;place-items:center;pointer-events:none;user-select:none;caret-color:transparent}
.fishing-reward img{display:block;width:min(106.4vw,616px,114.8dvh);height:auto}

/* Keep the map free of a text caret while the catch reward plays. */
body:has(.fishing-reward img) #scene,
body:has(.fishing-reward img) #status {
  user-select: none;
  caret-color: transparent;
}
