/* Component styles: inventory, shop, struggle FX, toasts, etc. */

.stat {
  background: rgba(12, 18, 18, 0.78);
  border: 2px solid #0c0c0c;
  border-radius: 10px;
  padding: 0.35rem 0.65rem;
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
}

.stat .label {
  opacity: 0.7;
  font-size: 0.68em;
  text-transform: uppercase;
}

.meter {
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.meter-frame {
  position: relative;
  width: clamp(28px, 4.5vw, 38px);
  height: clamp(120px, 32vh, 220px);
  border: 3px solid #111;
  border-radius: 18px;
  background: linear-gradient(180deg, #1a2420, #0d1210);
  box-shadow: inset 0 0 0 2px #2a2a2a,
  0 0 0 2px #5a4a3a,
  0 6px 16px var(--shadow);
  overflow: hidden;
}

.meter-fill {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 0%;
  border-radius: 12px;
  background: linear-gradient(180deg, #7dce6a, #2f7a45);
  transition: height 0.05s linear;
}

.struggle-hud {
  width: min(160px, 38vw);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(8, 12, 12, 0.86);
  border: 2px solid #111;
  border-radius: 14px;
  padding: 0.5rem;
}

.struggle-arrows {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
}

.struggle-arrow {
  flex: 1;
  min-height: var(--touch);
  text-align: center;
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  line-height: 1;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #2a6f66, #1a4f4a) !important;
  border: 1px solid var(--stroke) !important;
  color: #fff !important;
  cursor: pointer;
  padding: 0.35rem;
  transition: background 0.1s, color 0.1s, border-color 0.1s, transform 0.1s;
  box-shadow: var(--shadow-up);
}

.struggle-arrow.active {
  background: linear-gradient(180deg, #f2d889, #d4a93a) !important;
  color: #1a1608 !important;
  border-color: #111;
  transform: scale(1.04);
  box-shadow: 0 0 12px rgba(240, 215, 140, 0.55);
}

.struggle-arrow.wrong {
  background: #5a2020;
  color: #ffb4b4;
  border-color: #a33;
}

.reel-block, .line-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.reel-title, .line-title {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.reel-track, .line-track {
  height: 12px;
  border-radius: 8px;
  background: #0d1210;
  border: 2px solid #111;
  overflow: hidden;
}

.reel-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2f7a45, #8be06a);
  transition: width 0.05s linear;
}

.line-track {
  height: 9px;
}

.line-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #5ec8ff, #3ecf9a) !important;
  transition: width 0.05s linear;
}

.line-fill.danger {
  background: linear-gradient(90deg, #f0a, #c45b5b) !important;
}

.meter-label {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  text-align: center;
  max-width: 7rem;
  margin-top: 0.25rem;
  opacity: 0.8;
}

.prompt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #111;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 0.5rem 0.7rem;
  font-weight: 800;
  font-size: clamp(0.8rem, 2.4vw, 0.95rem);
  letter-spacing: 0.02em;
}

.hold-icon {
  width: 22px;
  height: 28px;
  border: 2px solid #eee;
  border-radius: 10px 10px 12px 12px;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.hold-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 7px;
  height: 10px;
  margin-left: -3.5px;
  background: #eee;
  border-radius: 3px;
  animation: holdPulse 1.1s ease-in-out infinite;
}

@keyframes holdPulse {
  0%,
  100% {
  opacity: 0.35;
  transform: scaleY(0.85);
  }
  50% {
  opacity: 1;
  transform: scaleY(1);
  }
}

.prompt.struggle .hold-icon {
  display: none;
}

.shop-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.shop-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}

.shop-item .btn {
  width: auto;
  min-width: 4.5rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  background: var(--glass-strong) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: 14px !important;
  padding: 0.65rem 1rem;
  font-weight: 700;
  z-index: 60;
  max-width: 90%;
  text-align: center;
  animation: pop 0.35s ease;
  color: var(--text) !important;
  pointer-events: none;
  box-shadow: var(--shadow-up);
}

.toast.bomb {
  color: #ffb4b4;
  border-color: var(--danger);
}

.toast.good {
  color: #b8f0a8;
}

.struggle-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.struggle-fx-vignette {
  position: absolute;
  inset: 0;
  transition: box-shadow 0.12s ease, background 0.12s ease;
  background: transparent;
  box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
}

.struggle-fx.good .struggle-fx-vignette {
  background: radial-gradient(ellipse at center, transparent 35%, rgba(60, 180, 90, 0.22) 100%);
  box-shadow: inset 0 0 80px rgba(80, 200, 100, 0.35);
}

.struggle-fx.bad .struggle-fx-vignette {
  background: radial-gradient(ellipse at center, transparent 30%, rgba(180, 40, 40, 0.28) 100%);
  box-shadow: inset 0 0 90px rgba(200, 40, 40, 0.4);
  animation: strugglePulseBad 0.45s ease-in-out infinite;
}

.struggle-fx.idle-warn .struggle-fx-vignette {
  background: radial-gradient(ellipse at center, transparent 40%, rgba(200, 140, 40, 0.2) 100%);
  box-shadow: inset 0 0 70px rgba(220, 160, 40, 0.28);
  animation: strugglePulseWarn 0.7s ease-in-out infinite;
}

.struggle-fx.neutral .struggle-fx-vignette {
  background: radial-gradient(ellipse at center, transparent 45%, rgba(80, 160, 200, 0.12) 100%);
}

@keyframes strugglePulseBad {
  0%,
  100% {
  opacity: 0.85;
  }
  50% {
  opacity: 1;
  }
}

@keyframes strugglePulseWarn {
  0%,
  100% {
  opacity: 0.7;
  }
  50% {
  opacity: 1;
  }
}

.struggle-fx-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  opacity: 0.15;
  transition: opacity 0.12s ease, transform 0.12s ease, filter 0.12s ease;
  width: 22%;
  max-width: 140px;
}

.struggle-fx-side.left {
  left: 2%;
}

.struggle-fx-side.right {
  right: 2%;
}

.struggle-fx-chevron {
  font-size: clamp(2.8rem, 10vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 #000, 0 0 18px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.struggle-fx-hint {
  font-size: clamp(0.75rem, 2.5vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.struggle-fx-side.on {
  opacity: 1;
  animation: struggleSideBounce 0.55s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(120, 255, 140, 0.7));
}

.struggle-fx.idle-warn .struggle-fx-side.on {
  filter: drop-shadow(0 0 14px rgba(255, 200, 80, 0.8));
  animation: struggleSideBounce 0.45s ease-in-out infinite;
}

.struggle-fx.idle-warn .struggle-fx-side.on .struggle-fx-chevron {
  color: #ffe08a;
}

.struggle-fx.idle-warn .struggle-fx-side.on .struggle-fx-hint {
  border-color: #e0a040;
  color: #ffe6a8;
}

.struggle-fx-side.on .struggle-fx-chevron {
  color: #b8f5a0;
}

.struggle-fx-side.on .struggle-fx-hint {
  border-color: #8be06a;
  color: #d8ffc8;
}

.struggle-fx-side.off {
  opacity: 0.12;
  filter: grayscale(0.8);
}

.struggle-fx.bad .struggle-fx-side.on {
  filter: drop-shadow(0 0 14px rgba(255, 80, 80, 0.75));
  animation: struggleSideShake 0.35s ease-in-out infinite;
}

.struggle-fx.bad .struggle-fx-side.on .struggle-fx-chevron {
  color: #ffb0b0;
}

.struggle-fx.bad .struggle-fx-side.on .struggle-fx-hint {
  border-color: #e06060;
  color: #ffd0d0;
  content: none;
}

@keyframes struggleSideBounce {
  0%,
  100% {
  transform: translateY(-50%) scale(1);
  }
  50% {
  transform: translateY(-50%) scale(1.08);
  }
}

@keyframes struggleSideShake {
  0%,
  100% {
  transform: translateY(-50%) translateX(0);
  }
  25% {
  transform: translateY(-50%) translateX(-4px);
  }
  75% {
  transform: translateY(-50%) translateX(4px);
  }
}

.struggle-fx-banner {
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  font-weight: 900;
  font-size: clamp(0.95rem, 3.2vw, 1.35rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  border: 3px solid #111;
  background: rgba(12, 16, 16, 0.88);
  color: #f3efe6;
  text-align: center;
  max-width: 86%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.struggle-fx.good .struggle-fx-banner {
  background: rgba(30, 80, 40, 0.92);
  color: #d8ffc8;
  border-color: #6bc45a;
}

.struggle-fx.bad .struggle-fx-banner {
  background: rgba(90, 25, 25, 0.94);
  color: #ffd0d0;
  border-color: #e05050;
}

.struggle-fx.idle-warn .struggle-fx-banner {
  background: rgba(90, 60, 15, 0.94);
  color: #ffe6a8;
  border-color: #e0a040;
  animation: struggleBannerPulse 0.7s ease-in-out infinite;
}

.struggle-fx.neutral .struggle-fx-banner {
  background: rgba(20, 50, 70, 0.9);
  color: #c8e8ff;
  border-color: #4a90b8;
}

@keyframes struggleBannerPulse {
  0%,
  100% {
  transform: translateX(-50%) scale(1);
  }
  50% {
  transform: translateX(-50%) scale(1.04);
  }
}

@keyframes pop {
  from {
  transform: translateX(-50%) scale(0.85);
  opacity: 0;
  }
  to {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  }
}

.xp-label {
  margin-left: auto;
  font-size: 0.78rem;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}

.xp-bar-lg {
  height: 10px;
}

.stat-xp {
  min-width: 110px;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
}

.stat-xp-top {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.xp-label-hud {
  font-size: 10px;
  opacity: 0.8;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.xp-bar-hud {
  height: 5px;
  width: 100%;
  background: rgba(0,0,0,0.4);
  border-radius: 99px;
  overflow: hidden;
}

.chat-system {
  color: #9ec9b8;
  font-style: italic;
  opacity: 0.95;
}

.chat-catch {
  color: #d8e8a0;
  font-style: normal;
}

#map-zones {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.lake-zone {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 12px !important;
  color: #fff !important;
  font: 600 11px/1.2 "Trebuchet MS", sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
  transition: transform 0.12s ease, border-color 0.12s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(2px);
  box-sizing: border-box;
  background: rgba(8, 30, 28, 0.82) !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 11.5rem;
  min-width: 5.5rem;
  pointer-events: none;
  white-space: normal;
}

.lake-zone:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lake-zone.open {
  background: rgba(20, 90, 75, 0.55) !important;
  box-shadow: 0 0 0 2px rgba(180, 255, 200, 0.85),
  0 6px 18px rgba(0, 40, 30, 0.35),
  inset 0 1px 0 rgba(255,255,255,0.25);
  border-color: rgba(100, 220, 180, 0.45) !important;
}

.lake-zone.open:hover {
  transform: translate(-50%, -50%) scale(1.04);
  box-shadow: 0 0 0 3px rgba(210, 255, 220, 0.95),
  0 8px 22px rgba(0, 60, 40, 0.45),
  inset 0 1px 0 rgba(255,255,255,0.35);
}

.lake-zone.open.premium {
  background: linear-gradient(160deg, rgba(230, 180, 60, 0.55), rgba(120, 80, 20, 0.75));
  box-shadow: 0 0 0 2px rgba(255, 220, 120, 0.9),
  0 6px 18px rgba(60, 40, 0, 0.35),
  inset 0 1px 0 rgba(255,255,255,0.28);
}

.lake-zone.locked {
  background: rgba(12, 14, 16, 0.72);
  box-shadow: 0 0 0 2px rgba(90, 95, 100, 0.55), inset 0 0 20px rgba(0,0,0,0.35);
  color: rgba(220, 220, 220, 0.75);
  cursor: not-allowed;
  filter: saturate(0.35) brightness(0.85);
}

.lake-zone.locked:hover {
  transform: translate(-50%, -50%);
  filter: saturate(0.4) brightness(0.9);
}

.lake-zone.locked-premium {
  background: rgba(40, 28, 10, 0.78);
  box-shadow: 0 0 0 2px rgba(180, 140, 50, 0.55), inset 0 0 16px rgba(0,0,0,0.4);
  cursor: pointer;
  filter: saturate(0.7) brightness(0.9);
}

.lake-zone.locked-premium:hover {
  transform: translate(-50%, -50%) scale(1.02);
  filter: saturate(0.85) brightness(1);
}

.lz-icon {
  font-size: clamp(14px, 2.2vw, 20px);
  line-height: 1;
  opacity: 0.95;
}

.lz-icon-open {
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: grid;
  place-items: center;
  font-size: clamp(11px, 1.6vw, 14px);
}

.lake-zone.open .lz-icon-open {
  background: rgba(40, 120, 70, 0.85);
  color: #e8ffe8;
}

.lake-zone.open.premium .lz-icon-open {
  background: rgba(140, 100, 20, 0.9);
  color: #fff6c8;
}

.lz-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
  max-width: 100%;
}

.lz-name {
  font-size: clamp(11px, 1.7vw, 14px);
  font-weight: 700;
  text-align: center;
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  line-height: 1.2;
  padding: 0 2px;
}

.lz-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: inline-block;
  margin-top: 0.1rem;
  background: rgba(0, 0, 0, 0.4);
  overflow: visible;
}

.lz-open {
  background: rgba(40, 160, 110, 0.55);
  color: #d8ffd0;
}

.lake-zone.premium.open .lz-open {
  background: rgba(120, 80, 10, 0.9);
  color: #ffe9a8;
}

.lz-lock {
  background: rgba(80, 80, 80, 0.55);
  color: #c8c8cc;
}

.lz-prem {
  background: rgba(180, 130, 40, 0.55);
  color: #ffe8a0;
}

.shop-gold {
  font-size: 0.95rem;
}

.shop-sims {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sims-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0.6rem;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
}

.sims-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg,#3a5,#174);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.sims-title {
  font-weight: 700;
}

.sims-bars {
  letter-spacing: 0.08em;
  color: #9be08a;
  font-size: 0.85rem;
}

.sims-meta {
  font-size: 0.8rem;
  opacity: 0.85;
}

.premium-prices {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.75rem 0;
}

.settings-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  margin: 0.45rem 0 !important;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
}

.settings-row input[type='range'] {
  width: 90px;
}

.catch-feed {
  position: absolute;
  left: 50%;
  top: 14%;
  transform: translateX(-50%);
  z-index: 12;
  background: var(--glass-strong) !important;
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 14px !important;
  font: 700 13px/1.2 Trebuchet MS,sans-serif;
  pointer-events: none;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid var(--stroke) !important;
  font-family: var(--font-ui) !important;
}

.tour-banner {
  position: absolute;
  left: 50%;
  top: 32%;
  transform: translateX(-50%);
  z-index: 11;
  background: var(--glass-strong) !important;
  color: var(--gold) !important;
  padding: 0.4rem 0.9rem;
  border-radius: 12px !important;
  font: 700 14px Trebuchet MS,sans-serif;
  pointer-events: none;
  border: 1px solid var(--gold) !important;
  font-weight: 800;
}

.reward-line {
  color: #b8f0a8;
  min-height: 1.2em;
}

.chat {
  position: static;
  width: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  pointer-events: auto;
}

.chat-log {
  max-height: 0;
  overflow: hidden;
  background: var(--glass) !important;
  border-radius: 10px;
  padding: 0;
  font-size: 11px;
  color: #eee;
  border: 1px solid transparent !important;
  opacity: 0;
  transition: max-height 0.2s ease, opacity 0.15s ease, padding 0.15s ease;
}

.chat.expanded .chat-log,
.chat.collapsed .chat-log.chat-log-flash {
  max-height: 140px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.4rem 0.5rem;
  border-color: var(--stroke) !important;
  opacity: 1;
  scrollbar-width: thin;
}

.chat.expanded .chat-log {
  max-height: min(42vh, 220px);
}

.chat-line {
  margin: 0.15rem 0;
  word-break: break-word;
}

.chat-flash {
  animation: chat-flash-in 0.25s ease;
}

.chat-flash.is-hiding {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

@keyframes chat-flash-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-form {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.chat-toggle,
.chat-send {
  flex-shrink: 0;
  min-width: 34px !important;
  width: 34px;
  padding: 0.35rem 0 !important;
  line-height: 1;
  font-size: 0.85rem;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  border-radius: 10px !important;
  border: 1px solid var(--stroke) !important;
  background: rgba(0, 0, 0, 0.45) !important;
  color: #fff !important;
  padding: 0.4rem 0.55rem;
  font-size: 12px;
}

.chat-form input:focus {
  outline: none;
  border-color: rgba(180, 220, 205, 0.45) !important;
}

.chum-btn {
  background: linear-gradient(180deg, #f2d889, #d4a93a) !important;
  color: #1a1608 !important;
  border: 1px solid rgba(255, 230, 160, 0.55) !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  touch-action: none;
  user-select: none;
  font-weight: 700;
  opacity: 1;
  box-shadow: var(--shadow-up) !important;
  border-radius: var(--radius-sm) !important;
}

.chum-count {
  min-width: 1.35em;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28) !important;
  color: inherit !important;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 0.85em;
}

.chum-btn.chum-empty {
  background: linear-gradient(180deg, #4a4540, #2e2a26) !important;
  color: rgba(255, 255, 255, 0.45) !important;
  border-color: #3a3428 !important;
  opacity: 0.7;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.chum-btn.chum-empty .chum-count {
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.45);
}

.chum-btn.chum-armed {
  background: linear-gradient(180deg, #ffe08a, #e0b84a) !important;
  box-shadow: 0 0 0 3px rgba(255, 243, 192, 0.55), var(--shadow-up) !important;
}

.chum-ghost {
  position: fixed;
  z-index: 80;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0d78c, #8a5a18 70%);
  color: #2a1a08;
  display: grid;
  place-items: center;
  font-weight: 800;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.chum-ghost.chum-ghost-cancel {
  background: radial-gradient(circle at 35% 30%, #ffb0b0, #8a2020 70%);
  color: #fff;
  opacity: 0.85;
}

body.chum-dragging {
  cursor: grabbing;
  user-select: none;
}

body.chum-dragging #pond {
  cursor: grabbing;
}

.inv-slots {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f0d78c !important;
  margin-top: -0.25rem;
  margin: 0 !important;
}

.inv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: space-between;
}

.inv-skip {
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
  font-size: 0.78rem;
  color: #e8fff8;
  max-width: 60%;
}

.inv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  max-height: 48vh;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.inv-card {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
}

.inv-card.rarity-uncommon {
  border-color: rgba(110, 200, 120, 0.55);
}

.inv-card.rarity-rare {
  border-color: rgba(90, 160, 255, 0.65);
}

.inv-card.rarity-epic {
  border-color: rgba(210, 130, 255, 0.7);
}

.inv-card.rarity-legendary {
  border-color: rgba(255, 196, 80, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 200, 80, 0.25);
}

.inv-card-main {
  min-width: 0;
  flex: 1;
}

.inv-title {
  font-weight: 800;
  color: #fff8e8;
}

.inv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  font-size: 0.78rem;
  color: #d7ebe4;
  margin-top: 0.15rem;
}

.inv-rarity {
  font-weight: 700;
}

.inv-price {
  color: #f0d78c;
  font-weight: 700;
}

.inv-spoil {
  font-size: 0.72rem;
  color: #9fd0c4;
  margin-top: 0.1rem;
}

.inv-bonus {
  font-size: 0.75rem;
  color: #c9b6ff;
  margin-top: 0.15rem;
}

.inv-empty {
  opacity: 0.6;
  text-align: center;
  padding: 0.6rem;
}

.shop-currencies {
  display: flex;
  gap: 0.45rem;
  font-weight: 700;
}

.tackle-card {
  width: min(1120px, 97vw) !important;
  max-height: min(90vh, 820px) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.55rem !important;
  height: min(90vh, 820px) !important;
}

.tackle-layout {
  display: grid !important;
  grid-template-columns: 148px minmax(0, 1fr) 260px !important;
  gap: 0.65rem !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  align-items: stretch !important;
}

.tackle-slots {
  display: grid !important;
  flex-direction: unset !important;
  gap: 0.3rem !important;
  grid-template-columns: 1fr 1fr !important;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  overflow: hidden !important;
}

.tack-slot {
  text-align: center !important;
  padding: 0.28rem 0.15rem !important;
  border-radius: 10px !important;
  border: 2px solid rgba(140, 170, 160, 0.3) !important;
  background: rgba(0, 0, 0, 0.28) !important;
  cursor: pointer;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.05rem;
  color: var(--text) !important;
  min-height: 0 !important;
  height: auto !important;
  justify-content: center;
}

.tack-slot.active {
  box-shadow: none !important;
  border-color: var(--gold) !important;
  background: rgba(240, 215, 140, 0.1) !important;
}

.tack-slot-label {
  display: block;
  font-size: 0.52rem !important;
  opacity: 0.75;
  text-transform: uppercase;
  line-height: 1.1;
}

.tack-slot-name {
  font-size: 0.8rem;
  font-weight: 700;
}

.tackle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(160px,1fr));
  gap: 0.5rem;
}

.tack-card {
  border: 2px solid #9bc;
  border-radius: 12px;
  padding: 0.5rem;
  background: #f4faf7;
  font-size: 0.75rem;
}

.tack-card.equipped {
  border-color: #1a8;
  background: #dff5e8;
}

.tack-card.locked {
  opacity: 0.55;
}

.tack-card-title {
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.tackle-stats {
  font-size: 0.7rem !important;
  background: rgba(0,0,0,0.28) !important;
  border-radius: 12px;
  padding: 0.5rem;
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  color: #e8f4f0 !important;
  max-height: none !important;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0.2rem;
  border-bottom: 1px solid #dde8e4;
  position: relative;
  cursor: help;
}

.chum-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
  gap: 0.4rem !important;
}

.chum-card {
  border: 1px solid var(--stroke) !important;
  border-radius: 10px !important;
  padding: 0.4rem !important;
  font-size: 0.72rem !important;
  background: rgba(0, 0, 0, 0.25) !important;
  color: var(--text) !important;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 90px;
}

.inv-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0.42rem !important;
  max-height: min(54vh, 440px) !important;
  overflow: hidden !important;
  grid-template-rows: repeat(5, minmax(0, 1fr)) !important;
  aspect-ratio: 1;
  width: 100%;
  max-width: min(54vh, 440px) !important;
  margin: 0 auto;
  align-content: stretch;
}

.inv-cell {
  border: 2px solid #89a;
  border-radius: 12px;
  padding: 0.4rem;
  min-height: 100px;
  background: #f7fbf9;
  font-size: 0.72rem;
}

.inv-cell.rarity-epic {
  border-color: #a5f;
}

.inv-cell.rarity-legendary {
  border-color: #fc3;
  box-shadow: 0 0 8px #fc36;
}

.inv-cell.spoiled {
  opacity: 0.55;
  filter: grayscale(0.6);
}

.inv-cell-name {
  font-weight: 800;
}

.spoil-badge {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.05rem 0.3rem;
  border-radius: 6px;
  font-size: 0.65rem;
}

.spoil-ok {
  background: #2a5a3a;
  color: #cfc;
}

.spoil-warm {
  background: #5a4a20;
  color: #fe8;
}

.spoil-hot {
  background: #5a3020;
  color: #fca;
}

.spoil-dead {
  background: #333;
  color: #ccc;
}

.inv-filters, .bazaar-tabs, .bazaar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.4rem 0;
}

.tr-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.25rem !important;
  min-height: 180px;
  margin: 1rem 0;
  padding: 0.5rem 0 0.25rem;
}

