/* ════════════════════════════════════════════════════════════════
   BLUNK LEAGUES & MEDALS SYSTEM — APPLE / LINEAR ELITE DESIGN
   ════════════════════════════════════════════════════════════════ */

/* Page Topbar */
.league-page-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 14px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  margin-bottom: 0 !important;
}

.league-topbar-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.league-topbar-divider {
  height: 14px !important;
  width: 1px !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

.league-topbar-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
}

.league-topbar-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.league-coin-badge {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: rgba(250, 204, 21, 0.08) !important;
  border: 1px solid rgba(250, 204, 21, 0.25) !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  user-select: none !important;
}

.league-coin-badge:hover {
  background: rgba(250, 204, 21, 0.16) !important;
  border-color: rgba(250, 204, 21, 0.4) !important;
  transform: translateY(-1px);
}

#league-coin-amount {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #facc15 !important;
  font-variant-numeric: tabular-nums !important;
}

.league-coin-plus {
  background: #facc15 !important;
  color: #0c0e12 !important;
  border-radius: 50% !important;
  width: 15px !important;
  height: 15px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.league-hdr-graph-btn,
.league-info-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(255, 255, 255, 0.6) !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
}

.league-hdr-graph-btn:hover,
.league-info-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-1px);
}

/* Season Banner & Hero */
.league-season-banner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 24px 16px 14px !important;
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  gap: 8px !important;
}

.clickable-season-banner {
  cursor: pointer !important;
  transition: transform 0.16s ease !important;
}

.clickable-season-banner:hover {
  transform: translateY(-1px) !important;
}

.league-season-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 8px !important;
  max-width: 580px !important;
}

.league-season-tag-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.league-season-badge {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  color: #facc15 !important;
  background: rgba(250, 204, 21, 0.1) !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(250, 204, 21, 0.22) !important;
  text-transform: uppercase !important;
}

.league-season-dot {
  color: rgba(255, 255, 255, 0.2) !important;
}

.league-season-subtag {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  color: rgba(255, 255, 255, 0.45) !important;
  text-transform: uppercase !important;
}

.league-season-timer-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.75) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.league-season-title {
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #ffffff !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.league-season-desc {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.5) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* Controls Wrap & Segmented Switcher */
.league-controls-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  padding: 0 16px 18px !important;
  max-width: 680px !important;
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.league-timeframe-switcher {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 4px !important;
  width: 100% !important;
  max-width: 340px !important;
}

.league-tf-btn {
  flex: 1 1 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 8px 14px !important;
  border-radius: 9px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.55) !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
}

.league-tf-btn:hover {
  color: #ffffff !important;
}

.league-tf-btn.active {
  background: #ffffff !important;
  color: #090b0e !important;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15) !important;
}

/* Category Quick Filter Scroll */
.league-cat-pills-scroll {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  overflow-x: auto !important;
  width: 100% !important;
  padding-bottom: 2px !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}

.league-cat-pills-scroll::-webkit-scrollbar {
  display: none !important;
}

.league-cat-pill {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 999px !important;
  padding: 6px 13px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.6) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.16s ease !important;
  outline: none !important;
}

.league-cat-pill:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.league-cat-pill:active {
  transform: scale(0.96) !important;
}

.league-cat-pill.active {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #090b0e !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 12px rgba(255, 255, 255, 0.12) !important;
}

.league-cat-pill-more {
  border-style: dashed !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

/* In-League Live Search */
.league-in-search-wrap {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.league-in-search-icon {
  position: absolute !important;
  left: 14px !important;
  color: rgba(255, 255, 255, 0.35) !important;
  pointer-events: none !important;
}

#leagueUserSearchInput {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 10px 16px 10px 38px !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 13px !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: all 0.18s ease !important;
}

#leagueUserSearchInput:focus {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04) !important;
}

#leagueUserSearchInput::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
}

