/**
 * Hall of Fame v5.0 - Premium Gaming Experience
 * Complete redesign with stunning podium and scroll UX
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Core Colors */
  --hof-bg-primary: #030508;
  --hof-bg-secondary: #080c12;
  --hof-bg-card: #0c1117;
  
  /* Accent Colors */
  --hof-gold: #f5a623;
  --hof-gold-light: #ffd700;
  --hof-gold-glow: rgba(245, 166, 35, 0.5);
  --hof-emerald: #10b981;
  --hof-emerald-glow: rgba(16, 185, 129, 0.4);
  --hof-violet: #8b5cf6;
  --hof-violet-glow: rgba(139, 92, 246, 0.4);
  --hof-cyan: #06b6d4;
  --hof-rose: #f43f5e;
  
  /* Medal Colors */
  --medal-gold: #ffd700;
  --medal-gold-dark: #b8860b;
  --medal-silver: #e8e8e8;
  --medal-silver-dark: #8a8a8a;
  --medal-bronze: #cd7f32;
  --medal-bronze-dark: #8b4513;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  
  /* Surfaces */
  --surface-glass: rgba(255, 255, 255, 0.03);
  --surface-card: rgba(13, 18, 24, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.06);
  
  /* Typography */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Only reset margin/padding inside hof-app, NOT navbar */
.hof-app *, 
.hof-app *::before, 
.hof-app *::after,
.hof-loader *,
.hof-loader *::before,
.hof-loader *::after {
  margin: 0;
  padding: 0;
}

.topnav-live {
  white-space: nowrap;
}

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

html, body {
  background: var(--hof-bg-primary);
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Apply line-height only to Hall of Fame content, not navbar */
.hof-app,
.hof-loader {
  line-height: 1.6;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(245, 166, 35, 0.2); border-radius: 3px; }

/* ============================================
   LOADING SCREEN
   ============================================ */
.hof-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--hof-bg-primary);
  transition: opacity 0.6s ease, visibility 0.6s;
}

.hof-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-trophy {
  position: relative;
  width: 100px;
  height: 100px;
}

.loader-trophy-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hof-gold);
  animation: trophyPulse 2s ease-in-out infinite;
}

.loader-trophy-icon svg {
  width: 60px;
  height: 60px;
}

@keyframes trophyPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px var(--hof-gold-glow)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 40px var(--hof-gold-glow)); }
}

.loader-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(245, 166, 35, 0.2);
  border-top-color: var(--hof-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--hof-gold), #fff, var(--hof-gold));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer { to { background-position: 200% 0; } }

.loader-dots {
  display: flex;
  gap: 8px;
}

.loader-dot {
  width: 8px;
  height: 8px;
  background: var(--hof-gold);
  border-radius: 50%;
  animation: dotBounce 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ============================================
   MAIN APP CONTAINER
   ============================================ */
.hof-app {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hof-app.visible {
  opacity: 1;
}

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */
.hof-bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-gradient-1 {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(245, 166, 35, 0.06) 0%, transparent 60%);
  animation: bgFloat 20s ease-in-out infinite;
}

.bg-gradient-2 {
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
  animation: bgFloat 25s ease-in-out infinite reverse;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 20px); }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hof-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 40px;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(245, 166, 35, 0.05));
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  animation: fadeDown 0.6s ease 0.1s both;
}

.hero-badge-icon {
  width: 16px;
  height: 16px;
  color: var(--hof-gold);
}

.hero-badge-icon svg { width: 100%; height: 100%; }

.hero-badge-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hof-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  animation: fadeUp 0.6s ease 0.2s both;
}

.hero-title-gold {
  background: linear-gradient(135deg, var(--hof-gold-light), var(--hof-gold), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 30px var(--hof-gold-glow));
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
  animation: fadeUp 0.6s ease 0.3s both;
}

/* ============================================
   PRIZE SHOWCASE - BIG HERO DISPLAY
   ============================================ */
.hero-prize-showcase {
  position: relative;
  margin: 0 auto 40px;
  animation: fadeUp 0.6s ease 0.35s both;
}

.prize-showcase-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, var(--hof-gold-glow) 0%, transparent 70%);
  filter: blur(50px);
  opacity: 0.5;
  animation: prizeGlow 3s ease-in-out infinite;
}

@keyframes prizeGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.prize-showcase-content {
  position: relative;
  padding: 32px 48px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.1) 0%, rgba(245, 166, 35, 0.03) 100%);
  border: 2px solid rgba(245, 166, 35, 0.3);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  text-align: center;
}

