.lrm-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.lrm-modal[hidden] { display: none; }
.lrm-is-open { overflow: hidden; }

.lrm-overlay {
    position: absolute;
    inset: 0;
    background: var(--lrm-overlay, rgba(0, 0, 0, .75));
    backdrop-filter: blur(3px);
}

.lrm-content {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    padding: 28px 24px 26px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 16px;
    outline: none;
    background: var(--lrm-background, #fffbf4);
    color: #3b1d1d;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
    animation: lrm-enter .28s ease-out both;
}

.lrm-content h2 {
    margin: 0 0 14px;
    color: var(--lrm-title, #460000);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1.25;
    text-transform: uppercase;
}

.lrm-message p, .lrm-countdown-text { margin: 0 0 14px; font-size: 16px; line-height: 1.6; }
.lrm-message strong { color: var(--lrm-accent, #c21d1d); font-weight: 700; }
.lrm-countdown-text { margin-bottom: 0; font-size: 15px; opacity: .9; }
#lrm-countdown { color: var(--lrm-accent, #c21d1d); font-size: 20px; font-weight: 700; }

@keyframes lrm-enter {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
    .lrm-content { padding: 22px 18px 20px; border-radius: 14px; }
    .lrm-content h2 { font-size: 19px; }
    .lrm-message p { font-size: 14px; }
    #lrm-countdown { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .lrm-content { animation: none; }
}
