/**
 * Axi_Origins - Matchups & Tier List Styles
 * Responsive, Modern & High-Performance Matrix and Tier List
 */

:root {
  --axi-favorable-high: #059669;
  --axi-favorable: #10b981;
  --axi-favorable-soft: #6ee7b7;
  --axi-favorable-soft-text: #064e3b;
  
  --axi-even: #f1f5f9;
  --axi-even-text: #334155;
  
  --axi-unfavorable-soft: #fca5a5;
  --axi-unfavorable-soft-text: #7f1d1d;
  --axi-unfavorable: #ef4444;
  --axi-unfavorable-high: #dc2626;

  --axi-gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --axi-silver-gradient: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  --axi-bronze-gradient: linear-gradient(135deg, #b45309 0%, #78350f 100%);
  --axi-blue-gradient: linear-gradient(135deg, #004173 0%, #08a9d6 100%);
}

/* ==========================================================
   Common Section / SEO Styling
   ========================================================== */
.axi-meta-section {
  width: 100%;
  max-width: 1240px;
  margin: 35px auto 40px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}

.axi-meta-header {
  margin-bottom: 20px;
  text-align: left;
}

.axi-seo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(8, 169, 214, 0.1);
  color: #004173;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  border: 1px solid rgba(8, 169, 214, 0.25);
}

.axi-meta-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.axi-meta-desc {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  max-width: 850px;
}

/* ==========================================================
   Matchups Toolbar & Legend
   ========================================================== */
.axi-matchups-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--roi-border, #e2e8f0);
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.axi-matchups-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.axi-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
}

.axi-legend-box {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
}

.axi-legend-box.is-favorable { background: #10b981; }
.axi-legend-box.is-even { background: #94a3b8; }
.axi-legend-box.is-unfavorable { background: #ef4444; }
.axi-legend-box.is-mirror { background: #cbd5e1; }

.axi-matchups-controls-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.axi-matchups-filter-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.axi-matchups-filter-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
  margin: 0;
  white-space: nowrap;
}

.axi-matchups-select {
  padding: 8px 14px;
  border: 1px solid var(--roi-border, #e2e8f0);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e293b;
  background: #f8fafc;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  max-width: 220px;
}

.axi-matchups-select:focus {
  border-color: #08a9d6;
  background: #ffffff;
}

/* ==========================================================
   Matchup Illustrated Focus Card
   ========================================================== */
.axi-matchup-detail-panel {
  min-height: 280px;
  transition: min-height 0.2s ease;
}

.axi-matchup-focus-card {
  background: #ffffff;
  border: 1px solid var(--roi-border, #e2e8f0);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  animation: axiFadeIn 0.3s ease;
}

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

.axi-focus-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.axi-focus-title-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.axi-archetype-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.3px;
}

.axi-focus-winrate-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
}

.axi-focus-winrate-badge strong {
  color: #059669;
  font-size: 1.05rem;
}

.axi-focus-reset-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.axi-focus-reset-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

/* Focus: Representative Team Block */
.axi-focus-top-player-block {
  margin-bottom: 18px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.axi-focus-block-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #475569;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.axi-focus-player-name {
  color: #0f172a;
}

.axi-focus-player-rank {
  color: #0284c7;
  font-weight: 700;
}

/* 3 Axies Grid */
.axi-tier-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.axi-tier-axie-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  min-width: 0;
}

.axi-tier-axie-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f8fafc;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  object-fit: contain;
  flex-shrink: 0;
}

.axi-tier-axie-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.axi-tier-axie-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.axi-tier-axie-rune-charm {
  display: flex;
  align-items: center;
  gap: 4px;
}

.axi-tier-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 1px;
}

/* Lethal Runes & Charms Row */
.axi-tier-lethal-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.axi-lethal-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.axi-tier-section-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.axi-lethal-items-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.axi-lethal-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
}

.axi-lethal-item-chip img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
}

.axi-lethal-item-chip .axi-item-count {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

/* Focus Columns (Best vs Worst) */
.axi-focus-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.axi-focus-block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
}

