/* ============================================================
 *  GRINDVEIL — FISHING SYSTEM STYLES
 * ============================================================
 *  Panel layout, sub-tabs, spot grid, bestiary,
 *  Tension Bar mini-game overlay, Hook Chain Combo overlay,
 *  catch reward modal, password gate.
 * ============================================================ */

/* ── Beta password gate ──────────────────────────────────── */
.fish-gate-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
}
.fish-gate-card {
  background: linear-gradient(180deg, #1a1f28, #11141a);
  border: 1px solid rgba(74, 184, 200, 0.3);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(74, 184, 200, 0.1);
}
.fish-gate-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.fish-gate-title {
  color: #4ab8c8;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.fish-gate-desc {
  color: #aaa;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.fish-gate-card input[type=password] {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(74, 184, 200, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
  outline: none;
}
.fish-gate-card input[type=password]:focus {
  border-color: #4ab8c8;
  box-shadow: 0 0 0 2px rgba(74, 184, 200, 0.2);
}
.fish-gate-error {
  color: #ff6677;
  font-size: 11px;
  min-height: 14px;
  margin-bottom: 10px;
  font-weight: 600;
}
.fish-gate-btn {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(180deg, #5dc3d3, #3a8a96);
  border: 1px solid #4ab8c8;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.1s;
}
.fish-gate-btn:hover { transform: translateY(-1px); }
.fish-gate-btn:active { transform: translateY(0); }

/* ── Main panel ─────────────────────────────────────────── */
#panelFishing {
  position: relative;
  min-height: 100%;
  padding: 12px 16px;
}
/* v23.0.883 — phones have a fixed tab-bar (~52px) AND the mobile
   quick-action strip (~60px) sitting on top of it, eating ~110px of
   visible panel. The Buy-Energy button (rendered after "How Fishing
   Works") falls into that dead zone — Maxxl reported he didn't even
   know energy refill existed because he couldn't scroll past the
   strip. Reserve enough bottom padding so the last buttons clear both
   bars. iOS/Android safe-area for home-indicator is added on top. */
@media (max-width: 959px) {
  #panelFishing {
    padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px));
  }
}
#panelFishing::before {
  content: '';
  position: fixed;
  inset: 0;
  min-height: 100vh;
  background-image: url('../img/fishing/scene_bg.webp?v=23.0.124');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  contain: layout paint;
}
#panelFishing::after {
  content: '';
  position: fixed;
  inset: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.30) 0%, rgba(8, 12, 18, 0.55) 100%);
  pointer-events: none;
  z-index: 0;
}
.fish-panel {
  position: relative;
  z-index: 1;
}
.fish-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(74, 184, 200, 0.18);
}
.fish-header-title {
  color: #4ab8c8;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(74, 184, 200, 0.4);
}
.fish-header-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.fish-energy-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(74, 184, 200, 0.1);
  border: 1px solid rgba(74, 184, 200, 0.3);
  border-radius: 20px;
  cursor: help;
}
/* Hover tooltip explaining regen/cap/refill methods + premium */
.fish-energy-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  width: 280px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #1a1f28, #0a0e15);
  border: 1px solid rgba(74, 184, 200, 0.4);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  text-align: left;
  cursor: default;
}
.fish-energy-pill:hover .fish-energy-tooltip,
.fish-energy-pill:focus-within .fish-energy-tooltip {
  display: block;
}
.fet-title {
  color: #4ab8c8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(74, 184, 200, 0.5);
}
.fet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #888;
  padding: 3px 0;
}
.fet-row strong {
  color: #ddd;
  font-weight: 700;
  text-align: right;
}
.fet-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 0;
}
.fet-section {
  color: #4ab8c8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.fet-list {
  font-size: 11px;
  color: #bbb;
  line-height: 1.7;
}
.fet-list b {
  color: #ffe6c0;
}
.fish-bones-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 220, 180, 0.08);
  border: 1px solid rgba(255, 220, 180, 0.25);
  border-radius: 20px;
}
.fish-bones-icon { font-size: 14px; }
.fish-bones-val {
  color: #ffe6c0;
  font-size: 14px;
  font-weight: 800;
}
.fish-buff-pill {
  padding: 5px 11px;
  background: linear-gradient(180deg, rgba(170, 68, 255, 0.18), rgba(170, 68, 255, 0.05));
  border: 1px solid rgba(170, 68, 255, 0.4);
  border-radius: 20px;
  color: #cc99ff;
  font-size: 11px;
  font-weight: 800;
  animation: hotPulse 2s ease-in-out infinite;
}
.fish-energy-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.fish-energy-val {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.fish-energy-timer {
  color: #88ccdd;
  font-size: 10px;
  font-weight: 600;
  font-style: italic;
}

/* ── Sub-tabs ───────────────────────────────────────────── */
.fish-subtabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.fish-subtab {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #888;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.15s;
}
.fish-subtab:hover { color: #ccc; border-color: rgba(74, 184, 200, 0.3); }
.fish-subtab.active {
  background: rgba(74, 184, 200, 0.15);
  border-color: rgba(74, 184, 200, 0.5);
  color: #4ab8c8;
  text-shadow: 0 0 8px rgba(74, 184, 200, 0.4);
}

/* ── Mastery card ───────────────────────────────────────── */
/* Side-by-side mastery + hot-spot row (50/50 on desktop, stacked on mobile) */
.fish-mastery-hotspot-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (min-width: 720px) {
  .fish-mastery-hotspot-row {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}
.fish-mastery-hotspot-row > .fish-mastery-card,
.fish-mastery-hotspot-row > .fish-hotspot-card {
  margin-bottom: 0;
  height: 100%;
  box-sizing: border-box;
}

.fish-mastery-card {
  background: linear-gradient(180deg, rgba(74, 184, 200, 0.10), rgba(74, 184, 200, 0.03));
  border: 1px solid rgba(74, 184, 200, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.fish-mastery-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.fish-mastery-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 12px rgba(74, 184, 200, 0.5));
}
.fish-mastery-info {
  flex-shrink: 0;
}
.fish-mastery-title {
  color: #4ab8c8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
}
.fish-mastery-level {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}
.fish-mastery-perks {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}
.fmp-tag {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(74, 184, 200, 0.15);
  border: 1px solid rgba(74, 184, 200, 0.3);
  border-radius: 4px;
  color: #88ccdd;
  font-size: 10px;
  font-weight: 700;
}
.fmp-tag.fmp-empty {
  color: #777;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  font-style: italic;
}
.fish-mastery-bar {
  position: relative;
  height: 14px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 7px;
  overflow: hidden;
}
.fish-mastery-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ab8c8, #66ddee);
  transition: width 0.4s;
  box-shadow: 0 0 12px rgba(74, 184, 200, 0.5);
}
.fish-mastery-bar-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* ── Hot Spot card (side card next to mastery on desktop) ──── */
.fish-hotspot-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255, 136, 68, 0.18), rgba(255, 215, 0, 0.06));
  border: 1px solid rgba(255, 136, 68, 0.4);
  border-radius: 12px;
}
.fish-hotspot-card .fhc-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fish-hotspot-card .fhc-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 10px #ff8844);
  animation: hotPulse 1.5s ease-in-out infinite;
}
.fish-hotspot-card .fhc-titles {
  flex: 1;
  min-width: 0;
}
.fish-hotspot-card .fhc-label {
  color: #ffaa66;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.fish-hotspot-card .fhc-name {
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  margin-top: 2px;
}
.fish-hotspot-card .fhc-bonuses {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fish-hotspot-card .fhc-bonus-tag {
  padding: 3px 8px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 6px;
  color: #ffd680;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.fish-hotspot-card .fhc-desc {
  color: #ddc8a8;
  font-size: 11px;
  line-height: 1.5;
}
.fish-hotspot-card .fhc-desc b {
  color: #ffd680;
}
.fish-hotspot-card .fhc-countdown {
  color: #ffcc88;
  font-size: 11px;
  font-weight: 700;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 200, 100, 0.2);
}
.fish-hotspot-card .fhc-countdown strong {
  color: #FFD700;
  font-variant-numeric: tabular-nums;
}

