:root {
    --bg-dark: #0A0710;
    --bg-purple: #462575;
    --bg-purple-dark: #1F103A;
    --text-main: #FFFFFF;
    --text-cyan: #38bdf8;
    --accent-glow: rgba(147, 51, 234, 0.6);
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Montserrat', sans-serif;
    --font-gothic: 'Cinzel', serif;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-serif);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(-45deg, #0A0710, #3a1e5d, #1e0b36, #462575, #0A0710);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

#app::before,
#app::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: float 15s infinite ease-in-out alternate;
}

#app::before {
    top: -30%;
    left: -40%;
    width: 150vw;
    height: 150vh;
    background: radial-gradient(circle,
            rgba(147, 51, 234, 0.4) 0%,
            rgba(147, 51, 234, 0.3) 10%,
            rgba(147, 51, 234, 0.18) 25%,
            rgba(147, 51, 234, 0.08) 40%,
            rgba(147, 51, 234, 0.03) 55%,
            rgba(147, 51, 234, 0.005) 70%,
            transparent 85%);
}

#app::after {
    bottom: -40%;
    right: -40%;
    width: 150vw;
    height: 150vh;
    background: radial-gradient(circle,
            rgba(80, 20, 120, 0.5) 0%,
            rgba(80, 20, 120, 0.35) 10%,
            rgba(80, 20, 120, 0.2) 25%,
            rgba(80, 20, 120, 0.08) 40%,
            rgba(80, 20, 120, 0.03) 55%,
            rgba(80, 20, 120, 0.005) 70%,
            transparent 85%);
    animation-delay: -7s;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(5vw, 10vh) scale(1.1);
    }

    66% {
        transform: translate(-5vw, -5vh) scale(0.9);
    }

    100% {
        transform: translate(10vw, 5vh) scale(1.2);
    }
}

#app {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
    transform: translateY(20px);
    padding: 2rem;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
    z-index: 10;
}

.screen.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

.content {
    max-width: 800px;
    width: 100%;
    position: relative;
    text-align: center;
}

.intro-text p {
    font-size: 1.3rem;
    line-height: 1.8;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.reveal-line {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    filter: blur(8px);
    animation: revealText 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes revealText {
    0% {
        opacity: 0;
        visibility: visible;
        transform: translateY(30px);
        filter: blur(8px);
    }

    60% {
        filter: blur(0px);
    }

    100% {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        filter: blur(0px);
    }
}

.reveal-line .highlight.cyan {
    display: inline-block;
    animation: glowPulse 2s ease-in-out infinite alternate;
    animation-delay: inherit;
}

@keyframes glowPulse {
    0% {
        text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
    }

    100% {
        text-shadow: 0 0 25px rgba(56, 189, 248, 0.8), 0 0 50px rgba(56, 189, 248, 0.3);
    }
}


p {
    font-size: 1.1rem;
    line-height: 1.8;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.highlight.cyan {
    color: var(--text-cyan);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.highlight.italic {
    font-style: italic;
}

.gothic-title {
    font-family: var(--font-gothic);
    font-size: 4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
}

.gothic-title.small {
    font-size: 2.5rem;
}

.subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    opacity: 0.8;
}

.body-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    line-height: 1.5;
}

.italic {
    font-style: italic;
}

.space-top {
    margin-top: 1.5rem;
}

.space-top-large {
    margin-top: 3.5rem;
}

.space-bottom-large {
    margin-bottom: 3rem;
}


.watermark {
    position: absolute;
    top: 40px;
    left: 40px;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    opacity: 0.3;
    letter-spacing: 3px;
    text-align: left;
}


.next-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding-bottom: 5px;
    opacity: 0.8;
}

.next-btn:hover {
    opacity: 1;
    text-shadow: 0 0 15px var(--text-cyan);
}

.action-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-main);
    padding: 12px 40px;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    letter-spacing: 3px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.secondary-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 40px;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.secondary-btn:hover {
    color: white;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}


