.kpoint-modal[hidden] {
    display: none !important;
}

.kpoint-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: inherit;
}

.kpoint-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.kpoint-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 28px 28px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.kpoint-modal__close {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.kpoint-modal__dialog h2 {
    margin: 0 20px 20px;
    font-size: 24px;
}

.kpoint-modal__label {
    margin-bottom: 8px;
    color: #666;
}

.kpoint-modal__score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 24px;
}

.kpoint-modal__score #kpoint-total {
    color: #1d4ed8;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
}

.kpoint-modal__score span:last-child {
    color: #555;
    font-size: 14px;
}

.kpoint-modal__breakdown {
    margin-bottom: 24px;
    border-top: 1px solid #e5e5e5;
    text-align: left;
}

.kpoint-modal__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.kpoint-modal__row strong {
    white-space: nowrap;
}

.kpoint-modal__done {
    width: 100%;
    padding: 13px 20px;
    border: 0;
    border-radius: 8px;
    background: #1d4ed8;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.kpoint-modal__done:hover {
    background: #1d4ed8;
}

body.kpoint-modal-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .kpoint-modal__dialog {
        padding: 32px 20px 22px;
    }

    .kpoint-modal__dialog h2 {
        font-size: 21px;
    }

    .kpoint-modal__score #kpoint-total {
        font-size: 44px;
    }
}