:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: transparent;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
  background: transparent;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}
/* Root styling - Desktop layout preserved on all devices */
* {
  box-sizing: border-box;
}

html {
  background-color: #1a1a1a !important;
}

body {
  background-color: #1a1a1a !important;
}

:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #1a1a1a;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

/* Simple mobile approach - fixed viewport handles zoom */

/* MOBILE STYLES REMOVED - DESKTOP ONLY */
  html, body {
/* Global base styles */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: #1a1a1a;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #1a1a1a;
}

/* Desktop styles for larger screens */
/* Desktop styles applied to all devices - simple approach */
html, body {
  width: 100%;
  min-width: 1200px;
  background-color: #1a1a1a;
}

.container {
  min-width: 1200px;
  width: 100%;
}

.top3 {
  flex-direction: row;
  gap: 3rem;
  justify-content: center;
  align-items: flex-end;
}

.player-card {
  width: 250px;
}

.winner {
  width: 280px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Simplified background */
body::before {
  display: none;
}

/* Page Loading Animation */
.page-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.5s ease-in;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}

.welcome-text {
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(45deg, #00ffa3, #ffd700);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px #00ffae, 0 0 20px #00ffae, 0 0 40px #00ffae;
  animation: glow 3s ease-in-out infinite alternate;
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: 2px;
  transform: translateZ(0);
  will-change: text-shadow;
}

.to-text {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(45deg, #00ffa3, #ffd700);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px #00ffae, 0 0 20px #00ffae, 0 0 40px #00ffae;
  animation: glow 3s ease-in-out infinite alternate;
  margin-bottom: 0px;
  text-align: center;
  letter-spacing: 2px;
  transform: translateZ(0);
  will-change: text-shadow;
}

.official-website-text {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(45deg, #00ffa3, #ffd700);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px #00ffae, 0 0 20px #00ffae, 0 0 40px #00ffae;
  animation: glow 3s ease-in-out infinite alternate;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 2px;
  transform: translateZ(0);
  will-change: text-shadow;
}

.loading-logo-container {
  position: relative;
  margin-bottom: 15px;
}

.loading-logo {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 0 20px #00ffa3) drop-shadow(0 0 40px #00ffa3);
}

.loading-logo-text {
  font-size: 48px;
  font-weight: 900;
  color: #00ffa3;
  text-shadow: 
    0 0 10px #00ffa3,
    0 0 20px #00ffa3,
    0 0 40px #00ffa3;
  letter-spacing: 4px;
  font-family: 'Arial Black', sans-serif;
}

.loading-circle {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
}

.circle-border {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid #00ffa3;
  border-right: 3px solid #00ffa3;
  border-radius: 50%;
  animation: circleRotate 1.5s linear infinite;
}

.circle-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, #00ffa3 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: coreGlow 2s ease-in-out infinite;
}

.loading-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 3px;
  text-shadow: 0 0 10px #00ffa3;
}

.loading-text > span {
  animation: dotBounce 1.4s ease-in-out infinite;
  display: inline-block;
}

.loading-text > span:nth-child(1) {
  animation-delay: 0s;
}

.loading-text > span:nth-child(2) {
  animation-delay: 0.1s;
}

.loading-text > span:nth-child(3) {
  animation-delay: 0.2s;
}

.loading-text > span:nth-child(4) {
  animation-delay: 0.3s;
}

.loading-text > span:nth-child(5) {
  animation-delay: 0.4s;
}

.loading-text > span:nth-child(6) {
  animation-delay: 0.5s;
}

.loading-text > span:nth-child(7) {
  animation-delay: 0.6s;
}

.loading-dots {
  display: flex;
  gap: 5px;
}

.loading-dots span {
  animation: dotBounce 1.4s ease-in-out infinite;
  color: #00ffa3;
}

.loading-dots span:nth-child(1) {
  animation-delay: 0.7s;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.8s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.9s;
}

/* Loading Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes logoPulse {
  0%, 100% {
    filter: drop-shadow(0 0 20px #00ffa3) drop-shadow(0 0 40px #00ffa3);
  }
  50% {
    filter: drop-shadow(0 0 30px #00ffa3) drop-shadow(0 0 60px #00ffa3) drop-shadow(0 0 80px #00ffa3);
  }
}

@keyframes circleRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes coreGlow {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Ensure no content gets cut off */
html {
  scroll-padding-top: 0;
  scroll-behavior: smooth;
  margin-top: 0; /* Removed negative margin to fix gap */
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  scroll-padding-top: 0;
  background-color: #1a1a1a;
}

#root {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  top: 0; /* Reset vertical position to fix gap */
  margin-top: 0 !important; /* Removed negative margin to fix gap */
  background-color: #1a1a1a;
}

body {
  background: #1a1a1a;
  color: #fff;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  display: block !important;
  place-items: unset !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem; /* Reduced bottom padding from 6rem to 3rem */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  position: relative;
  transition: padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0; /* Removed negative margin to fix gap */
}

.container.sticky-active {
  padding-top: 18px; /* Reduced by 70% (from 60px to 18px) to match reduced spacing */
}

header {
  text-align: center;
  margin: 0;
  margin-bottom: 0.5rem; /* Further reduced from 1.5rem to 0.5rem */
  padding: 0 !important;
  width: 100%;
  position: relative;
  top: 0;
}

/* Logo Container Styles with Scroll Animation */
.logo-container {
  text-align: center;
  margin: 0 auto 10px auto; /* Further reduced bottom margin from 20px to 10px */
  padding: 0; /* Removed padding completely */
  position: relative;
  top: 0;
  max-width: 200px;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
  margin-top: 0; /* Removed negative margin to fix gap */
}

.logo-container.shrink {
  transform: scale(0.5) translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease-out;
}

.logo-image {
  height: 80px;
  width: auto;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 12px rgba(0, 255, 163, 0.4));
  display: block;
  margin: 0 auto;
  will-change: transform, filter;
  /* Removed animation: logoGlow 3s ease-in-out infinite alternate; */
}

.logo-text {
  font-size: 64px;
  font-weight: 900;
  color: #00ffa3;
  text-shadow: 
    0 0 12px rgba(0, 255, 163, 0.4),
    0 0 24px rgba(0, 255, 163, 0.2);
  letter-spacing: 6px;
  font-family: 'Arial Black', sans-serif;
  text-align: center;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, text-shadow;
  /* Removed animation: logoGlow 3s ease-in-out infinite alternate; */
  cursor: pointer;
  margin-top: 0; /* Ensure no top margin */
  padding-top: 0; /* Ensure no top padding */
  line-height: 0.9; /* Reduce line height to compact the text */
}

@keyframes logoGlow {
  0% {
    filter: drop-shadow(0 0 12px rgba(0, 255, 163, 0.4)) drop-shadow(0 0 24px rgba(0, 255, 163, 0.2));
    text-shadow: 
      0 0 12px rgba(0, 255, 163, 0.4),
      0 0 24px rgba(0, 255, 163, 0.2);
  }
  100% {
    filter: drop-shadow(0 0 20px rgba(0, 255, 163, 0.8)) drop-shadow(0 0 40px rgba(0, 255, 163, 0.4));
    text-shadow: 
      0 0 20px rgba(0, 255, 163, 0.8),
      0 0 40px rgba(0, 255, 163, 0.4);
  }
}

.logo-image:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 20px rgba(0, 255, 163, 0.6));
  animation-duration: 1.5s;
}

.logo-text:hover {
  transform: scale(1.08);
  text-shadow: 
    0 0 20px rgba(0, 255, 163, 0.6),
    0 0 40px rgba(0, 255, 163, 0.4);
  animation-duration: 1.5s;
}

/* Enhanced Sticky Header */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(135deg, 
    rgba(24, 24, 27, 0.98) 0%, 
    rgba(18, 18, 22, 0.96) 100%
  );
  backdrop-filter: blur(20px) saturate(120%);
  border-bottom: 2px solid rgba(0, 255, 163, 0.15);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  will-change: transform, opacity, height;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.sticky-header.active {
  opacity: 1;
  transform: translateY(0);
  height: 70px;
  box-shadow: 
    0 4px 25px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 255, 163, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sticky-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.sticky-header-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(
    circle at center,
    rgba(0, 255, 163, 0.03) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.sticky-header.active .sticky-header-content::before {
  opacity: 1;
}

.sticky-logo {
  height: 45px;
  width: auto;
  opacity: 0;
  transform: translateY(-20px) scale(0.8);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
  filter: 
    drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 15px rgba(0, 255, 163, 0.3));
  cursor: pointer;
}

.sticky-logo-text {
  font-size: 32px;
  font-weight: 900;
  color: #00ffa3;
  text-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(0, 255, 163, 0.3);
  letter-spacing: 3px;
  font-family: 'Arial Black', sans-serif;
  opacity: 0;
  transform: translateY(-20px) scaleX(1.2);
  transform-origin: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
  cursor: pointer;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-20px) scaleX(1.2);
}

.sticky-header.active .sticky-logo {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sticky-header.active .sticky-logo-text {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scaleX(1.2);
}

.sticky-logo:hover {
  transform: translateY(0) scale(1.1);
  filter: 
    drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 25px rgba(0, 255, 163, 0.5));
}

