/* ppuzzl.win - Neon Victory Celebration */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #1a0a2e; color: #f0f0f0; font-family: 'Inter', sans-serif; font-weight: 400; line-height: 1.6; }

/* Victory Section */
.victory {
    text-align: center;
    padding: 8rem 2rem 5rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.beams {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
}

.beam {
    position: absolute;
    width: 4px;
    height: 300px;
    background: rgba(251, 191, 36, 0.2);
    transform-origin: bottom center;
    transform: rotate(var(--angle));
    bottom: 0;
    left: -2px;
    animation: beam-pulse 3s ease-in-out infinite;
}

@keyframes beam-pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

.trophy {
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 24px solid #fbbf24;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
    animation: trophy-glow 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.3));
}

@keyframes trophy-glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.3)); }
    50% { filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.6)); }
}

.brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: clamp(4rem, 10vw, 8rem);
    color: #fbbf24;
    text-shadow: 0 0 10px #fbbf24, 0 0 30px #fbbf24, 0 0 60px #fbbf24;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
    animation: text-glow 2.5s ease-in-out infinite;
}

@keyframes text-glow {
    0%, 100% { text-shadow: 0 0 10px #fbbf24, 0 0 30px #fbbf24, 0 0 60px #fbbf24; }
    50% { text-shadow: 0 0 15px #fbbf24, 0 0 40px #fbbf24, 0 0 80px #fbbf24; }
}

.subtitle {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
    letter-spacing: 0.1em;
}

/* Ranks/Leaderboard Section */
.ranks {
    max-width: 440px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.leaderboard {
    background: #120820;
    border: 2px solid #fbbf24;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.2), inset 0 0 20px rgba(251, 191, 36, 0.05);
}

.lb-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: #fbbf24;
    margin-bottom: 1rem;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.lb-entry {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    transition: all 0.3s ease;
}

.lb-entry:hover {
    background: rgba(251, 191, 36, 0.05);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.lb-entry:last-child { border-bottom: none; }

.lb-entry.top {
    background: rgba(34, 197, 94, 0.08);
    border-left: 3px solid #22c55e;
    padding-left: 0.5rem;
}

.lb-entry.top .rank {
    color: #22c55e;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
    font-weight: bold;
}

.rank {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #fbbf24;
    width: 2.5rem;
    text-shadow: 0 0 5px rgba(251, 191, 36, 0.3);
}

.player {
    font-size: 0.8rem;
    flex: 1;
    color: #f0f0f0;
}

.score {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #fbbf24;
    text-shadow: 0 0 5px rgba(251, 191, 36, 0.3);
}

/* Glory/Victory Strip Section */
.glory {
    padding: 3rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.victory-strip {
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #fbbf24 0%, #22c55e 50%, #ec4899 75%, #fbbf24 100%);
    animation: pulse-strip 2s ease infinite;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5), 0 0 40px rgba(34, 197, 94, 0.3);
}

@keyframes pulse-strip {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Hall of Fame Section */
.fame {
    text-align: center;
    padding: 3rem 2rem 5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.fame-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: #fbbf24;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.champions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.champion-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #ec4899 50%, #120820 100%);
    border: 3px solid #fbbf24;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.4), 0 0 50px rgba(236, 72, 153, 0.2);
    animation: champion-pulse 2s ease infinite;
    transition: all 0.3s ease;
}

.champion-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 35px rgba(251, 191, 36, 0.6), 0 0 70px rgba(236, 72, 153, 0.4);
}

@keyframes champion-pulse {
    0%, 100% { box-shadow: 0 0 25px rgba(251, 191, 36, 0.4), 0 0 50px rgba(236, 72, 153, 0.2); }
    50% { box-shadow: 0 0 35px rgba(251, 191, 36, 0.6), 0 0 60px rgba(236, 72, 153, 0.4); }
}

.fame-close {
    font-size: 0.85rem;
    opacity: 0.5;
    letter-spacing: 0.05em;
    animation: fade-out 0.8s ease-in-out infinite;
}

@keyframes fade-out {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