.axi-focus-block.is-best { border-color: #a7f3d0; background: #fafdfb; }
.axi-focus-block.is-worst { border-color: #fecaca; background: #fffcfc; }

.axi-focus-block.is-best .axi-focus-block-title { color: #059669; }
.axi-focus-block.is-worst .axi-focus-block-title { color: #dc2626; }

.axi-focus-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.axi-focus-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
}

.axi-focus-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.axi-focus-item:has(.axi-matchup-replay-details[open]) {
  z-index: 60;
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
}

.axi-focus-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.axi-focus-item-name {
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.axi-focus-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.axi-focus-item-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
}

.axi-focus-item.is-favorable .axi-focus-item-badge {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.axi-focus-item.is-unfavorable .axi-focus-item-badge {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* ==========================================================
   MATRIX TABLE (FIXED WIDTHS & NO TEXT OVERLAP)
   ========================================================== */
.axi-matrix-scroll-hint {
  display: none;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
  text-align: center;
}

.axi-matrix-scroll-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 620px;
  border: 1px solid var(--roi-border, #e2e8f0);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.axi-matrix-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 0.8rem;
  background: #ffffff;
}

.axi-matrix-table th,
.axi-matrix-table td {
  box-sizing: border-box;
}

/* Corner Header (Top Left) */
.axi-matrix-table thead tr th.axi-matrix-corner-th {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 10;
  background: #f8fafc !important;
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  height: 110px;
  padding: 10px 12px;
  vertical-align: bottom;
  text-align: left;
  border-right: 2px solid #cbd5e1;
  border-bottom: 2px solid #cbd5e1;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.05);
}

.axi-matrix-corner-content {
  font-size: 0.74rem;
  font-weight: 800;
  color: #64748b;
  line-height: 1.3;
}

.axi-matrix-corner-content .rival-label {
  color: #0284c7;
}

/* Column Headers (Top) - Angled Labels without collision */
.axi-matrix-table thead th.axi-matrix-col-th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f8fafc !important;
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  height: 110px;
  vertical-align: bottom;
  padding: 0 2px 10px 2px;
  text-align: left;
  border-bottom: 2px solid #cbd5e1;
  border-right: 1px solid #f1f5f9;
}

.axi-matrix-col-header-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transform: rotate(-50deg);
  transform-origin: bottom left;
  width: 105px;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  margin-left: 12px;
}

/* Row Headers (Left Column) - Sticky & Opaque */
.axi-matrix-table tbody th.axi-matrix-row-th {
  position: sticky;
  left: 0;
  z-index: 5;
  background: #ffffff !important;
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  height: 40px;
  padding: 6px 12px;
  text-align: left;
  border-right: 2px solid #cbd5e1;
  border-bottom: 1px solid #f1f5f9;
  box-shadow: 3px 0 6px rgba(0, 0, 0, 0.04);
}

.axi-matrix-row-content {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.axi-team-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.axi-matrix-row-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Data Cells */
.axi-matrix-table td.axi-matrix-cell {
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  height: 40px;
  padding: 4px 2px;
  text-align: center;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.axi-matrix-table td.axi-matrix-cell:hover {
  transform: scale(1.12);
  z-index: 6;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  border-radius: 4px;
}

/* Color Grading */
.axi-matrix-cell.is-favorable-high { background: var(--axi-favorable-high); color: #ffffff; }
.axi-matrix-cell.is-favorable { background: var(--axi-favorable); color: #ffffff; }
.axi-matrix-cell.is-favorable-soft { background: var(--axi-favorable-soft); color: var(--axi-favorable-soft-text); }
.axi-matrix-cell.is-even { background: var(--axi-even); color: var(--axi-even-text); }
.axi-matrix-cell.is-unfavorable-soft { background: var(--axi-unfavorable-soft); color: var(--axi-unfavorable-soft-text); }
.axi-matrix-cell.is-unfavorable { background: var(--axi-unfavorable); color: #ffffff; }
.axi-matrix-cell.is-unfavorable-high { background: var(--axi-unfavorable-high); color: #ffffff; }
.axi-matrix-cell.is-mirror { background: #e2e8f0; color: #64748b; font-size: 0.72rem; }
.axi-matrix-cell.is-empty { background: #f8fafc; color: #cbd5e1; }

/* Highlighted Row */
.axi-matrix-table tr.is-highlighted th.axi-matrix-row-th {
  background: #e0f2fe !important;
  color: #0369a1;
}
.axi-matrix-table tr.is-highlighted td {
  border-top: 1px solid #0284c7;
  border-bottom: 1px solid #0284c7;
}

/* ==========================================================
   TIER LIST WIDGET
   ========================================================== */
.axi-tier-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.axi-tier-tab-btn {
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--roi-border, #e2e8f0);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.axi-tier-tab-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

.axi-tier-tab-btn.is-active {
  background: var(--axi-blue-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(8, 169, 214, 0.3);
}

.axi-tierlist-cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.axi-tier-card {
  background: #ffffff;
  border: 1px solid var(--roi-border, #e2e8f0);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.axi-tier-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.axi-tier-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.axi-tier-card-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.axi-tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.axi-tier-badge.tier-s { background: var(--axi-gold-gradient); box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35); }
.axi-tier-badge.tier-a { background: var(--axi-silver-gradient); }
.axi-tier-badge.tier-b { background: var(--axi-bronze-gradient); }
.axi-tier-badge.tier-c { background: #64748b; }

.axi-tier-stats-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #475569;
}

.axi-tier-winrate {
  font-size: 1.15rem;
  font-weight: 900;
  color: #059669;
}

.axi-tier-team-section {
  margin-bottom: 16px;
}

/* Victims & Threats Row */
.axi-tier-meta-matchup-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.8rem;
}

.axi-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 700;
}

.axi-summary-pill.is-counter {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.axi-summary-pill.is-threat {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* ==========================================================
   GLOBAL LETHAL ARMORY
   ========================================================== */
.axi-armory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 15px;
}

.axi-armory-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--roi-border, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.axi-armory-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px;
  flex-shrink: 0;
}

.axi-armory-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.axi-armory-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.axi-armory-meta {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
}

/* ==========================================================
   ERA CHIPSET (MYSTIC, RARE, EPIC, FINAL, OFF-SEASON, ALL)
   ========================================================== */
.axi-matchups-era-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px dashed rgba(226, 232, 240, 0.8);
}

.axi-era-chips-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.axi-matchups-era-chips {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding: 5px 4px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.axi-matchups-era-chips::-webkit-scrollbar {
  display: none;
}

.axi-era-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #004173 0%, #08a9d6 100%);
  border: 2px solid transparent;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.76;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: none;
  position: relative;
}

/* 🌐 All -> Black */
.axi-era-chip[data-era="all"],
.axi-era-chip[data-era=""] {
  background: linear-gradient(135deg, #1e293b 0%, #090d16 100%);
  color: #ffffff;
}

/* 🌱 Rare -> Green */
.axi-era-chip[data-era="rare"] {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff;
}

/* ⚔️ Epic -> Sky Blue */
.axi-era-chip[data-era="epic"] {
  background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
  color: #ffffff;
}

/* ✨ Mystic -> Purple / Violet */
.axi-era-chip[data-era="mystic"] {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
}

/* 👑 Final -> Magenta / Fuchsia */
.axi-era-chip[data-era="final"] {
  background: linear-gradient(135deg, #d946ef 0%, #86198f 100%);
  color: #ffffff;
}

/* 🛡️ Off-Season -> Slate */
.axi-era-chip[data-era="off-season"] {
  background: linear-gradient(135deg, #64748b 0%, #334155 100%);
  color: #ffffff;
}

.axi-era-chip:hover {
  opacity: 0.94;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
}

.axi-era-chip.is-active {
  opacity: 1;
  color: #ffffff;
  transform: translateY(-3px);
  filter: brightness(1.1) saturate(1.08);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.95),
    0 0 0 6px rgba(12, 183, 242, 0.24),
    0 12px 24px rgba(0, 65, 115, 0.28);
}

.axi-era-chip[data-era="all"].is-active,
.axi-era-chip[data-era=""].is-active {
  background: linear-gradient(135deg, #0f172a 0%, #000000 100%);
  filter: none;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.95),
    0 0 0 6px rgba(15, 23, 42, 0.26),
    0 12px 24px rgba(0, 0, 0, 0.36);
}

.axi-era-chip.is-current-active {
  border-color: rgba(255, 255, 255, 0.92);
}

.axi-era-chip.is-unavailable {
  opacity: 0.52;
  filter: saturate(0.78);
}

.axi-era-chip.is-unavailable:hover {
  opacity: 0.85;
  filter: saturate(0.95);
}

.axi-era-chip.is-unavailable.is-active {
  opacity: 1;
  filter: brightness(1.05) saturate(1.02);
}

/* Banner de Era Actual (igual a 🏆 Ranking de Axie Origins) */
.axi-season-current-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(0, 65, 115, 0.08);
  border: 1px solid rgba(0, 65, 115, 0.16);
  color: #004173;
  font-size: 0.78rem;
  font-weight: 700;
  margin-left: auto;
  white-space: nowrap;
}

.axi-season-current-banner strong {
  font-weight: 900;
}

.axi-season-current-banner b {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(0, 65, 115, 0.12);
  font-weight: 900;
}

.axi-season-current-banner.season-rare {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(4, 120, 87, 0.24);
  color: #065f46;
}

.axi-season-current-banner.season-epic {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(3, 105, 161, 0.24);
  color: #075985;
}

.axi-season-current-banner.season-mystic {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(109, 40, 217, 0.24);
  color: #5b21b6;
}

.axi-season-current-banner.season-mystic b {
  background: rgba(109, 40, 217, 0.15);
}

.axi-season-current-banner.season-final {
  background: rgba(217, 70, 239, 0.12);
  border-color: rgba(134, 25, 143, 0.24);
  color: #86198f;
}

.axi-season-current-banner.season-offseason {
  background: rgba(100, 116, 139, 0.12);
  border-color: rgba(51, 65, 85, 0.24);
  color: #334155;
}

.axi-banner-viewing-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.09);
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
}

.axi-chip-actual-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 2px 7px;
  border-radius: 9999px;
  margin-left: 4px;
  vertical-align: middle;
}

.axi-era-chip.is-active .axi-chip-actual-tag {
  background: #ffffff;
  color: #4c1d95;
  border-color: #ffffff;
}

/* ==========================================================
   COMPOSICIONES EXÓTICAS MÁS LETALES (TOP 3 ROGUE META BUSTERS)
   ========================================================== */
.axi-exotic-card-wrap {
  width: 100%;
  margin-bottom: 26px;
}

.axi-exotics-section-wrap {
  width: 100%;
}

.axi-exotics-section-header {
  margin-bottom: 14px;
}

.axi-exotics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.axi-exotic-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.axi-exotic-card:hover {
  transform: translateY(-2px);
}

.axi-exotic-card.is-gold {
  border: 2px solid #f59e0b;
  background: linear-gradient(135deg, #fffdf5 0%, #fffbeb 50%, #ffffff 100%);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

.axi-exotic-card.is-silver {
  border: 2px solid #94a3b8;
  background: linear-gradient(135deg, #fcfcfd 0%, #f8fafc 50%, #ffffff 100%);
  box-shadow: 0 8px 20px rgba(100, 116, 139, 0.1);
}

.axi-exotic-card.is-bronze {
  border: 2px solid #38bdf8;
  background: linear-gradient(135deg, #f8fcff 0%, #f0f9ff 50%, #ffffff 100%);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.1);
}

.axi-exotic-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.axi-exotic-medal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.axi-exotic-medal-badge.is-gold {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.axi-exotic-medal-badge.is-silver {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.axi-exotic-medal-badge.is-bronze {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.axi-exotic-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.axi-exotic-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: linear-gradient(135deg, #7e22ce 0%, #a855f7 100%);
  color: #ffffff;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(126, 34, 206, 0.3);
}

.axi-exotic-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.axi-exotic-meta-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b21a8;
  background: rgba(168, 85, 247, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  display: inline-block;
}

.axi-exotic-player-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.axi-exotic-player-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.axi-exotic-player-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.axi-exotic-rank-badge {
  padding: 2px 7px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 5px;
  font-size: 0.74rem;
  font-weight: 800;
}

.axi-exotic-elo-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
}

.axi-exotic-wr-badge {
  padding: 3px 8px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
}

/* ==========================================================
   EXOTIC REPLAY CHIPSET & INLINE MATCHES PANEL (LIGHT THEME)
   ========================================================== */
.axi-exotic-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.axi-exotic-replay-menu {
  display: block;
  width: 100%;
}

.axi-exotic-replay-menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
}

.axi-exotic-replay-menu summary::-webkit-details-marker {
  display: none;
}

.axi-exotic-replay-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.axi-exotic-replay-chip:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.4);
  transform: translateY(-1px);
}

.axi-exotic-replay-chip .axi-replay-icon {
  font-size: 0.70rem;
  color: #bae6fd;
}

.axi-exotic-replay-chip .axi-replay-caret {
  font-size: 0.68rem;
  color: #bae6fd;
  transition: transform 0.2s ease;
}

.axi-exotic-replay-menu[open] .axi-replay-caret {
  transform: rotate(180deg);
}

.axi-exotic-replay-inline-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 10px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.axi-exotic-replay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 800;
}

.axi-replay-hdr-title {
  color: #1e293b;
}

.axi-replay-hdr-stats {
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.70rem;
  font-weight: 800;
}

.axi-exotic-replay-list {
  overflow-y: auto;
  max-height: 220px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  -webkit-overflow-scrolling: touch;
}

.axi-exotic-match-link {
  text-decoration: none;
  display: block;
}

.axi-exotic-match-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  transition: all 0.15s ease;
}

.axi-exotic-match-item:hover {
  background: #f0fdf4;
  border-color: #86efac;
  transform: translateX(2px);
}

.axi-exotic-match-item.is-loss:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

.axi-match-status-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  width: 58px;
}

.axi-match-status-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

.axi-match-status-pill.is-win {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.axi-match-status-pill.is-loss {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.axi-match-status-pill.is-draw {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.axi-exotic-match-item.is-draw:hover {
  background: #fffbeb;
  border-color: #fde68a;
}

.axi-pop-meta-row,
.axi-exotic-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.axi-match-chip,
.axi-exotic-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 4px;
  line-height: 1.25;
}

.axi-match-chip.is-draw,
.axi-exotic-chip.is-draw {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.axi-match-chip.is-early-surrender,
.axi-exotic-chip.is-early-surrender {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.axi-match-chip.is-surrender,
.axi-exotic-chip.is-surrender {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.axi-match-chip.is-afk,
.axi-exotic-chip.is-afk {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.axi-match-chip.is-afk-win,
.axi-exotic-chip.is-afk-win {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

.axi-match-chip.is-offranked-friend,
.axi-exotic-chip.is-offranked-friend {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fcd34d;
  font-weight: 800;
}

.axi-match-chip.is-offranked,
.axi-exotic-chip.is-offranked {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #c4b5fd;
}

.axi-match-chip.is-ranked,
.axi-exotic-chip.is-ranked {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.axi-afk-extra-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}

.axi-bot-stat-and-mode-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.axi-bot-stat-and-mode-row .axi-afk-stat-badge {
  margin-bottom: 0;
}

.axi-bot-mode-chipset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.35;
  cursor: help;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  box-sizing: border-box;
}

.axi-bot-mode-chipset.is-friend-algo {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  border: 1.5px solid #f59e0b;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
}

.axi-bot-mode-chipset.is-offranked {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #c4b5fd;
}

.axi-bot-mode-chipset.is-ranked {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.axi-match-chip.is-normal,
.axi-exotic-chip.is-normal {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.axi-match-chip.is-time,
.axi-exotic-chip.is-time {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.axi-match-chip.is-cards-yes,
.axi-exotic-chip.is-cards-yes {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.axi-match-chip.is-cards-no,
.axi-exotic-chip.is-cards-no {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-weight: 800;
}

.axi-replay-hdr-streak {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ea580c;
  background: #fff7ed;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #fed7aa;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.axi-replay-hdr-streak.is-afk {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

.axi-tierlist-toolbar {
  margin-bottom: 16px;
}

.axi-match-idx {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 700;
}

.axi-match-info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  min-width: 0;
}

.axi-match-rival-line {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.axi-match-rival-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.axi-match-opp-team {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  vertical-align: middle;
}

.axi-match-opp-axie {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  object-fit: contain;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  overflow: hidden;
  color: #64748b;
  flex-shrink: 0;
}

.axi-match-opp-axie.is-fallback {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  font-size: 10px;
  cursor: default;
}

.axi-match-opp-axie:hover {
  transform: scale(1.3);
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  border-color: #0284c7;
}

.axi-match-mode-label {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 600;
}

.axi-match-btn-action {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 9px;
  background: #0284c7;
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.70rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.3);
}

.axi-match-btn-action:hover {
  background: #0369a1;
}

.axi-match-no-replay {
  margin-left: auto;
  font-size: 0.68rem;
  color: #94a3b8;
  font-style: italic;
  flex-shrink: 0;
}

.axi-exotic-replay-footer {
  padding: 6px 10px;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  font-size: 0.68rem;
  color: #64748b;
  text-align: center;
}

/* ==========================================================
   MATCHUPS MATRIX FOCUS CARD REPLAYS (BEST & WORST MATCHUPS)
   ========================================================== */
.axi-focus-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.axi-matchup-replay-details {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.axi-matchup-replay-details summary {
  list-style: none;
}

.axi-matchup-replay-details summary::-webkit-details-marker {
  display: none;
}

.axi-matchup-replay-details summary.axi-matchup-replay-btn,
.axi-matchup-replay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 12px;
  min-height: 30px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #0369a1;
  border: 1.5px solid #7dd3fc;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
  box-sizing: border-box;
  box-shadow: 0 2px 5px rgba(2, 132, 199, 0.12);
}

.axi-matchup-replay-btn:hover,
.axi-matchup-replay-details[open] summary.axi-matchup-replay-btn,
.axi-matchup-replay-details[open] .axi-matchup-replay-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.28);
  transform: translateY(-1px);
}

.axi-matchup-replay-btn .axi-btn-play {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  line-height: 1;
  color: currentColor;
  flex-shrink: 0;
}

.axi-matchup-replay-btn .axi-btn-caret {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  line-height: 1;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.axi-matchup-replay-details[open] .axi-btn-caret {
  transform: rotate(180deg);
}

.axi-matchup-replay-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  width: min(390px, calc(100vw - 32px));
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.axi-matchup-pop-header {
  padding: 9px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 800;
  color: #334155;
}

.axi-matchup-pop-list {
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  -webkit-overflow-scrolling: touch;
}

.axi-matchup-pop-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #0f172a;
  transition: all 0.15s ease;
}

.axi-matchup-pop-item:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  transform: translateX(2px);
}

.axi-pop-idx {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  flex-shrink: 0;
}

.axi-pop-match-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  min-width: 0;
}

.axi-pop-team-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.axi-pop-team-line .axi-match-opp-team {
  margin-left: auto;
  gap: 2px;
}

.axi-pop-team-line .axi-match-opp-axie {
  width: 18px;
  height: 18px;
}

.axi-pop-winner {
  font-size: 0.74rem;
  color: #15803d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.axi-pop-winner strong {
  font-weight: 800;
}

.axi-pop-vs {
  font-size: 0.62rem;
  color: #94a3b8;
  font-weight: 700;
  line-height: 1;
  margin: 1px 0;
}

.axi-pop-loser {
  font-size: 0.72rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.axi-pop-rank {
  font-size: 0.66rem;
  color: #64748b;
  font-weight: 600;
}

.axi-pop-play-pill {
  margin-left: auto;
  padding: 3px 8px;
  background: #0284c7;
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
}

.axi-matchup-pop-footer {
  padding: 6px 10px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 0.67rem;
  color: #64748b;
  text-align: center;
}

.axi-exotic-arc-pill {
  padding: 3px 10px;
  background: #ffffff;
  border: 1.5px solid #c084fc;
  color: #7e22ce;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(192, 132, 252, 0.2);
}

.axi-exotic-desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.axi-exotic-team-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}

.axi-exotic-axie-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  padding: 7px 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.axi-exotic-axie-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.axi-exotic-axie-img {
  width: 58px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.08));
}

.axi-exotic-axie-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.axi-exotic-axie-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.axi-exotic-axie-rune-charm {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.axi-exotic-rune-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #4338ca;
  background: #e0e7ff;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

.axi-exotic-parts-preview {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================
   RESPONSIVE DESIGN (PC & MOBILE)
   ========================================================== */
@media (max-width: 768px) {
  .axi-meta-title {
    font-size: 1.35rem;
  }
  
  .axi-matchups-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .axi-matchups-era-chips-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .axi-matchups-era-chips {
    width: 100%;
    padding-bottom: 8px;
  }

  .axi-season-current-banner {
    margin-left: 0;
    white-space: normal;
    width: 100%;
    justify-content: center;
  }

  .axi-exotics-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .axi-exotic-player-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .axi-exotic-stats-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .axi-focus-item {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }

  .axi-focus-item-left {
    width: 100%;
    justify-content: space-between;
  }

  .axi-focus-item-right {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-left: 0;
  }

  .axi-matchup-replay-details {
    max-width: 100%;
  }

  .axi-matchup-replay-details summary.axi-matchup-replay-btn,
  .axi-matchup-replay-btn {
    padding: 6px 14px;
    min-height: 34px;
    font-size: 0.78rem;
    gap: 6px;
  }

  .axi-matchup-replay-details[open] {
    flex: 1 1 100%;
    width: 100%;
  }

  .axi-matchup-replay-details[open] summary.axi-matchup-replay-btn,
  .axi-matchup-replay-details[open] .axi-matchup-replay-btn {
    width: 100%;
    justify-content: center;
  }

  .axi-matchup-replay-pop {
    position: static;
    right: auto;
    left: auto;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    margin-top: 8px;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  }

  .axi-matchup-pop-list {
    max-height: 280px;
    padding: 8px;
    gap: 8px;
  }

  .axi-matchup-pop-item {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .axi-pop-match-copy {
    flex: 1 1 calc(100% - 36px);
    min-width: 0;
  }

  .axi-pop-play-pill {
    flex: 1 1 100%;
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-top: 2px;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    padding: 6px 10px;
    font-size: 0.74rem;
    box-sizing: border-box;
  }

  .axi-exotic-team-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .axi-matchups-controls-wrap {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .axi-matchups-filter-wrap {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .axi-matchups-select {
    width: 100%;
    max-width: 100%;
  }

  .axi-matrix-scroll-hint {
    display: block;
  }

  .axi-tier-team-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .axi-tier-card {
    padding: 14px;
  }

  .axi-tier-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .axi-afk-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .axi-afk-card {
    padding: 14px 12px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .axi-bot-stat-and-mode-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .axi-bot-mode-chipset {
    max-width: 100%;
    width: auto;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
    text-align: left;
  }

  .axi-afk-rival-tabs {
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 6px;
    padding: 2px 2px 6px 2px;
    margin: 6px 0 10px 0;
    scrollbar-width: thin;
  }

  .axi-afk-rival-tab {
    font-size: 0.72rem;
    padding: 5px 10px;
    flex: 0 0 auto;
    max-width: calc(100% - 4px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    text-align: left;
  }

  .axi-afk-rival-chips {
    gap: 4px;
  }

  .axi-afk-stat-chip {
    font-size: 0.68rem;
    padding: 3px 6px;
  }

  .axi-afk-proof-match-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .axi-afk-proof-match-info {
    justify-content: space-between;
  }

  .axi-afk-proof-replay-btn {
    align-self: flex-end;
  }
}

/* ==========================================================
   ANIMATED LOADING PROGRESS BAR & SKELETON LOADERS
   ========================================================== */
.axi-loading-progress-container {
  width: 100%;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  margin: 10px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  animation: axiFadeIn 0.25s ease-out;
}

.axi-loading-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.axi-loading-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
}

.axi-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid #e0f2fe;
  border-top-color: #0284c7;
  border-radius: 50%;
  animation: axiSpin 0.7s infinite linear;
  flex-shrink: 0;
  display: inline-block;
}

.axi-loading-percent-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.axi-loading-track {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.axi-loading-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #818cf8, #0284c7);
  background-size: 200% 100%;
  border-radius: 999px;
  animation: axiRunnerMove 1.4s infinite ease-in-out, axiRunnerGradient 2s infinite linear;
  transition: width 0.3s ease;
}

.axi-loading-subtext {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
}

@keyframes axiRunnerMove {
  0% { left: -35%; width: 35%; }
  50% { width: 55%; }
  100% { left: 100%; width: 35%; }
}

@keyframes axiRunnerGradient {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

@keyframes axiSpin {
  to { transform: rotate(360deg); }
}

@keyframes axiFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.axi-retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  margin-top: 8px;
}

.axi-retry-btn:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

/* ==========================================================
   AFK & SURRENDER RECORDS / HALL OF FAME
   ========================================================== */
.axi-afk-card-wrap {
  width: 100%;
  margin-bottom: 26px;
}

.axi-afk-section-wrap {
  width: 100%;
}

.axi-afk-section-header {
  margin-bottom: 14px;
}

.axi-afk-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.axi-afk-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: 999px;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.axi-afk-tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid #fca5a5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.axi-afk-desc {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.45;
}

.axi-afk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.axi-afk-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  overflow: visible;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.axi-afk-card:has(.axi-afk-report-menu[open]) {
  z-index: 60;
}

.axi-afk-card:hover {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.axi-afk-card.is-afk {
  border: 2px solid #f97316;
  background: linear-gradient(135deg, #fffbf7 0%, #fff7ed 50%, #ffffff 100%);
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.12);
}

.axi-afk-card.is-surrender {
  border: 2px solid #ef4444;
  background: linear-gradient(135deg, #fffafa 0%, #fef2f2 50%, #ffffff 100%);
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.12);
}

.axi-afk-card.is-resistance {
  border: 2px solid #8b5cf6;
  background: linear-gradient(135deg, #faf7ff 0%, #f5f3ff 50%, #ffffff 100%);
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.12);
}

.axi-afk-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.axi-afk-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 999px;
  letter-spacing: -0.01em;
}

.axi-afk-badge.is-afk {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fdba74;
}

.axi-afk-badge.is-surrender {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.axi-afk-badge.is-resistance {
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #c4b5fd;
}

.axi-afk-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.axi-afk-stat-badge.is-afk {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
}

.axi-afk-stat-badge.is-surrender {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.axi-afk-stat-badge.is-resistance {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #6d28d9;
}

/* Top Bot & Collusion Card Elements (Purple / Morado Theme) */
.axi-afk-card.is-bot {
  border: 2px solid #8b5cf6;
  background: linear-gradient(135deg, #faf7ff 0%, #f5f3ff 50%, #ffffff 100%);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.14);
}

.axi-afk-badge.is-bot {
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #c4b5fd;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.15);
}

.axi-afk-stat-badge.is-bot {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #6d28d9;
}

.axi-afk-rival-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 6px 0 10px 0;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.axi-afk-rival-tab {
  background: #ffffff;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #6d28d9;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  font-family: inherit;
}

.axi-afk-rival-tab:hover {
  background: #f5f3ff;
  border-color: #c4b5fd;
}

.axi-afk-rival-tab.is-active {
  background: #7c3aed;
  color: #ffffff;
  border-color: #6d28d9;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

.axi-afk-single-rival-head {
  font-size: 0.78rem;
  font-weight: 800;
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
}

.axi-afk-rivals-container {
  width: 100%;
}

.axi-afk-rival-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
  width: 100%;
}

.axi-afk-rival-telemetry {
  background: #ffffff;
  border: 1px solid #fee2e2;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.axi-afk-rival-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.axi-afk-stat-chip {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.axi-afk-stat-chip.is-pattern {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #6d28d9;
}

.axi-afk-stat-chip.is-time {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.axi-afk-stat-chip.is-offranked-friend {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #b45309;
}

.axi-afk-stat-chip.is-offranked {
  background: #f5f3ff;
  border-color: #c4b5fd;
  color: #6d28d9;
}

.axi-afk-stat-chip.is-ranked {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.axi-afk-stat-chip.is-afk-win {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

.axi-afk-stat-chip.is-afk-loss {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.axi-afk-rival-reason {
  font-size: 0.73rem;
  font-weight: 700;
  color: #991b1b;
  line-height: 1.35;
  background: #fef2f2;
  border-left: 3px solid #ef4444;
  padding: 5px 8px;
  border-radius: 4px;
}

.axi-afk-proof-row {
  margin-top: 8px;
  width: 100%;
}

.axi-exotic-replay-chip.is-bot-proof {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.25);
}

.axi-exotic-replay-chip.is-bot-proof:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4);
}

.axi-exotic-replay-chip.is-afk-proof-btn {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.25);
}

.axi-exotic-replay-chip.is-afk-proof-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4);
}

.axi-exotic-replay-chip.is-surrender-proof-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

.axi-exotic-replay-chip.is-surrender-proof-btn:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
}

.axi-afk-card .axi-exotic-replay-chip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  box-sizing: border-box;
}

.axi-exotic-replay-inline-panel.is-bot-proof {
  border-color: #ddd6fe;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.1);
  margin-top: 8px;
}

.axi-exotic-replay-inline-panel.is-bot-proof .axi-exotic-replay-header {
  background: #f5f3ff;
  border-bottom: 1px solid #ddd6fe;
  color: #6d28d9;
}

.axi-exotic-replay-inline-panel.is-afk-proof-panel {
  border-color: #fed7aa;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.1);
  margin-top: 8px;
}

.axi-exotic-replay-inline-panel.is-afk-proof-panel .axi-exotic-replay-header {
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  color: #c2410c;
}

.axi-exotic-replay-inline-panel.is-surrender-proof-panel {
  border-color: #fecaca;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.1);
  margin-top: 8px;
}

.axi-exotic-replay-inline-panel.is-surrender-proof-panel .axi-exotic-replay-header {
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
  color: #991b1b;
}

.axi-afk-rival-telemetry-inner {
  padding: 10px 12px;
  background: #faf8ff;
  border-bottom: 1px solid #ede9fe;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.axi-afk-proof-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.axi-afk-proof-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.axi-afk-proof-matches-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 175px;
  overflow-y: auto;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 4px;
  background: #fafafa;
  -webkit-overflow-scrolling: touch;
}

.axi-afk-proof-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.72rem;
  transition: all 0.15s ease;
}

.axi-afk-proof-match-row:hover {
  background: #f8fafc;
}

.axi-afk-proof-match-row.is-yielded {
  border-left: 3px solid #ef4444;
}

.axi-afk-proof-match-row.is-received {
  border-left: 3px solid #16a34a;
}

.axi-afk-proof-match-row.is-fast {
  border-left: 3px solid #eab308;
}

.axi-afk-proof-match-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.axi-afk-proof-match-idx {
  font-weight: 800;
  color: #64748b;
  font-size: 0.68rem;
}

.axi-afk-proof-tag {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

.axi-afk-proof-tag.is-yielded {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.axi-afk-proof-tag.is-received {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.axi-afk-proof-tag.is-fast {
  background: #fef9c3;
  color: #a16207;
  border: 1px solid #fde047;
}

.axi-afk-proof-replay-btn {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  background: #f5f3ff;
  border: 1px solid #c4b5fd;
  color: #6d28d9;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.axi-afk-proof-replay-btn:hover {
  background: #7c3aed;
  color: #ffffff;
  border-color: #6d28d9;
}

.axi-afk-rival-note {
  font-size: 0.78rem;
  color: #475569;
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.axi-afk-rival-note strong {
  color: #0f172a;
}

/* AFK Collapsible Table */
.axi-afk-table-details {
  margin-top: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.axi-afk-table-details[open] {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  overflow: visible;
}

.axi-afk-table-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  user-select: none;
  background: #f1f5f9;
  border-radius: 11px;
}

.axi-afk-table-details[open] .axi-afk-table-summary {
  border-radius: 11px 11px 0 0;
}

.axi-afk-table-summary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.axi-afk-table-content {
  padding: 12px 14px;
  overflow-x: auto;
}

@media (min-width: 769px) {
  .axi-afk-table-content {
    overflow: visible;
  }
}

.axi-afk-compact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.axi-afk-compact-table th {
  text-align: left;
  padding: 6px 10px;
  color: #64748b;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.axi-afk-compact-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.axi-afk-compact-table tr:hover td {
  background: #f8fafc;
}

.axi-afk-chip-cell {
  position: relative;
}

/* Interactive AFK & Surrender Report Chipset & Popover (🤖 Reporte de Actividad Sospechosa) */
.axi-afk-report-menu {
  position: relative;
  display: inline-block;
}

.axi-afk-report-menu summary::-webkit-details-marker {
  display: none;
}

.axi-afk-report-chip {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.3;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.axi-afk-report-chip.is-afk {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
}

.axi-afk-report-chip.is-afk:hover {
  transform: translateY(-1px);
  background: #ffedd5;
  border-color: #f97316;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.22);
}

.axi-afk-report-chip.is-surrender {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.axi-afk-report-chip.is-surrender:hover {
  transform: translateY(-1px);
  background: #fee2e2;
  border-color: #f87171;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.22);
}

.axi-afk-card .axi-afk-report-chip {
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.axi-afk-card .axi-afk-report-chip.is-afk {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #f97316;
}

.axi-afk-card .axi-afk-report-chip.is-surrender {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #ef4444;
}

.axi-exotic-chip.is-afk-proof {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #f97316;
  font-weight: 800;
}

.axi-exotic-chip.is-surrender-proof {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #ef4444;
  font-weight: 800;
}

.axi-report-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.axi-report-dot.is-afk {
  background: #f97316;
  box-shadow: 0 0 5px rgba(249, 115, 22, 0.7);
}

.axi-report-dot.is-surrender {
  background: #ef4444;
  box-shadow: 0 0 5px rgba(239, 68, 68, 0.7);
}

.axi-report-caret {
  font-size: 0.65rem;
  margin-left: 1px;
  transition: transform 0.2s ease;
}

.axi-afk-report-menu[open] .axi-report-caret {
  transform: rotate(180deg);
}

.axi-afk-report-popover {
  position: absolute;
  left: 0;
  right: auto;
  top: calc(100% + 6px);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(430px, calc(100vw - 32px));
  max-height: 480px;
  overflow-y: auto;
  background: #ffffff;
  border: 1.5px solid #fca5a5;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(220, 38, 38, 0.14);
  text-align: left;
  box-sizing: border-box;
}

.axi-afk-compact-table .axi-afk-report-popover {
  left: auto;
  right: 0;
}

.axi-afk-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #fee2e2;
}

.axi-afk-popover-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #991b1b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.axi-afk-popover-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.axi-afk-popover-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.axi-afk-popover-badge.is-afk {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fdba74;
}

.axi-afk-popover-badge.is-surrender {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.axi-afk-popover-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
  transition: all 0.15s ease;
}

.axi-afk-popover-close:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.axi-afk-popover-player {
  font-size: 0.82rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.axi-afk-popover-player strong {
  color: #0f172a;
  font-weight: 800;
}

.axi-afk-popover-rank {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
}

.axi-afk-popover-reasons-title,
.axi-afk-matches-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.axi-afk-popover-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.axi-afk-popover-list li {
  font-size: 0.73rem;
  font-weight: 700;
  color: #991b1b;
  background: #fef2f2;
  padding: 6px 9px;
  border-radius: 8px;
  border-left: 3px solid #ef4444;
  line-height: 1.35;
}

.axi-afk-popover-matches {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.axi-afk-matches-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.axi-afk-matches-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.axi-afk-pop-tab-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  line-height: 1.25;
  transition: all 0.15s ease;
}

.axi-afk-pop-tab-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.axi-afk-pop-tab-btn.is-active {
  background: #dc2626;
  color: #ffffff;
  border-color: #b91c1c;
  font-weight: 800;
}

.axi-afk-matches-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
}

.axi-afk-matches-list[data-active-tab="afk"] .axi-afk-pop-match-item:not(.is-afk-match) {
  display: none !important;
}

.axi-afk-matches-list[data-active-tab="surrender"] .axi-afk-pop-match-item:not(.is-surrender-match) {
  display: none !important;
}

.axi-afk-pop-match-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.axi-afk-pop-match-item.is-afk-win-row {
  background: #f0fdf4;
  border-color: #a7f3d0;
  border-left: 3px solid #10b981;
}

.axi-afk-pop-match-item.is-afk-loss-row {
  background: #fffbeb;
  border-color: #fde68a;
  border-left: 3px solid #f59e0b;
}

.axi-afk-pop-match-item.is-surr-row {
  background: #fff5f5;
  border-color: #fecaca;
  border-left: 3px solid #ef4444;
}

.axi-afk-pop-match-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.axi-afk-pop-match-top {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.axi-afk-pop-match-idx {
  font-size: 0.65rem;
  font-weight: 800;
  color: #64748b;
}

.axi-afk-pop-status,
.axi-afk-pop-mode,
.axi-afk-pop-proof {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  line-height: 1.25;
  white-space: nowrap;
}

.axi-afk-pop-status.is-afk-win {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

.axi-afk-pop-status.is-afk-loss {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.axi-afk-pop-status.is-surrender {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.axi-afk-pop-status.is-win {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.axi-afk-pop-status.is-loss {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.axi-afk-pop-status.is-draw {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #a5b4fc;
}

.axi-afk-pop-mode.is-friend {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fcd34d;
}

.axi-afk-pop-mode.is-offranked {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #c4b5fd;
}

.axi-afk-pop-mode.is-ranked {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.axi-afk-pop-proof.is-afk,
.axi-afk-pop-proof.is-surrender {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.axi-afk-pop-time {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

.axi-afk-pop-time.is-short {
  color: #b45309;
  font-weight: 800;
  background: #fffbeb;
  padding: 1px 4px;
  border-radius: 4px;
  border: 1px solid #fde68a;
}

.axi-afk-pop-match-rival {
  font-size: 0.73rem;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.axi-afk-pop-vs {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 600;
}

.axi-afk-pop-opp-rank {
  font-size: 0.65rem;
  font-weight: 800;
  color: #2563eb;
  background: #eff6ff;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid #bfdbfe;
  margin-left: 3px;
}

.axi-afk-pop-match-action {
  flex-shrink: 0;
}

.axi-afk-pop-replay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 6px;
  background: #0f172a;
  color: #ffffff !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease;
}

.axi-afk-pop-replay-btn:hover {
  background: #2563eb;
  transform: scale(1.02);
}

.axi-afk-pop-replay-btn.is-disabled {
  background: #e2e8f0;
  color: #94a3b8 !important;
  cursor: not-allowed;
}

.axi-afk-popover-footer {
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.35;
  padding-top: 6px;
  border-top: 1px dashed #fecaca;
  font-style: italic;
}

@media (max-width: 768px) {
  .axi-afk-report-popover,
  .axi-afk-compact-table .axi-afk-report-popover {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    animation: axieBotModalZoom 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    width: min(480px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: 86vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    z-index: 999999 !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.5), 0 0 0 100vmax rgba(15, 23, 42, 0.55) !important;
    border-radius: 16px !important;
    padding: 16px 14px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  @keyframes axieBotModalZoom {
    from {
      opacity: 0;
      transform: translate(-50%, -48%) scale(0.96);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
  }
}

/* ==========================================================
   UPCOMING / FUTURE ERA NOTIFICATION BANNER
   ========================================================== */
.axi-era-upcoming-container {
  padding: 40px 24px;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  margin: 10px 0;
}

.axi-upcoming-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  display: inline-block;
  animation: axiPulse 2s infinite ease-in-out;
}

.axi-upcoming-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.axi-upcoming-desc {
  font-size: 0.92rem;
  color: #64748b;
  max-width: 580px;
  margin: 0 auto 16px auto;
  line-height: 1.5;
}

.axi-upcoming-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

@keyframes axiPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ==========================================================
   REPLAY GROUP BANNERS & STREAK STEP HIGHLIGHTS
   ========================================================== */
.axi-replay-group-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  margin: 10px 0 6px 0;
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 8px;
  letter-spacing: -0.01em;
}

.axi-replay-group-banner:first-child {
  margin-top: 4px;
}

.axi-replay-group-banner.is-streak {
  background: #fee2e2;
  color: #991b1b;
  border-left: 3px solid #ef4444;
}

.axi-replay-group-banner.is-afk {
  background: #ffedd5;
  color: #9a3412;
  border-left: 3px solid #f97316;
}

.axi-replay-group-banner.is-other {
  background: #f1f5f9;
  color: #334155;
  border-left: 3px solid #64748b;
}

.axi-streak-step-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  margin-left: 4px;
}

.axi-exotic-chip.is-rival-surrender {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
}

/* ==========================================================
   BATTLE PACE BLOCK & MINI PILLS (TURN AVERAGES)
   ========================================================== */
.axi-pace-block {
  min-width: 220px;
}

.axi-pace-cards-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.axi-pace-stat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  flex: 1 1 110px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  background: #ffffff;
}

.axi-pace-stat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
}

.axi-pace-stat-card.is-win {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #a7f3d0;
}

.axi-pace-stat-card.is-loss {
  background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
  border: 1px solid #fecaca;
}

.axi-pace-stat-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.axi-pace-stat-body {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.axi-pace-stat-val {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.axi-pace-stat-card.is-win .axi-pace-stat-val {
  color: #065f46;
}

.axi-pace-stat-card.is-loss .axi-pace-stat-val {
  color: #991b1b;
}

.axi-pace-stat-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

/* Header & Card Identity Mini Turn Pills */
.axi-pace-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  cursor: help;
  transition: transform 0.15s ease;
}

.axi-pace-mini-pill:hover {
  transform: translateY(-1px);
}

.axi-pace-mini-pill.is-win {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.axi-pace-mini-pill.is-loss {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