.pod-col {
  text-align: center;
  width: 110px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 14px 14px 0 0;
  padding: 0.55rem 0.35rem 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 0;
}

.pod-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #111 !important;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px #0003;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.pod-avatar.dim {
  background: #ccc;
}

.pod-stand {
  background: linear-gradient(180deg,#d4af37,#a67c00);
  border-radius: 8px 8px 0 0;
  margin: 0.3rem auto 0;
  width: 90%;
}

.pod-stand.place-1 {
  background: linear-gradient(180deg,#ffe566,#d4af37);
}

.pod-stand.place-2 {
  background: linear-gradient(180deg,#ddd,#888);
}

.pod-stand.place-3 {
  background: linear-gradient(180deg,#e6a57e,#a65);
}

.pod-name {
  font-weight: 800;
  font-size: 0.85rem;
}

.pod-score {
  font-size: 0.8rem;
}

.pod-reward {
  font-size: 0.7rem;
  color: #9fe8b8 !important;
}

.tr-match-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.28) !important;
  padding: 0.6rem;
  border-radius: 12px;
  color: var(--text) !important;
}

.tr-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.tr-list th, .tr-list td {
  padding: 0.3rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  text-align: left;
  color: var(--text);
}

.tr-list tr.you {
  background: rgba(40, 140, 110, 0.25) !important;
  font-weight: 700;
}

.tourney-results {
  width: min(720px, 96vw) !important;
  max-height: 92vh;
  overflow: auto;
}

.bazaar-card {
  width: min(720px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.bazaar-body {
  overflow: auto;
  max-height: min(52vh, 480px);
  flex: 1;
  min-height: 0;
  padding-right: 0.15rem;
}

.bazaar-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.bazaar-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.bazaar-search,
.bazaar-sort {
  flex: 1;
  min-width: 7rem;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(180, 220, 205, 0.25);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
}

.bazaar-lot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.6rem;
  margin-bottom: 0.45rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text);
}

.bazaar-lot.rarity-uncommon { border-color: rgba(110, 200, 120, 0.55); }
.bazaar-lot.rarity-rare { border-color: rgba(90, 160, 255, 0.65); }
.bazaar-lot.rarity-epic { border-color: rgba(210, 130, 255, 0.7); }
.bazaar-lot.rarity-legendary {
  border-color: rgba(255, 196, 80, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 200, 80, 0.25);
}

.bazaar-lot-main {
  display: flex;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}

.bazaar-lot-ico {
  width: 3.1rem;
  height: 3.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 2rem;
}

.bazaar-lot-ico .ico {
  font-size: inherit;
}

.bazaar-lot-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.bazaar-rarity-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.bazaar-lot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.bazaar-chip {
  font-size: 0.72rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.bazaar-lot-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  flex-shrink: 0;
}

.bazaar-own-badge,
.bazaar-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.bazaar-status-active { background: rgba(61, 139, 90, 0.35); color: #b8f0c8; }
.bazaar-status-sold,
.bazaar-status-sold_pending { background: rgba(230, 195, 92, 0.28); color: #ffe7a0; }
.bazaar-status-returned,
.bazaar-status-expired { background: rgba(120, 140, 150, 0.3); color: #c8d4d8; }
.bazaar-status-cancelled_seller,
.bazaar-status-cancelled_spoil { background: rgba(196, 91, 91, 0.28); color: #f0b0b0; }

.bazaar-sell-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.bazaar-sell-form label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
}

.bazaar-sell-form input,
.bazaar-sell-form select {
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(180, 220, 205, 0.28);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
}

.bazaar-sell-picker {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 28vh;
  overflow: auto;
}

.bazaar-pick {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.4rem;
  align-items: center;
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  cursor: pointer;
}

.bazaar-pick.selected {
  border-color: rgba(61, 180, 140, 0.7);
  box-shadow: 0 0 0 1px rgba(61, 180, 140, 0.25);
}

.bazaar-sell-preview {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.bazaar-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1.4rem 0.75rem;
  text-align: center;
}

.bazaar-empty-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.bazaar-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding-top: 0.55rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bazaar-pager-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.bazaar-listings-count {
  font-size: 0.8rem;
}

.craft-compare {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
}

.craft-compare-head, .craft-delta-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.3fr 1fr 0.7fr;
  gap: 0.25rem;
  align-items: center;
}

.craft-compare-head {
  font-weight: 700;
  color: var(--text-dim) !important;
  font-size: 0.72rem;
}

.delta-up strong {
  color: #5ee0a0 !important;
}

.delta-down strong {
  color: #f08080 !important;
}

.delta-same strong {
  color: #9ab !important;
}

.craft-cost {
  margin: 0.4rem 0;
  font-weight: 700;
}

.stat-tip {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 5;
  background: #1e2a28;
  color: #e8fff4;
  font-size: 0.7rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  box-shadow: 0 6px 16px #0005;
  white-space: normal;
}

.stat-row:hover .stat-tip, .stat-row:focus-within .stat-tip {
  display: block;
}

.tack-slot-ico {
  display: block;
  font-size: 1.7rem !important;
  line-height: 1;
}

.chum-controls {
  position: relative;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.chum-type-btn {
  min-width: 36px;
  font-weight: 800;
}

.chum-type-menu {
  position: absolute;
  top: 110%;
  right: 0;
  z-index: 40;
  min-width: 200px;
  max-height: 240px;
  overflow: auto;
  background: var(--glass-strong) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 20px #0003;
  padding: 0.35rem;
  color: var(--text) !important;
}

.chum-type-opt {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--text) !important;
}

.chum-type-opt:hover {
  background: rgba(40, 140, 120, 0.35) !important;
}

.chum-type-opt.active {
  background: var(--teal) !important;
  color: #fff !important;
}

.chum-type-opt:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tr-advice {
  margin: 0.8rem 0;
  padding: 0.6rem 0.75rem;
  background: rgba(30, 90, 75, 0.35) !important;
  border-left: 4px solid var(--teal) !important;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text) !important;
}

.tr-advice-title {
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.tr-advice p {
  margin: 0.25rem 0;
}

.mail-row {
  padding: 0.35rem 0;
  border-bottom: 1px solid #cde;
  font-size: 0.85rem;
}

.inv-life {
  font-size: 0.7rem;
  color: #9fd0c4;
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.inv-empty-slot {
  min-height: 100px;
  border: 2px dashed #b7cfc8;
  background: rgba(255,255,255,0.25);
  opacity: 0.55;
}

.bait-hints {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0.25rem 0;
  font-size: 0.68rem;
  color: var(--text-dim) !important;
}

.bait-hint-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bait-hint-label {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-right: 0.25rem;
}

.hint-often .bait-hint-label {
  color: #6d6 !important;
}

.hint-normal .bait-hint-label {
  color: #9ab !important;
}

.hint-rare .bait-hint-label {
  color: #888 !important;
}

.bait-silhouettes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.bait-sil {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  background: #eef6f2;
  border-radius: 8px;
  padding: 0.1rem 0.3rem;
  font-size: 0.62rem;
}

.bait-sil em {
  font-style: normal;
}

.hint-rare .bait-sil {
  opacity: 0.65;
}

.lz-loadout {
  background: #1a8 !important;
  color: #fff;
}

.mail-badge {
  display: inline-flex;
  min-width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.35rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #c45c26;
  color: #fff;
  font-size: 0.7rem;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  position: absolute;
  top: 4px;
  right: 6px;
  margin: 0 !important;
}

.bazaar-bid-row {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  margin-top: 0.35rem;
}

.bazaar-bid-row input {
  width: 5.5rem;
  padding: 0.3rem;
  border-radius: 8px;
  border: 1px solid #8ab;
}

.pod-medal {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.lake-zone.coming-soon {
  opacity: 0.65;
}

.loadout-check {
  display: flex !important;
  margin: 0 !important;
  font-size: 0.75rem !important;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.85;
  color: #e8f4f0;
  flex-shrink: 0;
}

.inv-filters .chip, .tackle-tabs .chip, .bazaar-tabs .chip, .bazaar-filters .chip {
  border: 1px solid rgba(140, 190, 170, 0.35) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #d5ebe3 !important;
}

.inv-filters .chip.active, .tackle-tabs .chip.active, .bazaar-tabs .chip.active, .bazaar-filters .chip.active {
  background: #1f9a78 !important;
  border-color: #167a5e !important;
  color: #fff !important;
}

.inv-sort {
  background: rgba(0, 0, 0, 0.35) !important;
  color: var(--text) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
}

.inv-toolbar-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.inv-toolbar-actions .btn {
  width: auto;
}

.inv-slot {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  min-height: 0;
  border-radius: 12px !important;
  border: 2px solid rgba(140, 170, 160, 0.35) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.32)) !important;
  box-shadow: inset 2px 2px 5px rgba(255,255,255,0.05), inset -2px -2px 6px rgba(0,0,0,0.35);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  color: inherit;
  transition: border-color 0.12s ease, transform 0.08s ease;
}

.inv-slot:hover {
  border-color: rgba(120, 220, 180, 0.6) !important;
}

.inv-slot.selected {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px rgba(240, 215, 140, 0.35);
  transform: translateY(-1px);
}

.inv-slot-empty {
  cursor: default;
  opacity: 0.35;
  background: rgba(0, 0, 0, 0.2);
  border-style: dashed !important;
}

.inv-slot-ico {
  font-size: 2.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.inv-slot-ico .ico {
  font-size: inherit;
}

.inv-slot-buff, .inv-slot-can, .inv-slot-timer {
  position: absolute;
  font-size: 0.58rem;
  font-weight: 800;
  pointer-events: none;
}

.inv-slot-buff {
  top: 4px;
  left: 5px;
  color: #c9b6ff;
}

.inv-slot-can {
  top: 4px;
  right: 5px;
  color: #5ec8ff;
}

.inv-slot-dead {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: #c66;
  background: rgba(0,0,0,0.35);
  border-radius: 10px;
}

.inv-slot-timer {
  bottom: 3px;
  left: 0;
  right: 0;
  text-align: center;
  color: #9fd0c4;
  font-size: 0.55rem;
}

.inv-slot.rarity-uncommon {
  border-color: rgba(110, 200, 120, 0.7) !important;
}

.inv-slot.rarity-rare {
  border-color: rgba(90, 160, 255, 0.75) !important;
}

.inv-slot.rarity-epic {
  border-color: rgba(210, 130, 255, 0.8) !important;
}

.inv-slot.rarity-legendary {
  border-color: rgba(255, 196, 80, 0.95) !important;
}

.inv-slot.spoiled {
  filter: grayscale(0.7);
  opacity: 0.7;
}

.inv-detail {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
  overflow: auto;
}

.detail-empty {
  opacity: 0.55;
  text-align: center;
  padding: 1.5rem 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.detail-head {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.detail-ico {
  font-size: 2.35rem;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.detail-ico .ico {
  font-size: inherit;
}

.detail-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.detail-sub {
  font-size: 0.72rem;
}

.detail-stats {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-stat {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.75rem;
  padding: 0.15rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: center;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.detail-actions .btn {
  width: auto !important;
  flex: 1 1 auto;
  min-width: 0;
}

.detail-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #8fd;
  padding: 0.35rem 0.5rem;
}

.detail-badge.soft {
  color: #9ab;
}

.detail-price {
  font-size: 0.8rem;
  color: #f0d78c;
  margin-top: 0.2rem;
}

.cur-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid var(--stroke) !important;
  font-size: 0.85rem;
  color: var(--text) !important;
}

.tackle-equip {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
  min-height: 0 !important;
  overflow: hidden !important;
  color: var(--text) !important;
  background: rgba(0, 0, 0, 0.28) !important;
}

.tackle-equip-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
  flex-shrink: 0;
}

.tack-slot-grade {
  font-size: 0.65rem;
  font-weight: 800;
  color: #9fd;
}

.tackle-main {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.tackle-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-height: 0 !important;
  align-items: center;
  flex-shrink: 0;
}

.tack-tabs-hint {
  font-size: 0.75rem;
  opacity: 0.65;
}

.tackle-grid, .shop-sims.tackle-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0.35rem !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 0.1rem 0.15rem 0.1rem 0 !important;
  flex: 1 1 auto !important;
  align-content: start;
  max-height: none !important;
  min-height: 0 !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(160, 200, 180, 0.35) transparent;
}

.tack-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid rgba(140, 170, 160, 0.35);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(0,0,0,0.32));
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.tack-tile:hover {
  border-color: rgba(120, 220, 180, 0.55);
}

.tack-tile.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(240, 215, 140, 0.3);
}

.tack-tile.equipped {
  border-color: #3ecf9a;
}

.tack-tile.locked {
  opacity: 0.42;
}

.tack-tile-ico {
  font-size: 2.45rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.tack-tile-ico .ico,
.tack-tile-ico .ico.gear-stack {
  font-size: inherit;
}

.tack-tile-grade {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--gold);
}

.tack-tile-star {
  position: absolute;
  top: 3px;
  left: 5px;
  color: #f0d78c;
  font-size: 0.7rem;
}

.tack-tile-own {
  position: absolute;
  top: 3px;
  right: 5px;
  color: #6d6;
  font-size: 0.65rem;
}

.tack-tile-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
}

.tackle-side {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(160, 200, 180, 0.35) transparent;
}

.tackle-detail {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
}

.stats-title {
  font-weight: 800;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
}

.tackle-stats .stat-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem !important;
  color: #e8f4f0;
  border-bottom: none !important;
  cursor: help;
  padding: 0.12rem 0 !important;
}

.tackle-stats .stat-row > span:not(.stat-row-ico) {
  flex: 1;
}

.tackle-stats .stat-tip {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 5;
  background: #1e2a28;
  color: #e8fff4;
  font-size: 0.68rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
}

.tackle-stats .stat-row:hover .stat-tip {
  display: block;
}

.tackle-chum {
  flex-shrink: 0;
  max-height: 140px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.28) !important;
  color: var(--text) !important;
}

.chum-head {
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.chum-card-name {
  font-weight: 700;
}

.chum-card-meta {
  opacity: 0.65;
  font-size: 0.65rem;
}

.chum-card .btn {
  width: 100%;
  margin-top: auto;
  min-height: 32px;
  padding: 0.25rem;
  font-size: 0.72rem;
}

.craft-card {
  width: min(420px,94vw);
  color: #e8f4f0;
}

.craft-card .craft-compare-head,.craft-card .craft-delta-row {
  color: #cde;
}

.craft-actions {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
}

.craft-actions .btn {
  width: auto;
  flex: 1;
}

.bestiary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 0.4rem;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: none;
  min-height: 0;
  padding: 0.1rem 0.15rem 0.1rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(160, 200, 180, 0.35) transparent;
}

.bestiary-grid::-webkit-scrollbar, .bestiary-detail::-webkit-scrollbar {
  width: 6px;
}

.bestiary-grid::-webkit-scrollbar-thumb, .bestiary-detail::-webkit-scrollbar-thumb {
  background: rgba(160, 200, 180, 0.35);
  border-radius: 99px;
}

.bestiary-tile {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid rgba(140, 170, 160, 0.35);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(0,0,0,0.32));
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  padding: 0.35rem;
}

