/* Restricted-talk gate overlay.
   Rendered by single-talk.php, dismissed by restriction-modal.js.
   Shown by default (fails closed if JS doesn't run); hidden once acknowledged. */

.talk-restriction {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-m);
    background: rgba(40, 10, 10, 0.55);
    backdrop-filter: blur(3px);
}

/* Acknowledged — gate removed */
.talk-restriction.is-ack {
    display: none;
}

/* Lock the page behind the gate while it is open */
html:has(.talk-restriction:not(.is-ack)) {
    overflow: hidden;
}

.talk-restriction__box {
    inline-size: 100%;
    max-inline-size: 32rem;
    padding: var(--space-l);
    border-radius: 6px;
    background: var(--color-background);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.talk-restriction__title {
    margin-block: 0 var(--space-s);
    color: #96000c;
    font-size: var(--step-1);
}

.talk-restriction__text {
    margin-block-end: var(--space-m);
}

.talk-restriction__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    align-items: center;
}

.talk-restriction__confirm {
    padding: var(--space-xs) var(--space-m);
    border: none;
    border-radius: 4px;
    background: #96000c;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.talk-restriction__confirm:hover {
    background: #7a000a;
}

.talk-restriction__leave {
    color: inherit;
    font-size: var(--step--1);
    text-decoration: underline;
}
