/* ===================================
   Royal77 New Year KOL Landing Page
   Futuristic Cyberpunk + CNY Theme
   =================================== */

/* CSS Variables */
:root {
  /* Primary Colors - Dark + Neon Blue Theme */
  --red-deep: #8B0000;
  --red-primary: #C41E3A;
  --red-bright: #DC143C;
  --red-light: #FF6B6B;
  --red-neon: #FF073A;

  /* Neon Blue/Cyan as Primary Accent */
  --gold-deep: #00A3CC;
  --gold-primary: #00E5FF;
  --gold-light: #80F0FF;
  --gold-pale: #E0FAFF;
  --gold-neon: #00D4FF;

  /* Cyberpunk Accent Colors */
  --cyan-glow: #00F5FF;
  --purple-glow: #BF00FF;
  --blue-electric: #0066FF;

  /* Background Colors - Darker */
  --bg-dark: #0A0A0F;
  --bg-card: rgba(10, 15, 25, 0.9);
  --bg-card-solid: #0A0F19;
  --bg-card-hover: rgba(15, 25, 40, 0.95);
  --bg-overlay: rgba(0, 0, 0, 0.85);

  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #A0B0C0;
  --text-muted: #506070;

  /* Gradients - Neon Blue */
  --gradient-gold: linear-gradient(135deg, #00A3CC 0%, #00E5FF 50%, #80F0FF 100%);
  --gradient-red: linear-gradient(135deg, var(--red-deep) 0%, var(--red-primary) 50%, var(--red-bright) 100%);
  --gradient-hero: linear-gradient(180deg, rgba(0, 50, 80, 0.6) 0%, rgba(10, 10, 15, 0.98) 100%);
  --gradient-cyber: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, rgba(0, 102, 255, 0.1) 100%);
  --gradient-card: linear-gradient(145deg, rgba(15, 25, 40, 0.95) 0%, rgba(10, 15, 25, 0.98) 100%);

  /* Effects - Neon Blue Glows */
  --glow-gold: 0 0 30px rgba(0, 229, 255, 0.5), 0 0 60px rgba(0, 229, 255, 0.2);
  --glow-red: 0 0 30px rgba(255, 7, 58, 0.5), 0 0 60px rgba(255, 7, 58, 0.2);
  --glow-cyan: 0 0 20px rgba(0, 245, 255, 0.4);
  --glow-purple: 0 0 20px rgba(191, 0, 255, 0.4);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.7);
  --shadow-hover: 0 20px 60px rgba(0, 229, 255, 0.25), 0 0 40px rgba(0, 229, 255, 0.15);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Futuristic Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Accessibility - Focus Styles */
:focus-visible {
  outline: 3px solid var(--cyan-glow);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--cyan-glow);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

.text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* ===================================
   Red Packet Rain Animation (红包雨)
   =================================== */
