/* Fishing */

.fz-login { text-align: center; }
.fz-login-art { display: flex; justify-content: center; align-items: center; gap: 4px; margin-bottom: 6px; }
.fz-login-art .fz { width: 96px; height: 64px; }
.fz-login-art .fz:nth-child(2) { width: 110px; height: 74px; transform: translateY(-8px); }
.fz-card { padding: 16px; }
.fz-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-weight: 700; color: var(--muted); }
.fz-top b { color: var(--ink); }
/* your rod and bait */
.fz-gear { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-weight: 700; }
.fz-gear label { display: inline-flex; align-items: center; gap: 6px; }
.fz-gear select { font: inherit; font-weight: 700; padding: 4px 8px; border: 2px solid var(--ink); border-radius: 10px; background: var(--card); color: var(--ink); max-width: 100%; }
.fz-gear-x { flex-basis: 100%; font-size: .88rem; font-weight: 600; }
.fz-help { margin: 10px 0 0; text-align: center; font-size: .9rem; }
@media (hover: none) and (pointer: coarse) { .fz-help { display: none; } }

/* the stage: a flat rod on the left, the float on the right, the line between (drawn in fishing.js) */
.fz-stage {
  position: relative;
  min-height: 300px;
  margin-top: 12px;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  background: var(--soft);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
.fz-stage.fighting { touch-action: none; cursor: pointer; }
.fz-cv { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.fz-bobwrap { position: absolute; left: 0; top: 0; z-index: 2; width: 34px; height: 51px; transform-origin: 17px 2px; pointer-events: none; }
.fz-bob { display: block; width: 34px; height: 51px; }
/* in the flow, so a tall catch card makes the stage taller instead of getting cut off */
.fz-ui { position: relative; z-index: 3; display: flex; min-height: 295px; pointer-events: none; }
.fz-ui button, .fz-catch, .fz-over > p { pointer-events: auto; }

.fz-over { flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px 12px 16px; text-align: center; }
.fz-over > p { margin: 0; padding: 12px 18px; font-weight: 700; background: var(--card); border: 2.5px solid var(--ink); border-radius: 16px; }
.fz-cast { font-size: 1.5rem; padding: 14px 44px 16px; }

.fz-say {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%);
  max-width: calc(100% - 24px); width: max-content;
  margin: 0; padding: 7px 14px; text-align: center;
  font: 600 1rem/1.25 var(--font-display);
  background: var(--card); border: 2.5px solid var(--ink); border-radius: 14px;
}
.fz-say[hidden] { display: none; }
.fz-say b { font-size: 1.5rem; color: var(--bad); }
.fz-reel { position: absolute; right: 14px; bottom: 14px; }

/* what you caught */
.fz-catch {
  max-width: 340px; padding: 6px 18px 12px;
  background: var(--card); color: var(--ink); border: 3px solid var(--ink); border-radius: 20px;
  box-shadow: 0 6px 0 var(--ink), inset 0 0 0 4px var(--tc, var(--card));
  animation: fz-pop .35s cubic-bezier(.2, 1.4, .5, 1);
}
@keyframes fz-pop { from { transform: scale(.7); opacity: 0; } }
.fz-catch-art { width: 120px; height: 80px; display: block; margin: 0 auto; }
/* the new look (p_catch): the card comes up, the fish jumps out of the water, flops and settles */
.fz-flop { animation: fz-rise .38s cubic-bezier(.2, 1.25, .4, 1) both; }
@keyframes fz-rise { from { transform: translateY(70px); opacity: 0; } }
.fz-artwrap { position: relative; width: 120px; margin: 0 auto; }
.fz-flop .fz-catch-art { transform-origin: 50% 70%; animation: fz-flopfish 1.05s .08s both; }
@keyframes fz-flopfish {
  0% { transform: translateY(70px) rotate(-35deg) scale(.6); opacity: 0; }
  12% { opacity: 1; }
  30% { transform: translateY(-30px) rotate(12deg) scale(1.04); animation-timing-function: ease-in; }
  46% { transform: translateY(0) rotate(-4deg) scale(1.08, .9); animation-timing-function: ease-out; }
  56% { transform: translateY(-8px) rotate(9deg); }
  66% { transform: translateY(0) rotate(-7deg); }
  76% { transform: rotate(5deg); }
  88% { transform: rotate(-2deg); }
  100% { transform: none; }
}
.fz-drop {
  position: absolute; left: 50%; top: 50%; width: 9px; height: 12px; margin: -6px 0 0 -4px;
  background: #8fd0ff; border: 2px solid var(--ink); border-radius: 50% 50% 50% 50% / 62% 62% 40% 40%;
  opacity: 0; animation: fz-drop .7s var(--d) ease-out both;
}
@keyframes fz-drop {
  0% { transform: translate(0, 0) scale(var(--s)); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--x), calc(var(--y) + 26px)) scale(calc(var(--s) * .6)); opacity: 0; }
}
.fz-flop .fz-chips, .fz-flop h3, .fz-flop h3 + p { animation: fade .3s both; }
.fz-flop .fz-chips { animation-delay: .35s; }
.fz-flop h3 { animation-delay: .42s; }
.fz-flop h3 + p { animation-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  .fz-flop, .fz-flop .fz-catch-art, .fz-drop, .fz-flop .fz-chips, .fz-flop h3, .fz-flop h3 + p { animation: none; }
  .fz-drop { display: none; }
}
.fz-catch h3 { margin: 2px 0 0; font: 600 1.3rem/1.1 var(--font-display); }
.fz-catch p { margin: 2px 0 8px; text-wrap: balance; }
.fz-catch .fz-chips { margin: 2px 0 0; }
.fz-miss p { margin: 4px 0 14px; }
.fz-catch .fz-perfect { margin-top: -4px; color: var(--good); font-weight: 700; }
.fz-perfect .stk { width: 1.3em; height: 1.3em; vertical-align: -.3em; }

