/* USG_KIDS_CELEBRATION_V43 */

.usg-v43-replay {
    display: block;
    margin: 12px auto 0;
    padding: 11px 22px;
    border: 0;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37,99,235,.2);
}

.usg-v43-replay[hidden] {
    display: none !important;
}

.usg-v43-replay:hover {
    background: #1746b5;
}

body.usg-v43-modal-open {
    overflow: hidden;
}

.usg-v43-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(12,28,61,.76);
}

.usg-v43-dialog {
    position: relative;
    width: min(100%, 510px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 28px;
    border: 3px solid #fbbf24;
    border-radius: 28px;
    background: #fff;
    color: #173d85;
    text-align: center;
    box-shadow: 0 25px 75px rgba(0,0,0,.25);
    animation: usgV43Enter .35s ease both;
}

.usg-v43-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    color: #475569;
    font-size: 30px;
    cursor: pointer;
}

.usg-v43-icon {
    font-size: 58px;
    line-height: 1.4;
}

.usg-v43-dialog h2 {
    margin: 12px 0;
    color: #1746b5;
    font-size: clamp(26px, 4vw, 38px);
}

.usg-v43-dialog p {
    font-size: 17px;
    line-height: 1.6;
}

.usg-v43-progress {
    margin: 22px 0;
    padding: 13px;
    border-radius: 15px;
    background: #ecfdf5;
    color: #047857;
    font-size: 18px;
    font-weight: 900;
}

.usg-v43-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.usg-v43-certificate,
.usg-v43-dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.usg-v43-certificate {
    background: #2563eb;
    color: #fff !important;
}

.usg-v43-dismiss {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

.usg-v43-overlay :focus-visible,
.usg-v43-replay:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}

@keyframes usgV43Enter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .usg-v43-dialog {
        animation: none !important;
    }
}