.hongbao-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.hongbao {
  position: absolute;
  top: -120px;
  width: 50px;
  height: 70px;
  background: linear-gradient(145deg, #FF1A1A 0%, #CC0000 50%, #AA0000 100%);
  border-radius: 4px;
  animation: hongbaoFall linear infinite;
  filter: drop-shadow(0 4px 15px rgba(255, 0, 0, 0.5));
  transform-origin: center;
  border: 2px solid #FFD700;
  box-shadow:
    inset 0 0 15px rgba(255, 215, 0, 0.3),
    0 0 20px rgba(255, 0, 0, 0.4);
}

/* Royal77 blue R icon on red packet */
.hongbao::before {
  content: 'R';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #00D4FF;
  text-shadow:
    0 0 15px rgba(0, 212, 255, 0.9),
    0 0 30px rgba(0, 212, 255, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Gold decorative frame */
.hongbao::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 2px;
}

/* Gold seal at top */
.hongbao .seal {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #FFE066 0%, #FFD700 50%, #B8860B 100%);
  border-radius: 50%;
  border: 1px solid #8B6914;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hongbao:nth-child(1) {
  left: 5%;
  animation-duration: 8s;
  animation-delay: 0s;
  width: 45px;
  height: 63px;
}

.hongbao:nth-child(2) {
  left: 15%;
  animation-duration: 10s;
  animation-delay: 1s;
  width: 55px;
  height: 77px;
}

.hongbao:nth-child(3) {
  left: 25%;
  animation-duration: 7s;
  animation-delay: 2s;
  width: 40px;
  height: 56px;
}

.hongbao:nth-child(4) {
  left: 35%;
  animation-duration: 9s;
  animation-delay: 0.5s;
  width: 50px;
  height: 70px;
}

.hongbao:nth-child(5) {
  left: 45%;
  animation-duration: 11s;
  animation-delay: 3s;
  width: 48px;
  height: 67px;
}

.hongbao:nth-child(6) {
  left: 55%;
  animation-duration: 8s;
  animation-delay: 1.5s;
  width: 55px;
  height: 77px;
}

.hongbao:nth-child(7) {
  left: 65%;
  animation-duration: 10s;
  animation-delay: 2.5s;
  width: 50px;
  height: 70px;
}

.hongbao:nth-child(8) {
  left: 75%;
  animation-duration: 7s;
  animation-delay: 0.8s;
  width: 52px;
  height: 73px;
}

.hongbao:nth-child(9) {
  left: 85%;
  animation-duration: 9s;
  animation-delay: 3.5s;
  width: 42px;
  height: 59px;
}

.hongbao:nth-child(10) {
  left: 95%;
  animation-duration: 12s;
  animation-delay: 1.2s;
  width: 50px;
  height: 70px;
}

@keyframes hongbaoFall {
  0% {
    transform: translateX(0) translateY(-120px) rotate(-15deg) scale(1);
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  50% {
    transform: translateX(80px) translateY(55vh) rotate(5deg) scale(0.95);
  }

  92% {
    opacity: 1;
  }

  100% {
    transform: translateX(150px) translateY(110vh) rotate(20deg) scale(0.85);
    opacity: 0;
  }
}

/* ===================================
   Fireworks Shooting Up Effect (烟花)
   =================================== */
.fireworks-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 998;
  overflow: hidden;
}

.firework {
  position: absolute;
  bottom: -20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: fireworkShoot linear forwards;
}

.firework::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 40px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to top, transparent, currentColor);
  border-radius: 2px;
}

.firework.gold {
  color: #FFD700;
  background: #FFD700;
  box-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700;
}

.firework.red {
  color: #FF073A;
  background: #FF073A;
  box-shadow: 0 0 10px #FF073A, 0 0 20px #FF073A;
}

.firework.cyan {
  color: #00F5FF;
  background: #00F5FF;
  box-shadow: 0 0 10px #00F5FF, 0 0 20px #00F5FF;
}

.firework.purple {
  color: #BF00FF;
  background: #BF00FF;
  box-shadow: 0 0 10px #BF00FF, 0 0 20px #BF00FF;
}

/* Explosion effect */
.firework-burst {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: burst 1s ease-out forwards;
}

@keyframes fireworkShoot {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateY(-70vh) scale(0.5);
    opacity: 0;
  }
}

@keyframes burst {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 1;
  }

  100% {
    transform: scale(0) translate(var(--tx), var(--ty));
    opacity: 0;
  }
}