.sticky-logo-text:hover {
  transform: translateX(-50%) translateY(0) scaleX(1.3);
  text-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(0, 255, 163, 0.5);
}

/* UTC Info Container and Styling */
.time-info-container, .utc-info-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  opacity: 0;
  transform: translateY(-20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
  padding: 5px 10px;
  min-width: 200px;
  position: absolute;
  left: calc(50% - 300px);  /* Align with left side of 2nd person card */
  top: 50%;
}

.time-info-placeholder, .utc-info-placeholder {
  min-width: 200px;
  /* This placeholder ensures the logo stays centered */
}

.toronto-clock, .et-clock, .utc-clock, .est-clock {
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(45deg, #00ffa3, #4dffd2, #00ccff);
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(0, 255, 163, 0.5);
  letter-spacing: 1px;
  font-family: 'Arial', sans-serif;
}

.toronto-date, .et-date, .utc-date, .est-date {
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(45deg, #00ffa3, #4dffd2, #00ccff);
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(0, 255, 163, 0.5);
  letter-spacing: 1px;
  font-family: 'Arial', sans-serif;
}

/* Removed clockPulse animation */

@keyframes logoPulseStretch {
  0%, 100% {
    letter-spacing: 3px;
    text-shadow: 
      0 2px 10px rgba(0, 0, 0, 0.4),
      0 0 15px rgba(0, 255, 163, 0.3);
    transform: translateZ(0) scale(1);
  }
  50% {
    letter-spacing: 8px;
    text-shadow: 
      0 4px 15px rgba(0, 0, 0, 0.6),
      0 0 25px rgba(0, 255, 163, 0.5),
      0 0 40px rgba(0, 255, 163, 0.3);
    transform: translateZ(20px) scale(1.05);
  }
}

.sticky-header.active .time-info-container, .sticky-header.active .utc-info-container {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.sticky-title {
  color: #00ffa3;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
  text-shadow: 
    0 0 15px rgba(0, 255, 163, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
}

.sticky-header.active .sticky-title {
  opacity: 1;
  transform: translateY(0);
}

.sticky-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00ffa3, #00cc82);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s;
  box-shadow: 0 0 5px rgba(0, 255, 163, 0.5);
}

.sticky-header.active .sticky-title::after {
  width: 100%;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    #00ffa3 0%, 
    #00cc82 50%, 
    #ff6b6b 100%
  );
  box-shadow: 
    0 0 10px rgba(0, 255, 163, 0.6),
    0 0 20px rgba(0, 255, 163, 0.3);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

/* Container adjustment when scrolled */
.container.scrolled {
  margin-top: 21px; /* Reduced by 70% (from 70px to 21px) to match reduced spacing */
  transition: margin-top 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Sticky Header */

/* Legacy countdown styles - updated to work with new design */
.countdown-section {
  margin-top: 0;
  margin-bottom: -3rem;
  padding: 12px 16px;
  /* Box background and borders removed */
}

.countdown-title {
  font-size: 1.3rem;
  margin-bottom: 0.1rem;
  font-weight: 700;
  background: linear-gradient(45deg, #00ffff, #8a2be2, #1e90ff);
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
  letter-spacing: 1px;
  animation: gradientFlow 5s ease infinite, textShimmer 3s ease-in-out infinite;
  position: relative;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #00ffae;
  text-shadow: 0 0 10px rgba(0, 255, 174, 0.5);
}

.time-label {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.2rem;
  font-weight: 600;
}

.time-separator {
  font-size: 2rem;
  color: #00ffae;
  margin: 0 0.5rem;
}

/* Digital Clock Blinking Animation for Countdown Timers */
@keyframes digitalClockBlink {
  0%, 50% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(0, 255, 174, 0.5);
  }
  51%, 100% {
    opacity: 0.3;
    text-shadow: 0 0 5px rgba(0, 255, 174, 0.2);
  }
}

/* Leaderboard Ended Styles */
.leaderboard-ended {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  margin: 0;
}

.ended-message {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ff6b6b;
  text-shadow: 0 0 15px rgba(255, 107, 107, 0.6);
  letter-spacing: 3px;
  animation: endedPulse 2s ease-in-out infinite alternate;
}

/* Reduce countdown timer margin when showing ended message */
.countdown-timer:has(.leaderboard-ended) {
  margin-bottom: 0.5rem;
}

@keyframes endedPulse {
  0% {
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.6);
    opacity: 0.8;
  }
  100% {
    text-shadow: 0 0 25px rgba(255, 107, 107, 0.9);
    opacity: 1;
  }
}

/* Leaderboard Starting Soon Styles */
.leaderboard-starting-soon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  margin: 0;
}

.starting-soon-message {
  font-size: 2.2rem;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  letter-spacing: 2px;
  animation: startingSoonPulse 3s ease-in-out infinite alternate;
  margin-bottom: 0.5rem;
}

.manual-start-note {
  font-size: 1rem;
  color: #888;
  text-shadow: 0 0 5px rgba(136, 136, 136, 0.4);
  letter-spacing: 1px;
  animation: noteGlow 4s ease-in-out infinite alternate;
}

/* Reduce countdown timer margin when showing starting soon message */
.countdown-timer:has(.leaderboard-starting-soon) {
  margin-bottom: 0.5rem;
}

@keyframes startingSoonPulse {
  0% {
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    opacity: 0.8;
  }
  100% {
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.9);
    opacity: 1;
  }
}

@keyframes noteGlow {
  0% {
    text-shadow: 0 0 5px rgba(136, 136, 136, 0.4);
    opacity: 0.6;
  }
  100% {
    text-shadow: 0 0 10px rgba(136, 136, 136, 0.6);
    opacity: 0.8;
  }
}

/* Enhanced Main Heading with Dynamic Glow */
.main-heading {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(45deg, #00ffa3, #4dffd2, #00ccff);
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 255, 163, 0.6);
  margin-bottom: 15px;
  letter-spacing: 2px;
  animation: gradientFlow 8s ease infinite;
  transform: translateZ(0);
  will-change: text-shadow, background-position, transform;
  position: relative;
}

@keyframes heroTextFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.02);
  }
}

@keyframes dynamicGlow {
  0% {
    text-shadow: 
      0 0 20px rgba(0, 255, 163, 0.4),
      0 0 40px rgba(0, 255, 163, 0.3),
      0 0 60px rgba(0, 255, 163, 0.2);
  }
  100% {
    text-shadow: 
      0 0 30px rgba(0, 255, 163, 0.8),
      0 0 60px rgba(0, 255, 163, 0.6),
      0 0 90px rgba(0, 255, 163, 0.4);
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Enhanced Subtitle */
.subtitle {
  font-size: 1.3rem;
  color: #e0e0e0;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.4;
  margin-bottom: 0;
}

/* Every Bet Counts Message */
.every-bet-counts {
  font-size: 1rem;
  color: #00ffae;
  font-weight: 600;
  text-align: center;
  margin: 1rem 0 0 0;
  text-shadow: 0 0 15px rgba(0, 255, 174, 0.4);
  animation: everyBetGlow 3s ease-in-out infinite alternate;
  letter-spacing: 1px;
}

@keyframes everyBetGlow {
  0% {
    text-shadow: 0 0 15px rgba(0, 255, 174, 0.4);
  }
  100% {
    text-shadow: 0 0 25px rgba(0, 255, 174, 0.6);
  }
}

/* Enhanced Button Container */
.promotion-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 20px 0;
}

/* Enhanced Button Styles with Hover Effects */
.play-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00ffa3, #00cc82);
  color: #000;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 
    0 0 20px rgba(0, 255, 163, 0.4),
    0 4px 15px rgba(0, 255, 163, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-size: 1rem;
}

.play-now-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.play-now-btn:hover::before {
  left: 100%;
}

.play-now-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 0 40px rgba(0, 255, 163, 0.8),
    0 10px 30px rgba(0, 255, 163, 0.4);
  background: linear-gradient(135deg, #00ffae, #00d890);
}

.rules-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
  color: #ffffff !important;
  padding: 14px 28px !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 
    0 0 20px rgba(139, 92, 246, 0.4),
    0 4px 15px rgba(139, 92, 246, 0.2) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  font-size: 1rem !important;
  font-family: inherit !important;
  min-width: auto !important;
  height: auto !important;
  line-height: normal !important;
  white-space: nowrap !important;
}

.rules-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.rules-btn:hover::before {
  left: 100%;
}

.rules-btn:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 
    0 0 40px rgba(139, 92, 246, 0.8),
    0 10px 30px rgba(139, 92, 246, 0.4) !important;
  background: linear-gradient(135deg, #9333ea, #8b5cf6) !important;
}

