@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg: #08090d;
  --surface: #0f1118;
  --surface2: #151820;
  --border: #1e2133;
  --gold: #c89b3c;
  --gold2: #f0d060;
  --blue: #2a6dc2;
  --blue-light: #4a9fff;
  --red: #c53030;
  --red-light: #ff5555;
  --green: #2ecc71;
  --text: #e8e0d0;
  --muted: #5a6070;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  padding: 0;
}

/* ===== BACKGROUND EFFECTS ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(42,109,194,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 90% 90%, rgba(200,155,60,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104'%3E%3Cpolygon points='30,2 58,17 58,47 30,62 2,47 2,17' fill='none' stroke='%231e2133' stroke-width='0.5'/%3E%3Cpolygon points='30,54 58,69 58,99 30,114 2,99 2,69' fill='none' stroke='%231e2133' stroke-width='0.5'/%3E%3Cpolygon points='0,28 28,13 28,43 0,58' fill='none' stroke='%231e2133' stroke-width='0.5'/%3E%3Cpolygon points='60,28 88,13 88,43 60,58' fill='none' stroke='%231e2133' stroke-width='0.5'/%3E%3C/svg%3E");
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

nav, section, header, footer, h1, h2, .table-container, .rules-container,
.section-header-container, .stats-container, .chart-wrapper,
.team-filters, #countdown-container, .modal-champ-unique, #individualEvoLegend {
  position: relative;
  z-index: 1;
}

/* ===== NAV ===== */
.recap-nav {
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 0;
  background: rgba(8, 9, 13, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.btn-nav {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 18px 28px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-nav:hover {
  color: var(--text);
  background: rgba(200, 155, 60, 0.04);
}

.btn-nav.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ===== HEADINGS ===== */
h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  text-align: center;
  letter-spacing: 4px;
  color: var(--text);
  padding: 48px 0 24px;
  line-height: 1;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: 3px;
  color: var(--text);
  margin-bottom: 24px;
  text-align: center;
}

/* ===== TABLE ===== */
.table-container {
  display: flex;
  justify-content: center;
  margin: 32px auto 0;
  max-width: 1750px;
  padding: 0 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  table-layout: fixed;
}

th, td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: center;
  vertical-align: middle;
  font-family: var(--font-body);
  font-size: 0.95em;
}

td {
  height: 75px;
  background: var(--surface);
  color: var(--text);
  transition: background 0.15s;
}

th {
  background: var(--surface2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  height: 46px;
}

th[data-column] {
  user-select: none;
  cursor: pointer;
  color: var(--text);
}

th[data-column]:hover { color: var(--gold); }

/* ===== TEAM ROWS ===== */
.team-blue td:first-child { border-left: 3px solid var(--blue-light); }
.team-blue td { background: rgba(74, 159, 255, 0.02); }
.team-blue:hover td { background: rgba(74, 159, 255, 0.06); }

.team-red td:first-child { border-left: 3px solid var(--red-light); }
.team-red td { background: rgba(255, 85, 85, 0.02); }
.team-red:hover td { background: rgba(255, 85, 85, 0.06); }

.team-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 2px 6px;
  margin-right: 6px;
  letter-spacing: 1px;
}

.tag-blue {
  background: rgba(74, 159, 255, 0.15);
  color: var(--blue-light);
  border: 1px solid rgba(74, 159, 255, 0.4);
}
.tag-red {
  background: rgba(255, 85, 85, 0.15);
  color: var(--red-light);
  border: 1px solid rgba(255, 85, 85, 0.4);
}

/* ===== RANK CELL ===== */
.rank-cell img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  transform: scale(1.8);
  margin: -10px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.15));
  display: block;
}
.rank-cell span { font-weight: bold; white-space: nowrap; }

/* ===== INGAME BADGE ===== */
@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.03); }
}

.ingame-badge {
  color: var(--red-light);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  background: rgba(255, 85, 85, 0.1);
  padding: 3px 8px;
  border: 1px solid rgba(255, 85, 85, 0.35);
  animation: pulse-red 1.5s infinite ease-in-out;
  white-space: nowrap;
}
.ingame-dot { margin-right: 4px; font-size: 1.1em; line-height: 1; }

