/* =============================================================
   PROFILE
   ============================================================= */
.profile-page { padding: 0; }
/* Build-/Debug-Footer am Ende des Profil-Tabs. */
.profile-footer {
  margin-top: var(--s-6);
  padding: var(--s-3) 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--muted);
  letter-spacing: var(--tracking-wide);
}
/* Admin-Badge erscheint nur fuer Admin-Accounts (per JS gesetzt). */
.profile-footer .is-admin {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--primary);
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.profile-hero {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 28px 18px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.profile-avatar-wrap { position: relative; }
.profile-avatar {
  width: 88px; height: 88px; border-radius: var(--r-xl);
  background: var(--surface2); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  transition: box-shadow var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease);
}
.profile-stage-badge {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  font-family: var(--font-display); font-size: 10px; letter-spacing: var(--tracking-wide);
  padding: 3px 10px; border-radius: var(--r-sm); white-space: nowrap;
  text-transform: uppercase;
}
/* Erfolge-Karte — ersetzt die alte Stage-Hero. Avatar + antippbarer Erfolge-
   Einstieg (oeffnet die Erfolge-Seite). */
.profile-ach-hero {
  display: flex; align-items: center; gap: var(--s-4);
  width: calc(100% - 2 * var(--s-5)); margin: var(--s-5) var(--s-5) 0;
  background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--primary); border-radius: var(--r-lg);
  padding: var(--s-4); text-align: left; color: var(--text); cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.profile-ach-hero:hover { background: var(--surface2); border-color: var(--border-strong); }
.profile-ach-hero:active { transform: translateY(1px); }
.profile-ach-hero .profile-avatar { width: 60px; height: 60px; font-size: 2rem; flex-shrink: 0; }
.profile-ach-hero-main { flex: 1; min-width: 0; }
.profile-ach-hero-title { font-family: var(--font-display); font-size: var(--fs-h3); }
.profile-ach-hero-sub { font-size: var(--fs-small); color: var(--muted); margin-top: 2px; }
.profile-ach-hero-badge {
  flex-shrink: 0; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-full);
  background: var(--danger, #ef4444); color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.profile-ach-hero-badge[hidden] { display: none; }
.profile-ach-hero-arrow { font-size: 24px; color: var(--muted-deep); flex-shrink: 0; }

.profile-stats { padding: var(--s-5) var(--s-5) 0; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-bottom: var(--s-5); }
.stat-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--s-4) 14px;
}
.stat-box-clickable {
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.stat-box-clickable:hover,
.stat-box-clickable:focus-visible {
  background: var(--surface2);
  border-color: var(--border-strong);
  outline: none;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: var(--fs-h1); line-height: 1; color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.stat-lbl {
  font-family: var(--font-display);
  font-size: var(--fs-micro); color: var(--muted);
  text-transform: uppercase; letter-spacing: var(--tracking-wide);
  margin-top: var(--s-1);
}
.profile-section { padding: 0 var(--s-5) var(--s-5); }
.profile-section-title {
  font-family: var(--font-display);
  font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: var(--tracking-wider);
  color: var(--muted); margin-bottom: var(--s-3);
}
.theme-row { display: flex; gap: var(--s-2); }
.theme-swatch {
  flex: 1; padding: var(--s-3) var(--s-2); border-radius: var(--r-md);
  border: 2px solid var(--border);
  transition: border-color var(--dur-base) var(--ease);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--surface);
}
.theme-swatch.active { border-color: var(--primary); }
.swatch-dots { display: flex; gap: 3px; }
.swatch-dot { width: 10px; height: 10px; border-radius: 50%; }
.swatch-name {
  font-family: var(--font-display);
  font-size: var(--fs-micro); letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--muted);
}