/* ===================================
   Futuristic Particle Background
   =================================== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particles::before,
.particles::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background-image:
    radial-gradient(3px 3px at 20px 30px, var(--gold-primary), transparent),
    radial-gradient(2px 2px at 40px 70px, var(--cyan-glow), transparent),
    radial-gradient(3px 3px at 50px 160px, var(--gold-primary), transparent),
    radial-gradient(2px 2px at 90px 40px, var(--purple-glow), transparent),
    radial-gradient(3px 3px at 130px 80px, var(--gold-primary), transparent),
    radial-gradient(2px 2px at 160px 120px, var(--red-neon), transparent),
    radial-gradient(2px 2px at 180px 90px, var(--cyan-glow), transparent);
  background-size: 200px 200px;
  animation: particleFloat 30s linear infinite;
  opacity: 0.5;
}

.particles::after {
  animation-delay: -15s;
  background-position: 100px 100px;
  opacity: 0.3;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0);
  }

  50% {
    transform: translateY(-100px) translateX(50px);
  }

  100% {
    transform: translateY(-200px) translateX(0);
  }
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--gold-primary);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width var(--transition-normal);
  box-shadow: 0 0 10px var(--gold-primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  padding: 100px var(--space-md) var(--space-2xl);
  overflow: hidden;
}

/* Futuristic hex pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 17.32v25.36L30 60 0 42.68V17.32z' fill='none' stroke='%23FFD700' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(45deg, rgba(191, 0, 255, 0.05) 0%, transparent 50%, rgba(0, 245, 255, 0.05) 100%);
  pointer-events: none;
}

/* Glowing orbs */
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.15) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation: orbFloat 10s ease-in-out infinite;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(50px, 50px);
  }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  animation: pulse 2s infinite;
  box-shadow: var(--glow-gold);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.3), 0 4px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

/* Countdown Timer - Futuristic */
.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.countdown-item {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  min-width: 100px;
  box-shadow: var(--glow-gold), inset 0 0 30px rgba(255, 215, 0, 0.05);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.countdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
}

.countdown-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

.countdown-value {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold-primary);
  line-height: 1;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.countdown-separator {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* Hero CTA Buttons */
.hero-cta {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Buttons - Futuristic */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--bg-dark);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4), 0 0 40px rgba(255, 215, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-primary);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.btn-lg {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}

/* Lantern Decorations - Enhanced */
.lantern {
  position: absolute;
  font-size: 4rem;
  animation: lanternSwing 3s ease-in-out infinite;
  opacity: 0.9;
  filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5));
}

.lantern-left {
  top: 100px;
  left: 5%;
  animation-delay: 0s;
}

.lantern-right {
  top: 120px;
  right: 5%;
  animation-delay: -1.5s;
}

@keyframes lanternSwing {

  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }

  50% {
    transform: rotate(8deg) translateY(-10px);
  }
}

/* ===================================
   Section Styles
   =================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: var(--space-sm);
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.update-time {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: var(--space-xs);
  font-family: 'Courier New', monospace;
}

/* ===================================
   KOL Grid Section
   =================================== */
.kol-section {
  padding: var(--space-2xl) 0;
  position: relative;
  z-index: 1;
}

.kol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* KOL Card - Futuristic Glassmorphism */
.kol-card {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(255, 215, 0, 0.15);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out backwards;
  backdrop-filter: blur(20px);
}

/* Corner accents - robotic feel */
.kol-card::before,
.kol-card::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--gold-primary);
  opacity: 0.5;
  transition: all var(--transition-normal);
}

.kol-card::before {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.kol-card::after {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

.kol-card:hover::before,
.kol-card:hover::after {
  opacity: 1;
  width: 40px;
  height: 40px;
}

/* Scan line effect */
.kol-card .scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
  animation: scanLine 3s linear infinite;
  opacity: 0;
}

.kol-card:hover .scan-line {
  opacity: 1;
}

@keyframes scanLine {
  0% {
    top: 0;
  }

  100% {
    top: 100%;
  }
}

.kol-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-hover), 0 0 50px rgba(255, 215, 0, 0.1);
}

/* Top 3 Card Styling */
.kol-card.rank-1 {
  border-color: var(--gold-primary);
  box-shadow: var(--glow-gold);
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.1) 0%, rgba(15, 15, 25, 0.95) 100%);
}

.kol-card.rank-1::before,
.kol-card.rank-1::after {
  border-color: var(--gold-primary);
  opacity: 1;
}