/* ===== DPM LINK ===== */
.dpm-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--surface2);
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.dpm-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200, 155, 60, 0.05);
}

/* ===== SORT ICON ===== */
.sort-icon {
  display: inline-block;
  font-size: 0.7em;
  vertical-align: middle;
  margin-left: 4px;
  opacity: 0.4;
  transform: translateY(-3px);
}

/* ===== COUNTDOWN ===== */
#countdown-container {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  text-align: center;
  margin: 0 auto 32px;
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.countdown-title {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.time-segment { display: flex; flex-direction: column; min-width: 80px; }
.time-segment span {
  font-family: var(--font-display);
  font-size: 4em;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 2px;
}
.time-segment .label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ===== TEAM FILTERS ===== */
.team-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 9px 20px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: rgba(200,155,60,0.1); border-color: var(--gold); color: var(--gold); }
.filter-btn.btn-blue { border-color: rgba(74,159,255,0.3); color: var(--blue-light); }
.filter-btn.btn-blue:hover, .filter-btn.btn-blue.active { background: rgba(74,159,255,0.1); border-color: var(--blue-light); }
.filter-btn.btn-red { border-color: rgba(255,85,85,0.3); color: var(--red-light); }
.filter-btn.btn-red:hover, .filter-btn.btn-red.active { background: rgba(255,85,85,0.1); border-color: var(--red-light); }

/* ===== SECTION HEADERS ===== */
.section-header-container {
  max-width: 1750px;
  margin: 64px auto 16px;
  padding: 0 20px;
}

.rules-header {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 32px);
  letter-spacing: 3px;
  color: var(--text);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.chart-wrapper, .table-container { margin-top: 0 !important; }

/* ===== RULES SECTION ===== */
.rules-container {
  max-width: 1750px;
  margin: 60px auto;
  padding: 0 20px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2px;
}

.rule-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.rule-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 0.25s;
}
.rule-card:hover::before { transform: scaleY(1); }
.rule-card:hover { background: var(--surface2); }

.rule-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.rule-card ul { padding-left: 18px; margin: 0; }
.rule-card li { color: var(--muted); margin-bottom: 8px; font-size: 14px; line-height: 1.6; }
.rule-card strong { color: var(--text); }
.rule-card p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 8px; }

.highlight-red {
  border-color: rgba(255, 85, 85, 0.3);
  background: rgba(255, 85, 85, 0.03);
}
.highlight-red::before { background: var(--red-light); }
.highlight-red h3 { color: var(--red-light); border-color: rgba(255,85,85,0.2); }

.highlight-blue {
  border-color: rgba(74, 159, 255, 0.3);
  background: rgba(74, 159, 255, 0.03);
}
.highlight-blue::before { background: var(--blue-light); }

.special-rule {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.3);
  border-left: 2px solid var(--gold);
  font-style: italic;
  font-size: 13px;
  color: var(--text);
}

/* ===== CHAMPION STATS ===== */
.champ-history-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0;
  width: 100%;
  justify-content: center;
}

.champ-history-item {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px;
  width: 230px;
  min-height: 75px;
  border-left: 3px solid var(--gold);
  box-sizing: border-box;
  transition: all 0.2s;
  cursor: pointer;
}
.champ-history-item:hover { background: var(--surface2); border-left-color: var(--gold2); transform: translateX(4px); }

.champ-history-img {
  width: 52px; height: 52px;
  border: 1px solid var(--border);
  margin-right: 12px;
  object-fit: cover;
}