/* Enhanced Sync Info */
.sync-info {
  font-size: 18px;
  font-weight: 600;
  color: #d0d0d0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Data Update Info Section - Updated for reduced spacing */
.data-update-info {
  margin-top: 5px !important;
  padding: 10px 16px;
  background: rgba(0, 255, 163, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 163, 0.1);
  text-align: center;
}

.update-status-inline {
  display: flex;
  justify-content: center;
  align-items: center;
}

.update-text {
  color: #b0b0b0;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Courier New', monospace;
}

/* Mobile responsive for data update info */

/* Enhanced Countdown Section */
.countdown-section {
  margin-top: 0;
  padding: 5px 16px;
  /* Box background and borders removed */
}

.countdown-title {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
  background: linear-gradient(to right, #00ffa3, #00c8ff, #00ffa3);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 3s ease infinite;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(0, 255, 163, 0.3);
}

.countdown-hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(45deg, #ff4500, #ffd700, #ff6347);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 165, 0, 0.6);
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
  text-align: center;
  /* Removed animation: fireGlow 2s ease-in-out infinite alternate, gradientShift 4s ease-in-out infinite; */
  transform: translateZ(0);
  will-change: text-shadow, background-position;
}

@keyframes fireGlow {
  0% {
    text-shadow: 
      0 0 10px rgba(255, 69, 0, 0.4),
      0 0 20px rgba(255, 165, 0, 0.3),
      0 0 30px rgba(255, 215, 0, 0.2);
  }
  100% {
    text-shadow: 
      0 0 20px rgba(255, 69, 0, 0.8),
      0 0 40px rgba(255, 165, 0, 0.6),
      0 0 60px rgba(255, 215, 0, 0.4);
  }
}

.countdown-subtitle {
  font-size: 16px;
  color: #ffaa00;
  margin-bottom: 15px;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
  /* Removed animation: fireGlow 2s ease-in-out infinite alternate; */
}

@keyframes fireGlow {
  0% {
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
  }
  100% {
    text-shadow: 0 0 20px rgba(255, 170, 0, 0.6);
  }
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 8px;
  background: rgba(0, 255, 163, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 163, 0.2);
}

.time-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #00ffae;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.time-label {
  font-size: 0.7rem;
  color: #aaa;
  margin-top: 0.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.time-separator {
  font-size: 1.5rem;
  color: #00ffae;
  margin: 0 0.3rem;
  animation: digitalClockBlink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

/* Consistent Neon Styling for All Green Elements */
.tzbetz-highlight {
  color: #00ffa3;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 255, 163, 0.4);
  animation: subtleGlow 3s ease-in-out infinite alternate;
}

@keyframes subtleGlow {
  0% { text-shadow: 0 0 8px rgba(0, 255, 163, 0.4); }
  100% { text-shadow: 0 0 12px rgba(0, 255, 163, 0.6); }
}

.discord-link {
  color: #00ffa3;
  text-decoration: underline;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0, 255, 163, 0.3);
  transition: all 0.3s ease;
}

.discord-link:hover {
  color: #00cc82;
  text-shadow: 0 0 10px rgba(0, 255, 163, 0.6);
}

/* Enhanced Loading Section */
.loading-section {
  text-align: center;
  padding: 20px;
  color: #00ffa3;
  font-size: 1.3rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 255, 163, 0.4);
}

.loading-spinner {
  margin: 0 auto 20px;
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #00ffa3;
  border-radius: 50%;
  animation: spin 1s linear infinite, spinnerGlow 2s ease-in-out infinite alternate;
}

@keyframes spinnerGlow {
  0% {
    box-shadow: 0 0 10px rgba(0, 255, 163, 0.3);
  }
  100% {
    box-shadow: 0 0 20px rgba(0, 255, 163, 0.6);
  }
}

/* Responsive Design Improvements */

/* Promotion Section Responsive Styles */
.promotion-section {
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 0.5rem 15px;
  text-align: center;
  color: #fff;
  font-family: 'Inter', sans-serif;
  width: 100%;
}

.promotion-text-main {
  font-size: 20px !important;
  margin-bottom: 8px !important;
  line-height: 1.4;
  padding: 0 10px;
}

.promotion-text-sub {
  font-size: 14px !important;
  color: gray !important;
  margin-top: 8px !important;
  margin-bottom: 20px !important;
  line-height: 1.5;
  padding: 0 15px;
}

.filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.filter-bar select, .filter-bar button {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  background: #222;
  color: #fff;
  font-size: 1rem;
}
.filter-bar button {
  background: #00ffae;
  color: #111;
  font-weight: bold;
  cursor: pointer;
}
.filter-bar button:hover {
  background: #00d48a;
}

.top3 {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 3rem;
  margin-bottom: 1rem;
  width: 100%;
  flex-wrap: wrap;
}

/* FadeInUp Animation */
.fade-in-up {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3D Card Hover Effects */
.card-3d-hover {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.card {
  background: linear-gradient(135deg, #222 60%, #18181b 100%);
  border-radius: 0;
  box-shadow: 0 4px 24px #000a;
  padding: 2rem 1.5rem;
  min-width: 220px;
  text-align: center;
  position: relative;
  transform: translateZ(0);
  will-change: transform;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}

.card-3d-hover:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.05);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(0, 255, 174, 0.3),
    0 0 80px rgba(0, 255, 174, 0.1);
}

.card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(0, 255, 174, 0.2);
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 55%,
    transparent 60%
  );
  transform: translateX(-100%) translateY(-100%) rotate(-45deg);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.card:hover::before {
  transform: translateX(100%) translateY(100%) rotate(-45deg);
}

/* Force username centering in cards */
.card .username, 
.card .first-username {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
  width: 100% !important;
}

/* Enhanced Leaderboard Table Styling */
.leaderboard-row {
  transition: all 0.3s ease;
  cursor: pointer;
}

.row-even {
  background: rgba(0, 255, 163, 0.02);
}

.row-odd {
  background: rgba(0, 0, 0, 0.1);
}

.leaderboard-row:hover {
  background: rgba(0, 255, 163, 0.08) !important;
  transform: scale(1.01);
  box-shadow: 0 2px 10px rgba(0, 255, 163, 0.15);
}

.leaderboard-row:hover td {
  color: #00ffae;
  text-shadow: 0 0 5px rgba(0, 255, 163, 0.3);
}

.rank-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #00ffae;
  color: #111;
  font-weight: bold;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  font-size: 1rem;
  display: none; /* Hide rank labels */
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 0;
  margin-bottom: 1rem;
  background: transparent;
  border: none;
  box-shadow: none;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 3;
}

.card:hover .avatar {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.first-avatar {
  width: 110px !important;
  height: 110px !important;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card.rank1:hover .first-avatar {
  transform: scale(1.15);
  filter: brightness(1.2);
}

/* New Position Icon Styling */
.position-icon {
  width: 80px;
  height: 80px;
  margin: 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  border-radius: 50%;
  border: none;
  box-shadow: none;
  object-fit: cover;
  image-rendering: auto;
  animation: positionIconGlow 2s ease-in-out infinite alternate;
}

@keyframes positionIconGlow {
  0% {
    filter: brightness(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
  }
  100% {
    filter: brightness(1.1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
  }
}

.card:hover .position-icon {
  transform: translate(-50%, -50%) scale(1.1);
  filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
  animation: none;
}

.first-person {
  width: 100px !important;
  height: 100px !important;
  animation: firstPersonGlow 2s ease-in-out infinite alternate;
}

@keyframes firstPersonGlow {
  0% {
    filter: brightness(1) drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
  }
  100% {
    filter: brightness(1.15) drop-shadow(0 0 25px rgba(255, 215, 0, 0.6));
  }
}

.card.rank1:hover .first-person {
  transform: translate(-50%, -50%) scale(1.15);
  filter: brightness(1.3) drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
  animation: none;
}

.second-person {
  animation: secondPersonGlow 2.5s ease-in-out infinite alternate;
  transform: translate(-50%, -50%) translate(-8px, 8px);
}

.card:hover .second-person {
  transform: translate(-50%, -50%) translate(-8px, 8px) scale(1.1);
}

@keyframes secondPersonGlow {
  0% {
    filter: brightness(1) drop-shadow(0 0 8px rgba(192, 192, 192, 0.3));
  }
  100% {
    filter: brightness(1.1) drop-shadow(0 0 20px rgba(192, 192, 192, 0.5));
  }
}

.third-person {
  animation: thirdPersonGlow 3s ease-in-out infinite alternate;
}

@keyframes thirdPersonGlow {
  0% {
    filter: brightness(1) drop-shadow(0 0 6px rgba(205, 127, 50, 0.3));
  }
  100% {
    filter: brightness(1.1) drop-shadow(0 0 18px rgba(205, 127, 50, 0.5));
  }
}

/* Crown and Avatar Wrapper for Perfect Positioning */
.crown-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Gold Crown Overlay for 1st Place */
.crown-overlay {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  z-index: 15;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
  animation: crownFloat 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes crownFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0px);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
  }
  50% {
    transform: translateX(-50%) translateY(-5px);
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1));
  }
}

.card.rank1:hover .crown-overlay {
  animation: crownFloatHover 1.5s ease-in-out infinite;
}

@keyframes crownFloatHover {
  0%, 100% {
    transform: translateX(-50%) translateY(-2px) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(-8px) scale(1.1);
  }
}