.prize-showcase-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hof-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prize-label-icon {
  width: 18px;
  height: 18px;
}

.prize-label-icon svg { width: 100%; height: 100%; }

.prize-showcase-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
}

.prize-dollar {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--hof-gold);
}

.prize-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--hof-gold-light), var(--hof-gold), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 20px var(--hof-gold-glow));
}

.prize-showcase-breakdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.prize-breakdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.breakdown-amount {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.breakdown-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prize-breakdown-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, rgba(245, 166, 35, 0.4), transparent);
}

/* Hero Stats Row */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease 0.4s both;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.stat-chip:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(245, 166, 35, 0.3);
  transform: translateY(-2px);
}

.stat-chip-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(245, 166, 35, 0.05));
  border-radius: var(--radius-sm);
  color: var(--hof-gold);
}

.stat-chip-icon svg { width: 18px; height: 18px; }

.stat-chip-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.stat-chip-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   SCROLL INDICATOR - Below content, not absolute
   ============================================ */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 20px 0 40px;
  animation: fadeUp 0.6s ease 0.6s both;
  transition: all 0.3s ease;
}

.scroll-indicator:hover {
  transform: translateY(-3px);
}

.scroll-indicator:hover .scroll-text {
  color: var(--hof-gold);
}

.scroll-indicator:hover .scroll-mouse {
  border-color: var(--hof-gold);
}

.scroll-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  position: relative;
  transition: border-color 0.3s ease;
}

.scroll-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--hof-gold);
  border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

.scroll-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
}

.scroll-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--hof-gold);
  border-bottom: 2px solid var(--hof-gold);
  transform: rotate(45deg);
  opacity: 0;
  animation: scrollArrow 1.5s ease-in-out infinite;
}

.scroll-arrow:nth-child(1) { animation-delay: 0s; }
.scroll-arrow:nth-child(2) { animation-delay: 0.15s; }
.scroll-arrow:nth-child(3) { animation-delay: 0.3s; }

@keyframes scrollArrow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* ============================================
   SECTION STYLES
   ============================================ */
.hof-section {
  position: relative;
  padding: 80px 24px;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(245, 166, 35, 0.05));
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: var(--radius-lg);
  color: var(--hof-gold);
  margin-bottom: 20px;
}

.section-icon svg { width: 28px; height: 28px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title-gradient {
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ============================================
   COMPETITIONS GRID
   ============================================ */
.competitions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   COMPETITION CARD - NEW PREMIUM DESIGN
   ============================================ */
.competition-card {
  position: relative;
  background: linear-gradient(180deg, var(--hof-bg-card) 0%, rgba(8, 12, 18, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.4s var(--ease-smooth);
}

.competition-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.competition-card.monthly::before {
  background: linear-gradient(180deg, rgba(245, 166, 35, 0.04) 0%, transparent 40%);
}

.competition-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 60px rgba(16, 185, 129, 0.08);
}

.competition-card.monthly:hover {
  border-color: rgba(245, 166, 35, 0.3);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 60px rgba(245, 166, 35, 0.1);
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-md);
  color: var(--hof-emerald);
}

.monthly .card-icon {
  background: rgba(245, 166, 35, 0.1);
  color: var(--hof-gold);
}

.card-icon svg { width: 24px; height: 24px; }

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.card-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Live Badge */
.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--hof-emerald);
  border-radius: 50%;
  animation: liveBlink 1.5s ease-in-out infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--hof-emerald); }
  50% { opacity: 0.5; box-shadow: none; }
}

.live-text {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--hof-emerald);
  letter-spacing: 0.08em;
}

/* Countdown */
.countdown-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--surface-glass);
  border-radius: var(--radius-md);
}

.countdown-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.countdown-icon svg { width: 100%; height: 100%; }

.countdown-time {
  display: flex;
  align-items: center;
  gap: 6px;
}

.countdown-unit {
  text-align: center;
  min-width: 30px;
}

.countdown-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  display: block;
  color: var(--text-primary);
}

.countdown-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.countdown-sep {
  color: var(--text-muted);
  opacity: 0.4;
  font-size: 0.9rem;
}

/* Hot Badge */
.hot-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--hof-rose), #dc2626);
  border-radius: var(--radius-full);
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  z-index: 10;
  animation: hotFloat 3s ease-in-out infinite;
}

.hot-badge-icon { width: 12px; height: 12px; }
.hot-badge-icon svg { width: 100%; height: 100%; }

