/* Victory card: banner scales in, stars punch in one at a time,
   accuracy counts up. The celebration IS the reward. */
#victory {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(4, 6, 14, 0.55);
    z-index: 110;
}

#victory-card {
    text-align: center;
    min-width: min(420px, calc(100vw - 48px));
    padding: 34px 44px 30px;
    border-radius: 24px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 244, 222, 0.08),
            rgba(255, 255, 255, 0)
        ),
        rgba(16, 20, 36, 0.94);
    border: 1px solid rgba(242, 196, 109, 0.45);
    box-shadow:
        0 40px 110px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(242, 196, 109, 0.12);
    animation: victory-in 460ms cubic-bezier(0.2, 1.4, 0.35, 1);
}

@keyframes victory-in {
    0% {
        transform: scale(0.6) translateY(26px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

#victory-kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.34em;
    color: rgba(255, 236, 205, 0.75);
}

#victory-title {
    margin-top: 6px;
    font-family: 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
    font-size: 34px;
    color: #fff7ec;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

#victory-stars {
    margin: 14px 0 4px;
    font-size: 44px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.16);
}

#victory-stars span {
    display: inline-block;
}

#victory-stars span.earned {
    color: #f2c46d;
    text-shadow: 0 0 22px rgba(242, 196, 109, 0.65);
    transform: scale(0);
    animation: star-pop 520ms cubic-bezier(0.2, 1.6, 0.4, 1) forwards;
}

@keyframes star-pop {
    0% {
        transform: scale(0) rotate(-40deg);
    }
    70% {
        transform: scale(1.45) rotate(6deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

#victory-acc {
    font-size: 15px;
    font-weight: 700;
    color: rgba(236, 242, 250, 0.8);
    margin-bottom: 18px;
}

#victory-acc-value {
    color: #f2c46d;
    font-size: 19px;
}

#victory-continue {
    padding: 12px 26px;
    border-radius: 999px;
    border: 1px solid rgba(255, 226, 177, 0.4);
    background: linear-gradient(180deg, #f2c46d, #d79a46);
    color: #23160c;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

#victory-continue:hover {
    transform: translateY(-1px);
}