.username {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.username:hover {
  transform: scale(1.12);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

/* Diagonal light sweep effect - 135 degrees */
.username::before {
  content: '';
  position: absolute;
  top: -100%;
  right: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    135deg,
    transparent 20%,
    rgba(255, 255, 255, 0.15) 35%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.15) 65%,
    transparent 80%
  );
  transform: translateX(150%) translateY(-150%);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.username:hover::before {
  transform: translateX(-150%) translateY(150%);
}

.username::after {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scaleY(-1) skewX(-15deg);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.username:hover::after {
  opacity: 0.9;
}

.wager {
  font-size: 1.1rem;
  color: #00ffae;
  margin-bottom: 0.3rem;
}
.prize {
  font-size: 1.1rem;
  color: #ffd700;
  font-weight: bold;
}

.leaderboard-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem;
  border-collapse: collapse;
  background: linear-gradient(135deg, #1a1a1d 0%, #16181c 100%);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  table-layout: fixed;
  position: relative;
}

.leaderboard-table th {
  padding: 1.2rem 1rem;
  background: linear-gradient(135deg, #2a2a2d 0%, #1f2125 100%);
  color: #00ffae;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #333;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.rank-col {
  width: 10%;
}

.user-col {
  width: 35%;
  text-align: left !important;
}

.wager-col {
  width: 27.5%;
}

.prize-col {
  width: 27.5%;
}

.header-with-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.user-col .header-with-icon {
  justify-content: flex-start;
  padding-left: 20px;
}

.user-icon, .wager-icon, .prize-icon {
  font-size: 1rem;
}

.leaderboard-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #2a2a2d;
  font-size: 1rem;
}

.leaderboard-table tr {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.leaderboard-table tr:hover {
  transform: scale(1.02);
  background: linear-gradient(135deg, #252529 0%, #1d1f23 100%);
  box-shadow: 
    0 4px 20px rgba(0, 255, 174, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* User Row with Avatar */
.user-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 8px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(0, 255, 163, 0.3);
  object-fit: cover;
  transition: all 0.3s ease;
  flex-shrink: 0;
  background: rgba(24, 24, 27, 0.8);
}

.user-avatar:hover {
  border-color: rgba(0, 255, 163, 0.6);
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(0, 255, 163, 0.3);
}

.username-text {
  font-weight: 600;
  color: #fff;
  text-align: left;
}

/* Shimmer effect for table rows */
.leaderboard-table tr::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 174, 0.1),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
}

.leaderboard-table tr:hover::before {
  left: 100%;
}

.highlight-row {
  background: linear-gradient(135deg, #1a4d3a 0%, #0d2818 100%) !important;
  border-left: 4px solid #00ffae;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 255, 174, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 255, 174, 0.6);
  }
}

.rank-number {
  color: #00ffae;
  font-weight: bold;
  font-size: 1.1rem;
}

.user-name {
  color: #fff;
  font-weight: 600;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}

.user-name:hover {
  transform: scale(1.15);
  text-shadow: 0 0 12px rgba(0, 255, 174, 0.8);
  color: #00ffae;
}

/* Diagonal light sweep for table names - NO REFLECTION - 135 degrees */
.user-name::before {
  content: '';
  position: absolute;
  top: -100%;
  right: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    135deg,
    transparent 20%,
    rgba(0, 255, 174, 0.15) 35%,
    rgba(0, 255, 174, 0.8) 50%,
    rgba(0, 255, 174, 0.15) 65%,
    transparent 80%
  );
  transform: translateX(150%) translateY(-150%);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.user-name:hover::before {
  transform: translateX(-150%) translateY(150%);
}

.wager-amount {
  color: #00ffae;
  font-weight: 600;
}

.wager-amount {
  color: #00ffae;
  font-weight: 600;
}

/* Legacy prize-amount style - keeping for table cells only */
.leaderboard-table .prize-amount {
  color: #ffd700;
  font-weight: bold;
  /* Removed !important flags and made class more specific */
}

.leaderboard-table tr:nth-child(even) {
  background: #1a1a1d;
}

/* Animation for the crown icon */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateZ(0);
  }
  40% {
    transform: translateY(-10px) translateZ(0);
  }
  60% {
    transform: translateY(-5px) translateZ(0);
  }
}

/* Desktop first place card styling */
.rank1 {
  width: 260px;
  height: 340px;
}

.first-avatar {
  width: 110px !important;
  height: 110px !important;
  border: 3px solid #ffd700 !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5) !important;
}

.first-username {
  font-size: 2em !important;
  font-weight: bold !important;
  margin: 0.3em auto !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.first-wager {
  font-size: 1.3em !important;
  font-weight: 500 !important;
}

.first-prize {
  font-size: 1.3em !important;
  color: #ffd700 !important;
  font-weight: 600 !important;
  margin-top: 0.2em !important;
}

.crown-icon {
  font-size: 2em;
  will-change: transform;
  transition: all 0.3s ease;
}

.card.rank1:hover .crown-icon {
  transform: scale(1.2) rotate(15deg);
  animation: crownPulse 1.5s ease-in-out infinite;
}

@keyframes crownPulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px #ffd700);
  }
  50% {
    filter: drop-shadow(0 0 20px #ffd700) drop-shadow(0 0 30px #ffd700);
  }
}

/* Special effects for 1st place */
.card.rank1:hover {
  transform: translateY(-12px) scale(1.08);
  box-shadow: 
    0 25px 50px rgba(255, 215, 0, 0.3),
    0 0 40px rgba(255, 215, 0, 0.4);
}

.card.rank1::before {
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 215, 0, 0.1) 45%,
    rgba(255, 215, 0, 0.2) 50%,
    rgba(255, 215, 0, 0.1) 55%,
    transparent 60%
  );
}

/* Additional smooth micro-animations */
.rank-label {
  transition: all 0.3s ease;
}

.card:hover .rank-label {
  transform: scale(1.1);
  text-shadow: 0 0 10px rgba(0, 255, 174, 0.8);
}

.card.rank1:hover .rank-label {
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
}

.wager, .prize {
  transition: all 0.3s ease;
}

.card:hover .wager {
  transform: scale(1.05);
  text-shadow: 0 0 8px rgba(0, 255, 174, 0.6);
}