.league-tab-btn {
  background: transparent;
  color: var(--t-text-muted);
  border: 1px solid transparent;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.league-tab-btn:hover {
  color: var(--t-text-primary);
  background: var(--t-bg-card-hover, rgba(255, 255, 255, 0.08));
}

.league-tab-btn.active {
  background: var(--t-bg-input, rgba(255, 255, 255, 0.06));
  color: var(--t-text-primary);
  border-color: var(--t-border-subtle);
  font-weight: 700;
}

/* Filter Search Trigger Button */
.league-search-trigger-btn {
  background: var(--t-bg-input, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--t-border-subtle, rgba(255, 255, 255, 0.15));
  border-radius: 20px;
  padding: 5px 14px;
  color: var(--t-text-primary);
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.league-search-trigger-btn:hover {
  background: var(--t-bg-card-hover, rgba(255, 255, 255, 0.12));
  border-color: var(--t-text-primary);
}

.search-trigger-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--t-text-muted);
}

.league-search-trigger-btn:hover .search-trigger-badge {
  color: var(--t-text-primary);
  background: rgba(255, 255, 255, 0.2);
}

/* Full-Screen Spotlight Search Modal Overlay */
.league-picker-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--t-bg-main, #0a0a0c);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.league-picker-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Centered Popup Overlay Variant for Season Guide & Calendar */
#league-season-modal-overlay {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

#league-season-modal-overlay .league-picker-modal-card {
  background: var(--t-bg-modal, #121318);
  border: 1px solid var(--t-border-subtle, rgba(255, 255, 255, 0.15));
  margin: auto;
  transform: scale(0.98) translateY(10px);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#league-season-modal-overlay.active .league-picker-modal-card {
  transform: scale(1) translateY(0);
}

.league-picker-modal-card {
  background: var(--t-bg-main, #0a0a0c);
  border: none;
  border-radius: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  overflow: hidden;
  transform: none;
}

.league-picker-modal-overlay.active .league-picker-modal-card {
  transform: none;
}

.league-picker-header {
  padding: 20px 32px;
  border-bottom: 1px solid var(--t-border-subtle, rgba(255, 255, 255, 0.1));
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.league-picker-search-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--t-text-primary, #ffffff) !important;
  font-size: 1.15rem !important;
  font-weight: 700;
  padding: 4px 0;
}

.league-picker-search-input:focus,
.league-picker-search-input:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.league-picker-search-input::placeholder {
  color: var(--t-text-muted, #94a3b8);
}

.league-picker-close-btn {
  background: transparent;
  border: 1px solid var(--t-border-subtle, rgba(255, 255, 255, 0.15));
  color: var(--t-text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.league-picker-close-btn:hover {
  color: var(--t-text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--t-text-primary);
}

.league-picker-body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.league-picker-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.league-picker-card-item {
  background: linear-gradient(145deg, rgba(30, 31, 40, 0.7), rgba(20, 21, 28, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  user-select: none;
}

.league-picker-card-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 14px;
  background: radial-gradient(400px circle at 50% 50%, rgba(255,255,255,0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.league-picker-card-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
}

.league-picker-card-item:hover::before {
  opacity: 1;
}

.league-picker-card-item.selected {
  background: linear-gradient(145deg, rgba(234, 179, 8, 0.15), rgba(20, 21, 28, 0.9));
  border-color: #eab308;
  box-shadow: 0 8px 25px rgba(234, 179, 8, 0.2), inset 0 0 20px rgba(234,179,8,0.05);
}

.league-picker-item-icon-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.league-picker-card-item:hover .league-picker-item-icon-wrapper {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

.league-picker-card-item.selected .league-picker-item-icon-wrapper {
  background: rgba(234, 179, 8, 0.2);
  border-color: rgba(234, 179, 8, 0.5);
  color: #eab308;
}

.league-picker-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t-text-muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.icon-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  background: #eab308;
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.league-picker-card-item.selected .icon-glow {
  opacity: 0.4;
}

.league-picker-item-icon svg {
  position: relative;
  z-index: 1;
}

.league-picker-card-item:hover .league-picker-item-icon {
  color: var(--t-text-primary);
  background: rgba(255, 255, 255, 0.12);
}

.league-picker-card-item.selected .league-picker-item-icon {
  background: rgba(234, 179, 8, 0.2);
  color: #eab308;
}

.league-picker-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--t-text-primary);
  line-height: 1.3;
  word-break: break-word;
}

/* Category & Activity Selector */
.league-selector-wrapper {
  margin-top: 4px;
}

.league-select-input {
  background: var(--t-bg-input);
  color: var(--t-text-primary);
  border: 1px solid var(--t-border-subtle);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  max-width: 280px;
  outline: none;
}

/* League Zone Divider (LeetCode / Duolingo Style) */
.league-zone-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: var(--t-bg-input);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--t-text-muted);
  border-bottom: 1px solid var(--t-border-subtle);
}

.league-zone-divider.zone-medal {
  color: #eab308;
  background: rgba(234, 179, 8, 0.06);
}

.league-zone-divider.zone-promotion {
  color: var(--t-text-primary);
  background: var(--card);
}

/* Activity Sparkline Bars */
.league-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.sparkline-bar {
  width: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  min-height: 3px;
  transition: height 0.2s ease;
}

.sparkline-bar.active {
  background: var(--t-accent-primary, #eab308);
}

/* Clean Leaderboard List Items (Borderless & Transparent) */
.league-leaderboard-container {
  display: flex;
  flex-direction: column;
  border: none;
  background: transparent;
}

/* Skeleton Loading State */
.league-skeleton-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.league-skeleton-row {
  height: 48px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: leagueSkeletonShimmer 1.5s infinite;
  border-radius: 10px;
}

@keyframes leagueSkeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.league-rank-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--t-border-subtle);
  transition: background 0.15s ease;
}

.league-rank-card:last-child {
  border-bottom: none;
}

.league-rank-card:hover {
  background: var(--t-bg-card-hover);
}

.league-rank-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.league-rank-number {
  width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--t-text-muted);
}

.league-rank-number.rank-1 {
  color: #eab308;
}

.league-rank-number.rank-2 {
  color: #94a3b8;
}

.league-rank-number.rank-3 {
  color: #d97706;
}

.league-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.league-user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.league-user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--t-text-primary);
  text-decoration: none;
}

