/* ===== Baker.RIP — Dark Gothic Theme ===== */

/* CSS Reset & Root Variables */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --text-muted: #666;
    --blood-red: #8b0000;
    --blood-bright: #cc0000;
    --ember-orange: #ff6600;
    --ember-glow: #ff8c00;
    --ghost-green: #00ff88;
    --phantom-purple: #9b59b6;
    --midnight-blue: #1a1a3e;
    --gold: #d4a844;
    --font-display: 'Creepster', cursive;
    --font-body: 'Inter', sans-serif;
    --font-horror: 'Nosifer', cursive;
    --shadow-blood: 0 0 20px rgba(139, 0, 0, 0.5);
    --shadow-ember: 0 0 20px rgba(255, 102, 0, 0.4);
    --shadow-ghost: 0 0 20px rgba(0, 255, 136, 0.3);
    --glow-red: 0 0 10px #cc0000, 0 0 40px rgba(204, 0, 0, 0.3);
    --glow-orange: 0 0 10px #ff6600, 0 0 40px rgba(255, 102, 0, 0.3);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--blood-red) var(--bg-primary);
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--blood-red);
    border-radius: 4px;
}

/* ===== Cursor Trail ===== */
#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

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

.particle {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: floatParticle 15s linear infinite;
    pointer-events: none;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===== Navigation ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
    padding: 0.5rem 0;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(139, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
}

.nav-logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 102, 0, 0.5));
    transition: transform var(--transition-smooth);
}

.nav-logo img:hover {
    transform: scale(1.1) rotate(-5deg);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.5rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blood-red), var(--ember-orange));
    transition: width var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a:hover {
    color: var(--ember-orange);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1100;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.sound-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition-smooth);
}

.sound-toggle:hover {
    background: rgba(139, 0, 0, 0.3);
    border-color: var(--blood-red);
}

/* ===== Hero Section ===== */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    transform: scale(1.1);
    animation: slowZoom 30s ease-in-out infinite alternate;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
}

@keyframes slowZoom {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1.2);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 10, 10, 0.3) 0%,
            rgba(10, 10, 10, 0.1) 40%,
            rgba(10, 10, 10, 0.6) 70%,
            rgba(10, 10, 10, 1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-logo {
    width: min(350px, 70vw);
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 102, 0, 0.6));
    margin-bottom: 1.5rem;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

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

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    color: transparent;
    background: linear-gradient(180deg, #cc0000 0%, #8b0000 60%, #550000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: 4px;
    position: relative;
    filter: drop-shadow(0 0 15px rgba(139, 0, 0, 0.6));
    line-height: 1.3;
}

/* Dripping Blood Effect */
.drip-text {
    position: relative;
    display: inline-block;
}

.drip-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10%;
    width: 6px;
    height: 0;
    background: #8b0000;
    border-radius: 0 0 50% 50%;
    animation: drip1 4s ease-in infinite 1s;
    filter: drop-shadow(0 0 4px rgba(139, 0, 0, 0.8));
}

.drip-text::before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20%;
    width: 5px;
    height: 0;
    background: #aa0000;
    border-radius: 0 0 50% 50%;
    animation: drip2 5s ease-in infinite 2.5s;
    filter: drop-shadow(0 0 4px rgba(139, 0, 0, 0.8));
}

@keyframes drip1 {
    0% {
        height: 0;
        opacity: 1;
    }

    40% {
        height: 35px;
        opacity: 1;
    }

    60% {
        height: 35px;
        opacity: 1;
    }

    100% {
        height: 50px;
        opacity: 0;
    }
}

@keyframes drip2 {
    0% {
        height: 0;
        opacity: 1;
    }

    35% {
        height: 25px;
        opacity: 1;
    }

    55% {
        height: 25px;
        opacity: 1;
    }

    100% {
        height: 40px;
        opacity: 0;
    }
}

/* Lightning Flash Overlay */
.lightning-flash {
    position: fixed;
    inset: 0;
    background: rgba(220, 220, 255, 0.12);
    z-index: 9500;
    pointer-events: none;
    opacity: 0;
}

