/* Score Page Styles */

.score-page {
    position: relative;
    width: 1440px;
    height: 1024px;
    margin: 0 auto;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top Bar with Percentage */
.score-top-bar {
    position: absolute;
    top: 380px;
    left: -30px;
    width: 1492px;
    height: 347px;
    background-color: transparent;
}

.congratulations {
    position: absolute;
    top: -236px;
    left: -12px;
    width: 2163px;
    height: 233px;
    font-family: Limelight;
    font-size: 217.895px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #000;
    margin: 0;
    background-color: #FFFFFF;
}

.score-percentage {
    position: absolute;
    top: 412px;
    left: -30px;
    font-family: 'GFS Didot', serif;
    font-size: 250px;
    font-weight: 400;
    color: #000;
    margin: 0;
    line-height: normal;
    width: 1492px;
    height: 283px;
    background-color: #F3E8A0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bottom Bar with Message */
.score-bottom-bar {
    position: absolute;
    top: 762px;
    left: -46px;
    width: 1579px;
    height: 63px;
    background-color: #F3E8A0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.score-message {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 35.424px;
    font-weight: 400;
    color: #000;
    margin: 0;
    padding: 0;
    line-height: normal;
    white-space: nowrap;
}

.completion-date {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 35.424px;
    font-weight: 400;
    color: #000;
    margin: 0;
    padding: 0;
    line-height: normal;
    white-space: nowrap;
}

/* Close Button */
.score-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 66px;
    height: 64px;
    border: none;
    background-color: #D3D3D3;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.score-close-btn svg {
    width: 32px;
    height: 32px;
    color: #2B2B2B;
}

.score-close-btn:hover {
    background-color: rgba(163, 177, 138, 0.1);
}

/* Download Button */
.score-download-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 90px;
    height: 90px;
    border: none;
    background-color: #2B2B2B;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.score-download-btn svg {
    width: 32px;
    height: 32px;
    color: white;
}

.score-download-btn:hover {
    background-color: #1a1a1a;
}

/* Fireworks Animation */
.fireworks-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.firework-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: burstParticle 1.2s ease-out forwards;
}

@keyframes burstParticle {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

@keyframes fireworkShine {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.firework-shine {
    position: absolute;
    pointer-events: none;
    animation: fireworkShine 0.8s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 1440px) {
    .score-page {
        width: 100%;
        height: auto;
        min-height: 1024px;
    }

    .congratulations {
        font-size: clamp(80px, 15vw, 217.895px);
        top: 80px;
    }

    .score-top-bar {
        top: auto;
        height: 300px;
    }

    .score-percentage {
        font-size: clamp(120px, 20vw, 250px);
    }

    .score-bottom-bar {
        height: auto;
        padding: 20px 0;
    }

    .score-message {
        font-size: clamp(20px, 5vw, 35.424px);
        padding: 0 20px;
    }
}