/* Legacy hot-spot banner (still used in older snapshots / fallback) */
.fish-hotspot-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(255, 136, 68, 0.18), rgba(255, 215, 0, 0.10));
  border: 1px solid rgba(255, 136, 68, 0.4);
  border-radius: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.fhb-icon {
  font-size: 22px;
  animation: hotPulse 1.5s ease-in-out infinite;
}
@keyframes hotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 10px #ff8844); }
}
.fhb-text {
  color: #ffaa66;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.fhb-text strong {
  color: #FFD700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}
.fhb-bonus {
  margin-left: auto;
  color: #ffcc88;
  font-size: 10px;
  font-weight: 700;
}

/* ── How It Works panel ─────────────────────────────────── */
.fish-how-it-works {
  margin: 16px auto 0;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0;
}
.fish-how-it-works summary {
  padding: 10px 14px;
  cursor: pointer;
  color: #4ab8c8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  user-select: none;
  opacity: 0.85;
}
.fish-how-it-works summary:hover { color: #66ddee; }
.fhiw-body {
  padding: 0 14px 14px;
  color: #bbb;
  font-size: 11px;
  line-height: 1.6;
}
.fhiw-body p { margin: 8px 0; }
.fhiw-body strong { color: #ddd; }
.fhiw-mats { margin: 4px 0 8px 16px; padding: 0; }
.fhiw-mats li { margin: 2px 0; color: #aaa; }
.fhiw-mats b { color: #88ccdd; }

/* ── Spot grid (desktop: 3-2, naturally) ──────────────────── */
.fish-spots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  /* Cap total width so cards stay reasonably sized on huge displays */
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
/* The 5 cards fall into rows of 3 + 2. Center the second row's two cards
   under the first row by using a 6-column inner trick: each card spans 2
   columns of 6, and the bottom row's first card starts at column 2. */
@media (min-width: 720px) {
  .fish-spots-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .fish-spots-grid > .fish-spot-card { grid-column: span 2; }
  .fish-spots-grid > .fish-spot-card:nth-child(4) { grid-column: 2 / span 2; }
  .fish-spots-grid > .fish-spot-card:nth-child(5) { grid-column: 4 / span 2; }
}
.fish-spot-card {
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  min-height: 200px;
  background: #11141a;
  transition: transform 0.15s, border-color 0.15s;
}
.fish-spot-card:hover:not(.locked) {
  transform: translateY(-2px);
}
.fish-spot-card.locked {
  filter: grayscale(0.7) brightness(0.6);
}
.fish-spot-card.hot {
  box-shadow: 0 0 0 1px rgba(255, 136, 68, 0.6), 0 0 24px rgba(255, 136, 68, 0.3);
  animation: hotCardPulse 2.5s ease-in-out infinite;
}
@keyframes hotCardPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 136, 68, 0.5), 0 0 18px rgba(255, 136, 68, 0.2); }
  50% { box-shadow: 0 0 0 1px rgba(255, 136, 68, 0.8), 0 0 32px rgba(255, 136, 68, 0.4); }
}
.fish-spot-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.fish-spot-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.fish-spot-hero-wrap {
  position: absolute;
  inset: 0 0 70px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.fish-spot-hero {
  width: 55%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.6));
  animation: fishHeroFloat 4s ease-in-out infinite;
}
@keyframes fishHeroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.fish-spot-hot-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  padding: 3px 8px;
  background: linear-gradient(180deg, #ff8844, #cc5520);
  border: 1px solid #ffaa66;
  border-radius: 4px;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  box-shadow: 0 2px 8px rgba(255, 136, 68, 0.5);
  animation: hotPulse 1.5s ease-in-out infinite;
}
.fish-spot-exclusive {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  padding: 3px 7px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #ffcc88;
  font-size: 9px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.fish-spot-content {
  position: absolute;
  inset: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  z-index: 3;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 65%, rgba(0,0,0,0.85) 100%);
}
.fish-spot-name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}
.fish-spot-meta {
  color: #ddd;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.fish-cast-btn {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.1s;
}
.fish-cast-btn:hover:not(:disabled) { transform: translateY(-1px); }
.fish-cast-btn:active:not(:disabled) { transform: translateY(0); }
.fish-cast-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.fish-spot-locked {
  color: #888;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 8px;
}

/* ── Buy energy ─────────────────────────────────────────── */
.fish-buy-energy {
  display: flex;
  justify-content: center;
  margin: 14px 0;
}
.fish-buy-btn {
  padding: 10px 18px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  color: #FFD700;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fish-buy-btn:hover:not(:disabled) {
  background: rgba(255, 215, 0, 0.15);
}
.fish-buy-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.fish-buy-counter {
  color: #aaa;
  font-size: 10px;
  margin-left: 6px;
}

/* ── Tension Bar mini-game overlay ─────────────────────── */
.fish-tension-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(20, 40, 60, 0.95) 0%, rgba(5, 10, 15, 0.98) 100%);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  cursor: pointer;
  animation: ftbFadeIn 0.2s ease-out;
}
@keyframes ftbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ftb-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
}
.ftb-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ftb-fish-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  text-align: center;
  text-shadow: 0 0 18px currentColor;
}
.ftb-rarity-badge {
  padding: 4px 12px;
  border: 1px solid;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}
.ftb-instructions {
  color: #aaa;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.ftb-tap-hint {
  color: #4ab8c8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  animation: ftbPulse 1.5s ease-in-out infinite;
}
@keyframes ftbPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.ftb-result-banner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.ftb-result-text {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 3px;
  text-shadow: 0 0 20px currentColor;
  animation: ftbResultPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes ftbResultPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.fish-tension-overlay.ftb-result-catch { background: radial-gradient(ellipse at center, rgba(40, 80, 40, 0.95) 0%, rgba(5, 20, 5, 0.98) 100%); }
.fish-tension-overlay.ftb-result-escape { background: radial-gradient(ellipse at center, rgba(80, 30, 30, 0.95) 0%, rgba(20, 5, 5, 0.98) 100%); }

/* ── Catch reward modal ─────────────────────────────────── */
.fish-catch-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border: 2px solid;
  border-radius: 14px;
  background: linear-gradient(180deg, #15191f, #0a0c10);
  max-width: 320px;
  margin: 0 auto;
}
.fish-catch-fanfare {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 0 14px currentColor;
  animation: ftbResultPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fish-catch-icon-wrap {
  width: 100px;
  height: 100px;
  border: 2px solid;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
}
.fish-catch-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.fish-catch-name {
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}
.fish-catch-rarity {
  padding: 4px 12px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.fish-catch-rewards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 10px;
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
}
.fish-catch-reward-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFD700;
  font-size: 13px;
  font-weight: 700;
}
.fish-catch-reward-row img {
  width: 16px;
  height: 16px;
}
.fish-catch-reward-row .fish-catch-bone-ico {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  filter: drop-shadow(0 0 4px rgba(255, 220, 180, 0.4));
}
.fish-catch-milestone {
  color: #FFD700;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  padding: 6px 12px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 8px;
}
.fish-catch-close-btn {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(180deg, #5dc3d3, #3a8a96);
  border: 1px solid #4ab8c8;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
}

/* ── Bestiary ──────────────────────────────────────────── */
.fish-bestiary {
  padding: 4px;
}
.fish-bestiary-header {
  margin-bottom: 16px;
}
.fish-bestiary-title {
  color: #4ab8c8;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.fish-bestiary-progress {
  color: #ddd;
  font-size: 12px;
  margin-bottom: 8px;
}
.fish-bestiary-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}
.fish-bestiary-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ab8c8, #66ddee);
  transition: width 0.3s;
}
.fish-milestones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.fish-milestone {
  flex: 1;
  min-width: 130px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-align: center;
  opacity: 0.5;
}
.fish-milestone.unlocked {
  opacity: 1;
  background: rgba(74, 184, 200, 0.1);
  border-color: rgba(74, 184, 200, 0.4);
}
.fish-milestone.claimed {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
}
.fish-milestone-count {
  color: #4ab8c8;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 2px;
}
.fish-milestone-perk {
  color: #ddd;
  font-size: 10px;
}