.bestiary-tile:hover {
  border-color: rgba(120, 220, 180, 0.55);
}

.bestiary-tile.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(240, 215, 140, 0.3);
}

.bestiary-tile.locked {
  opacity: 0.55;
  filter: grayscale(0.85);
}

.bestiary-tile-ico {
  font-size: 2.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.bestiary-tile-ico .ico {
  font-size: inherit;
}

.bestiary-tile-ico.sil, .detail-ico.sil {
  filter: brightness(0) opacity(0.55);
}

.bestiary-tile-name {
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bestiary-detail {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(160, 200, 180, 0.35) transparent;
}

.bestiary-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-dim);
}

.bestiary-prefs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.bestiary-prefs .bait-hint-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.bestiary-use-list {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
}

.bestiary-use-list li {
  margin: 0.15rem 0;
}

.lake-zone:hover, .lake-zone:focus-visible {
  border-color: var(--gold) !important;
}

.meter, .struggle-hud, .prompt {
  padding: 0.5rem !important;
  color: var(--text) !important;
}

.meter-frame, .reel-track, .line-track {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.meter-fill, .reel-fill {
  background: linear-gradient(90deg, #3ecf9a, #f0d78c) !important;
}

.tackle-grid::-webkit-scrollbar, .shop-sims.tackle-grid::-webkit-scrollbar, .tackle-side::-webkit-scrollbar {
  width: 6px;
}

.tackle-grid::-webkit-scrollbar-thumb, .shop-sims.tackle-grid::-webkit-scrollbar-thumb, .tackle-side::-webkit-scrollbar-thumb {
  background: rgba(160, 200, 180, 0.35);
  border-radius: 99px;
}

.tackle-detail, .tackle-stats {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  color: var(--text) !important;
  background: rgba(0, 0, 0, 0.28) !important;
}

.tackle-stats .stats-title {
  margin-bottom: 0.3rem;
}

.tackle-stats-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 0.55rem;
}

.tackle-stats .stat-row strong {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.bazaar-hint {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.settings-row select, .settings-row input[type="range"] {
  accent-color: var(--teal);
}

.premium-prices .btn {
  width: 100%;
}

.detail-stat-ico {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.95;
}

.detail-stat > span:not(.detail-stat-ico) {
  flex: 1;
}

.stat-row-ico {
  font-size: 1.25rem;
  line-height: 1;
  margin-right: 0.25rem;
  flex-shrink: 0;
}

.bait-pref, .junk-req {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-right: 0.45rem;
  white-space: nowrap;
}

.junk-req.have {
  color: #7dcea0;
}

.junk-req.need {
  color: #f4a261;
}

.detail-block {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffb4a2;
  background: rgba(180, 60, 40, 0.18);
  border: 1px solid rgba(244, 162, 97, 0.35);
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
}

.detail-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.bait-pref .ico, .junk-req .ico {
  font-size: 1.4rem;
}

.toast-ico {
  display: inline-flex;
  margin-right: 0.4rem;
  font-size: 1.25rem;
  vertical-align: -0.2em;
}

#toast {
  display: flex;
  align-items: center;
}

.tile-ico {
  font-size: 1.85rem;
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}

.tr-match-stats, .tr-advice, .bait-sil {
  background: rgba(0, 0, 0, 0.28) !important;
  color: var(--text) !important;
  border-color: var(--stroke) !important;
}

.tr-list th, .tr-list td, .mail-row {
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--text) !important;
}

.pod-name, .pod-score, .pod-reward {
  color: var(--text) !important;
}

.bazaar-sell-form input, .bazaar-sell-form select, .bazaar-bid-row input, .settings-row select {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid var(--stroke) !important;
  color: var(--text) !important;
  border-radius: 10px;
  padding: 0.4rem 0.5rem;
}

@keyframes lobbyIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.bz-lock-hint {
  display: block;
  font-size: 0.62rem;
  opacity: 0.7;
  font-weight: 700;
}

.pod-place {
  font-weight: 800;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.tr-me {
  text-align: center;
  font-weight: 700;
  margin: 0.5rem 0;
  color: var(--gold);
}

#mail-claim {
  margin-top: 0.65rem;
  width: 100%;
}

.tack-branch-label {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  padding: 0.45rem 0.1rem 0.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.15rem;
}

.tackle-chum[hidden] {
  display: none !important;
}

.session-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 16, 14, 0.72);
  backdrop-filter: blur(4px);
}