.kol-card.rank-2 {
  border-color: rgba(192, 192, 192, 0.5);
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.2);
}

.kol-card.rank-3 {
  border-color: rgba(205, 127, 50, 0.5);
  box-shadow: 0 0 20px rgba(205, 127, 50, 0.2);
}

.kol-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

/* Cyberpunk Corner Decorations */
.cyber-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gold-primary);
  opacity: 0.6;
  transition: all var(--transition-normal);
}

.cyber-corner.top-left {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}

.cyber-corner.top-right {
  top: 8px;
  right: 8px;
  border-left: none;
  border-bottom: none;
}

.cyber-corner.bottom-left {
  bottom: 8px;
  left: 8px;
  border-right: none;
  border-top: none;
}

.cyber-corner.bottom-right {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}

.kol-card:hover .cyber-corner {
  width: 30px;
  height: 30px;
  opacity: 1;
  border-color: var(--cyan-glow);
  box-shadow: 0 0 10px var(--cyan-glow);
}

/* Instagram-style gradient ring for avatars - LARGER */
.kol-avatar-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(220, 39, 67, 0.4);
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(220, 39, 67, 0.4);
  }

  50% {
    box-shadow: 0 0 30px rgba(220, 39, 67, 0.6), 0 0 40px rgba(188, 24, 136, 0.3);
  }
}

.kol-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-card-solid);
  background: var(--bg-card-hover);
}

.kol-avatar-placeholder {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  border: 3px solid var(--bg-card-solid);
  position: relative;
  overflow: hidden;
}

/* Shimmer effect on avatar */
.kol-avatar-placeholder::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: avatarShimmer 2s ease-in-out infinite;
}

@keyframes avatarShimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.kol-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.kol-handle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: 'Courier New', monospace;
}

.kol-rank-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.kol-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.metric-item {
  text-align: center;
  padding: var(--space-sm);
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 215, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.metric-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.metric-item:hover::before {
  transform: scaleX(1);
}

.metric-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-primary);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.metric-value.pop {
  animation: numberPop 0.4s ease-out;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kol-score {
  text-align: center;
  padding: var(--space-md);
  background: var(--gradient-gold);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  position: relative;
  overflow: hidden;
}

.kol-score::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: scoreShine 2s infinite;
}

@keyframes scoreShine {
  100% {
    left: 150%;
  }
}

.score-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--bg-dark);
  position: relative;
  z-index: 1;
}

.score-label {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}

.kol-action {
  text-align: center;
}

.kol-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.kol-link:hover {
  color: var(--gold-primary);
  border-color: rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.05);
}

/* Loading State */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-secondary);
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid var(--bg-card-hover);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* ===================================
   Leaderboard Section
   =================================== */
.leaderboard-section {
  padding: var(--space-2xl) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(139, 0, 0, 0.15) 50%, transparent 100%);
  position: relative;
  z-index: 1;
}

.leaderboard {
  max-width: 800px;
  margin: 0 auto;
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  border: 2px solid rgba(255, 215, 0, 0.3);
  overflow: hidden;
  box-shadow: var(--glow-gold), 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  position: relative;
}

/* Circuit pattern overlay */
.leaderboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 215, 0, 0.03) 50%, transparent 51%),
    linear-gradient(transparent 49%, rgba(255, 215, 0, 0.03) 50%, transparent 51%);
  background-size: 30px 30px;
  pointer-events: none;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
  position: relative;
}

.leaderboard-item:last-child {
  border-bottom: none;
}

.leaderboard-item:hover {
  background: rgba(255, 215, 0, 0.05);
}

.leaderboard-item.rank-1 {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.15) 0%, transparent 100%);
}

.leaderboard-item.rank-2 {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, transparent 100%);
}

.leaderboard-item.rank-3 {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.1) 0%, transparent 100%);
}