.fz-tier { display: inline-block; padding: 1px 8px 2px; border: 2px solid #1d1b16; border-radius: 99px; background: var(--tc); color: #1d1b16; font: 600 .8rem/1.3 var(--font-display); }
.fz-mod { display: inline-block; padding: 1px 8px 2px; border: 2px solid #1d1b16; border-radius: 99px; background: #fff; color: #1d1b16; font: 600 .8rem/1.3 var(--font-display); }
.fz-mod-shiny { background: linear-gradient(135deg, #fff, #dff1ff 45%, #fff 55%, #e9e0ff); }
.fz-mod-albino { background: #fff6f7; }
.fz-mod-golden { background: linear-gradient(135deg, #ffe17a, #f5c542); }
.fz-mod-ancient { background: #c4b38f; }
.fz-mod-rainbow { background: linear-gradient(90deg, #ff9b9e, #ffc98f, #ffe58a, #9ee8b9, #9fc9ff, #cdb2ff); }
.fz-giant { display: inline-block; padding: 1px 8px 2px; border: 2px solid #1d1b16; border-radius: 99px; background: #1d1b16; color: #ffd23f; font: 600 .8rem/1.3 var(--font-display); }

/* bucket */
.fz-bag, .fz-market, .fz-odds { margin-top: 16px; padding: 16px; }
.fz-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fz-head h2 { margin: 0; font: 600 1.35rem/1.2 var(--font-display); }
.fz-head h2 .stk { width: 1.3em; height: 1.3em; vertical-align: -.28em; }
.fz-head small { color: var(--muted); font-size: .9rem; margin-left: 4px; }
.fz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin-top: 10px; }
.fz-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 8px 10px; font: inherit; color: #1d1b16; text-align: center; cursor: pointer;
  background: linear-gradient(180deg, #eaf6ff, #d3ebff);
  border: 2.5px solid #1d1b16; border-radius: 14px;
  box-shadow: 0 3px 0 #1d1b16, inset 0 -5px 0 var(--tc);
}
.fz-tile:hover { background: linear-gradient(180deg, #f4fbff, #dff1ff); }
.fz-tile.on { background: #fff3c4; outline: 3px solid #ffd23f; outline-offset: 1px; }
.fz-tile-art { width: 100%; max-width: 120px; height: 72px; }
.fz-tile b { font: 600 1rem/1.15 var(--font-display); }
.fz-tile .fz-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; min-height: 22px; }
.fz-tile .fz-tier, .fz-tile .fz-mod, .fz-tile .fz-giant { font-size: .7rem; padding: 0 6px; }
.fz-tile-row { display: flex; justify-content: space-between; width: 100%; padding: 4px 4px 2px; font-size: .85rem; font-weight: 700; color: #4a463e; }
.fz-price { color: #1f7d45; }
.fz-shown { position: absolute; left: 6px; top: 6px; }
.fz-shown .stk { width: 20px; height: 20px; }
.fz-actions { position: sticky; bottom: 10px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; background: var(--card); border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow); }
.fz-actions > span { flex: 1 1 140px; }

/* market */
.fz-mk { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.fz-mk li { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 2px solid var(--line); border-left: 6px solid var(--tc); border-radius: 12px; background: var(--card); }
.fz-mk-art { flex: none; width: 54px; height: 36px; padding: 1px; background: #e3f2ff; border-radius: 8px; }
.fz-mk-n { flex: 1; font-weight: 700; line-height: 1.1; }
.fz-mk-n small, .fz-mk-p small { display: block; font-weight: 600; font-size: .75rem; color: var(--muted); }
.fz-mk-p { text-align: right; font-weight: 800; }
.fz-mk li.up .fz-mk-p small { color: var(--good); }
.fz-mk li.down .fz-mk-p small { color: var(--bad); }
.fz-mk li.hot { background: #fff3c4; border-color: #ffd23f; }
.fz-mk li.hot .fz-mk-p small { color: #e0393f; }
html[data-dark] .fz-mk li.hot { background: #3a3220; }
.fz-mk-p small { white-space: nowrap; }
.fz-tr { font-style: normal; font-size: .7rem; margin-left: 2px; }
.fz-tr.up { color: var(--good); }
.fz-tr.down { color: var(--bad); }

/* odds */
.fz-odds-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.fz-odds ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-weight: 700; }
.fz-odds-cols p { margin: 10px 0 6px; }

@media (max-width: 560px) {
  .fz-say { font-size: .92rem; }
  .fz-odds-cols { grid-template-columns: 1fr; }
  .fz-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
}