@keyframes hotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ============================================
   NEW PREMIUM PODIUM DESIGN
   ============================================ */
.premium-podium {
  position: relative;
  padding: 40px 20px 50px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* Ambient Glow */
.podium-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse, var(--hof-emerald-glow) 0%, transparent 70%);
  filter: blur(60px);
  opacity: 0.3;
  pointer-events: none;
}

.monthly .podium-glow {
  background: radial-gradient(ellipse, var(--hof-gold-glow) 0%, transparent 70%);
}

/* Podium Container */
.podium-container {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
}

/* Prize Stand */
.prize-stand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 150px;
  transition: transform 0.4s var(--ease-bounce);
}

.prize-stand:hover {
  transform: translateY(-8px);
}

.prize-stand:hover .prize-card {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Prize Card - The Floating Card */
.prize-card-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
}

.prize-card {
  position: relative;
  background: linear-gradient(180deg, 
    rgba(30, 35, 45, 0.95) 0%, 
    rgba(20, 25, 32, 0.98) 100%
  );
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* Prize Rank Badge */
.prize-rank-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0 0 12px 12px;
}

.prize-stand.first .prize-rank-badge {
  background: linear-gradient(135deg, var(--medal-gold), var(--medal-gold-dark));
  color: #1a1500;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.prize-stand.second .prize-rank-badge {
  background: linear-gradient(135deg, var(--medal-silver), var(--medal-silver-dark));
  color: #1a1a1a;
}

.prize-stand.third .prize-rank-badge {
  background: linear-gradient(135deg, var(--medal-bronze), var(--medal-bronze-dark));
  color: #1a1000;
}

/* Trophy Icon */
.prize-trophy {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 30px auto 16px;
}

.prize-stand.first .prize-trophy {
  width: 90px;
  height: 90px;
}

.trophy-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  opacity: 0.5;
  animation: trophyGlow 3s ease-in-out infinite;
}

.prize-stand.first .trophy-glow {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
}

.prize-stand.second .trophy-glow {
  background: radial-gradient(circle, rgba(192, 192, 192, 0.3) 0%, transparent 70%);
}

.prize-stand.third .trophy-glow {
  background: radial-gradient(circle, rgba(205, 127, 50, 0.3) 0%, transparent 70%);
}

@keyframes trophyGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.trophy-icon {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trophy-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.prize-stand.first .trophy-icon { color: var(--medal-gold); }
.prize-stand.second .trophy-icon { color: var(--medal-silver); }
.prize-stand.third .trophy-icon { color: var(--medal-bronze); }

/* Prize Amount */
.prize-amount-display {
  margin-bottom: 6px;
}

.prize-currency {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.7;
}

.prize-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.prize-stand.first .prize-currency,
.prize-stand.first .prize-value {
  color: var(--medal-gold);
}

.prize-stand.second .prize-currency,
.prize-stand.second .prize-value {
  color: var(--medal-silver);
}

.prize-stand.third .prize-currency,
.prize-stand.third .prize-value {
  color: var(--medal-bronze);
}

.prize-stand.first .prize-value {
  font-size: 2.4rem;
}

.prize-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Podium Pedestal */
.podium-pedestal {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pedestal-top {
  width: 100%;
  height: 8px;
  border-radius: 4px 4px 0 0;
}

.pedestal-body {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 8px 8px;
  position: relative;
  overflow: hidden;
}

.pedestal-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.pedestal-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  opacity: 0.15;
}

/* First Place Pedestal */
.prize-stand.first .pedestal-top {
  background: linear-gradient(90deg, var(--medal-gold-dark), var(--medal-gold), var(--medal-gold-dark));
}

.prize-stand.first .pedestal-body {
  height: 80px;
  background: linear-gradient(180deg, 
    rgba(255, 215, 0, 0.15) 0%, 
    rgba(255, 215, 0, 0.05) 100%
  );
}

/* Second Place Pedestal */
.prize-stand.second .pedestal-top {
  background: linear-gradient(90deg, var(--medal-silver-dark), var(--medal-silver), var(--medal-silver-dark));
}

.prize-stand.second .pedestal-body {
  height: 55px;
  background: linear-gradient(180deg, 
    rgba(192, 192, 192, 0.12) 0%, 
    rgba(192, 192, 192, 0.04) 100%
  );
}

/* Third Place Pedestal */
.prize-stand.third .pedestal-top {
  background: linear-gradient(90deg, var(--medal-bronze-dark), var(--medal-bronze), var(--medal-bronze-dark));
}

.prize-stand.third .pedestal-body {
  height: 40px;
  background: linear-gradient(180deg, 
    rgba(205, 127, 50, 0.12) 0%, 
    rgba(205, 127, 50, 0.04) 100%
  );
}

/* Ordering */
.prize-stand.first { order: 2; z-index: 3; }
.prize-stand.second { order: 1; z-index: 2; }
.prize-stand.third { order: 3; z-index: 1; }

/* Card Border Glow Effects */
.prize-stand.first .prize-card {
  border: 1px solid rgba(255, 215, 0, 0.25);
}

.prize-stand.second .prize-card {
  border: 1px solid rgba(192, 192, 192, 0.2);
}

.prize-stand.third .prize-card {
  border: 1px solid rgba(205, 127, 50, 0.2);
}

.prize-stand.first:hover .prize-card {
  border-color: rgba(255, 215, 0, 0.5);
}

.prize-stand.second:hover .prize-card {
  border-color: rgba(192, 192, 192, 0.4);
}

.prize-stand.third:hover .prize-card {
  border-color: rgba(205, 127, 50, 0.4);
}

/* ============================================
   CARD DIVIDER
   ============================================ */
.card-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  margin: 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.divider-label {
  padding: 0 16px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ============================================
   LEADERBOARD
   ============================================ */
.leaderboard {
  padding: 20px 24px 24px;
}

.leaderboard-header {
  display: grid;
  grid-template-columns: 60px 1fr 100px 80px;
  gap: 12px;
  padding: 0 12px 12px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Leaderboard Row */
.leaderboard-row {
  display: grid;
  grid-template-columns: 60px 1fr 100px 80px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-bottom: 8px;
  background: var(--surface-glass);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.leaderboard-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.leaderboard-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
}

.leaderboard-row.rank-1 {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.02));
  border-color: rgba(255, 215, 0, 0.15);
}

.leaderboard-row.rank-2 {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.06), rgba(192, 192, 192, 0.01));
  border-color: rgba(192, 192, 192, 0.12);
}

