.theater-intro[open] {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    color: #fff6df;
    background: transparent;
    box-shadow: none;
}

.theater-intro[open]::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background-color: #4a0716;
    background-image:
        radial-gradient(ellipse at 50% 30%, rgba(245, 168, 96, 0.24), transparent 58%),
        repeating-linear-gradient(
            90deg,
            #33040f 0,
            #62091b 1.7rem,
            #92172c 3.2rem,
            #700c20 4.7rem,
            #380510 6.4rem
        );
    box-shadow: inset 0 0 6rem 1rem #20020b;
    content: "";
    transition: transform 1.8s cubic-bezier(0.65, 0, 0.28, 1);
}

.theater-intro::backdrop {
    background: transparent;
}

.theater-intro[open].is-lifting {
    overflow: auto;
}

.theater-intro[open].is-lifting::before {
    transform: translateY(-100%);
}

.theater-intro [hidden] {
    display: none !important;
}

.theater-intro__valance {
    position: relative;
    z-index: 2;
    height: clamp(4.5rem, 11vw, 8rem);
    border-bottom: 0.22rem solid #c99552;
    background:
        repeating-linear-gradient(105deg, rgba(32, 0, 8, 0.7) 0 2%, transparent 5% 10%),
        linear-gradient(#3a0310, #850e23 52%, #480414);
    box-shadow: 0 0.6rem 1.5rem rgba(20, 0, 6, 0.65);
    transition: transform 1.8s cubic-bezier(0.65, 0, 0.28, 1);
}

.theater-intro.is-lifting .theater-intro__valance {
    transform: translateY(-120%);
}

.theater-intro__valance::after {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: 1.5rem;
    background: radial-gradient(ellipse at 50% 0, #c99552 0 44%, transparent 47%) 0 0 / 3rem 1.3rem repeat-x;
    content: "";
}

.theater-intro__stage {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(100%, 64rem);
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.theater-intro__card {
    padding: clamp(1.35rem, 3.8vw, 2.8rem);
    border: 1px solid rgba(232, 192, 123, 0.7);
    border-radius: 0.35rem;
    background: rgba(37, 3, 12, 0.88);
    box-shadow: 0 1rem 3rem rgba(20, 0, 5, 0.55), inset 0 0 0 0.35rem rgba(218, 172, 101, 0.09);
}

.theater-intro__eyebrow {
    margin: 0 0 0.7rem;
    color: #f2cf95;
    font: 600 0.75rem/1.4 Georgia, serif;
    letter-spacing: 0.2em;
    text-align: center;
    text-transform: uppercase;
}

.theater-intro h1 {
    margin: 0;
    color: #fff6df;
    font: 400 clamp(1.75rem, 4vw, 3rem)/1.15 Georgia, "Times New Roman", serif;
    text-align: center;
    text-shadow: 0 0.1rem 0.4rem #180008;
}

.theater-intro h1 span {
    color: #f6d69d;
    white-space: nowrap;
}

.theater-intro__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: min(15rem, 65%);
    margin: 0.9rem auto 1.3rem;
    color: #e6bb76;
}

.theater-intro__ornament::before,
.theater-intro__ornament::after {
    flex: 1;
    height: 1px;
    background: #d3a462;
    content: "";
}

.theater-intro__text {
    max-width: 54rem;
    margin: 0 auto;
    color: #fff9eb;
    font: 400 clamp(1rem, 1.2vw, 1.12rem)/1.65 Georgia, "Times New Roman", serif;
}

.theater-intro__text p {
    margin: 0 0 1rem;
}

.theater-intro__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.theater-intro__button {
    min-height: 2.9rem;
    padding: 0.7rem 1.25rem;
    border: 1px solid #f3d09a;
    border-radius: 0.25rem;
    font: 700 0.95rem/1.35 system-ui, sans-serif;
    cursor: pointer;
}

.theater-intro__button--primary {
    color: #320810;
    background: #f1ce96;
}

.theater-intro__button--primary:hover {
    background: #ffe4b4;
}

.theater-intro__button--secondary {
    color: #fff6df;
    background: #4d0b1a;
}

.theater-intro__button--secondary:hover {
    background: #6a1425;
}

.theater-intro__button:disabled {
    opacity: 0.65;
    cursor: default;
}

.theater-intro :focus-visible {
    outline: 3px solid #fff9eb;
    outline-offset: 4px;
}

.theater-intro__hint,
.theater-intro__status {
    margin: 0.8rem 0 0;
    color: #f4dbb3;
    font: 0.85rem/1.5 system-ui, sans-serif;
    text-align: center;
}

.theater-intro__status:empty {
    display: none;
}

.theater-intro__skip {
    display: block;
    width: fit-content;
    margin: 0.75rem auto 0;
    color: #fff6df;
    font: 0.9rem/1.5 system-ui, sans-serif;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.theater-intro__skip:hover {
    color: #fff;
}

.theater-intro__alerts {
    margin-bottom: 1.5rem;
}

.theater-intro__alert {
    padding: 1rem 1.25rem;
    border: 2px solid #8b1224;
    border-radius: 0.3rem;
    color: #31030a;
    background: #fff2e8;
    box-shadow: 0 0.5rem 1.5rem rgba(20, 0, 5, 0.4);
}

.theater-intro__alert + .theater-intro__alert {
    margin-top: 0.6rem;
}

.theater-intro__alert h2 {
    margin: 0 0 0.4rem;
    font: 700 1.1rem/1.3 system-ui, sans-serif;
}

.theater-intro__alert :last-child {
    margin-bottom: 0;
}

@media (max-width: 575px) {
    .theater-intro__stage {
        padding: 1.5rem 0.8rem 2rem;
    }

    .theater-intro__actions {
        flex-direction: column;
    }

    .theater-intro__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theater-intro[open]::before,
    .theater-intro__valance {
        transition: none;
    }
}