.champ-history-details { display: flex; flex-direction: column; justify-content: center; overflow: hidden; width: 100%; }
.champ-history-name, .champ-history-master { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.champ-history-name { font-family: var(--font-display); font-size: 15px; letter-spacing: 1px; color: var(--text); }
.champ-history-stats { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 3px; }
.champ-history-master { font-family: var(--font-mono); font-size: 11px; color: var(--gold); margin-top: 4px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.high-wr { border-left-color: var(--green); }
.low-wr { border-left-color: var(--red-light); }

/* ===== MODAL ===== */
.modal-champ-unique {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
}

.modal-content-champ {
  background: var(--surface);
  margin: 10% auto;
  padding: 32px;
  border: 1px solid var(--gold);
  width: 90%;
  max-width: 440px;
  position: relative;
}

.close-modal-champ {
  position: absolute;
  right: 20px; top: 12px;
  font-size: 28px;
  cursor: pointer;
  color: var(--gold);
  font-family: var(--font-mono);
}

#modalBody div::-webkit-scrollbar { width: 3px; }
#modalBody div::-webkit-scrollbar-thumb { background: var(--gold); }

.modal-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.modal-stats-row span:last-child { color: var(--text); }

/* ===== LANE BADGE ===== */
.lane-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 4px;
}

/* ===== #lpChart ===== */
#lpChart { min-height: 750px; }

/* ===== INDIVIDUAL EVO LEGEND ===== */
#individualEvoLegend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 16px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

#individualEvoLegend > div { flex: 0 1 calc(18% - 8px); min-width: 120px; }
#individualEvoLegend input[type="checkbox"] { display: none; }

#individualEvoLegend label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  width: 100%;
}

#individualEvoLegend input[type="checkbox"]:checked + label {
  color: currentColor;
  border-color: currentColor;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

#individualEvoLegend input[type="checkbox"]:not(:checked) + label {
  opacity: 0.25;
  filter: grayscale(1);
}

/* ===== DUO GRID ===== */
.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px;
  border-left: 3px solid var(--border);
  transition: all 0.2s;
}
.match-card:hover { background: var(--surface2); border-left-color: var(--gold); }
.match-date { font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-bottom: 8px; display: block; letter-spacing: 1px; }
.match-players { font-size: 14px; margin-bottom: 8px; color: var(--text); }
.match-status { font-family: var(--font-mono); font-size: 11px; font-weight: bold; text-align: right; letter-spacing: 1px; }

/* ===== RECAP PAGE ===== */
.recap-page { background: var(--bg); }
.main-container { max-width: 1200px; margin: 0 auto; padding: 0 40px 80px; }

.glitch-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 100px);
  text-align: center;
  letter-spacing: 6px;
  color: var(--text);
  padding: 48px 0 0;
  line-height: 1;
  position: relative;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: 4px;
  color: var(--text);
  margin-top: 60px;
  margin-bottom: 0;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-title::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.section-title i { color: var(--gold); font-size: 0.75em; }

/* ===== GLOBAL STATS (index.html) ===== */
.global-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  margin-top: 24px;
}

.global-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.global-stat-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.global-stat-card:hover::before { transform: scaleX(1); }
.global-stat-card:hover { background: var(--surface2); }
.global-stat-card i { font-size: 1.4rem; margin-bottom: 12px; }
.stat-label { font-family: var(--font-mono); font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; }
.stat-number { font-family: var(--font-display); font-size: 1.8rem; color: var(--text); margin-top: 6px; letter-spacing: 1px; }
.stat-info { display: flex; flex-direction: column; }

/* ===== RECORDS ===== */
.records-container { margin-top: 0; }
.records-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 24px;
}

.record-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.2s;
}
.record-card:hover { background: var(--surface2); }

.record-badge {
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
  padding: 5px 10px;
  flex-shrink: 0;
}

.rec-title { display: block; font-family: var(--font-mono); font-size: 9px; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; }
.rec-name { display: block; font-family: var(--font-display); font-size: 22px; color: var(--text); letter-spacing: 1px; margin: 3px 0; }
.rec-value { display: block; font-family: var(--font-mono); font-size: 13px; color: var(--gold); font-weight: 600; }
.rec-desc { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ===== TOP CHAMPIONS (index.html) ===== */
.champions-section { margin-top: 0; }

.champ-recap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 24px;
}