.lightning-flash.strike {
    animation: lightningStrike 0.6s ease-out;
}

@keyframes lightningStrike {
    0% {
        opacity: 0;
        background: rgba(220, 220, 255, 0.1);
    }

    4% {
        opacity: 1;
        background: rgba(255, 255, 255, 0.35);
    }

    6% {
        opacity: 0.05;
    }

    8% {
        opacity: 0.9;
        background: rgba(200, 200, 255, 0.3);
    }

    12% {
        opacity: 0;
    }

    14% {
        opacity: 0.5;
        background: rgba(180, 180, 255, 0.2);
    }

    20% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Rain Canvas */
#rain-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 90;
    pointer-events: none;
    opacity: 0.4;
}

/* Crawling Spiders */
.crawling-spider {
    position: fixed;
    font-size: 22px;
    z-index: 100;
    pointer-events: none;
    transition: none;
    will-change: transform, left, top;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}


.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--blood-red), #5c0000);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: 2px;
    border: 2px solid var(--blood-bright);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--ember-orange), var(--blood-red), var(--phantom-purple));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-blood), 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--ember-orange);
}

.cta-button:hover::before {
    opacity: 1;
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(139, 0, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(139, 0, 0, 0.8), 0 0 40px rgba(255, 102, 0, 0.3);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: float 2s ease-in-out infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--ember-orange);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0;
    }
}

/* ===== Sections ===== */
.section {
    padding: 6rem 2rem;
    position: relative;
}

.section-dark {
    background: var(--bg-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--ember-orange);
    text-shadow: var(--glow-orange);
    letter-spacing: 3px;
}

.title-decoration {
    display: inline-block;
    margin: 0 0.5rem;
    animation: flickerIcon 3s infinite;
}

@keyframes flickerIcon {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        opacity: 1;
    }

    20%,
    24%,
    55% {
        opacity: 0.4;
    }
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* ===== Scroll Reveal Animations ===== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0);
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lore-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.lore-text em {
    color: var(--blood-bright);
    font-style: italic;
}

.lore-text strong {
    color: var(--ember-orange);
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 0, 0, 0.3);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--ember-orange);
    text-shadow: var(--glow-orange);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(139, 0, 0, 0.5);
}

.image-frame img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

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

.frame-glow {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 30px rgba(139, 0, 0, 0.3);
    pointer-events: none;
}

/* ===== Countdown ===== */
.countdown-subtitle {
    font-family: var(--font-display);
    font-size: 1.3rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.time-block {
    text-align: center;
    background: rgba(139, 0, 0, 0.15);
    border: 1px solid rgba(139, 0, 0, 0.4);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    min-width: 110px;
    position: relative;
    overflow: hidden;
}

.time-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.time-number {
    display: block;
    font-family: var(--font-horror);
    font-size: 3rem;
    color: var(--ember-orange);
    text-shadow: var(--glow-orange);
    letter-spacing: 3px;
}

.flicker {
    animation: textFlicker 4s infinite;
}

@keyframes textFlicker {

    0%,
    19.999%,
    22%,
    62.999%,
    64%,
    64.999%,
    70%,
    100% {
        opacity: 1;
        text-shadow: var(--glow-orange);
    }

    20%,
    21.999%,
    63%,
    63.999%,
    65%,
    69.999% {
        opacity: 0.6;
        text-shadow: none;
    }
}

.time-label {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    display: block;
}

.time-separator {
    font-family: var(--font-horror);
    font-size: 3rem;
    color: var(--blood-red);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.countdown-tagline {
    font-family: var(--font-display);
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 1px;
}

/* ===== Scare Zones ===== */
.zones-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.zone-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(139, 0, 0, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
}

.zone-card:hover {
    transform: translateY(-8px);
    border-color: var(--ember-orange);
    box-shadow: var(--shadow-ember), 0 20px 40px rgba(0, 0, 0, 0.5);
}

.zone-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.zone-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.zone-card:hover .zone-image img {
    transform: scale(1.15);
}

.zone-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 10, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.zone-card:hover .zone-overlay {
    opacity: 1;
}

.zone-icon {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(255, 102, 0, 0.8));
    animation: float 2s ease-in-out infinite;
}

.zone-info {
    padding: 1.5rem;
}

.zone-info h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--ember-orange);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.zone-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.scare-rating {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--blood-bright);
    letter-spacing: 1px;
}

