/* ============================================
   SLIMEZEN TICKETS — Poster-Matched CSS
   Eater font for drippy horror title
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
html { scroll-behavior: smooth; }

body {
    background: #0a0a0a;
    color: #e8e8e8;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* --- ENTER OVERLAY --- */
#enter-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: #0a0a0a;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: opacity 0.8s ease;
}
#enter-overlay.fade-out { opacity: 0; pointer-events: none; }
.enter-inner { text-align: center; animation: enterPulse 2s ease-in-out infinite; }
.enter-eye {
    width: 120px; height: 120px; object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(184,233,134,0.4));
    animation: enterEyeSpin 8s linear infinite;
    margin-bottom: 30px;
}
.enter-text {
    font-family: 'Eater', cursive;
    font-size: 24px;
    color: #b8e986;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(184,233,134,0.5);
}
@keyframes enterPulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes enterEyeSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- CANVAS --- */
#bg-canvas {
    position: fixed; inset: 0;
    width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}

/* --- SPLAT TEXTURE LAYER --- */
.splat-layer {
    position: fixed; inset: 0; z-index: 1;
    pointer-events: none; overflow: hidden;
}
.splat {
    position: absolute;
    opacity: 0.06;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
    filter: blur(1px);
    pointer-events: none;
}
.splat-green { filter: drop-shadow(0 0 15px rgba(184,233,134,0.2)) blur(0.5px); }
.splat-blood { filter: drop-shadow(0 0 10px rgba(139,34,66,0.3)) blur(0.5px); }

.s1 { left: 5%; top: 10%; width: 250px; }
.s2 { left: 75%; top: 15%; width: 200px; }
.s3 { left: 20%; top: 70%; width: 180px; }
.s4 { left: 65%; top: 60%; width: 160px; }
.b1 { left: 80%; top: 5%; width: 140px; }
.b2 { left: 10%; top: 80%; width: 180px; }
.b3 { left: 45%; top: 45%; width: 120px; }

/* --- VIGNETTE --- */
.vignette {
    position: fixed; inset: 0; z-index: 3; pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 25%, rgba(107,26,42,0.2) 55%, rgba(10,10,10,0.9) 100%);
}

/* --- RED PULSE (audio-reactive bass flash) --- */
#red-pulse {
    position: fixed; inset: 0; z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(139,34,66,0.6) 0%, rgba(107,26,42,0.3) 50%, transparent 80%);
    opacity: 0;
    transition: opacity 0.08s ease-out;
}

/* --- NOISE --- */
.noise-overlay {
    position: fixed; inset: 0; z-index: 3; pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px; animation: noiseShift 0.12s steps(3) infinite;
}
@keyframes noiseShift {
    0% { transform: translate(0,0); }
    33% { transform: translate(-5px,5px); }
    66% { transform: translate(3px,-3px); }
}

/* --- MAIN --- */
#main-content {
    position: relative; z-index: 5;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
}

/* --- HERO --- */
.hero {
    display: flex; align-items: center; justify-content: center;
    gap: 60px; padding: 40px 30px;
    max-width: 1100px; width: 100%;
}

/* --- POSTER --- */
.poster-wrap {
    position: relative; flex-shrink: 0; width: 400px;
    opacity: 0; transform: perspective(1000px) translateY(40px) rotateX(5deg);
    filter: blur(10px);
    transition: transform 0.15s ease-out;
}
.poster-wrap.visible {
    opacity: 1; transform: perspective(1000px) translateY(0) rotateX(0); filter: blur(0);
    transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1), filter 0.8s ease;
}