.leaderboard-rank {
  width: 50px;
  font-size: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.leaderboard-rank.gold {
  color: var(--gold-primary);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.leaderboard-rank.silver {
  color: #C0C0C0;
  text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.leaderboard-rank.bronze {
  color: #CD7F32;
  text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

/* Instagram-style gradient ring for leaderboard avatars */
.leaderboard-avatar-wrapper {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  padding: 2px;
  margin-right: var(--space-md);
  flex-shrink: 0;
}

.leaderboard-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-card-solid);
}

.leaderboard-avatar-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--bg-card-solid);
}

.leaderboard-info {
  flex: 1;
}

.leaderboard-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.leaderboard-handle {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
}

.leaderboard-score {
  text-align: right;
}

.leaderboard-score-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.leaderboard-score-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===================================
   Prizes Section
   =================================== */
.prizes-section {
  padding: var(--space-2xl) 0;
  position: relative;
  z-index: 1;
}

.prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.prize-card {
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

/* Hexagon overlay */
.prize-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0L40 11.55v16.9L20 40 0 28.45v-16.9z' fill='none' stroke='%23FFD700' stroke-opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

.prize-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.prize-gold {
  border-color: var(--gold-primary);
  box-shadow: var(--glow-gold);
}

.prize-silver {
  border-color: rgba(192, 192, 192, 0.5);
  box-shadow: 0 0 30px rgba(192, 192, 192, 0.2);
}

.prize-bronze {
  border-color: rgba(205, 127, 50, 0.5);
  box-shadow: 0 0 30px rgba(205, 127, 50, 0.2);
}

/* Custom Medal Icons */
.prize-medal {
  position: relative;
  width: 80px;
  height: 100px;
  margin: 0 auto var(--space-md);
}

.medal-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 30px;
  background: linear-gradient(135deg, #4DA6FF 0%, #2B7FD4 50%, #1E5FA3 100%);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 50% 70%, 15% 100%);
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.medal-ribbon::before,
.medal-ribbon::after {
  content: '';
  position: absolute;
  top: 0;
  width: 12px;
  height: 100%;
  background: linear-gradient(135deg, #3A8FE8 0%, #2575C5 100%);
}

.medal-ribbon::before {
  left: 5px;
  transform: skewY(-15deg);
}

.medal-ribbon::after {
  right: 5px;
  transform: skewY(15deg);
}

.medal-circle {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 2px 10px rgba(255, 255, 255, 0.3),
    inset 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.medal-circle.gold {
  background: linear-gradient(145deg, #FFE066 0%, #FFD700 30%, #F0B800 70%, #D4A000 100%);
  border: 3px solid #B8860B;
  animation: medalGlow 2s ease-in-out infinite;
}

.medal-circle.silver {
  background: linear-gradient(145deg, #F0F0F0 0%, #C0C0C0 30%, #A8A8A8 70%, #909090 100%);
  border: 3px solid #808080;
}

.medal-circle.bronze {
  background: linear-gradient(145deg, #E8A060 0%, #CD7F32 30%, #B86E28 70%, #A05A1E 100%);
  border: 3px solid #8B4513;
}

@keyframes medalGlow {

  0%,
  100% {
    box-shadow:
      0 4px 15px rgba(0, 0, 0, 0.3),
      inset 0 2px 10px rgba(255, 255, 255, 0.3),
      inset 0 -2px 10px rgba(0, 0, 0, 0.2),
      0 0 30px rgba(255, 215, 0, 0.5);
  }

  50% {
    box-shadow:
      0 4px 15px rgba(0, 0, 0, 0.3),
      inset 0 2px 10px rgba(255, 255, 255, 0.3),
      inset 0 -2px 10px rgba(0, 0, 0, 0.2),
      0 0 50px rgba(255, 215, 0, 0.8);
  }
}

/* Floating angpow decorations on prize cards */
.prize-card::after {
  content: '🧧';
  position: absolute;
  font-size: 1.2rem;
  opacity: 0.6;
  animation: floatAngpow 4s ease-in-out infinite;
}

.prize-gold::after {
  top: 15px;
  right: 20px;
  animation-delay: 0s;
}

.prize-silver::after {
  top: 20px;
  left: 15px;
  animation-delay: -1.5s;
}

.prize-bronze::after {
  bottom: 60px;
  right: 15px;
  animation-delay: -3s;
}

@keyframes floatAngpow {

  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

/* Angpow Image Styling for Prizes */
.prize-angpow {
  position: relative;
  width: 100px;
  height: 140px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.angpow-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 25px rgba(255, 0, 0, 0.4));
  transition: all var(--transition-normal);
}

.prize-card:hover .angpow-img {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 12px 35px rgba(255, 0, 0, 0.6));
}

.prize-gold .angpow-img {
  filter: drop-shadow(0 8px 25px rgba(255, 215, 0, 0.5));
  animation: angpowFloat 3s ease-in-out infinite;
}

.prize-silver .angpow-img {
  filter: drop-shadow(0 8px 25px rgba(192, 192, 192, 0.5));
  animation: angpowFloat 3.5s ease-in-out infinite;
  animation-delay: -1s;
}

.prize-bronze .angpow-img {
  filter: drop-shadow(0 8px 25px rgba(205, 127, 50, 0.5));
  animation: angpowFloat 4s ease-in-out infinite;
  animation-delay: -2s;
}

@keyframes angpowFloat {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

.prize-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.prize-amount {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
}

.prize-extras {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.prize-note {
  text-align: center;
  margin-top: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-lg);
  color: var(--gold-light);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(10px);
}

/* ===================================
   Rules Section
   =================================== */
.rules-section {
  padding: var(--space-2xl) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(139, 0, 0, 0.1) 100%);
  position: relative;
  z-index: 1;
}

.rules-content {
  max-width: 800px;
  margin: 0 auto;
}

.rule-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  border-left: 4px solid var(--gold-primary);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.rule-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-gold);
  box-shadow: 0 0 20px var(--gold-primary);
}

.rule-item:hover {
  transform: translateX(10px);
  background: rgba(255, 215, 0, 0.05);
}

.rule-number {
  width: 45px;
  height: 45px;
  background: var(--gradient-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--bg-dark);
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.rule-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--gold-primary);
}

.rule-text p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================================
   Campaign Banner
   =================================== */
.campaign-banner {
  padding: var(--space-2xl) 0;
  background: var(--gradient-red);
  position: relative;
  z-index: 1;
  text-align: center;
  overflow: hidden;
}

.campaign-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='50' y='50' font-size='30' text-anchor='middle' fill='%23FFD700' fill-opacity='0.1'%3E福%3C/text%3E%3C/svg%3E");
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 1;
}

.banner-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: var(--space-sm);
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.banner-content p {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

/* ===================================
   Footer
   =================================== */
.footer {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-logo-img {
  height: 35px;
  opacity: 0.8;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.2));
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--gold-primary);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  font-size: 1.5rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  filter: brightness(0.8);
}

.social-link:hover {
  transform: scale(1.2);
  filter: brightness(1) drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.footer-copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===================================
   CNY Decorative Elements
   =================================== */
.cny-border-top,
.cny-border-bottom {
  position: fixed;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
  z-index: 9999;
}

.cny-border-top {
  top: 0;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.cny-border-bottom {
  bottom: 0;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes numberPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
    color: var(--gold-light);
    text-shadow: 0 0 20px var(--gold-primary);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4), var(--glow-gold);
  }

  50% {
    box-shadow: 0 0 0 15px rgba(255, 215, 0, 0), var(--glow-gold);
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: var(--glow-gold);
  }

  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 80px rgba(255, 215, 0, 0.4);
  }
}

