/* index.css */
:root {
  /* Heavy Premium Brand Colors - LIGHT DEFAULT */
  --bg-deep: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.15);
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  
  --brand-pink: #f43f5e; /* Deep rich rose/pink */
  --brand-pink-glow: rgba(244, 63, 94, 0.6);
  
  --brand-teal: #0d9488; /* Deep vibrant teal */
  --brand-teal-glow: rgba(13, 148, 136, 0.6);
  
  --accent-gold: #fbbf24;
  
  --font-main: 'Outfit', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-main);
  /* Light premium atmospheric background */
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(244, 63, 94, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(13, 148, 136, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, var(--bg-deep) 100%);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Dark Mode Overrides */
body.dark-mode {
  --bg-deep: #07070a;
  --bg-card: rgba(18, 18, 24, 0.75);
  --bg-card-hover: rgba(28, 28, 38, 0.85);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.15);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(244, 63, 94, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(13, 148, 136, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.8) 0%, var(--bg-deep) 100%);
}

body.dark-mode .header {
  background: rgba(7, 7, 10, 0.8);
}

body.dark-mode .btn-primary {
  background: #fff;
  color: #0f172a;
}

body.dark-mode .btn-primary:hover {
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

body.dark-mode .leaderboard-row {
  background: transparent;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

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

/* Glassmorphism */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
  border-radius: 24px;
}



/* --- Main Content --- */
.main-content {
  padding: 80px 0;
}

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 100px;
}

.hero-text-col {
  flex: 1;
}

.hero-tags-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.campaign-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(244, 63, 94, 0.15);
  color: var(--brand-pink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.countdown-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-color);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.countdown-inline strong {
  color: var(--text-main);
  font-family: monospace;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 80px;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 40px;
}

.hero-prizes {
  display: flex;
  gap: 20px;
}

.prize-card {
  flex: 1;
  padding: 24px;
  border-radius: 20px;
}

.prize-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.prize-value {
  font-size: 24px;
  font-weight: 800;
}

.floating-character {
  position: absolute;
  top: -80px;
  right: -20px;
  width: 130px;
  height: auto;
  z-index: 10;
  animation: float-character 4s ease-in-out infinite;
  filter: drop-shadow(0 15px 20px rgba(0,0,0,0.25));
  pointer-events: none;
}

@keyframes float-character {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Hero Highlight Card */
.hero-highlight-col {
  flex: 1;
  max-width: 450px;
  width: 100%;
}

.highlight-card {
  padding: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.highlight-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: var(--brand-pink);
  filter: blur(80px);
  opacity: 0.2;
  border-radius: 50%;
  pointer-events: none;
}

.highlight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.highlight-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.live-badge {
  background: var(--brand-teal);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--brand-teal-glow); }
  70% { box-shadow: 0 0 0 10px rgba(13, 148, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

.highlight-user {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.user-avatar-wrapper {
  position: relative;
}

.leader-crown {
  position: absolute;
  top: -24px;
  left: 0px;
  transform: rotate(-20deg);
  font-size: 38px;
  color: var(--accent-gold);
  z-index: 10;
  filter: drop-shadow(0 4px 15px rgba(251, 191, 36, 0.8));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(-20deg); }
  50% { transform: translateY(-6px) rotate(-15deg); }
  100% { transform: translateY(0px) rotate(-20deg); }
}

.user-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-pink);
  box-shadow: 0 0 20px var(--brand-pink-glow);
}

.user-rank {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 32px;
  height: 32px;
  background: var(--accent-gold);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 16px;
  border: 3px solid var(--bg-card);
}

.user-info h3 {
  font-size: 32px;
  margin-bottom: 4px;
}