.league-user-name:hover {
  color: var(--t-accent-primary);
}

.league-user-level {
  font-size: 11px;
  color: var(--t-text-muted);
}

.league-rank-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--t-text-primary);
}

/* Vector Sprite Sheet Medal Styling */
.medal-sprite-icon {
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
  transition: transform 0.2s ease;
}

.medal-sprite-icon:hover {
  transform: scale(1.08);
}

/* Champion Title Badge */
.league-champion-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #713f12;
  background: linear-gradient(135deg, #fef08a 0%, #eab308 100%);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  box-shadow: 0 2px 6px rgba(234, 179, 8, 0.3);
}

/* Active Leagues Badge & Search Modal Enhancements */
.league-active-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(239, 68, 68, 0.25);
}

.league-active-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(234, 179, 8, 0.08) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 10px;
}

.league-active-card-item:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(234, 179, 8, 0.16) 100%);
  border-color: #ef4444;
  transform: translateY(-2px);
}

.league-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  font-size: 10px;
  font-weight: 800;
}
.league-picker-cat-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(234, 179, 8, 0.35) transparent;
}

/* Custom Sleek Dark Gold Scrollbars (No Hideous White Browser Scrollbars) */
.league-picker-cat-pills::-webkit-scrollbar {
  height: 5px;
}

.league-picker-cat-pills::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 99px;
}

.league-picker-cat-pills::-webkit-scrollbar-thumb {
  background: rgba(234, 179, 8, 0.35);
  border-radius: 99px;
  transition: background 0.2s ease;
}

.league-picker-cat-pills::-webkit-scrollbar-thumb:hover {
  background: var(--t-accent-gold, #eab308);
}

.league-picker-modal-card::-webkit-scrollbar,
.league-picker-body::-webkit-scrollbar,
.league-picker-modal-overlay::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.league-picker-modal-card::-webkit-scrollbar-track,
.league-picker-body::-webkit-scrollbar-track,
.league-picker-modal-overlay::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.league-picker-modal-card::-webkit-scrollbar-thumb,
.league-picker-body::-webkit-scrollbar-thumb,
.league-picker-modal-overlay::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}