.winner-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Staggered animation for cards */
.kol-card:nth-child(1) {
  animation-delay: 0.1s;
}

.kol-card:nth-child(2) {
  animation-delay: 0.2s;
}

.kol-card:nth-child(3) {
  animation-delay: 0.3s;
}

.kol-card:nth-child(4) {
  animation-delay: 0.4s;
}

.kol-card:nth-child(5) {
  animation-delay: 0.5s;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 120px var(--space-md) var(--space-xl);
    min-height: auto;
  }

  .countdown-item {
    padding: var(--space-sm) var(--space-md);
    min-width: 75px;
  }

  .countdown-value {
    font-size: 2rem;
  }

  .lantern {
    font-size: 2.5rem;
  }

  .kol-grid {
    grid-template-columns: 1fr;
  }

  .prizes-grid {
    grid-template-columns: 1fr;
  }

  .rule-item {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hongbao {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .countdown {
    gap: 0.5rem;
  }

  .countdown-item {
    min-width: 65px;
    padding: var(--space-sm);
  }

  .countdown-value {
    font-size: 1.6rem;
  }

  .countdown-separator {
    font-size: 1.5rem;
  }

  .leaderboard-item {
    padding: var(--space-sm) var(--space-md);
  }

  .leaderboard-score-value {
    font-size: 1.1rem;
  }
}

/* ===================================
   High Contrast Mode
   =================================== */
@media (prefers-contrast: high) {
  :root {
    --text-secondary: #D0D0D0;
    --text-muted: #A0A0A0;
  }

  .kol-card,
  .leaderboard,
  .prize-card,
  .rule-item {
    border-width: 3px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hongbao {
    display: none;
  }
}

/* ===================================
   Floating Music Toggle Button
   =================================== */

.music-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-gold);
  border: 2px solid var(--gold-primary);
  box-shadow: var(--glow-gold), 0 8px 25px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--glow-gold), 0 12px 35px rgba(255, 215, 0, 0.4);
}

