:root {
  --bg: #131F24;
  --panel: #202F36;
  --panel-border: #2D3748;
  --text: #F7FAFC;
  --muted: #A0AEC0;
  --accent: #58CC02;
  --accent-2: #89E219;
  --accent-light: rgba(88, 204, 2, 0.2);
  --accent-teal: #1CB0F6;
  --accent-blue: #4A4AFA;
  --success: #58CC02;
  --danger: #FF4B4B;
  --warning: #FFC800;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --radius: 12px;
  --sidebar-width: 256px;
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  font-family: Nunito, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

/* ---- Navbar: sidebar on desktop, dropdown on mobile ---- */

/* Content area: offset for fixed sidebar on desktop; use body padding so content can center */
@media (min-width: 901px) {
  body {
    padding-left: var(--sidebar-width);
  }
}

/* Desktop: fixed left sidebar, always visible when scrolling */
.site-nav-sidebar {
  display: none;
}
@media (min-width: 901px) {
  .site-nav-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg);
    border-right: 1px solid var(--panel-border);
    z-index: 100;
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
  }
  .site-nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.02em;
    padding: 32px 0 30px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .site-nav-logo:hover { color: var(--accent-2); }
  .site-nav-logo-img-desktop {
    width: 60px;
    height: 65px;
  }
  .site-nav-title {
    width: 140px;
    height: 30px;
    display: flex;
    align-items: center;
    font-size: 26px;
    line-height: 1;
    padding: 0;
  }
  .site-nav-sidebar .site-nav-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 10px;
  }
  .site-nav-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    border: 2px solid transparent;
  }
  .site-nav-sidebar .nav-link:hover { background: var(--accent-light); color: var(--text); }
  .site-nav-sidebar .nav-link.active {
    color: var(--accent-teal);
    background: var(--panel);
    border-color: var(--accent-teal);
  }
  .nav-icon-svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-icon-svg svg { width: 32px; height: 32px; }
  .site-nav-sidebar .nav-link .nav-icon-svg { color: inherit; }
  .site-nav-sidebar .nav-link.active .nav-icon-svg { color: var(--accent-teal); }
  .nav-account-sidebar {
    position: relative;
    padding: 12px 10px 20px;
    margin-top: auto;
  }
  .nav-account-sidebar .nav-account-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
  }
  .nav-account-sidebar .nav-account-btn svg { width: 22px; height: 22px; }
  .nav-cta-sidebar {
    margin: 8px 10px 16px;
    text-align: center;
    display: block;
  }
}

