#winterPanel.ice-panel{position:fixed;inset:0;left:0;bottom:0;transform:none;width:100vw;height:100dvh;max-height:none;z-index:10010;overflow:auto;border:0;border-radius:0;background:#183b3b;color:#f9ebcf;box-sizing:border-box;touch-action:pan-y}
#winterPanel.ice-panel header{position:sticky;top:0;z-index:5;box-sizing:border-box;padding:calc(8px + env(safe-area-inset-top)) 14px 8px;background:#21483e;border-bottom:2px solid #cfb182}
#winterPanel.ice-panel header strong{font:700 clamp(20px,5vw,30px) Georgia,serif}
#winterPanel.ice-panel .winter-content{padding:0;display:block;max-width:760px;margin:auto}
#winterPanel.ice-panel .ice-scene{position:relative;min-height:calc(100dvh - 68px);padding:16px 14px calc(25px + env(safe-area-inset-bottom));box-sizing:border-box;display:flex;flex-direction:column;gap:12px;background:linear-gradient(#1e465661,#113f4c66),var(--ice-bg) center/cover;color:#fff2d8}
.ice-location{padding:9px 12px;border:1px solid #e3c794;border-radius:12px;background:#20483fd9;font:700 19px Georgia,serif}
.ice-setup{align-self:center;width:min(100%,540px);margin:auto 0;padding:18px;box-sizing:border-box;border:2px solid #d9bc89;border-radius:20px;background:#f7eddbf2;color:#294b3c;box-shadow:0 8px 30px #182e3a88;display:grid;gap:12px}.ice-setup p{margin:0;font:italic 17px/1.4 Georgia,serif;text-align:center}.ice-setup strong{font:700 15px Georgia,serif}.ice-setup>div{display:flex;gap:7px;flex-wrap:wrap}
#winterPanel .ice-setup button{background:#315a45;color:#fff2dd;flex:1;min-width:85px;min-height:45px}#winterPanel .ice-setup button[aria-pressed=true]{background:#758d55;box-shadow:inset 0 0 0 2px #e6ca94}#winterPanel .ice-setup>[data-winter="ice-drill"]{background:#a16c3c;width:100%}
.ice-stage{position:relative;flex:1;min-height:350px;max-height:700px;overflow:hidden;pointer-events:none}.ice-angler{position:absolute;left:2%;bottom:16%;width:57%;max-width:420px;z-index:3;filter:drop-shadow(0 7px 5px #193b5066);animation:iceAngler 3s ease-in-out infinite;transform-origin:35% 80%}.ice-angler img{width:100%;display:block}.ice-bed{position:absolute;right:0;bottom:7%;width:36%;max-width:240px;z-index:4;filter:drop-shadow(0 7px 5px #1b354799)}.ice-bed>img:first-child{width:100%;display:block}.ice-bed>img:nth-child(2){position:absolute;left:26%;bottom:25%;height:115%;width:58%;object-fit:contain;filter:drop-shadow(0 2px 2px #273d38aa);animation:iceMapleWatch 3.5s ease-in-out infinite}
.ice-hole{position:absolute;left:48%;bottom:8%;width:35%;height:24%;max-width:230px;max-height:120px;border-radius:50%;background:#e8f5f6;border:8px solid #d7e8ed;box-shadow:0 4px 10px #1c3d5377,inset 0 0 8px #5688a0;z-index:2}.ice-water{position:absolute;inset:19% 12%;border-radius:50%;background:radial-gradient(ellipse at 45% 40%,#366d85,#102d48 75%);box-shadow:inset 0 0 15px #061e36}.ice-hole:after{content:'';position:absolute;inset:-14%;border:3px dashed #ffffffb0;border-radius:50%;transform:rotate(-10deg);pointer-events:none}.ice-line{position:absolute;left:55%;bottom:50%;width:2px;height:110%;background:#f8e5b5;transform:rotate(7deg);transform-origin:bottom;filter:drop-shadow(1px 1px #173d48)}

.ice-controls{padding:12px 16px;border:2px solid #d6b981;border-radius:18px;background:#20483fe8;text-align:center;max-width:540px;width:100%;box-sizing:border-box;margin:0 auto}.ice-controls p{margin:0 0 8px;min-height:22px;font:600 15px/1.35 Georgia,serif}#winterPanel .ice-controls button{min-height:52px;min-width:190px;background:#865a38;touch-action:none}.ice-catch{position:absolute;top:15%;left:50%;transform:translateX(-50%);z-index:5;width:min(52%,230px);padding:8px;border:2px solid #d0a97b;border-radius:17px;background:#fff1dce9;color:#284b3d;display:flex;flex-direction:column;align-items:center;box-shadow:0 7px 20px #17394977;text-align:center}.ice-catch[hidden]{display:none}.ice-catch img,.ice-catch svg{width:100%;max-height:100px;object-fit:contain}.ice-catch strong{font:700 16px Georgia,serif}
.ice-stage[data-spot="reeds"] .ice-hole{left:35%;bottom:5%}.ice-stage[data-spot="reeds"] .ice-angler{left:-6%}.ice-stage[data-spot="deep-water"] .ice-hole{left:56%;bottom:18%}.ice-stage[data-spot="deep-water"] .ice-angler{left:7%;bottom:24%}
@keyframes iceAngler{50%{transform:rotate(1.5deg)}}@keyframes iceMapleWatch{50%{transform:rotate(-3deg)}}@media(max-width:480px){.ice-stage{min-height:310px}.ice-angler{left:-9%;width:72%;bottom:20%}.ice-bed{right:-3%;width:42%;bottom:7%}.ice-hole{left:44%;width:36%;bottom:8%;height:18%}.ice-location{font-size:16px}}@media(prefers-reduced-motion:reduce){.ice-angler,.ice-bed>img:nth-child(2){animation:none!important}}
/* The line follows the actual rod sprite and the bobber, including its bite dip. */
.ice-cast-line{position:absolute;inset:0;width:100%;height:100%;z-index:4;overflow:visible;pointer-events:none}.ice-cast-line path{fill:none;stroke:#fbe5ad;stroke-width:2;vector-effect:non-scaling-stroke;filter:drop-shadow(1px 1px 1px #173747)}
.ice-line{display:none}.ice-bed{right:auto;left:33%;bottom:4%;width:30%;max-width:190px}.ice-bed>img:nth-child(2){height:132.25%;width:67%;left:21%;bottom:25%}
.ice-hole{left:65%;width:27%;bottom:8%}.ice-stage[data-spot="reeds"] .ice-hole{left:60%;bottom:5%}.ice-stage[data-spot="deep-water"] .ice-hole{left:68%;bottom:18%}

.ice-biting .ice-water{background:radial-gradient(ellipse,#73b6c5,#17445d 65%,#092b44);box-shadow:inset 0 0 15px #061e36,0 0 0 8px #f5e8ba8c;animation:iceWaterSurge .38s ease-in-out infinite}
.ice-biting .ice-hole{box-shadow:0 0 0 10px #fff2b966,0 0 28px #ffeba5,inset 0 0 8px #5688a0}


@keyframes iceWaterSurge{50%{filter:brightness(1.4)}}
@media(max-width:480px){.ice-bed{right:auto;left:26%;bottom:4%;width:33%}.ice-hole{left:63%;width:27%;bottom:8%}.ice-stage[data-spot="reeds"] .ice-hole{left:57%}.ice-stage[data-spot="deep-water"] .ice-hole{left:67%}}
@media(prefers-reduced-motion:reduce){.ice-biting .ice-water{animation:none!important}}


/* Keep the fishing position tied to the edge of each drilled hole. */
.ice-stage { --hole-left: 65%; --hole-bottom: 8%; --angler-reach: 54%; }
.ice-stage[data-spot="reeds"] { --hole-left: 57%; --hole-bottom: 5%; }
.ice-stage[data-spot="deep-water"] { --hole-left: 68%; --hole-bottom: 18%; }
.ice-stage[data-angler="trainer"] { --angler-reach: 65%; }
#winterPanel .ice-stage .ice-hole { left: var(--hole-left); bottom: var(--hole-bottom); }
#winterPanel .ice-stage .ice-angler {
  left: var(--hole-left); bottom: calc(var(--hole-bottom) + 4%);
  width: 57%; transform: translateX(calc(-1 * var(--angler-reach))); animation: none;
}
#winterPanel .ice-hook {
  position: absolute; z-index: 5; width: 44px; height: 44px;
  transform: translate(-50%, -50%); padding: 0; background: transparent;
  border: 0; border-radius: 50%; pointer-events: auto; touch-action: manipulation;
}
#winterPanel .ice-hook[hidden] { display: none; }
#winterPanel .ice-hook:disabled { pointer-events: none; }
.ice-rig { position: absolute; top: 50%; left: 50%; display: grid; justify-items: center; transform: translateX(-50%); filter: drop-shadow(0 1px 2px #152e3f); }
.ice-lure { width: 15px; height: 19px; }
.ice-float { width: 12px; height: 8px; border: 1px solid #fff3d4; border-radius: 50%; background: linear-gradient(#fff3d4 48%, #c9513e 49%); }
.ice-biting .ice-hook::after { content: 'CATCH!'; position: absolute; left: 50%; bottom: 90%; transform: translateX(-50%); padding: 4px 7px; border-radius: 8px; background: #fff0c9; color: #234837; font: bold 12px system-ui, sans-serif; }
@media (max-width: 480px) {
  #winterPanel .ice-stage .ice-angler { width: 68%; }
}

.ice-stage[data-angler="piggylady"] .ice-angler::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url('adventure/ice-angler-piggylady-hair.png') 0 0 / 100% 100%;
  clip-path: polygon(21.5% 10%, 23% 6%, 27% 4.8%, 31% 5.1%, 34.2% 4.6%, 37.2% 7%, 38% 11%, 36% 10%, 33% 10%, 30.7% 13%, 29.4% 18%, 28.2% 24%, 26.1% 24%, 24.2% 22%, 22% 20.5%, 21% 16%);
}
#winterPanel .ice-stage .ice-bed { left: 2%; bottom: 2%; z-index: 2; width: 25%; }

.ice-panel [data-winter="ice-cast"]{touch-action:none;min-width:13em;font-variant-numeric:tabular-nums}
