/* Typing Fishing: sky band on top, the boat floating on the water line, fish lanes below. */
.game.fishing { background: #1f9bb8; }
.fishing .fs-scene { flex: 1; position: relative; min-height: 0; overflow: hidden; }
.fishing .fs-sky { position: absolute; left: 0; right: 0; top: 0; height: 34%; background: linear-gradient(#8fdcff, #d4f4ff); }
.fishing .fs-sun { position: absolute; right: 6%; top: 10%; font-size: 52px; }
.fishing .fs-cloud { position: absolute; top: 14%; font-size: 60px; animation: drift 50s linear infinite; }
.fishing .fs-water { position: absolute; left: 0; right: 0; top: 34%; bottom: 0; background: linear-gradient(#3cc6e8, #1d86bd 45%, #10507f); }
.fishing .fs-waves { position: absolute; left: 0; right: 0; top: -10px; height: 20px; background: radial-gradient(circle at 20px -6px, transparent 18px, #3cc6e8 19px) 0 0 / 40px 20px repeat-x; animation: water 2.4s linear infinite; }
.fishing .fs-floor { position: absolute; left: 0; right: 0; bottom: 0; font-size: 40px; letter-spacing: 9vw; text-align: center; white-space: nowrap; opacity: .9; }
.fishing .fs-boat { position: absolute; left: 12%; top: calc(34% - 150px); width: 240px; z-index: 2; animation: rock 2.4s ease-in-out infinite; transform-origin: 50% 150px; }
.fishing .fs-boat-svg { width: 240px; height: 190px; display: block; }
.fishing .fs-count { position: absolute; right: 6px; top: 70px; background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 0 8px; font-weight: 800; font-size: 18px; }
.fishing .fs-count:empty { display: none; }
.fishing .fs-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.fishing .fs-lines line { stroke: #f4f4f4; stroke-width: 2.5; }
.fishing .fs-bobber { fill: #ff5a5f; stroke: var(--ink); stroke-width: 3; }
.fishing .fs-fishes { position: absolute; inset: 0; z-index: 4; pointer-events: none; }

.fishing .fish { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; will-change: transform; }
.fishing .fish-emoji { font-size: calc(62px * var(--fs-s, 1)); line-height: 1; display: block; }
.fishing .fish.big .fish-emoji { font-size: calc(92px * var(--fs-s, 1)); }
.fishing .fish.golden .fish-emoji { filter: drop-shadow(0 0 10px #ffe066); animation: twinkle-gold 1s ease-in-out infinite; }
.fishing .fish-word { background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 0 10px; font-size: calc(30px * var(--fs-s, 1)); font-weight: 800; letter-spacing: 2px; margin-top: -4px; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); white-space: nowrap; }
.fishing .fish-word span.done { color: var(--good); }
.fishing .fish-word span.now { color: var(--coral-dark); text-decoration: underline 4px var(--coral); text-underline-offset: 5px; }
.fishing .fish.targeted { z-index: 1; }
.fishing .fish.targeted .fish-word { background: #fff8d6; box-shadow: 0 0 0 4px var(--sun), 0 3px 0 rgba(0, 0, 0, .25); }
.fishing .fish.hooked .fish-word { opacity: 0; transition: opacity .2s; }

.fishing .fs-panel { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 16px; }
.fishing .fs-card { background: var(--paper); border: 4px solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 rgba(58, 42, 74, .3); padding: 20px 28px; text-align: center; max-width: 640px; width: 100%; }
.fishing .fs-card h3 { font-size: 32px; color: var(--grape); margin-bottom: 6px; }
.fishing .fs-card p { font-size: 20px; margin: 6px 0; }
.fishing .fs-tank-card { max-width: 820px; max-height: 100%; overflow: auto; }
.fishing .fs-tank { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 12px 0 16px; padding: 14px; border: 4px solid var(--ink); border-radius: 18px; background: linear-gradient(#bdf0ff, #3cc6e8 60%, #1d86bd); }
.fishing .fs-tank-fish { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fishing .fs-tank-emoji { font-size: 52px; line-height: 1; animation: tank-swim 3s ease-in-out infinite; animation-delay: var(--d); }
.fishing .fs-tank-name { background: rgba(255, 255, 255, .9); border: 2px solid var(--ink); border-radius: 999px; padding: 0 8px; font-size: 14px; font-weight: 800; }
.fishing .fs-tank-fish.unknown .fs-tank-emoji { filter: brightness(0) opacity(.35); animation: none; }
.fishing .fs-tank-fish.golden:not(.unknown) .fs-tank-emoji { filter: drop-shadow(0 0 8px #ffe066); }

@keyframes tank-swim { 0%, 100% { transform: translateX(-8px) translateY(0); } 50% { transform: translateX(8px) translateY(-6px); } }
@keyframes twinkle-gold { 0%, 100% { filter: drop-shadow(0 0 6px #ffe066); } 50% { filter: brightness(1.15) drop-shadow(0 0 16px #fff3a0); } }

@media (max-width: 640px) {
  .fishing .fs-boat { left: 2%; transform-origin: top left; scale: .8; }
  .fishing .fish-emoji { font-size: 46px; }
  .fishing .fish-word { font-size: 22px; }
}
