/* --- VARIABLES & BASE --- */
:root {
    --primary-color: #6a0dad;
    /* Deep Purple */
    --secondary-color: #ffd700;
    /* Gold */
    --tertiary-color: #ff00ff;
    /* Magenta for extra pop */
    --background-dark: #0d021a;
    /* Very dark purple */
    --background-medium: #1a0a2a;
    --background-light: #2d1a3d;
    --text-light: #f0e6ff;
    /* Off-white, easy on eyes */
    --text-dark: #1a1a1a;
    --text-subtle: #d9c2ff;
    --glow-primary: rgba(106, 13, 173, 0.8);
    --glow-secondary: rgba(255, 215, 0, 0.9);
    --glow-tertiary: rgba(255, 0, 255, 0.7);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    /* For big titles */

    /* Sizes */
    --radius-small: 8px;
    --radius-medium: 15px;
    --radius-large: 50px;
    /* Pill shape */
    --shadow-intense: 0 0 25px var(--glow-secondary), 0 0 50px var(--glow-primary);
    --shadow-subtle: 0 5px 15px rgba(0, 0, 0, 0.4);
}

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

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--text-light);
    background: linear-gradient(-45deg, var(--background-dark), var(--background-medium), var(--background-light), var(--primary-color));
    background-size: 400% 400%;
    line-height: 1.7;
    overflow-x: hidden;
    animation: gradientShift 18s ease infinite;
    min-height: 100vh;
    position: relative;
    /* Needed for absolute positioned children like tap counters */
    /* Improved touch handling for iOS Safari */
    touch-action: manipulation;
    /* More specific to prevent double-tap zoom */
    -webkit-text-size-adjust: 100%;
    /* Prevent iOS text size adjust on orientation change */
    scroll-behavior: smooth;
    /* Add smooth scrolling */
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Improve focus visibility for accessibility */
:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
    border-radius: var(--radius-small);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* Ensures images cover their area nicely */
}

.highlight {
    color: var(--secondary-color);
    font-weight: 700;
    text-shadow: 0 0 8px var(--glow-secondary);
}

/* --- OVERLAYS & PARTICLES --- */

.cosmic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, rgba(106, 13, 173, 0.15) 0%, transparent 70%),
        url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Cg fill="%23ffd700" fill-opacity="0.05"%3E%3Ccircle cx="50" cy="50" r="1" /%3E%3Ccircle cx="10" cy="10" r="1" /%3E%3Ccircle cx="90" cy="90" r="1" /%3E%3Ccircle cx="10" cy="90" r="0.5" /%3E%3Ccircle cx="90" cy="10" r="0.5" /%3E%3Ccircle cx="30" cy="70" r="1" /%3E%3Ccircle cx="70" cy="30" r="1" /%3E%3C/g%3E%3C/svg%3E');
    /* Subtle stars */
    z-index: -1;
    animation: cosmicPulse 15s infinite alternate ease-in-out;
    mix-blend-mode: screen;
    /* Experiment with blend modes */
}

@keyframes cosmicPulse {
    from {
        opacity: 0.6;
        transform: scale(1);
    }

    to {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    /* Contain particles */
}

.particle {
    position: absolute;
    background: linear-gradient(45deg, var(--secondary-color), var(--tertiary-color));
    border-radius: 50%;
    opacity: 0;
    /* Start hidden */
    animation: float 10s infinite ease-in-out, fadeInParticle 1s ease-out forwards;
    filter: blur(1px);
    transform: scale(0);
    /* Start small */
}

/* Create diverse particles */
.particle:nth-child(1) {
    width: 10px;
    height: 10px;
    top: 15%;
    left: 8%;
    animation-duration: 12s, 1s;
    animation-delay: 0s, 0.1s;
    box-shadow: 0 0 15px var(--glow-secondary);
}

.particle:nth-child(2) {
    width: 5px;
    height: 5px;
    top: 35%;
    left: 85%;
    animation-duration: 14s, 1s;
    animation-delay: 1s, 0.2s;
}

.particle:nth-child(3) {
    width: 12px;
    height: 12px;
    top: 65%;
    left: 25%;
    animation-duration: 10s, 1s;
    animation-delay: 2s, 0.3s;
    box-shadow: 0 0 15px var(--glow-tertiary);
}

.particle:nth-child(4) {
    width: 7px;
    height: 7px;
    top: 8%;
    left: 55%;
    animation-duration: 16s, 1s;
    animation-delay: 0.5s, 0.4s;
}

.particle:nth-child(5) {
    width: 4px;
    height: 4px;
    top: 88%;
    left: 15%;
    animation-duration: 11s, 1s;
    animation-delay: 1.5s, 0.5s;
}

.particle:nth-child(6) {
    width: 9px;
    height: 9px;
    top: 50%;
    left: 50%;
    animation-duration: 13s, 1s;
    animation-delay: 2.5s, 0.6s;
    box-shadow: 0 0 10px var(--glow-secondary);
}

.particle:nth-child(7) {
    width: 6px;
    height: 6px;
    top: 70%;
    left: 75%;
    animation-duration: 15s, 1s;
    animation-delay: 0.8s, 0.7s;
}

.particle:nth-child(8) {
    width: 11px;
    height: 11px;
    top: 25%;
    left: 30%;
    animation-duration: 9s, 1s;
    animation-delay: 1.2s, 0.8s;
    box-shadow: 0 0 12px var(--glow-tertiary);
}

.particle:nth-child(9) {
    width: 5px;
    height: 5px;
    top: 92%;
    left: 60%;
    animation-duration: 17s, 1s;
    animation-delay: 1.8s, 0.9s;
}

.particle:nth-child(10) {
    width: 8px;
    height: 8px;
    top: 5%;
    left: 95%;
    animation-duration: 12s, 1s;
    animation-delay: 2.2s, 1.0s;
}

.particle:nth-child(11) {
    width: 13px;
    height: 13px;
    top: 80%;
    left: 45%;
    animation-duration: 11s, 1s;
    animation-delay: 0.2s, 1.1s;
    box-shadow: 0 0 18px var(--glow-secondary);
}

.particle:nth-child(12) {
    width: 6px;
    height: 6px;
    top: 45%;
    left: 10%;
    animation-duration: 14s, 1s;
    animation-delay: 0.7s, 1.2s;
}


@keyframes fadeInParticle {
    to {
        opacity: var(--opacity, 0.7);
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: var(--opacity, 0.7);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
        opacity: var(--opacity-low, 0.4);
    }
}

/* Add variation */
.particle:nth-child(odd) {
    --opacity: 0.6;
    --opacity-low: 0.3;
    filter: blur(2px);
}

.particle:nth-child(even) {
    --opacity: 0.8;
    --opacity-low: 0.5;
    filter: blur(0.5px);
}


/* --- TICKER --- */
.ticker {
    position: fixed;
    top: 0;
    left: 0;
    /* Start from the edge */
    width: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--tertiary-color), var(--secondary-color));
    color: var(--text-dark);
    font-size: clamp(0.85em, 2vw, 1.1em);
    /* Slightly larger ticker */
    font-weight: 700;
    /* Bold ticker */
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    z-index: 1001;
    /* Above everything else initially */
    padding: 8px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid var(--primary-color);
}

