/* fishing.css — the prompt, the cast meter, the fight and the catch card.
   Same chrome as the rest of the HUD (skin.css tokens). */
.fish-prompt {
  position: fixed; left: 50%; bottom: 186px; transform: translateX(-50%); z-index: 40;
  background: var(--ww-glass-hi); border: 1px solid var(--ww-line-hi); border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36); padding: 8px 16px 8px 8px;
  font-family: var(--ww-ui); font-weight: 700; font-size: 16px; letter-spacing: 2px; color: var(--ww-cream);
  pointer-events: none; white-space: nowrap; animation: ww-prompt-in 160ms ease-out;
}
.fish-prompt .fp-pool { color: #6fd8ff; margin-left: 10px; font-size: 13px; }
#fishing .ik {
  font-family: var(--pixel-font); font-size: 13px; background: var(--ww-gold); color: #14030a;
  padding: 5px 7px; margin-right: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); vertical-align: 2px;
}

/* cast meter: a vertical bar beside the player, sweet spot at the top */
.fish-cast { position: fixed; left: calc(50% + 60px); top: 50%; transform: translateY(-50%); z-index: 40; pointer-events: none; text-align: center; }
.fish-cast .fc-label { font-family: var(--pixel-font); font-size: 12px; color: var(--ww-gold); margin-bottom: 6px; text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
.fish-cast .fc-track { position: relative; width: 18px; height: 130px; background: var(--ww-glass-hi); border: 2px solid var(--ww-line-hi); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.fish-cast .fc-sweet { position: absolute; left: 0; right: 0; top: 0; height: 12%; background: rgba(125, 255, 154, 0.25); border-bottom: 1px dashed #7dff9a; }
.fish-cast .fc-fill { position: absolute; left: 2px; right: 2px; bottom: 2px; background: linear-gradient(0deg, #ff5c8a, var(--ww-gold)); }
.fish-cast .fc-fill.sweet { background: #7dff9a; box-shadow: 0 0 12px #7dff9a; }

/* the bite: a big ! over the player's head */
.fish-bite {
  position: fixed; z-index: 41; transform: translate(-50%, -100%); pointer-events: none;
  font-family: var(--ww-display); font-size: 64px; color: var(--ww-gold);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 200, 60, 0.8); animation: fish-bite 300ms ease-out infinite alternate;
}
@keyframes fish-bite { from { transform: translate(-50%, -100%) scale(1); } to { transform: translate(-50%, -110%) scale(1.18); } }

.fish-status {
  position: fixed; left: 50%; top: 30%; transform: translateX(-50%); z-index: 41; pointer-events: none;
  font-family: var(--ww-display); font-size: 30px; letter-spacing: 2px; color: var(--ww-cream);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); white-space: nowrap; animation: ww-prompt-in 160ms ease-out;
}
.fish-status.warn { color: var(--ww-amber); }
.fish-status.good { color: #7dff9a; }

/* the fight */
.fish-fight {
  position: fixed; right: max(28px, calc(50% - 360px)); top: 50%; transform: translateY(-50%); z-index: 42;
  background: var(--ww-glass-hi); border: 1px solid var(--ww-line-hi); box-shadow: var(--ww-shadow);
  padding: 12px 14px; width: 150px; user-select: none; touch-action: none;
}
.fish-fight .ff-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.fish-fight .ff-title { font-family: var(--ww-display); font-size: 26px; color: var(--ww-gold); letter-spacing: 1px; }
.fish-fight .ff-hint { font-family: var(--ww-ui); font-weight: 700; font-size: 13px; letter-spacing: 2px; color: #ff5c8a; min-height: 16px; }
.fish-fight .ff-body { display: flex; gap: 10px; justify-content: center; }
.fish-fight .ff-track {
  position: relative; width: 56px; height: 300px; overflow: hidden;
  background: linear-gradient(180deg, #2a6f8a 0%, #12384e 60%, #0a1f2e 100%); border: 2px solid #000;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.6);
}
.fish-fight .ff-zone {
  position: absolute; left: 3px; right: 3px; background: rgba(125, 255, 154, 0.28);
  border: 2px solid #7dff9a; border-radius: 3px; transition: background 120ms;
}
.fish-fight .ff-zone.on { background: rgba(125, 255, 154, 0.5); box-shadow: 0 0 14px rgba(125, 255, 154, 0.6); }
.fish-fight .ff-fish { position: absolute; left: 50%; transform: translateX(-50%) scaleX(-1); font-size: 24px; line-height: 24px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35)); }
.fish-fight .ff-fish.thrash { animation: fish-thrash 140ms linear infinite alternate; }
@keyframes fish-thrash { from { transform: translateX(-58%) scaleX(-1) rotate(-12deg); } to { transform: translateX(-42%) scaleX(-1) rotate(12deg); } }
.fish-fight .ff-prog { position: relative; width: 12px; height: 300px; background: #0b0910; border: 2px solid #000; }
.fish-fight .ff-prog-fill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, var(--ww-gold), #7dff9a); }
.fish-fight .ff-prog-fill.low { background: var(--danger); }
.fish-fight .ff-keys { margin-top: 10px; font-family: var(--ww-ui); font-weight: 700; font-size: 12px; letter-spacing: 1px; color: var(--ww-dim); line-height: 1.9; }
.fish-fight .ff-keys .ik { font-size: 8px; padding: 3px 5px; margin: 0 2px; }

/* the catch card */
.fish-card {
  --rar: var(--ww-cream);
  position: fixed; left: 50%; top: 22%; transform: translateX(-50%); z-index: 42; min-width: 300px; max-width: min(420px, calc(100vw - 32px));
  background: var(--ww-glass-hi); border: 1px solid var(--rar); border-top: 4px solid var(--rar);
  box-shadow: var(--ww-shadow), 0 0 40px color-mix(in srgb, var(--rar) 30%, transparent);
  padding: 14px 18px; text-align: center; animation: fish-card-in 260ms cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes fish-card-in { from { transform: translateX(-50%) scale(0.7); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
.fish-card.legend { animation: fish-card-in 260ms cubic-bezier(.2, 1.4, .4, 1), fish-legend 900ms ease-in-out 260ms infinite alternate; }
@keyframes fish-legend { to { box-shadow: var(--ww-shadow), 0 0 70px rgba(255, 200, 60, 0.7); } }
.fish-card .fcd-tags { min-height: 18px; display: flex; gap: 6px; justify-content: center; }
#fishing .tag { font-family: var(--pixel-font); font-size: 10px; padding: 4px 6px; background: #000; color: var(--ww-cream); border: 1px solid currentColor; }
#fishing .tag.new { color: #7dff9a; }
#fishing .tag.rec { color: #6fd8ff; }
#fishing .tag.bounty { color: var(--ww-gold); }
.fish-card .fcd-rarity { font-family: var(--pixel-font); font-size: 13px; margin-top: 8px; }
.fish-card .fcd-name { font-family: var(--ww-display); font-size: 40px; line-height: 1.05; color: var(--ww-cream); margin: 4px 0; text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.fish-card .fcd-line { font-family: var(--ww-ui); font-weight: 600; font-size: 16px; color: var(--ww-dim); }
.fish-card .fcd-stats { display: flex; justify-content: center; gap: 22px; margin: 10px 0 6px; font-family: var(--pixel-font); font-size: 17px; }
.fish-card .fcd-kg { color: #6fd8ff; }
.fish-card .fcd-take { color: var(--money); }
.fish-card .fcd-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; font-family: var(--ww-ui); font-weight: 700; font-size: 12px; letter-spacing: 1.5px; color: var(--ww-dim); }
.fish-card .fcd-open { background: none; border: 1px solid var(--ww-line-hi); color: var(--ww-cream); font: inherit; padding: 4px 4px 4px 10px; cursor: pointer; }
.fish-card .fcd-open .ik { margin: 0 0 0 8px; }

/* the log */
.fish-log { max-width: 900px; max-height: 84vh; overflow: auto; }
.fish-log .fl-head { display: flex; justify-content: space-between; align-items: center; }
.fish-log .fl-bounty { font-family: var(--ww-ui); font-weight: 700; letter-spacing: 1.5px; color: var(--ww-dim); margin: 4px 0 10px; }
.fish-log .fl-bounty b { color: var(--ww-gold); }
.fish-log .fl-pool h3 { font-family: var(--ww-display); font-weight: 400; font-size: 22px; letter-spacing: 1px; color: var(--ww-cream); margin: 14px 0 6px; }
.fish-log .fl-pool h3 small { font-family: var(--ww-ui); font-size: 13px; color: var(--ww-dim); letter-spacing: 1px; margin-left: 8px; }
.fish-log .fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fish-log .fl-fish { position: relative; border: 1px solid rgba(255, 255, 255, 0.08); border-left: 3px solid var(--rar); background: rgba(255, 255, 255, 0.03); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.fish-log .fl-fish b { font-family: var(--ww-ui); font-size: 16px; color: var(--ww-cream); }
.fish-log .fl-fish i { font-style: normal; font-family: var(--pixel-font); font-size: 10px; color: var(--rar); }
.fish-log .fl-fish span { font-family: var(--ww-ui); font-weight: 600; font-size: 12px; color: var(--ww-dim); }
.fish-log .fl-fish.unknown b { color: #555; }
.fish-log .fl-fish .tag { position: absolute; top: 6px; right: 6px; }
.fish-log .fl-foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.fish-log .fl-note { font-family: var(--ww-ui); font-weight: 700; letter-spacing: 1.5px; color: var(--ww-gold); }

/* touch: one button that casts, strikes and reels */
.fish-btn {
  position: fixed; right: 18px; bottom: 210px; z-index: 43; width: 76px; height: 76px; border-radius: 50%;
  background: #1f6f8a; color: #fff; border: 3px solid #6fd8ff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  font-family: var(--ww-display); font-size: 17px; letter-spacing: 1px; touch-action: none; user-select: none;
}
body.mobile .fish-prompt { bottom: 100px; font-size: 13px; }
body.mobile .fish-fight { right: 104px; padding: 8px; width: 118px; }
body.mobile .fish-fight .ff-track, body.mobile .fish-fight .ff-prog { height: 220px; }
body.mobile .fish-card .fcd-name { font-size: 30px; }
@media (prefers-reduced-motion: reduce) {
  .fish-bite, .fish-card, .fish-card.legend, .fish-fight .ff-fish.thrash { animation: none !important; }
}
