/* musical.quest - Art Deco Theater Experience */
/* Colors: #D0C0A8, #FFF8E8, #8A1020, #0E0A14, #F0D878, #1A1018, #A0906A, #2A1830, #0A0810 */
/* Fonts: Playfair Display, Lora */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lora', Georgia, serif;
    color: #D0C0A8;
    background: #0E0A14;
    overflow-x: hidden;
}

/* Marquee Bar */
.marquee-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: #1A1018;
    border-bottom: 2px solid #F0D878;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.marquee-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #F0D878;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.marquee-bulbs {
    display: flex;
    gap: 12px;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.marquee-bulbs--right {
    left: auto;
    right: 16px;
}

.marquee-bulb {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #F0D878;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.marquee-bulb.lit {
    opacity: 1;
    box-shadow: 0 0 6px #F0D878;
}

/* Proscenium Frame */
.proscenium-frame {
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 100;
}

.proscenium-left,
.proscenium-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    opacity: 0;
    animation: frameAppear 0.8s ease 0.2s forwards;
}

.proscenium-left {
    left: 0;
    border-right: 2px solid #F0D878;
    background: linear-gradient(to right, #1A1018 0%, transparent 100%);
}

.proscenium-right {
    right: 0;
    border-left: 2px solid #F0D878;
    background: linear-gradient(to left, #1A1018 0%, transparent 100%);
}

/* Stepped corners */
.proscenium-left::before,
.proscenium-left::after,
.proscenium-right::before,
.proscenium-right::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 1px solid #F0D878;
    opacity: 0.5;
}

.proscenium-left::before {
    top: 0;
    right: -16px;
    border-top: none;
    border-left: none;
}

.proscenium-left::after {
    bottom: 0;
    right: -16px;
    border-bottom: none;
    border-left: none;
}

.proscenium-right::before {
    top: 0;
    left: -16px;
    border-top: none;
    border-right: none;
}

.proscenium-right::after {
    bottom: 0;
    left: -16px;
    border-bottom: none;
    border-right: none;
}

/* Spotlight Overlay */
.spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 50;
    background: radial-gradient(circle 300px at 50% 50%, rgba(240, 216, 120, 0.06) 0%, transparent 100%);
}

/* Stages */
.stage {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    overflow: hidden;
}

.stage__content {
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Hero Stage */
.stage--hero {
    background: #0E0A14;
}

/* Curtains */
.curtain {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 52%;
    z-index: 20;
    background: linear-gradient(to bottom, #8A1020, #6A0818);
}

.curtain--left {
    left: 0;
    transform-origin: left center;
    animation: curtainOpenLeft 2s ease 1s forwards;
}

.curtain--right {
    right: 0;
    transform-origin: right center;
    animation: curtainOpenRight 2s ease 1s forwards;
}

/* Curtain folds */
.curtain::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        rgba(0,0,0,0.1) 20px,
        rgba(0,0,0,0.1) 22px
    );
}

/* Sunburst */
.sunburst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: sunburstAppear 1.5s ease 2.5s forwards;
}

/* Golden Age Stage */
.stage--golden {
    background: #1A1018;
}

/* Revolution Stage */
.stage--revolution {
    background: #2A1830;
}

/* Modern Stage */
.stage--modern {
    background: #0E0A14;
}

/* Encore Stage */
.stage--encore {
    background: #0A0810;
    text-align: center;
}

/* Typography */
.act-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #F0D878;
    margin-bottom: 24px;
}

.act-title--hero {
    text-align: center;
    opacity: 0;
    animation: fadeInGold 1.5s ease 2.8s forwards;
}

.show-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    color: #D0C0A8;
    text-align: center;
    opacity: 0;
    animation: fadeInGold 1.5s ease 3.3s forwards;
}

.show-description {
    font-family: 'Lora', serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #D0C0A8;
    margin-bottom: 40px;
}

/* Show Cards */
.show-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.show-card {
    background: rgba(240, 216, 120, 0.05);
    border: 1px solid rgba(240, 216, 120, 0.15);
    padding: 28px 24px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.show-card:hover {
    border-color: rgba(240, 216, 120, 0.4);
    background: rgba(240, 216, 120, 0.08);
}

.show-card__year {
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #A0906A;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.show-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: #F0D878;
    margin-bottom: 10px;
}

.show-card__desc {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #D0C0A8;
}

/* Footer Credit */
.footer-credit {
    font-family: 'Lora', serif;
    font-size: 0.85rem;
    color: #A0906A;
    margin-top: 60px;
}

/* Scroll Reveal */
.stage-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.stage-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes curtainOpenLeft {
    to {
        transform: translateX(-100%);
    }
}

@keyframes curtainOpenRight {
    to {
        transform: translateX(100%);
    }
}

@keyframes frameAppear {
    to {
        opacity: 1;
    }
}

@keyframes sunburstAppear {
    to {
        opacity: 0.15;
    }
}

@keyframes fadeInGold {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .stage {
        padding: 80px 32px;
    }

    .show-cards {
        grid-template-columns: 1fr;
    }

    .proscenium-left,
    .proscenium-right {
        width: 12px;
    }

    .marquee-bulbs {
        display: none;
    }
}