.card:hover .prize {
  transform: scale(1.05);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* Performance optimizations and layout fixes */
.leaderboard-content {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Leaderboard Rules Section */
.rules-section {
  background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2d 100%);
  border: 2px solid #333;
  border-radius: 16px;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  animation: slideInFromTop 0.6s ease-out;
}

@keyframes slideInFromTop {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.rules-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00ffae 0%, #ff6b35 50%, #00ffae 100%);
  animation: rulesGradient 3s ease-in-out infinite;
}

@keyframes rulesGradient {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Rules Modal Styles */
.rules-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.rules-modal {
  background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2d 100%);
  border: 2px solid #333;
  border-radius: 16px;
  max-width: 90vw;
  max-height: 85vh;
  width: 1000px;
  padding: 2rem;
  position: relative;
  overflow-y: auto;
  animation: modalSlideIn 0.4s ease-out;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.rules-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1001;
}

.rules-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.rules-content {
  position: relative;
  z-index: 2;
}

.rules-title {
  color: #00ffae;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 0 20px rgba(0, 255, 174, 0.4);
  animation: rulesTitleGlow 3s ease-in-out infinite alternate;
}

@keyframes rulesTitleGlow {
  0% {
    text-shadow: 0 0 20px rgba(0, 255, 174, 0.4);
  }
  100% {
    text-shadow: 0 0 30px rgba(0, 255, 174, 0.6);
  }
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.rules-column {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.essential-rules {
  border-left: 4px solid #ff6b35;
  background: rgba(255, 107, 53, 0.05);
}

.additional-rules {
  border-left: 4px solid #00ffae;
  background: rgba(0, 255, 174, 0.05);
}

.rules-category-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.essential-rules .rules-category-title {
  color: #ff6b35;
}

.additional-rules .rules-category-title {
  color: #00ffae;
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.rule-item.mandatory {
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.rule-item.recommended {
  background: rgba(0, 255, 174, 0.1);
  border: 1px solid rgba(0, 255, 174, 0.2);
}

.rule-item:hover {
  transform: translateX(5px);
}

.rule-item.mandatory:hover {
  background: rgba(255, 107, 53, 0.15);
  border-color: rgba(255, 107, 53, 0.4);
}

.rule-item.recommended:hover {
  background: rgba(0, 255, 174, 0.15);
  border-color: rgba(0, 255, 174, 0.4);
}

.rule-icon {
  font-size: 1.2rem;
  min-width: 24px;
  margin-top: 2px;
}

.rule-text {
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 400;
}

.rule-text strong {
  color: #00ffae;
  font-weight: 600;
}

.rules-footer {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.rules-disclaimer {
  color: #ffc107;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.6;
}

/* Mobile responsiveness for rules */

/* Responsible Gambling Section */
.responsible-gambling {
  padding: 1.2rem 0;
  margin-top: 1rem;
  position: relative;
  width: 100%;
}

.responsible-gambling::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #00ffae 50%, transparent 100%);
}

.responsible-gambling-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #1a1a1d 0%, #16181c 100%);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.responsible-gambling-title {
  color: #00ffae;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(0, 255, 174, 0.3);
  animation: responsibleGlow 3s ease-in-out infinite alternate;
}

@keyframes responsibleGlow {
  0% {
    text-shadow: 0 0 10px rgba(0, 255, 174, 0.3);
  }
  100% {
    text-shadow: 0 0 20px rgba(0, 255, 174, 0.5);
  }
}

.responsible-gambling-text p {
  color: #e0e0e0;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.responsible-gambling-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.rg-link {
  color: #00ffae;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(0, 255, 174, 0.3);
  border-radius: 6px;
  background: rgba(0, 255, 174, 0.05);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rg-link:hover {
  background: rgba(0, 255, 174, 0.15);
  border-color: #00ffae;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 174, 0.2);
}

.age-restriction {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 10px;
  margin-top: 0.8rem;
}

.age-badge {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 50%;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
  animation: ageBadgeGlow 4s ease-in-out infinite alternate;
}

@keyframes ageBadgeGlow {
  0% {
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
  }
  100% {
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5);
  }
}

.age-text {
  color: #ffc107;
  font-weight: 500;
  font-size: 0.85rem;
}

/* Mobile responsiveness for responsible gambling */

/* Copyright Footer */
.copyright-footer {
  background: #1a1a1a;
  border-top: 1px solid #333;
  padding: 1rem 0;
  text-align: center;
}

.copyright-footer p {
  color: #888;
  font-size: 0.85rem;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.dev-credit {
  margin-top: 0.3rem !important;
  color: #00ffae !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  text-shadow: 0 0 8px rgba(0, 255, 174, 0.3);
}

.website-version {
  margin-top: 0.3rem !important;
  color: #7a7aff !important;
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  opacity: 0.8;
  text-shadow: 0 0 6px rgba(122, 122, 255, 0.2);
}



/* Social Media Footer */
.social-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a1d 0%, #16181c 100%);
  border-top: 1px solid #333;
  padding: 1rem 0;
  z-index: 1000;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.social-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a2a2d 0%, #1f2125 100%);
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid #333;
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.15);
  box-shadow: 0 12px 35px rgba(0, 255, 174, 0.4);
  border-color: #00ffae;
  animation: socialIconGlow 2s ease-in-out infinite alternate;
}

@keyframes socialIconGlow {
  0% {
    box-shadow: 0 12px 35px rgba(0, 255, 174, 0.4);
  }
  100% {
    box-shadow: 0 15px 45px rgba(0, 255, 174, 0.6);
  }
}

.social-icon svg {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
  display: block;
  flex-shrink: 0;
}

.social-icon:hover svg {
  filter: drop-shadow(0 0 12px currentColor);
  transform: scale(1.1);
}

/* Enhanced Social icon specific colors with stronger glows */
.social-icon.kick:hover {
  background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
  box-shadow: 0 12px 35px rgba(0, 255, 0, 0.5), 0 0 25px rgba(0, 255, 0, 0.3);
}

.social-icon.youtube:hover {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  box-shadow: 0 12px 35px rgba(255, 0, 0, 0.5), 0 0 25px rgba(255, 0, 0, 0.3);
}

.social-icon.instagram:hover {
  background: linear-gradient(135deg, #e4405f 0%, #833ab4 100%);
  box-shadow: 0 12px 35px rgba(228, 64, 95, 0.5), 0 0 25px rgba(131, 58, 180, 0.3);
}

.social-icon.discord:hover {
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  box-shadow: 0 12px 35px rgba(88, 101, 242, 0.5), 0 0 25px rgba(71, 82, 196, 0.3);
}

.social-icon.x:hover {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.4), 0 0 25px rgba(255, 255, 255, 0.2);
}

/* Custom tooltip styling */
.social-icon::before,
.social-icon::after {
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  position: absolute;
  z-index: 10001;
}

.social-icon::before {
  content: attr(title);
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: linear-gradient(135deg, #2a2a2d 0%, #1f2125 100%);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  white-space: normal;
  border: 1px solid #00ffae;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 174, 0.2);
  backdrop-filter: blur(10px);
  width: 200px;
  max-width: 200px;
  text-align: center;
  line-height: 1.3;
}

.social-icon::after {
  content: '';
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  border: 6px solid transparent;
  border-top-color: #00ffae;
}

.social-icon:hover::before,
.social-icon:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Remove default browser tooltips */
.social-icon[title] {
  position: relative;
}

/* Responsive footer - consolidated mobile styles */

/* Desktop styles applied to all devices - larger screens */
.container {
  padding: 4rem 3rem 6rem;
}

header {
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.top3 {
  gap: 3rem;
}

/* Avatar container for position icons */
.avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(0, 255, 163, 0.1);
  border: 2px solid rgba(0, 255, 163, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 163, 0.4);
  margin-left: auto;
  margin-right: auto;
  animation: avatarGlow 3s ease-in-out infinite alternate;
  overflow: hidden;
  padding: 10px;
}

.avatar-container.first-container {
  width: 120px;
  height: 120px;
  background: rgba(255, 215, 0, 0.15);
  border: 3px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
  animation: firstAvatarGlow 2.5s ease-in-out infinite alternate;
  padding: 15px;
}

@keyframes avatarGlow {
  0% {
    box-shadow: 0 0 15px rgba(0, 255, 163, 0.3);
    border-color: rgba(0, 255, 163, 0.3);
  }
  100% {
    box-shadow: 0 0 25px rgba(0, 255, 163, 0.6);
    border-color: rgba(0, 255, 163, 0.5);
  }
}

@keyframes firstAvatarGlow {
  0% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.4);
  }
  100% {
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.8);
    border-color: rgba(255, 215, 0, 0.7);
  }
}

/* Prize container styling */
.prize-container {
  position: relative;
  display: inline-block;
}

.prize {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  color: #ffd700;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.first-prize {
  font-size: 1.3em !important;
  color: #ffd700 !important;
  font-weight: 600 !important;
  margin-top: 0.2em !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* Emoji trophy fallback styles */
.emoji-trophy {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 1.5em;
  z-index: 2;
  animation: trophyGlow 2s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.emoji-background-trophy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4em;
  opacity: 0.3;
  z-index: 0;
  animation: trophyPulse 3s ease-in-out infinite;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.emoji-background-trophy.first-background-trophy {
  font-size: 5em;
  opacity: 0.25;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

/* Trophy color effects for emojis */
.gold-trophy {
  filter: hue-rotate(0deg) brightness(1.3) saturate(1.5);
  text-shadow: 0 0 15px rgba(255, 215, 0, 1);
}

.silver-trophy {
  filter: hue-rotate(0deg) brightness(1.1) saturate(0.8);
  text-shadow: 0 0 12px rgba(192, 192, 192, 0.8);
}

.bronze-trophy {
  filter: hue-rotate(15deg) brightness(1.1) saturate(1.2);
  text-shadow: 0 0 10px rgba(205, 127, 50, 0.8);
}

/* Enhanced hover effects for emoji trophies */
.card:hover .emoji-trophy {
  animation: trophyPulse 1s ease-in-out infinite;
  transform: scale(1.1);
}

.card:hover .emoji-background-trophy {
  opacity: 0.5;
  transform: translate(-50%, -50%) scale(1.1);
}

.card.rank1:hover .emoji-background-trophy {
  opacity: 0.4;
  transform: translate(-50%, -50%) scale(1.2);
}

/* Crown at top-center edge of circle */
.crown-top {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2em;
  z-index: 4;
  filter: drop-shadow(0 0 8px #ffd700);
  animation: crownGlow 2s ease-in-out infinite;
}

@keyframes crownGlow {
  0%, 100% {
    filter: drop-shadow(0 0 8px #ffd700);
    transform: translateX(-50%) scale(1);
  }
  50% {
    filter: drop-shadow(0 0 15px #ffd700) drop-shadow(0 0 25px rgba(255, 215, 0, 0.5));
    transform: translateX(-50%) scale(1.05);
  }
}

/* External trophy positioning - under the circle */
.external-trophy {
  width: 50px;
  height: 50px;
  margin: 0.5rem auto 1rem auto;
  display: block;
  filter: brightness(1.8) saturate(2) drop-shadow(0 0 12px #ffd700) contrast(1.3);
  animation: trophyGlow 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.external-trophy.gold-trophy {
  width: 60px !important;
  height: 60px !important;
  filter: 
    brightness(2) 
    saturate(2.5) 
    hue-rotate(35deg) 
    drop-shadow(0 0 15px #ffd700) 
    drop-shadow(0 0 25px rgba(255, 215, 0, 0.6));
}

.external-trophy.silver-trophy {
  filter: 
    brightness(1.8) 
    saturate(1.5) 
    hue-rotate(180deg) 
    drop-shadow(0 0 8px #c0c0c0) 
    drop-shadow(0 0 15px rgba(192, 192, 192, 0.4));
}

.external-trophy.bronze-trophy {
  filter: 
    brightness(1.6) 
    saturate(1.8) 
    hue-rotate(15deg) 
    drop-shadow(0 0 8px #cd7f32) 
    drop-shadow(0 0 15px rgba(205, 127, 50, 0.4));
}

/* Logo styling with glow effects */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  padding-top: 0;
  margin-bottom: 2rem;
  position: relative;
  width: 100%;
}

.logo-image {
  height: 180px;
  width: auto;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)) 
          drop-shadow(0 0 40px rgba(255, 215, 0, 0.4))
          brightness(1.1);
  animation: logoGlow 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.logo-image:hover {
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 1)) 
          drop-shadow(0 0 60px rgba(255, 215, 0, 0.6))
          brightness(1.3);
  transform: scale(1.05);
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)) 
            drop-shadow(0 0 40px rgba(255, 215, 0, 0.4))
            brightness(1.1);
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 1)) 
            drop-shadow(0 0 50px rgba(255, 215, 0, 0.6))
            brightness(1.2);
  }
}

/* Mobile responsive styles for logo */

/* Pagination Controls Styling */
.pagination-container {
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin: 3rem 0 !important;
  gap: 1rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 163, 0.2);
}

.pagination-btn {
  background: rgba(0, 255, 163, 0.2) !important;
  border: 2px solid #00ffa3 !important;
  color: #fff !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-size: 1rem !important;
  font-weight: 600 !important;
  min-height: 45px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.pagination-btn:hover:not(:disabled) {
  background: #00ffa3 !important;
  color: #000 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 163, 0.4);
}

.pagination-btn:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.pagination-btn.active {
  background: #00ffa3 !important;
  color: #000 !important;
  border-color: #00ffa3 !important;
  box-shadow: 0 0 20px rgba(0, 255, 163, 0.6) !important;
}

.pagination-numbers {
  display: flex !important;
  gap: 0.5rem !important;
}

.page-num {
  min-width: 3rem !important;
  height: 3rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.prev-btn, .next-btn {
  padding: 0.75rem 2rem !important;
}

/* Mobile responsive pagination */



/* Rules Modal Keyboard Accessibility */
.rules-modal:focus {
  outline: 2px solid #00ffae;
  outline-offset: 2px;
}

/* Month Selector Styles */
.month-selector-section {
  margin: 0 0 1.5rem 0 !important; /* Removed top margin completely with !important */
  padding: 0 2rem;
}

.month-selector {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.month-btn {
  background: linear-gradient(135deg, rgba(0, 255, 174, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
  border: 2px solid rgba(0, 255, 174, 0.3);
  color: #00ffae;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.month-btn:hover {
  background: linear-gradient(135deg, rgba(0, 255, 174, 0.2) 0%, rgba(255, 215, 0, 0.2) 100%);
  border-color: rgba(0, 255, 174, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 174, 0.3);
}

.month-btn.active {
  background: linear-gradient(135deg, #00ffae 0%, #ffd700 100%);
  color: #000;
  border-color: #00ffae;
  box-shadow: 0 5px 20px rgba(0, 255, 174, 0.4);
}

.month-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;
}

.month-btn:hover::before {
  left: 100%;
}

/* No Rewards Banner */
.no-rewards-banner {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(220, 53, 69, 0.1) 100%);
  border: 2px solid rgba(255, 193, 7, 0.4);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.no-rewards-content {
  color: #ffc107;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Mobile Responsiveness for Month Selector */

/* Complete Countdown Section - After Top 3 Winners */
.countdown-standalone-wrapper {
  margin: 1rem;
  padding: 0;
  display: flex;
  justify-content: center;
  background: none;
  border: none;
}

.countdown-standalone-container {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  border: 2px solid rgba(0, 255, 163, 0.3);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 
    0 0 20px rgba(0, 255, 163, 0.2),
    0 0 40px rgba(0, 255, 163, 0.1),
    inset 0 0 15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  max-width: 700px;
  width: 100%;
  text-align: center;
  min-height: 120px;
  height: auto;
}

.countdown-standalone-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 163, 0.1), transparent);
  /* Removed animation: shimmerFixed 3s infinite; */
  z-index: 0;
  border-radius: 15px;
  pointer-events: none;
}

@keyframes shimmerFixed {
  0% { 
    background: linear-gradient(90deg, transparent 0%, transparent 100%);
  }
  50% { 
    background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 163, 0.1) 50%, transparent 100%);
  }
  100% { 
    background: linear-gradient(90deg, transparent 0%, transparent 100%);
  }
}

/* Dynamic Vibe Message in Countdown Box */
.countdown-standalone-container .countdown-hero-title {
  font-size: 1.4rem;
  font-weight: bold;
  background: linear-gradient(45deg, #00ffa3, #ffd700, #00ffa3);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 3s ease-in-out infinite;
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(0, 255, 163, 0.3);
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Countdown Timer Container */
.countdown-standalone-container .countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  overflow: hidden;
  height: auto;
  min-height: 80px;
}

/* Time Blocks */
.countdown-standalone-container .time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  border: 2px solid rgba(0, 255, 163, 0.4);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  min-width: 70px;
  height: auto;
  min-height: 70px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 15px rgba(0, 255, 163, 0.2),
    inset 0 0 8px rgba(0, 0, 0, 0.5);
}

.countdown-standalone-container .time-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 255, 163, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.countdown-standalone-container .time-block:hover::before {
  opacity: 1;
}

.countdown-standalone-container .time-block:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: rgba(0, 255, 163, 0.6);
  box-shadow: 
    0 10px 30px rgba(0, 255, 163, 0.3),
    inset 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Time Numbers */
.countdown-standalone-container .time-number {
  font-size: 2rem;
  font-weight: bold;
  color: #00ffa3;
  text-shadow: 
    0 0 8px rgba(0, 255, 163, 0.5),
    0 0 15px rgba(0, 255, 163, 0.3);
  line-height: 1;
  position: relative;
  z-index: 1;
  font-family: 'Courier New', monospace;
}

/* Time Labels */
.countdown-standalone-container .time-label {
  font-size: 0.7rem;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 0.3rem;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
}

/* Time Separators */
.countdown-standalone-container .time-separator {
  font-size: 2.5rem;
  color: #ffd700;
  font-weight: bold;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  animation: digitalClockBlink 1s infinite;
  margin: 0 0.5rem;
}

@keyframes pulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.1);
  }
}