.poster-glow {
    position: absolute; inset: -40px;
    background: radial-gradient(ellipse at center, rgba(184,233,134,0.2) 0%, rgba(107,26,42,0.15) 40%, transparent 70%);
    z-index: -1; border-radius: 20px; filter: blur(25px);
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.poster-frame {
    position: relative; border-radius: 12px; overflow: hidden;
    border: 2px solid rgba(184,233,134,0.25);
    box-shadow: 0 0 50px rgba(184,233,134,0.12), 0 0 100px rgba(107,26,42,0.2), 0 25px 80px rgba(0,0,0,0.6);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.poster-wrap:hover .poster-frame {
    border-color: rgba(184,233,134,0.5);
    box-shadow: 0 0 80px rgba(184,233,134,0.25), 0 0 140px rgba(107,26,42,0.25), 0 30px 100px rgba(0,0,0,0.7);
}
.poster-img { display: block; width: 100%; height: auto; transition: transform 0.6s cubic-bezier(.16,1,.3,1); }
.poster-wrap:hover .poster-img { transform: scale(1.03); }

/* --- EVENT INFO --- */
.event-info {
    flex: 1; min-width: 0;
    opacity: 0; transform: translateY(30px);
}
.event-info.visible {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.16,1,.3,1);
}

.event-label {
    display: inline-block;
    font-family: 'Press Start 2P', monospace;
    font-size: 9px; letter-spacing: 4px; text-transform: uppercase;
    color: #b8e986;
    background: rgba(184,233,134,0.08);
    border: 1px solid rgba(184,233,134,0.2);
    padding: 6px 16px; border-radius: 4px; margin-bottom: 20px;
}

/* EATER FONT — matches the poster drippy horror text */
.event-title {
    font-family: 'Eater', cursive;
    font-size: clamp(52px, 8vw, 90px);
    color: #b8e986;
    line-height: 1;
    margin-bottom: 28px;
    text-shadow: 0 0 30px rgba(184,233,134,0.3), 0 0 60px rgba(184,233,134,0.1);
    letter-spacing: 2px;
    transition: text-shadow 0.15s ease-out;
}

/* --- DETAILS --- */
.event-details { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.detail-item {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; color: #999;
    opacity: 0; transform: translateX(-20px);
}
.detail-item.visible {
    opacity: 1; transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.16,1,.3,1);
}
.detail-icon {
    font-size: 18px; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(184,233,134,0.06); border: 1px solid rgba(184,233,134,0.1);
    border-radius: 8px; flex-shrink: 0;
}
.detail-text { font-weight: 500; letter-spacing: 0.5px; }
.detail-addr { font-size: 11px; color: #777; line-height: 1.4; }

/* --- COUNTDOWN --- */
.countdown {
    margin-bottom: 30px;
    opacity: 0; transform: translateY(20px);
}
.countdown.visible {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.16,1,.3,1);
}
.countdown-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px; color: #666; letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 12px;
}
.countdown-grid { display: flex; align-items: center; gap: 6px; }
.countdown-block {
    display: flex; flex-direction: column; align-items: center;
    background: rgba(184,233,134,0.04); border: 1px solid rgba(184,233,134,0.1);
    border-radius: 10px; padding: 12px 16px; min-width: 64px;
}
.countdown-num {
    font-family: 'Inter', sans-serif; font-weight: 900;
    font-size: 28px; color: #b8e986; line-height: 1;
    text-shadow: 0 0 20px rgba(184,233,134,0.3);
}
.countdown-unit {
    font-family: 'Press Start 2P', monospace;
    font-size: 7px; color: #555; margin-top: 4px;
    text-transform: uppercase; letter-spacing: 1px;
}
.countdown-sep {
    font-weight: 700; font-size: 24px; color: rgba(184,233,134,0.3);
    animation: sepBlink 1s ease-in-out infinite; margin-top: -12px;
}
@keyframes sepBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }

/* --- BUY BUTTON --- */
.buy-btn {
    display: inline-flex; align-items: center; justify-content: center;
    position: relative; padding: 18px 48px;
    font-family: 'Press Start 2P', monospace; font-size: 14px;
    color: #0a0a0a;
    background: linear-gradient(135deg, #b8e986, #a4d65e, #c5f09d);
    border: none; border-radius: 12px;
    text-decoration: none; cursor: pointer; overflow: hidden;
    letter-spacing: 2px; text-transform: lowercase;
    box-shadow: 0 4px 20px rgba(184,233,134,0.25), 0 0 40px rgba(184,233,134,0.1);
    opacity: 0; transform: translateY(20px) scale(0.95);
    transition: all 0.35s cubic-bezier(.16,1,.3,1);
}
.buy-btn.visible {
    opacity: 1; transform: translateY(0) scale(1);
    animation: btnPulse 3s ease-in-out infinite 2s;
}
.buy-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 40px rgba(184,233,134,0.4), 0 0 80px rgba(184,233,134,0.2);
    background: linear-gradient(135deg, #c5f09d, #b8e986, #d4ffa8);
}
.buy-btn:active { transform: translateY(0) scale(0.98); }
@keyframes btnPulse {
    0%,100% { box-shadow: 0 4px 20px rgba(184,233,134,0.25), 0 0 40px rgba(184,233,134,0.1); }
    50% { box-shadow: 0 6px 30px rgba(184,233,134,0.4), 0 0 60px rgba(184,233,134,0.2); }
}
.buy-btn-text { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; }

/* --- LIMITED TEXT --- */
.limited-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: #c0354d;
    letter-spacing: 2px;
    margin-top: 18px;
    text-transform: uppercase;
    animation: limitedGlow 2s ease-in-out infinite;
}
@keyframes limitedGlow {
    0%, 100% {
        opacity: 0.7;
        text-shadow: 0 0 8px rgba(192, 53, 77, 0.3);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(192, 53, 77, 0.7), 0 0 40px rgba(192, 53, 77, 0.3);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 850px) {
    .hero { flex-direction: column; gap: 40px; padding: 60px 20px 40px; text-align: center; }
    .poster-wrap { width: 300px; }
    .event-info { display: flex; flex-direction: column; align-items: center; text-align: center; }
    .event-details { align-items: center; }
    .countdown-grid { justify-content: center; }
    .event-title { font-size: clamp(40px, 12vw, 64px); text-align: center; }
    /* Hide some splats on mobile for performance */
    .s3, .s4, .b2, .b3 { display: none; }
    .noise-overlay { display: none; }
}
@media (max-width: 500px) {
    .poster-wrap { width: 260px; }
    .buy-btn { padding: 14px 32px; font-size: 11px; }
    .countdown-block { padding: 10px 12px; min-width: 52px; }
    .countdown-num { font-size: 22px; }
    .event-title { font-size: clamp(32px, 14vw, 48px); text-align: center; }
    /* Hide more splats on small phones */
    .splat { display: none; }
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: rgba(184,233,134,0.2); border-radius: 3px; }
::selection { background: rgba(184,233,134,0.3); color: #fff; }
