.inv-xp-panel {
  border-color: rgba(190, 150, 255, 0.24);
  outline-color: rgba(200, 170, 255, 0.14);
  background: linear-gradient(180deg, rgba(38, 26, 54, 0.95), rgba(14, 11, 22, 0.96));
}
.inv-xp-panel .inv-belt-head b {
  color: #e2ccff;
}
.inv-xp-panel .inv-rules b {
  color: #d8b8ff;
}
.inv-slot.inv-xp-hero,
.inv-slot.inv-xp-hero:hover {
  position: relative;
  cursor: default;
  transform: none;
  border-color: color-mix(in srgb, var(--liq) 55%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--liq) 18%, transparent);
}
.inv-xp-hero .inv-slot-text {
  align-self: center;
  gap: 5px;
}
.inv-xp-hero .inv-slot-text small em {
  font-style: normal;
  opacity: 0.6;
}
.inv-xp-hero .inv-slot-text span {
  font-size: 11.5px;
}
.inv-xp-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.inv-xp-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--liq) 70%, #000), var(--liq));
  box-shadow: 0 0 10px var(--liq);
  transition: width 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.inv-xp-hero.pop {
  animation: inv-boost-pop 0.6s ease-out;
}
.inv-xp-gain {
  position: absolute;
  top: 8px;
  right: 10px;
  pointer-events: none;
  opacity: 0;
  font:
    900 13px/1 Arial,
    sans-serif;
  letter-spacing: 1px;
  color: #ffd166;
  text-shadow: 0 0 10px rgba(255, 209, 102, 0.6);
}
.inv-xp-gain.up {
  color: #8affc4;
  text-shadow: 0 0 12px rgba(120, 255, 190, 0.7);
}
.inv-xp-gain.go {
  animation: inv-xp-rise 1.8s ease-out;
}
@keyframes inv-xp-rise {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.8);
  }
  15% {
    opacity: 1;
    transform: translateY(0) scale(1.12);
  }
  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}
