/* style-fish.css — request 31: 荷塘垂釣, 釣魚圖鑑, codex level tags / growth table, endless relic row */

/* ---------- codex additions (ui-collect.js) ---------- */
.uc-lvtag.full { background: linear-gradient(var(--gold-hi), var(--gold-dark)); color: #3a1204; border-color: #fff0b0; font-weight: 900; }
.uc-srow.gr { color: #ffd98a; font-size: 13px; }
.uc-upTag { padding: 0 8px; border-radius: 8px; background: linear-gradient(#8ff0b0, #2a9a5a); color: #08240f; text-shadow: none; font-size: 12px; font-weight: 900; white-space: nowrap; }
.uc-shTag { padding: 0 6px; border-radius: 8px; background: rgba(0,0,0,.55); border: 1px solid var(--gold); color: var(--gold-hi); font-size: 12px; white-space: nowrap; }
.uc-growbtn { min-height: 44px; min-width: 96px; padding: 0 10px; font-size: 14px; margin-top: 2px; }
.uc-growth .sc-panel, .fi-odds .sc-panel { width: min(92vw, calc(640px*var(--m))); gap: 8px; align-items: stretch; }
.uc-gtable { display: flex; flex-direction: column; gap: 3px; width: 100%; }
.uc-grow { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 4px; align-items: center; padding: 4px 8px; border-radius: 8px; background: rgba(0,0,0,.35); font-size: 15px; font-weight: 900; text-shadow: var(--outline); text-align: center; }
.uc-grow > span:first-child { text-align: left; }
.uc-grow.head { background: rgba(120,30,16,.7); color: var(--gold-hi); font-size: 13px; }
.fi-otable .uc-grow { grid-template-columns: 1.3fr repeat(5, 1fr); }

/* ---------- endless relic row on the wave result (ui-screens.js) ---------- */
.sc-wrelic { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; padding: 4px 14px; border-radius: 12px; font-size: 16px;
  background: rgba(0,0,0,.5); border: 2px solid var(--rc, var(--gold)); box-shadow: 0 0 12px var(--rc, var(--gold)); animation: lq-pop .35s ease-out both; }
.sc-wrelic img { width: 36px; height: 36px; object-fit: contain; }
.sc-wrelic b { color: var(--rc, var(--gold-hi)); }

/* ---------- fish pictures (4×4 atlases) ---------- */
.fi-pic { background-size: 400% 400%; background-repeat: no-repeat; }
.fi-pic.card { position: absolute; inset: 4px; }
.fi-pic.det { width: 92%; height: 92%; }
.fi-pic.big { width: 100%; height: 100%; }
.uc-card.miss .fi-pic, .uc-dframe.miss .fi-pic { filter: brightness(0) opacity(.5); }

/* ---------- fishing screen ---------- */
.fi-fish .sc-panel { width: min(96vw, calc(900px*var(--m))); height: min(94vh, calc(620px*var(--m))); box-sizing: border-box; gap: 6px; overflow: hidden; }
.fi-fish .sc-head { flex: none; flex-wrap: nowrap; }
.fi-left.none { opacity: .6; }
.fi-scene { position: relative; flex: 1 1 0; min-height: 0; width: 100%; border-radius: 12px; overflow: hidden; touch-action: none; cursor: pointer;
  background: #1c3a3a url(../assets/fish-bg.webp) center / cover no-repeat; border: 2px solid var(--gold-dark); box-shadow: inset 0 0 30px rgba(0,0,0,.55); }
.fi-line { position: absolute; left: 58%; top: 0; height: 52%; width: 2px; background: linear-gradient(rgba(255,255,255,.2), rgba(255,255,255,.75)); transform-origin: top; transform: rotate(-8deg); }
.fi-bob { position: absolute; left: 62%; top: 52%; width: 30px; height: 40px; margin: -30px 0 0 -15px;
  background: url(../assets/fish-bobber.webp) center bottom / contain no-repeat; filter: drop-shadow(0 2px 3px rgba(0,0,0,.55)); }
.fi-bob.idle, .fi-bob.result { opacity: 0; }
.fi-scene:has(.fi-bob.idle) .fi-line, .fi-scene:has(.fi-bob.result) .fi-line { opacity: 0; }
.fi-bob.wait { animation: fi-bob 1.6s ease-in-out infinite; }
.fi-bob.bite { animation: fi-sink .42s ease-out, fi-dip .32s ease-in-out .42s infinite alternate; }
@keyframes fi-sink { 0% { transform: translateY(0); } 30% { transform: translateY(20px) scale(.82); opacity: .55; } 100% { transform: translateY(4px); opacity: 1; } }
.fi-ring { position: absolute; left: 50%; top: 88%; width: 60px; height: 22px; margin: -11px 0 0 -30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); opacity: 0; pointer-events: none; }
.fi-bob.wait .fi-ring { animation: fi-ring 2.2s ease-out infinite; }
.fi-bob.bite .fi-ring { animation: fi-ring .7s ease-out infinite; }
.fi-ring.r2 { animation-delay: .35s !important; }
.fi-bang { position: absolute; left: 50%; top: -46px; transform: translateX(-50%); font-size: 38px; color: #ffe07a; animation: lq-pop .25s ease-out both; }
@keyframes fi-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(5px) rotate(3deg); } }
/* request 32: splash, droplets, the leaping fish, the weekend banner */
.fi-splash { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 2; }
.fi-sheet { position: absolute; left: 0; top: 0; background: url(../assets/vfx-splash.webp) 0 0 no-repeat; mix-blend-mode: screen; }
.fi-drop { position: absolute; left: -3px; top: -4px; width: 6px; height: 9px; border-radius: 50%; background: #e8f8ff; box-shadow: 0 0 4px var(--qc, #bfe9ff);
  animation: fi-drop .75s cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes fi-drop { 0% { transform: translate(0,0) scale(.5); opacity: 1; } 55% { transform: translate(var(--dx), var(--dy)); opacity: 1; }
  100% { transform: translate(calc(var(--dx) * 1.25), calc(var(--dy) * .2 + 26px)) scale(.6); opacity: 0; } }
.fi-splring { position: absolute; left: -45px; top: -12px; width: 90px; height: 24px; border-radius: 50%; border: 3px solid rgba(255,255,255,.85); animation: fi-ring .8s ease-out forwards; }
.fi-leap { position: absolute; left: 62%; top: 54%; width: 0; height: 0; pointer-events: none; z-index: 3; animation: fi-leapx 1.05s linear forwards; }
@keyframes fi-leapx { from { left: 62%; } to { left: 40%; } }
.fi-leapy { position: absolute; left: 0; top: 0; animation: fi-leapy 1.05s forwards; }
@keyframes fi-leapy {
  0% { transform: translateY(10px) rotate(40deg) scale(.55); opacity: 0; animation-timing-function: cubic-bezier(.2,.8,.4,1); }
  8% { opacity: 1; }
  50% { transform: translateY(-150px) rotate(0deg) scale(1); animation-timing-function: cubic-bezier(.6,0,.8,.4); }
  92% { opacity: 1; }
  100% { transform: translateY(10px) rotate(-45deg) scale(.6); opacity: 0; } }
.fi-pic.leapfish { position: absolute; width: 104px; height: 104px; left: -52px; top: -52px; filter: drop-shadow(0 0 5px var(--qc)) drop-shadow(0 0 12px var(--qc)); }
.fi-halo { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, var(--qc) 0, transparent 65%); opacity: .35; }
.fi-leap.lg .fi-halo { opacity: .75; animation: fi-halo .3s ease-in-out infinite alternate; }
@keyframes fi-halo { to { transform: scale(1.25); } }
.fi-drip { position: absolute; width: 5px; height: 8px; border-radius: 50%; background: #e8f8ff; opacity: 0; animation: fi-drip .45s ease-in infinite; }
.fi-drip.d0 { left: 20px; top: 10px; } .fi-drip.d1 { left: -6px; top: 22px; animation-delay: .15s; } .fi-drip.d2 { left: 34px; top: 26px; animation-delay: .3s; }
@keyframes fi-drip { 0% { transform: translateY(0); opacity: .9; } 100% { transform: translateY(34px); opacity: 0; } }
.fi-evbanner { position: absolute; left: 50%; top: 2%; translate: -50% 0; white-space: nowrap; max-width: 94%; overflow: hidden; text-overflow: ellipsis; z-index: 2;
  padding: 3px 18px; font-size: 16px; color: #ffe9b0; border-radius: 4px; border: 2px solid #ffcf5a; background: linear-gradient(90deg, rgba(150,20,10,.25), rgba(170,24,12,.92) 20% 80%, rgba(150,20,10,.25));
  box-shadow: 0 0 14px rgba(255,90,40,.6); animation: lq-pop .3s ease-out both, fi-evglow 1.4s ease-in-out .3s infinite alternate; pointer-events: none; }
@keyframes fi-evglow { to { box-shadow: 0 0 24px rgba(255,140,60,.95); } }
.fi-scene.ev .fi-msg { top: 15%; }
.fi-nocost { font-size: 15px; color: #9fe6c0; text-align: center; padding-bottom: 6px; }
/* weekend tag on the lobby's 釣魚 button */
.lb-fish.ev { box-shadow: 0 0 12px rgba(255,110,60,.85); }
.f-evtag { position: absolute; left: 50%; bottom: -9px; translate: -50% 0; white-space: nowrap; padding: 0 6px; font-size: 11px; line-height: 16px; border-radius: 8px;
  color: #fff3c8; background: linear-gradient(#e0402a, #9a160c); border: 1px solid #ffd26a; pointer-events: none; animation: fi-evglow 1.4s ease-in-out infinite alternate; }
/* odds: the event row */
.uc-grow.ev { background: rgba(200,40,20,.28); } .uc-grow.ev.on { box-shadow: inset 0 0 0 2px #ff8a5a; } .uc-grow.off { opacity: .5; }
.fi-evnote { color: #ffb08a; } .fi-evnote.on { color: #ffd2a0; font-weight: 900; }
/* 收集里程碑 row in the 魚圖鑑 */
.fi-ms { flex: none; display: flex; align-items: center; gap: 10px; width: 100%; padding: 2px 4px; box-sizing: border-box; }
.fi-mshead { display: flex; flex-direction: column; min-width: 0; flex: 0 1 auto; line-height: 1.2; }
.fi-mshead b { font-size: 16px; color: var(--gold-hi); } .fi-mshead span { font-size: 13px; color: var(--cream); white-space: nowrap; }
.fi-msrow { display: flex; gap: 8px; flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
.fi-mscard { position: relative; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 2px 10px; border-radius: 8px; cursor: pointer; font: inherit;
  border: 2px solid #8a6a3a; background: linear-gradient(rgba(110,46,38,.9), rgba(62,26,22,.94)); color: var(--cream); transition: transform .12s; }
.fi-mscard:active { transform: scale(.94); }
.fi-mscard.focus, .fi-mscard:hover { filter: brightness(1.2); }
.fi-mscard.ready { border-color: #ffd26a; box-shadow: 0 0 12px rgba(255,200,90,.8); animation: fi-evglow 1.2s ease-in-out infinite alternate; }
.fi-mscard.done { opacity: .6; } .fi-mscard.locked .fi-msn { color: #b9a58a; }
.fi-msn { font-size: 15px; color: var(--gold-hi); white-space: nowrap; }
.fi-msrw { display: flex; align-items: center; gap: 2px; font-size: 14px; white-space: nowrap; }
.fi-msico { width: 24px; height: 24px; object-fit: contain; }
.fi-msst { font-size: 12px; white-space: nowrap; color: #e9d3a8; }
.fi-mscard.ready .fi-msst { color: #8ff0b0; font-weight: 900; }
@keyframes fi-dip { from { transform: translateY(2px); } to { transform: translateY(12px) scale(.9); } }
@keyframes fi-ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
.fi-msg { position: absolute; left: 50%; top: 8%; transform: translateX(-50%); max-width: 90%; text-align: center; font-size: 19px; color: var(--cream);
  padding: 4px 16px; border-radius: 14px; background: rgba(66,28,24,.6); pointer-events: none; }
.fi-msg:empty { display: none; }
.fi-bar { position: absolute; left: 12%; right: 12%; bottom: 10%; height: 30px; border-radius: 15px; background: rgba(10,4,2,.75); border: 3px solid var(--gold); box-shadow: 0 0 14px rgba(0,0,0,.6); overflow: hidden; }
.fi-zone { position: absolute; top: 0; bottom: 0; }
.fi-zone.ok { background: rgba(120,220,170,.55); }
.fi-zone.good { background: rgba(255,210,90,.85); }
.fi-zone.perfect { background: linear-gradient(#ff8a6a, #e0302a); box-shadow: 0 0 10px #ff6a3a; }
.fi-mark { position: absolute; top: -4px; bottom: -4px; width: 6px; margin-left: -3px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px #2a0805, 0 0 10px #fff; }
.fi-res { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: min(300px, 70%); max-width: 86%;
  padding: 10px 18px; border-radius: 14px; border: 3px solid var(--qc, var(--gold)); background: linear-gradient(rgba(118,50,42,.94), rgba(62,26,22,.96)); box-shadow: 0 0 22px var(--qc, #000); }
.fi-res.miss { --qc: #8a7a6a; }
.fi-res.lg { animation: lq-pop .3s ease-out both, uc-redpulse 1.2s ease-in-out .4s infinite alternate; }
.fi-rmiss { font-size: 20px; color: #e9d3a8; padding: 10px 4px; text-align: center; }
.fi-grade { font-size: 22px; letter-spacing: 2px; margin-bottom: 10px; }
.fi-grade.g-perfect { color: #ff8a6a; } .fi-grade.g-good { color: #ffd76a; } .fi-grade.g-ok { color: #9fe6c0; }
.fi-rframe { position: relative; width: 120px; height: 120px; border-radius: 12px; border: 2px solid var(--qc); background: radial-gradient(circle, rgba(255,230,160,.3), rgba(20,4,2,.7)); box-shadow: 0 0 12px var(--qc); }
.fi-newtag { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); white-space: nowrap; }
.fi-rname { font-size: 22px; text-align: center; }
.fi-rinfo { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--gold-hi); text-align: center; }
.fi-rinfo .uc-upTag { font-size: 14px; }
.fi-rstat { font-size: 15px; font-weight: 900; color: #8ff0b0; text-shadow: var(--outline); }
.fi-actions { flex: none; display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; }
.fi-main { min-width: 200px; min-height: 52px; font-size: 22px; }
.fi-side { min-width: 110px; min-height: 44px; font-size: 15px; padding: 0 10px; }
/* request 35: 魚餌 button — icon, name + today x/5, price */
.fi-bait { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 6px; }
.fi-bait.busy { filter: brightness(.8); pointer-events: none; }
.fi-baiticon { width: 34px; height: 34px; object-fit: contain; flex: none; pointer-events: none; }
.fi-baittx { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.fi-baitn { font-size: 12px; color: #bff0ff; text-shadow: var(--outline); white-space: nowrap; }
.fi-baitp { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: #ffe08a; text-shadow: var(--outline); }
.fi-baitp img { width: 18px; height: 18px; object-fit: contain; }
.fi-go { min-width: 220px; }
@media (max-height: 520px) {
  .fi-fish .sc-panel { width: 98vw; height: 95vh; max-height: 95vh; padding: 2px 6px 4px; gap: 3px; border-width: 7px; }
  .fi-fish .sc-title { font-size: 18px; padding: 2px 30px 6px; }
  .fi-msg { font-size: 15px; top: 5%; }
  .fi-rframe { width: 72px; height: 72px; }
  .fi-res { padding: 6px 12px; gap: 2px; }
  .fi-rname, .fi-grade { font-size: 17px; }
  .fi-rinfo, .fi-rstat { font-size: 13px; }
  .fi-bar { height: 24px; bottom: 7%; }
  .fi-main { min-width: 150px; min-height: 46px; font-size: 18px; }
  .fi-side { min-width: 88px; font-size: 13px; }
  .uc-grow { font-size: 13px; padding: 2px 6px; }
  .uc-growth .sc-panel, .fi-odds .sc-panel { gap: 4px; padding: 2px 8px 6px; }
  .fi-pic.leapfish { width: 64px; height: 64px; left: -32px; top: -32px; }
  .fi-halo { width: 80px; height: 80px; left: -40px; top: -40px; }
  .fi-evbanner { font-size: 12px; padding: 1px 10px; }
  .fi-scene.ev .fi-msg { top: 17%; }
  .fi-ms { gap: 6px; padding: 0 2px; }
  .fi-mshead b { font-size: 13px; } .fi-mshead span { font-size: 11px; }
  .fi-msrow { gap: 5px; }
  .fi-mscard { min-height: 40px; padding: 1px 6px; gap: 4px; }
  .fi-msn { font-size: 12px; } .fi-msrw { font-size: 12px; } .fi-msico { width: 18px; height: 18px; } .fi-msst { display: none; }
}
@media (max-height: 520px) { @keyframes fi-leapy {
  0% { transform: translateY(6px) rotate(40deg) scale(.55); opacity: 0; animation-timing-function: cubic-bezier(.2,.8,.4,1); }
  8% { opacity: 1; }
  50% { transform: translateY(-90px) rotate(0deg) scale(1); animation-timing-function: cubic-bezier(.6,0,.8,.4); }
  92% { opacity: 1; }
  100% { transform: translateY(6px) rotate(-45deg) scale(.6); opacity: 0; } } }