.music-toggle:active {
  transform: scale(0.95);
}

.music-icon {
  font-size: 24px;
  transition: opacity 0.3s ease;
}

.music-waves {
  position: absolute;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.music-waves span {
  width: 4px;
  background: var(--bg-dark);
  border-radius: 2px;
  transform-origin: bottom;
}

.music-waves span:nth-child(1) {
  height: 8px;
}

.music-waves span:nth-child(2) {
  height: 16px;
}

.music-waves span:nth-child(3) {
  height: 12px;
}

/* Playing State */
.music-toggle.playing .music-icon {
  opacity: 0;
}

.music-toggle.playing .music-waves {
  opacity: 1;
}

.music-toggle.playing .music-waves span {
  animation: soundWave 0.6s ease-in-out infinite;
}

.music-toggle.playing .music-waves span:nth-child(1) {
  animation-delay: 0s;
}

.music-toggle.playing .music-waves span:nth-child(2) {
  animation-delay: 0.15s;
}

.music-toggle.playing .music-waves span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes soundWave {

  0%,
  100% {
    transform: scaleY(0.5);
  }

  50% {
    transform: scaleY(1.5);
  }
}

/* Muted State */
.music-toggle.muted {
  background: var(--bg-card);
  border-color: var(--text-muted);
  box-shadow: none;
}

.music-toggle.muted .music-icon::after {
  content: "🔇";
  font-size: 24px;
}

.music-toggle.muted .music-icon {
  opacity: 0;
}

.music-toggle.muted::before {
  content: "🔇";
  font-size: 24px;
}

/* Pulse animation when first load */
@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: var(--glow-gold), 0 8px 25px rgba(0, 0, 0, 0.5);
  }

  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 80px rgba(255, 215, 0, 0.4), 0 8px 25px rgba(0, 0, 0, 0.5);
  }
}