.league-picker-modal-card::-webkit-scrollbar-thumb:hover,
.league-picker-body::-webkit-scrollbar-thumb:hover,
.league-picker-modal-overlay::-webkit-scrollbar-thumb:hover {
  background: var(--t-accent-gold, #eab308);
}

/* Main Page Quick Selector Pills Bar */
.league-quick-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  margin-top: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(234, 179, 8, 0.25) transparent;
}

.league-quick-pills-bar::-webkit-scrollbar {
  height: 4px;
}

.league-quick-pills-bar::-webkit-scrollbar-thumb {
  background: rgba(234, 179, 8, 0.25);
  border-radius: 99px;
}

.league-quick-pill {
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--t-text-muted, #94a3b8);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.league-quick-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.league-quick-pill.active {
  background: rgba(234, 179, 8, 0.15);
  color: var(--t-accent-gold, #eab308);
  border-color: var(--t-accent-gold, #eab308);
  font-weight: 700;
}

/* Sub-Activity Pills Bar */
.league-sub-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  margin-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(234, 179, 8, 0.2) transparent;
}

.league-sub-pills-bar::-webkit-scrollbar {
  height: 4px;
}

.league-sub-pills-bar::-webkit-scrollbar-thumb {
  background: rgba(234, 179, 8, 0.25);
  border-radius: 99px;
}

.sub-pills-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--t-accent-gold, #eab308);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  margin-right: 4px;
}

.league-sub-pill {
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--t-text-muted, #94a3b8);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.league-sub-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.league-sub-pill.active {
  background: rgba(234, 179, 8, 0.2);
  color: var(--text);
  border-color: var(--t-accent-gold, #eab308);
  font-weight: 700;
}

.picker-cat-pill {
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--t-text-muted, #94a3b8);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.picker-cat-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}

.picker-cat-pill.active {
  background: var(--t-accent-gold, #eab308);
  color: #000000;
  font-weight: 700;
  border-color: var(--t-accent-gold, #eab308);
  box-shadow: 0 2px 10px rgba(234, 179, 8, 0.35);
}

.league-picker-category-group {
  margin-bottom: 24px;
}

.league-picker-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--t-accent-gold, #eab308);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(234, 179, 8, 0.2);
}

.league-picker-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.league-picker-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.league-picker-card-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(234, 179, 8, 0.4);
  transform: translateY(-2px);
}

.league-picker-card-item.selected {
  background: rgba(234, 179, 8, 0.15);
  border-color: var(--t-accent-gold, #eab308);
}

.league-picker-card-item .item-details {
  display: flex;
  flex-direction: column;
}

.league-picker-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.league-picker-item-players {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.05);
}

.league-picker-card-item .item-cat-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.leader-info {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 10px 4px 4px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.04);
}

.leader-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.15);
  box-sizing: border-box;
}

.leader-avatar.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.leader-avatar.avatar .avatar-initials {
  font-size: 10px;
  font-weight: 800;
  color: #ffffff !important;
}

.leader-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.3px;
}

.leader-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
}

#blunk-virtual-cursor {
  position: fixed;
  top: 100px;
  left: 100px;
  width: 28px;
  height: 28px;
  z-index: 99999999 !important;
  pointer-events: none !important;
  opacity: 0;
  display: block !important;
  transform-origin: 4px 4px;
}

#blunk-virtual-cursor.active {
  opacity: 1 !important;
}

#blunk-virtual-cursor.clicking {
  transform: scale(0.82) rotate(-8deg);
}

.virtual-click-ripple {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
  pointer-events: none !important;
  z-index: 99999998 !important;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 1;
  animation: virtualRippleAnim 0.55s cubic-bezier(0, 0, 0.2, 1) forwards;
}

@keyframes virtualRippleAnim {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* Rival Distance Indicator Hero Card */
.league-rival-card {
  background: var(--t-bg-card);
  border: 1px solid var(--t-border-focus);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px var(--t-accent-glow);
}

.league-rival-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--t-text-primary);
}

