* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }

body {
  background: #0a0b12;
  background-image:
    radial-gradient(ellipse at 60% 0%, #1a1314 0%, #0a0b12 100%),
    linear-gradient(120deg, #0a0b12 0%, #241818 100%);
  color: #f8fafd;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
  font-size: 16px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

#bg-dots-canvas {
  position: fixed;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none;
  z-index: 0;
  filter: blur(0.5px) brightness(0.7) contrast(1.1);
}

#main-content {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

/* === HEADER === */
.clean-header {
  background: rgba(16,18,26,0.98);
  border-bottom: 2.5px solid #ff3333;
  box-shadow: 0 4px 32px #ff333377, 0 2px 8px #000a;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.clean-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 74px;
  padding: 0 40px;
  justify-content: space-between;
  gap: 20px;
}

.clean-header-logo-title {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.clean-logo {
  height: 48px;
  width: 48px;
  border-radius: 12px;
  background: #181c24;
  box-shadow: 0 2px 8px rgba(255, 51, 51, 0.3);
  object-fit: contain;
  transition: box-shadow 0.2s, transform 0.2s;
}

.clean-logo:hover {
  box-shadow: 0 2px 12px rgba(255, 51, 51, 0.5);
  transform: scale(1.05);
}

.clean-header-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg,#ff3333 0%,#ff6666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.clean-header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.clean-nav-link {
  color: #b0b8c6;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s;
  text-decoration: none;
  white-space: nowrap;
}

.clean-nav-link:hover {
  color: #ff3333;
}

.clean-nav-icon {
  font-size: 1.2em;
}

/* === LEADERBOARD STYLES === */
.leaderboard-wrapper {
  max-width: 1200px;
  margin: 40px auto 0 auto;
  padding: 0 20px;
}

.leaderboard-intro {
  background: #181c24;
  border-radius: 18px;
  box-shadow: 0 4px 24px #ff333377;
  padding: 32px 24px 24px 24px;
  margin-bottom: 32px;
  color: #fff;
  font-size: 1.13rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  border: 2px solid #ff3333;
}

.leaderboard-intro p {
  margin-bottom: 10px;
}

.leaderboard-tabs {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.leaderboard-tab {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  padding: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #232b38 80%, #181c24 100%);
  border: 2px solid #ff3333;
  outline: none;
  box-shadow: 0 2px 8px #000a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  transition: all 0.25s ease;
  position: relative;
}

.leaderboard-tab:hover {
  background: linear-gradient(135deg, #2a3340 80%, #1f2329 100%);
  box-shadow: 0 4px 16px rgba(255, 51, 51, 0.4);
  transform: translateY(-3px) scale(1.02);
  border-color: #ff6666;
}

.leaderboard-tab.active {
  background: linear-gradient(135deg, #2a3340 80%, #1f2329 100%);
  box-shadow: 0 0 20px rgba(255, 51, 51, 0.5);
  border: 2px solid #ff6666;
}

.leaderboard-tab img {
  height: 45px;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

.soon-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: linear-gradient(90deg, #ffd700 0%, #ffe066 100%);
  color: #181c24;
  font-weight: 900;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leaderboard-content {
  display: none;
}

.leaderboard-content.active {
  display: block;
}

/* === LEADERBOARD HEADER === */
.lb-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #232b38 80%, #181c24 100%);
  border-radius: 22px;
  border: 3px solid #ff3333;
  box-shadow: 0 4px 24px #ff333377;
}

.lb-header img {
  height: 60px;
  margin-bottom: 20px;
}

.lb-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(90deg, #ff3333 0%, #ff6666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.lb-header .subtitle {
  color: #b0b8c6;
  font-size: 1.1rem;
  margin-top: 10px;
}

/* === INFO BOX === */
.info-box {
  background: linear-gradient(120deg, #181c24 60%, #232b38 100%);
  border: 2px solid #ff3333;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
}

.info-box p {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.info-box strong {
  color: #ff6666;
}

/* === TOP 3 CARDS === */
.top-three {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.top-card {
  background: linear-gradient(135deg, #232b38 80%, #181c24 100%);
  border-radius: 18px;
  padding: 32px 20px;
  min-width: 280px;
  max-width: 320px;
  flex: 1;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 18px rgba(255, 51, 51, 0.2);
  border: 2px solid #ff3333;
  transition: all 0.3s ease;
}

.top-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(255, 51, 51, 0.35);
}

.top-card-1 {
  border-color: #ffd700;
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.3);
}

.top-card-1:hover {
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.5);
}

.top-card-2 {
  border-color: #c0c0c0;
  box-shadow: 0 4px 18px rgba(192, 192, 192, 0.3);
}

.top-card-2:hover {
  box-shadow: 0 8px 32px rgba(192, 192, 192, 0.5);
}

.top-card-3 {
  border-color: #cd7f32;
  box-shadow: 0 4px 18px rgba(205, 127, 50, 0.3);
}

.top-card-3:hover {
  box-shadow: 0 8px 32px rgba(205, 127, 50, 0.5);
}

.rank-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ff3333 0%, #ff6666 100%);
  color: #fff;
  font-weight: 900;
  font-size: 1.3rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(255, 51, 51, 0.5);
}

.top-card-1 .rank-badge {
  background: linear-gradient(90deg, #ffd700 0%, #ffe066 100%);
  color: #181c24;
}

.top-card-2 .rank-badge {
  background: linear-gradient(90deg, #c0c0c0 0%, #e0e0e0 100%);
  color: #181c24;
}

.top-card-3 .rank-badge {
  background: linear-gradient(90deg, #cd7f32 0%, #e89b5c 100%);
  color: #181c24;
}

.top-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 20px auto 16px auto;
  background: #181c24;
  border: 3px solid #ff3333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 2px 12px rgba(255, 51, 51, 0.3);
}

.top-card-1 .top-avatar {
  border-color: #ffd700;
}

.top-card-2 .top-avatar {
  border-color: #c0c0c0;
}

.top-card-3 .top-avatar {
  border-color: #cd7f32;
}

.top-username {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  word-break: break-word;
}

.top-label {
  color: #b0b8c6;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.top-wager {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ff6666;
  margin-bottom: 16px;
}

.top-prize {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(90deg, #ffd700 0%, #ffe066 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === LEADERBOARD TABLE === */
.leaderboard-table {
  background: linear-gradient(120deg, #181c24 60%, #232b38 100%);
  border-radius: 18px;
  padding: 24px;
  border: 2px solid #ff3333;
  box-shadow: 0 4px 18px rgba(255, 51, 51, 0.2);
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 80px 1fr 200px 150px;
  gap: 20px;
  align-items: center;
  padding: 16px 20px;
  background: rgba(35, 43, 56, 0.5);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.leaderboard-row:hover {
  background: rgba(35, 43, 56, 0.8);
  transform: translateX(5px);
}

.leaderboard-header-row {
  background: linear-gradient(90deg, #ff3333 0%, #ff6666 100%);
  font-weight: 900;
  margin-bottom: 20px;
}

.leaderboard-header-row:hover {
  transform: none;
}

.rank {
  font-weight: 900;
  font-size: 1.3rem;
  color: #ff6666;
  text-align: center;
}

.username {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.username img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ff3333;
  object-fit: cover;
}

.wager {
  font-weight: 900;
  font-size: 1.2rem;
  color: #ff6666;
  text-align: right;
}

.prize {
  font-weight: 900;
  font-size: 1.2rem;
  color: #ffd700;
  text-align: right;
}

/* === CONTACT PAGE === */
.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 70vh;
  padding: 20px;
}

.contact-card {
  background: linear-gradient(135deg, #232b38 80%, #181c24 100%);
  border-radius: 38px 18px 38px 18px;
  box-shadow: 0 12px 48px #ff333399, 0 4px 18px rgba(255, 102, 102, 0.3);
  padding: 48px 24px 40px 24px;
  max-width: 700px;
  width: 100%;
  margin: 56px auto 32px auto;
  border: 3px solid #ff3333;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-card h2 {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(90deg, #ff3333 0%, #ff6666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 30px;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.contact-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #232b38;
  box-shadow: 0 2px 8px rgba(255, 51, 51, 0.3);
  transition: all 0.3s ease;
  padding: 12px;
}

.contact-icon:hover {
  box-shadow: 0 4px 16px rgba(255, 51, 51, 0.5);
  transform: translateY(-5px) scale(1.1);
  background: #2a3340;
}

/* === FOOTER === */
footer {
  margin-top: auto;
  flex-shrink: 0;
  text-align: center;
  font-size: 1rem;
  color: #b0b8c6;
  background: linear-gradient(90deg, #181c24 60%, #232b38 100%);
  padding: 30px 20px;
  border-top: 2.5px solid #ff3333;
  box-shadow: 0 -2px 18px #ff333377;
  width: 100%;
}

/* === LOADING SPINNER === */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #232b38;
  border-top: 4px solid #ff3333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .clean-header-inner {
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
    gap: 12px;
  }
  
  .clean-header-title {
    font-size: 1.5rem;
  }
  
  .clean-header-nav {
    width: 100%;
    justify-content: center;
    gap: 12px;
  }
  
  .top-three {
    flex-direction: column;
    align-items: center;
  }
  
  .leaderboard-row {
    grid-template-columns: 60px 1fr 120px 100px;
    gap: 12px;
    padding: 12px 16px;
  }
  
  .rank {
    font-size: 1.1rem;
  }
  
  .username {
    font-size: 0.95rem;
  }
  
  .wager, .prize {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .leaderboard-row {
    grid-template-columns: 50px 1fr 100px 80px;
    gap: 8px;
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  .lb-header h1 {
    font-size: 1.8rem;
  }
  
  .contact-icons {
    gap: 20px;
  }
  
  .contact-icon {
    width: 54px;
    height: 54px;
  }
}