.music-toggle:not(.playing):not(.muted) {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* Mobile positioning */
@media (max-width: 768px) {
  .music-toggle {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .music-icon {
    font-size: 20px;
  }

  .music-toggle.muted::before {
    font-size: 20px;
  }
}

/* ===================================
   Moscow Decorations
   =================================== */
.moscow-deco {
  position: fixed;
  bottom: 0;
  width: 280px;
  height: auto;
  pointer-events: none;
  z-index: 1050;
  opacity: 0.95;
  filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.3));
}

.moscow-left {
  left: 0;
  animation: moscowFloat 6s ease-in-out infinite;
}

.moscow-right {
  right: 0;
  animation: moscowFloat 6s ease-in-out infinite;
  animation-delay: -3s;
}

@keyframes moscowFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Tablet Moscow sizing */
@media (max-width: 1024px) {
  .moscow-deco {
    width: 200px;
  }
}

/* Mobile Moscow sizing */
@media (max-width: 768px) {
  .moscow-deco {
    width: 100px;
  }

  /* Move music toggle to center bottom to avoid moscow */
  .music-toggle {
    left: 50% !important;
    transform: translateX(-50%);
    bottom: 15px;
    right: auto !important;
  }

  /* Smaller prize cards on mobile */
  .prizes-grid {
    gap: var(--space-sm);
  }

  .prize-card {
    padding: var(--space-md);
  }

  .prize-angpow {
    width: 70px;
    height: 100px;
    margin-bottom: var(--space-sm);
  }

  .prize-title {
    font-size: 1rem;
  }

  .prize-amount {
    font-size: 1.5rem;
  }

  .prize-extras {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .moscow-deco {
    width: 70px;
    opacity: 0.7;
  }

  .music-toggle {
    width: 45px;
    height: 45px;
    bottom: 10px;
  }

  /* Even smaller prize cards on small mobile */
  .prize-angpow {
    width: 55px;
    height: 75px;
  }

  .prize-title {
    font-size: 0.9rem;
  }

  .prize-amount {
    font-size: 1.3rem;
  }

  .prize-extras {
    font-size: 0.75rem;
  }

  .prize-card::after {
    display: none;
    /* Hide floating emoji on small screens */
  }
}

/* Music toggle - position to avoid moscow overlap */
.music-toggle {
  left: 30px;
  right: auto;
  z-index: 1100;
}

/* ===================================
   Mobile Red Packet Sizing
   =================================== */
@media (max-width: 768px) {
  .hongbao {
    width: 35px !important;
    height: 49px !important;
  }

  .hongbao::before {
    font-size: 1rem;
  }

  .hongbao .seal {
    width: 14px;
    height: 14px;
    top: -3px;
  }

  .hongbao::after {
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
  }
}

@media (max-width: 480px) {
  .hongbao {
    width: 28px !important;
    height: 39px !important;
  }

  .hongbao::before {
    font-size: 0.8rem;
  }

  .hongbao .seal {
    width: 12px;
    height: 12px;
    top: -2px;
  }

  .hongbao::after {
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
  }
}

/* ===================================
   Promo Section (农历新年好康活动)
   =================================== */
.promo-section {
  padding: var(--space-2xl) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 80, 100, 0.1) 50%, transparent 100%);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.promo-card {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.2);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.promo-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-hover);
}

.promo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-normal);
}

.promo-card:hover .promo-img {
  transform: scale(1.05);
}

.promo-info {
  padding: var(--space-md);
  text-align: center;
}

.promo-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: var(--space-xs);
}

.promo-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.promo-btn {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  border: 2px solid var(--gold-primary);
  color: var(--gold-primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.promo-btn:hover {
  background: var(--gold-primary);
  color: var(--bg-dark);
  box-shadow: var(--glow-gold);
}

/* Responsive Promo Grid */
@media (max-width: 992px) {
  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promo-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .promo-grid {
    grid-template-columns: 1fr;
  }

  .promo-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .promo-img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .promo-img {
    height: 150px;
  }

  .promo-info h3 {
    font-size: 1.1rem;
  }
}