/* ===== Games Section ===== */
.game-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.game-tab {
    font-family: var(--font-display);
    font-size: 1.2rem;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 2px solid rgba(139, 0, 0, 0.3);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    letter-spacing: 1px;
}

.game-tab:hover {
    border-color: var(--ember-orange);
    color: var(--ember-orange);
}

.game-tab.active {
    background: linear-gradient(135deg, var(--blood-red), #5c0000);
    border-color: var(--blood-bright);
    color: var(--text-primary);
    box-shadow: var(--shadow-blood);
}

.game-panel {
    display: none;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(139, 0, 0, 0.3);
    animation: fadeIn 0.4s ease;
}

.game-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.game-header h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--ember-orange);
    margin-bottom: 0.5rem;
}

.game-header p {
    color: var(--text-secondary);
}

.game-btn {
    font-family: var(--font-display);
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--blood-red), #5c0000);
    color: var(--text-primary);
    border: 2px solid var(--blood-bright);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    letter-spacing: 1px;
}

.game-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-blood);
    border-color: var(--ember-orange);
}

/* Ghost Hunt */
.ghost-hunt-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.gh-stat {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-secondary);
}

.gh-stat span {
    color: var(--ember-orange);
    text-shadow: var(--glow-orange);
}

.ghost-hunt-arena {
    position: relative;
    width: 100%;
    height: 350px;
    background: radial-gradient(ellipse at center, rgba(26, 26, 62, 0.5) 0%, rgba(10, 10, 10, 0.9) 100%);
    border-radius: 12px;
    border: 1px solid rgba(139, 0, 0, 0.3);
    overflow: hidden;
    cursor: crosshair;
}

.arena-message {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 5;
}

.ghost-sprite {
    position: absolute;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: opacity 0.2s;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    animation: ghostFloat 1s ease-in-out infinite alternate;
    z-index: 3;
}

.ghost-sprite img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes ghostFloat {
    from {
        transform: translateY(-5px) scale(1);
    }

    to {
        transform: translateY(5px) scale(1.05);
    }
}

.ghost-sprite.caught {
    animation: ghostCaught 0.3s ease-out forwards;
}

@keyframes ghostCaught {
    to {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* Fortune Teller */
.fortune-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.crystal-ball {
    position: relative;
    width: 200px;
    height: 200px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.crystal-ball:hover {
    transform: scale(1.1);
}

.crystal-ball img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.crystal-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.4) 0%, transparent 70%);
    animation: crystalPulse 3s ease-in-out infinite;
}

@keyframes crystalPulse {

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

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

.crystal-mist {
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    animation: mistSwirl 5s ease-in-out infinite;
    z-index: 1;
}

@keyframes mistSwirl {

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

    50% {
        transform: rotate(180deg) scale(1.3);
    }
}

.fortune-card {
    width: 320px;
    height: 180px;
    perspective: 1000px;
}

.fortune-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.fortune-card.flipped .fortune-card-inner {
    transform: rotateY(180deg);
}

.fortune-front,
.fortune-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
}

.fortune-front {
    background: linear-gradient(135deg, var(--midnight-blue), rgba(155, 89, 182, 0.3));
    border: 1px solid rgba(155, 89, 182, 0.5);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.fortune-back {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.5), var(--midnight-blue));
    border: 1px solid var(--blood-red);
    transform: rotateY(180deg);
}

