.complete_main {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.trophy_container {
    position: relative;
    margin-top: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trophy_svg {
    width: clamp(80px, 15vh, 120px);
    height: clamp(80px, 15vh, 120px);
    fill: #f2c94c;
    filter: drop-shadow(0 0 20px rgba(242, 201, 76, 0.4));
    opacity: 0;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.trophy_glow {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(242, 201, 76, 0.25) 0%, transparent 70%);
    animation: pulseGlow 4s infinite ease-in-out;
}

.complete_title {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 900;
    margin-bottom: 4px;
    text-align: center;
    opacity: 0;
    animation: slideUpFade 0.5s ease-out 0.3s forwards;
}

.complete_subtitle {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    opacity: 0;
    animation: slideUpFade 0.5s ease-out 0.4s forwards;
}

.rank_card {
    width: 100%;
    background: var(--c-bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
    opacity: 0;
    animation: slideUpFade 0.6s ease-out 0.9s forwards;
}

.rank_header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 800;
}

.rank_track {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.rank_fill {
    height: 100%;
    background: var(--c-accent-white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: width 1s ease-out;
}

.rank_msg {
    font-size: 11px;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
}

.results_grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 -6px 24px -6px;
}

.result_card {
    background-color: var(--c-bg-card);
    border: 2px solid var(--c-border);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    width: calc(50% - 12px);
    margin: 6px;
    opacity: 0;
}

.results_grid .result_card:last-child:nth-child(odd) {
    width: calc(100% - 12px);
}

.result_card:nth-child(1) {
    animation: slideUpFade 0.4s ease-out 0.5s forwards;
}

.result_card:nth-child(2) {
    animation: slideUpFade 0.4s ease-out 0.6s forwards;
}

.result_card:nth-child(3) {
    animation: slideUpFade 0.4s ease-out 0.7s forwards;
}

.result_card:nth-child(4) {
    animation: slideUpFade 0.4s ease-out 0.8s forwards;
}

.result_val {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
}

.result_val .g_icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

.result_label {
    font-size: 11px;
    color: var(--c-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 4px;
}

@keyframes fall {
    0% {
        top: -10%;
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }

    100% {
        top: 120%;
        transform: rotateX(360deg) rotateY(720deg) rotateZ(360deg);
    }
}

.confetti {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: #f00;
    animation: fall linear forwards;
    z-index: 210;
    pointer-events: none;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

.text_xp {
    color: #1cb0f6;
}

.text_time {
    color: white;
}

.text_success {
    color: var(--c-accent-green);
}

.text_words {
    color: var(--c-accent-green);
}

@media (max-height: 720px) {
    .trophy_container {
        margin-top: 0;
        margin-bottom: 15px;
    }

    .trophy_svg {
        width: clamp(80px, 15vh, 110px);
        height: clamp(80px, 15vh, 110px);
    }

    .complete_subtitle {
        margin-bottom: 15px;
    }

    .results_grid {
        margin-bottom: 12px;
    }

    .result_card {
        padding: 8px;
        margin: 4px;
        width: calc(50% - 8px);
    }

    .results_grid .result_card:last-child:nth-child(odd) {
        width: calc(100% - 8px);
    }
}