.league-rival-btn {
  background: var(--t-accent-primary);
  color: var(--text);
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Info Button (i) */
.league-info-btn {
  background: var(--t-bg-card);
  color: var(--t-text-muted);
  border: 1px solid var(--t-border-subtle);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.league-info-btn:hover {
  color: var(--t-accent-primary);
  border-color: var(--t-accent-primary);
  background: var(--t-bg-card-hover);
}

/* Unstarted / Building League Callout Box */
.league-unstarted-callout {
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 460px;
  margin: 32px auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.league-unstarted-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.25);
  color: #eab308;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(234, 179, 8, 0.15);
}

.league-unstarted-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
}

.league-unstarted-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 380px;
  line-height: 1.55;
  margin: 0;
}

.league-start-focus-btn {
  background: #eab308;
  color: #08090c;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.3);
}

.league-start-focus-btn:hover {
  background: #facc15;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(234, 179, 8, 0.45);
}

/* Tech HUD Candle Bar Styles */
.breakdown-candle-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 2px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.breakdown-candle-col:hover,
.breakdown-candle-col.active-candle {
  background: rgba(168, 85, 247, 0.12);
}

.breakdown-candle-track {
  width: 100%;
  height: 85px;
  background: var(--t-bg-input);
  border: 1px solid var(--t-border-subtle);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  padding: 3px;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.breakdown-candle-col.active-candle .breakdown-candle-track {
  border-color: var(--t-accent-primary);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.breakdown-candle-fill {
  width: 100%;
  background: linear-gradient(180deg, #c084fc 0%, #9333ea 100%);
  border-radius: 5px;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.breakdown-candle-col.active-candle .breakdown-candle-fill {
  background: linear-gradient(180deg, #e879f9 0%, #a855f7 100%);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

.breakdown-top-hero {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.breakdown-top-hero-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--t-accent-primary);
}

.breakdown-top-hero-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--t-text-primary);
}

.breakdown-activity-row {
  padding: 10px 14px;
  background: var(--t-bg-input);
  border: 1px solid var(--t-border-subtle);
  border-radius: 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.breakdown-activity-row:hover {
  border-color: var(--t-border-strong);
  transform: translateX(2px);
}


/* Profile Medal Grid & Badges */
.medals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.medal-item-card {
  background: var(--t-bg-card);
  border: 1px solid var(--t-border-subtle);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
}

.medal-item-card:hover {
  background: var(--t-bg-card-hover);
  border-color: var(--t-border-strong);
}

.medal-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--t-text-primary);
}

.medal-card-meta {
  font-size: 11px;
  color: var(--t-text-muted);
}

.medal-showcase-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--t-accent-primary);
  background: rgba(168, 85, 247, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Medal Detail Modal — Always Cinematic Dark, No Theme Interference */
.medal-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* Semi-transparent in dark mode — shows blurred app behind */
  background: rgba(4, 4, 10, 0.55);
  backdrop-filter: blur(28px) saturate(0.6);
  -webkit-backdrop-filter: blur(28px) saturate(0.6);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: dark;
}

.medal-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* In light mode: must be fully opaque dark to avoid white bleed-through */
[data-theme="light"] .medal-modal-overlay {
  background: rgba(4, 4, 10, 0.90) !important;
  backdrop-filter: blur(30px) !important;
  -webkit-backdrop-filter: blur(30px) !important;
}

/* Panel slide-in animation */
.medal-modal-overlay.active .cs2-inspect-layout {
  animation: medalPanelEnter 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.medal-modal-overlay.active .cs2-stats-panel {
  animation: medalStatsPanelEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@keyframes medalPanelEnter {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes medalStatsPanelEnter {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Rope entrance animation */
.medal-modal-overlay.active #medal-3d-studio-container {
  animation: medal3DEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

@keyframes medal3DEnter {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Force all content inside to dark regardless of app theme */
.medal-modal-overlay,
.medal-modal-overlay *,
[data-theme="light"] .medal-modal-overlay,
[data-theme="light"] .medal-modal-overlay * {
  color-scheme: dark;
}

[data-theme="light"] .medal-modal-overlay {
  background: rgba(4, 4, 8, 0.92) !important;
}

.medal-modal-card {
  background: var(--t-bg-modal);
  border: 1px solid var(--t-border-subtle);
  border-radius: 16px;
  padding: 24px;
  max-width: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.medal-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--t-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.medal-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--t-text-primary);
  margin: 12px 0 4px;
}

.medal-modal-subtitle {
  font-size: 12px;
  color: var(--t-text-muted);
  margin-bottom: 16px;
}

.medal-modal-detail-box {
  background: var(--t-bg-input);
  border-radius: 10px;
  padding: 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--t-text-secondary);
  margin-bottom: 16px;
}

.medal-modal-detail-row {
  display: flex;
  justify-content: space-between;
}

.medal-modal-detail-value {
  font-weight: 700;
  color: var(--t-text-primary);
}

.medal-modal-toggle-btn {
  background: var(--t-accent-primary);
  color: var(--text);
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
}

/* Public Profile Showcase Bar */
.profile-showcase-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.profile-showcase-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--t-bg-card);
  border: 1px solid var(--t-border-subtle);
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--t-text-primary);
  cursor: pointer;
}

/* LEAGUE PODIUM UI */
.league-podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  padding: 32px 16px;
  margin-bottom: 24px;
}