/* Leaderboard Ended State */
.countdown-standalone-container .leaderboard-ended {
  background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
  padding: 2rem 3rem;
  border-radius: 20px;
  border: 2px solid rgba(255, 71, 87, 0.5);
  box-shadow: 
    0 0 30px rgba(255, 71, 87, 0.3),
    inset 0 0 15px rgba(0, 0, 0, 0.3);
}

.countdown-standalone-container .ended-message {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Standalone Starting Soon Styles */
.countdown-standalone-container .leaderboard-starting-soon {
  background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
  padding: 2rem 3rem;
  border-radius: 20px;
  border: 2px solid rgba(255, 215, 0, 0.5);
  box-shadow: 
    0 0 30px rgba(255, 215, 0, 0.3),
    inset 0 0 15px rgba(0, 0, 0, 0.2);
}

.countdown-standalone-container .starting-soon-message {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2c3e50;
  text-shadow: 0 0 10px rgba(44, 62, 80, 0.3);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.countdown-standalone-container .manual-start-note {
  font-size: 1rem;
  color: #34495e;
  text-shadow: 0 0 5px rgba(52, 73, 94, 0.2);
  letter-spacing: 1px;
  font-style: italic;
}

/* Responsive Design */

/* Corner Ribbon Badges for Top 3 Rankings - Bigger Size */
.corner-ribbon {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 90px;
  height: 90px;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
}

.corner-ribbon::before {
  content: attr(data-text);
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100px;
  padding: 8px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  color: white;
  text-shadow: 
    0 2px 4px rgba(0,0,0,0.8),
    0 1px 2px rgba(0,0,0,0.6),
    1px 1px 0px rgba(0,0,0,0.4);
  letter-spacing: 0.8px;
  transform: rotate(-45deg);
  transform-origin: center;
}

/* 1st Place Ribbon - Enhanced Gold */
.corner-ribbon.first::before {
  background: linear-gradient(135deg, 
    #b8860b 0%, 
    #ffd700 15%, 
    #ffed4a 35%, 
    #fff700 50%, 
    #ffed4a 65%, 
    #ffd700 85%, 
    #b8860b 100%);
  box-shadow: 
    0 3px 8px rgba(255, 215, 0, 0.5),
    0 1px 3px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.4);
  border: 1px solid #b8860b;
}

/* 2nd Place Ribbon - Enhanced Silver */
.corner-ribbon.second::before {
  background: linear-gradient(135deg, 
    #808080 0%, 
    #c0c0c0 15%, 
    #e8e8e8 35%, 
    #f5f5f5 50%, 
    #e8e8e8 65%, 
    #c0c0c0 85%, 
    #808080 100%);
  box-shadow: 
    0 3px 8px rgba(192, 192, 192, 0.5),
    0 1px 3px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.6);
  border: 1px solid #808080;
  color: #333;
  text-shadow: 
    0 1px 2px rgba(255,255,255,0.8),
    0 1px 0px rgba(0,0,0,0.3);
}

/* 3rd Place Ribbon - Enhanced Bronze */
.corner-ribbon.third::before {
  background: linear-gradient(135deg, 
    #8b4513 0%, 
    #cd7f32 15%, 
    #daa520 35%, 
    #f4a460 50%, 
    #daa520 65%, 
    #cd7f32 85%, 
    #8b4513 100%);
  box-shadow: 
    0 3px 8px rgba(205, 127, 50, 0.5),
    0 1px 3px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.3);
  border: 1px solid #8b4513;
}

/* Add animation on hover */
.card:hover .corner-ribbon::before {
  transform: rotate(-45deg) scale(1.08);
  transition: transform 0.3s ease;
}

/* Additional animations for enhanced elements */
@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.9;
  }
}