.fish-bestiary-spot {
  margin: 0 auto 16px;
  width: 100%;
  max-width: 720px;
}
.fish-bestiary-spots {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.fish-bestiary-spot-name {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.fish-bestiary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px;
  justify-content: center;
  justify-items: center;
}
.fish-best-card {
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  min-height: 100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.fish-best-card.caught {
  background: rgba(74, 184, 200, 0.06);
}
.fish-best-card.uncaught .fish-best-icon.fish-best-shadow {
  opacity: 0.55;
  filter: blur(0.5px);
}
.fish-best-card.caught {
  position: relative;
  cursor: help;
}
.fish-best-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: 240px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #1a1f28, #0a0e15);
  border: 1px solid currentColor;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 16px rgba(0, 0, 0, 0.4);
  text-align: left;
  pointer-events: none;
  cursor: help;
}
.fish-best-card.caught:hover .fish-best-tooltip {
  display: block;
}
.fish-best-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: currentColor;
  opacity: 0.6;
}
/* When the card is too close to the top of the viewport, JS adds
   .tooltip-below and the tooltip flips to appear under the card. */
.fish-best-card.tooltip-below .fish-best-tooltip {
  bottom: auto;
  top: calc(100% + 8px);
}
.fish-best-card.tooltip-below .fish-best-tooltip::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: currentColor;
}
.fbt-art {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(74, 184, 200, 0.08), rgba(0, 0, 0, 0.4));
  border: 1px solid;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.fbt-art img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}
.fbt-art-fb {
  font-size: 64px;
}
.fbt-name {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px currentColor;
  margin-bottom: 4px;
}
.fbt-rarity {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.fbt-lore {
  color: #ccc;
  font-size: 11px;
  line-height: 1.45;
  font-style: italic;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.fbt-stats {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fbt-stat {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #888;
}
.fbt-stat strong {
  color: #ddd;
  font-weight: 700;
}
.fish-best-card.mythic {
  background: linear-gradient(135deg, rgba(255, 68, 170, 0.1), rgba(255, 68, 170, 0.02));
  animation: fishMythicGlow 3s ease-in-out infinite;
}
.fish-best-card.mythic.uncaught .fish-best-icon.fish-best-shadow {
  filter: blur(0.5px) drop-shadow(0 0 6px rgba(255, 68, 170, 0.4));
}
@keyframes fishMythicGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 68, 170, 0.2); }
  50% { box-shadow: 0 0 16px rgba(255, 68, 170, 0.5); }
}
.fish-best-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.fish-best-locked {
  font-size: 24px;
  color: #444;
}
.fish-best-name {
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
}
.fish-best-count {
  color: #4ab8c8;
  font-size: 10px;
  font-weight: 800;
}

/* ── Tournament tab ────────────────────────────────────── */
.fish-tournament {
  padding: 4px;
}
.fish-tournament-banner {
  text-align: center;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.02));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  margin-bottom: 14px;
}
.fish-tournament-title {
  color: #FFD700;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.5);
  margin-bottom: 4px;
}
.fish-tournament-reset {
  color: #ddd;
  font-size: 11px;
  font-weight: 600;
}
.fish-tournament-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.ft-stat {
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-align: center;
}
.ft-stat-label {
  color: #888;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.ft-stat-val {
  color: #FFD700;
  font-size: 18px;
  font-weight: 900;
}
.fish-tournament-play-btn {
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(180deg, #FFD700, #c8a200);
  border: 1px solid #FFD700;
  border-radius: 10px;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
  transition: transform 0.1s;
}
.fish-tournament-play-btn:hover:not(:disabled) { transform: translateY(-1px); }
.fish-tournament-play-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #444;
  color: #888;
  border-color: #555;
  box-shadow: none;
}
.fish-tournament-rules {
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 14px;
}
.ftr-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 0;
}
.fish-tournament-lb-placeholder {
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}
.ftn-lb-title {
  color: #FFD700;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.ftn-lb-list {
  min-height: 60px;
}
.ftn-lb-loading {
  color: #666;
  font-size: 11px;
  text-align: center;
  padding: 14px 0;
}
.ftn-lb-empty {
  color: #888;
  font-size: 11px;
  text-align: center;
  padding: 18px 0;
  font-style: italic;
}
.ftn-lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.ftn-lb-scopes {
  display: flex;
  gap: 4px;
}
.ftn-lb-scope-btn {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #888;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.ftn-lb-scope-btn.active {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.4);
  color: #FFD700;
}
.ftn-lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.ftn-lb-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(74, 184, 200, 0.3);
  transform: translateX(2px);
}
.ftn-lb-row.me {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
}
.ftn-lb-row.self-row {
  margin-top: 4px;
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.18);
}
.ftn-lb-self-divider {
  text-align: center;
  color: #555;
  font-size: 16px;
  letter-spacing: 4px;
  padding: 6px 0 2px;
}
.ftn-lb-row.top1 { background: linear-gradient(90deg, rgba(255, 215, 0, 0.18), rgba(255, 215, 0, 0.04)); border-color: rgba(255, 215, 0, 0.4); }
.ftn-lb-row.top2 { background: linear-gradient(90deg, rgba(192, 192, 192, 0.16), rgba(192, 192, 192, 0.03)); border-color: rgba(192, 192, 192, 0.35); }
.ftn-lb-row.top3 { background: linear-gradient(90deg, rgba(205, 127, 50, 0.16), rgba(205, 127, 50, 0.03)); border-color: rgba(205, 127, 50, 0.35); }
.ftn-lb-rank {
  font-size: 16px;
  font-weight: 900;
  min-width: 34px;
  text-align: center;
  flex-shrink: 0;
}
.ftn-lb-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  position: relative;
}
.ftn-lb-avatar img,
.ftn-lb-avatar video {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  background: transparent;
  display: block;
}
.ftn-lb-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ftn-lb-name {
  color: #ddd;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ftn-lb-you {
  color: #FFD700;
  font-size: 10px;
  font-weight: 800;
  margin-left: 2px;
}
.ftn-lb-meta {
  font-size: 10px;
  color: #888;
  font-weight: 600;
}
.ftn-lb-score {
  color: #FFD700;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
  font-variant-numeric: tabular-nums;
}

/* ── Hook Chain Combo tournament overlay ──────────────── */
.fish-tournament-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(20, 50, 80, 0.96) 0%, rgba(5, 10, 20, 0.99) 100%);
  z-index: 99998;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  animation: ftbFadeIn 0.2s ease-out;
}
.ftn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}
.ftn-timer {
  color: #4ab8c8;
  font-size: 18px;
  font-weight: 900;
}
.ftn-score {
  color: #FFD700;
  font-size: 16px;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}
