:root {
  --bg: #081226;
  --panel: #141d36;
  --panel2: #1d2948;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --slot: #0f1a2e;
  --border: #2a3f60;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -12%, rgba(216, 180, 255, 0.18), transparent 44%),
    linear-gradient(180deg, #6025b0 0%, #3a1a81 34%, #1b2d68 70%, #0b193f 100%),
    linear-gradient(45deg, rgba(255,255,255,.20) 2px, transparent 2px),
    linear-gradient(-45deg, rgba(0,0,0,.32) 2px, transparent 2px);
  background-size: auto, auto, 96px 96px, 96px 96px;
  background-position: center, center, 0 0, 48px 48px;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 25%),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.08), transparent 40%);
  mix-blend-mode: screen;
  z-index: 0;
}

.container { max-width: 1800px; width: min(1800px, 98vw); margin: 0 auto; padding: 24px; }
h1 { margin-bottom: 8px; }
h1, h2 {
  font-family: "Bungee", "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 0.8px;
}
.sub { color: var(--muted); margin-top: 0; }

.panel {
  background: linear-gradient(145deg, rgba(20,29,54,.94), rgba(25,38,67,.92));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
  box-shadow: 0 8px 24px rgba(2, 8, 24, .25);
}
.panel h2 {
  margin-top: 0;
  letter-spacing: .2px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(440px, 0.95fr) minmax(620px, 1.05fr);
  gap: 14px;
  align-items: start;
}
.left-column,
.right-column {
  display: grid;
  gap: 14px;
}
.left-column .panel:first-child {
  position: static;
}
.builder-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 14px;
}
.metric-tile {
  background: linear-gradient(160deg, #0c1832, #0b2240);
  border: 1px solid #27456f;
  border-radius: 10px;
  padding: 10px 12px;
}
.metric-label {
  display: block;
  font-size: 11px;
  color: #93c5fd;
  letter-spacing: .2px;
}
.metric-tile strong {
  font-size: 18px;
  display: block;
  margin-top: 4px;
}

.slot-legend { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tower-troops {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 14px;
}
.tower-btn {
  border: 2px solid #4c1d95;
  background: linear-gradient(160deg, #1a1e44, #1b2340);
  color: #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}
.tower-btn.active {
  border-color: #c084fc;
  box-shadow: 0 0 0 1px rgba(192,132,252,.4), 0 0 18px rgba(168,85,247,.3);
}
.tower-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 6px 16px rgba(2,8,23,.4);
  flex: 0 0 auto;
  object-fit: cover;
}
.tower-label {
  font-size: 15px;
  line-height: 1.1;
}
.badge { padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.evo { background: #7c3aed; }
.badge.wild { background: #f59e0b; color: #121212; }
.badge.hero { background: #f59e0b; color: #2b1700; }

.deck-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.slot {
  min-height: 150px;
  border: 2px dashed #37517b;
  border-radius: 12px;
  background: var(--slot);
  padding: 8px;
  transition: border-color .15s ease, transform .15s ease;
}
.slot.drag-over { border-color: var(--accent); transform: translateY(-1px); }
.slot-title { font-size: 12px; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
.slot.evo { border-color: #7c3aed; }
.slot.wild { border-color: #f59e0b; }
.slot.hero { border-color: #10b981; }

.card-chip {
  position: relative;
  background: #0b1530;
  border: 1px solid #365182;
  border-radius: 10px;
  padding: 8px;
  cursor: grab;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card-chip:hover {
  transform: translateY(-2px);
  border-color: #4b77bd;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.card-chip.in-deck {
  opacity: .4;
  cursor: not-allowed;
}

.card-chip.slot-evo {
  border-color: #a855f7;
  box-shadow: 0 0 0 1px rgba(168,85,247,.35), 0 0 22px rgba(168,85,247,.25);
}
.card-chip.slot-hero {
  border-color: #fbbf24;
  box-shadow: 0 0 0 1px rgba(251,191,36,.35), 0 0 22px rgba(245,158,11,.22);
}
.card-chip.slot-wild {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245,158,11,.35), 0 0 22px rgba(245,158,11,.22);
}

.fx-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 6px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}
.fx-badge.evo { background: rgba(124,58,237,.9); }
.fx-badge.hero { background: rgba(245,158,11,.95); color: #221200; }
.fx-badge.wild { background: rgba(245,158,11,.95); color: #171717; }

.card-img-wrap {
  width: 100%;
  height: 96px;
  border-radius: 8px;
  background: linear-gradient(180deg, #0b1220, #0f1a31);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Show full card art in pool cards (no face-cropping). */
.card-pool .card-img {
  object-fit: contain;
  object-position: center;
}

/* Keep placed deck cards readable while avoiding hard crops. */
.deck-slots .card-img {
  object-fit: contain;
  object-position: center;
}

.card-fallback {
  font-size: 22px;
  font-weight: 800;
  color: #7dd3fc;
}

.card-chip .name { font-weight: 700; font-size: 13px; margin-top: 8px; line-height: 1.2; min-height: 30px; }
.card-chip .meta { font-size: 11px; color: var(--muted); margin-top: 4px; }

.controls { display: flex; gap: 10px; margin-top: 14px; }
.controls { flex-wrap: wrap; }
button {
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  color: #07263a;
  font-weight: 800;
  padding: 10px 14px;
  cursor: pointer;
}
button.secondary { background: #334155; color: #e2e8f0; }
#optimizeTowerBtn { background: #22c55e; color: #062014; }
#deltaBtn { background: #f59e0b; color: #231400; }
.weakness-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.weakness-btn { background: #7c3aed; color: #f5f3ff; }
.sim-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.sim-row select {
  min-width: 240px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0b1220;
  color: var(--text);
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.overview-kpi {
  background: linear-gradient(180deg, #0b1631, #0b1e3a);
  border: 1px solid #2c4c77;
  border-radius: 10px;
  padding: 10px;
}
.battle-snapshot {
  border-color: #334f86;
  box-shadow: inset 0 0 0 1px rgba(125,211,252,.08), 0 10px 28px rgba(2,8,24,.32);
}
.snapshot-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  align-items: stretch;
}
.phone-frame {
  border-radius: 28px;
  border: 2px solid rgba(148,163,184,.46);
  padding: 10px;
  background: linear-gradient(180deg, #0b1020, #0a152f 65%, #0d1c3a);
  box-shadow: inset 0 0 0 2px rgba(2,6,23,.65), 0 12px 28px rgba(2,6,23,.55);
}
.phone-notch {
  width: 120px;
  height: 14px;
  background: #020617;
  border-radius: 0 0 12px 12px;
  margin: -10px auto 8px;
}
.phone-screen {
  border-radius: 20px;
  border: 1px solid rgba(125,211,252,.25);
  padding: 10px;
  min-height: 240px;
  background:
    radial-gradient(circle at 50% 20%, rgba(34,211,238,.20), transparent 48%),
    linear-gradient(180deg, #101f42 5%, #0d1834 100%);
}
.phone-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #cfe6ff;
  margin-bottom: 10px;
}
.winrate-ring {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 4px auto 10px;
}
.winrate-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring-track {
  fill: none;
  stroke: rgba(71,85,105,.8);
  stroke-width: 10;
}
.ring-value {
  fill: none;
  stroke: url(#ringGrad);
  stroke: #22d3ee;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 289.03;
  stroke-dashoffset: 289.03;
  transition: stroke-dashoffset .25s ease;
}
.ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.ring-label strong {
  font-size: 30px;
}
.ring-label span {
  font-size: 11px;
  color: #93c5fd;
}
.phone-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.phone-tag {
  border: 1px solid #355f94;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  background: rgba(8, 18, 40, 0.7);
}
.phone-tag.danger {
  border-color: rgba(249,115,22,.7);
  color: #fed7aa;
}
.snapshot-right {
  display: grid;
  gap: 12px;
}
.insight-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.insight-card {
  border: 1px solid #31507a;
  border-radius: 10px;
  padding: 10px;
  background: linear-gradient(170deg, #0d1a36, #102544);
}
.insight-card h4 {
  margin: 0 0 6px;
  font-size: 13px;
}
.insight-card p {
  margin: 0;
  font-size: 12px;
  color: #c5dbf4;
}
.insight-card.good { border-color: rgba(34,197,94,.55); }
.insight-card.warn { border-color: rgba(250,204,21,.65); }
.insight-card.bad { border-color: rgba(251,113,133,.6); }
.overview-kpi span {
  font-size: 11px;
  color: #93c5fd;
}
.overview-kpi strong {
  display: block;
  font-size: 18px;
  margin-top: 4px;
}
.headline-line {
  margin-top: 10px;
  font-weight: 700;
  color: #dbeafe;
}
.quick-read-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: center;
}
.score-dial {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto;
}
.dial-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.dial-track {
  fill: none;
  stroke: rgba(51, 65, 85, 0.9);
  stroke-width: 11;
}
.dial-value {
  fill: none;
  stroke: #38bdf8;
  stroke-linecap: round;
  stroke-width: 11;
  stroke-dasharray: 314.16;
  stroke-dashoffset: 314.16;
  transition: stroke-dashoffset 260ms ease;
}
.dial-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.dial-center strong {
  font-size: 34px;
  line-height: 1;
}
.dial-center span {
  margin-top: 4px;
  color: #93c5fd;
  font-size: 12px;
}
.subscore-bars {
  display: grid;
  gap: 8px;
}
.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 8px;
}
.bar-row span {
  font-size: 12px;
  color: #bfdbfe;
}
.bar {
  height: 9px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 999px;
  overflow: hidden;
}
.bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #38bdf8);
  transition: width 260ms ease;
}
.chip-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #2c4c77;
  background: linear-gradient(180deg, #0b1631, #0b1e3a);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 700;
}
.swap-board {
  margin: 8px 0 10px;
  display: grid;
  gap: 8px;
}
.swap-card {
  border: 1px solid #2a466e;
  background: linear-gradient(160deg, #0b1936, #0d2345);
  border-radius: 10px;
  padding: 8px 10px;
}
.swap-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}
.swap-delta {
  color: #22c55e;
}
.swap-meter {
  margin-top: 6px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(2, 6, 23, 0.7);
  overflow: hidden;
}
.swap-meter i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #22c55e, #34d399);
}
.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.risk-card {
  border: 1px solid #2a466e;
  border-radius: 10px;
  background: linear-gradient(160deg, #0b1936, #0d2345);
  padding: 8px 10px;
  display: grid;
  gap: 6px;
}
.risk-card span {
  font-size: 12px;
  color: #bfdbfe;
}
.risk-bar {
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(2, 6, 23, 0.7);
  overflow: hidden;
}
.risk-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #38bdf8, #a855f7);
}
.risk-card b {
  font-size: 12px;
  color: #e2e8f0;
}
.variant-pill {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  z-index: 5;
  letter-spacing: .2px;
  background: rgba(71,85,105,.9);
  color: #e2e8f0;
}

#searchInput {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0b1220;
  color: var(--text);
}

.card-pool {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  max-height: 54vh;
  overflow: auto;
  padding-right: 4px;
}

.status { color: var(--muted); min-height: 20px; }
ul { padding-left: 20px; }
.panel ul {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}
.list-pill {
  border: 1px solid #2a466e;
  background: linear-gradient(160deg, #0b1936, #0d2345);
  border-radius: 8px;
  padding: 8px 10px;
}
#subScoresList,
#towerImpactList {
  display: none;
}
.metric-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.metric-tile-visual {
  border: 1px solid #335481;
  border-radius: 10px;
  padding: 8px 10px;
  background: linear-gradient(165deg, #0c1b37, #0f2a4a);
}
.metric-tile-visual .name {
  font-size: 12px;
  color: #bfdbfe;
  margin-bottom: 6px;
}
.metric-tile-visual .value {
  font-size: 18px;
  font-weight: 800;
}
.mini-bar {
  margin-top: 6px;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(51,65,85,.95);
  background: rgba(2,6,23,.65);
}
.mini-bar i {
  display: block;
  height: 100%;
  width: 0;
  transition: width .24s ease;
  background: linear-gradient(90deg, #22d3ee, #a855f7);
}
.ml-forecast-visual {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.ml-forecast-card {
  border: 1px solid #335481;
  border-radius: 10px;
  background: linear-gradient(165deg, #0c1b37, #0f2a4a);
  padding: 10px;
}
.ml-forecast-card .label {
  font-size: 12px;
  color: #bfdbfe;
}
.ml-forecast-card .main {
  font-size: 22px;
  font-weight: 900;
  margin-top: 2px;
}
.drift-meter {
  margin: 6px 0 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(51,65,85,.9);
  background: rgba(2,6,23,.7);
  overflow: hidden;
}
.drift-meter i {
  display: block;
  width: 0;
  height: 100%;
  transition: width .25s ease;
  background: linear-gradient(90deg, #22c55e, #f59e0b, #ef4444);
}
.swr-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.swr-card {
  border: 1px solid #355987;
  border-radius: 12px;
  background: linear-gradient(165deg, #0c1b37, #112b4d);
  padding: 10px;
}
.swr-card h4 {
  margin: 0 0 8px;
  font-size: 14px;
}
.swr-card ul {
  margin: 0;
  padding-left: 14px;
  display: grid;
  gap: 6px;
}
.swr-card li {
  font-size: 12px;
  color: #dbeafe;
}
.swr-card.good { border-color: rgba(34,197,94,.55); }
.swr-card.warn { border-color: rgba(245,158,11,.55); }
.swr-card.plan { border-color: rgba(56,189,248,.55); }

#towerOptimizerList,
#deltaBreakdown,
#mlSuggestionsList,
#patchDriftList {
  display: none;
}

@media (max-width: 800px) {
  body::before, body::after { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .left-column .panel:first-child { position: static; }
  .deck-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tower-troops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder-metrics { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-read-grid { grid-template-columns: 1fr; }
  .score-dial { width: 144px; height: 144px; }
  .risk-grid { grid-template-columns: 1fr; }
  .snapshot-grid { grid-template-columns: 1fr; }
  .insight-cards { grid-template-columns: 1fr; }
  .ml-forecast-visual { grid-template-columns: 1fr; }
  .swr-visual-grid { grid-template-columns: 1fr; }
}
.card-chip.slot-evo .card-img { filter: saturate(1.25) contrast(1.05) drop-shadow(0 0 10px rgba(168,85,247,.45)); }
.card-chip.slot-hero .card-img { filter: saturate(1.22) contrast(1.08) drop-shadow(0 0 10px rgba(245,158,11,.45)); }
.card-chip.slot-wild .card-img { filter: saturate(1.35) contrast(1.08) hue-rotate(8deg) drop-shadow(0 0 10px rgba(245,158,11,.45)); }

.card-chip.slot-evo .card-img-wrap {
  background: radial-gradient(circle at 20% 20%, rgba(168,85,247,.35), rgba(15,26,49,.9));
}
.card-chip.slot-hero .card-img-wrap {
  background: radial-gradient(circle at 20% 20%, rgba(245,158,11,.30), rgba(15,26,49,.9));
}
.card-chip.slot-wild .card-img-wrap {
  background: radial-gradient(circle at 20% 20%, rgba(245,158,11,.30), rgba(15,26,49,.9));
}
/* Slot transformation ornaments */
.card-chip.slot-evo,
.card-chip.slot-hero,
.card-chip.slot-wild {
  overflow: visible;
}

.card-chip.slot-evo::before,
.card-chip.slot-hero::before,
.card-chip.slot-wild::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -12px;
  transform: translateX(-50%);
  width: 56px;
  height: 30px;
  border-radius: 12px 12px 8px 8px;
  z-index: 3;
}

.card-chip.slot-evo::before {
  background: linear-gradient(180deg, #d08cff, #7b2cff);
  box-shadow: 0 0 18px rgba(203,122,255,.75);
}

.card-chip.slot-hero::before {
  background: linear-gradient(180deg, #ffd58a, #f59e0b);
  box-shadow: 0 0 18px rgba(245,158,11,.7);
}

.card-chip.slot-wild::before {
  background: linear-gradient(180deg, #ffd27a, #f59e0b);
  box-shadow: 0 0 18px rgba(245,158,11,.7);
}

.card-chip.slot-evo::after,
.card-chip.slot-hero::after,
.card-chip.slot-wild::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  transform: translateX(-50%) rotate(45deg);
  width: 16px;
  height: 16px;
  border-radius: 4px;
  z-index: 4;
}

.card-chip.slot-evo::after {
  background: radial-gradient(circle at 35% 35%, #f7d0ff, #8a2be2 70%);
  border: 2px solid #f2b4ff;
}

.card-chip.slot-hero::after {
  background: radial-gradient(circle at 35% 35%, #fff1c6, #f59e0b 70%);
  border: 2px solid #ffd980;
}

.card-chip.slot-wild::after {
  background: radial-gradient(circle at 35% 35%, #fff1c6, #f59e0b 70%);
  border: 2px solid #ffd980;
}

.card-chip.slot-evo {
  border-width: 2px;
  border-color: #da8dff;
  box-shadow: 0 0 0 2px rgba(201,112,255,.35), 0 0 26px rgba(183,79,255,.3);
}

.card-chip.slot-hero {
  border-width: 2px;
  border-color: #f7c76a;
  box-shadow: 0 0 0 2px rgba(245,179,58,.30), 0 0 24px rgba(245,158,11,.25);
}

.card-chip.slot-wild {
  border-width: 2px;
  border-color: #f7c76a;
  box-shadow: 0 0 0 2px rgba(245,179,58,.30), 0 0 24px rgba(245,158,11,.25);
}
.variant-pill {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  z-index: 5;
  letter-spacing: .2px;
}
.variant-pill.normal { background: rgba(71,85,105,.9); color: #e2e8f0; }
.variant-pill.evo { background: rgba(124,58,237,.92); color: #f3e8ff; }
.variant-pill.hero { background: rgba(16,185,129,.92); color: #eafff5; }

.mode-line {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
}
.mode-line.evo { color: #e9d5ff; }
.mode-line.hero { color: #bbf7d0; }
.mode-line.wild { color: #fde68a; }

.mode-switch {
  margin-top: 6px;
  display: flex;
  gap: 6px;
}

.mode-opt {
  border: 1px solid #475569;
  background: #0b1220;
  color: #cbd5e1;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.mode-opt.active {
  border-color: #f8fafc;
  color: #fff;
}

.card-chip.slot-evo .fx-badge.wild,
.card-chip.slot-evo .fx-badge.hero,
.card-chip.slot-hero .fx-badge.wild,
.card-chip.slot-hero .fx-badge.evo {
  display: none;
}

.hidden {
  display: none !important;
}

.foldout > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  color: #cbd5e1;
  margin: -4px 0 10px;
  padding: 6px 10px;
  border: 1px solid #304c74;
  border-radius: 8px;
  background: linear-gradient(160deg, #0b1833, #102649);
}

.foldout > summary::-webkit-details-marker {
  display: none;
}