.podium-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 110px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.podium-step:hover {
  transform: translateY(-5px);
}

.podium-avatar-wrapper {
  position: relative;
  margin-bottom: -16px;
  z-index: 2;
  border-radius: 50%;
  padding: 4px;
  background: var(--t-bg-card);
}
.podium-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--t-border-subtle);
  background: var(--t-bg-body);
  box-sizing: border-box;
}

.podium-avatar.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.podium-avatar.avatar .avatar-initials {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff !important;
}

.podium-rank-1 .podium-avatar.avatar .avatar-initials {
  font-size: 30px;
}

.podium-rank-1 .podium-avatar {
  width: 80px;
  height: 80px;
  border-color: #fbbf24;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}
.podium-rank-2 .podium-avatar {
  border-color: #94a3b8;
}
.podium-rank-3 .podium-avatar {
  border-color: #d97706;
}

.podium-medal-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  background: var(--t-bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.podium-rank-1 .podium-medal-badge { width: 34px; height: 34px; bottom: 0px; right: 0px; }

.podium-block {
  width: 100%;
  border-radius: 12px 12px 4px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 36px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.podium-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: currentColor;
  opacity: 0.8;
}

.podium-rank-1 .podium-block {
  height: 170px;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.02) 100%);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}
.podium-rank-2 .podium-block {
  height: 140px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.15) 0%, rgba(148, 163, 184, 0.02) 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}
.podium-rank-3 .podium-block {
  height: 120px;
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.15) 0%, rgba(217, 119, 6, 0.02) 100%);
  border: 1px solid rgba(217, 119, 6, 0.2);
  color: #d97706;
}

.podium-username {
  font-size: 13px;
  font-weight: 800;
  color: var(--t-text-primary);
  margin: 4px 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 95%;
  text-align: center;
}
.podium-rank-1 .podium-username {
  font-size: 15px;
  color: #fbbf24;
}

.podium-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--t-text-muted);
}
.podium-rank-num {
  font-size: 32px;
  font-weight: 900;
  opacity: 0.2;
  margin-top: auto;
  margin-bottom: 8px;
}

/* Leaderboard Container & Cards */
.league-leaderboard-container {
  max-width: 680px !important;
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 16px 140px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

/* Zone Dividers */
.league-zone-divider {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 0 6px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  color: rgba(255, 255, 255, 0.4) !important;
  text-transform: uppercase !important;
}

.league-zone-divider.zone-promotion {
  color: #facc15 !important;
  border-top: 1px dashed rgba(250, 204, 21, 0.22) !important;
  margin-top: 6px !important;
  padding-top: 14px !important;
}

/* Rank Cards */
.league-rank-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 16px !important;
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.league-rank-card:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-1px) !important;
}

.league-rank-card.is-me {
  background: rgba(250, 204, 21, 0.06) !important;
  border: 1px solid rgba(250, 204, 21, 0.28) !important;
  box-shadow: 0 4px 18px rgba(250, 204, 21, 0.08), inset 0 1px 0 rgba(250, 204, 21, 0.15) !important;
}

.league-rank-card.is-me:hover {
  background: rgba(250, 204, 21, 0.09) !important;
}