.leaderboard-row.rank-3 {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.06), rgba(205, 127, 50, 0.01));
  border-color: rgba(205, 127, 50, 0.12);
}

.leaderboard-row.current-user {
  border-color: var(--hof-emerald) !important;
  background: rgba(16, 185, 129, 0.08) !important;
}

/* Row Rank */
.row-rank {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Mini Medal */
.mini-medal {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
}

.mini-medal.gold {
  background: linear-gradient(135deg, var(--medal-gold), var(--medal-gold-dark));
  color: #1a1500;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.mini-medal.silver {
  background: linear-gradient(135deg, var(--medal-silver), var(--medal-silver-dark));
  color: #1a1a1a;
}

.mini-medal.bronze {
  background: linear-gradient(135deg, var(--medal-bronze), var(--medal-bronze-dark));
  color: #1a1000;
}

/* Row Player */
.row-player {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.player-avatar-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   CR-USER-AVATAR Overrides for Hall of Fame
   Uses shared cr-avatar-standard.css base
   ============================================ */

/* Ensure avatars work in Hall of Fame context */
.hof-section .cr-user-avatar,
.hof-podium .cr-user-avatar {
  flex-shrink: 0;
}

/* Purple background for inner circle (matches site theme) */
.hof-section .cr-user-avatar__inner,
.hof-podium .cr-user-avatar__inner {
  background: linear-gradient(145deg, #7C3AED, #6B21A8);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.player-details {
  min-width: 0;
}

.player-name {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.you-tag {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 6px;
  background: var(--hof-emerald);
  color: #fff;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.player-level {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Row Values */
.row-wagered {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--hof-emerald);
  text-align: right;
}

.row-prize {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--hof-gold);
  text-align: right;
}

.row-prize.no-prize {
  color: var(--text-muted);
}

/* Leaderboard Separator */
.leaderboard-sep {
  text-align: center;
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
}

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

.empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--text-muted);
  opacity: 0.5;
}

.empty-icon svg { width: 100%; height: 100%; }

.empty-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.empty-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.stat-card.gold:hover { border-color: rgba(245, 166, 35, 0.3); }
.stat-card.green:hover { border-color: rgba(16, 185, 129, 0.3); }
.stat-card.purple:hover { border-color: rgba(139, 92, 246, 0.3); }

.stat-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.stat-card.gold .stat-card-icon {
  background: rgba(245, 166, 35, 0.1);
  color: var(--hof-gold);
}

.stat-card.green .stat-card-icon {
  background: rgba(16, 185, 129, 0.1);
  color: var(--hof-emerald);
}

.stat-card.purple .stat-card-icon {
  background: rgba(139, 92, 246, 0.1);
  color: var(--hof-violet);
}

.stat-card-icon svg { width: 22px; height: 22px; }

.stat-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.stat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface-glass);
  border-radius: var(--radius-md);
}