.inv-xp-heroes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.inv-xp-chip {
  --liq: #fff;
  appearance: none;
  position: relative;
  cursor: pointer;
  height: 62px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(
      ellipse at 50% 90%,
      color-mix(in srgb, var(--liq) 16%, transparent),
      transparent 70%
    ),
    rgba(0, 0, 0, 0.3);
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.inv-xp-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 209, 102, 0.6);
}
.inv-xp-chip.sel {
  border-color: #ffd166;
  box-shadow:
    0 0 0 2px rgba(255, 209, 102, 0.28),
    inset 0 0 16px color-mix(in srgb, var(--liq) 26%, transparent);
}
.inv-xp-chip canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.inv-xp-chip span {
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  padding: 2px 6px 1px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  font:
    900 9.5px/1.2 Arial,
    sans-serif;
  letter-spacing: 0.5px;
  color: var(--liq);
}
.inv-xp-chip.maxed span {
  color: #1a1206;
  background: #ffd166;
}
.inv-xp-shelf {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.inv-xp-card .inv-card-top {
  height: 150px;
}
.inv-xp-card .inv-card-desc {
  -webkit-line-clamp: 4;
}
@media (max-width: 720px) {
  .inv-xp-heroes {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .inv-xp-chip {
    height: 52px;
  }
  .inv-xp-shelf {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .inv-xp-card .inv-card-top {
    height: 104px;
  }
}
.inv-xp-gain small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
}
.inv-xp-gain {
  top: auto;
  right: auto;
  left: 6px;
  bottom: 12px;
  width: 84px;
  text-align: center;
}
.inv-xp-shelf {
  flex: none;
  overflow: visible;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 900px;
}
.inv-xp-where {
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(200, 170, 255, 0.22);
  background: rgba(20, 14, 30, 0.6);
}
.inv-xp-where > b {
  flex: 1 1 100%;
  font:
    900 11px/1 Arial,
    sans-serif;
  letter-spacing: 1.6px;
  color: rgba(226, 204, 255, 0.75);
}
.inv-xp-where span {
  --c: #c890ff;
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px 10px 14px;
  border-radius: 12px;
  border-left: 3px solid var(--c);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 14%, transparent), rgba(0, 0, 0, 0.2));
  font:
    600 12px/1.3 Arial,
    sans-serif;
  color: rgba(255, 255, 255, 0.62);
}
.inv-xp-where span.hw {
  --c: #ff9a3a;
}
.inv-xp-where span.tw {
  --c: #a050ff;
}
.inv-xp-where span.gf {
  --c: #ffd166;
}
.inv-xp-where em {
  font:
    900 13px/1.1 Arial,
    sans-serif;
  font-style: normal;
  color: #fff;
}
@media (max-width: 720px) {
  .inv-xp-shelf {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

}
.inv-xp-scroll > .inv-shelf-wrap {
  overflow: auto;
  padding-right: 12px;
  gap: 14px;
}
.inv-fish-panel {
  border-color: rgba(127, 216, 255, 0.24);
  outline-color: rgba(150, 220, 255, 0.13);
  background: linear-gradient(180deg, rgba(18, 34, 52, 0.95), rgba(8, 14, 24, 0.96));
  gap: 10px;
}
.inv-fish-panel .inv-belt-head b {
  color: #9fe0ff;
}
.inv-fish-bucket {
  display: block;
  width: 100%;
  height: 128px;
  flex: none;
}
.inv-fish-cap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: -4px;
}
.inv-fish-cap span {
  text-align: center;
  font:
    700 12px/1 Arial,
    sans-serif;
  color: rgba(255, 255, 255, 0.55);
}
.inv-fish-cap span b {
  font-size: 20px;
  color: #fff;
}
.inv-fish-cap span small {
  font-size: 10px;
  letter-spacing: 1.4px;
}
.inv-fish-capbar {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.inv-fish-capbar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f86c8, #7fd8ff);
  box-shadow: 0 0 10px rgba(127, 216, 255, 0.6);
  transition: width 0.4s ease;
}
.inv-fish-cap.full .inv-fish-capbar i {
  background: linear-gradient(90deg, #c8402f, #ff8a6a);
  box-shadow: 0 0 10px rgba(255, 120, 100, 0.6);
}
.inv-fish-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.inv-fish-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.inv-fish-stat small,
.inv-fish-bounty small {
  font:
    800 9.5px/1 Arial,
    sans-serif;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.5);
}
.inv-fish-stat b {
  font:
    900 16px/1 Arial,
    sans-serif;
  color: #fff;
}
.inv-fish-stat.gold b {
  color: #ffd166;
}
.inv-fish-bounty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 209, 102, 0.35);
  background: rgba(255, 209, 102, 0.06);
}
.inv-fish-bounty canvas {
  flex: none;
}
.inv-fish-bounty span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.inv-fish-bounty small {
  color: rgba(255, 209, 102, 0.8);
}
.inv-fish-bounty b {
  font:
    900 13px/1.1 Arial,
    sans-serif;
  color: #fff;
}
.inv-fish-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.inv-fish-chip {
  appearance: none;
  cursor: pointer;
  flex: 1 1 auto;
  padding: 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.65);
  font:
    900 10.5px/1 Arial,
    sans-serif;
  letter-spacing: 1px;
  transition: all 0.15s ease;
}
.inv-fish-chip:hover {
  border-color: rgba(127, 216, 255, 0.6);
}
.inv-fish-chip.on {
  background: rgba(127, 216, 255, 0.18);
  border-color: #7fd8ff;
  color: #fff;
}
.inv-fish-sort {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
}
.inv-fish-sort small {
  padding: 0 6px 0 4px;
  font:
    800 9.5px/1 Arial,
    sans-serif;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.45);
}
.inv-fish-sort button {
  appearance: none;
  cursor: pointer;
  flex: 1;
  min-width: 0;
  padding: 6px 2px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font:
    900 9.5px/1 Arial,
    sans-serif;
  letter-spacing: 0.6px;
}
.inv-fish-sort button:hover {
  background: rgba(255, 255, 255, 0.08);
}
.inv-fish-sort button.on {
  background: #7fd8ff;
  color: #06121e;
}
.inv-fish-hab {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font:
    700 12px Arial,
    sans-serif;
}
.inv-fish-hab option {
  background: #0c1622;
}
.inv-fish-msg {
  min-height: 15px;
  text-align: center;
  font:
    700 12px/1.25 Arial,
    sans-serif;
  color: rgba(255, 255, 255, 0.55);
}
.inv-fish-msg:empty {
  display: none;
}
.inv-fish-msg.gold {
  color: #ffd166;
}
.inv-fish-msg.flash {
  animation: inv-fish-flash 0.7s ease-out;
}
@keyframes inv-fish-flash {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  40% {
    transform: scale(1.06);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
.hub-btn.inv-fish-sellall {
  width: 100%;
  min-width: 0;
  padding: 11px 10px;
  font-size: 12px;
  border: 0;
  background: linear-gradient(180deg, #ffe08a, #d9a032);
  color: #1a1206;
}
.hub-btn.inv-fish-sellall small {
  font-size: 10px;
  opacity: 0.65;
}
.hub-btn.inv-fish-sellall.confirm {
  background: linear-gradient(180deg, #ff9a7a, #d9503a);
  color: #fff;
}
.hub-btn.inv-fish-sellall:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
}
.inv-fish-panel .inv-gofish {
  width: 100%;
  font-size: 12px;
}
.inv-fish-right {
  min-height: 0;
}
.inv-fish-scroll {
  flex: 1 1 auto;
}
.inv-fish-grid {
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  grid-auto-rows: min-content;
  align-content: start;
  gap: 12px;
  padding: 2px 14px 12px 2px;
}
.inv-fcard {
  --tier: #6ee07a;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tier) 30%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--tier) 8%, rgba(14, 22, 34, 0.96)),
    rgba(8, 12, 20, 0.96)
  );
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.inv-fcard:hover {
  border-color: color-mix(in srgb, var(--tier) 70%, transparent);
  transform: translateY(-2px);
}
.inv-fcard.fav {
  border-color: #ffd166;
  box-shadow:
    0 0 0 1px rgba(255, 209, 102, 0.35),
    0 0 22px rgba(255, 209, 102, 0.14);
}
.inv-fcard-top {
  position: relative;
  height: 112px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.inv-fcard-top canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.inv-fcard-star {
  appearance: none;
  cursor: pointer;
  position: absolute;
  top: 7px;
  left: 7px;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.65);
  font: 16px/1 Arial, sans-serif;
  transition: all 0.15s ease;
}
.inv-fcard-star:hover {
  border-color: #ffd166;
  color: #ffd166;
}
.inv-fcard-star.on {
  border-color: transparent;
  background: #ffd166;
  color: #1a1206;
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.5);
}
.inv-fcard-kg {
  position: absolute;
  top: 9px;
  right: 8px;
  padding: 4px 8px 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid color-mix(in srgb, var(--tier) 55%, transparent);
  color: #fff;
  font:
    900 11px/1 Arial,
    sans-serif;
}
.inv-fcard-tags {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  pointer-events: none;
}
.inv-fcard-tags i {
  padding: 3px 6px 2px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font:
    900 9px/1 Arial,
    sans-serif;
  font-style: normal;
  letter-spacing: 0.8px;
}
.inv-fcard-tags i.bounty {
  background: #ffd166;
  color: #1a1206;
}
.inv-fcard-tags i.trophy {
  color: #ffd166;
  box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.55);
}
.inv-fcard-tags i.perfect {
  color: #8affc4;
}
.inv-fcard-tags i.streak {
  color: #ffab8a;
}
.inv-fcard-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 12px 0;
  min-width: 0;
}
.inv-fcard-name {
  font:
    900 14px/1.15 Arial,
    sans-serif;
  color: #fff;
  overflow-wrap: anywhere;
}
.inv-fcard-tier {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 7px;
  font:
    700 10.5px/1.2 Arial,
    sans-serif;
  color: rgba(255, 255, 255, 0.5);
}
.inv-fcard-tier b {
  font:
    900 10px/1 Arial,
    sans-serif;
  letter-spacing: 1.2px;
  color: var(--tier);
}
.inv-fcard-hab {
  --hab: #9fe0ff;
  padding: 2px 7px 1px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--hab) 45%, transparent);
  color: var(--hab);
  font-size: 9.5px;
  font-weight: 800;
}
.inv-fcard-trait {
  font:
    500 11px/1.35 Arial,
    sans-serif;
  color: rgba(255, 255, 255, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.inv-fcard-foot {
  display: flex;
  gap: 6px;
  padding: 10px;
}
.hub-btn.inv-fcard-house,
.hub-btn.inv-fcard-sell {
  min-width: 0;
  width: auto;
  padding: 7px 8px;
  font-size: 10px;
  letter-spacing: 0.8px;
}
.hub-btn.inv-fcard-house {
  flex: none;
  background: rgba(127, 216, 255, 0.1);
  border: 1px solid rgba(127, 216, 255, 0.45);
  color: #9fe0ff;
}
.hub-btn.inv-fcard-house:disabled {
  opacity: 0.45;
}
.hub-btn.inv-fcard-sell {
  flex: 1;
  border: 0;
  background: linear-gradient(180deg, #ffe08a, #d9a032);
  color: #1a1206;
}
.hub-btn.inv-fcard-sell.confirm {
  background: linear-gradient(180deg, #ff9a7a, #d9503a);
  color: #fff;
}
.inv-fish-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 20px 36px;
  border-radius: 18px;
  border: 1px dashed rgba(127, 216, 255, 0.25);
  background: rgba(8, 18, 30, 0.5);
  text-align: center;
}
.inv-fish-empty canvas {
  width: 220px;
  height: 90px;
}
.inv-fish-empty b {
  font:
    900 16px Arial,
    sans-serif;
  color: #fff;
}
.inv-fish-empty span {
  font:
    600 12.5px Arial,
    sans-serif;
  color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 720px) {
  .inv-xp-panel .inv-rules,
  .inv-fish-bucket,
  .inv-fish-panel .inv-belt-head small {
    display: none;
  }
  .inv-fish-panel {
    max-height: 46vh;
  }
  .inv-fish-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }
  .inv-fcard-top {
    height: 88px;
  }
  .inv-fcard-trait {
    display: none;
  }
}
@media (max-height: 460px) {
  .inv-xp-panel .inv-rules,
  .inv-fish-bucket,
  .inv-fish-bounty {
    display: none;
  }
  .inv-xp-gain {
    left: 2px;
    width: 48px;
    font-size: 10px;
  }
  .inv-xp-chip {
    height: 42px;
  }
  .inv-xp-shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .inv-xp-card .inv-card-top {
    height: 90px;
  }
  .inv-xp-where {
    display: none;
  }
  .inv-fish-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }
  .inv-fcard-top {
    height: 80px;
  }
  .inv-fcard-trait {
    display: none;
  }
  .inv-fish-stat b {
    font-size: 13px;
  }
}
.hub-btn.inv-fcard-house,
.hub-btn.inv-fcard-sell {
  white-space: nowrap;
}
@media (max-width: 720px), (max-height: 460px) {
  .hub-btn.inv-fcard-house,
  .hub-btn.inv-fcard-sell {
    padding: 7px 5px;
    font-size: 9px;
    letter-spacing: 0.4px;
  }
  .inv-fcard-foot {
    padding: 8px;
    gap: 4px;
  }
}
@media (max-height: 460px) {
  .inv-fish-sort small {
    display: none;
  }
  .inv-fish-sort button {
    font-size: 8.5px;
    letter-spacing: 0;
  }
}