.league-rank-left {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.league-rank-number {
  min-width: 30px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: rgba(255, 255, 255, 0.35) !important;
  font-variant-numeric: tabular-nums !important;
  flex-shrink: 0 !important;
}

.league-rank-number.top-tier {
  color: #facc15 !important;
  font-weight: 900 !important;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.25) !important;
}

.league-user-avatar {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  background: #11141a !important;
  transition: all 0.16s ease !important;
  box-sizing: border-box !important;
}

.league-user-avatar.avatar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
}

.league-user-avatar.avatar .avatar-initials {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

.league-user-avatar:hover {
  border-color: #facc15 !important;
  transform: scale(1.05) !important;
}

.league-user-details {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.league-user-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  min-width: 0 !important;
}

.league-user-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.01em !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 150px !important;
}

.league-user-name:hover {
  color: #facc15 !important;
}

.league-me-badge {
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  background: #facc15 !important;
  color: #0c0e12 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2 !important;
}

.league-sub-tag {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  padding: 1px 6px !important;
  border-radius: 5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap !important;
}

.league-user-level {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.38) !important;
  letter-spacing: 0.04em !important;
}

.league-rank-right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.activity-sparkline-btn {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 2.5px !important;
  height: 22px !important;
  padding: 2px 6px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
}

.activity-sparkline-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  transform: translateY(-1px) !important;
}

.league-rank-time {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  font-variant-numeric: tabular-nums !important;
  min-width: 58px !important;
  text-align: right !important;
}

/* Sticky User Rank Dock */
.league-my-sticky-dock {
  position: fixed !important;
  bottom: calc(64px + env(safe-area-inset-bottom, 12px)) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 28px) !important;
  max-width: 640px !important;
  z-index: 9999 !important;
  background: rgba(14, 18, 25, 0.9) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(250, 204, 21, 0.3) !important;
  border-radius: 16px !important;
  padding: 10px 16px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(250, 204, 21, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  box-sizing: border-box !important;
  animation: slideUpStickyDock 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes slideUpStickyDock {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.league-dock-content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 12px !important;
}

.league-dock-left {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.league-dock-rank {
  font-size: 15px !important;
  font-weight: 900 !important;
  color: #facc15 !important;
  min-width: 32px !important;
  font-variant-numeric: tabular-nums !important;
}

.league-dock-user-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.league-dock-name-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
}

.league-dock-username {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.league-dock-badge {
  font-size: 8.5px !important;
  font-weight: 900 !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  background: #facc15 !important;
  color: #0c0e12 !important;
}

.league-dock-target {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.league-dock-target strong {
  color: #facc15 !important;
  font-weight: 700 !important;
}

.league-dock-right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.league-dock-time {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  font-variant-numeric: tabular-nums !important;
}

.league-dock-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  background: #facc15 !important;
  color: #0c0e12 !important;
  border: none !important;
  padding: 7px 13px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
  box-shadow: 0 2px 10px rgba(250, 204, 21, 0.3) !important;
  white-space: nowrap !important;
}

.league-dock-btn:hover {
  background: #fde047 !important;
  transform: scale(1.03) !important;
}

.league-dock-btn:active {
  transform: scale(0.97) !important;
}

/* Podium Step Details */
.podium-user-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  width: 100% !important;
}

.podium-medal-num {
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
}

.podium-rank-1 .podium-medal-badge {
  background: #facc15 !important;
  border: 2px solid #0c0e12 !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.6) !important;
}

.podium-rank-1 .podium-medal-num {
  color: #0c0e12 !important;
}

.podium-rank-2 .podium-medal-badge {
  background: #94a3b8 !important;
  border: 2px solid #0c0e12 !important;
}

.podium-rank-2 .podium-medal-num {
  color: #0c0e12 !important;
}

.podium-rank-3 .podium-medal-badge {
  background: #d97706 !important;
  border: 2px solid #0c0e12 !important;
}

.podium-rank-3 .podium-medal-num {
  color: #ffffff !important;
}

.podium-step.podium-is-me .podium-avatar {
  border-color: #facc15 !important;
  box-shadow: 0 0 0 2px #facc15, 0 0 20px rgba(250, 204, 21, 0.4) !important;
}

.podium-me-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 8.5px !important;
  font-weight: 900 !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  background: #facc15 !important;
  color: #0c0e12 !important;
}

