/* RaM-spezifisch: Logo im Hero (Leaderboards + Statistiken) + zweispaltige
   Profil-Tabellen (Autos & Bestzeiten | RaM Training Hotlaps, gleich breit). */

.hero__titlewrap {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.ram-logo {
  height: 74px;
  width: auto;
  max-width: min(60vw, 340px);
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.55));
}

.ram-logo--sm {
  height: 54px;
}

@media (max-width: 640px) {
  .ram-logo { height: 52px; }
  .ram-logo--sm { height: 42px; }
}

/* Fahrerprofil: zwei gleich breite Tabellen nebeneinander (stapeln auf Mobil). */
.profile-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.profile-col {
  min-width: 0;
}

@media (max-width: 900px) {
  .profile-tables { grid-template-columns: 1fr; }
}

/* Gesperrt (RaM nicht freigeschaltet) -> nur die Autos-Spalte, volle Breite. */
.profile-tables--single {
  grid-template-columns: 1fr;
}

.lb__empty--soft {
  opacity: 0.6;
  font-size: 0.95rem;
  padding: 22px 12px;
}

/* Work-in-Progress-Platzhalter (RaM-Seiten für Nicht-Freigeschaltete). */
.wip {
  max-width: 620px;
  margin: 0 auto;
  padding: 90px 20px;
  text-align: center;
}

.wip__badge {
  display: inline-block;
  margin-bottom: 26px;
  padding: 8px 16px;
  border: 1px solid rgba(182, 255, 60, 0.35);
  border-radius: 999px;
  background: rgba(182, 255, 60, 0.06);
  color: #b6ff3c;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wip__title {
  margin: 0 0 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  background: linear-gradient(90deg, var(--cyan, #00e5ff), var(--magenta, #ff2e97));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wip__sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
}

/* ---- Trenner Tourist | RaM in der Topnav ---- */
.topnav__sep {
  width: 1px;
  height: 20px;
  margin: 0 4px;
  background: var(--line-strong, rgba(255, 255, 255, 0.16));
  display: inline-block;
  align-self: center;
}

/* ---- RaM-Hub: Reiter-Leiste ---- */
.ramtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  padding: 6px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.ramtab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 9px 16px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.ramtab:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.ramtab.active {
  color: #06202a;
  font-weight: 700;
  background: linear-gradient(92deg, var(--cyan, #00e5ff), var(--magenta, #ff2e97));
}

/* ---- Monogramm-Avatar (Meisterschaft: keine driver_id -> kein Discord-Avatar) ---- */
.mono-av {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  font-weight: 800;
  color: #0a0b10;
  background: radial-gradient(circle at 30% 25%, var(--accent, var(--cyan, #00e5ff)), #0a0b10 130%);
  border: 1px solid var(--line-strong, rgba(255, 255, 255, 0.14));
}

/* ---- Meisterschaft: Podium ---- */
.champ-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}
@media (max-width: 620px) { .champ-podium { grid-template-columns: 1fr; } }
.champ-pod {
  position: relative;
  overflow: hidden;
  padding: 20px 18px;
  border-radius: 16px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}
.champ-pod::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); }
.champ-pod__medal { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; letter-spacing: 0.1em; color: var(--accent); }
.champ-pod__av { width: 48px; height: 48px; font-size: 1.1rem; margin: 12px 0; }
.champ-pod__name { font-weight: 700; font-size: 1.14rem; }
.champ-pod__pts { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; font-size: 2rem; font-weight: 700; color: var(--accent); margin-top: 4px; }
.champ-pod__pts small { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); font-weight: 400; }

/* ---- Meisterschaft: Tabelle ---- */
.champ-list { display: flex; flex-direction: column; gap: 6px; }
.champ-row {
  display: grid;
  grid-template-columns: 34px 34px 1fr minmax(60px, 170px) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.07));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.15s;
}
.champ-row:hover { background: rgba(34, 211, 238, 0.05); }
.champ-row--top { border-color: rgba(255, 210, 74, 0.3); }
.champ-row__pos { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.5); text-align: right; }
.champ-row--top .champ-row__pos { color: var(--gold, #ffd24a); font-weight: 700; }
.champ-row__av { width: 34px; height: 34px; font-size: 0.82rem; --accent: var(--cyan, #00e5ff); }
.champ-row__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.champ-row__bar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.champ-row__bar > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--cyan, #00e5ff), var(--magenta, #ff2e97)); }
.champ-row__pts { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05rem; color: var(--lime, #b6ff3c); text-align: right; min-width: 44px; }
@media (max-width: 560px) {
  .champ-row { grid-template-columns: 28px 30px 1fr auto; }
  .champ-row__bar { display: none; }
}

.champ-note {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px dashed var(--line-strong, rgba(255, 255, 255, 0.14));
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  line-height: 1.5;
}
.champ-note span { display: block; margin-top: 6px; color: rgba(255, 255, 255, 0.4); font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; }

/* ---- RaM-Statistik: Season-Rekord-Kacheln ---- */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}
.rec {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}
.rec__k { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.rec__big { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; font-size: 2rem; font-weight: 700; color: var(--accent, var(--cyan, #00e5ff)); line-height: 1; margin-top: 12px; }
.rec__v { font-weight: 700; font-size: 1.02rem; margin-top: 8px; }
.rec__sub { color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; margin-top: 2px; }