.user-score {
  color: var(--brand-pink);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.highlight-footer {
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.update-status {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  border: 1px solid var(--border-color);
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 100px;
}

.stat-card {
  padding: 30px 24px;
  text-align: center;
}

.stat-label {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.stat-value {
  font-size: 40px;
  font-weight: 800;
}

/* Leaderboard Section */
.leaderboard-section {
  margin-bottom: 120px;
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.leaderboard-title {
  font-size: 40px;
  margin-bottom: 8px;
}

.leaderboard-subtitle {
  color: var(--text-muted);
  font-size: 18px;
}

.live-indicator-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(244, 63, 94, 0.1);
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--brand-pink);
  border-radius: 50%;
  animation: pulse-pink 2s infinite;
}

@keyframes pulse-pink {
  0% { box-shadow: 0 0 0 0 var(--brand-pink-glow); }
  70% { box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

.live-text {
  color: var(--brand-pink);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.leaderboard-container {
  padding: 30px;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  margin-bottom: 12px;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.leaderboard-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateX(8px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.row-rank {
  width: 60px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-muted);
}

.row-rank.top-1 { color: var(--accent-gold); }
.row-rank.top-2 { color: #cbd5e1; }
.row-rank.top-3 { color: #b45309; }

.row-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-right: 20px;
  border: 2px solid var(--border-light);
}

.row-user {
  flex: 1;
}

.row-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.row-handle {
  font-size: 14px;
  color: var(--text-muted);
}

.row-score {
  text-align: right;
}

.score-value {
  font-size: 28px;
  font-weight: 800;
}

.row-rank.top-1 ~ .row-score .score-value { color: var(--brand-pink); }

.score-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 80px 40px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-glow-1 {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: var(--brand-teal);
  filter: blur(120px);
  opacity: 0.15;
  border-radius: 50%;
  z-index: 1;
}

.cta-glow-2 {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--brand-pink);
  filter: blur(120px);
  opacity: 0.15;
  border-radius: 50%;
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 48px;
  margin-bottom: 20px;
}

.cta-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.btn-large {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand-pink), #be185d);
  color: #fff;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 100px;
  box-shadow: 0 10px 30px var(--brand-pink-glow);
  transition: var(--transition-smooth);
}

.btn-large:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(244, 63, 94, 0.8);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0;
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 14px;
}

.footer p {
  margin-bottom: 8px;
}

/* Badges & Banners */
.you-banner {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 16px;
  margin-bottom: 24px;
  gap: 16px;
}

.you-banner-rank {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-gold);
  padding: 8px 16px;
  background: rgba(251, 191, 36, 0.15);
  border-radius: 12px;
}

.you-banner-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.rank-badge {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-left: 20px;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.leaderboard-row:hover .rank-badge {
  transform: scale(1.1) rotate(5deg);
}

.badge-gold { 
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.badge-silver { 
  background: linear-gradient(135deg, #94a3b8, #475569);
  box-shadow: 0 6px 20px rgba(148, 163, 184, 0.4);
}

.badge-bronze { 
  background: linear-gradient(135deg, #b45309, #78350f);
  box-shadow: 0 6px 20px rgba(180, 83, 9, 0.4);
}

.badge-hex { 
  background: linear-gradient(135deg, #fbbf24, #d97706); 
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border-radius: 0;
  box-shadow: none;
}

.active-user-row {
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.05);
}

.active-user-row:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: var(--accent-gold);
}


/* Countdown Banner */
.countdown-banner {
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-teal));
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  z-index: 100;
  letter-spacing: 0.5px;
}

.countdown-banner strong {
  font-family: monospace;
  font-size: 16px;
  margin-left: 8px;
  background: rgba(0,0,0,0.2);
  padding: 4px 8px;
  border-radius: 4px;
}

/* How to Play Section Wrapper - Brand Theme */
.how-to-play-section {
  padding: 80px 40px;
  margin: 80px 0;
  background: #3B101A; /* Dark burgundy from logo */
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  z-index: 10;
  color: #fff;
}

/* Header overrides for Brand Theme */
.how-to-header .how-to-title {
  color: #fff !important;
}
.how-to-header p {
  color: rgba(255,255,255,0.7) !important;
}

/* Live Badge override for this section */
.how-to-play-section .live-badge {
  background: rgba(167, 179, 114, 0.15) !important;
  color: #A7B372 !important; /* Olive green from logo */
  border: 1px solid rgba(167, 179, 114, 0.3);
}

/* How to Play Redesign - Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step-card {
  background: rgba(167, 179, 114, 0.05); /* Tint of olive green */
  border: 1px solid rgba(167, 179, 114, 0.1);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  transform: translateY(-5px);
  background: rgba(167, 179, 114, 0.12);
  border-color: rgba(167, 179, 114, 0.3);
}

/* Card Number like "01." */
.step-number {
  font-size: 32px;
  font-weight: 800;
  color: #A7B372; /* Olive green */
  margin-bottom: 20px;
  display: block;
}

.step-card-title {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 30px;
  line-height: 1.3;
}

.step-card-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-top: auto;
}




.rules-meta {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rules-meta p {
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.dark-mode .rules-meta {
  background: rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title { font-size: 60px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-section { gap: 40px; }
}

@media (max-width: 768px) {
  .main-content { padding: 40px 20px; }
  
  .header-content {
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px;
  }
  
  .how-to-play-section {
    padding: 30px 25px;
    margin: 70px 0;
    border-radius: 30px;
  }

  .hero-section {
    flex-direction: column;
    text-align: center;
    margin-bottom: 60px;
    gap: 40px;
  }
  
  .hero-title { font-size: 44px; margin-bottom: 16px; }
  .hero-desc { margin: 0 auto 32px auto; font-size: 16px; }
  .hero-prizes { flex-direction: column; gap: 16px; }
  .campaign-tag { margin-bottom: 16px; }
  
  .stats-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 60px; }
  .stat-card { padding: 20px; }
  
  .highlight-card { padding: 24px; }
  
  .leaderboard-section { margin-bottom: 80px; }
  .leaderboard-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .leaderboard-title { font-size: 32px; }
  .leaderboard-container { padding: 16px; }
  
  .leaderboard-row {
    padding: 12px;
    gap: 12px;
  }
  .row-rank { font-size: 16px; min-width: 24px; }
  .row-avatar {
    width: 44px;
    height: 44px;
    margin-right: 0;
  }
  .row-name { font-size: 15px; }
  .row-handle { font-size: 13px; }
  .score-value { font-size: 18px; }
  .rank-badge { 
    width: 36px; 
    height: 36px; 
    font-size: 16px; 
    margin-left: auto; 
  }
  
  .cta-title { font-size: 28px; }
  .cta-desc { font-size: 16px; }
  .btn-large { padding: 16px 32px; font-size: 16px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 36px; }
  .score-label { display: none; } /* Hide "Entries" on very small screens */
  .rank-badge { margin-left: 8px; }
}