#fortuneText {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--ember-orange);
    text-shadow: var(--glow-orange);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.fortune-again {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Door of Dread */
.doors-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.door {
    width: 180px;
    height: 280px;
    perspective: 800px;
    cursor: pointer;
}

.door-frame {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.door.opened .door-frame {
    transform: rotateY(-120deg);
}

.door-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.door-front {
    background: linear-gradient(180deg, #3a2a1a 0%, #2a1a0a 100%);
    border: 3px solid #5a3a1a;
    border-radius: 12px 12px 0 0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

.door-number {
    font-family: var(--font-horror);
    font-size: 2.5rem;
    color: var(--ember-orange);
    text-shadow: var(--glow-orange);
    margin-bottom: 1rem;
}

.door-handle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, #c8a832, #8a6a1a);
    border: 2px solid #5a4a1a;
    position: absolute;
    right: 20px;
    top: 50%;
    box-shadow: 0 0 10px rgba(200, 168, 50, 0.3);
}

.door-crack {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, rgba(255, 102, 0, 0.3), rgba(255, 102, 0, 0.1), transparent);
    animation: doorCrackGlow 3s ease-in-out infinite;
}

@keyframes doorCrackGlow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.door-behind {
    background: #0a0a0a;
    border: 3px solid #333;
    border-radius: 12px 12px 0 0;
    transform: rotateY(180deg);
}

.door-reveal {
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;
}

.door:hover .door-front {
    box-shadow: inset 0 0 30px rgba(255, 102, 0, 0.3), 0 0 20px rgba(139, 0, 0, 0.5);
}

.door-result {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.3rem;
    min-height: 2em;
    padding: 1rem;
}

/* Jumpscare */
.jumpscare-overlay {
    position: fixed;
    inset: 0;
    background: rgba(139, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: jumpscareShake 0.5s;
}

.jumpscare-overlay.active {
    display: flex;
}

@keyframes jumpscareShake {

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

    10% {
        transform: translate(-10px, 10px);
    }

    20% {
        transform: translate(10px, -10px);
    }

    30% {
        transform: translate(-10px, -10px);
    }

    40% {
        transform: translate(10px, 10px);
    }

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

    60% {
        transform: translate(5px, -5px);
    }

    70% {
        transform: translate(-5px, -5px);
    }

    80% {
        transform: translate(5px, 5px);
    }

    90% {
        transform: translate(-3px, 3px);
    }
}

.jumpscare-emoji {
    font-size: 15rem;
    animation: jumpscarePop 0.3s ease-out;
}

@keyframes jumpscarePop {
    from {
        transform: scale(5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== Interact Section ===== */
.interact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.interact-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(139, 0, 0, 0.3);
}

.interact-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--ember-orange);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.interact-card>p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Scare-O-Meter */
.skull-rating {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.skull {
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: grayscale(1) opacity(0.4);
}

.skull:hover,
.skull.active {
    filter: grayscale(0) opacity(1);
    transform: scale(1.2);
}

.skull.active {
    filter: grayscale(0) opacity(1) drop-shadow(0 0 8px rgba(255, 102, 0, 0.8));
}

.rating-result {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.rating-result strong {
    color: var(--ember-orange);
    font-size: 1.3rem;
}

/* Guestbook */
.guestbook-entries {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: 0.5rem;
}

.gb-entry {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
    animation: fadeIn 0.5s ease;
}

.gb-entry:last-child {
    border-bottom: none;
}

.gb-name {
    font-family: var(--font-display);
    color: var(--ember-orange);
    font-size: 1rem;
    letter-spacing: 1px;
}

.gb-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    font-style: italic;
}

.guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.guestbook-form input,
.guestbook-form textarea {
    font-family: var(--font-body);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color var(--transition-smooth);
    resize: none;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
    outline: none;
    border-color: var(--ember-orange);
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.2);
}

.guestbook-form input::placeholder,
.guestbook-form textarea::placeholder {
    color: var(--text-muted);
}

/* ===== Info Section ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(139, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--ember-orange);
    box-shadow: var(--shadow-ember);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--ember-orange);
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.info-card strong {
    color: var(--text-primary);
}

.info-note {
    margin-top: 0.5rem;
    font-size: 0.8rem !important;
    color: var(--ember-orange) !important;
    font-style: italic;
}

/* Social Links */
.social-links {
    text-align: center;
}

.social-links h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(139, 0, 0, 0.4);
    color: var(--text-secondary);
    transition: all var(--transition-smooth);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--blood-red);
    border-color: var(--ember-orange);
    color: var(--text-primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-blood);
}

/* ===== Footer ===== */
#footer {
    padding: 3rem 2rem;
    text-align: center;
    background: #050505;
    border-top: 1px solid rgba(139, 0, 0, 0.3);
}

.footer-logo {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
    opacity: 0.7;
    filter: grayscale(0.3);
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--blood-red);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0.6;
}