.ticker span {
    display: inline-block;
    padding-left: 100%;
    /* Start off-screen */
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- CONTAINER & HERO --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 60px;
    /* More top padding due to fixed ticker */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /* Full viewport height */
    position: relative;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.container.hidden {
    opacity: 0;
    pointer-events: none;
}

.glow-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(300px, 90vw, 600px);
    /* Larger glow */
    height: clamp(300px, 90vw, 600px);
    background: radial-gradient(circle, var(--glow-primary) 0%, rgba(45, 26, 61, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseGlow 5s infinite ease-in-out;
    pointer-events: none;
    filter: blur(30px);
    /* Soften the glow */
    z-index: -1;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.troupe-image {
    display: none;
}

/* Animation applied via JS later if needed, or directly for continuous effect */
.animate-float {
    animation: floatTroupeImage 8s infinite ease-in-out 2s;
    /* Start float after entry */
}

@keyframes floatTroupeImage {

    0%,
    100% {
        transform: translateX(-50%) translateY(0px) rotate(-1deg);
    }

    50% {
        transform: translateX(-50%) translateY(-20px) rotate(1deg);
    }
}


/* --- CRYSTAL BALL --- */

.crystal-ball-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    gap: 10px;
}

.crystal-ball-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crystal-ball {
    width: clamp(100px, 25vw, 150px);
    height: clamp(100px, 25vw, 150px);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(200, 200, 255, 0.5), var(--primary-color), var(--background-medium));
    border-radius: 50%;
    box-shadow: 0 0 25px var(--glow-secondary), inset 0 0 20px rgba(255, 255, 255, 0.5), inset 0 0 50px var(--primary-color);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
    border: 4px solid var(--secondary-color);
    animation: subtleGlow 3.5s infinite ease-in-out;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    contain: layout paint;
    /* Improve performance with containment */
    flex-shrink: 0;
    /* Prevent shrinking */
}

.crystal-ball.active {
    animation: intenseGlow 0.4s ease-out;
    transform: scale(1.05);
    /* Add a small scale effect for feedback */
}

.crystal-reflection {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7), transparent 70%);
    border-radius: 50%;
    transform: rotate(45deg);
    opacity: 0.8;
}


@keyframes subtleGlow {

    0%,
    100% {
        box-shadow: 0 0 25px var(--glow-secondary), inset 0 0 20px rgba(255, 255, 255, 0.5), inset 0 0 50px var(--primary-color);
    }

    50% {
        box-shadow: 0 0 30px var(--glow-secondary), 0 0 60px var(--glow-primary), inset 0 0 25px rgba(255, 255, 255, 0.6), inset 0 0 70px var(--primary-color);
    }
}

@keyframes intenseGlow {
    0% {
        transform: scale(1.1);
        box-shadow: 0 0 50px var(--glow-secondary), 0 0 100px var(--glow-tertiary), inset 0 0 30px #fff, inset 0 0 80px var(--primary-color);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.1);
        /* Keep hover state if hovered */
    }
}


/* --- TYPOGRAPHY (HERO) --- */

.title {
    font-family: var(--font-display);
    font-size: clamp(3em, 12vw, 6em);
    /* MUCH BIGGER title */
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(60deg, var(--secondary-color), var(--tertiary-color), #fff, var(--secondary-color));
    background-size: 300% 300%;
    /* For animation */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.1em;
    letter-spacing: -2px;
    /* Tighten up */
    text-shadow: 0 0 15px var(--glow-secondary), 0 0 30px var(--glow-tertiary);
    animation: titleShimmer 8s infinite ease-in-out;
}

@keyframes titleShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}


.subtitle {
    font-size: clamp(1.1em, 4vw, 1.6em);
    /* Bigger subtitle */
    color: var(--text-subtle);
    margin-bottom: 1.8em;
    letter-spacing: 1px;
    font-weight: 300;
    text-transform: uppercase;
}

/* Add glow to specific subtitle words */
.subtitle-highlight {
    color: var(--tertiary-color);
    /* Use magenta for these */
    font-weight: 400;
    /* Keep subtitle weight or slightly bolder */
    text-shadow: 0 0 10px var(--glow-tertiary), 0 0 5px var(--glow-tertiary);
    /* Magenta glow */
}


/* --- BUTTONS & NAV --- */

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    /* More space between buttons */
    align-items: center;
    width: 100%;
    max-width: 400px;
    /* Limit width for better stacking */
    margin-top: 20px;
}

.button {
    display: inline-flex;
    /* Align icon and text */
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    font-family: var(--font-primary);
    font-weight: 700;
    /* Bolder text */
    font-size: clamp(1em, 3.5vw, 1.3em);
    /* Larger button text */
    padding: 0.9rem 2rem;
    /* More padding */
    border-radius: var(--radius-large);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    border: none;
    /* Remove default border */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    width: 100%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), inset 0 -3px 5px rgba(0, 0, 0, 0.2);
    /* 3D effect */
}

.button i {
    font-size: 1.1em;
    /* Slightly larger icons */
    transition: transform 0.3s ease;
}

/* Base button glow effect */
.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-100%) skewX(-20deg);
    transition: transform 0.6s ease;
    pointer-events: none;
    opacity: 0;
}

.button:hover::before,
.button:focus-visible::before {
    transform: translateX(100%) skewX(-20deg);
    opacity: 1;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy shimmer */
}


.button:hover,
.button:focus-visible {
    transform: scale(1.08) translateY(-5px);
    /* More pronounced hover */
    box-shadow: var(--shadow-intense), 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 -2px 3px rgba(0, 0, 0, 0.1);
    filter: brightness(1.1);
    /* Brighten slightly */
}

