:root {
    --night: #070b14;
    --night-2: #120816;
    --ink: #2a140c;
    --cream: #fff6e8;
    --cream-2: #f3e6cf;
    --gold: #f0c14b;
    --gold-deep: #c8881a;
    --red: #b1122b;
    --red-deep: #6e0d22;
    --bulb: #fff4c2;
    --line: rgba(255, 236, 196, 0.18);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) #140c12;
}

html::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html::-webkit-scrollbar-track {
    background: #140c12;
}

html::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 999px;
    border: 2px solid #140c12;
}

html::-webkit-scrollbar-thumb:hover {
    background: #ffe58a;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--cream);
    font-family: "Outfit", "Segoe UI", sans-serif;
    background-color: var(--night);
}

img { max-width: 100%; display: block; }

button, input { font-family: inherit; }

a { color: inherit; }

.sky {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background: #070812;
}

.sky::before {
    content: "";
    position: absolute;
    inset: -8%;
    background: url("../Imgs/7325113.jpg") center center / cover no-repeat;
    transform: scale(1.08);
    animation: bg-drift 32s ease-in-out infinite alternate;
}

.sky::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 8, 18, 0.72) 0%, rgba(7, 8, 18, 0.62) 42%, rgba(7, 8, 18, 0.78) 100%);
}

@keyframes bg-drift {
    0% { transform: scale(1.08) translate3d(0, 0, 0); }
    100% { transform: scale(1.16) translate3d(-2.5%, -1.5%, 0); }
}

.page {
    position: relative;
    z-index: 1;
}

.loader-container {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--night);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-container.is-done {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 4px solid rgba(240, 193, 75, 0.25);
    border-top-color: var(--gold);
    animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 8px;
}

.brand {
    display: inline-flex;
    align-items: center;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.brand img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

.partner {
    height: 34px;
    width: auto;
    background: transparent;
}

.lights {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(1180px, calc(100% - 28px));
    margin: 8px auto 0;
    padding: 0 6px 10px;
    position: relative;
}

.lights::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 5px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(232, 184, 92, 0.85), transparent);
}

.lights span {
    position: relative;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bulb);
    box-shadow: 0 0 8px 2px rgba(255, 220, 140, 0.85);
    animation: twinkle 1.8s ease-in-out infinite;
}

.lights span:nth-child(3n) {
    background: #ff6d88;
    box-shadow: 0 0 8px 2px rgba(255, 109, 136, 0.8);
    animation-delay: 0.35s;
}

.lights span:nth-child(3n + 1) {
    background: #8fd4ff;
    box-shadow: 0 0 8px 2px rgba(143, 212, 255, 0.75);
    animation-delay: 0.7s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.55; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1); }
}

.proscenium {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    aspect-ratio: 16 / 9;
    margin: 8px auto 0;
    overflow: hidden;
    border-radius: 18px;
}

.stage {
    position: absolute;
    left: 0;
    right: 0;
    top: 2.5%;
    bottom: 4%;
    z-index: 0;
    margin: 0;
    overflow: hidden;
}

.stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    transform: scale(1.04);
    filter: blur(3px) brightness(0.62);
}

.stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 6, 14, 0.38);
}

.rod {
    position: absolute;
    top: 10px;
    left: 18px;
    right: 18px;
    z-index: 4;
    height: 16px;
    margin: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff0c2 0%, #e2b85a 28%, #8a5a18 62%, #f0d48a 100%);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.rod::before,
.rod::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle at 35% 32%, #fff6d4, #e2b85a 42%, #6d4310 74%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

.rod::before { left: -8px; }
.rod::after { right: -8px; }

.proscenium-stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(140px, 1.05fr) minmax(220px, 1.35fr) minmax(140px, 1.05fr);
    align-items: stretch;
    height: 100%;
    margin: 0;
}

.drape {
    position: relative;
    z-index: 3;
    height: 100%;
    pointer-events: none;
    will-change: transform;
}