form {
    max-width: 550px;
    margin: 0 auto;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    opacity: 0.9;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
    color: var(--text-main);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus {
    border-bottom-color: var(--text-cyan);
    background: rgba(255, 255, 255, 0.02);
}


.custom-dropdown-group {
    position: relative;
}

.dropdown-wrapper {
    position: relative;
    width: 100%;
}

.dropdown-selected {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 12px 15px;
    color: var(--text-main);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.dropdown-selected:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 16l-6-6h12z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.dropdown-icon.open {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: white;
    border-radius: 6px;
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 20px;
    color: #927bb1;

    font-family: var(--font-serif);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(146, 123, 177, 0.1);
    color: #6a4792;
}

form .action-btn {
    width: 100%;
    margin-top: 1rem;
}


.ticket-container {
    perspective: 1000px;
    margin: 0 auto;
    max-width: 750px;
}

.ticket {
    background: linear-gradient(135deg, rgba(30, 15, 50, 0.95) 0%, rgba(80, 20, 120, 0.8) 100%);
    border: 1px solid rgba(147, 51, 234, 0.5);
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 50px rgba(147, 51, 234, 0.3);

    mask-image: radial-gradient(circle at top left, transparent 20px, black 21px),
        radial-gradient(circle at top right, transparent 20px, black 21px),
        radial-gradient(circle at bottom left, transparent 20px, black 21px),
        radial-gradient(circle at bottom right, transparent 20px, black 21px);
    mask-position: top left, top right, bottom left, bottom right;
    mask-size: 51% 51%;
    mask-repeat: no-repeat;

    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ticket:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 60px rgba(147, 51, 234, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.ticket::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}

.ticket-left {
    flex: 1;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ticket-details {
    text-align: left;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ticket-details .cyan {
    color: var(--text-cyan);
    font-weight: 500;
}

.ticket-hero {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 30px 0;
    min-height: 200px;
}

.hooded-figure {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.triangle-bg {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.8) 0%, transparent 70%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    opacity: 0.6;
    animation: pulse 3s infinite alternate;
}

.triangle-border {
    position: absolute;
    width: 220px;
    height: 220px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
}

.shadow-title {
    font-family: var(--font-gothic);
    font-size: 7rem;
    color: var(--text-main);
    text-shadow: 0 0 40px var(--text-cyan), 0 0 10px rgba(255, 255, 255, 1);
    position: relative;
    z-index: 2;
}

.ticket-title h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.ticket-title .smallcaps {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 5px;
    margin-top: 10px;
    opacity: 0.8;
}

.ticket-signature {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.username-display {
    font-family: 'Brush Script MT', 'Dancing Script', 'Caveat', cursive;
    font-size: 2rem;
    color: var(--text-cyan);
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.ticket-divider {
    width: 2px;
    background: repeating-linear-gradient(to bottom,
            rgba(255, 255, 255, 0.2) 0,
            rgba(255, 255, 255, 0.2) 10px,
            transparent 10px,
            transparent 20px);
    position: relative;
    z-index: 5;
}

.ticket-right {
    width: 120px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
}

.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-gothic);
    font-size: 2.5rem;
    letter-spacing: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 15px rgba(147, 51, 234, 0.5);
}

.superscript {
    font-size: 1.2rem;
    vertical-align: super;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.05);
        opacity: 0.7;
    }
}

@media (max-width: 768px) {
    .gothic-title {
        font-size: 2.5rem;
    }

    .gothic-title.small {
        font-size: 2rem;
    }

    form {
        padding: 20px;
    }

    .ticket {
        flex-direction: column;
    }

    .ticket-right {
        width: 100%;
        height: 100px;
    }

    .vertical-text {
        writing-mode: horizontal-tb;
        transform: none;
        letter-spacing: 5px;
    }

    .ticket-divider {
        width: 100%;
        height: 2px;
        background: repeating-linear-gradient(to right,
                rgba(255, 255, 255, 0.2) 0,
                rgba(255, 255, 255, 0.2) 10px,
                transparent 10px,
                transparent 20px);
    }
}