/* Fishing hub (js/fishing.js): angler level, rods, the rod upgrade track, what's biting, tips */
.fishing-hub { display: flex; flex-direction: column; gap: 10px; --fh-sea: #2f8fd8; --fh-sea-2: #64d2ff; }
.fishing-hub h4.sec { margin: 6px 0 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fishing-hub h4.sec small { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: none; letter-spacing: 0; }

/* hero: the rod you cast, your angler level and XP */
.fh-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 14px; border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(100, 210, 255, .28), transparent 60%), linear-gradient(160deg, #134a86, #0d2550 70%);
  border: 1px solid rgba(120, 200, 255, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), var(--shadow-sm); position: relative; overflow: hidden; }
.fh-hero::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -18px; height: 40px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(100, 210, 255, .25), transparent); animation: fh-wave 5s ease-in-out infinite; pointer-events: none; }
@keyframes fh-wave { 50% { transform: translateX(4%) scaleY(1.2); } }
.fh-hero-art { position: relative; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .18), rgba(255, 255, 255, .03) 70%); }
.fh-hero-art .item-art, .fh-hero-art .ic-tile { width: 62px; height: 62px; }
.fh-hero-art .item-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
.fh-lv { position: absolute; right: -4px; bottom: -2px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(var(--gold), var(--gold-2)); color: #2a1a00; font: 900 15px/1 'Lilita One', Nunito, sans-serif; border: 2px solid #0d2550; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.fh-hero-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fh-hero-txt > small { color: #bfe6ff; font-weight: 800; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; }
.fh-hero-txt > b { font: 400 22px/1.1 'Lilita One', Nunito, sans-serif; letter-spacing: .3px; }
.fh-xp { height: 10px; border-radius: 5px; background: rgba(0, 0, 0, .35); overflow: hidden; margin-top: 4px; }
.fh-xp i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--fh-sea), var(--fh-sea-2)); box-shadow: 0 0 10px rgba(100, 210, 255, .6); transition: width .6s var(--ease); }
.fh-hero-txt .fh-xp-t { color: #d6ecff; font-size: 12px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.fh-stats { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; position: relative; z-index: 1; }
.fh-stats li { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 12px; background: rgba(0, 0, 0, .22); }
.fh-stats b { font: 400 18px/1.1 'Lilita One', Nunito, sans-serif; }
.fh-stats small { color: #bfe6ff; font-size: 11px; font-weight: 800; }

/* the big Cast button */
.fh-cast { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; font-size: 16px; border-radius: 16px; }
.fh-cast .ic { width: 22px; height: 22px; }
.fh-cast[aria-disabled="true"] { filter: saturate(.25) brightness(.85); }

/* rods: three cards, the one you cast is lit */
.fh-rods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fh-rod { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px 9px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line);
  color: var(--text); font: inherit; text-align: center; min-height: 118px; transition: transform 120ms var(--ease), border-color var(--t), background var(--t); }
.fh-rod:active { transform: scale(.95); }
.fh-rod-pic { width: 54px; height: 54px; display: grid; place-items: center; }
.fh-rod-pic .item-art { width: 54px; height: 54px; }
.fh-rod-pic .item-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .4)); }
.fh-rod b { font-size: 13.5px; }
.fh-rod small { display: flex; align-items: center; gap: 3px; font-size: 11px; line-height: 1.2; color: var(--muted); font-weight: 700; }
.fh-rod small .ic { width: 12px; height: 12px; flex: none; }
.fh-rod.on { border-color: var(--fh-sea-2); background: linear-gradient(rgba(100, 210, 255, .16), rgba(100, 210, 255, .04)); box-shadow: 0 0 0 3px rgba(100, 210, 255, .15); }
.fh-rod.on small { color: #9fe2ff; }
.fh-rod.locked .fh-rod-pic { filter: grayscale(1) brightness(.45); }
.fh-rod.locked b { color: var(--muted); }

/* the rod upgrade track: a vertical line of nodes, reached ones gold, the next one pulsing */
.fh-track { list-style: none; margin: 0; padding: 0 0 0 4px; display: flex; flex-direction: column; position: relative; }
.fh-perk { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 0; position: relative; }
.fh-perk:not(:last-child)::before { content: ''; position: absolute; left: 19px; top: 38px; bottom: -8px; width: 3px; border-radius: 2px; background: var(--line-2); }
.fh-perk.got:not(:last-child)::before { background: linear-gradient(var(--gold), var(--gold-2)); }
.fh-node { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #13204a; border: 2px solid var(--line-2); color: var(--muted); position: relative; z-index: 1; }
.fh-node .ic { width: 20px; height: 20px; }
.fh-perk.got .fh-node { background: linear-gradient(var(--gold), var(--gold-2)); border-color: #ffe9a8; color: #2a1a00; box-shadow: 0 0 12px rgba(255, 207, 74, .45); }
.fh-perk.next .fh-node { border-color: var(--fh-sea-2); color: #dff4ff; animation: fh-pulse 1.8s ease-in-out infinite; }
@keyframes fh-pulse { 50% { box-shadow: 0 0 0 6px rgba(100, 210, 255, .18); } }
.fh-perk b { display: flex; align-items: baseline; gap: 6px; font-size: 14px; }
.fh-perk b em { font-style: normal; font-size: 11px; font-weight: 900; color: var(--muted); padding: 1px 6px; border-radius: 8px; background: var(--surface-2); }
.fh-perk.got b em { color: #2a1a00; background: var(--gold); }
.fh-perk small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.fh-perk:not(.got):not(.next) { opacity: .62; }
.fh-perk .fh-need { color: #9fe2ff; font-weight: 800; margin-top: 2px; }

/* what's biting here, per rod */
.fh-bite { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); padding: 8px 10px 10px; }
.fh-bite + .fh-bite { margin-top: 6px; }
.fh-bite.mine { border-color: rgba(100, 210, 255, .5); }
.fh-bite.nohold { opacity: .7; }
.fh-bite h5 { margin: 0 0 6px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.fh-bite h5 em { font-style: normal; font-size: 11px; font-weight: 800; color: #9fe2ff; display: inline-flex; align-items: center; gap: 3px; }
.fh-bite h5 em.lock { color: var(--muted); }
.fh-bite h5 .ic { width: 12px; height: 12px; }
.fh-bite ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.fh-mon { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px; border-radius: 12px; background: rgba(0, 0, 0, .18); text-align: center; position: relative; }
.fh-mon-pic { width: 48px; height: 48px; display: grid; place-items: center; font: 400 26px 'Lilita One', Nunito, sans-serif; color: var(--muted); }
.fh-mon-pic img { width: 100%; height: 100%; object-fit: contain; }
.fh-mon b { font-size: 12.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-mon small { font-size: 11px; color: var(--muted); font-weight: 700; }
.fh-mon.rare { box-shadow: inset 0 0 0 1px rgba(185, 140, 255, .55); }
.fh-mon.rare::after { content: 'Rare'; position: absolute; top: 4px; right: 4px; font-size: 9px; font-weight: 900; text-transform: uppercase; color: #e6d6ff; background: rgba(140, 90, 230, .55); padding: 0 5px; border-radius: 6px; }
.fh-mon.unknown .fh-mon-pic { background: rgba(255, 255, 255, .04); border-radius: 50%; width: 42px; height: 42px; margin: 3px; }
.fh-hint { margin: 4px 2px 0; font-size: 12px; }

/* how to fish */
.fh-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fh-tips li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface); font-size: 13px; line-height: 1.35; }
.fh-tips .ic { width: 20px; height: 20px; flex: none; color: #9fe2ff; }

html.touch .fh-hero { padding: 12px; }
html.touch .fh-hero-art { width: 66px; height: 66px; }
html.touch .fh-hero-art .item-art { width: 54px; height: 54px; }
html.reduce-motion .fh-hero::after, html.reduce-motion .fh-perk.next .fh-node { animation: none; }
@media (prefers-reduced-motion: reduce) { .fh-hero::after, .fh-perk.next .fh-node { animation: none; } }