.button:hover i,
.button:focus-visible i {
    transform: scale(1.2) rotate(-10deg);
}

.button:active {
    transform: scale(1.02) translateY(-2px);
    /* Press down effect */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Specific Button Styles */
.button-primary {
    background: linear-gradient(45deg, var(--secondary-color), #ffeb3b);
    /* Gold/Yellow */
    color: var(--text-dark);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.button-secondary {
    background: linear-gradient(45deg, var(--primary-color), #8a2be2);
    /* Purple/BlueViolet */
    color: var(--text-light);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--secondary-color);
    /* Add contrasting border */
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: #fff;
}


.button-instagram {
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    /* Instagram Gradient */
    color: var(--text-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.button-tiktok {
    background: linear-gradient(45deg, #000000, #25F4EE, #FE2C55, #000000);
    /* TikTok colors */
    color: var(--text-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    border: 2px solid #25F4EE;
    /* Teal border */
}

.button-facebook {
    background: linear-gradient(45deg, #1877f2, #3b5998);
    /* Facebook Blue */
    color: var(--text-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Scroll Down Hint */
.scroll-down-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5em;
    color: var(--secondary-color);
    opacity: 0.8;
    animation: bounceArrow 2s infinite ease-in-out;
    pointer-events: none;
    /* Don't block interaction below */
}

@keyframes bounceArrow {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-15px);
    }

    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

/* NEW Static Tap Counter Display */
.tap-counter-display {
    font-family: var(--font-display);
    font-size: clamp(2.5em, 7vw, 4em);
    /* Large font size */
    font-weight: 900;
    color: var(--secondary-color);
    text-shadow: 0 0 15px var(--glow-secondary), 0 0 25px var(--glow-tertiary);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    /* Does not block interaction */
    position: relative;
    /* 3D effect */
    transform-style: preserve-3d;
    transform: translateZ(0);
    /* Hardware acceleration */
    text-align: center;
    min-width: 100px;
    /* Ensure it has some width */
}

/* Style for when the counter is visible */
.tap-counter-display.visible {
    opacity: 1;
    animation: counterPulse 0.5s ease-out;
}

@keyframes counterPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
        text-shadow: 0 0 20px var(--glow-secondary), 0 0 35px var(--glow-tertiary);
    }

    100% {
        transform: scale(1);
    }
}

.psychic-message {
    position: fixed;
    top: clamp(60px, 10vh, 80px);
    /* Adjusted top position slightly */
    left: 50%;
    transform: translateX(-50%);
    color: var(--secondary-color);
    font-size: clamp(0.9em, 2.5vw, 1.1em);
    /* Further reduced size */
    text-align: center;
    font-weight: 700;
    text-shadow: 0 0 10px var(--glow-secondary);
    animation: messageFadeInOut 3.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
    z-index: 1005;
    max-width: 85%;
    /* Further reduced max-width */
    padding: 12px 20px;
    /* Adjusted padding */
    background: rgba(var(--background-dark-rgb, 13, 2, 26), 0.9);
    border: 2px solid var(--tertiary-color);
    border-radius: var(--radius-medium);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    box-sizing: border-box;
    /* Ensure padding is included in width */
}

/* Define RGB vars (needed for rgba() background */
body {
    --background-dark-rgb: 13, 2, 26;
}

@keyframes messageFadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -30px) scale(0.8);
    }

    15% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }

    85% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 20px) scale(0.9);
    }
}

.ripple {
    position: fixed;
    /* Fixed positioning */
    width: 30px;
    /* Start smaller */
    height: 30px;
    background: transparent;
    border: 3px solid var(--secondary-color);
    /* Thinner border for performance */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    /* Already centered in JS */
    pointer-events: none;
    animation: rippleEffect 0.8s cubic-bezier(0, 0.55, 0.45, 1) forwards;
    /* Faster animation */
    z-index: 1008;
    /* Above content, below counter/message */
    will-change: transform, opacity;
    /* Hint for performance */
}

@keyframes rippleEffect {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }

    /* Reduced scale for performance */
}

.magic-particle {
    position: fixed;
    /* Fixed positioning */
    background: linear-gradient(var(--secondary-color), var(--tertiary-color));
    border-radius: 50%;
    pointer-events: none;
    transition: transform 1s ease-out, opacity 1s ease-out;
    z-index: 1009;
    width: 6px;
    /* Smaller size for performance */
    height: 6px;
    box-shadow: 0 0 5px var(--glow-secondary);
    /* Reduced glow for performance */
    will-change: transform, opacity;
    /* Hint for performance */
}


/* --- CONTENT & STORY SECTIONS --- */

.content-section {
    min-height: 60vh;
    /* Less intense height requirement */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 25px;
    /* Consistent padding */
    position: relative;
    text-align: center;
    overflow: hidden;
    /* Prevent content overflow */
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    /* Subtle separator */
}

.content-section.alternate-bg {
    background-color: rgba(106, 13, 173, 0.1);
    /* Subtle alternating bg */
}

.content-section.final-cta {
    min-height: 50vh;
    padding-bottom: 80px;
}

/* For elements animated on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    /* Shortened duration from 0.6s */
}

.animate-on-scroll.delay-1 {
    transition-delay: 0.15s;
}

/* Adjusted delay */
.animate-on-scroll.delay-2 {
    transition-delay: 0.3s;
}

/* Adjusted delay */
.animate-on-scroll.delay-3 {
    transition-delay: 0.45s;
}

/* Adjusted delay */

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-text {
    font-size: clamp(1.2em, 4.5vw, 2em);
    /* Larger story text */
    font-weight: 300;
    /* Lighter weight for readability */
    color: var(--text-light);
    max-width: 850px;
    margin: 1em auto;
    line-height: 1.6;
}

.story-text strong {
    /* Keep existing style, maybe enhance */
    color: var(--secondary-color);
    font-weight: 700;
    text-shadow: 0 0 8px var(--glow-secondary);
}

/* Special Links within Story Text */
.story-text a {
    color: var(--text-dark);
    background: linear-gradient(45deg, var(--secondary-color), #ffeb3b);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-large);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    /* Allow padding/margin */
    margin: 0.5em 0.2em;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-subtle);
    transform: scale(1);
    /* Base state for transform */
}

.story-text a:hover,
.story-text a:focus-visible {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: var(--shadow-intense);
}

