﻿.sak-eventNotice {
    width: min(920px, calc(100vw - 40px));
    max-width: 920px;
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    color: #0f172a;
    font-family: "Overpass", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    border: 0;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(2, 20, 45, .34);
}

    .sak-eventNotice::backdrop {
        background: rgba(4, 18, 38, .66);
        backdrop-filter: blur(5px);
    }

    .sak-eventNotice[open] {
        animation: sak-event-notice-in .28s ease-out both;
    }

.sak-eventNotice__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
    min-height: 440px;
    overflow: hidden;
}

.sak-eventNotice__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #17355f;
    border: 1px solid rgba(219, 229, 242, .94);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 20px rgba(15, 47, 95, .14);
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

    .sak-eventNotice__close:hover,
    .sak-eventNotice__close:focus-visible {
        color: #0f2f5f;
        background: #fff;
        box-shadow: 0 10px 24px rgba(15, 47, 95, .22);
        transform: translateY(-1px);
    }

    .sak-eventNotice__close:focus-visible,
    .sak-eventNotice__button:focus-visible {
        outline: 3px solid rgba(29, 100, 200, .28);
        outline-offset: 3px;
    }

.sak-eventNotice__media {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #d9e9f8;
}

    .sak-eventNotice__media::after {
        position: absolute;
        inset: 0;
        content: "";
        pointer-events: none;
        background: linear-gradient(180deg, rgba(5, 28, 55, .02), rgba(5, 28, 55, .18)), linear-gradient(90deg, transparent 72%, rgba(255, 255, 255, .18));
    }

    .sak-eventNotice__media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 52% 55%;
    }

.sak-eventNotice__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 52px 42px 38px;
    background: radial-gradient(380px 220px at 100% 0%, rgba(219, 234, 254, .68), transparent 70%), #fff;
}

.sak-eventNotice__live {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    min-height: 30px;
    padding: 6px 11px;
    color: #0f5b35;
    border: 1px solid #bbebcf;
    border-radius: 999px;
    background: #eafaf0;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .075em;
    line-height: 1;
    text-transform: uppercase;
}

.sak-eventNotice__liveDot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a05d;
    box-shadow: 0 0 0 0 rgba(22, 160, 93, .45);
    animation: sak-event-live-pulse 1.9s ease-out infinite;
}

.sak-eventNotice__title {
    margin: 19px 0 0;
    color: #0f2f5f;
    font-size: clamp(28px, 3.1vw, 40px);
    font-weight: 950;
    letter-spacing: -.04em;
    line-height: 1.06;
}

.sak-eventNotice__meta {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 17px 0 0;
    color: #475569;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

    .sak-eventNotice__meta i {
        flex: 0 0 auto;
        margin-top: 2px;
        color: #1d64c8;
    }

.sak-eventNotice__stand {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    min-height: 40px;
    margin-top: 17px;
    padding: 9px 13px;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f2f5f, #1d64c8);
    box-shadow: 0 10px 24px rgba(29, 100, 200, .2);
    font-size: 15px;
}

    .sak-eventNotice__stand,
    .sak-eventNotice__stand strong,
    .sak-eventNotice__stand i {
        color: #fff !important;
    }

.sak-eventNotice__description {
    margin: 18px 0 0;
    color: #475569;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.62;
}

.sak-eventNotice__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.sak-eventNotice__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

    .sak-eventNotice__button:hover {
        transform: translateY(-1px);
    }

.sak-eventNotice__button--primary {
    color: #fff;
    background: linear-gradient(135deg, #0f2f5f, #1d64c8);
    box-shadow: 0 10px 22px rgba(29, 100, 200, .2);
}

    .sak-eventNotice__button--primary:hover {
        color: #fff;
        box-shadow: 0 13px 28px rgba(29, 100, 200, .27);
    }

.sak-eventNotice__button--secondary {
    color: #154f95;
    border-color: #cfe0f4;
    background: #f5f9ff;
}

    .sak-eventNotice__button--secondary:hover {
        color: #0f2f5f;
        border-color: #b8d3f0;
        background: #edf5ff;
    }

body.sak-eventNotice-open {
    overflow: hidden;
}

@keyframes sak-event-notice-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes sak-event-live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 160, 93, .44);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(22, 160, 93, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 160, 93, 0);
    }
}

@media (max-width: 720px) {
    .sak-eventNotice {
        width: 100%;
        max-width: none;
        max-height: calc(100dvh - 16px);
        margin: auto 0 0;
        border-radius: 24px 24px 0 0;
    }

    .sak-eventNotice__panel {
        display: block;
        min-height: 0;
        max-height: calc(100dvh - 16px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .sak-eventNotice__media {
        height: clamp(180px, 34vh, 260px);
    }

        .sak-eventNotice__media::after {
            background: linear-gradient(180deg, rgba(5, 28, 55, .02) 45%, rgba(5, 28, 55, .24));
        }

        .sak-eventNotice__media img {
            object-position: 50% 58%;
        }

    .sak-eventNotice__content {
        padding: 23px 18px calc(22px + env(safe-area-inset-bottom));
    }

    .sak-eventNotice__title {
        margin-top: 15px;
        font-size: clamp(25px, 8vw, 33px);
    }

    .sak-eventNotice__meta,
    .sak-eventNotice__stand,
    .sak-eventNotice__description {
        margin-top: 14px;
    }

    .sak-eventNotice__actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .sak-eventNotice__button {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .sak-eventNotice__media {
        height: 170px;
    }

    .sak-eventNotice__content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sak-eventNotice[open],
    .sak-eventNotice__liveDot {
        animation: none;
    }

    .sak-eventNotice__close,
    .sak-eventNotice__button {
        transition: none;
    }
}
