.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(0, 0, 0, 0.66);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content.popup-content--notice {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 99999;
    width: auto;
    min-width: 420px;
    max-width: 800px;
    max-height: 95vh;
    overflow: hidden;
    transform: translate(-50%, -50%) !important;
    padding: 12px 6px !important;
    color: #ffffff;
    text-align: center;
    background: #000000;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.72);
}

.popup-content--notice .popup-close {
    position: absolute;
    top: 6px;
    right: 7px;
    z-index: 2;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.popup-content--notice .popup-close:hover,
.popup-content--notice .popup-close:focus-visible {
    color: #ff00ff;
    outline: none;
}

.popup-content--notice h2 {
    margin: 0 28px 8px;
    padding: 0 8px;
    color: #cc00ff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.popup-content--notice img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 8px;
    object-fit: contain;
}

.popup-content--notice .popup-message {
    max-height: 90vh;
    overflow: auto;
    margin: 0;
    padding: 8px 8px 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.popup-content--notice .popup-message::-webkit-scrollbar {
    width: 5px;
}

.popup-content--notice .popup-message::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.popup-content--notice .popup-message::-webkit-scrollbar-thumb {
    background: #888888;
    border-radius: 10px;
}

.popup-content--notice .popup-message::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

.popup-content--notice .popup-message h1,
.popup-content--notice .popup-message h2,
.popup-content--notice .popup-message h3,
.popup-content--notice .popup-message h4,
.popup-content--notice .popup-message h5,
.popup-content--notice .popup-message h6 {
    margin: 10px 0 8px;
    color: #cc00ff;
    font-weight: 800;
    line-height: 1.25;
}

.popup-content--notice .popup-message a,
.popup-content--notice .popup-message strong,
.popup-content--notice .popup-message b {
    font-weight: 800;
}

.popup-content--notice .popup-message a {
    color: #ff33ff;
    text-decoration: none;
}

.popup-content--notice .popup-message a:hover {
    color: #ff66ff;
    text-decoration: underline;
}

.popup-content--notice .popup-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    min-height: 34px;
    margin-top: 0;
    padding: 8px 30px;
    border: 0;
    border-radius: 3px;
    color: #ffffff;
    background: var(--color-primary, #942d86);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0 14px var(--color-primary-glow, rgba(148, 45, 134, 0.35));
}

.popup-content--notice .popup-action-btn:hover,
.popup-content--notice .popup-action-btn:focus-visible {
    color: #ffffff;
    background: var(--color-primary-light, #c133bb);
    outline: none;
}

@media (max-width: 767px) {
    .popup-content.popup-content--notice {
        width: 90%;
        min-width: 90%;
        max-width: 90%;
    }

    .popup-content--notice .popup-message {
        font-size: 13px;
    }
}
