.leaderboard-stage {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8rem 2rem 4rem 2rem;
  overflow-y: auto;
}

.leaderboard-wrapper {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* Podium Container */
.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px; /* Increased gap for 3D boxes */
  margin-bottom: 3.5rem;
  min-height: 280px;
  perspective: 1000px;
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 110px;
  position: relative;
}

.podium-name {
  font-family: var(--font-hero);
  font-size: 1.15rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.podium-score {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.03); /* More translucent */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--theme-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--theme-primary);
  box-shadow: 0 0 15px var(--theme-glow), inset 0 0 10px var(--theme-glow);
}

.place-2 .podium-score, .place-3 .podium-score {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.02); /* More translucent */
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.05);
}

/* Liquid Glass & 3D Podium Block */
.podium-block {
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%); /* More translucent */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: none;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-hero);
  font-size: 3.5rem;
  font-weight: 800;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 
    inset 0 25px 40px rgba(255, 255, 255, 0.05),
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    inset -5px 0 15px rgba(0, 0, 0, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.4);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  transition: transform 0.3s ease;
}

.podium-block::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  box-shadow: inset 0 -30px 40px rgba(0, 0, 0, 0.4); /* Softer shadows so it's less dark */
  pointer-events: none;
}

.place-1 .podium-block {
  height: 150px;
  background: linear-gradient(135deg, var(--theme-glow) 0%, transparent 100%); /* More translucent */
  border-color: var(--theme-primary);
  box-shadow: 
    inset 0 25px 50px var(--theme-glow),
    inset 0 1px 2px var(--theme-primary),
    inset -5px 0 15px rgba(0, 0, 0, 0.2),
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 30px var(--theme-glow);
  color: var(--theme-primary);
  z-index: 2;
}

.place-2 .podium-block {
  height: 100px;
}

.place-3 .podium-block {
  height: 70px;
}

.trophy {
  font-size: 1.8rem;
  margin-bottom: 8px;
  animation: floatTrophy 3s ease-in-out infinite;
}

@keyframes floatTrophy {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

/* Liquid Glass List Container */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.list-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%); /* More translucent */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.15),
    inset 0 -10px 20px rgba(0, 0, 0, 0.1),
    0 15px 35px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.list-item:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--theme-primary);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.25),
    inset 0 -10px 20px rgba(0, 0, 0, 0.1),
    0 20px 45px var(--theme-glow);
}

.list-rank {
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 20px;
  width: 28px;
}

.list-name {
  flex: 1;
  font-family: var(--font-hero);
  color: #ffffff;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.list-score {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--theme-primary);
  font-weight: 700;
}

/* Clear index page background specifically for leaderboard layout cleanly */
.leaderboard-stage::before {
  display: none;
}

@media (max-width: 768px) {
  .leaderboard-stage {
    padding: 6rem 1rem 2rem 1rem;
  }
}
