/* Ocean fishing: wide deck view, one fixed rod butt, harbour radio on the right. */
body:has([data-of-root]){overflow:hidden}
#modal:has([data-of-root]){padding:10px;overflow:hidden;box-sizing:border-box}
#modal:has([data-of-root]) .modal-card{width:min(1520px,calc(100vw - 20px));height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);max-width:1520px;display:flex;flex-direction:column;overflow:hidden;padding:14px;box-sizing:border-box}
#modal:has([data-of-root]) .modal-card>header,#modal:has([data-of-root]) #modalFoot{display:none}
#modal:has([data-of-root]) #modalBody{flex:1;min-height:0;overflow:hidden;padding:0}
.of-root{--of-muted:#a7c4cb;--of-accent:#e9c982;position:relative;color:#e9f4f2;height:100%;min-height:0;display:flex;flex-direction:column;gap:9px;font-family:inherit;box-sizing:border-box}
.of-root *{box-sizing:border-box}
.of-root h3,.of-root p{margin:0}
.of-root .btn{font-size:12px;padding:7px 10px;min-height:30px}
.of-root button:focus-visible,.of-root [tabindex]:focus-visible{outline:2px solid #e9c982;outline-offset:2px}
.modal-card .of-heading{display:flex;align-items:center;gap:10px;flex:none;padding:0;border:0;font-family:inherit;line-height:1.35}
.of-heading>div{flex:1;min-width:0}
.of-eyebrow{font-size:9px;color:#86b7c4;letter-spacing:.15em}
.of-heading h2{font-size:21px;margin:2px 0}
.of-heading .of-guide-btn{border-color:#e9c98299;color:#f4e2bb;background:#14384acc}
.of-mobile-tabs{display:none}
.of-audio-status{font-size:10px;color:#9fc2cc;max-width:170px;line-height:1.25}
.of-audio-status:empty{display:none}

/* ---- layout: wide animation + harbour radio + species strip ---- */
.of-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 336px;grid-template-rows:minmax(0,1fr) 182px;gap:10px}
.of-main{position:relative;min-height:0;min-width:0;display:flex;flex-direction:column;gap:6px}
.of-sidebar{grid-column:2;grid-row:1;min-height:0;border:1px solid #426778;border-radius:10px;background:#102b3c;padding:8px;display:flex;flex-direction:column}
.of-harbor{flex:1;min-height:0;display:flex;overflow:auto;scrollbar-width:thin}
.of-harbor>.vh-root{flex:1;min-height:0}
.of-harbor-error{font-size:11px;color:#ffb3a4;padding:8px}

/* ---- the animated deck and sea ---- */
.of-scene{position:relative;flex:1;min-height:250px;overflow:hidden;border:1px solid #567987;border-radius:12px;isolation:isolate;
  background:linear-gradient(#122c46 0%,#3d6277 33%,#7d99a2 calc(44% + var(--of-dusk,0) * 6%),#3f8794 45%,#0f3f59 100%)}
.of-sun{position:absolute;left:17%;top:11%;width:46px;height:46px;border-radius:50%;background:#e8ce9b;box-shadow:0 0 55px #e8bf7d66;opacity:calc(1 - var(--of-night,0) * .85)}
.of-moon{position:absolute;left:74%;top:10%;width:34px;height:34px;border-radius:50%;background:#e8eef2;box-shadow:0 0 28px #d8e6ee99;opacity:calc(var(--of-night,0) * .9)}
.of-stars{position:absolute;inset:0 0 52%;opacity:calc(var(--of-night,0) * .85);
  background-image:radial-gradient(1px 1px at 12% 30%,#fff 50%,transparent),radial-gradient(1px 1px at 32% 12%,#fff 50%,transparent),radial-gradient(1.4px 1.4px at 55% 26%,#fff 50%,transparent),radial-gradient(1px 1px at 68% 8%,#fff 50%,transparent),radial-gradient(1px 1px at 84% 32%,#fff 50%,transparent),radial-gradient(1.2px 1.2px at 92% 16%,#fff 50%,transparent)}
.of-lantern{position:absolute;left:12%;top:38%;width:8px;height:8px;border-radius:50%;background:#ffd28a;box-shadow:0 0 22px #ffbb66;opacity:calc(var(--of-night,0) * .85)}
.of-horizon{position:absolute;left:0;top:calc(44.5% - 8px);width:100%;height:16px;background:none;border-top:1px solid #d9e7d299;border-radius:50% 50% 0 0/100% 100% 0 0;pointer-events:none}
.of-wave{position:absolute;left:-20%;width:140%;height:66%;bottom:-14%;background:repeating-radial-gradient(ellipse at 50% 0,transparent 0 18px,#a5e1df30 20px 21px,transparent 23px 45px);animation:of-swell 7s ease-in-out infinite alternate}
.of-wave-front{bottom:-27%;animation-delay:-3s}
/* Zone name floats inside the water like a chart watermark. */
.of-sea-name{position:absolute;left:50%;top:60%;transform:translate(-50%,-50%) rotate(-3.5deg);z-index:1;
  font-size:clamp(38px,6.4vw,104px);font-weight:800;letter-spacing:.16em;line-height:1;white-space:nowrap;
  color:#eaf9f7;opacity:.13;text-shadow:0 3px 18px #02131f;mix-blend-mode:screen;pointer-events:none;user-select:none}
.of-swimmers{position:absolute;inset:47% 0 20%;opacity:.62;z-index:1}
.of-swimmer{position:absolute;width:76px;animation:of-swim var(--swim-time) ease-in-out var(--swim-delay) infinite alternate}
.of-swimmer span{display:block}
.of-swim-reverse span{transform:scaleX(-1)}
.of-fish-art{display:block;width:100%;height:auto}

/* ---- nearby captains along the horizon ---- */
.of-fishers{position:absolute;left:0;right:0;top:22%;height:22%;z-index:2;pointer-events:none;overflow:hidden}
.of-fisher{position:absolute;bottom:6%;width:58px;transform:translateX(-50%);text-align:center;animation:of-drift var(--of-drift,18s) ease-in-out infinite alternate}
.of-fisher-hull{display:block;width:27px;height:8px;margin:0 auto;border-radius:2px 2px 7px 7px;background:var(--of-hull,#e6b45c);box-shadow:inset 0 -2px #00000044,0 1px #00000055}
.of-fisher-sail{display:block;width:0;height:0;margin:0 auto 1px;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:11px solid #f2ecd6cc;filter:drop-shadow(0 1px #00000033)}
.of-fisher-flag{display:inline-block;width:20px;height:14px;margin-top:2px;border:1px solid #ffffff55;border-radius:2px;object-fit:cover;background:#243a48;vertical-align:top}
.of-fisher-name{display:block;margin-top:1px;font-size:9px;line-height:1.15;color:#f4f7ee;text-shadow:0 1px 2px #04141ccc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---- deck: one third lower than before ---- */
.of-deck{position:absolute;bottom:0;left:0;width:100%;height:18%;z-index:3;filter:drop-shadow(0 -3px 3px #092a3b88)}
.of-deck svg{width:100%;height:100%;display:block}
.of-deck span{position:absolute;bottom:5px;left:10px;font-size:10px;color:#e6d0a5;opacity:.85}

/* ---- rod rig: SVG repaired by JS around a fixed butt point ---- */
.of-rig{position:absolute;inset:0;width:100%;height:100%;z-index:5;pointer-events:none;overflow:visible}
.of-rig-rod{fill:none;stroke:#2f2013;stroke-width:6.5;stroke-linecap:round}
.of-rig-rod-core{fill:none;stroke:#d9bd82;stroke-width:2.4;stroke-linecap:round}
.of-rig-line{fill:none;stroke:#eef3e4d9;stroke-width:1.25;opacity:0;transition:opacity 160ms ease}
.of-rig-float ellipse{fill:#e5452f;stroke:#7d1a11;stroke-width:1.2}
.of-rig-seat{fill:#9db2b6;stroke:#22333a;stroke-width:2}
.of-rig-foot{fill:#1d1712;opacity:.42}
.of-ripple{position:absolute;width:34px;height:11px;border:1px solid #d5eeec88;border-radius:50%;opacity:0;z-index:4;pointer-events:none}
.of-line-in .of-ripple{opacity:1;animation:of-float-ripple 2.2s ease-out infinite}
.of-splash{position:absolute;width:38px;height:13px;border-radius:50%;opacity:0;z-index:6;pointer-events:none;background:radial-gradient(ellipse at center,#eaf7ffff 0%,#7fd6ff88 45%,transparent 72%)}
.of-splash-burst .of-splash{animation:of-splash-burst 1.2s ease-out 1}
.of-hook-catch{position:absolute;left:0;top:0;width:72px;z-index:6;pointer-events:none}
.of-hook-catch svg{width:100%;height:auto;filter:drop-shadow(0 3px 6px #02131f)}
.of-tension{display:none}
.of-haul{position:absolute;z-index:6;width:74px;height:5px;border-radius:3px;background:#0a2230cc;box-shadow:0 0 0 1px #7fd6ff44 inset;opacity:0;transition:opacity 200ms ease;pointer-events:none;left:60%;top:72%}
.of-haul i{display:block;height:100%;width:0;border-radius:3px;background:linear-gradient(90deg,#7fd6ff,#ffd479)}
.of-sinking .of-haul,.of-lifting .of-haul{opacity:1}
.of-sinking .of-haul i{animation:of-haul-fill 5s linear forwards}
.of-lifting .of-haul i{width:100%}

/* ---- top-right readouts: quota, then the harbour solar clock ---- */
.of-scene-quota{position:absolute;right:14px;top:12px;z-index:8;text-align:right;line-height:1.55;pointer-events:none;text-shadow:0 1px 7px #02121c}
.of-scene-quota b{display:block;font-size:11.5px;font-weight:600;letter-spacing:.05em;color:#ffd9a8}
.of-scene-quota span{display:block;font-size:12.5px;color:#eaf4f2}
.of-scene-quota em{font-style:normal;font-size:17px;font-weight:700;color:#ffe6a8}
.of-local-time{position:absolute;left:50%;right:auto;top:6px;z-index:9;transform:translateX(-50%);max-width:calc(100% - 290px);overflow:hidden;text-overflow:ellipsis;font-size:15px;font-weight:600;color:#fff4da;
  background:#0b2838cc;border:1px solid #cad9cf66;border-radius:20px;padding:5px 13px;white-space:nowrap;pointer-events:none;text-shadow:0 1px 6px #02121c}

/* ---- bucket, meter and floating fish ---- */
.of-tub{position:absolute;right:14%;bottom:8%;width:58px;height:56px;z-index:4}
.of-tub-mouth{position:absolute;top:0;left:3px;width:52px;height:15px;border-radius:50%;background:#5b4028;border:2px solid #2c2016;overflow:hidden}
.of-tub-water{position:absolute;inset:2px;border-radius:50%;background:radial-gradient(ellipse at 40% 30%,#8fd3e2,#3d7f95)}
.of-tub-body{position:absolute;top:7px;left:5px;width:48px;height:46px;border-radius:5px 5px 14px 14px;background:linear-gradient(90deg,#8a6440,#b08352 45%,#6d4c30);border:2px solid #2c2016;box-shadow:2px 0 0 #b99b6b55 inset}
.of-tub-jiggle{animation:of-tub-jiggle .5s ease}
.of-bucket-meter{position:absolute;right:15%;bottom:calc(8% + 58px);z-index:4;text-align:right;pointer-events:none}
.of-bucket-meter small{display:block;font-size:9px;color:#bcd3d8}
.of-bucket-meter strong{font-size:11px;color:#ffe6a8}
.of-bucket-species{position:absolute;right:12px;top:98px;z-index:7;width:132px;max-height:calc(100% - 250px);overflow:auto;display:flex;flex-direction:column;gap:3px;pointer-events:none;scrollbar-width:thin}
.of-bucket-species>div{display:flex;align-items:center;gap:4px;background:#08202ecc;border:1px solid #466a78;border-radius:5px;padding:2px 4px}
.of-bucket-species svg{width:26px;height:18px}
.of-bucket-species span{font-size:9px;color:#dfeaee;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.of-bucket-species b{font-size:9px;color:#ffe6a8;margin-left:auto}
.of-bucket-meter.is-near small{color:#ffd479}
.of-bucket-meter.is-full small{color:#ffb3a4;font-weight:700}
.of-bucket-meter.is-full strong{color:#ffd0c4}
.of-bucket-scale{position:relative;height:4px;margin:3px 0 2px;border-radius:3px;background:#0b1f2ecc;border:1px solid #466a78;overflow:hidden}
.of-bucket-scale i{display:block;height:100%;background:linear-gradient(90deg,#3f9d7a,#7fd6c0);transition:width .3s ease}
.of-bucket-species.is-near .of-bucket-scale i{background:linear-gradient(90deg,#a97a22,#ffd479)}
.of-bucket-species.is-full .of-bucket-scale i{background:linear-gradient(90deg,#b53527,#ff6b5a)}
.of-bucket-cap{margin:0;text-align:right;font-size:10px;color:#bcd3d8}
.of-bucket-cap.is-near{color:#ffd479;font-weight:700}
.of-bucket-cap.is-full{color:#ffb3a4;font-weight:700;animation:of-bucket-cap-full 1.8s ease-in-out infinite}
@keyframes of-bucket-cap-full{0%,100%{text-shadow:0 0 0 #ff6b5a00}50%{text-shadow:0 0 6px #ff6b5a99}}
.of-tub-btn.is-urgent{border-color:#ffd479;background:#3a2a10e6;color:#ffe6a8}
.of-flying-fish{position:absolute;left:0;top:0;width:64px;z-index:9;animation:of-fish-flight .55s ease-in forwards}
.of-bucket-pop{position:absolute;left:50%;top:-12px;transform:translateX(-50%);font-size:12px;font-weight:700;color:#ffe6a8;animation:of-bucket-pop .6s ease-out forwards}
.of-bucket-splash{position:absolute;inset:-6px;border-radius:50%;background:radial-gradient(circle,#cdefff 0,#7fd6ff55 45%,transparent 70%);animation:of-bucket-pop .6s ease-out forwards}
.of-tub-actions{position:absolute;right:calc(14% - 54px);bottom:8%;z-index:6;height:56px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;gap:4px}
.of-root .of-tub-btn{display:inline-flex;align-items:center;justify-content:center;gap:3px;height:24px;min-height:24px;padding:0 5px;font-size:10px;line-height:1;border-radius:6px;background:#0d2a39e6;border:1px solid #9cb9b6;color:#e9f4f2;white-space:nowrap}
.of-tub-btn svg{width:12px;height:12px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.of-tub-btn:disabled{opacity:.42}
.of-tub-btn.is-full{border-color:#ff8a73;background:#3a1512e6;color:#ffd0c4}

/* ---- bite countdown + notices ---- */
.of-bite-countdown{position:absolute;left:50%;bottom:15%;z-index:9;transform:translateX(-50%);display:flex;align-items:baseline;gap:5px;padding:5px 12px;border-radius:999px;background:#0b1f2ee6;border:1px solid #ffd479;box-shadow:0 0 0 1px #00000055,0 4px 14px #00000066;pointer-events:none;white-space:nowrap}
.of-bite-countdown[hidden]{display:none}
.of-bite-countdown b{font-size:22px;line-height:1;color:#ffe6a8;font-variant-numeric:tabular-nums;text-shadow:0 0 8px #ffb34788}
.of-bite-countdown small{font-size:10px;color:#dbe8ef}
.of-bite-countdown.is-urgent{animation:of-countdown-urgent .9s ease-in-out infinite}
.of-bite-countdown.is-urgent b{color:#ff9c8a}
.of-scene-toast{position:absolute;left:50%;bottom:36%;z-index:9;transform:translateX(-50%);padding:4px 11px;border-radius:999px;background:#3a1418e6;border:1px solid #ff9c8a;color:#ffd8cf;font-size:10px;pointer-events:none;white-space:nowrap;box-shadow:0 3px 12px #00000055}
.of-scene-toast[hidden]{display:none}

/* ---- controls ---- */
.of-actions{position:absolute;left:50%;bottom:8px;z-index:10;transform:translateX(-50%);display:flex;flex-wrap:wrap;justify-content:center;gap:6px;width:min(660px,62%);max-width:min(660px,62%)}
.of-capacity{flex:0 0 100%;display:flex;align-items:center;gap:7px;min-width:0;padding:3px 8px;border-radius:6px;background:#0a2433d9;border:1px solid #4b7080cc;font-size:9.5px;line-height:1.2;color:#cfe3e6;text-shadow:0 1px 2px #02131f}
.of-capacity>span{white-space:nowrap}
.of-capacity b{color:#ffe6a8;font-variant-numeric:tabular-nums}
.of-capacity-track{position:relative;flex:1;min-width:40px;height:7px;border-radius:999px;background:#223a46;overflow:hidden;box-shadow:inset 0 1px 2px #00000099}
.of-capacity-track>i{display:block;height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#2f9d63,#67d894);transition:width .35s ease}
.of-capacity-track:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 calc(10% - 1px),#ffffff26 calc(10% - 1px) 10%);pointer-events:none}
.of-capacity.is-danger .of-capacity-track>i{background:linear-gradient(90deg,#b53527,#ff6b5a)}
.of-capacity.is-danger b{color:#ffb3a4}
.of-capacity.is-full{border-color:#e0654f;background:#2d1210e6;box-shadow:0 0 0 1px #e0654f33,0 0 12px #e0654f2e}
.of-capacity.is-full>span{color:#ffd8cf}
.of-capacity.is-full b{color:#ffb3a4}
.of-capacity-scale{position:relative;flex:1;min-width:52px;display:flex;align-items:center}
.of-capacity-scale .of-capacity-track{flex:1}
.of-capacity.is-full .of-capacity-track{background:#4a231f}
.of-capacity.is-full .of-capacity-track>i{background:linear-gradient(90deg,#b53527,#ff6b5a)}
.of-capacity-full-mark{position:absolute;right:0;top:50%;z-index:1;transform:translateY(-50%);padding:1px 3px;border-radius:4px;border:1px solid #ff8a73;background:#2a0d0b;color:#ffd0c4;font-style:normal;font-size:8px;line-height:1.1;letter-spacing:.04em;white-space:nowrap;pointer-events:none;animation:of-capacity-full 1.8s ease-in-out infinite}
@keyframes of-capacity-full{0%,100%{box-shadow:0 0 0 0 #ff6b5a00}50%{box-shadow:0 0 0 3px #ff6b5a2e}}
.of-actions .btn{background:#173d4ee8;color:#e9f4f2;border:1px solid #9cb9b6}
.of-root .of-actions .of-cast{font-size:16px;min-height:44px;padding:10px 20px;border-width:2px;box-shadow:0 5px 15px #092a3b80}
.of-actions .of-cast{background:#d7bf7a;color:#153447;font-weight:700}
.of-hotkey{position:absolute;left:12px;top:10px;z-index:24;display:flex;align-items:center;gap:5px;padding:3px 8px;border-radius:999px;background:#07202fd9;border:1px solid #426778c0;font-size:10px;line-height:1.4;color:#cfe3e6;pointer-events:none;text-shadow:0 1px 2px #02131f;transition:opacity .18s ease}
.of-hotkey kbd{font:inherit;font-size:9.5px;font-weight:700;letter-spacing:.06em;padding:0 5px;border-radius:4px;border:1px solid #9cb9b688;background:#123447;color:#ffe6a8}
.of-hotkey.is-off{opacity:.45}
.of-message{position:absolute;left:12px;top:40px;z-index:24;max-width:46%;margin:0;padding:5px 9px;border:1px solid #426778c0;border-radius:8px;background:#07202fd9;font-size:11px;line-height:1.5;color:#e9c982;pointer-events:none}
.of-message:empty{display:none}

/* ---- guide overlay ---- */
.of-guide{position:absolute;left:50%;top:50%;right:auto;bottom:auto;z-index:60;transform:translate(-50%,-50%);display:flex;flex-direction:column;gap:9px;width:min(560px,calc(100% - 36px));max-height:calc(100% - 28px);padding:16px 18px;background:#07202fe8;border:1px solid #6b8c99;border-radius:12px;backdrop-filter:blur(6px);overflow:auto;box-shadow:0 0 0 100vmax #04121eb3,0 18px 50px #00000080}
.of-guide[hidden]{display:none}
.of-guide header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.of-guide header b{font-size:15px;color:#ffe6a8;letter-spacing:.08em}
.of-guide p{font-size:12.5px;line-height:1.85;color:#e6f1f3}

/* ---- results ---- */
.of-results{position:absolute;left:12px;bottom:64px;z-index:26;width:min(340px,46%);max-height:46%;overflow:auto;display:flex;flex-direction:column;gap:5px;padding:7px 9px;border:1px solid #426778;border-radius:8px;background:#102b3ce8;box-shadow:0 8px 22px #02131f99}
.of-result-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.of-result-heading h3{font-size:13px}
.of-result-heading>span{font-size:10px;color:#a7c4cb}
.of-catches{display:flex;gap:10px;flex-wrap:wrap}
.of-catch{display:flex;align-items:center;gap:6px}
.of-catch-image{width:47px}
.of-catch-copy{display:flex;gap:6px;align-items:center;font-size:11px}
.of-catch-copy h3{font-size:12px}
.of-catch-copy>p,.of-catch-copy>small,.of-catch-copy>.of-tier{display:none}

/* ---- species strip ---- */
.of-legend{grid-column:1/-1;grid-row:2;display:flex;flex-direction:column;gap:6px;min-height:0;padding:9px;border:1px solid #426778;border-radius:10px;background:#102b3c}
.of-species{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));grid-template-rows:minmax(0,1fr);flex:1;min-height:0;gap:4px;overflow:hidden}
.of-species-card{line-height:1.2;display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;text-align:center;padding:5px 4px;background:#153d49;border:1px solid #426a70;border-radius:6px;min-width:0;overflow:hidden}
.of-species-art{display:flex;align-items:center;justify-content:center;width:100%;min-height:16px}
.of-species-art svg{width:calc(26px + 9px * var(--of-units,1));max-width:100%;height:auto}
.of-species-card strong{display:block;width:100%;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.of-species-card small{display:block;width:100%;font-size:9.5px;color:#a7c4cb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.of-energy{display:block;font-size:9.5px;line-height:1.15;color:#8fe0c0;font-variant-numeric:tabular-nums;white-space:nowrap}
.of-species-card.of-locked{background:#2b3a43;border-color:#4b565c;opacity:.72}
.of-species-card.of-locked .of-species-art svg{filter:grayscale(1) brightness(.8);opacity:.5}
.of-species-card.of-locked strong,.of-species-card.of-locked small{color:#b6c1c5}
.of-tier-help{font-size:10px;color:#d9d9b3;cursor:help}
.of-tooltip{display:none;position:fixed;left:50%;bottom:24px;transform:translateX(-50%);width:min(520px,calc(100vw - 44px));padding:12px;background:#092333;color:#f2e7c8;border:1px solid #e9c982;border-radius:8px;z-index:10000;font-size:12px;line-height:1.6;white-space:normal;box-shadow:0 5px 25px #0008}
.of-tier-help:hover .of-tooltip,.of-tier-help:focus .of-tooltip{display:block}
.of-pager{display:flex;justify-content:space-between;align-items:center;gap:6px;flex:none}
.of-pager span{font-size:10px;color:#a7c4cb}
.of-pager .btn{padding:3px 7px;min-height:25px;font-size:10px}

/* ---- animations ---- */
@keyframes of-swell{from{transform:translateY(0) scaleX(1)}to{transform:translateY(-7px) scaleX(1.02)}}
@keyframes of-swim{from{transform:translateX(-16px)}to{transform:translateX(26px)}}
@keyframes of-drift{from{transform:translateX(-50%) translateY(0)}to{transform:translateX(-50%) translateY(-3px)}}
@keyframes of-float-ripple{0%{transform:scale(.55);opacity:.9}100%{transform:scale(1.7);opacity:0}}
@keyframes of-splash-burst{0%{opacity:0;transform:scale(.4)}25%{opacity:.95;transform:scale(1.1)}100%{opacity:0;transform:scale(1.8)}}
@keyframes of-haul-fill{0%{width:0}100%{width:100%}}
@keyframes of-countdown-urgent{0%,100%{box-shadow:0 0 0 1px #00000055,0 4px 14px #00000066}50%{box-shadow:0 0 0 2px #ff6b5a99,0 4px 18px #ff6b5a66}}
@keyframes of-tub-jiggle{0%,100%{transform:rotate(0)}30%{transform:rotate(-4deg)}60%{transform:rotate(3deg)}}
@keyframes of-fish-flight{0%{opacity:0;transform:translate(-50%,-50%) scale(.5)}20%{opacity:1}100%{opacity:.1;transform:translate(calc(-50% + var(--of-fly-x,0px)),calc(-50% + var(--of-fly-y,0px))) scale(.9)}}
@keyframes of-bucket-pop{0%{opacity:1;transform:translate(-50%,0) scale(.7)}100%{opacity:0;transform:translate(-50%,-16px) scale(1.25)}}

@media(prefers-reduced-motion:reduce){.of-root *,.of-root *:before,.of-root *:after{animation:none!important;transition:none!important}}

/* ---- responsive ---- */
@media(max-width:1180px){.of-layout{grid-template-columns:minmax(0,1fr) 300px}.of-sea-name{font-size:clamp(30px,5.4vw,72px)}
  .of-actions{max-width:min(520px,66%)}
  .of-actions .btn{font-size:11.5px;padding:7px 10px}
  .of-root .of-actions .of-cast{font-size:14px;min-height:38px;padding:9px 14px}
}
@media(max-width:900px){
  .of-layout{display:flex;flex-direction:column;grid-template-rows:none}
  .of-sidebar,.of-legend{display:none}
  .of-root[data-mobile-tab=nearby] .of-sidebar{display:flex;flex:1}
  .of-root[data-mobile-tab=legend] .of-legend{display:flex;flex:1}
  .of-root[data-mobile-tab=sea] .of-main{display:flex;flex:1}
  .of-mobile-tabs{display:flex;gap:5px;flex:none}
  .of-mobile-tabs>button{flex:1}
  .of-scene{min-height:220px}
}
@media(max-width:700px){
  #modal:has([data-of-root]){padding:6px}
  #modal:has([data-of-root]) .modal-card{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);padding:10px}
  .of-root{gap:7px}
  .of-heading{gap:6px}
  .of-heading h2{font-size:17px}
  .of-eyebrow{display:none}
  .of-heading .btn{font-size:11px;padding:5px}
  .of-audio-status{display:none}
  .of-actions{left:8px;right:8px;bottom:8px;width:auto;max-width:none;transform:none;justify-content:stretch}
  .of-actions .btn{font-size:11px;padding:7px}
  .of-local-time{top:11px;font-size:11px;padding:3px 9px}
  .of-scene-quota b{font-size:10px}
  .of-scene-quota span{font-size:11px}
  .of-sea-name{font-size:34px;letter-spacing:.08em}
  .of-bucket-species{width:104px;right:4px;top:88px}
  .of-tub-actions{right:calc(14% - 30px)}
  .of-root .of-tub-btn{width:24px;padding:0}
  .of-tub-btn span{display:none}
  .of-species{grid-template-columns:repeat(10,64px);grid-template-rows:minmax(0,1fr);overflow-x:auto;overflow-y:hidden}
  .of-species-card{padding:3px 2px;gap:2px}
  .of-species-art svg{width:calc(18px + 6px * var(--of-units,1))}
  .of-species-card small{font-size:8px}
  .of-catch-image{width:32px}
}

/* Harbour radio compacted for the fishing sidebar. */
.of-harbor .vh-root{margin-top:0;padding:.62rem;border-radius:9px;flex:1;min-height:0;display:flex;flex-direction:column}
.of-harbor .vh-log{flex:1;height:auto;min-height:110px}
.of-harbor .vh-rule{margin:.35rem 0 .5rem}
.of-harbor .vh-gift{margin-top:.3rem}
@media(max-width:900px){.of-message{max-width:64%;font-size:10px}.of-results{width:min(300px,74%);bottom:60px;max-height:42%}}

@media(max-width:560px){
  .of-local-time{left:auto;right:14px;top:56px;transform:none;width:max-content;max-width:calc(100% - 28px);overflow:visible;white-space:normal;text-align:center;line-height:1.45;font-size:11px;padding:4px 9px}
}

/* Action colour = permission: green when a cast is allowed, red when a fish is on the hook. */
.of-root .of-actions .of-cast.is-ready{background:linear-gradient(180deg,#3ecf7c,#1c8f4c);color:#04240f;border-color:#a5f0c4;box-shadow:0 6px 18px #0f8a4480,inset 0 1px 0 #c9ffdf}
.of-root .of-actions .of-cast.is-ready:hover{background:linear-gradient(180deg,#4ade88,#21a257)}
.of-root .of-actions .of-cast.is-ready:focus-visible{outline:2px solid #b8ffd6;outline-offset:2px}
.of-root .of-actions .of-cast.is-hooked{background:linear-gradient(180deg,#f05252,#b91c1c);color:#fff;border-color:#ffc2c2;box-shadow:0 6px 20px #b91c1c99,inset 0 1px 0 #ffdede;animation:of-cast-alarm 1s ease-in-out infinite}
.of-root .of-actions .of-cast.is-hooked:hover{background:linear-gradient(180deg,#ff5f5f,#c62828)}
.of-root .of-actions .of-cast.is-hooked:focus-visible{outline:2px solid #ffd0d0;outline-offset:2px}
@keyframes of-cast-alarm{0%,100%{box-shadow:0 6px 20px #b91c1c99,inset 0 1px 0 #ffdede}50%{box-shadow:0 6px 30px #ff5a5ad9,inset 0 1px 0 #ffdede}}
@media (prefers-reduced-motion:reduce){.of-root .of-actions .of-cast.is-hooked{animation:none}}