/* ===== Mobile Responsive ===== */

/* Hide cursor trail on touch devices */
@media (hover: none),
(pointer: coarse) {
    #cursor-trail {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(139, 0, 0, 0.3);
        z-index: 1050;
        overflow-y: auto;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.3rem;
        padding: 0.75rem 0;
    }

    #hero {
        min-height: 100svh;
    }

    .hero-logo {
        width: min(260px, 60vw);
    }

    .hero-title {
        font-size: clamp(1.3rem, 4.5vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: clamp(0.85rem, 2.2vw, 1.2rem);
    }

    .cta-button {
        font-size: 1.1rem;
        padding: 0.85rem 2rem;
    }

    .section {
        padding: 4rem 1.25rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .zones-grid {
        grid-template-columns: 1fr;
    }

    .zone-image {
        height: 180px;
    }

    .interact-grid {
        grid-template-columns: 1fr;
    }

    .interact-card {
        padding: 1.5rem;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-card {
        padding: 1.5rem 1rem;
    }

    /* Games — mobile-friendly touch targets */
    .doors-container {
        gap: 1rem;
    }

    .door {
        width: 28vw;
        max-width: 140px;
        height: 45vw;
        max-height: 220px;
    }

    .ghost-hunt-arena {
        height: 260px;
    }

    .ghost-sprite {
        width: 55px;
        height: 55px;
    }

    .skull {
        font-size: 2.8rem;
        padding: 0.25rem;
    }

    .game-btn {
        font-size: 1.1rem;
        padding: 0.85rem 1.8rem;
        min-height: 48px;
    }

    .game-tab {
        font-size: 1rem;
        padding: 0.6rem 1.4rem;
        min-height: 44px;
    }

    .game-panel {
        padding: 1.5rem 1rem;
    }

    .countdown-timer {
        gap: 0.5rem;
    }

    .time-block {
        padding: 1rem 1rem;
        min-width: 72px;
    }

    .time-number {
        font-size: 1.8rem;
    }

    .time-separator {
        font-size: 1.8rem;
    }

    /* Ensure form inputs are big enough to tap */
    .guestbook-form input,
    .guestbook-form textarea {
        font-size: 1rem;
        padding: 0.85rem 1rem;
        min-height: 44px;
    }

    .crystal-ball {
        width: 160px;
        height: 160px;
    }

    .fortune-card {
        width: 280px;
        height: 160px;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 4rem 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .ghost-hunt-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .fortune-card {
        width: 280px;
        height: 160px;
    }

    .door {
        width: 110px;
        height: 180px;
    }

    .door-number {
        font-size: 1.8rem;
    }

    .game-tabs {
        gap: 0.5rem;
    }

    .game-tab {
        font-size: 1rem;
        padding: 0.5rem 1.2rem;
    }

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

/* ===== Zoltar Chat Widget (button only) ===== */
#zoltar-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9000;
    width: 60px;
    height: 60px;
}

#vapi-container {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 50%;
}

/* Force Vapi SDK container content to stay small */
#vapi-container>div,
#vapi-container iframe {
    max-width: 60px !important;
    max-height: 60px !important;
    overflow: hidden !important;
}

/* Zoltar nav link highlight */
.zoltar-nav {
    color: var(--phantom-purple) !important;
}

.zoltar-nav:hover {
    color: var(--ember-orange) !important;
}

.zoltar-nav::after {
    background: linear-gradient(90deg, var(--phantom-purple), var(--ember-orange)) !important;
}

@media (max-width: 600px) {
    #zoltar-widget {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }

    #vapi-container {
        width: 50px;
        height: 50px;
    }
}