.glowing-number {
    font-family: var(--font-display);
    font-size: clamp(5em, 25vw, 10em);
    /* MASSIVE number */
    font-weight: 900;
    color: var(--secondary-color);
    line-height: 1;
    text-shadow: 0 0 20px var(--glow-secondary), 0 0 40px var(--glow-tertiary), 0 0 60px var(--glow-primary);
    margin-bottom: 0.2em;
    animation: numberPulse 2s infinite alternate ease-in-out;
}

@keyframes numberPulse {
    from {
        transform: scale(1);
        opacity: 0.8;
        filter: brightness(1);
    }

    to {
        transform: scale(1.1);
        opacity: 1;
        filter: brightness(1.3);
    }
}


.crystal-ball-animation {
    width: clamp(200px, 40vw, 300px);
    /* Made larger */
    height: clamp(200px, 40vw, 300px);
    /* Made larger */
    /* background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(200, 200, 255, 0.6), var(--primary-color)); */
    /* Remove background if image fills */
    background: none;
    border-radius: 50%;
    margin: 30px auto;
    box-shadow: var(--shadow-intense), inset 0 0 30px rgba(255, 255, 255, 0.5);
    border: 5px solid var(--secondary-color);
    /* Slightly thicker border */
    animation: crystalWobble 5s infinite ease-in-out;
    display: flex;
    /* Center the image */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Clip the image */
    position: relative;
    /* For potential pseudo-elements */
}

.crystal-ball-image {
    /* width: 100%; */
    /* Let the container size it */
    /* max-width: 300px; */
    /* height: auto; */
    width: 100%;
    /* Fill the container */
    height: 100%;
    /* Fill the container */
    object-fit: cover;
    /* Cover the area, maintain aspect ratio */
    /* Remove styles handled by the parent orb */
    border-radius: 0;
    border: none;
    margin: 0;
    box-shadow: none;
    /* Keep hover effect if desired, or move to parent */
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
    transition: transform 0.4s ease;
    display: block;
    /* Ensure it behaves as a block element */

}

.crystal-ball-animation:hover .crystal-ball-image {
    transform: scale(1.05);
    /* box-shadow: 0 0 30px var(--glow-tertiary), 0 0 60px var(--glow-primary); */
    /* Glow on parent */
}

@keyframes crystalWobble {

    0%,
    100% {
        transform: scale(1) rotate(-2deg);
    }

    50% {
        transform: scale(1.05) rotate(2deg);
    }
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-top: 1.5em;
    width: 100%;
    max-width: 350px;
    /* Consistent button width */
}


/* --- STACKED IMAGES --- */
.stacked-images {
    padding-top: 40px;
    /* Space from hero */
    padding-bottom: 60px;
}

.image-link {
    display: block;
    /* Ensure it takes width */
    margin-bottom: 30px;
    /* Spacing between images */
    border-radius: var(--radius-medium);
    overflow: hidden;
    /* Clip image to border radius */
    box-shadow: var(--shadow-intense);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.image-link:last-child {
    margin-bottom: 0;
}

.stacked-image {
    border-radius: var(--radius-medium);
    border: 4px solid var(--secondary-color);
    transition: filter 0.3s ease;
}

.image-link:hover,
.image-link:focus-visible {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 35px var(--glow-secondary), 0 0 70px var(--glow-primary);
}

.image-link:hover .stacked-image,
.image-link:focus-visible .stacked-image {
    filter: brightness(1.1);
}

/* --- ABOUT MODAL --- */
.about-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--background-dark-rgb, 13, 2, 26), 0.7);
    backdrop-filter: blur(10px);
    z-index: 2000;
    /* High z-index */
    /* Explicitly set initial hidden state */
    display: flex;
    /* Use flex even when hidden for easier centering transition */
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
    /* Delay visibility transition */
}

.about-modal.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
    /* Remove delay */
}

.about-content {
    background: linear-gradient(145deg, var(--background-medium), var(--background-light));
    padding: clamp(25px, 5vw, 50px);
    border-radius: var(--radius-medium);
    max-width: 90%;
    width: 700px;
    box-shadow: var(--shadow-intense), 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 3px solid var(--tertiary-color);
    transform: scale(0.95);
    /* Slightly smaller initial scale */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
    /* Ensure it doesn't get pushed off screen */
    margin: auto;
}

.about-modal.visible .about-content {
    transform: scale(1);
    /* Scale to full size when visible */
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 2em;
    color: var(--text-dark);
    background: var(--secondary-color);
    border-radius: 50%;
    border: 2px solid var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1051;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    line-height: 1;
    box-shadow: var(--shadow-subtle);
}

.close-btn:hover,
.close-btn:focus-visible {
    transform: rotate(90deg) scale(1.1);
    background-color: var(--tertiary-color);
    color: var(--text-light);
}

.modal-title {
    font-family: var(--font-display);
    font-size: clamp(1.8em, 5vw, 2.8em);
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 0.8em;
    text-shadow: 0 0 10px var(--glow-secondary);
}

.about-text {
    font-size: clamp(1em, 2.5vw, 1.2em);
    margin-bottom: 1.5em;
    line-height: 1.6;
    color: var(--text-subtle);
}

.about-text .highlight {
    color: var(--tertiary-color);
    /* Use magenta highlight in modal */
    text-shadow: 0 0 8px var(--glow-tertiary);
}

.modal-image {
    border-radius: var(--radius-small);
    margin: 20px auto 0;
    max-width: 80%;
    /* Limit image size */
    box-shadow: var(--shadow-subtle);
    border: 2px solid var(--secondary-color);
}


/* --- MEDIA QUERIES --- */

@media (max-width: 768px) {
    body {
        font-size: clamp(15px, 1.5vw + 0.8rem, 17px);
        /* Slightly adjust base size */
    }

    .container {
        padding-top: 80px;
        /* Ensure content below ticker */
        min-height: calc(100vh - 60px);
        /* Adjust height for ticker */
    }

    .title {
        letter-spacing: -1px;
    }

    .troupe-image {
        width: clamp(100px, 25vw, 150px);
        top: 8%;
    }

    .crystal-ball {
        width: clamp(80px, 20vw, 120px);
        height: clamp(80px, 20vw, 120px);
    }

    .button {
        padding: 0.8rem 1.5rem;
    }

    .content-section {
        padding: 50px 20px;
    }

    .story-text {
        font-size: clamp(1.1em, 4vw, 1.6em);
    }

    .glowing-number {
        font-size: clamp(4em, 20vw, 8em);
    }

    .about-content {
        max-width: 95%;
        padding: clamp(20px, 4vw, 40px);
    }

    .modal-title {
        font-size: clamp(1.6em, 4.5vw, 2.4em);
    }

    .about-text {
        font-size: clamp(0.9em, 2.2vw, 1.1em);
    }
}

