.op15-notice-launcher[hidden],
.op15-notice-backdrop[hidden] {
    display: none !important;
}

.op15-notice-launcher {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 9400;
}

.op15-notice-launcher button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 9px 14px;
    color: var(--ink);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 750;
    background: color-mix(in srgb, var(--panel-strong) 94%, var(--warn) 6%);
    border: 1px solid color-mix(in srgb, var(--warn) 48%, var(--line));
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.op15-notice-launcher button:hover {
    border-color: var(--warn);
    transform: translateY(-1px);
}

.op15-notice-launcher-icon {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: #17120a;
    background: var(--warn);
    border-radius: 50%;
    font-weight: 900;
}

.op15-notice-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: grid;
    place-items: center;
    padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(3, 5, 10, 0.76);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 160ms ease;
}

.op15-notice-backdrop.is-visible {
    opacity: 1;
}

.op15-notice-dialog {
    position: relative;
    width: min(100%, 650px);
    max-height: calc(100dvh - 36px);
    padding: clamp(24px, 5vw, 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--warn) 13%, transparent), transparent 38%),
        var(--panel-strong);
    border: 1px solid color-mix(in srgb, var(--warn) 42%, var(--line));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transform: translateY(10px) scale(0.985);
    transition: transform 160ms ease;
}

.op15-notice-backdrop.is-visible .op15-notice-dialog {
    transform: none;
}

.op15-notice-dialog:focus {
    outline: none;
}

.op15-notice-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    color: var(--muted);
    font: inherit;
    font-size: 1.55rem;
    line-height: 1;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
}

.op15-notice-close:hover {
    color: var(--ink);
    border-color: var(--line-strong);
}

.op15-notice-symbol {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    place-items: center;
    color: #17120a;
    background: var(--warn);
    border-radius: 15px;
    box-shadow: 0 0 24px color-mix(in srgb, var(--warn) 28%, transparent);
    font-size: 1.45rem;
    font-weight: 900;
}

.op15-notice-eyebrow {
    margin: 0 46px 7px 0;
    color: var(--warn);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.op15-notice-dialog h2 {
    margin: 0 38px 15px 0;
    color: var(--ink);
    font-family: Manrope, Inter, sans-serif;
    font-size: clamp(1.35rem, 4vw, 1.9rem);
    line-height: 1.18;
}

.op15-notice-copy {
    color: var(--muted);
    line-height: 1.68;
}

.op15-notice-copy p {
    margin: 0 0 11px;
}

.op15-notice-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.op15-notice-primary,
.op15-notice-secondary {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 17px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.op15-notice-primary {
    color: var(--action-primary-ink);
    text-decoration: none;
    background: var(--action-primary-bg);
    border: 1px solid var(--action-primary-border);
    box-shadow: var(--action-primary-shadow);
}

.op15-notice-secondary {
    color: var(--action-secondary-ink);
    text-decoration: none;
    background: var(--action-secondary-bg);
    border: 1px solid var(--action-secondary-border);
}

.op15-notice-primary:hover,
.op15-notice-secondary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.op15-notice-disable {
    display: block;
    margin: 16px auto 0;
    padding: 5px 8px;
    color: var(--muted-2);
    font: inherit;
    font-size: 0.76rem;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
    text-underline-offset: 3px;
}

.op15-notice-disable:hover {
    color: var(--ink);
}

html.op15-notice-open,
body.op15-notice-open {
    overflow: hidden;
    overscroll-behavior: none;
}

body.op15-notice-open {
    position: fixed;
    top: var(--op15-notice-scroll-top, 0);
    right: 0;
    left: 0;
    width: 100%;
}

@media (max-width: 560px) {
    .op15-notice-launcher {
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
    }

    .op15-notice-launcher button {
        max-width: calc(100vw - 24px);
    }

    .op15-notice-backdrop {
        align-items: end;
        padding: 10px 10px max(10px, env(safe-area-inset-bottom));
    }

    .op15-notice-dialog {
        max-height: calc(100dvh - 20px);
        padding: 25px 20px 22px;
        border-radius: 22px;
    }

    .op15-notice-actions {
        flex-direction: column;
    }

    .op15-notice-primary,
    .op15-notice-secondary {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .op15-notice-backdrop,
    .op15-notice-dialog,
    .op15-notice-launcher button,
    .op15-notice-primary,
    .op15-notice-secondary {
        transition: none;
    }
}
