.svh-mag-notice {
    position: relative;
    z-index: 99998;
}

.svh-mag-notice__launcher {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 99998;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    padding: 13px 19px;
    background: #111;
    color: #fff;
    font: 800 14px/1.1 inherit;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
    cursor: pointer;
}

.svh-mag-notice__launcher span {
    margin-right: 7px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.svh-mag-notice__dialog {
    width: min(1050px, calc(100vw - 48px));
    max-height: min(720px, calc(100dvh - 48px));
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 30px;
    background: #f4f5f6;
    color: #111;
    box-shadow: 0 35px 100px rgba(0, 0, 0, .44);
}

.svh-mag-notice__dialog::backdrop {
    background: rgba(9, 14, 12, .72);
    backdrop-filter: blur(9px);
}

.svh-mag-notice__dialog[open] {
    display: grid;
    grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
}

.svh-mag-notice__head {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 76px;
    padding: 18px 22px 8px 48px;
    background: #f4f5f6;
}

.svh-mag-notice__head > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.svh-mag-notice__head > div span {
    color: #087457;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.svh-mag-notice__head > div strong {
    font-size: 13px;
    letter-spacing: .08em;
}

.svh-mag-notice__close {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font: 500 25px/1 inherit;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.svh-mag-notice__close:hover,
.svh-mag-notice__close:focus-visible {
    background: #087457;
    transform: scale(1.06);
}

.svh-mag-notice__close:focus-visible,
.svh-mag-notice__button:focus-visible,
.svh-mag-notice__later:focus-visible,
.svh-mag-notice__launcher:focus-visible {
    outline: 3px solid #78d9bb;
    outline-offset: 3px;
}

.svh-mag-notice__cover {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, #080a09, #181c1a);
}

.svh-mag-notice__cover img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(640px, calc(100dvh - 96px));
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .32);
}

.svh-mag-notice__body {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: 18px 48px 48px;
}

.svh-mag-notice__eyebrow {
    margin-bottom: 13px;
    color: #087457;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.svh-mag-notice__body h2 {
    max-width: 13ch;
    margin: 0 0 17px;
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: .98;
    letter-spacing: -.042em;
    overflow-wrap: anywhere;
}

.svh-mag-notice__body p {
    max-width: 38ch;
    margin: 0 0 25px;
    color: #58615d;
    font-size: 16px;
    line-height: 1.5;
}

.svh-mag-notice__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 21px;
    border-radius: 999px;
    background: #111;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 850;
}

.svh-mag-notice__button:hover {
    background: #087457;
}

.svh-mag-notice__later {
    margin: 14px 0 0;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #5d6662;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 780px) {
    .svh-mag-notice__dialog {
        width: min(420px, calc(100vw - 24px));
        max-height: calc(100dvh - 24px);
        overflow: auto;
        border-radius: 24px;
    }

    .svh-mag-notice__dialog[open] {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
    }

    .svh-mag-notice__head {
        position: sticky;
        top: 0;
        z-index: 3;
        grid-column: 1;
        grid-row: 1;
        min-height: 60px;
        padding: 10px 12px 9px 19px;
        border-bottom: 1px solid #dfe4e2;
    }

    .svh-mag-notice__head > div {
        display: grid;
        gap: 1px;
    }

    .svh-mag-notice__head > div strong {
        font-size: 12px;
    }

    .svh-mag-notice__close {
        width: 39px;
        height: 39px;
        font-size: 23px;
    }

    .svh-mag-notice__cover {
        grid-column: 1;
        grid-row: 2;
        padding: 16px;
    }

    .svh-mag-notice__cover img {
        width: auto;
        max-width: min(58vw, 230px);
        max-height: 35dvh;
        border-radius: 14px;
    }

    .svh-mag-notice__body {
        grid-column: 1;
        grid-row: 3;
        align-items: center;
        padding: 20px 22px 25px;
        text-align: center;
    }

    .svh-mag-notice__eyebrow {
        margin-bottom: 9px;
        font-size: 10px;
    }

    .svh-mag-notice__body h2 {
        max-width: 18ch;
        margin-bottom: 12px;
        font-size: clamp(27px, 8.2vw, 34px);
        line-height: 1.02;
    }

    .svh-mag-notice__body p {
        margin-bottom: 18px;
        font-size: 14px;
        line-height: 1.42;
    }

    .svh-mag-notice__button {
        width: 100%;
        min-height: 48px;
        padding: 12px 16px;
    }

    .svh-mag-notice__later {
        margin-top: 11px;
    }

    .svh-mag-notice__launcher {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        white-space: nowrap;
    }
}

@media (min-width: 781px) and (max-height: 680px) {
    .svh-mag-notice__dialog {
        max-height: calc(100dvh - 28px);
    }

    .svh-mag-notice__dialog[open] {
        grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
    }

    .svh-mag-notice__cover {
        padding: 16px;
    }

    .svh-mag-notice__cover img {
        max-height: calc(100dvh - 60px);
    }

    .svh-mag-notice__head {
        min-height: 62px;
        padding: 10px 16px 4px 38px;
    }

    .svh-mag-notice__body {
        padding: 8px 38px 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .svh-mag-notice__dialog::backdrop {
        backdrop-filter: none;
    }

    .svh-mag-notice__close {
        transition: none;
    }
}