@keyframes textShimmer {
  0% {
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 25px rgba(0, 255, 255, 0.8), 0 0 5px rgba(138, 43, 226, 0.5);
  }
  100% {
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  }
}

/* Ensure ribbon works with existing card styles */
.card {
  position: relative;
  overflow: hidden;
}

/* SCROLLABLE LEADERBOARD TABLE WITH 10 ITEMS MAX */
.leaderboard-table-wrapper {
  max-height: 600px; /* Limit height to show ~10 rows */
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(20, 25, 30, 0.8);
}

/* Custom scrollbar for the leaderboard table */
.leaderboard-table-wrapper::-webkit-scrollbar {
  width: 8px;
}

.leaderboard-table-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.leaderboard-table-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00ffa3, #ffd700);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #00ff88, #ffcc00);
}

/* Ensure table headers stay visible while scrolling */
.leaderboard-table {
  position: relative;
}

.table-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  background: linear-gradient(135deg, #2a3441 0%, #1e252e 100%) !important;
  border-bottom: 2px solid rgba(0, 255, 163, 0.3) !important;
}

/* Smooth scrolling */
.leaderboard-table-wrapper {
  scroll-behavior: smooth;
}

/* Touch scrolling support for mobile */
.leaderboard-table-wrapper {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* New Prize Amount and Title Styles */
.title-section {
  text-align: center;
  margin: 20px 0;
}

.header .prize-amount {
  font-size: 3rem !important;
  font-weight: bold !important;
  background: linear-gradient(45deg, #00ffa3, #ffd700) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  /* Workaround for text-shadow with gradient text */
  position: relative !important;
  margin: 10px 0 !important;
  letter-spacing: 2px !important;
  transform: translateZ(0) !important;
  will-change: transform !important;
  display: inline-block !important;
  color: #00ffa3 !important; /* Fallback color */
}

/* Add glow effect using pseudo-element since text-shadow doesn't work with transparent text */
.header .prize-amount::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: #00ffa3;
  text-shadow: 0 0 20px rgba(0, 255, 163, 0.6), 0 0 40px rgba(0, 255, 163, 0.4), 0 0 60px rgba(0, 255, 163, 0.2);
  animation: dynamicGlow 3s ease-in-out infinite alternate;
}

.header .prize-amount.main-prize {
  font-size: 3.5rem !important;
  margin-bottom: 5px !important;
  font-weight: 800 !important;
}

.header .prize-amount.bonus-prize {
  font-size: 2.5rem !important;
  margin-top: 15px !important;
  margin-bottom: 5px !important;
  font-weight: 800 !important;
}

.title-section h1 {
  font-size: 2.8rem;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(0, 255, 163, 0.2);
  margin: 5px 0;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.weekly-raffle {
  font-size: 2rem !important;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(0, 255, 163, 0.2);
  margin: 5px 0 15px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 15px;
  letter-spacing: 1px;
}

/* Add missing glow keyframe animation */
@keyframes glow {
  0% {
    text-shadow: 0 0 10px #00ffae, 0 0 20px #00ffae, 0 0 40px #00ffae;
  }
  100% {
    text-shadow: 0 0 15px #00ffae, 0 0 30px #00ffae, 0 0 60px #00ffae;
  }
}

/* Leaderboard Header and Title Styles */
.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  padding: 0 20px;
}

.leaderboard-title {
  flex: 1;
}

.leaderboard-title h2 {
  font-size: 2rem;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 255, 163, 0.3);
}

.data-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}

.data-source, .last-updated, .next-update {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.rules-btn {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 14px 28px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-size: 1rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: inherit !important;
  white-space: nowrap !important;
}

.rules-btn:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.5) !important;
}