@media (max-width: 480px) {
    .title {
        font-size: clamp(2.5em, 10vw, 4em);
    }

    .subtitle {
        font-size: clamp(1em, 3.5vw, 1.3em);
    }

    .button {
        font-size: clamp(0.9em, 3vw, 1.1em);
    }

    .ticker {
        font-size: clamp(0.8em, 1.8vw, 1em);
        padding: 6px 0;
    }

    .psychic-message {
        font-size: clamp(1em, 3.5vw, 1.3em);
        padding: 12px 25px;
    }

    .tap-counter-display {
        font-size: clamp(2em, 6vw, 3em);
    }

    .troupe-image {
        display: none;
        /* Maybe hide on very small screens to avoid clutter */
    }
}

/* --- IMAGE CONSTELLATION --- */
.image-constellation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.constellation-item {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: auto;
    box-shadow: var(--shadow-intense);
    border: 3px solid var(--secondary-color);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    z-index: 2;
}

.constellation-item::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-tertiary) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.5;
    animation: constellationGlow 3s infinite alternate ease-in-out;
}

.constellation-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Positioning and sizing */
.item-1 {
    width: clamp(100px, 15vw, 140px);
    height: clamp(100px, 15vw, 140px);
    top: 10%;
    left: 15%;
    animation: floatImageOne 12s infinite ease-in-out;
    z-index: 3;
}

.item-2 {
    width: clamp(90px, 13vw, 120px);
    height: clamp(90px, 13vw, 120px);
    top: 25%;
    right: 15%;
    animation: floatImageTwo 15s infinite ease-in-out;
}

.item-3 {
    width: clamp(120px, 16vw, 160px);
    height: clamp(120px, 16vw, 160px);
    bottom: 20%;
    left: 25%;
    animation: floatImageThree 18s infinite ease-in-out;
}

/* Connecting lines */
.constellation-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    height: 2px;
    opacity: 0.6;
    z-index: 1;
    filter: drop-shadow(0 0 6px var(--glow-secondary));
    animation: linePulse 4s infinite alternate ease-in-out;
}

.line-1 {
    top: calc(10% + clamp(50px, 7.5vw, 70px));
    left: calc(15% + clamp(100px, 15vw, 140px));
    width: calc(70% - clamp(100px, 15vw, 140px) - clamp(90px, 13vw, 120px));
    transform: rotate(15deg);
    transform-origin: left center;
}

.line-2 {
    top: calc(25% + clamp(90px, 13vw, 120px));
    right: calc(15% + clamp(45px, 6.5vw, 60px));
    width: calc(60% - clamp(90px, 13vw, 120px) - clamp(60px, 8vw, 80px));
    transform: rotate(135deg);
    transform-origin: right center;
}

/* Animations */
@keyframes floatImageOne {

    0%,
    100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

@keyframes floatImageTwo {

    0%,
    100% {
        transform: translateY(0) rotate(5deg);
    }

    33% {
        transform: translateY(-20px) rotate(-2deg);
    }

    66% {
        transform: translateY(-10px) rotate(8deg);
    }
}

@keyframes floatImageThree {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg) scale(1);
    }

    33% {
        transform: translateY(15px) rotate(0deg) scale(1.05);
    }

    66% {
        transform: translateY(-10px) rotate(5deg) scale(0.98);
    }
}

@keyframes constellationGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

@keyframes linePulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

/* Hover effects */
.constellation-item:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 30px var(--glow-secondary), 0 0 60px var(--glow-tertiary);
    z-index: 10;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .item-1 {
        width: clamp(80px, 14vw, 120px);
        height: clamp(80px, 14vw, 120px);
        top: 7%;
        left: 12%;
    }

    .item-2 {
        width: clamp(70px, 12vw, 100px);
        height: clamp(70px, 12vw, 100px);
        top: 20%;
        right: 12%;
    }

    .item-3 {
        width: clamp(90px, 15vw, 130px);
        height: clamp(90px, 15vw, 130px);
        bottom: 25%;
        left: 20%;
    }

    .line-1 {
        top: calc(7% + clamp(40px, 7vw, 60px));
        left: calc(12% + clamp(80px, 14vw, 120px));
        width: calc(76% - clamp(80px, 14vw, 120px) - clamp(70px, 12vw, 100px));
    }

    .line-2 {
        top: calc(20% + clamp(70px, 12vw, 100px));
        right: calc(12% + clamp(35px, 6vw, 50px));
        width: calc(68% - clamp(70px, 12vw, 100px) - clamp(45px, 7.5vw, 65px));
    }
}

/* Smaller mobile screens */
@media (max-width: 480px) {
    .item-1 {
        width: 70px;
        height: 70px;
        top: 5%;
        left: 8%;
    }

    .item-2 {
        width: 60px;
        height: 60px;
        top: 15%;
        right: 8%;
    }

    .item-3 {
        width: 80px;
        height: 80px;
        bottom: 30%;
        left: 15%;
    }

    .line-1,
    .line-2 {
        opacity: 0.4;
    }
}

/* --- EVENT BLOCK --- */
.event-block {
    width: 100%;
    max-width: 800px;
    /* Increased from 600px for better desktop display */
    margin: 20px auto 50px;
    /* Increased margins for better spacing */
    padding: 35px 30px;
    /* Increased padding for better content breathing room */
    border-radius: var(--radius-medium);
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.8), rgba(255, 0, 255, 0.5));
    position: relative;
    box-shadow: 0 0 30px var(--glow-primary), 0 0 60px var(--glow-tertiary);
    text-align: center;
    overflow: hidden;
    z-index: 5;
    border: 2px solid var(--secondary-color);
    animation: eventBlockGlow 3s infinite alternate ease-in-out;
}

.event-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Cg fill="%23ffd700" fill-opacity="0.1"%3E%3Ccircle cx="50" cy="50" r="1" /%3E%3Ccircle cx="25" cy="25" r="1" /%3E%3Ccircle cx="75" cy="75" r="1" /%3E%3Ccircle cx="25" cy="75" r="0.7" /%3E%3Ccircle cx="75" cy="25" r="0.7" /%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.3;
    z-index: -1;
}

