/* ============================================================
   styles.css — Burntboard
   Dark, sporty, editorial. Bebas Neue + Plus Jakarta Sans.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  /* colours */
  --bg:            #0D0C0B;
  --surface:       #181614;
  --surface-2:     #201E1B;
  --surface-3:     #2A2724;
  --accent:        #E8470F;
  --accent-dim:    rgba(232, 71, 15, 0.14);
  --accent-glow:   rgba(232, 71, 15, 0.30);
  --gold:          #F0A500;
  --gold-dim:      rgba(240, 165, 0, 0.18);
  --silver:        #9BA3AF;
  --silver-dim:    rgba(155, 163, 175, 0.15);
  --bronze:        #CD7F32;
  --bronze-dim:    rgba(205, 127, 50, 0.15);
  --win-color:     #22C55E;
  --win-dim:       rgba(34, 197, 94, 0.14);
  --loss-color:    #EF4444;
  --loss-dim:      rgba(239, 68, 68, 0.14);
  --text:          #EDE9E4;
  --text-muted:    #766F68;
  --text-dim:      #3A3733;
  --border:        rgba(255, 255, 255, 0.065);
  --border-strong: rgba(255, 255, 255, 0.12);

  /* spacing / shape */
  --radius:    10px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  /* shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow:    0 6px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-content {
  padding-top: 80px;
  min-height: 100vh;
}

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 64px;
  background: rgba(13, 12, 11, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--text);
  transition: color 0.2s;
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--surface-2);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #ff5520;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 15px;
  border-radius: var(--radius-lg);
  letter-spacing: 0.05em;
}

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.hero-img.loaded {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(13, 12, 11, 0.25) 0%,
      rgba(13, 12, 11, 0.45) 35%,
      rgba(13, 12, 11, 0.82) 68%,
      rgba(13, 12, 11, 1.00) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-bottom: 72px;
}

.hero-eyebrow {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(68px, 11vw, 128px);
  line-height: 0.88;
  color: var(--text);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.35s forwards;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.5s forwards;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.65s forwards;
}

/* ── Section ─────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.06em;
  color: var(--text);
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.section-link:hover {
  opacity: 0.75;
}

/* ── Scope Cards (homepage) ──────────────────────────────── */
.scopes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.scope-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 32px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.scope-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.22s ease;
}

.scope-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.scope-card:hover::before {
  background: var(--accent);
}

.scope-card--featured {
  border-color: rgba(232, 71, 15, 0.3);
  background: linear-gradient(145deg, var(--surface) 60%, rgba(232, 71, 15, 0.06));
}

.scope-card--featured::before {
  background: var(--accent);
}

.scope-card-badge {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 14px;
}

.scope-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1;
}

.scope-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 8px;
}

.scope-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Recent Matches Feed (homepage) ──────────────────────── */
.match-feed {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.match-feed-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: background 0.18s, border-color 0.18s;
  flex-wrap: wrap;
}

.match-feed-row:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.match-feed-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  width: 80px;
  flex-shrink: 0;
}

.match-feed-players {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.match-feed-winner,
.match-feed-loser {
  display: flex;
  align-items: center;
  gap: 7px;
  transition: opacity 0.2s;
}

.match-feed-winner:hover,
.match-feed-loser:hover {
  opacity: 0.75;
}

.match-feed-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
}

.match-feed-avatar--loser {
  opacity: 0.55;
}

.match-feed-player-name {
  font-size: 13px;
  font-weight: 600;
}

.match-feed-loser .match-feed-player-name {
  color: var(--text-muted);
}

.match-feed-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--text);
  padding: 0 4px;
}

.match-feed-notes {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-left: auto;
  max-width: 280px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ── Page Header ─────────────────────────────────────────── */
.page-header {
  padding: 48px 0 36px;
}

.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 7vw, 80px);
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 6px;
}

.page-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Leaderboard Controls ────────────────────────────────── */
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
  gap: 2px;
}

.tab {
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  background: var(--accent);
  color: #fff;
}

.mode-toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
  gap: 2px;
}

.mode-btn {
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.mode-btn:hover {
  color: var(--text);
}

.mode-btn.active {
  background: var(--surface-3);
  color: var(--text);
}

/* ── Leaderboard List ────────────────────────────────────── */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 60px;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, background 0.18s, border-left-color 0.18s, box-shadow 0.18s;
  opacity: 0;
  animation: fadeUp 0.45s ease forwards;
}

.lb-row:hover {
  background: var(--surface-2);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

/* Rank colour borders */
.lb-row.rank-1 { border-left-color: var(--gold); }
.lb-row.rank-2 { border-left-color: var(--silver); }
.lb-row.rank-3 { border-left-color: var(--bronze); }
.lb-row:not(.rank-1):not(.rank-2):not(.rank-3):hover {
  border-left-color: var(--accent);
}

.lb-rank {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  line-height: 1;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
  color: var(--text-dim);
}

.lb-rank.rank-gold   { color: var(--gold);   font-size: 28px; }
.lb-rank.rank-silver { color: var(--silver); }
.lb-rank.rank-bronze { color: var(--bronze); }

.lb-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-strong);
}