/* Weekly Raffle Styles */
.raffle-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.info-card {
  background: linear-gradient(145deg, #1f2937, #374151);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.week-card {
  border-color: #10b981;
  background: linear-gradient(145deg, #064e3b, #065f46);
}

.prize-card {
  border-color: #fbbf24;
  background: linear-gradient(145deg, #422006, #713f12);
}

.card-header .card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: 0;
}

.week-card .card-title {
  color: #10b981;
}

.prize-card .card-title {
  color: #fbbf24;
}

.week-display {
  color: white;
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}

.prize-amount {
  color: white;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.prize-breakdown {
  color: white;
  font-size: 14px;
  opacity: 0.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.stat-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.participants-card {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.tickets-card {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.wagered-card {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
}

.stat-number {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.participants-card .stat-number {
  color: #3b82f6;
}

.tickets-card .stat-number {
  color: #10b981;
}

.wagered-card .stat-number {
  color: #fbbf24;
}

.stat-label {
  color: #9ca3af;
  font-size: 14px;
}

.loading-section {
  text-align: center;
  padding: 40px;
  color: #9ca3af;
}

.loading-content .loading-icon {
  font-size: 24px;
  margin-bottom: 20px;
}

.no-raffle-section {
  text-align: center;
  padding: 40px;
  background: linear-gradient(145deg, #422006, #713f12);
  border-radius: 15px;
  border: 2px solid #fbbf24;
}

.no-raffle-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.no-raffle-title {
  font-size: 24px;
  font-weight: bold;
  color: #fbbf24;
  margin-bottom: 10px;
}

.no-raffle-message {
  color: #fbbf24;
  font-size: 16px;
  opacity: 0.8;
}

.no-entries-section {
  padding: 40px;
  text-align: center;
  color: #9ca3af;
}

.no-entries-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.no-entries-text {
  margin: 0;
}

.section-header .section-title {
  font-size: 20px;
  font-weight: bold;
  color: white;
  margin: 0;
  padding: 15px 20px;
  background: linear-gradient(45deg, #374151, #4b5563);
  border-bottom: 1px solid #4b5563;
}

.tickets-display {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tickets-count {
  font-size: 16px;
  font-weight: bold;
  color: #3b82f6;
}

.tickets-label {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}

.last-updated {
  text-align: center;
  margin-top: 20px;
  color: #6b7280;
  font-size: 14px;
}

/* Responsive adjustments for weekly raffle */
@media (max-width: 768px) {
  .raffle-info-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}/* Force Desktop Table Layout on All Devices */
/* Override all media queries to maintain desktop table styling */
@media (max-width: 768px), (max-width: 480px), (max-width: 600px), (max-width: 360px) {
  /* Force all mobile-specific table rules to be ignored */
  .leaderboard-header-wrapper,
  .leaderboard-container,
  .leaderboard-table-wrapper,
  .leaderboard-table,
  .leaderboard-header-table,
  .leaderboard-body-table,
  .leaderboard-row,
  .rank-col,
  .user-col,
  .wager-col,
  .prize-col,
  .rank-number,
  .user-name,
  .user-row,
  .user-avatar,
  .username-text,
  .wager-amount,
  .leaderboard-table .prize-amount,
  th, td {
    /* Maintain desktop properties but don't affect header prize amounts */
    font-size: inherit;
    margin: inherit;
    padding: inherit;
    width: inherit;
    min-width: inherit;
    max-width: inherit;
    height: inherit;
    min-height: inherit;
    display: inherit;
    flex-direction: inherit;
    text-align: inherit;
    border-radius: inherit;
    transform: inherit;
    position: inherit;
    overflow: inherit;
  }
}

/* Fixed Header Wrapper */
.leaderboard-header-wrapper {
  margin: 20px auto 0;
  max-width: 800px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.leaderboard-header-table {
  margin: 0 !important;
  border-radius: 16px 16px 0 0 !important;
  box-shadow: none !important;
  width: 100%;
  table-layout: fixed !important;
}

.leaderboard-header-table th:first-child {
  border-top-left-radius: 16px;
}

.leaderboard-header-table th:last-child {
  border-top-right-radius: 16px;
}

/* Force exact column widths for header table */
.leaderboard-header-table .rank-col {
  width: 10% !important;
  min-width: 80px;
}

.leaderboard-header-table .user-col {
  width: 35% !important;
  min-width: 200px;
}

.leaderboard-header-table .wager-col {
  width: 27.5% !important;
  min-width: 150px;
}

.leaderboard-header-table .prize-col {
  width: 27.5% !important;
  min-width: 150px;
}

/* Scrollable Body Container */
.leaderboard-container {
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 0 0 12px 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  margin: 0 auto 20px;
  max-width: 800px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  /* Ensure proper stacking context for sticky headers */
  isolation: isolate;
  border-top: 1px solid #333; /* Clear separation between header and body */
}

.leaderboard-container .leaderboard-table {
  margin: 0; /* Remove margin since container handles spacing */
  border-radius: 0; /* Remove border radius since container handles it */
  box-shadow: none; /* Remove shadow since container handles it */
  width: 100%;
  table-layout: fixed !important;
}

.leaderboard-body-table {
  border-radius: 0 !important;
  background: transparent !important;
}

.leaderboard-body-table td {
  border-top: none; /* Remove top border since header handles separation */
}

/* Force exact column widths for body table */
.leaderboard-body-table .rank-col,
.leaderboard-body-table td:nth-child(1) {
  width: 10% !important;
  min-width: 80px;
}

.leaderboard-body-table .user-col,
.leaderboard-body-table td:nth-child(2) {
  width: 35% !important;
  min-width: 200px;
}

.leaderboard-body-table .wager-col,
.leaderboard-body-table td:nth-child(3) {
  width: 27.5% !important;
  min-width: 150px;
}

.leaderboard-body-table .prize-col,
.leaderboard-body-table td:nth-child(4) {
  width: 27.5% !important;
  min-width: 150px;
}

/* Add padding back through wrapper */
.leaderboard-table-wrapper {
  padding: 0 20px 20px 20px;
}

/* Ensure both containers have the same total width */
.leaderboard-header-wrapper,
.leaderboard-container {
  box-sizing: border-box;
}

/* Ensure both tables have identical rendering */
.leaderboard-header-table,
.leaderboard-body-table {
  border-spacing: 0;
  border-collapse: collapse;
}

/* Custom scrollbar styles */
.leaderboard-container::-webkit-scrollbar {
  width: 8px;
}

.leaderboard-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.leaderboard-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.leaderboard-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* For Firefox */
.leaderboard-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

/* ===========================================
   MOBILE RESPONSIVE IMPROVEMENTS
   =========================================== */

/* Ensure all table cells are properly centered */
.leaderboard-table th,
.leaderboard-table td {
  text-align: center !important;
  vertical-align: middle !important;
}

/* Special handling for username cells on all screen sizes */
.leaderboard-table td:nth-child(2) {
  text-align: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.leaderboard-table td:nth-child(2) .username {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* Tablet and small desktop */
@media (max-width: 768px) {
  .leaderboard-wrapper {
    margin: 25px 1.5rem;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 163, 0.1);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.3),
      0 0 40px rgba(0, 255, 163, 0.05);
  }
  
  .table-header-wrapper,
  .table-body-wrapper {
    border-radius: 15px;
  }
  
  .table-body-wrapper {
    max-height: 75vh;
    border-radius: 0 0 15px 15px;
  }
  
  .leaderboard-table {
    background: transparent;
  }
  
  .leaderboard-table th {
    padding: 15px 10px;
    font-size: 0.9rem;
    font-weight: 700;
    background: rgba(0, 255, 163, 0.08);
    border-bottom: 2px solid rgba(0, 255, 163, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
  }
  
  .leaderboard-table td {
    padding: 14px 10px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    vertical-align: middle;
  }
  
  .leaderboard-row:hover {
    background: rgba(0, 255, 163, 0.03);
    transform: scale(1.001);
  }
  
  .top-three {
    background: linear-gradient(135deg, 
      rgba(255, 215, 0, 0.08) 0%, 
      rgba(0, 255, 163, 0.05) 100%
    );
  }
  
  .crown-icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 8px currentColor);
  }
  
  .social-icon {
    width: 22px;
    height: 22px;
    transition: all 0.3s ease;
  }
  
  .social-link:hover .social-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px currentColor);
  }
}

/* Mobile - Medium (600px and below) */
@media (max-width: 600px) {
  .leaderboard-wrapper {
    margin: 20px 1rem;
    border-radius: 12px;
  }
  
  .table-header-wrapper,
  .table-body-wrapper {
    border-radius: 12px;
  }
  
  .table-body-wrapper {
    max-height: 70vh;
    border-radius: 0 0 12px 12px;
  }
  
  .leaderboard-table th {
    padding: 12px 8px;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    text-align: center;
  }
  
  .leaderboard-table td {
    padding: 12px 8px;
    font-size: 0.85rem;
    text-align: center;
    vertical-align: middle;
  }
  
  /* Better rank display */
  .rank-content {
    gap: 6px;
    align-items: center;
  }
  
  .rank-number {
    font-size: 0.9rem;
    font-weight: 700;
  }
  
  /* Enhanced username styling */
  .username {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    text-align: center !important;
    display: block;
    width: 100%;
    margin: 0 auto;
  }
  
  /* Better wagered amount display */
  .wagered-amount {
    font-size: 0.9rem;
    font-weight: 700;
    color: #00ffa3;
    text-shadow: 0 0 10px rgba(0, 255, 163, 0.3);
  }
  
  .social-links {
    gap: 8px;
    justify-content: center;
  }
  
  .social-link {
    padding: 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
  }
  
  .social-link:hover {
    background: rgba(0, 255, 163, 0.1);
    transform: translateY(-2px);
  }
  
  .social-icon {
    width: 20px;
    height: 20px;
  }
}

/* Mobile - Small (480px and below) */
@media (max-width: 480px) {
  .leaderboard-wrapper {
    margin: 15px 0.8rem;
    border-radius: 10px;
  }
  
  .table-header-wrapper,
  .table-body-wrapper {
    border-radius: 10px;
  }
  
  .table-body-wrapper {
    max-height: 65vh;
    border-radius: 0 0 10px 10px;
  }
  
  .leaderboard-table th {
    padding: 10px 6px;
    font-size: 0.8rem;
    letter-spacing: 0.6px;
    text-align: center;
  }
  
  .leaderboard-table td {
    padding: 10px 6px;
    font-size: 0.8rem;
    text-align: center;
    vertical-align: middle;
  }
  
  /* Compact rank display */
  .rank-content {
    gap: 4px;
  }
  
  .rank-number {
    font-size: 0.8rem;
  }
  
  .crown-icon {
    width: 16px;
    height: 16px;
  }
  
  /* Compact username with ellipsis */
  .username {
    font-size: 0.8rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center !important;
    display: block;
    width: 100%;
    margin: 0 auto;
  }
  
  /* Compact wagered amount */
  .wagered-amount {
    font-size: 0.8rem;
    font-weight: 600;
  }
  
  /* Ultra-compact social links */
  .social-links {
    gap: 4px;
  }
  
  .social-link {
    padding: 4px;
    border-radius: 6px;
  }
  
  .social-icon {
    width: 18px;
    height: 18px;
  }
  
  /* Enhanced mobile row styling */
  .leaderboard-row {
    transition: all 0.2s ease;
  }
  
  .leaderboard-row:active {
    background: rgba(0, 255, 163, 0.05);
    transform: scale(0.98);
  }
}

/* Mobile - Extra Small (360px and below) */
@media (max-width: 360px) {
  .leaderboard-wrapper {
    margin: 12px 0.6rem;
    border-radius: 8px;
  }
  
  .table-header-wrapper,
  .table-body-wrapper {
    border-radius: 8px;
  }
  
  .table-body-wrapper {
    max-height: 60vh;
    border-radius: 0 0 8px 8px;
  }
  
  .leaderboard-table th {
    padding: 8px 4px;
    font-size: 0.75rem;
    letter-spacing: 0.4px;
    text-align: center;
  }
  
  .leaderboard-table td {
    padding: 8px 4px;
    font-size: 0.75rem;
    text-align: center;
    vertical-align: middle;
  }
  
  /* Ultra-compact elements */
  .rank-number {
    font-size: 0.75rem;
  }
  
  .crown-icon {
    width: 14px;
    height: 14px;
  }
  
  .username {
    font-size: 0.75rem;
    max-width: 80px;
    text-align: center !important;
    display: block;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .wagered-amount {
    font-size: 0.75rem;
  }
  
  .social-icon {
    width: 16px;
    height: 16px;
  }
  
  /* Hide excess social links for tiny screens */
  .social-links .social-link:nth-child(n+4) {
    display: none;
  }
  
  /* Ultra-compact column widths */
  .leaderboard-table th:nth-child(1),
  .leaderboard-table td:nth-child(1) {
    width: 15% !important;
  }
  
  .leaderboard-table th:nth-child(2),
  .leaderboard-table td:nth-child(2) {
    width: 42% !important;
  }
  
  .leaderboard-table th:nth-child(3),
  .leaderboard-table td:nth-child(3) {
    width: 28% !important;
  }
  
  .leaderboard-table th:nth-child(4),
  .leaderboard-table td:nth-child(4) {
    width: 15% !important;
  }
}
/* Simple Message Styling */
.simple-message {
  position: relative;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: transparent;
  border: none;
  color: #d0d0d0;
  text-align: center;
  margin-bottom: 0.5rem;
}

.message-text {
  position: relative;
  z-index: 2;
}

/* Style for ended leaderboard */
.simple-message.ended {
  color: #ff5555;
  font-weight: 700;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .message-content {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .motivational-message {
    margin-bottom: 0;
    margin-right: 15px;
    text-align: left;
  }
  
  .countdown-container {
    flex-direction: row;
    align-items: baseline;
  }
  
  .countdown-label {
    margin-bottom: 0;
    margin-right: 8px;
  }
}

/* Simple Message Styling (keeping for backward compatibility) */
.simple-message {
  position: relative;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: transparent;
  border: none;
  color: #d0d0d0;
  text-align: center;
  margin-bottom: 0.5rem;
}

.message-text {
  position: relative;
  z-index: 2;
}