.event-location {
    font-family: var(--font-display);
    font-size: clamp(1.8em, 4vw, 2.8em);
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 8px;
    margin-top: 10px;
    text-shadow: 0 0 15px var(--glow-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.event-venue {
    font-family: var(--font-primary);
    font-size: clamp(1em, 2.5vw, 1.6em);
    /* Adjusted for better scaling */
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
    /* Increased spacing */
    text-shadow: 0 0 8px var(--glow-tertiary);
    letter-spacing: 1px;
    opacity: 0.9;
}

.event-date {
    font-family: var(--font-primary);
    font-size: clamp(1.3em, 3.5vw, 2em);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
    text-shadow: 0 0 10px var(--glow-tertiary);
    letter-spacing: 1px;
}

.event-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: clamp(1.2em, 3.5vw, 1.5em);
    font-weight: 900;
    padding: 15px 35px;
    background: linear-gradient(45deg, var(--secondary-color), #ffeb3b);
    color: var(--text-dark);
    border-radius: var(--radius-large);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 20px var(--glow-secondary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
    margin: 0 auto 15px;
    width: 80%;
    max-width: 300px;
}

.event-button:last-child {
    margin-bottom: 0;
}

.event-button-secondary {
    background: linear-gradient(45deg, var(--primary-color), #8a2be2);
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-primary);
}

.event-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.event-button:hover,
.event-button:focus-visible {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 30px var(--glow-secondary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.event-button-secondary:hover,
.event-button-secondary:focus-visible {
    border-color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 30px var(--glow-tertiary);
}

.event-button:hover::before,
.event-button:focus-visible::before {
    transform: translateX(100%);
}

.event-button i {
    font-size: 1.1em;
    animation: ticketBounce 2s infinite ease-in-out;
}

@keyframes eventBlockGlow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--glow-primary), 0 0 40px var(--glow-tertiary);
    }

    50% {
        box-shadow: 0 0 40px var(--glow-tertiary), 0 0 80px var(--glow-primary);
    }
}

@keyframes ticketBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .event-block {
        max-width: 600px;
        padding: 25px 20px;
        margin: 15px auto 35px;
    }

    .event-image-container {
        max-width: 400px;
        padding: 12px;
        margin: 15px auto;
    }

    .event-time {
        margin: 15px 0 25px;
    }
}

@media (max-width: 480px) {
    .event-block {
        max-width: 100%;
        padding: 20px 15px;
        margin: 10px auto 25px;
    }

    .event-image-container {
        max-width: 300px;
        padding: 10px;
        margin: 12px auto;
    }

    .event-time {
        margin: 12px 0 20px;
    }
}

/* --- COUNTDOWN TIMER --- */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* Space between units */
    margin: 20px 0;
    flex-wrap: wrap;
    /* Handle small screens */
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(var(--background-dark-rgb), 0.5);
    padding: 10px;
    border-radius: var(--radius-small);
    border: 1px solid var(--secondary-color);
    min-width: 70px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.countdown-value {
    font-family: var(--font-display);
    font-size: 1.5em;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.countdown-label {
    font-size: 0.8em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-top: 5px;
}

.show-expired {
    font-family: var(--font-display);
    color: var(--tertiary-color);
    font-size: 1.5em;
    font-weight: 700;
    margin: 20px 0;
    text-shadow: 0 0 10px var(--glow-tertiary);
    animation: pulseGlow 2s infinite ease-in-out;
}

/* --- NEON FRAME IMAGE --- */
.neon-frame-image {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 2rem auto;
    border-radius: var(--radius-medium);
    box-shadow: 0 0 20px var(--glow-secondary), 0 0 40px var(--glow-tertiary);
    overflow: hidden;
}

.neon-frame-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 4px solid var(--secondary-color);
    border-radius: var(--radius-medium);
    box-shadow: inset 0 0 15px var(--glow-secondary);
    z-index: 2;
    pointer-events: none;
    animation: neonPulse 2s infinite alternate ease-in-out;
}

.framed-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-medium);
    transition: transform 0.5s ease;
}

.neon-frame-image:hover .framed-image {
    transform: scale(1.05);
}

@keyframes neonPulse {
    from {
        box-shadow: inset 0 0 15px var(--glow-secondary), 0 0 20px var(--glow-secondary);
    }

    to {
        box-shadow: inset 0 0 25px var(--glow-secondary), 0 0 40px var(--glow-tertiary);
    }
}

/* --- IMAGE ROW --- */
.image-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
}

.story-image {
    width: calc(50% - 10px);
    max-width: 350px;
    height: auto;
    border-radius: var(--radius-medium);
    border: 3px solid var(--tertiary-color);
    box-shadow: 0 0 15px var(--glow-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--glow-tertiary);
}

@media (max-width: 768px) {
    .image-row {
        flex-direction: column;
        align-items: center;
    }

    .story-image {
        width: 100%;
        max-width: 400px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .neon-frame-image {
        max-width: 300px;
    }

    .story-image {
        max-width: 280px;
    }
}

/* --- NEW "TOUCH ME" Text on Crystal Ball --- */
.touch-me-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1em, 3vw, 1.2em);
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--glow-secondary);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    text-align: center;
    letter-spacing: 1px;
    animation: fadeInTouchMe 1s ease-out 1.5s forwards, pulseTouchMe 3s infinite 2.5s;
    transition: opacity 0.3s ease;
    /* Add transition for programmatic opacity changes */
}