/* Mobile: top bar (hidden on desktop) */
.mobile-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--panel-border);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 901px) {
  .mobile-nav-bar { display: none; }
}
.mobile-nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-nav-logo:hover { color: var(--accent-2); }
.site-nav-logo-img {
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
.site-nav-logo-img-mobile {
  height: 65px;
  width: 60px;
  max-height: 48px;
  object-fit: contain;
}
@media (max-width: 900px) {
  .site-nav-logo-img-mobile {
    max-height: 44px;
    width: auto;
    height: auto;
  }
}
.site-nav-title-mobile {
  width: 140px;
  height: 30px;
  display: flex;
  align-items: center;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0;
}
@media (max-width: 900px) {
  .site-nav-title-mobile {
    max-width: 110px;
    font-size: 1.25rem;
  }
}
.nav-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-hamburger svg { width: 24px; height: 24px; }

/* Mobile: dropdown overlay */
.nav-dropdown-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.nav-dropdown-overlay.open {
  display: block;
  pointer-events: auto;
}
.nav-dropdown-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s;
}
.nav-dropdown-overlay.open .nav-dropdown-backdrop {
  opacity: 1;
}
.nav-dropdown-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  max-width: 100%;
  height: 100%;
  background: var(--panel);
  border-left: 1px solid var(--panel-border);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.nav-dropdown-overlay.open .nav-dropdown-panel {
  transform: translateX(0);
}
.nav-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--panel-border);
}
.nav-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-close svg { width: 24px; height: 24px; }
.nav-dropdown-links {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 4px;
}
.nav-dropdown-links .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border: 2px solid transparent;
  min-height: 52px;
}
.nav-dropdown-links .nav-link:hover { background: var(--accent-light); color: var(--text); }
.nav-dropdown-links .nav-link.active {
  color: var(--accent-teal);
  background: var(--panel);
  border-color: var(--accent-teal);
}
.nav-dropdown-links .nav-icon-svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.nav-dropdown-links .nav-icon-svg svg { width: 32px; height: 32px; }
.nav-account-dropdown-inline {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--panel-border);
}
.nav-account-dropdown-inline .pts-label {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  border-radius: 8px;
  background: var(--accent-light);
  margin-bottom: 8px;
}
.nav-account-dropdown-inline a {
  display: block;
  padding: 12px 14px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 8px;
}
.nav-account-dropdown-inline a:hover { background: var(--bg); color: var(--accent); }
.nav-cta-mobile {
  margin-top: 16px;
  background: var(--accent-blue);
  color: #fff !important;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  display: block;
}
.nav-cta-mobile:hover { background: #5C5CFA; color: #fff !important; }

/* Account dropdown (desktop sidebar) */
.nav-account-dropdown {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 6px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  min-width: 170px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.nav-account.open .nav-account-dropdown { display: block; }
.nav-account-dropdown .pts-label {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  border-bottom: 1px solid var(--panel-border);
  background: var(--accent-light);
}
.nav-account-dropdown a {
  display: block;
  padding: 12px 14px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.nav-account-dropdown a:hover { background: var(--bg); color: var(--accent); }
.nav-cta {
  background: var(--accent-blue);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s;
  text-decoration: none;
}
.nav-cta:hover { background: #5C5CFA; color: #fff !important; }

/* ---- Layout ---- */
.app {
  max-width: 1150px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 48px;
  overflow-x: hidden;
}
/* Lecture page: mobile-first with safe-area for notched devices */
.app.lecture-page {
  max-width: 100%;
  padding: 12px 12px 32px;
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}
@media (min-width: 480px) {
  .app.lecture-page {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
}
@media (min-width: 640px) {
  .app.lecture-page {
    max-width: 1150px;
    padding: 24px 16px 48px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: max(48px, env(safe-area-inset-bottom));
  }
}

.hero { margin-bottom: 8px; }
.hero h1 { margin: 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.hero p { color: var(--muted); margin-top: 6px; font-size: 0.95rem; }

.panel {
  margin-top: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  overflow-x: hidden;
}

.lecture-grid > div {
  min-width: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--panel-border); border-color: var(--muted); }
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.outline {
  background: transparent;
  border: 1px solid var(--panel-border);
  color: var(--text);
}
.btn.outline:hover { background: var(--panel-border); color: var(--text); }

/* ---- Forms ---- */
label {
  display: block;
  margin: 12px 0 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-light);
}

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

.actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: var(--text); background: var(--bg); }
.tab.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tab-content { display: none; }
.tab-content.is-active { display: block; }

/* ---- Quiz option buttons ---- */
.option-btn {
  display: block;
  width: 100%;
  text-align: left;
  border: 2px solid var(--panel-border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  min-height: 52px;
  transition: border-color 0.15s, background 0.15s;
}
.option-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-light);
}
.option-btn:disabled { cursor: default; opacity: 0.7; }
.option-btn.correct { border-color: var(--success); background: rgba(88, 204, 2, 0.25); color: var(--text); }
.option-btn.wrong, .option-btn.incorrect { border-color: var(--danger); background: rgba(255, 75, 75, 0.2); opacity: 0.7; color: var(--text); }

/* Contest colored option buttons (dark theme) */
.option-btn.opt-0 { border-color: #FF6B6B; background: rgba(255, 107, 107, 0.2); }
.option-btn.opt-1 { border-color: #1CB0F6; background: rgba(28, 176, 246, 0.2); }
.option-btn.opt-2 { border-color: #FFC800; background: rgba(255, 200, 0, 0.2); }
.option-btn.opt-3 { border-color: #58CC02; background: rgba(88, 204, 2, 0.2); }
.option-btn.opt-0:hover:not(:disabled) { background: rgba(255, 107, 107, 0.35); }
.option-btn.opt-1:hover:not(:disabled) { background: rgba(28, 176, 246, 0.35); }
.option-btn.opt-2:hover:not(:disabled) { background: rgba(255, 200, 0, 0.35); }
.option-btn.opt-3:hover:not(:disabled) { background: rgba(88, 204, 2, 0.35); }

/* ---- Question timer ---- */
.question-timer { font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; }

/* ---- Question card ---- */
.question-card {
  margin-top: 12px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

/* ---- Results overlay / modal ---- */
.results-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.results-overlay.active { display: flex; }
.results-modal {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.25s ease;
}
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.results-modal h2 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.results-correct { color: var(--success); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.results-who { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.results-divider { border: none; border-top: 1px solid var(--panel-border); margin: 1rem 0; }
.results-rank { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--panel-border); }
.results-rank:last-child { border-bottom: none; }
.results-rank .rank-pos {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.rank-1 { background: rgba(255, 200, 0, 0.3); color: #FFC800; }
.rank-2 { background: rgba(160, 174, 192, 0.3); color: var(--muted); }
.rank-3 { background: rgba(205, 127, 50, 0.3); color: #CD7F32; }
.rank-default { background: var(--panel-border); color: var(--muted); }
.results-rank .rank-name { flex: 1; font-weight: 600; }
.results-rank .rank-score { color: var(--accent); font-weight: 700; }
.results-waiting { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 1rem; }

/* ---- Misc ---- */
.output {
  margin-top: 12px;
  background: var(--bg);
  border: 1px solid var(--panel-border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px;
  min-height: 80px;
  white-space: pre-wrap;
}
.hint { margin: 0; color: var(--muted); font-size: 0.9rem; }
.hidden { display: none; }

.correct-answer-display {
  margin-top: 12px;
  padding: 12px;
  background: var(--accent-light);
  border-radius: 10px;
  color: var(--accent-2);
  font-weight: 600;
  border: 1px solid rgba(88, 204, 2, 0.4);
}

/* ---- Podium ---- */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; margin: 2rem 0; }
.podium .place { text-align: center; padding: 1rem; }
.podium .place-1 { order: 2; }
.podium .place-2 { order: 1; }
.podium .place-3 { order: 3; }
.podium .height {
  background: linear-gradient(180deg, rgba(88, 204, 2, 0.3) 0%, var(--panel) 100%);
  border-radius: 8px 8px 0 0;
  margin-bottom: 0.5rem;
  border: 1px solid var(--panel-border);
}
.podium .place-1 .height { height: 120px; }
.podium .place-2 .height { height: 90px; }
.podium .place-3 .height { height: 60px; }

/* ---- Loading spinner ---- */
@keyframes spin { to { transform: rotate(360deg); } }
.match-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--panel-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  .app { padding: 16px 12px 32px; }
  .hero h1 { font-size: 1.35rem; }
  .panel { padding: 14px; }
  .option-btn {
    padding: 14px 16px;
    font-size: 0.95rem;
    min-height: 52px;
  }
  .btn {
    padding: 12px 16px;
    font-size: 0.95rem;
    min-height: 44px;
    min-width: 44px;
  }
  .question-timer { font-size: 1.5rem; }
  input, textarea, select { font-size: 16px; min-height: 44px; }
  .podium { gap: 0.5rem; }
  .podium .place { padding: 0.5rem; }
  .podium .place-1 .height { height: 80px; }
  .podium .place-2 .height { height: 60px; }
  .podium .place-3 .height { height: 40px; }
  .results-modal { padding: 1.25rem; margin: 0.5rem; max-height: 90vh; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.15rem; }
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .tab { white-space: nowrap; padding: 10px 14px; font-size: 0.85rem; min-height: 44px; }
}

/* Leaderboard mobile: allow horizontal scroll on narrow screens */
@media (max-width: 480px) {
  .leaderboard { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .lb-header, .lb-row { min-width: 280px; }
}

/* ---- Duolingo-style Leaderboard ---- */
.league-panel {
  margin-bottom: 1.5rem;
}
.league-shields {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1rem;
}
.league-shield {
  width: 40px;
  height: 40px;
  color: var(--muted);
  opacity: 0.5;
  transition: opacity 0.2s, color 0.2s, transform 0.2s;
}
.league-shield svg {
  width: 100%;
  height: 100%;
  display: block;
}
.league-shield.active {
  opacity: 1;
  color: var(--accent-teal);
  transform: scale(1.1);
}
.league-shield[data-league="bronze"].active { color: #CD7F32; }
.league-shield[data-league="silver"].active { color: #C0C0C0; }
.league-shield[data-league="gold"].active { color: #FFD700; }
.league-shield[data-league="sapphire"].active { color: #1CB0F6; }
.league-shield[data-league="ruby"].active { color: #E91E63; }
.league-info {
  text-align: center;
}
.league-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
  color: var(--text);
}
.league-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.25rem;
}
.league-countdown {
  font-size: 1rem;
  font-weight: 700;
  color: var(--warning);
  margin: 0;
}

.leaderboard-duo {
  margin-top: 0;
}
.lb-header-duo,
.lb-row-duo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--panel-border);
}
.lb-header-duo {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.85rem;
  padding-top: 0;
  padding-bottom: 10px;
}
.lb-row-duo {
  min-height: 52px;
}
.lb-row-duo.lb-row-me {
  background: var(--accent-light);
  border-radius: var(--radius);
  margin: 0 -8px;
  padding-left: 12px;
  padding-right: 12px;
  border-bottom-color: transparent;
}
.lb-rank-cell {
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.lb-rank-num {
  font-weight: 800;
  font-size: 1rem;
  color: var(--muted);
}
.lb-avatar,
.lb-avatar-spacer {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.lb-avatar-spacer {
  background: transparent;
  border: none;
  visibility: hidden;
}
.lb-name {
  flex: 1;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-wins,
.lb-total-wins {
  min-width: 2.5rem;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.95rem;
}
.lb-xp {
  font-weight: 700;
  color: var(--accent);
  min-width: 4.5rem;
  text-align: right;
  font-size: 1rem;
}
.lb-medal {
  flex-shrink: 0;
  display: block;
}
.lb-medal-gold,
.lb-medal-silver,
.lb-medal-bronze {
  width: 24px;
  height: 24px;
}

@media (max-width: 480px) {
  .leaderboard-duo { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .lb-header-duo, .lb-row-duo { min-width: 280px; }
  .league-shield { width: 36px; height: 36px; }
}