.champ-card-premium {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 12px;
  transition: all 0.25s;
}
.champ-card-premium:hover {
  border-color: rgba(200, 155, 60, 0.4);
  background: var(--surface2);
  transform: translateX(6px);
}

.champ-image-container {
  width: 56px; height: 56px;
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}
.champ-image-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.champ-card-premium:hover .champ-image-container img { transform: scale(1.1); }

.champ-details { display: flex; align-items: center; margin-left: 14px; flex-grow: 1; }
.champ-rank { font-family: var(--font-display); font-size: 2rem; color: rgba(200, 155, 60, 0.15); margin-right: 12px; }
.champ-text { display: flex; flex-direction: column; }
.champ-name { font-family: var(--font-display); font-size: 16px; color: var(--text); letter-spacing: 2px; text-transform: uppercase; }
.champ-count { font-family: var(--font-mono); color: var(--gold); font-size: 11px; font-weight: 600; margin-top: 2px; }
.champ-count small { color: var(--muted); font-size: 9px; }

.champ-badge {
  position: absolute;
  top: -8px; right: 10px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 2px 8px;
  z-index: 5;
  box-shadow: 0 0 12px rgba(200, 170, 110, 0.4);
}

/* ===== PLAYERS PAGE ===== */
.players-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2px;
  margin-top: 32px;
}

.player-selection-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.player-selection-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.player-selection-card:hover::before { transform: scaleX(1); }
.player-selection-card:hover { background: var(--surface2); }

.p-card-name { font-family: var(--font-display); font-size: 20px; letter-spacing: 2px; color: var(--text); margin-bottom: 8px; }
.p-card-games { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }

/* Player detail */
.detail-container {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  margin-top: 24px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
  margin-bottom: 28px;
}

.player-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  padding: 4px 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 10px;
}

.personal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  margin-bottom: 32px;
}

.p-stat-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
}
.p-stat-card:hover { background: rgba(200, 155, 60, 0.04); }

.p-label { font-family: var(--font-mono); font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 3px; }
.p-value { font-family: var(--font-display); font-size: 2.4rem; letter-spacing: 2px; margin: 12px 0; color: var(--text); }
.p-sub { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 1px; }

.btn-back {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 18px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 28px;
  transition: 0.2s;
}
.btn-back:hover { background: var(--gold); color: var(--bg); }

/* Rank progression */
.progression-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 28px;
  position: relative;
  overflow: hidden;
  margin: 0;
}
.progression-header {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  text-align: center;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.rank-display { display: flex; justify-content: space-around; align-items: center; gap: 20px; }
.rank-item { display: flex; flex-direction: column; align-items: center; width: 150px; }
.rank-badge-container {
  position: relative;
  width: 100px; height: 100px;
  overflow: visible;
  display: flex; justify-content: center; align-items: center;
}
.rank-emblem {
  width: 350px; height: 250px;
  max-width: none;
  position: absolute;
  z-index: 2;
  transform: translateY(-5px);
}
.rank-glow {
  position: absolute;
  width: 80px; height: 80px;
  background: var(--gold);
  filter: blur(40px);
  opacity: 0.12;
  border-radius: 50%;
}
.rank-info { text-align: center; margin-top: 14px; }
.rank-status { display: block; font-family: var(--font-mono); font-size: 9px; color: var(--muted); letter-spacing: 2px; margin-bottom: 4px; }
.rank-tier { font-family: var(--font-display); font-size: 18px; color: var(--text); letter-spacing: 2px; }
.rank-separator { display: flex; align-items: center; color: var(--gold); font-size: 1.3rem; }
.arrow-line { width: 50px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* Chart container */
.chart-container { position: relative; height: 300px; width: 100%; max-width: 800px; margin: 20px auto; }
#lpChart { display: block; width: 100% !important; height: 100% !important; }

/* ===== EVO STATS TABLE ===== */
.player-table { width: 100%; }

/* ===== FOOTER ===== */
.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 60px 0 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ===== ANIMATIONS ===== */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

td img { display: inline-block; vertical-align: middle; }