@keyframes fadeInTouchMe {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes pulseTouchMe {

    0%,
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

    .tap-counter-display,
    .psychic-message,
    .ripple,
    .crystal-ball,
    .touch-me-text {
        animation: none !important;
        transition: none !important;
    }
}

/* Mobile optimization */
@media (max-width: 768px) {
    .tap-counter-display {
        font-size: clamp(2em, 6vw, 3em);
        /* Smaller on mobile */
        min-width: 80px;
    }

    .ripple {
        border-width: 2px;
        /* Thinner border on mobile */
    }

    .magic-particle {
        width: 4px;
        /* Even smaller particles on mobile */
        height: 4px;
        box-shadow: none;
        /* Remove box-shadow on mobile for performance */
    }

    .psychic-message {
        font-size: 1em;
        top: clamp(40px, 10vh, 80px);
        /* Position higher to avoid overlap with crystal ball */
        padding: 10px 20px;
        box-shadow: none;
        /* Remove box-shadow on mobile for performance */
    }
}

/* --- STAR RATING --- */
.star-rating {
    margin: 1rem auto;
    /* Space around the stars */
    color: var(--secondary-color);
    /* Gold color */
    font-size: clamp(1.8em, 5vw, 2.5em);
    /* Adjust size as needed */
    letter-spacing: 0.2em;
    /* Spacing between stars */
    text-shadow: 0 0 8px var(--glow-secondary);
    /* Subtle glow */
}

/* Optional: Add animation to stars appearing */
.star-rating i {
    display: inline-block;
    opacity: 0;
    transform: scale(0.5);
    animation: popInStar 0.5s ease-out forwards;
}

/* Stagger the star animation */
.star-rating i:nth-child(1) {
    animation-delay: 0.2s;
}

.star-rating i:nth-child(2) {
    animation-delay: 0.3s;
}

.star-rating i:nth-child(3) {
    animation-delay: 0.4s;
}

.star-rating i:nth-child(4) {
    animation-delay: 0.5s;
}

.star-rating i:nth-child(5) {
    animation-delay: 0.6s;
}

@keyframes popInStar {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    80% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* New animations for tap effect progression */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0% {
        transform: translate(0, 0) rotate(0);
    }

    20% {
        transform: translate(-5px, 0) rotate(-5deg);
    }

    40% {
        transform: translate(5px, 0) rotate(5deg);
    }

    60% {
        transform: translate(-3px, 0) rotate(-3deg);
    }

    80% {
        transform: translate(3px, 0) rotate(3deg);
    }

    100% {
        transform: translate(0, 0) rotate(0);
    }
}

/* Enhanced psychic message for the 1000-tap congratulation */
.super-congratulation {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 80%;
    width: 500px;
    background: rgba(var(--background-dark-rgb), 0.95);
    border: 4px solid var(--tertiary-color);
    box-shadow: 0 0 30px var(--glow-tertiary), 0 0 60px var(--glow-primary);
    padding: 30px;
    text-align: center;
    opacity: 1 !important;
    animation: none !important;
    z-index: 2000;
}

.super-congratulation h2 {
    font-family: var(--font-display);
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-shadow: 0 0 15px var(--glow-secondary);
}

.super-congratulation p {
    margin: 10px 0;
    font-size: 1.2em;
    line-height: 1.4;
}

.super-congratulation button {
    background: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-medium);
    margin-top: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.super-congratulation button:hover {
    background: var(--tertiary-color);
    color: var(--text-light);
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--glow-tertiary);
}

/* Disable expensive CSS for Safari on smaller screens */
@media screen and (max-width: 768px) {
    @supports (-webkit-touch-callout: none) {
        .heavy-effects,
        .blurred-section,
        .fancy-shadow,
        /* Add specific classes or selectors you want to disable effects for */
        .cosmic-overlay,
        /* Example: Assuming this has heavy effects */
        .glow-circle,
        /* Example: Assuming this has heavy effects */
        .crystal-ball,
        /* Example: Assuming this has heavy effects */
        .neon-frame-image img,
        /* Example */
        .glowing-number,
        /* Example */
        .highlight,
        /* Example: If text-shadow is used */
        .button

        /* Example: If transitions/shadows are used */
            {
            filter: none !important;
            box-shadow: none !important;
            text-shadow: none !important;
            transition: none !important;
            animation: none !important;
            /* Also disable animations */
            backdrop-filter: none !important;
            /* If using backdrop-filter */
        }

        /* You might need to be more specific or add more selectors */
    }
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--background-medium);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--glow-primary);
    margin-top: 40px;
}

.footer-note {
    color: var(--text-subtle);
    font-size: 0.9em;
}

/* Compress particles on smaller screens */
@media (max-width: 768px) {
    .particles .particle:nth-child(n+6) {
        display: none;
    }
}

/* Add Responsive Media Queries from user request */
@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
        /* Ensure base font size is readable */
    }

    /* Adjust padding for smaller screens */
    .main-wrapper {
        /* Assuming you have a wrapper with this class */
        padding: 1rem;
    }

    /* Ensure images scale down */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Example: Adjust navigation or other elements as needed */
    /* .nav-links {
    flex-direction: column;
    gap: 0.8em;
  } */
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px 20px 60px;
    /* Generous padding, especially bottom for mobile */
    margin-top: 50px;
    /* Space above the footer */
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    /* Subtle gold top border */
    background: rgba(13, 2, 26, 0.3);
    /* Subtle dark background matching theme */
    font-size: 0.9rem;
    color: var(--text-subtle);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    width: 100%;
    /* Ensure it spans the full width */
    box-sizing: border-box;
    /* Include padding in width */
}

footer p {
    margin: 0;
    /* Reset default paragraph margin */
}

/* Ensure footer is below absolutely positioned elements if needed */
body {
    /* Make sure body context allows footer at bottom, padding-bottom might be needed if content is short */
    padding-bottom: 0;
    /* Resetting just in case, footer padding handles space */
}

/* Minor adjustment for very small screens if needed */
@media (max-width: 480px) {
    footer {
        padding: 30px 15px 40px;
        font-size: 0.85rem;
    }
}

/* Sparkle effect for coming soon button */
@keyframes sparkle {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.05);
        filter: brightness(1.3);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

@keyframes sparkleParticles {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

.event-button-secondary.sparkle {
    animation: sparkle 0.3s ease-out;
    position: relative;
    overflow: visible;
    /* Changed from hidden to allow sparks to escape */
}

.event-button-secondary.sparkle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    animation: sparkleParticles 0.3s ease-out;
    pointer-events: none;
}

.event-button-secondary.sparkle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    transform: translateX(-100%);
    animation: sparkleShine 0.3s ease-out;
    pointer-events: none;
}

@keyframes sparkleShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Spark particles */
.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
}

@keyframes sparkFly {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--spark-x), var(--spark-y)) scale(0);
        opacity: 0;
    }
}

/* Event Image Container */
.event-image-container {
    width: 100%;
    max-width: 600px;
    /* Increased from 400px for better desktop display */
    margin: 20px auto;
    /* Increased margins */
    padding: 15px;
    /* Increased padding */
    border-radius: var(--radius-medium);
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.3), rgba(255, 0, 255, 0.2));
    box-shadow: 0 0 20px var(--glow-primary), 0 0 40px var(--glow-tertiary);
    border: 2px solid var(--secondary-color);
    animation: eventImageGlow 3s infinite alternate ease-in-out;
}

.event-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-small);
    display: block;
    transition: transform 0.3s ease;
}

.event-image-container:hover .event-image {
    transform: scale(1.02);
}