.lb-row.rank-1 .lb-avatar { border-color: var(--gold); }
.lb-row.rank-2 .lb-avatar { border-color: var(--silver); }
.lb-row.rank-3 .lb-avatar { border-color: var(--bronze); }

.lb-info {
  flex: 1;
  min-width: 0;
}

.lb-name {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-username {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.lb-stats {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-shrink: 0;
}

.lb-stat {
  text-align: center;
  min-width: 44px;
}

.lb-stat-value {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  line-height: 1;
  color: var(--text);
}

.lb-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-top: 2px;
}

.lb-stat--primary .lb-stat-value {
  color: var(--accent);
  font-size: 26px;
}

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px 100px;
}

.empty-state-icon {
  font-size: 52px;
  margin-bottom: 20px;
  line-height: 1;
}

.empty-state-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 10px;
}

.empty-state-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 300px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Loading State ───────────────────────────────────────── */
.loading-state {
  padding: 60px 0;
  text-align: center;
}

.loading-dots {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 16px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

.loading-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Profile Page ────────────────────────────────────────── */
.profile-header-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 20px;
  animation: fadeUp 0.5s ease forwards;
  opacity: 0;
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-strong);
}

.profile-rank-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.profile-identity {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 4px;
}

.profile-username {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 14px;
}

.profile-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 480px;
}

.profile-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 12px;
  transition: color 0.2s, border-color 0.2s;
}

.social-link:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

/* ── Stats Grid ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  animation: fadeUp 0.5s ease 0.1s forwards;
  opacity: 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  transition: border-color 0.2s;
}

.stat-card:hover {
  border-color: var(--border-strong);
}

.stat-value {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 50px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-value.accent { color: var(--accent); }
.stat-value.win    { color: var(--win-color); }
.stat-value.loss   { color: var(--loss-color); }

.stat-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ── Standings Row ───────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.standings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 36px;
  animation: fadeUp 0.5s ease 0.2s forwards;
  opacity: 0;
}

.standing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
}

.standing-scope {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.standing-rank {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  line-height: 1;
  margin-bottom: 2px;
}

.standing-rank.rank-gold   { color: var(--gold); }
.standing-rank.rank-silver { color: var(--silver); }
.standing-rank.rank-bronze { color: var(--bronze); }
.standing-rank.rank-other  { color: var(--text); }
.standing-rank.rank-none   { color: var(--text-dim); font-size: 32px; }

.standing-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Match History ───────────────────────────────────────── */
.match-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeUp 0.5s ease 0.3s forwards;
  opacity: 0;
}

.match-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.18s;
  flex-wrap: wrap;
}

.match-item:hover {
  background: var(--surface-2);
}

.match-result-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 24px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.match-result-badge.win {
  background: var(--win-dim);
  color: var(--win-color);
}

.match-result-badge.loss {
  background: var(--loss-dim);
  color: var(--loss-color);
}

.match-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 19px;
  letter-spacing: 0.04em;
  min-width: 52px;
  flex-shrink: 0;
}

.match-vs-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.match-vs-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.match-opponent-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.match-opponent-link:hover {
  opacity: 0.7;
}

.match-opponent-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.match-notes {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  max-width: 220px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.match-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Profile Not Found ───────────────────────────────────── */
.not-found {
  text-align: center;
  padding: 100px 20px;
}

.not-found-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.not-found-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.footer-brand span {
  color: var(--accent);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 0.25; transform: scale(0.9); }
  50%       { opacity: 1;    transform: scale(1.1); }
}

/* ── Utility ─────────────────────────────────────────────── */
.text-accent  { color: var(--accent); }
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--text-muted); }
.font-display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.06em; }

.profile-section {
  margin-bottom: 32px;
}

.profile-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 820px) {
  .scopes-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .scope-card {
    padding: 22px 20px 24px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lb-stats {
    gap: 12px;
  }

  .match-feed-notes {
    display: none;
  }

  .profile-header-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 24px;
  }

  .profile-bio {
    max-width: 100%;
  }

  .profile-socials {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: clamp(52px, 15vw, 90px);
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .tabs, .mode-toggle {
    justify-content: center;
  }

  .lb-row {
    padding: 12px 14px;
    gap: 10px;
  }

  .lb-stats {
    gap: 10px;
  }

  .lb-stat:nth-child(3) {
    display: none; /* hide win % on small screens */
  }

  .lb-stat-value { font-size: 18px; }
  .lb-stat--primary .lb-stat-value { font-size: 20px; }

  .standings-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .standing-rank {
    font-size: 36px;
  }

  .match-notes {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}