/* Mobile Responsive Optimization */
@media (max-width: 600px) {
  .league-leaderboard-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-bottom: 150px !important;
  }
  .league-rank-card {
    padding: 10px 12px !important;
  }
  .league-user-name {
    max-width: 110px !important;
  }
  .league-my-sticky-dock {
    width: calc(100% - 20px) !important;
    padding: 8px 12px !important;
  }
  .league-dock-target {
    font-size: 10px !important;
    max-width: 140px !important;
  }
}

@media (max-width: 480px) {
  .league-podium-container {
    gap: 8px !important;
    padding: 16px 6px 14px !important;
  }
  .podium-step {
    width: 31vw !important;
    max-width: 102px !important;
  }
  .podium-rank-1 .podium-block {
    height: 145px !important;
  }
  .podium-rank-2 .podium-block {
    height: 118px !important;
  }
  .podium-rank-3 .podium-block {
    height: 102px !important;
  }
  .podium-avatar {
    width: 54px !important;
    height: 54px !important;
  }
  .podium-rank-1 .podium-avatar {
    width: 68px !important;
    height: 68px !important;
  }
}

/* League Threshold / Anti-Abuse Notice */
.league-threshold-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  margin: 12px auto;
  max-width: 580px;
  width: calc(100% - 32px);
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.22);
  border-radius: 12px;
  box-sizing: border-box;
}

.threshold-notice-icon {
  color: #eab308;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.threshold-notice-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--t-text-primary, #ffffff);
  line-height: 1.4;
}

.threshold-notice-text span {
  color: #eab308;
  font-weight: 700;
}

/* League Rules Modal */
.league-rules-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.league-rules-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.league-rules-card {
  width: 100%;
  max-width: 500px;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.league-rules-modal-overlay.active .league-rules-card {
  transform: translateY(0) scale(1);
}

.league-rules-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.league-rules-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.league-rules-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.league-rules-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.league-rules-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.league-rules-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.league-rules-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 14px;
  max-height: 60vh;
  overflow-y: auto;
}

.league-rule-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.league-rule-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.rule-item-badge {
  font-size: 11px;
  font-weight: 800;
  color: #eab308;
  background: rgba(234, 179, 8, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.rule-item-content h4 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.01em;
}

.rule-item-content p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.league-rules-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.league-rules-confirm-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: #eab308;
  color: #08090c;
  font-weight: 800;
  font-size: 13.5px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.3);
}

.league-rules-confirm-btn:hover {
  background: #facc15;
  transform: translateY(-1px);
}

/* Medal Manager Modal Styles */
.medal-manager-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.medal-manager-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.medal-manager-card {
  width: 100%;
  max-width: 520px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.medal-manager-modal-overlay.active .medal-manager-card {
  transform: translateY(0) scale(1);
}

.medal-manager-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.medal-mgr-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.medal-manager-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.medal-manager-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.medal-manager-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.medal-manager-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.medal-manager-search-box {
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.medal-manager-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13.5px;
  color: #ffffff;
  font-weight: 500;
}

.medal-manager-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.medal-manager-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
}

.medal-mgr-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.medal-mgr-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.medal-mgr-item.showcased {
  background: rgba(234, 179, 8, 0.08);
  border-color: rgba(234, 179, 8, 0.25);
}

.medal-mgr-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.medal-mgr-check.active {
  background: #eab308;
  border-color: #eab308;
  color: #08090c;
}

.medal-mgr-icon-wrap {
  flex-shrink: 0;
}

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

.medal-mgr-title {
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.medal-mgr-rank {
  color: #eab308;
  font-weight: 800;
  margin-left: 4px;
}

.medal-mgr-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

.medal-mgr-action-hint {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.medal-mgr-item.showcased .medal-mgr-action-hint {
  color: #eab308;
}

.medal-mgr-loading,
.medal-mgr-empty {
  text-align: center;
  padding: 36px 16px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

/* Picker Header Inner Optimization */
.league-picker-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  gap: 16px;
}