.session-overlay.hidden {
  display: none !important;
}

.session-overlay-card {
  max-width: 22rem;
  width: 100%;
  text-align: center;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
}

.session-overlay-text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

/* —— Daily tasks —— */
.daily-panel {
  width: min(26rem, 96vw);
  max-height: min(85dvh, 640px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.daily-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}

.daily-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.daily-head-row h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  min-width: 0;
}

.daily-close {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  display: grid !important;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  color: rgba(234, 246, 242, 0.9);
}

.daily-countdown {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.daily-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: auto;
  min-height: 0;
  flex: 1;
  padding-right: 0.15rem;
}

.daily-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border-radius: 14px;
  background: rgba(8, 36, 34, 0.55);
  border: 1px solid rgba(143, 211, 192, 0.18);
}

.daily-row.ready {
  border-color: rgba(230, 195, 92, 0.55);
  box-shadow: 0 0 0 1px rgba(230, 195, 92, 0.2);
}

.daily-row.claimed {
  opacity: 0.72;
}

.daily-row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.daily-row-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.daily-title {
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.25;
}

.chip-diff {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.daily-row.diff-easy .chip-diff {
  color: #8fd3c0;
}

.daily-row.diff-med .chip-diff {
  color: #e6c35c;
}

.daily-row.diff-hard .chip-diff {
  color: #f4a261;
}

.daily-bar {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.daily-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2a9d8f, #e6c35c);
  transition: width 0.25s ease;
}

.daily-progress {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(230, 245, 240, 0.7);
}

.daily-row-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.daily-reward {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 800;
  color: #7ed7ff;
  font-size: 0.95rem;
}

.daily-dia {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  line-height: 0;
}

.daily-dia svg {
  width: 1rem;
  height: 1rem;
}

.daily-claimed {
  font-size: 0.75rem;
  font-weight: 800;
  color: #8fd3c0;
}

.daily-reroll {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 800;
}

.daily-reroll-ico {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  line-height: 0;
}

.daily-reroll-ico svg {
  width: 1.1rem;
  height: 1.1rem;
}

.farm-bar {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.6rem;
  margin: 0.35rem 0.5rem;
  max-width: 92vw;
}
.farm-seeds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.farm-seed {
  border: 2px solid #0c0c0c;
  border-radius: 8px;
  padding: 0.2rem 0.45rem;
  font-weight: 800;
  font-size: 0.8rem;
  background: #e8f0d8;
  cursor: pointer;
}
.farm-seed.on {
  background: #b6e07a;
}
.farm-modes { display: flex; gap: 0.25rem; }
.barn-panel { padding: 0.5rem; display: flex; flex-direction: column; gap: 0.85rem; }
#inventory-modal.inv-barn-mode .inv-toolbar,
#inventory-modal.inv-barn-mode .inv-body { display: none !important; }
#inventory-modal.inv-barn-mode .barn-panel { display: flex; min-height: 220px; }
.barn-sec h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #dce8c8;
}
.barn-rows { display: flex; flex-direction: column; gap: 0.35rem; }
.barn-row {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.barn-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.barn-row-name { font-weight: 700; }
.barn-row-actions { display: flex; gap: 0.25rem; flex-wrap: wrap; justify-content: flex-end; }
.barn-empty { padding: 1.5rem 0.75rem; text-align: center; }
.farm-panel-card,
.modal-card.glass-card.farm-panel-card {
  max-width: min(920px, 96vw);
  max-height: 86vh;
  overflow: auto;
  background: #fff8e7 !important;
  color: #1b3a28 !important;
  border: none !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22) !important;
}
.farm-panel-card .modal-head h2,
.farm-panel-card .modal-head-title,
.farm-panel-card .modal-head-title h2,
.farm-panel-card .inv-slots,
.modal-card.farm-panel-card .modal-head h2 {
  color: #1b3a28 !important;
}
.farm-panel-card .muted,
.farm-panel-card .mission-reward {
  color: rgba(27, 58, 40, 0.62) !important;
}
.farm-panel-card .btn-ghost,
.modal-card.farm-panel-card .btn-ghost {
  color: #1b3a28 !important;
  border-color: rgba(27, 58, 40, 0.25) !important;
  background: transparent !important;
}
.farm-panel-body { padding: 0.35rem 0.15rem 0.5rem; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(88px, 1fr));
  gap: 0.45rem;
  padding: 0.35rem 0;
  overflow-x: auto;
  min-width: 0;
}
.tech-node {
  border: none;
  border-radius: 14px;
  padding: 0.45rem 0.4rem;
  font-size: 0.72rem;
  background: #e8f5e9;
  color: #1b3a28;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(46, 125, 50, 0.2);
  text-align: left;
}
.tech-node strong { display: block; margin-bottom: 0.15rem; }
.tech-node.owned { background: #a5d6a7; }
.tech-node.can { background: #fff59d; }
.tech-node.locked { opacity: 0.45; cursor: not-allowed; background: #eceff1; }
.tech-node.cluster-eternal { outline: 2px solid #c9a227; }
.missions-list, .visits-list, .almanac-list, .visits-events {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.25rem 0;
}
.mission-row, .almanac-row, .farm-event {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: none;
  border-radius: 14px;
  background: #e8f5e9;
  color: #1b3a28;
}
.mission-row.done { background: #c8e6c9; }
.mission-row.claimed { opacity: 0.65; }
.almanac-row.unknown { background: #efebe9; color: #5d4037; }
.almanac-row.known { background: #e8f5e9; }
.visit-target { margin: 0.15rem 0; width: 100%; justify-content: flex-start; }
.farm-panel-h3 {
  margin: 0.25rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: #1b3a28;
}
.visits-targets {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.prestige-prem { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.prestige-body { display: flex; flex-direction: column; gap: 0.65rem; color: #1b3a28; }
.prestige-body h3 { margin: 0.35rem 0 0; color: #1b3a28; }
.ref-bind { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.ref-bind input {
  flex: 1;
  min-width: 140px;
  border-radius: 10px;
  border: 2px solid #c8e6c9;
  padding: 0.4rem 0.55rem;
  background: #fff;
}
.hud-bottom { flex-wrap: wrap; }
.farm-shop-tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.farm-shop-tabs .chip.active { background: #b6e07a; color: #1b3a28; }
.farm-shop-block { padding: 0.25rem 0.1rem 0.5rem; }
.farm-seed-grid { display: flex; flex-direction: column; gap: 0.45rem; }
.farm-shop-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.farm-shop-card.locked { opacity: 0.55; }
.farm-shop-card-top {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 0.5rem;
  align-items: center;
}
.farm-shop-card-actions { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.farm-shop-empty { padding: 1rem 0.5rem; text-align: center; }
#shop-modal .barn-row {
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
}
#shop-modal.farm-shop-mode .tackle-layout {
  display: block !important;
  grid-template-columns: none !important;
  overflow: auto !important;
}
#shop-modal.farm-shop-mode .tackle-equip,
#shop-modal.farm-shop-mode .tackle-side {
  display: none !important;
}
#shop-modal.farm-shop-mode .tackle-main {
  width: 100% !important;
  max-width: none !important;
  display: block !important;
}
#shop-modal.farm-shop-mode .shop-sims.tackle-grid {
  display: block !important;
  grid-template-columns: none !important;
  max-height: min(62vh, 560px) !important;
  overflow: auto !important;
}
#shop-modal.farm-shop-mode .loadout-check {
  display: none !important;
}
#shop-modal.farm-shop-mode .farm-seed-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.45rem !important;
}

#game.farm-mode .chum-controls,
#game.farm-mode #cast-meter,
#game.farm-mode #struggle-hud,
#game.farm-mode #prompt,
#game.farm-mode #struggle-fx,
#game.farm-mode .hud-side {
  display: none !important;
}

#game.farm-mode .hud-left-dock {
  width: auto;
  max-width: none;
  left: auto;
  right: var(--hud-pad);
  bottom: calc(var(--hud-pad) + var(--safe-b, 0px));
  align-items: flex-end;
  gap: 0.4rem;
}

#game.farm-mode #chat,
#chat {
  display: none !important;
}

.farm-dock {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.28rem;
  padding: 0.35rem;
  max-width: min(220px, 46vw);
  pointer-events: auto;
  position: relative;
}

.farm-dock-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  width: 100%;
  justify-content: flex-end;
  padding-top: 0.28rem;
  border-top: 1px solid rgba(180, 220, 205, 0.15);
  margin-top: 0.1rem;
}
.farm-dock-more.hidden { display: none; }

.farm-dock-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid rgba(12, 40, 28, 0.55);
  background: linear-gradient(145deg, #1f6b55, #154a3c);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.22);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #eaf6f0;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.farm-dock-btn:active {
  transform: translateY(2px) scale(0.97);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
}
.farm-dock-ico {
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  line-height: 0;
}
.farm-dock-ico .ico svg {
  width: 1.25rem;
  height: 1.25rem;
}

.farm-hint {
  pointer-events: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  max-width: min(280px, 80vw);
  text-align: right;
  color: rgba(234, 246, 240, 0.85);
  background: rgba(8, 28, 22, 0.55);
}

#btn-farm-skip.armed {
  outline: 2px solid #e6c35c;
  background: #3d6b2f;
}

.plant-picker {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.75rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}
.plant-picker.hidden { display: none; }
.plant-picker-card {
  width: min(420px, 100%);
  max-height: min(52vh, 420px);
  overflow: auto;
  border-radius: 18px;
  padding: 0.85rem;
  border: 1px solid rgba(180, 220, 205, 0.22);
}
.plant-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.plant-picker-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.plant-pick {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 2px solid #0c0c0c;
  background: #e8f3e4;
  color: #10221f;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.plant-pick:active { transform: scale(0.98); }
.plant-pick-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #0c0c0c;
}
.plant-pick-qty { opacity: 0.7; }

.lobby-auth-hint {
  margin: 1.5rem auto;
  max-width: 22rem;
  text-align: center;
  color: var(--text-dim, rgba(220, 240, 232, 0.72));
  font-weight: 600;
}

.lobby-shell-auth .lobby-top {
  opacity: 0.85;
}

@media (max-width: 640px) {
  #game.farm-mode .hud-left-dock {
    right: 0.4rem;
    left: 0.4rem;
    align-items: stretch;
  }
  .farm-dock {
    max-width: none;
    justify-content: center;
  }
  .farm-hint {
    text-align: center;
    max-width: none;
  }
}