.ftn-combo {
  color: #ff8844;
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(255, 136, 68, 0.5);
  transition: transform 0.1s;
}
.ftn-combo-pulse {
  animation: ftnComboPulse 0.3s ease-out;
}
@keyframes ftnComboPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.ftn-water {
  flex: 1;
  position: relative;
  background: radial-gradient(circle at 30% 40%, rgba(74, 184, 200, 0.15), transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(255, 215, 0, 0.08), transparent 50%);
  cursor: pointer;
  overflow: hidden;
}
.ftn-fish {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  animation: ftnFishSpawn 0.25s ease-out;
}
@keyframes ftnFishSpawn {
  from { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.ftn-fish-hit {
  animation: ftnFishHit 0.25s ease-out forwards;
}
@keyframes ftnFishHit {
  to { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}
.ftn-fish-miss {
  animation: ftnFishMiss 0.2s ease-out forwards;
}
@keyframes ftnFishMiss {
  to { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}
.ftn-float {
  position: absolute;
  font-size: 18px;
  font-weight: 900;
  pointer-events: none;
  text-shadow: 0 0 10px currentColor, 0 2px 4px rgba(0, 0, 0, 0.8);
  animation: ftnFloat 0.8s ease-out forwards;
  transform: translate(-50%, -50%);
}
@keyframes ftnFloat {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.8); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -150%) scale(1.2); }
}
.ftn-bottom-hint {
  text-align: center;
  color: #88ccdd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 10px;
  animation: ftbPulse 1.5s ease-in-out infinite;
}
.ftn-end-banner {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: ftbFadeIn 0.3s ease-out;
}
.ftn-end-title {
  color: #FFD700;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}
.ftn-end-score {
  color: #fff;
  font-size: 16px;
}
.ftn-end-score strong {
  color: #FFD700;
  font-size: 28px;
  font-weight: 900;
}
.ftn-end-stats {
  color: #aaa;
  font-size: 12px;
}

/* ── View Drops button on spot card ─────────────────────── */
.fish-spot-drops-btn {
  position: absolute;
  top: 36px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: rgba(8, 14, 22, 0.85);
  border: 1px solid rgba(74, 184, 200, 0.4);
  border-radius: 6px;
  color: #88ccdd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.fish-spot-drops-btn:hover {
  background: rgba(74, 184, 200, 0.25);
  border-color: rgba(74, 184, 200, 0.8);
  color: #fff;
  transform: translateY(-1px);
}
.fsd-icon { font-size: 11px; }
.fsd-label { font-size: 10px; }

/* ── Energy icon in cast button & meta ───────────────────── */
.fish-meta-energy {
  width: 12px;
  height: 12px;
  vertical-align: -2px;
  object-fit: contain;
}
.fish-cast-cost {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.fish-cast-energy-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: -2px;
  filter: drop-shadow(0 0 4px rgba(74, 184, 200, 0.6));
}

/* ── Fishing Mastery tooltip ─────────────────────────────── */
.fish-mastery-card {
  position: relative;
}
.fish-mast-info-icon {
  font-size: 12px;
  color: #88ccdd;
  margin-left: 4px;
  cursor: help;
}
.fish-mast-tooltip {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  z-index: 50;
  background: linear-gradient(180deg, #181d26, #0c1015);
  border: 1px solid rgba(74, 184, 200, 0.5);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(74, 184, 200, 0.15);
  pointer-events: none;
}
.fish-mastery-card:hover .fish-mast-tooltip {
  display: block;
}
.fish-mast-tt-title {
  color: #4ab8c8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(74, 184, 200, 0.2);
}
.fish-mast-tt-row {
  display: flex;
  gap: 12px;
  padding: 3px 0;
  font-size: 11px;
  color: #777;
}
.fish-mast-tt-row.unlocked {
  color: #ddd;
}
.fish-mast-tt-row.unlocked .fish-mast-tt-lvl {
  color: #4cd964;
}
.fish-mast-tt-lvl {
  color: #555;
  font-weight: 800;
  width: 48px;
  flex-shrink: 0;
}
.fish-mast-tt-label {
  flex: 1;
}

/* ── Tournament redesigned ───────────────────────────────── */
.fish-tournament-wrap {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fish-tournament-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.1);
  min-height: 180px;
}
.ft-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.ft-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}
.ft-hero-content {
  position: relative;
  z-index: 2;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ft-hero-trophy {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.6));
  margin-bottom: 4px;
}
.ft-hero-title {
  color: #FFD700;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 0 16px rgba(255, 215, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.8);
  text-align: center;
}
.ft-hero-subtitle {
  color: #ddd;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.ft-hero-reset {
  color: #ffaa66;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  padding: 3px 12px;
  background: rgba(255, 136, 68, 0.15);
  border: 1px solid rgba(255, 136, 68, 0.4);
  border-radius: 12px;
}
.ft-resets {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  align-items: center;
}
.ft-reset-row {
  color: #ddd;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}
.ft-reset-row strong {
  color: #ffaa66;
  font-weight: 800;
}
.ft-week-mode {
  margin: 8px auto 0;
  padding: 6px 14px;
  background: linear-gradient(90deg, rgba(74, 184, 200, 0.2), rgba(170, 68, 255, 0.2));
  border: 1px solid rgba(74, 184, 200, 0.5);
  border-radius: 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(74, 184, 200, 0.5);
}
.ft-week-mode strong {
  color: #FFD700;
  font-weight: 900;
}

/* Tournament rotation overlay */
.fish-tour-rot {
  display: flex;
  flex-direction: column;
}
.ftrot-hud {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  justify-content: space-around;
}
/* Running mode: tournament overlay collapses to a top HUD bar that floats
   above the active mini-game (z-index above .fish-tension-overlay), with
   pointer-events disabled so taps reach the mini-game beneath. */
.fish-tour-rot.ftrot-running-mode {
  background: transparent !important;
  z-index: 99999;
  pointer-events: none;
  animation: none;
}
.fish-tour-rot.ftrot-running-mode .ftrot-hud {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.fish-tour-rot.ftrot-running-mode .ftrot-mode-banner,
.fish-tour-rot.ftrot-running-mode .ftrot-stage {
  display: none;
}
/* Reserve room at the top of mini-games when a tournament HUD is overlaid */
.fish-tour-rot.ftrot-running-mode ~ .fish-tension-overlay .ftb-content,
.fish-tour-rot.ftrot-running-mode ~ .fish-tension-overlay .frs-content,
.fish-tour-rot.ftrot-running-mode ~ .fish-tension-overlay .fqte-content,
.fish-tour-rot.ftrot-running-mode ~ .fish-tension-overlay .ftt-content {
  padding-top: 90px;
}
.ftrot-hud-cell {
  text-align: center;
}
.ftrot-hud-label {
  color: #888;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.ftrot-hud-val {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.ftrot-hud-val.ftrot-score {
  color: #FFD700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}
.ftrot-score-flash {
  animation: ftrot-score-pop 0.4s ease-out;
}
@keyframes ftrot-score-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); color: #fff; }
  100% { transform: scale(1); }
}
.ftrot-lives-flash {
  animation: ftrot-lives-shake 0.4s linear;
}
@keyframes ftrot-lives-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); color: #ff4757; }
  75% { transform: translateX(4px); color: #ff4757; }
}
.ftrot-mode-banner {
  text-align: center;
  padding: 8px;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  color: #ffe680;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.ftrot-mode-banner strong {
  color: #FFD700;
}
.ftrot-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ftrot-intro {
  text-align: center;
  max-width: 400px;
}
.ftrot-intro-icon {
  font-size: 64px;
  filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.5));
  margin-bottom: 8px;
}
.ftrot-intro-title {
  color: #FFD700;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.5);
}
.ftrot-intro-rules {
  color: #ddd;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.ftrot-begin-btn {
  padding: 16px 36px;
  background: linear-gradient(180deg, #FFD700, #c8a200);
  border: 1px solid #FFD700;
  border-radius: 10px;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
}
.ftrot-running {
  color: #888;
  font-size: 12px;
  font-style: italic;
}
.fish-tournament-main {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.ft-stats-col {
  flex: 1;
  display: flex;
  gap: 6px;
}
.ft-stats-col .ft-stat {
  flex: 1;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-align: center;
}
.ft-stat-label {
  color: #888;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.ft-stat-val {
  color: #FFD700;
  font-size: 16px;
  font-weight: 900;
}
.ft-play-col {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.fish-tournament-play-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(180deg, #FFD700, #c8a200);
  border: 1px solid #FFD700;
  border-radius: 10px;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
  transition: transform 0.1s;
}
.fish-tournament-play-btn:hover:not(:disabled) { transform: translateY(-1px); }
.fish-tournament-play-btn:disabled {
  background: #2a2d33;
  color: #888;
  border-color: #444;
  box-shadow: none;
  cursor: not-allowed;
}
.ft-play-hint {
  color: #888;
  font-size: 10px;
  font-weight: 600;
}

/* How it works */
.fish-tournament-howto {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
.fish-tournament-howto summary {
  padding: 10px 14px;
  cursor: pointer;
  color: #FFD700;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  user-select: none;
}
.fth-body {
  padding: 0 14px 12px;
  color: #bbb;
  font-size: 11px;
  line-height: 1.55;
}
.fth-body p { margin: 6px 0; }
.fth-body strong { color: #ddd; }
.fth-c1 { color: #888; font-weight: 800; }
.fth-c2 { color: #4cd964; font-weight: 800; }
.fth-c3 { color: #4488ff; font-weight: 800; }
.fth-c5 { color: #ff8844; font-weight: 800; text-shadow: 0 0 8px rgba(255,136,68,0.5); }

/* Reward brackets */
.fish-tournament-rewards {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
}
.ftr-section-title {
  color: #FFD700;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  text-align: center;
}
.ftr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.ftr-table th {
  text-align: left;
  color: #888;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ftr-table td {
  padding: 6px;
  color: #ddd;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.ftr-trophy {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -4px;
  margin-right: 4px;
}
.ftr-rank-1 td { background: rgba(255, 215, 0, 0.06); color: #ffe680; font-weight: 700; }
.ftr-rank-2 td { background: rgba(192, 192, 192, 0.05); }
.ftr-rank-3 td { background: rgba(205, 127, 50, 0.05); }
.ftr-participation td { color: #999; font-style: italic; font-size: 10px; }

/* LB section in tournament */
.fish-tournament-lb {
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

/* Side-by-side rewards (left) + leaderboard (right) on desktop. Stacks
   below the breakpoint so mobile keeps a clean single column. */
.ft-rewards-and-lb {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}
@media (min-width: 880px) {
  .ft-rewards-and-lb {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
  }
  .ft-rewards-and-lb .fish-tournament-lb {
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }
  .ft-rewards-and-lb .fish-tournament-lb .ftn-lb-list {
    max-height: none;
  }
}

/* ── Drops Chances modal ────────────────────────────────── */
.fish-drops-modal {
  background: linear-gradient(180deg, #15191f, #0a0c10);
  border: 1px solid rgba(74, 184, 200, 0.3);
  border-radius: 14px;
  padding: 20px;
  max-width: 420px;
  margin: 0 auto;
  max-height: 80vh;
  overflow-y: auto;
}
.fish-drops-title {
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.fish-drops-meta {
  text-align: center;
  color: #888;
  font-size: 11px;
  margin-bottom: 14px;
}
.fish-drops-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.fish-drops-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid;
  border-radius: 6px;
}
.fish-drops-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fish-drops-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.fish-drops-info {
  flex: 1;
  min-width: 0;
}
.fish-drops-name {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fish-drops-rarity {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.7;
}
.fish-drops-pct {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.fish-drops-mats-title {
  color: #88ccdd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.fish-drops-mats {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 14px;
}
.fish-drops-mat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  font-size: 11px;
}
.fish-drops-mat-name {
  color: #ddd;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fish-drops-mat-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
}
.fish-drops-mat-chance { color: #88ccdd; font-weight: 700; }

/* ── Workshop ───────────────────────────────────────────── */
.fish-workshop {
  max-width: 720px;
  margin: 0 auto;
  padding: 4px;
}
.fish-workshop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.fish-workshop-title {
  color: #ffe6c0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.5px;
}
.fish-workshop-bones {
  color: #ffe6c0;
  font-size: 14px;
  font-weight: 700;
}
.fish-workshop-bones strong {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}
.fish-workshop-desc {
  color: #aaa;
  font-size: 11px;
  line-height: 1.5;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(255, 220, 180, 0.04);
  border: 1px solid rgba(255, 220, 180, 0.12);
  border-radius: 6px;
}
.fish-workshop-active-buff {
  padding: 8px 12px;
  background: linear-gradient(90deg, rgba(170, 68, 255, 0.15), rgba(170, 68, 255, 0.05));
  border: 1px solid rgba(170, 68, 255, 0.4);
  border-radius: 8px;
  color: #cc99ff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.fish-workshop-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fish-craft-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(28, 32, 40, 0.92), rgba(20, 24, 30, 0.96));
  border: 1px solid rgba(255, 220, 180, 0.18);
  border-radius: 10px;
  transition: border-color 0.15s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.fish-craft-card:hover:not(.disabled) {
  border-color: rgba(255, 220, 180, 0.5);
  background: linear-gradient(180deg, rgba(40, 36, 30, 0.95), rgba(28, 26, 22, 0.98));
  transform: translateY(-1px);
}
.fish-craft-card.disabled { opacity: 0.55; filter: saturate(0.6); }
.fish-craft-card.mythic {
  background: linear-gradient(135deg, rgba(50, 22, 40, 0.95), rgba(28, 16, 24, 0.98));
  border-color: rgba(255, 68, 170, 0.5);
  box-shadow: 0 4px 16px rgba(255, 68, 170, 0.15);
}
.fish-workshop-desc {
  background: rgba(28, 32, 40, 0.85);
  border-color: rgba(255, 220, 180, 0.2);
}
.fish-craft-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fish-craft-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}
.fci-fb {
  font-size: 32px;
}
.fish-drops-mat-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  background: rgba(255, 136, 68, 0.15);
  border: 1px solid rgba(255, 136, 68, 0.4);
  border-radius: 4px;
  color: #ffaa66;
  font-size: 9px;
  font-weight: 700;
}
.fish-craft-info {
  flex: 1;
  min-width: 0;
}
.fish-craft-name {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 2px;
}
.fish-craft-desc {
  color: #aaa;
  font-size: 11px;
  line-height: 1.4;
}
.fish-craft-btn {
  flex-shrink: 0;
  padding: 10px 16px;
  background: linear-gradient(180deg, #ffd9a0, #cc9550);
  border: 1px solid #ffe6c0;
  border-radius: 8px;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.fish-craft-btn:hover:not(:disabled) { transform: translateY(-1px); }
.fish-craft-btn:disabled {
  background: #333;
  border-color: #444;
  color: #777;
  cursor: not-allowed;
}

/* ── Catch modal extras ─────────────────────────────────── */
.fish-catch-mastery,
.fish-catch-bones,
.fish-catch-diamonds {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 4px;
}
.fish-catch-mastery { color: #88ccdd; background: rgba(74, 184, 200, 0.1); }
.fish-catch-bones { color: #ffe6c0; background: rgba(255, 220, 180, 0.08); }
.fish-catch-diamonds {
  color: #b388ff;
  background: rgba(170, 68, 255, 0.12);
  font-size: 12px;
  font-weight: 800;
}

/* ── Beta minigame mode picker ──────────────────────────── */
.fish-mode-picker {
  margin: 14px auto 6px;
  padding: 10px 14px;
  max-width: 500px;
  background: linear-gradient(180deg, rgba(170, 68, 255, 0.10), rgba(170, 68, 255, 0.04));
  border: 1px dashed rgba(170, 68, 255, 0.4);
  border-radius: 8px;
  text-align: center;
}
.fmp-label {
  color: #cc99ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.fmp-select {
  width: 100%;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(170, 68, 255, 0.4);
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.fmp-hint {
  color: #888;
  font-size: 10px;
  margin-top: 6px;
}

/* ── Mode Roller (slot machine + guide) ─────────────────── */
/* Overlay needs to allow scroll on small screens because the guide
   card + START button stack taller than mobile viewports — without
   scroll the START button was unreachable. */
.fish-mr-overlay {
  cursor: default;
  align-items: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.fmr-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px;
  max-width: 520px;
  width: 92%;
  /* Push content down so it visually centers when it fits, but still
     scrolls cleanly when it doesn't. */
  margin: auto;
}
@media (max-width: 720px), (max-height: 760px) {
  .fmr-content {
    gap: 10px;
    padding: 16px 14px 28px;
  }
}
.fmr-stage-header {
  color: #4ab8c8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-shadow: 0 0 12px rgba(74, 184, 200, 0.5);
  margin-top: 4px;
}
.fmr-carousel {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
}
.fmr-card {
  flex: 1;
  max-width: 130px;
  padding: 14px 8px;
  background: linear-gradient(180deg, rgba(28, 32, 40, 0.85), rgba(20, 24, 30, 0.95));
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-align: center;
  transition: all 0.15s;
  opacity: 0.5;
}
.fmr-card.rolling {
  border-color: #4ab8c8;
  background: linear-gradient(180deg, rgba(74, 184, 200, 0.25), rgba(74, 184, 200, 0.08));
  box-shadow: 0 0 24px rgba(74, 184, 200, 0.6), inset 0 0 14px rgba(74, 184, 200, 0.15);
  opacity: 1;
  transform: translateY(-4px) scale(1.04);
}
.fmr-card.chosen {
  border-color: #FFD700;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
  box-shadow: 0 0 32px rgba(255, 215, 0, 0.7), inset 0 0 20px rgba(255, 215, 0, 0.2);
  opacity: 1;
  transform: translateY(-6px) scale(1.08);
  animation: fmr-chosen-pulse 1.5s ease-in-out infinite;
}
@keyframes fmr-chosen-pulse {
  0%, 100% { box-shadow: 0 0 32px rgba(255, 215, 0, 0.6); }
  50% { box-shadow: 0 0 44px rgba(255, 215, 0, 0.9); }
}
.fmr-card-icon {
  font-size: 36px;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 8px currentColor);
}
.fmr-card-title {
  color: #ddd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}

/* ── Rarity reveal carousel (slot machine reveal of fish rarity) ─ */
.fmr-rarity-carousel {
  display: flex;
  gap: 6px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
  /* v23.0.578: opacity:0/transform default removed — was leaving
     the element invisible when CSS animation didn't fire (reported
     by Twins: "stuck on GET READY"). Slide-in now uses explicit
     `from` in the keyframe so the default is already visible. */
}
.fmr-rarity-carousel.slide-in {
  animation: fmr-slide-in 0.3s ease-out forwards;
}
.fmr-rarity-card {
  flex: 0 1 90px;
  min-width: 76px;
  padding: 8px 6px;
  background: linear-gradient(180deg, rgba(28, 32, 40, 0.85), rgba(20, 24, 30, 0.95));
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: center;
  transition: all 0.12s;
  opacity: 0.45;
}
.fmr-rarity-card.rolling {
  border-color: var(--rar);
  background: linear-gradient(180deg, color-mix(in srgb, var(--rar) 26%, transparent), color-mix(in srgb, var(--rar) 8%, transparent));
  box-shadow: 0 0 18px color-mix(in srgb, var(--rar) 60%, transparent), inset 0 0 10px color-mix(in srgb, var(--rar) 18%, transparent);
  opacity: 1;
  transform: translateY(-3px) scale(1.05);
}
.fmr-rarity-card.chosen {
  border-color: var(--rar);
  background: linear-gradient(180deg, color-mix(in srgb, var(--rar) 32%, transparent), color-mix(in srgb, var(--rar) 10%, transparent));
  box-shadow: 0 0 28px color-mix(in srgb, var(--rar) 75%, transparent), inset 0 0 16px color-mix(in srgb, var(--rar) 22%, transparent);
  opacity: 1;
  transform: translateY(-4px) scale(1.1);
  animation: fmr-rarity-chosen-pulse 1.4s ease-in-out infinite;
}
@keyframes fmr-rarity-chosen-pulse {
  0%, 100% { box-shadow: 0 0 24px color-mix(in srgb, var(--rar) 60%, transparent); }
  50%      { box-shadow: 0 0 38px color-mix(in srgb, var(--rar) 90%, transparent); }
}
.fmr-rarity-label {
  color: var(--rar, #ddd);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 0 8px currentColor;
}

/* ── 3-2-1 GO countdown overlay ─────────────────────────── */
.fmr-countdown {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(10, 14, 22, 0.85), rgba(0, 0, 0, 0.95));
  z-index: 10;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fmr-cd-fade 0.2s ease-out;
}
@keyframes fmr-cd-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fmr-cd-label {
  color: #888;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 12px;
}
.fmr-cd-num {
  font-size: 140px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 30px currentColor, 0 0 60px currentColor;
  font-variant-numeric: tabular-nums;
}
.fmr-cd-num.pop {
  animation: fmr-cd-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes fmr-cd-pop {
  0%   { transform: scale(0.3); opacity: 0; }
  40%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Guide screen */
.fmr-guide {
  width: 100%;
  margin-top: 8px;
  /* v23.0.578: opacity:0 default removed, see .fmr-rarity-carousel note. */
}
.fmr-guide.slide-in {
  animation: fmr-slide-in 0.4s ease-out forwards;
}
@keyframes fmr-slide-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fmr-guide-card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(20, 24, 32, 0.96), rgba(12, 16, 22, 0.98));
  border: 2px solid;
  border-radius: 14px;
  text-align: center;
}
@media (max-width: 720px), (max-height: 760px) {
  .fmr-guide-card { padding: 12px 12px 14px; }
  .fmr-guide-visual { height: 80px; margin-bottom: 10px; }
  .fmr-guide-rules { margin-bottom: 10px; }
  .fmr-guide-rules li { font-size: 10.5px; padding: 2px 0 2px 14px; line-height: 1.45; }
  .fmr-card-icon { font-size: 28px; margin-bottom: 4px; }
  .fmr-card { padding: 10px 6px; }
}
.fmr-guide-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-shadow: 0 0 14px currentColor;
  margin-bottom: 4px;
}
.fmr-guide-tagline {
  color: #aaa;
  font-size: 12px;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 14px;
}
.fmr-guide-visual {
  margin: 0 auto 14px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.fmr-guide-rules {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  text-align: left;
}
.fmr-guide-rules li {
  color: #bbb;
  font-size: 11px;
  line-height: 1.55;
  padding: 4px 0 4px 16px;
  position: relative;
}
.fmr-guide-rules li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #4ab8c8;
  font-weight: 900;
}
.fmr-start-btn {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
  transition: transform 0.1s;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.fmr-start-btn:active { transform: scale(0.98); }

/* Visual mock-ups for the 3 modes (in guide card) */
.fmr-visual-rs {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fmr-vrs-bobber {
  font-size: 48px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
  animation: fmr-vrs-shake 0.18s linear infinite alternate;
}
@keyframes fmr-vrs-shake {
  from { transform: translate(-2px, 1px); }
  to { transform: translate(2px, -1px); }
}
.fmr-vrs-strike {
  position: absolute;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #ff4757;
  text-shadow: 0 0 16px #ff4757, 0 0 6px #fff;
  animation: fmr-vrs-flash 1.2s ease-in-out infinite;
}
@keyframes fmr-vrs-flash {
  0%, 60%, 100% { opacity: 0; transform: scale(0.6); }
  20%, 40% { opacity: 1; transform: scale(1.1); }
}
.fmr-visual-qte {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.fmr-vqte-arrow {
  font-size: 44px;
  font-weight: 900;
  color: #4ab8c8;
  text-shadow: 0 0 18px #4ab8c8;
  line-height: 1;
}
.fmr-vqte-keys {
  display: flex;
  gap: 8px;
}
.fmr-vqte-keys span {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: rgba(74, 184, 200, 0.15);
  border: 1px solid rgba(74, 184, 200, 0.4);
  border-radius: 5px;
  color: #88ccdd;
}
.fmr-visual-tt {
  position: relative;
  width: 100%;
  height: 100%;
}
.fmr-vtt-bubble {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.18), rgba(0, 0, 0, 0.7));
  border: 2px solid #4ab8c8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  box-shadow: 0 0 14px #4ab8c8aa;
}
.fmr-vtt-1 { top: 30%; left: 25%; }
.fmr-vtt-2 { top: 60%; left: 50%; transform: translateX(-50%); }
.fmr-vtt-3 { top: 30%; right: 25%; border-color: #FFD700; box-shadow: 0 0 16px #FFD700; }

/* ── Reaction Strike — POLISHED ─────────────────────────── */
.fish-rs-overlay { cursor: pointer; }
.frs-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px;
  max-width: 440px;
}
.frs-progress {
  text-align: center;
  color: #ddd;
}
.frs-progress-label {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.frs-pips {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.frs-pip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.18);
  transition: all 0.2s;
}
.frs-pip.hit {
  background: linear-gradient(180deg, #4cd964, #2a8a3a);
  border-color: #4cd964;
  box-shadow: 0 0 14px #4cd96488, inset 0 1px 4px rgba(255,255,255,0.4);
  transform: scale(1.08);
}
.frs-best {
  color: #88ccdd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.frs-fails-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.frs-fails-label {
  color: #888;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.frs-fails {
  display: flex;
  gap: 6px;
}
.frs-fail-pip {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(76, 217, 100, 0.4), rgba(42, 138, 58, 0.5));
  border: 1px solid #4cd964;
  box-shadow: 0 0 6px rgba(76, 217, 100, 0.4);
  transition: all 0.2s;
}
.frs-fail-pip.broken {
  background: rgba(255, 71, 87, 0.15);
  border-color: rgba(255, 71, 87, 0.4);
  box-shadow: none;
  opacity: 0.4;
}
.frs-flash {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  background: rgba(255, 255, 255, 0.2);
}
.frs-flash.active {
  opacity: 1;
}
.frs-arena {
  position: relative;
  width: 280px;
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(74, 184, 200, 0.12) 0%, rgba(20, 40, 60, 0.6) 80%);
  border: 2px solid rgba(74, 184, 200, 0.3);
  border-radius: 50%;
}
.frs-bobber {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}
.frs-bobber.shake {
  animation: rs-shake 0.15s linear infinite;
}
@keyframes rs-shake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(2px, -2px); }
  75% { transform: translate(-2px, 3px); }
}
.frs-strike {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  color: #ff4757;
  text-shadow: 0 0 24px #ff4757, 0 0 8px #fff;
  letter-spacing: 4px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.7);
}
.frs-strike.active {
  opacity: 1;
  animation: rs-strike-pop 0.2s ease-out forwards;
}
@keyframes rs-strike-pop {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1.1); }
}
.frs-status {
  color: #88ccdd;
  font-size: 14px;
  font-weight: 700;
  min-height: 20px;
}

/* ── Quick QTE — POLISHED ───────────────────────────────── */
.fqte-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  max-width: 380px;
}
.fqte-prompt-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fqte-prompt {
  font-size: 110px;
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 0 28px currentColor, 0 0 8px rgba(0,0,0,0.5);
  transition: transform 0.1s;
}
/* Single "↑" glyph rotated by direction so all 4 arrows match visually */
.fqte-prompt[data-dir="right"] { transform: rotate(90deg); }
.fqte-prompt[data-dir="down"]  { transform: rotate(180deg); }
.fqte-prompt[data-dir="left"]  { transform: rotate(-90deg); }
.fqte-btn[data-dir="right"]    { transform: rotate(90deg); }
.fqte-btn[data-dir="down"]     { transform: rotate(180deg); }
.fqte-btn[data-dir="left"]     { transform: rotate(-90deg); }
.fqte-prompt.flash-correct {
  color: #4cd964 !important;
  transform: scale(1.25);
  text-shadow: 0 0 36px #4cd964;
}
.fqte-prompt.flash-correct[data-dir="right"] { transform: rotate(90deg) scale(1.25); }
.fqte-prompt.flash-correct[data-dir="down"]  { transform: rotate(180deg) scale(1.25); }
.fqte-prompt.flash-correct[data-dir="left"]  { transform: rotate(-90deg) scale(1.25); }
.fqte-prompt-wrong {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 110px;
  line-height: 1;
  font-weight: 900;
  color: #ff4757;
  text-shadow: 0 0 28px #ff4757;
  opacity: 0;
  transition: opacity 0.1s;
  pointer-events: none;
}
.fqte-combo {
  min-height: 18px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #88ccdd;
  text-shadow: 0 0 10px currentColor;
}
.fqte-timer-bar {
  width: 80%;
  height: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.fqte-timer-bar.danger {
  animation: fqte-danger-pulse 0.4s ease-in-out infinite alternate;
}
@keyframes fqte-danger-pulse {
  from { box-shadow: 0 0 0 rgba(255, 71, 87, 0.0); }
  to { box-shadow: 0 0 16px rgba(255, 71, 87, 0.6); }
}
.fqte-timer-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #4cd964, #FFD700, #ff4757);
}
.fqte-progress {
  color: #88ccdd;
  font-size: 12px;
  font-weight: 700;
}
.fqte-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.fqte-btn-row {
  display: flex;
  gap: 60px;
}
.fqte-btn {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(74, 184, 200, 0.15), rgba(74, 184, 200, 0.05));
  border: 2px solid rgba(74, 184, 200, 0.4);
  border-radius: 12px;
  color: #88ccdd;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 0.08s, background 0.08s;
}
.fqte-btn:active,
.fqte-btn.pressed {
  background: rgba(74, 184, 200, 0.45);
  box-shadow: 0 0 16px rgba(74, 184, 200, 0.5);
}
.fqte-btn[data-dir="up"]:active, .fqte-btn[data-dir="up"].pressed { transform: scale(0.92); }
.fqte-btn[data-dir="right"]:active, .fqte-btn[data-dir="right"].pressed { transform: rotate(90deg) scale(0.92); }
.fqte-btn[data-dir="down"]:active, .fqte-btn[data-dir="down"].pressed { transform: rotate(180deg) scale(0.92); }
.fqte-btn[data-dir="left"]:active, .fqte-btn[data-dir="left"].pressed { transform: rotate(-90deg) scale(0.92); }
.fqte-btn.correct {
  background: linear-gradient(180deg, rgba(76, 217, 100, 0.55), rgba(42, 138, 58, 0.7));
  border-color: #4cd964;
  color: #fff;
  box-shadow: 0 0 22px rgba(76, 217, 100, 0.7);
}
.fqte-btn[data-dir="up"].correct    { transform: scale(1.05); }
.fqte-btn[data-dir="right"].correct { transform: rotate(90deg) scale(1.05); }
.fqte-btn[data-dir="down"].correct  { transform: rotate(180deg) scale(1.05); }
.fqte-btn[data-dir="left"].correct  { transform: rotate(-90deg) scale(1.05); }
.fqte-btn.wrong {
  background: linear-gradient(180deg, rgba(255, 71, 87, 0.55), rgba(170, 30, 50, 0.7));
  border-color: #ff4757;
  color: #fff;
  box-shadow: 0 0 22px rgba(255, 71, 87, 0.7);
  animation: fqte-wrong-shake 0.3s linear;
}
.fqte-btn[data-dir="up"].wrong    { transform: scale(0.95); }
.fqte-btn[data-dir="right"].wrong { transform: rotate(90deg) scale(0.95); }
.fqte-btn[data-dir="down"].wrong  { transform: rotate(180deg) scale(0.95); }
.fqte-btn[data-dir="left"].wrong  { transform: rotate(-90deg) scale(0.95); }
@keyframes fqte-wrong-shake {
  0%, 100% { transform: translateX(0) scale(0.95); }
  25% { transform: translateX(-5px) scale(0.95); }
  75% { transform: translateX(5px) scale(0.95); }
}

/* ── Reaction Strike — decoy support ────────────────────── */
.frs-strike.decoy {
  color: #ff8844;
  text-shadow: 0 0 24px #ff8844, 0 0 8px #fff;
  font-size: 28px;
}

/* ── Tap Targets — POLISHED ─────────────────────────────── */
.fish-tt-overlay { cursor: pointer; }
.ftt-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px;
  max-width: 480px;
  width: 92%;
}
.ftt-progress-row {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
}
.ftt-next-card,
.ftt-total-card {
  padding: 6px 18px;
  background: linear-gradient(180deg, rgba(74, 184, 200, 0.15), rgba(74, 184, 200, 0.05));
  border: 1px solid rgba(74, 184, 200, 0.4);
  border-radius: 10px;
  text-align: center;
}
.ftt-next-label {
  color: #88ccdd;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-bottom: 2px;
}
.ftt-next-num {
  color: #4ab8c8;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 14px rgba(74, 184, 200, 0.5);
}
.ftt-total-num {
  color: #888;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}
.ftt-arena {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 440px;
  background: radial-gradient(ellipse at center, rgba(74,184,200,0.12) 0%, rgba(8,18,30,0.7) 80%);
  border: 2px solid rgba(74, 184, 200, 0.3);
  border-radius: 16px;
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
  transition: transform 0.05s;
}
.ftt-arena.shake {
  animation: ftt-shake 0.3s linear;
}
@keyframes ftt-shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-6px, 2px); }
  40% { transform: translate(5px, -3px); }
  60% { transform: translate(-4px, 4px); }
  80% { transform: translate(3px, -2px); }
}
.ftt-bubble {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.18), rgba(0, 0, 0, 0.7));
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
  animation: ftt-bubble-spawn 0.25s ease-out;
  box-shadow: 0 0 22px currentColor;
}
.ftt-bubble.finale {
  box-shadow: 0 0 28px #FFD700, 0 0 8px #ffe680;
  animation: ftt-bubble-spawn 0.25s ease-out, ftt-finale-pulse 1.2s ease-in-out infinite;
}
.ftt-bubble.decoy {
  background: radial-gradient(circle at 35% 35%, rgba(255, 100, 100, 0.25), rgba(60, 0, 0, 0.85));
  box-shadow: 0 0 22px #ff4757;
  animation: ftt-bubble-spawn 0.25s ease-out, ftt-decoy-pulse 0.7s ease-in-out infinite alternate;
}
@keyframes ftt-decoy-pulse {
  from { box-shadow: 0 0 18px #ff4757; }
  to { box-shadow: 0 0 30px #ff4757, 0 0 10px #ff8888; }
}
.ftt-bubble.decoy .ftt-bubble-num {
  color: #ff8888;
  text-shadow: 0 0 8px #ff4757;
}
@keyframes ftt-finale-pulse {
  0%, 100% { box-shadow: 0 0 22px #FFD700; }
  50% { box-shadow: 0 0 36px #FFD700, 0 0 14px #fff8c0; }
}
@keyframes ftt-bubble-spawn {
  from { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.ftt-bubble-svg {
  position: absolute;
  inset: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  pointer-events: none;
  transform: rotate(-90deg);
}
.ftt-bubble-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 4;
}
.ftt-bubble-ring-fg {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}
.ftt-bubble-num {
  position: relative;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px currentColor;
  z-index: 2;
}
.ftt-bubble.hit {
  animation: ftt-bubble-pop 0.28s ease-out forwards;
}
@keyframes ftt-bubble-pop {
  from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  to { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}
.ftt-pop {
  position: absolute;
  font-size: 38px;
  font-weight: 900;
  pointer-events: none;
  transform: translate(-50%, -50%);
  text-shadow: 0 0 14px currentColor, 0 2px 6px rgba(0,0,0,0.8);
  animation: ftt-pop-fade 0.7s ease-out forwards;
}
@keyframes ftt-pop-fade {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.6); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -120%) scale(1.4); }
}

/* ── Mobile responsiveness ─────────────────────────────── */
@media (max-width: 720px) {
  .fish-spots-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  /* Mobile: simple 2-column grid, 5th card spans full width */
  .fish-spots-grid > .fish-spot-card { grid-column: auto; }
  .fish-spots-grid > .fish-spot-card:nth-child(5):last-child {
    grid-column: 1 / -1;
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }
  .fish-spot-card { min-height: 170px; }
  .fish-bestiary-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
  .fish-bestiary-spot-name { font-size: 12px; }
  .ftb-bars-row { height: 320px; gap: 10px; }
  .ftb-game-track { width: 64px; }
  .ftb-tension-track, .ftb-progress-track { width: 26px; }
  .ftb-fish { width: 30px; height: 30px; }
  .ftb-fish img { width: 22px; height: 22px; }
  .fish-header-title { font-size: 14px; }
  .fish-energy-pill { padding: 4px 10px; }
  .fish-energy-val { font-size: 12px; }
  .fish-energy-timer { font-size: 9px; }
  .fish-subtab { padding: 8px 6px; font-size: 10px; }
}
@media (max-width: 480px) {
  .fish-spots-grid { grid-template-columns: 1fr; }
  .fish-spot-card { min-height: 140px; }
}