@keyframes eventImageGlow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--glow-primary), 0 0 40px var(--glow-tertiary);
    }

    50% {
        box-shadow: 0 0 30px var(--glow-tertiary), 0 0 60px var(--glow-primary);
    }
}

@media (max-width: 768px) {
    .event-image-container {
        max-width: 400px;
        padding: 12px;
        margin: 15px auto;
    }
}

@media (max-width: 480px) {
    .event-image-container {
        max-width: 300px;
        padding: 10px;
        margin: 12px auto;
    }
}

.event-image-container a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.event-image-container:hover {
    box-shadow: 0 0 30px var(--glow-tertiary), 0 0 60px var(--glow-primary);
}

.event-image-container:hover .event-image {
    transform: scale(1.02);
}

.event-time {
    font-family: var(--font-primary);
    font-size: clamp(1.1em, 3vw, 1.6em);
    /* Adjusted for better scaling */
    font-weight: 700;
    color: var(--text-light);
    margin: 20px 0 30px;
    /* Increased margins */
    text-shadow: 0 0 10px var(--glow-tertiary);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .event-time {
        font-size: clamp(1em, 3vw, 1.3em);
        margin: 15px 0 25px;
    }
}

@media (max-width: 480px) {
    .event-time {
        font-size: clamp(0.9em, 2.5vw, 1.2em);
        margin: 12px 0 20px;
    }
}

/* --- INCREDIBLE GET TICKETS BUTTON --- */
.incredible-btn {
    background: linear-gradient(270deg, #ff007f, #ffd700, #ff007f, #9400d3, #ff007f) !important;
    background-size: 400% 400% !important;
    animation: incredibleGradientFlow 6s ease infinite, btnPulseScale 2s infinite alternate ease-in-out !important;
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.6), 0 0 50px rgba(255, 0, 127, 0.4) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
    color: #fff !important;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.incredible-btn i {
    color: #ffd700;
    text-shadow: 0 0 8px #9400d3;
}

.incredible-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-20deg);
    animation: incredibleShine 4s infinite;
    z-index: 1;
}

.incredible-btn:hover, .incredible-btn:focus-visible {
    transform: scale(1.15) translateY(-5px) !important;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.8), 0 0 80px rgba(255, 0, 127, 0.6) !important;
    color: #fff !important;
    border-color: #ffd700 !important;
}

@keyframes incredibleGradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes btnPulseScale {
    0% { transform: scale(1); }
    100% { transform: scale(1.04); }
}

@keyframes incredibleShine {
    0% { left: -150%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* --- COUNTDOWN TIMER --- */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: clamp(10px, 3vw, 20px);
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-medium);
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: clamp(60px, 15vw, 80px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    padding: 10px;
    border-radius: var(--radius-small);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.countdown-value {
    font-family: var(--font-display);
    font-size: clamp(1.8em, 4vw, 2.8em);
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
    text-shadow: 0 0 10px var(--glow-secondary);
}

.countdown-label {
    font-size: clamp(0.7em, 1.8vw, 0.9em);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-subtle);
    margin-top: 5px;
    font-weight: 700;
}

.show-expired {
    font-size: clamp(1.5em, 4vw, 2em);
    color: var(--tertiary-color);
    font-family: var(--font-display);
    font-weight: 700;
    text-shadow: 0 0 15px var(--glow-tertiary);
    margin-bottom: 25px;
    text-align: center;
    animation: slowPulse 2s infinite alternate ease-in-out;
}

@keyframes slowPulse {
    from { transform: scale(1); opacity: 0.9; }
    to { transform: scale(1.05); opacity: 1; text-shadow: 0 0 25px var(--glow-tertiary); }
}

/* --- EVENT HERO IMAGE (no inline styles) --- */
.event-hero-image {
    margin: -35px -30px 25px -30px;
    width: calc(100% + 60px);
    max-width: none;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    border-bottom: 3px solid var(--secondary-color);
}

.event-hero-image .event-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- EVENT ADDRESS --- */
.event-address {
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 25px;
    font-weight: 400;
    padding: 10px 16px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s ease;
}

.event-address:hover {
    background: rgba(0,0,0,0.5);
}

.event-address i {
    color: #facc15;
    margin-right: 8px;
}

.event-address a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-address a:hover {
    color: #facc15;
}

/* --- EVENT COST --- */
.event-cost {
    font-size: 1.25rem;
    color: #facc15;
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* --- EVENT DESCRIPTION (collapsible) --- */
.event-description {
    margin-top: 30px;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(0,0,0,0.5);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.event-description-title {
    color: #facc15;
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
}

.event-description-intro {
    margin-bottom: 10px;
}

.event-description p {
    margin-bottom: 15px;
}

.event-description a {
    color: #facc15;
    text-decoration: underline;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.event-description a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--glow-secondary);
}

/* --- EXPAND TOGGLE BUTTON --- */
.expand-toggle {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.4), rgba(255, 0, 255, 0.2));
    color: var(--secondary-color);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 12px 20px;
    margin: 15px 0 5px;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-align: center;
}

.expand-toggle:hover {
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.6), rgba(255, 0, 255, 0.35));
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    transform: translateY(-1px);
}

.expand-toggle:active {
    transform: translateY(0);
}

/* --- COLLAPSIBLE CONTENT --- */
.description-collapsible {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease,
                padding 0.4s ease;
    padding-top: 0;
}

.description-collapsible.expanded {
    max-height: 800px;
    opacity: 1;
    padding-top: 15px;
}

/* --- EVENT DETAILS BOX --- */
.event-details-box {
    font-size: 0.85rem;
    color: #eee;
    background: rgba(0,0,0,0.4);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.event-details-list {
    list-style-type: none;
    padding: 0;
    margin-bottom: 15px;
}

.event-details-list li {
    margin-bottom: 8px;
}

.event-details-list i {
    width: 20px;
    color: #facc15;
    display: inline-block;
    text-align: center;
    margin-right: 6px;
}

.event-policies {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
}

.event-policies p {
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.no-refunds {
    color: #ff6b6b !important;
    font-weight: bold;
}

@media (max-width: 768px) {
    .event-hero-image {
        margin: -25px -20px 20px -20px;
        width: calc(100% + 40px);
    }

    .event-description {
        padding: 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .event-hero-image {
        margin: -20px -15px 15px -15px;
        width: calc(100% + 30px);
    }

    .event-description {
        padding: 15px;
    }

    .expand-toggle {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
}