.drape-cloth {
    position: relative;
    height: 100%;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: #2a070e;
    clip-path: url(#curtain-shape);
    box-shadow: inset -18px 0 28px rgba(12, 2, 4, 0.45);
    filter: drop-shadow(8px 10px 12px rgba(0, 0, 0, 0.38));
}

.drape-cloth::before,
.drape-cloth::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.drape-cloth::before {
    z-index: 2;
    background:
        linear-gradient(to bottom, rgba(18, 4, 8, 0.55) 0%, rgba(18, 4, 8, 0.08) 10%, transparent 22%),
        linear-gradient(to bottom, transparent 72%, rgba(10, 2, 4, 0.55) 100%),
        linear-gradient(to left, rgba(12, 2, 4, 0.5), transparent 22%);
}

.drape-cloth::after {
    z-index: 3;
    opacity: 0.22;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.drape span {
    flex: 1 1 0;
    height: 100%;
    margin-left: -8px;
    background: linear-gradient(
        90deg,
        rgba(8, 2, 4, 0.72) 0%,
        #5a1020 22%,
        #9a3040 46%,
        #d7a8ae 52%,
        #7a2032 64%,
        #3a0a14 100%
    );
}

.drape span:first-child { margin-left: 0; }

.drape span:nth-child(odd) {
    background: linear-gradient(
        90deg,
        #1a060a 0%,
        #4a0e1a 30%,
        #b46872 51%,
        #641828 72%,
        #2a0810 100%
    );
}

.drape span:nth-child(3n) { flex-grow: 1.45; }
.drape span:nth-child(4n) { flex-grow: 0.72; }
.drape span:nth-child(5n) { flex-grow: 1.15; }

.drape-left {
    margin-right: -42px;
    transform-origin: left center;
    animation: curtain-open 2.4s cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
}

.drape-right {
    margin-left: -42px;
    transform-origin: right center;
    animation: curtain-open 2.4s cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
}

.drape-right .drape-cloth {
    transform: scaleX(-1);
}

@keyframes curtain-open {
    from { transform: scaleX(1.65); }
    to { transform: scaleX(1); }
}

.invite {
    position: relative;
    z-index: 1;
    width: auto;
    height: 100%;
    margin: 0;
    padding: 28px 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.invite::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 6% -8%;
    background: radial-gradient(ellipse at center, rgba(8, 6, 14, 0.62) 0%, rgba(8, 6, 14, 0.28) 58%, transparent 76%);
    pointer-events: none;
}

.kicker {
    margin: 0 0 8px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.proscenium .invite h1 {
    font-size: clamp(1.85rem, 3.2vw, 3.15rem);
}

.proscenium .invite p {
    max-width: 38ch;
}

.invite h1 {
    margin: 0;
    font-family: "Rye", serif;
    font-size: clamp(2.1rem, 5vw, 4.1rem);
    font-weight: 400;
    line-height: 1.08;
    background: linear-gradient(180deg, #fff6d0 10%, #f0c14b 46%, #c8881a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 3px 0 rgba(74, 32, 8, 0.85));
}

.invite p {
    margin: 16px auto 0;
    max-width: 58ch;
    color: rgba(255, 246, 232, 0.94);
    font-size: 1.08rem;
    line-height: 1.6;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.actions form { margin: 0; }

.btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.btn-gold {
    color: #3a2204;
    background: #f0c14b;
    box-shadow: none;
}

.btn-gold:hover {
    transform: none;
    box-shadow: none;
    background: #f0c14b;
}

.btn-ghost {
    color: var(--cream);
    background: transparent;
    border: 1.5px solid rgba(255, 236, 196, 0.45);
}

.btn-ghost:hover { background: rgba(255, 246, 232, 0.08); }

.btn-hot {
    color: #fff;
    background: #f04d29;
    box-shadow: none;
}

.btn-hot:hover {
    transform: none;
    box-shadow: none;
    background: #f04d29;
}

.midway {
    width: min(1100px, calc(100% - 32px));
    margin: 54px auto 20px;
}

.midway-head {
    text-align: center;
    margin-bottom: 26px;
}

.midway-head h2,
.finale h2 {
    margin: 0;
    font-family: "Rye", serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    color: var(--cream);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.midway-head p {
    margin: 10px auto 0;
    max-width: 52ch;
    color: rgba(255, 246, 232, 0.92);
    line-height: 1.55;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.tickets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ticket {
    background: linear-gradient(180deg, #fffaf2, #f4e7d2);
    color: var(--ink);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.18s ease;
}

.ticket:hover { transform: translateY(-5px); }

.ticket-stripe {
    height: 12px;
    background: repeating-linear-gradient(90deg, var(--red) 0 14px, #f7f1e6 14px 28px);
}

.ticket-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.ticket-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #2a140c;
    color: var(--gold);
}

.ticket-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.ticket h3 {
    margin: 4px 0 0;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.ticket p {
    margin: 0;
    color: #5c4034;
    line-height: 1.55;
    font-size: 0.98rem;
}

.finale {
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto 10px;
    border-radius: 28px;
    padding: 18px;
    background:
        repeating-linear-gradient(90deg, #8e1228 0 18px, #f6f0e4 18px 36px);
    box-shadow: var(--shadow);
}

.finale-card {
    background: rgba(12, 8, 14, 0.9);
    border-radius: 18px;
    text-align: center;
    padding: 36px 22px;
}

.finale-card p {
    margin: 12px auto 0;
    max-width: none;
    color: rgba(255, 246, 232, 0.8);
    line-height: 1.55;
}

.finale-copy {
    white-space: nowrap;
}

.site-footer {
    margin: 8px auto 0;
    padding: 26px 16px 32px;
    border-top: 1px solid var(--line);
    color: rgba(255, 246, 232, 0.62);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 860px) {
    .proscenium-stage {
        grid-template-columns: 78px minmax(0, 1fr) 78px;
    }
    .drape-left { margin-right: -16px; }
    .drape-right { margin-left: -16px; }
    .invite { padding: 24px 8px 30px; }
    .finale-copy { white-space: normal; }
    .tickets { grid-template-columns: 1fr; }
    .topbar {
        padding-top: 16px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .brand { flex: 0 1 auto; min-width: 0; }
    .brand img { height: 20px; }
    .partner { height: 24px; flex: 0 0 auto; }
}

@media (max-width: 560px) {
    .invite h1 { font-size: 2rem; }
    .btn { width: 100%; }
    .actions form, .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lights span, .loader, .sky::before { animation: none; }
    .ticket, .btn { transition: none; }
}
