body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  color: #fff;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

canvas#particles {
  position: fixed;
  left: 0; 
  top: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.content { 
  position: relative; 
  z-index: 1; 
  max-width: 1000px; 
  margin: 0 auto; 
  padding: 2rem 1rem; 
  text-align: center; 
}

/* Header/Title Section */
.main-header {
  margin-bottom: 2.5rem;
}

.main-header .logo {
  max-width: 220px;
  animation: floatLogo 3s ease-in-out infinite;
  margin-bottom: 1.2rem;
}

@keyframes floatLogo {
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-10px);}
}

.main-title {
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 0.7rem;
  text-shadow: 0 2px 12px #0008;
}

.main-subtitle {
  font-size: 1.1rem;
  color: #ffd54f;
  font-weight: 600;
  margin-bottom: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.main-highlight {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin: 0.7rem 0 0.2rem 0;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px #0008;
}

.main-highlight .yellow {
  color: #ffd54f;
}

.main-desc {
  color: #b0b8c7;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}

/* Timer and End Text */
.lb-ends {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.lb-ends img.timer-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 0.5rem;
  object-fit: contain;
}

.lb-ends .text {
  display: block;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0.5rem 0 2rem;
  background: rgba(22, 45, 80, 0.7);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18);
  padding: 1.2rem 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.countdown-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.countdown .num {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffd54f;
  background: #1a2d4d;
  border-radius: 12px;
  padding: 0.5rem 1.2rem;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.12);
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
  transition: background 0.2s;
}

.countdown .label {
  font-size: 1rem;
  color: #b0b8c7;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Podium Style for Top 3 */
.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.podium-card {
  background: rgba(30, 40, 70, 0.95);
  border-radius: 18px 18px 24px 24px;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: floatLogo 3s ease-in-out infinite;
}

.podium-card.silver {
  border: 2.5px solid #bfc1c6;
  z-index: 1;
  animation-delay: -1s;
}

.podium-card.gold {
  border: 2.5px solid #ffd700;
  z-index: 2;
  transform: translateY(-30px);
}

.podium-card.bronze {
  border: 2.5px solid #e09c5c;
  z-index: 1;
  animation-delay: -2s;
}

.podium-rank {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: #222c3c;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  border: 3px solid #ffd54f;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.18);
  z-index: 2;
}

.podium-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 1.5rem 0 0.5rem 0;
  background: #1a2d4d;
  object-fit: cover;
  border: 3px solid #fff;
}

.podium-username {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
  color: #fff;
}

.podium-wagered {
  color: #ffd54f;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.podium-label {
  color: #b0b8c7;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.podium-reward {
  background: #1a2d4d;
  color: #4caf50;
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 10px;
  padding: 0.5rem 1.2rem;
  margin-top: 0.7rem;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
}

/* Table 4-15 */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

thead th {
  background: transparent;
  color: #b0b8c7;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 1rem;
  border: none;
  text-align: left;
}

tbody tr {
  background: rgba(30, 40, 70, 0.95);
  transition: transform 0.2s;
}

tbody tr:hover {
  transform: translateX(5px);
}

td {
  padding: 1rem;
  border: none;
  color: #fff;
}

td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  font-weight: 600;
}

td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* User column with avatar */
td.user-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a2d4d;
  border: 2px solid #fff;
}

/* Amount columns */
td.amount {
  color: #ffd54f;
  font-weight: 700;
}

td.reward {
  color: #4caf50;
  font-weight: 700;
}

/* Buttons */
.prev-btn { 
  background: #ffd54f; 
  color: #000; 
  border: none; 
  border-radius: 30px; 
  padding: 0.75rem 2rem; 
  font-weight: 700; 
  cursor: pointer; 
  transition: transform 0.2s; 
  margin-bottom: 4rem; 
  z-index: 1; 
}

.prev-btn:hover { 
  transform: scale(1.05); 
}

.play-btn { 
  background: #ffd54f; 
  color: #000; 
  border: none; 
  border-radius: 30px; 
  padding: 0.75rem 2rem; 
  font-weight: 700; 
  cursor: pointer; 
  transition: transform 0.2s; 
  z-index: 1; 
}

.play-btn:hover { 
  transform: scale(1.05); 
}

/* Modal */
#prev-modal { 
  display: none; 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0,0,0,0.7); 
  justify-content: center; 
  align-items: center; 
  z-index: 5; 
}

#prev-modal.active { 
  display: flex; 
}

.modal-content { 
  background: #162d50; 
  padding: 1.5rem; 
  border-radius: 8px; 
  width: 90%; 
  max-width: 600px; 
  max-height: 80%; 
  overflow: auto; 
  position: relative; 
}

.modal-close { 
  position: absolute; 
  top: 10px; 
  right: 10px; 
  background: none; 
  border: none; 
  color: #fff; 
  font-size: 1.5rem; 
  cursor: pointer; 
}

.modal-title { 
  color: #fff; 
  text-align: center; 
  margin-bottom: 1rem; 
}

.modal-content table { 
  width: 100%; 
}

.modal-content th, .modal-content td { 
  color: #fff; 
  padding: 0.5rem; 
  border-bottom: 1px solid rgba(255,255,255,0.1); 
}

/* Footer */
footer {
  background: linear-gradient(90deg, #0b1e3d 0%, #162d50 100%);
  padding: 2.5rem 1rem 1.2rem 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 -4px 24px 0 rgba(0,0,0,0.18);
  border-top: 2px solid #ffd54f;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 1.2rem;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffd54f;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px #0008;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.social-icons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  transition: transform 0.2s;
  text-decoration: none;
  font-size: 0.9rem;
}

.social-icons a:hover { 
  transform: translateY(-5px) scale(1.08);
}

.social-icons img { 
  width: 32px; 
  height: 32px; 
  margin-bottom: 0.25rem; 
}

.footer-nav { 
  margin-bottom: 0.7rem; 
}

.footer-nav a { 
  text-decoration: none; 
  color: #ffd54f; 
  font-size: 1rem; 
  font-weight: 600; 
}

.disclaimer {
  color: #b0b8c7;
  font-size: 0.9rem;
  max-width: 700px;
  margin: 1rem auto 0;
  background: rgba(22,45,80,0.7);
  border-radius: 10px;
  padding: 0.7rem 1.2rem;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
  letter-spacing: 0.5px;
}

@media (max-width: 700px) {
  .podium { 
    flex-direction: column; 
    align-items: center; 
    gap: 1.5rem; 
  }
  .podium-card { 
    width: 90vw; 
    max-width: 320px; 
  }
  .footer-row { 
    flex-direction: column; 
    gap: 1rem; 
  }
}

@media (max-width: 600px) {
  .countdown { 
    flex-wrap: wrap; 
    gap: 1rem; 
  }
}