.stat-item-rank {
  flex-shrink: 0;
}

.stat-item-player {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.stat-item-avatar-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-item-name {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-item-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.stat-item-value.gold { color: var(--hof-gold); }
.stat-item-value.green { color: var(--hof-emerald); }
.stat-item-value.purple { color: var(--hof-violet); }

.stat-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.hof-cta {
  position: relative;
  padding: 80px 24px;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, var(--hof-gold-glow) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.3;
}

.cta-content {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.cta-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(245, 166, 35, 0.05));
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: var(--radius-xl);
  color: var(--hof-gold);
  margin-bottom: 24px;
}

.cta-icon svg { width: 32px; height: 32px; }

.cta-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-text {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--hof-gold), #e09b00);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #0a0f14;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-bounce);
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px var(--hof-gold-glow);
}

.cta-btn-icon svg,
.cta-btn-arrow svg {
  width: 20px;
  height: 20px;
}

.cta-btn-arrow {
  transition: transform 0.3s ease;
}

.cta-btn:hover .cta-btn-arrow {
  transform: translateX(4px);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  background: var(--hof-bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlide 0.3s var(--ease-bounce);
}

@keyframes modalSlide {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-title-icon {
  width: 28px;
  height: 28px;
  color: var(--hof-gold);
}

.modal-title-icon svg { width: 100%; height: 100%; }

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-glass);
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal-close svg { width: 18px; height: 18px; }

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.modal-section {
  margin-bottom: 24px;
}

.modal-section:last-child { margin-bottom: 0; }

.modal-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.modal-section-icon {
  width: 20px;
  height: 20px;
  color: var(--hof-gold);
}

.modal-section-icon svg { width: 100%; height: 100%; }

.modal-info {
  padding: 14px 16px;
  background: var(--surface-glass);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-step {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--surface-glass);
  border-radius: var(--radius-md);
}

.modal-step-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--hof-gold), #e09b00);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: #0a0f14;
  flex-shrink: 0;
}

.modal-step-content strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.modal-step-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.modal-rewards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-reward {
  flex: 1;
  min-width: 80px;
  padding: 12px;
  background: var(--surface-glass);
  border-radius: var(--radius-md);
  text-align: center;
}

.modal-reward-place {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.modal-reward-amount {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.modal-list-icon {
  width: 18px;
  height: 18px;
  color: var(--hof-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-list-icon svg { width: 100%; height: 100%; }

.modal-list-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
}

.modal-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--hof-gold), #e09b00);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #0a0f14;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--hof-gold-glow);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hof-hero {
    min-height: auto;
    padding: 100px 20px 60px;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-chip {
    padding: 12px 18px;
  }

  .scroll-indicator {
    bottom: 24px;
  }

  .hof-section {
    padding: 60px 16px;
  }

  .competitions-grid {
    gap: 24px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .card-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .premium-podium {
    padding: 30px 12px 40px;
  }

  .podium-container {
    gap: 8px;
  }

  .prize-card {
    padding: 16px 12px;
  }

  .prize-trophy {
    width: 50px;
    height: 50px;
  }

  .prize-stand.first .prize-trophy {
    width: 65px;
    height: 65px;
  }

  .prize-value {
    font-size: 1.4rem;
  }

  .prize-stand.first .prize-value {
    font-size: 1.8rem;
  }

  .prize-stand.first .pedestal-body { height: 60px; }
  .prize-stand.second .pedestal-body { height: 40px; }
  .prize-stand.third .pedestal-body { height: 28px; }

  .leaderboard-header,
  .leaderboard-row {
    grid-template-columns: 50px 1fr 80px 70px;
    gap: 8px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .stat-chip {
    flex: 1;
    min-width: 100px;
  }

  .prize-rank-badge {
    padding: 4px 14px;
    font-size: 0.55rem;
  }

  .leaderboard-header,
  .leaderboard-row {
    grid-template-columns: 40px 1fr 70px;
  }

  .leaderboard-header span:last-child,
  .row-prize {
    display: none;
  }
}
