body.kt-game-celebration-open { overflow: hidden; }

.kt-game-celebration {
    align-items: center;
    background: rgba(10, 18, 28, 0.54);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    height: 100%;
    justify-content: center;
    left: 0;
    overflow: hidden;
    padding: 24px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2147483000;
}

.kt-game-celebration.is-visible { display: flex; }

.kt-game-celebration__card {
    background: #ffffff;
    border: 1px solid rgba(16, 34, 55, 0.08);
    border-radius: 30px;
    box-shadow: 0 24px 80px rgba(8, 20, 33, 0.34);
    color: #102033;
    font-family: Arial, Helvetica, sans-serif;
    max-width: 460px;
    overflow: hidden;
    position: relative;
    text-align: center;
    width: min(460px, 100%);
    z-index: 2;
}

.kt-game-celebration__card:before {
    background: linear-gradient(135deg, #ff7900 0%, #ffb329 44%, #17a2a8 100%);
    content: "";
    display: block;
    height: 8px;
    width: 100%;
}

.kt-game-celebration__close {
    align-items: center;
    background: #f4f7fb;
    border: 0;
    border-radius: 50%;
    color: #526173;
    display: flex;
    font-size: 24px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 14px;
    top: 18px;
    width: 36px;
}

.kt-game-celebration__close:hover,
.kt-game-celebration__close:focus {
    background: #e7edf4;
    color: #102033;
    outline: none;
}

.kt-game-celebration__body { padding: 38px 32px 30px; }

.kt-game-celebration__eyebrow {
    color: #17a2a8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 38px;
    text-transform: uppercase;
}

.kt-game-celebration__medal {
    align-items: center;
    background: linear-gradient(145deg, #17324f, #24506f);
    border-radius: 50%;
    box-shadow: 0 16px 32px rgba(23, 50, 79, 0.24), inset 0 0 0 8px rgba(255,255,255,0.08);
    color: #ffb329;
    display: flex;
    height: 128px;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    width: 128px;
}

.kt-game-celebration__medal:before,
.kt-game-celebration__medal:after {
    background: #ff7900;
    content: "";
    height: 34px;
    position: absolute;
    top: -22px;
    width: 24px;
}

.kt-game-celebration__medal:before { left: 42px; transform: rotate(-18deg); }
.kt-game-celebration__medal:after { right: 42px; transform: rotate(18deg); }
.kt-game-celebration__medal i {
    color: #ffb329 !important;
    font-size: 54px;
    position: relative;
    z-index: 1;
}

.kt-game-celebration__title {
    color: #102033;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 8px;
}

.kt-game-celebration__message {
    color: #526173;
    font-size: 15px;
    line-height: 1.45;
    margin: 0 auto 20px;
    max-width: 370px;
}

.kt-game-celebration__message strong {
    color: #102033;
    display: block;
    font-weight: 800;
    margin: 3px 0 8px;
}

.kt-game-celebration__points {
    align-items: baseline;
    background: #fff4e6;
    border: 1px solid #ffd9ad;
    border-radius: 8px;
    color: #ff7900;
    display: inline-flex;
    font-weight: 800;
    gap: 6px;
    justify-content: center;
    margin-bottom: 14px;
    padding: 10px 16px;
}

.kt-game-celebration__points-number { font-size: 30px; line-height: 1; }
.kt-game-celebration__points-label { font-size: 13px; text-transform: uppercase; }

.kt-game-celebration__level {
    align-items: center;
    background: #eef8f9;
    border: 1px solid #ccecef;
    border-radius: 8px;
    color: #17324f;
    display: none;
    font-size: 14px;
    font-weight: 700;
    gap: 10px;
    justify-content: center;
    margin: 4px auto 22px;
    max-width: 420px;
    padding: 10px 12px;
}

.kt-game-celebration.has-level-up .kt-game-celebration__level { display: flex; }

.kt-game-celebration__level-from,
.kt-game-celebration__level-to {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    min-width: 0;
}

.kt-game-celebration__level-badge {
    flex: 0 0 auto;
    height: 30px;
    object-fit: contain;
    width: 30px;
}

.kt-game-celebration__level-badge-fallback {
    align-items: center;
    background: #fff4e6;
    border-radius: 50%;
    color: #ffb329;
    display: inline-flex;
    flex: 0 0 auto;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.kt-game-celebration__level-name {
    min-width: 0;
}

.kt-game-celebration__level-arrow { color: #17a2a8; font-size: 18px; line-height: 1; }

.kt-game-celebration__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.kt-game-celebration__button {
    background: #ff7900;
    border: 1px solid #ff7900;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    min-height: 42px;
    min-width: 118px;
    padding: 10px 24px;
}

.kt-game-celebration__button:hover,
.kt-game-celebration__button:focus {
    background: #e76d00;
    border-color: #e76d00;
    color: #ffffff;
    outline: none;
}

.kt-game-celebration__button--ranking {
    background: #ffffff;
    border-color: #17a2a8;
    color: #17324f;
}

.kt-game-celebration__button--ranking:hover,
.kt-game-celebration__button--ranking:focus {
    background: #eef8f9;
    border-color: #128990;
    color: #102033;
}

.kt-game-celebration__confetti {
    height: 100%;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

.kt-game-celebration__confetti-piece {
    animation: ktGameConfettiFall var(--fall-duration, 2400ms) ease-out forwards;
    border-radius: 2px;
    height: var(--piece-height, 12px);
    left: var(--piece-left, 50%);
    opacity: 0;
    position: absolute;
    top: -24px;
    transform: translate3d(0, 0, 0) rotate(0deg);
    width: var(--piece-width, 8px);
}

@keyframes ktGameConfettiFall {
    0% { opacity: 0; transform: translate3d(0, -20px, 0) rotate(0deg); }
    12% { opacity: 1; }
    100% { opacity: 0; transform: translate3d(var(--piece-drift, 0px), 110vh, 0) rotate(var(--piece-rotate, 720deg)); }
}


@media (min-width: 900px) {
    .kt-game-celebration__card {
        max-width: 720px;
        text-align: left;
        width: min(720px, calc(100vw - 64px));
    }

    .kt-game-celebration__body {
        align-items: start;
        column-gap: 34px;
        display: grid;
        grid-template-columns: 168px minmax(0, 1fr);
        grid-template-areas:
            "medal eyebrow"
            "medal title"
            "medal message"
            "medal points"
            "medal level"
            "medal actions";
        padding: 30px 42px 30px 34px;
    }

    .kt-game-celebration__eyebrow {
        grid-area: eyebrow;
        margin: 0 44px 8px 0;
    }

    .kt-game-celebration__medal {
        grid-area: medal;
        height: 136px;
        margin: 30px auto 0;
        width: 136px;
    }

    .kt-game-celebration__medal:before { left: 46px; }
    .kt-game-celebration__medal:after { right: 46px; }
    .kt-game-celebration__title { grid-area: title; margin-bottom: 8px; }

    .kt-game-celebration__message {
        grid-area: message;
        margin: 0 0 14px;
        max-width: none;
    }

    .kt-game-celebration__points {
        grid-area: points;
        justify-self: start;
        margin-bottom: 12px;
    }

    .kt-game-celebration__level {
        grid-area: level;
        justify-content: flex-start;
        margin: 0 0 18px;
        max-width: none;
        width: 100%;
    }

    .kt-game-celebration__actions {
        grid-area: actions;
        justify-content: flex-start;
    }
}
@media (max-width: 520px) {
    .kt-game-celebration { padding: 16px; }
    .kt-game-celebration__body { padding: 30px 20px 24px; }
    .kt-game-celebration__medal { height: 108px; width: 108px; }
    .kt-game-celebration__medal:before,
    .kt-game-celebration__medal:after {
        height: 30px;
        top: -19px;
        width: 20px;
    }
    .kt-game-celebration__medal:before { left: 34px; }
    .kt-game-celebration__medal:after { right: 34px; }
    .kt-game-celebration__title { font-size: 24px; }
}
