:root {
  --bg: #05070b;
  --panel: #0d111a;
  --muted: #aab7cc;
  --accent: #35a8ff;
  --accent2: #00e0ff;
  --glow: 0 0 25px rgba(0, 224, 255, 0.25);
  --neon: rgba(0, 224, 255, 0.12);
  --transition: 0.3s ease all;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: 'Orbitron', sans-serif;
  background: radial-gradient(1000px 600px at 15% 30%, rgba(0, 224, 255, 0.05), transparent 30%),
              radial-gradient(900px 500px at 80% 80%, rgba(0, 136, 255, 0.05), transparent 40%),
              var(--bg);
  color: #e9f3ff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInPage 0.8s ease forwards;
}

/* ========== Animations ========== */
@keyframes fadeInPage {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(0, 224, 255, 0.25), inset 0 0 10px rgba(0, 224, 255, 0.05); }
  50% { box-shadow: 0 0 25px rgba(0, 224, 255, 0.45), inset 0 0 18px rgba(0, 224, 255, 0.1); }
}
@keyframes riseUp {
  from { transform: scaleY(0.7); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes flicker {
  0% { opacity: 0.9; text-shadow: 0 0 6px #00eaff; }
  100% { opacity: 1; text-shadow: 0 0 14px #00eaff; }
}
@keyframes fadeInItem {
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Layout ========== */
.container { max-width: 1100px; margin: 32px auto; padding: 24px; }

.header { text-align: center; margin-bottom: 28px; }
.header.small { display: flex; align-items: center; gap: 16px; justify-content: flex-start; }
.header .back { color: var(--accent2); text-decoration: none; transition: var(--transition); }
.header .back:hover { color: #fff; transform: translateX(-3px); }
.brand { font-size: 42px; margin: 0; text-shadow: 0 0 10px var(--accent2); }
.sub { color: var(--muted); font-size: 14px; }

/* ========== Homepage Cards ========== */
.cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
}
.card {
  width: 300px;
  height: 200px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(0, 224, 255, 0.05), rgba(0, 136, 255, 0.02));
  border: 1px solid rgba(0, 224, 255, 0.1);
  box-shadow: var(--glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  transition: 0.25s ease all;
  transform: perspective(800px) rotateX(0);
}
.card:hover {
  transform: perspective(800px) rotateX(8deg) translateY(-5px);
  box-shadow: 0 0 40px rgba(0, 224, 255, 0.3);
}
.card .logo { width: 90px; margin-bottom: 10px; }

/* ========== Social Box ========== */
.social-box {
  margin: 40px auto;
  max-width: 760px;
  background: linear-gradient(135deg, rgba(0, 224, 255, 0.08), rgba(0, 136, 255, 0.05));
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(0, 224, 255, 0.2);
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 224, 255, 0.2);
  animation: pulseGlow 3s infinite;
}
.social-box h3 { margin: 0 0 14px 0; font-size: 22px; color: var(--accent2); }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.social-links a {
  background: linear-gradient(180deg, var(--accent2), #007aff);
  color: #0d111a;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(0, 224, 255, 0.3);
  transition: all 0.25s ease;
}
.social-links a:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 25px rgba(0, 224, 255, 0.6);
  background: linear-gradient(180deg, #00eaff, #0088ff);
}

/* ========== Leaderboard ========== */
.countdown-area {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.countdown {
  background: rgba(0, 224, 255, 0.05);
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(0, 224, 255, 0.1);
  color: var(--accent);
  box-shadow: var(--glow);
}
.timer {
  font-size: 20px;
  margin-top: 6px;
  animation: flicker 1.5s ease-in-out infinite alternate;
}

.leaderboard {
  background: linear-gradient(180deg, rgba(0, 224, 255, 0.05), rgba(0, 136, 255, 0.02));
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(0, 224, 255, 0.1);
  box-shadow: var(--glow);
  animation: fadeInPage 0.8s ease forwards;
}

/* ========== Podium (enhanced) ========== */
.podium {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 20px;
}
.podium .place {
  width: 120px;
  text-align: center;
  border-radius: 10px;
  color: #fff;
  transform-origin: bottom;
  animation: riseUp 1s ease forwards;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 224, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.podium .place:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 40px rgba(0, 224, 255, 0.6);
}
.podium .place.place1 { background: linear-gradient(180deg, #00eaff, #0078ff); }
.podium .place.place2 { background: linear-gradient(180deg, #00bfff, #005fff); }
.podium .place.place3 { background: linear-gradient(180deg, #0095ff, #0044aa); }

.podium .place::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle, rgba(0,224,255,0.12), transparent 70%);
  filter: blur(20px);
  animation: floaty 3s infinite ease-in-out;
  z-index: 0;
}

.podium .name {
  position: relative;
  z-index: 2;
  font-weight: 700;
  font-size: 16px;
  margin-top: 12px;
}
.podium .wager {
  position: relative;
  z-index: 2;
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 6px;
}
.podium .reward {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 800;
  font-size: 18px;
  color: #0d111a;
  background: rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 5px 10px;
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
  z-index: 2;
  animation: pulseGlow 3s infinite;
}

/* ========== List 4–10 ========== */
.place-list { margin-top: 10px; }
.place-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 224, 255, 0.03);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 224, 255, 0.1);
  margin-bottom: 10px;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInItem 0.6s forwards;
}
.place-item:hover { background: rgba(0, 224, 255, 0.08); transform: translateX(3px); }
.rank-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 224, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent2);
  font-weight: 700;
}
.user-name { font-weight: 700; }
.user-wager { font-size: 13px; color: var(--muted); }
.reward { font-weight: 700; color: var(--accent2); }

/* ========== Buttons ========== */
.register-row { display: flex; justify-content: center; margin-top: 20px; }
.btn.register {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  color: #0d111a;
  background: linear-gradient(90deg, #00eaff, #0078ff);
  text-decoration: none;
  box-shadow: 0 0 20px rgba(0, 224, 255, 0.3);
  transition: var(--transition);
}
.btn.register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 224, 255, 0.6);
}

/* ========== Footer ========== */
.footer {
  text-align: center;
  color: var(--muted);
  margin-top: 30px;
  font-size: 13px;
  opacity: 0.8;
}

/* ========== Responsive ========== */
@media (max-width: 720px) {
  .podium { gap: 10px; }
  .podium .place { width: 85px; }
  .card { width: 100%; }
}
.card .logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
  image-rendering: auto;
  filter: drop-shadow(0 0 8px rgba(0, 224, 255, 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.card:hover .logo {
  transform: scale(1.08);
  filter: drop-shadow(0 0 15px rgba(0, 224, 255, 0.8));
}
.header h1 {
  font-size: 42px;
  text-align: center;
  margin: 0 auto 10px auto;
  color: #e9f3ff;
  text-shadow: 0 0 10px var(--accent2);
  letter-spacing: 1px;
}
.header.small { justify-content: center; }
.cards.single { justify-content: center; }
