:root {
    /* Default color palette */
    --primary-glow: rgba(255, 255, 255, 0.8);
    --secondary-glow: rgba(200, 200, 200, 0.4);
    --accent-glow: rgba(180, 180, 180, 0.3);
    --light-overlay: rgba(255, 255, 255, 0.8);
    --light-secondary: rgba(255, 255, 200, 0.4);
    --debris-color: rgba(255, 255, 255, 0.8);
    --debris-glow: rgba(255, 255, 255, 0.5);
    --nail-glow-1: rgba(255, 255, 255, 0.8);
    --nail-glow-2: rgba(200, 200, 200, 0.6);
    --nail-glow-3: rgba(180, 180, 180, 0.4);
    --filter-overlay: none;
}

/* Color themes for different tracks */
.theme-mourning {
    --primary-glow: rgba(150, 200, 255, 0.8);
    --secondary-glow: rgba(100, 150, 200, 0.5);
    --accent-glow: rgba(80, 120, 180, 0.4);
    --light-overlay: rgba(180, 220, 255, 0.7);
    --light-secondary: rgba(150, 200, 255, 0.4);
    --debris-color: rgba(180, 220, 255, 0.8);
    --debris-glow: rgba(150, 200, 255, 0.5);
    --nail-glow-1: rgba(150, 200, 255, 0.9);
    --nail-glow-2: rgba(100, 150, 200, 0.7);
    --nail-glow-3: rgba(80, 120, 180, 0.5);
    --filter-overlay: rgba(100, 150, 200, 0.1);
}

.theme-burn {
    --primary-glow: rgba(255, 150, 80, 0.8);
    --secondary-glow: rgba(220, 120, 60, 0.5);
    --accent-glow: rgba(200, 100, 40, 0.4);
    --light-overlay: rgba(255, 180, 100, 0.8);
    --light-secondary: rgba(255, 150, 80, 0.4);
    --debris-color: rgba(255, 180, 100, 0.8);
    --debris-glow: rgba(255, 150, 80, 0.5);
    --nail-glow-1: rgba(255, 150, 80, 0.9);
    --nail-glow-2: rgba(220, 120, 60, 0.7);
    --nail-glow-3: rgba(200, 100, 40, 0.5);
    --filter-overlay: rgba(220, 120, 60, 0.1);
}

.theme-evil {
    --primary-glow: rgba(200, 50, 50, 0.8);
    --secondary-glow: rgba(150, 30, 30, 0.5);
    --accent-glow: rgba(120, 20, 20, 0.4);
    --light-overlay: rgba(220, 80, 80, 0.7);
    --light-secondary: rgba(200, 50, 50, 0.4);
    --debris-color: rgba(220, 80, 80, 0.8);
    --debris-glow: rgba(200, 50, 50, 0.5);
    --nail-glow-1: rgba(200, 50, 50, 0.9);
    --nail-glow-2: rgba(150, 30, 30, 0.7);
    --nail-glow-3: rgba(120, 20, 20, 0.5);
    --filter-overlay: rgba(150, 30, 30, 0.1);
}

.theme-suburbs {
    --primary-glow: rgba(255, 220, 150, 0.8);
    --secondary-glow: rgba(200, 180, 120, 0.5);
    --accent-glow: rgba(180, 160, 100, 0.4);
    --light-overlay: rgba(255, 240, 180, 0.7);
    --light-secondary: rgba(255, 220, 150, 0.4);
    --debris-color: rgba(255, 240, 180, 0.8);
    --debris-glow: rgba(255, 220, 150, 0.5);
    --nail-glow-1: rgba(255, 220, 150, 0.9);
    --nail-glow-2: rgba(200, 180, 120, 0.7);
    --nail-glow-3: rgba(180, 160, 100, 0.5);
    --filter-overlay: rgba(200, 180, 120, 0.1);
}

.theme-split {
    --primary-glow: rgba(180, 100, 200, 0.8);
    --secondary-glow: rgba(140, 70, 160, 0.5);
    --accent-glow: rgba(120, 50, 140, 0.4);
    --light-overlay: rgba(200, 120, 220, 0.7);
    --light-secondary: rgba(180, 100, 200, 0.4);
    --debris-color: rgba(200, 120, 220, 0.8);
    --debris-glow: rgba(180, 100, 200, 0.5);
    --nail-glow-1: rgba(180, 100, 200, 0.9);
    --nail-glow-2: rgba(140, 70, 160, 0.7);
    --nail-glow-3: rgba(120, 50, 140, 0.5);
    --filter-overlay: rgba(140, 70, 160, 0.1);
}

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

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    /* Use dynamic viewport height so iOS toolbars don't hide the bottom */
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 100svh;
    min-height: 100dvh;
    width: 100vw;
    overflow: hidden;
    background: url('https://campaign.network/wp-content/uploads/2025/06/asdasd-scaled.png') center/cover no-repeat;
    background-size: cover;
    background-color: #000;
    position: relative;
    transition: all 1s ease-in-out;
    /* Prevent iOS bounce scrolling and ensure proper mobile viewport */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

/* Bio intro overlay styles moved to bio-themes.css to avoid conflicts */

/* Bio-paper styles moved to bio-themes.css to avoid conflicts */

/* Smoke wisps and tendrils */
.bio-paper::before {
    content: '';
    position: absolute;
    top: -30px;
    right: 40px;
    width: 200px;
    height: 120px;
    background: 
        radial-gradient(ellipse 120px 70px at 40% 60%, rgba(120, 120, 120, 0.2) 0%, rgba(80, 80, 80, 0.15) 40%, transparent 80%),
        radial-gradient(ellipse 90px 50px at 70% 30%, rgba(100, 100, 100, 0.18) 0%, rgba(60, 60, 60, 0.12) 50%, transparent 90%);
    border-radius: 60% 40% 80% 20% / 50% 70% 30% 50%;
    animation: smokeWisp1 20s ease-in-out infinite;
    opacity: 0.6;
}

.bio-paper::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 60px;
    width: 180px;
    height: 100px;
    background: 
        radial-gradient(ellipse 110px 60px at 50% 50%, rgba(130, 130, 130, 0.25) 0%, rgba(90, 90, 90, 0.18) 50%, transparent 85%),
        radial-gradient(ellipse 80px 80px at 30% 70%, rgba(110, 110, 110, 0.2) 0%, rgba(70, 70, 70, 0.15) 40%, transparent 80%);
    border-radius: 70% 30% 50% 50% / 40% 60% 50% 40%;
    animation: smokeWisp2 18s ease-in-out infinite reverse;
    opacity: 0.5;
}

/* Bio title, text, and click-to-enter styles moved to bio-themes.css to avoid conflicts */

/* Smoke animations */
@keyframes smokeFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        filter: blur(1px) contrast(1.1) brightness(0.8) saturate(0.3);
    }
    25% {
        transform: translateY(-3px) scale(1.01);
        filter: blur(1.2px) contrast(1.05) brightness(0.82) saturate(0.25);
    }
    50% {
        transform: translateY(-5px) scale(1.02);
        filter: blur(0.8px) contrast(1.15) brightness(0.78) saturate(0.35);
    }
    75% {
        transform: translateY(-2px) scale(1.01);
        filter: blur(1.1px) contrast(1.08) brightness(0.81) saturate(0.28);
    }
}

@keyframes smokeWisp1 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-10px) translateX(5px) rotate(2deg) scale(1.1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-15px) translateX(-3px) rotate(-1deg) scale(1.2);
        opacity: 0.2;
    }
    75% {
        transform: translateY(-8px) translateX(8px) rotate(3deg) scale(1.05);
        opacity: 0.35;
    }
}

@keyframes smokeWisp2 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.35;
    }
    30% {
        transform: translateY(8px) translateX(-6px) rotate(-2deg) scale(1.15);
        opacity: 0.25;
    }
    60% {
        transform: translateY(12px) translateX(4px) rotate(1deg) scale(1.3);
        opacity: 0.15;
    }
    80% {
        transform: translateY(5px) translateX(-8px) rotate(-3deg) scale(1.1);
        opacity: 0.3;
    }
}

@keyframes smokePulse {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
        text-shadow: 
            0px 0px 8px rgba(255, 255, 255, 0.3),
            2px 2px 4px rgba(0, 0, 0, 0.9),
            0px 0px 15px rgba(255, 255, 255, 0.2);
    }
    50% {
        opacity: 1;
        transform: scale(1.01);
        text-shadow: 
            0px 0px 12px rgba(255, 255, 255, 0.4),
            2px 2px 6px rgba(0, 0, 0, 0.95),
            0px 0px 20px rgba(255, 255, 255, 0.25);
    }
}

@keyframes titleWrite {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes underlineGrow {
    0% {
        width: 0%;
        opacity: 0;
    }
    100% {
        width: 60%;
        opacity: 1;
    }
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bioFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Realistic spider */
.spider {
    position: fixed;
    width: 18px;
    height: 12px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Spider cephalothorax (front body segment) */
.spider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 2px;
    width: 6px;
    height: 4px;
    background: 
        radial-gradient(ellipse 60% 40% at 30% 30%, var(--spider-body-color, #3a3a3a) 0%, var(--spider-body-color, #2a2a2a) 40%, #1a1a1a 100%),
        linear-gradient(45deg, var(--spider-body-color, #2a2a2a) 0%, #1a1a1a 100%);
    border-radius: 70% 30% 40% 60%;
    box-shadow: 
        /* Realistic eyes - 8 tiny dots */
        1px 0.5px 0 0.3px var(--spider-eye-color, #660000),
        2px 0.5px 0 0.3px var(--spider-eye-color, #660000),
        1.5px 1px 0 0.3px var(--spider-eye-color, #440000),
        2.5px 1px 0 0.3px var(--spider-eye-color, #440000),
        /* Body depth shadow */
        inset 0 -1px 1px rgba(0,0,0,0.6),
        0 1px 1px rgba(0,0,0,0.4);
    pointer-events: none;
}

/* Spider abdomen (back body segment) */
.spider::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 7px;
    width: 9px;
    height: 6px;
    background: 
        radial-gradient(ellipse 70% 50% at 40% 30%, var(--spider-abdomen-color, #2a2a2a) 0%, var(--spider-abdomen-color, #1a1a1a) 60%, #0a0a0a 100%),
        linear-gradient(135deg, var(--spider-abdomen-color, #1a1a1a) 0%, #0a0a0a 100%);
    border-radius: 40% 60% 70% 30%;
    box-shadow: 
        /* Abdomen markings */
        inset 1px 1px 0 0.5px rgba(60,60,60,0.3),
        inset -1px -1px 0 0.5px rgba(0,0,0,0.8),
        /* Natural shadow */
        0 1px 2px rgba(0,0,0,0.5);
    pointer-events: none;
}

/* Realistic spider legs */
.spider-leg {
    position: absolute;
    width: 0.8px;
    height: 12px;
    background: linear-gradient(to bottom, var(--spider-leg-color, #2a2a2a) 0%, var(--spider-leg-color, #1a1a1a) 50%, #0a0a0a 100%);
    transform-origin: top center;
    pointer-events: none;
    border-radius: 0.4px;
    box-shadow: 0 0 0.5px rgba(0,0,0,0.8);
}

/* Leg segments (femur) */
.spider-leg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -0.2px;
    width: 1.2px;
    height: 6px;
    background: linear-gradient(to bottom, var(--spider-leg-color, #2a2a2a) 0%, var(--spider-leg-color, #1a1a1a) 100%);
    border-radius: 0.6px;
    transform-origin: top center;
}

/* Leg segments (tibia) */
.spider-leg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -0.1px;
    width: 1px;
    height: 6px;
    background: linear-gradient(to bottom, var(--spider-leg-color, #1a1a1a) 0%, #0a0a0a 100%);
    border-radius: 0.5px;
    transform-origin: top center;
}

/* Realistic leg positioning - based on actual spider anatomy */
.spider-leg:nth-child(1) { top: 4px; left: 3px; transform: rotate(-45deg); } /* Front left */
.spider-leg:nth-child(2) { top: 5px; left: 2px; transform: rotate(-75deg); } /* Mid-front left */
.spider-leg:nth-child(3) { top: 6px; left: 2px; transform: rotate(-105deg); } /* Mid-back left */
.spider-leg:nth-child(4) { top: 7px; left: 3px; transform: rotate(-135deg); } /* Back left */
.spider-leg:nth-child(5) { top: 4px; right: 3px; transform: rotate(45deg); } /* Front right */
.spider-leg:nth-child(6) { top: 5px; right: 2px; transform: rotate(75deg); } /* Mid-front right */
.spider-leg:nth-child(7) { top: 6px; right: 2px; transform: rotate(105deg); } /* Mid-back right */
.spider-leg:nth-child(8) { top: 7px; right: 3px; transform: rotate(135deg); } /* Back right */

/* Natural spider walking animation */
@keyframes spiderLegWalk {
    0% { transform: rotate(var(--start-angle)); }
    25% { transform: rotate(calc(var(--start-angle) + var(--lift-angle))); }
    50% { transform: rotate(calc(var(--start-angle) + var(--forward-angle))); }
    75% { transform: rotate(calc(var(--start-angle) + var(--step-angle))); }
    100% { transform: rotate(var(--start-angle)); }
}

/* Realistic leg movement patterns - spiders move legs in pairs */
.spider.crawling-right .spider-leg:nth-child(1) { 
    --start-angle: -45deg; --lift-angle: -15deg; --forward-angle: 5deg; --step-angle: -5deg;
    animation: spiderLegWalk 0.4s infinite;
}
.spider.crawling-right .spider-leg:nth-child(2) { 
    --start-angle: -75deg; --lift-angle: -10deg; --forward-angle: 8deg; --step-angle: -3deg;
    animation: spiderLegWalk 0.4s infinite 0.2s;
}
.spider.crawling-right .spider-leg:nth-child(3) { 
    --start-angle: -105deg; --lift-angle: 10deg; --forward-angle: -8deg; --step-angle: 3deg;
    animation: spiderLegWalk 0.4s infinite 0.2s;
}
.spider.crawling-right .spider-leg:nth-child(4) { 
    --start-angle: -135deg; --lift-angle: 15deg; --forward-angle: -5deg; --step-angle: 5deg;
    animation: spiderLegWalk 0.4s infinite;
}
.spider.crawling-right .spider-leg:nth-child(5) { 
    --start-angle: 45deg; --lift-angle: 15deg; --forward-angle: -5deg; --step-angle: 5deg;
    animation: spiderLegWalk 0.4s infinite 0.1s;
}
.spider.crawling-right .spider-leg:nth-child(6) { 
    --start-angle: 75deg; --lift-angle: 10deg; --forward-angle: -8deg; --step-angle: 3deg;
    animation: spiderLegWalk 0.4s infinite 0.3s;
}
.spider.crawling-right .spider-leg:nth-child(7) { 
    --start-angle: 105deg; --lift-angle: -10deg; --forward-angle: 8deg; --step-angle: -3deg;
    animation: spiderLegWalk 0.4s infinite 0.3s;
}
.spider.crawling-right .spider-leg:nth-child(8) { 
    --start-angle: 135deg; --lift-angle: -15deg; --forward-angle: 5deg; --step-angle: -5deg;
    animation: spiderLegWalk 0.4s infinite 0.1s;
}

.spider.crawling-left .spider-leg:nth-child(1) { 
    --start-angle: -45deg; --lift-angle: 15deg; --forward-angle: -5deg; --step-angle: 5deg;
    animation: spiderLegWalk 0.4s infinite;
}
.spider.crawling-left .spider-leg:nth-child(2) { 
    --start-angle: -75deg; --lift-angle: 10deg; --forward-angle: -8deg; --step-angle: 3deg;
    animation: spiderLegWalk 0.4s infinite 0.2s;
}
.spider.crawling-left .spider-leg:nth-child(3) { 
    --start-angle: -105deg; --lift-angle: -10deg; --forward-angle: 8deg; --step-angle: -3deg;
    animation: spiderLegWalk 0.4s infinite 0.2s;
}
.spider.crawling-left .spider-leg:nth-child(4) { 
    --start-angle: -135deg; --lift-angle: -15deg; --forward-angle: 5deg; --step-angle: -5deg;
    animation: spiderLegWalk 0.4s infinite;
}
.spider.crawling-left .spider-leg:nth-child(5) { 
    --start-angle: 45deg; --lift-angle: -15deg; --forward-angle: 5deg; --step-angle: -5deg;
    animation: spiderLegWalk 0.4s infinite 0.1s;
}
.spider.crawling-left .spider-leg:nth-child(6) { 
    --start-angle: 75deg; --lift-angle: -10deg; --forward-angle: 8deg; --step-angle: -3deg;
    animation: spiderLegWalk 0.4s infinite 0.3s;
}
.spider.crawling-left .spider-leg:nth-child(7) { 
    --start-angle: 105deg; --lift-angle: 10deg; --forward-angle: -8deg; --step-angle: 3deg;
    animation: spiderLegWalk 0.4s infinite 0.3s;
}
.spider.crawling-left .spider-leg:nth-child(8) { 
    --start-angle: 135deg; --lift-angle: 15deg; --forward-angle: -5deg; --step-angle: 5deg;
    animation: spiderLegWalk 0.4s infinite 0.1s;
}

.spider:hover {
    transform: scale(1.2);
}

.spider.visible {
    opacity: 1;
}

.spider.crawling-right {
    animation: spiderCrawlRight 15s linear forwards;
}

.spider.crawling-left {
    animation: spiderCrawlLeft 15s linear forwards;
}

/* Subtle body movement while crawling */
.spider.crawling-right::before,
.spider.crawling-left::before {
    animation: spiderBodySway 0.8s ease-in-out infinite;
}

.spider.crawling-right::after,
.spider.crawling-left::after {
    animation: spiderAbdomenSway 0.8s ease-in-out infinite 0.1s;
}

@keyframes spiderBodySway {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-0.3px) rotate(0.5deg); }
}

@keyframes spiderAbdomenSway {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-0.2px) rotate(-0.3deg); }
}

/* Spider crawling animations */
@keyframes spiderCrawlRight {
    0% { 
        left: -50px; 
        opacity: 1;
    }
    10% { 
        opacity: 1;
    }
    90% { 
        opacity: 1;
    }
    100% { 
        left: calc(100vw + 50px); 
        opacity: 0;
    }
}

@keyframes spiderCrawlLeft {
    0% { 
        right: -50px; 
        opacity: 1;
    }
    10% { 
        opacity: 1;
    }
    90% { 
        opacity: 1;
    }
    100% { 
        right: calc(100vw + 50px); 
        opacity: 0;
    }
}



/* Date popup */
.spider-date {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: #ff4444;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid #ff4444;
    text-shadow: 0 0 5px #ff4444;
}

.spider-date.show {
    opacity: 1;
    transform: translateY(0);
}

/* Color overlay for theme transitions */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--filter-overlay);
    pointer-events: none;
    z-index: 0;
    transition: background 1s ease-in-out;
}

.album-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 100svh;
    min-height: 100dvh;
}

/* iOS WebKit tweak: ensure small-viewport fit when toolbars are present */
@supports (-webkit-touch-callout: none) {
  html, body { 
    height: 100svh; 
    min-height: 100svh;
    /* iOS specific fixes to prevent white space */
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
  }
  .album-container { 
    height: 100svh; 
    min-height: 100svh;
    position: relative;
    overflow: hidden;
  }
}

/* Additional mobile browser fixes */
@media screen and (max-width: 768px) {
  /* Prevent any potential white space on mobile */
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  html {
    /* Prevent iOS Safari from showing white bars */
    background-color: #000 !important;
    overflow: hidden;
  }
  
  body {
    /* Ensure body covers full screen */
    background-color: #000 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
  }
}

/* Flickering lights at the top */
.light-overlay {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--light-overlay) 0%, var(--light-secondary) 30%, transparent 70%);
    pointer-events: none;
    z-index: 2;
    transition: background 1s ease-in-out;
}

.light-left {
    top: clamp(8%, 10vh, 15%);
    left: clamp(5%, 15vw, 25%);
    width: clamp(3%, 4vw, 6%);
    height: clamp(3%, 4vw, 6%);
    max-width: 100px;
    max-height: 100px;
    min-width: 40px;
    min-height: 40px;
    animation: flickerLeft 3s infinite ease-in-out;
}

.light-right {
    top: clamp(8%, 10vh, 15%);
    right: clamp(5%, 15vw, 25%);
    width: clamp(3%, 4vw, 6%);
    height: clamp(3%, 4vw, 6%);
    max-width: 100px;
    max-height: 100px;
    min-width: 40px;
    min-height: 40px;
    animation: flickerRight 4s infinite ease-in-out;
}

/* Animated nails/spikes - positioned exactly as shown in image */
/* Static nail bed */
.nail-container {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 22%;
    height: 8%;
    max-width: 350px;
    max-height: 120px;
    min-width: 200px;
    min-height: 80px;
    pointer-events: none;
    z-index: 2;
}

.nail {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, rgba(100, 100, 100, 0.8), rgba(60, 60, 60, 0.9));
    border-radius: 1px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    animation: nailSway 6s infinite ease-in-out;
}

.nail:nth-child(1) { left: 10%; height: 25px; animation-delay: 0s; }
.nail:nth-child(2) { left: 15%; height: 30px; animation-delay: 0.5s; }
.nail:nth-child(3) { left: 20%; height: 28px; animation-delay: 1s; }
.nail:nth-child(4) { left: 25%; height: 32px; animation-delay: 1.5s; }
.nail:nth-child(5) { left: 30%; height: 26px; animation-delay: 2s; }
.nail:nth-child(6) { left: 35%; height: 35px; animation-delay: 2.5s; }
.nail:nth-child(7) { left: 40%; height: 29px; animation-delay: 3s; }
.nail:nth-child(8) { left: 45%; height: 33px; animation-delay: 3.5s; }
.nail:nth-child(9) { left: 50%; height: 31px; animation-delay: 4s; }
.nail:nth-child(10) { left: 55%; height: 27px; animation-delay: 4.5s; }
.nail:nth-child(11) { left: 60%; height: 34px; animation-delay: 5s; }
.nail:nth-child(12) { left: 65%; height: 28px; animation-delay: 5.5s; }
.nail:nth-child(13) { left: 70%; height: 30px; animation-delay: 0.8s; }
.nail:nth-child(14) { left: 75%; height: 26px; animation-delay: 1.3s; }
.nail:nth-child(15) { left: 80%; height: 32px; animation-delay: 1.8s; }
.nail:nth-child(16) { left: 85%; height: 29px; animation-delay: 2.3s; }

@keyframes nailSway {
    0%, 100% {
        transform: rotate(0deg) translateY(0px);
        opacity: 0.8;
    }
    25% {
        transform: rotate(1deg) translateY(-2px);
        opacity: 0.9;
    }
    50% {
        transform: rotate(-0.5deg) translateY(-1px);
        opacity: 0.7;
    }
    75% {
        transform: rotate(0.8deg) translateY(-3px);
        opacity: 0.8;
    }
}

/* Floating interactive nails */
.floating-nails {
    position: absolute;
    bottom: 26%;
    left: 50%;
    transform: translateX(-50%);
    width: 22%;
    height: 15%;
    max-width: 350px;
    max-height: 150px;
    min-width: 200px;
    min-height: 100px;
    pointer-events: auto;
    z-index: 2;
}

.floating-nail {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, rgba(60, 60, 60, 0.9), rgba(30, 30, 30, 1));
    border-radius: 1px;
    box-shadow: 
        0 0 4px rgba(0, 0, 0, 0.8),
        0 0 8px var(--nail-glow-1),
        0 0 12px var(--nail-glow-2),
        0 0 16px var(--nail-glow-3);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    border: 0.5px solid rgba(0, 0, 0, 0.6);
    cursor: pointer;
    pointer-events: auto;
}

.floating-nail::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: transparent;
    cursor: pointer;
}

.floating-nail:hover {
    transform: scale(1.2);
    box-shadow: 
        0 0 6px rgba(0, 0, 0, 0.9),
        0 0 12px var(--nail-glow-1),
        0 0 18px var(--nail-glow-2),
        0 0 24px var(--nail-glow-3);
}

/* First 20 floating nails positioning */
.floating-nail:nth-child(1) { left: 20%; height: 15px; animation: floatNail1 12s infinite ease-in-out; animation-delay: 0s; }
.floating-nail:nth-child(2) { left: 35%; height: 18px; animation: floatNail2 14s infinite ease-in-out; animation-delay: 2s; }
.floating-nail:nth-child(3) { left: 50%; height: 12px; animation: floatNail3 16s infinite ease-in-out; animation-delay: 4s; }
.floating-nail:nth-child(4) { left: 65%; height: 20px; animation: floatNail1 18s infinite ease-in-out; animation-delay: 6s; }
.floating-nail:nth-child(5) { left: 80%; height: 14px; animation: floatNail2 13s infinite ease-in-out; animation-delay: 8s; }
.floating-nail:nth-child(6) { left: 25%; height: 16px; animation: floatNail3 15s infinite ease-in-out; animation-delay: 10s; }
.floating-nail:nth-child(7) { left: 10%; height: 22px; animation: floatNail1 14s infinite ease-in-out; animation-delay: 1s; }
.floating-nail:nth-child(8) { left: 40%; height: 18px; animation: floatNail2 16s infinite ease-in-out; animation-delay: 3s; }
.floating-nail:nth-child(9) { left: 60%; height: 24px; animation: floatNail3 13s infinite ease-in-out; animation-delay: 5s; }
.floating-nail:nth-child(10) { left: 75%; height: 19px; animation: floatNail1 17s infinite ease-in-out; animation-delay: 7s; }
.floating-nail:nth-child(11) { left: 15%; height: 21px; animation: floatNail2 12s infinite ease-in-out; animation-delay: 9s; }
.floating-nail:nth-child(12) { left: 55%; height: 17px; animation: floatNail3 19s infinite ease-in-out; animation-delay: 11s; }
.floating-nail:nth-child(13) { left: 85%; height: 23px; animation: floatNail1 15s infinite ease-in-out; animation-delay: 2s; }
.floating-nail:nth-child(14) { left: 30%; height: 20px; animation: floatNail2 18s infinite ease-in-out; animation-delay: 4s; }
.floating-nail:nth-child(15) { left: 70%; height: 16px; animation: floatNail3 14s infinite ease-in-out; animation-delay: 6s; }
.floating-nail:nth-child(16) { left: 5%; height: 25px; animation: floatNail1 16s infinite ease-in-out; animation-delay: 8s; }
.floating-nail:nth-child(17) { left: 45%; height: 18px; animation: floatNail2 13s infinite ease-in-out; animation-delay: 10s; }
.floating-nail:nth-child(18) { left: 90%; height: 22px; animation: floatNail3 17s infinite ease-in-out; animation-delay: 1.5s; }
.floating-nail:nth-child(19) { left: 12%; height: 19px; animation: floatNail1 14s infinite ease-in-out; animation-delay: 0.5s; }
.floating-nail:nth-child(20) { left: 33%; height: 21px; animation: floatNail2 16s infinite ease-in-out; animation-delay: 2.5s; }


@keyframes floatNail1 {
    0% { transform: translateY(100%) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    50% { transform: translateY(-50%) rotate(45deg); opacity: 0.8; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-120%) rotate(90deg); opacity: 0; }
}

@keyframes floatNail2 {
    0% { transform: translateY(100%) rotate(0deg); opacity: 0; }
    15% { opacity: 0.5; }
    40% { transform: translateY(-30%) rotate(-30deg); opacity: 0.7; }
    70% { transform: translateY(-80%) rotate(60deg); opacity: 0.6; }
    85% { opacity: 0.3; }
    100% { transform: translateY(-150%) rotate(120deg); opacity: 0; }
}

@keyframes floatNail3 {
    0% { transform: translateY(100%) rotate(0deg); opacity: 0; }
    8% { opacity: 0.4; }
    35% { transform: translateY(-40%) rotate(20deg); opacity: 0.6; }
    65% { transform: translateY(-70%) rotate(-45deg); opacity: 0.5; }
    92% { opacity: 0.2; }
    100% { transform: translateY(-130%) rotate(-90deg); opacity: 0; }
}

/* Subtle glow around the figure */
.figure-glow {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 250px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: figureGlow 8s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

/* Track text elements - actual HTML text positioned to match original layout */
.track-text {
    position: absolute;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: clamp(14px, 1.5vw, 24px);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    z-index: 10;
    user-select: none;
    /* Touch-friendly sizing */
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 5px;
}

.track-text:hover {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.track-text.active {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
    transform: scale(1.05);
}

.track-text .track-number {
    font-weight: bold;
    margin-right: 6px;
    flex-shrink: 0; /* Prevent number from shrinking */
    min-width: auto; /* Let it size naturally */
    position: relative;
    z-index: 15; /* Ensure track number is always above letter effects */
}

.track-text .track-title {
    flex: 1;
    position: relative;
    z-index: 10; /* Below track number but above background */
}

/* Left column tracks - positioned to match original image layout */
.track-1 { top: 24%; left: 2%; animation-delay: 0.1s; }
.track-2 { top: 29.5%; left: 2%; animation-delay: 0.2s; }
.track-3 { top: 35%; left: 2%; animation-delay: 0.3s; }
.track-4 { top: 40.5%; left: 2%; animation-delay: 0.4s; }
.track-5 { top: 46%; left: 2%; animation-delay: 0.5s; }
.track-6 { top: 51.5%; left: 2%; animation-delay: 0.6s; }
.track-7 { top: 57%; left: 2%; animation-delay: 0.7s; }
.track-8 { top: 62.5%; left: 2%; animation-delay: 0.8s; }

/* Right column tracks - positioned to match original image layout */
.track-9 { top: 24%; right: 2%; animation-delay: 0.9s; }
.track-10 { top: 29.5%; right: 2%; animation-delay: 1.0s; }
.track-11 { top: 35%; right: 2%; animation-delay: 1.1s; }
.track-12 { top: 40.5%; right: 2%; animation-delay: 1.2s; }
.track-13 { top: 46%; right: 2%; animation-delay: 1.3s; }
.track-14 { top: 51.5%; right: 2%; animation-delay: 1.4s; }
.track-15 { top: 57%; right: 2%; animation-delay: 1.5s; }
.track-16 { top: 62.5%; right: 2%; animation-delay: 1.6s; }

/* Invisible clickable area over cursive album title in image */
.album-title-hotspot {
    position: absolute;
    bottom: clamp(3%, 5vh, 8%);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(300px, 40vw, 600px);
    height: clamp(60px, 8vh, 120px);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    /* Touch-friendly minimum size */
    min-height: 44px;
    border-radius: 20px;
}

.album-title-hotspot:hover,
.album-title-hotspot:active {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    transform: translateX(-50%) scale(1.02);
}

/* Modal styles */
.lyrics-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: modalFadeIn 0.3s ease;
    transition: background 0.3s ease;
}

.lyrics-content {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    max-height: 70vh;
    overflow-y: auto;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    animation: modalSlideIn 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lyrics-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: white;
    font-weight: 300;
    letter-spacing: 2px;
}

.lyrics-text {
    font-size: 1.2em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2em;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Navigation hint */
.nav-hint {
    position: absolute;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: fadeIn 2s ease forwards;
    z-index: 10;
}

/* Bottom-left fixed actions to mirror nav-hint */
.nav-actions {
    position: absolute;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
    animation: fadeIn 2s ease forwards;
}
.nav-actions .nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    font: 600 13px/1 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.nav-actions .nav-btn:hover {
    transform: translateY(-1px);
    border-color: #fff;
    background: rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    html, body { 
        overflow: hidden; 
        background-color: #000;
        /* Force mobile browsers to use available space */
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    html {
        /* Prevent address bar from affecting layout */
        height: 100vh;
        height: 100dvh;
    }
    
    body {
        /* Use the small viewport height to account for browser UI */
        height: 100vh;
        height: 100svh;
        /* Prevent any scrolling */
        overscroll-behavior: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .album-container {
        /* Ensure container fills the available space properly */
        height: 100vh;
        height: 100svh;
        min-height: 100svh;
        position: relative;
        overflow: hidden;
    }
    
    .nav-actions { 
        bottom: calc(5px + env(safe-area-inset-bottom, 0px)); 
        left: 5px; 
    }
    .nav-actions .nav-btn { 
        padding: 6px 12px; 
        font-size: 12px; 
    }
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes flickerLeft {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    15% {
        opacity: 0.8;
        transform: scale(1.1);
    }
    30% {
        opacity: 0.3;
        transform: scale(0.9);
    }
    45% {
        opacity: 0.9;
        transform: scale(1.2);
    }
    60% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    75% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes flickerRight {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.9);
    }
    20% {
        opacity: 0.9;
        transform: scale(1.2);
    }
    35% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
    65% {
        opacity: 0.4;
        transform: scale(1);
    }
    80% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

@keyframes nailSway {
    0%, 100% {
        transform: rotate(0deg) translateY(0px);
        opacity: 0.8;
    }
    25% {
        transform: rotate(1deg) translateY(-2px);
        opacity: 0.9;
    }
    50% {
        transform: rotate(-0.5deg) translateY(-1px);
        opacity: 0.7;
    }
    75% {
        transform: rotate(0.8deg) translateY(-3px);
        opacity: 0.8;
    }
}

@keyframes figureGlow {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1.1);
    }
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsive */
/* Admin Test Highlighting */
.test-highlight {
    animation: testPulse 1s infinite !important;
    border: 2px solid #ff0000 !important;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8) !important;
}

@keyframes testPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Interactive Elements Dynamic Styles */
.dynamic-nail-glow {
    transition: box-shadow 0.3s ease;
}

.dynamic-particle-opacity {
    transition: opacity 0.3s ease;
}

.light-effect {
    transition: filter 0.3s ease, color 0.3s ease;
}

.central-glow {
    transition: box-shadow 0.3s ease;
}

/* Multiple Spider System Animations */
@keyframes crawlLeftRight {
    from {
        left: -50px;
        transform: rotate(0deg);
    }
    to {
        left: calc(100vw + 50px);
        transform: rotate(360deg);
    }
}

@keyframes crawlRightLeft {
    from {
        right: -50px;
        transform: rotate(0deg);
    }
    to {
        right: calc(100vw + 50px);
        transform: rotate(-360deg);
    }
}

/* Spider Base Styles */
.spider {
    position: fixed;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.spider:hover {
    transform: scale(1.2);
}

/* Individual Spider Customization */
.spider-1 { --crawl-duration: 8s; }
.spider-2 { --crawl-duration: 6s; }
.spider-3 { --crawl-duration: 10s; }
.spider-4 { --crawl-duration: 7s; }
.spider-5 { --crawl-duration: 9s; }
.spider-6 { --crawl-duration: 5s; }
.spider-7 { --crawl-duration: 11s; }
.spider-8 { --crawl-duration: 6s; }
.spider-9 { --crawl-duration: 8s; }
.spider-10 { --crawl-duration: 7s; }

/* Performance Mode Styles */
@media (max-width: 768px) {
    .performance-mode .floating-nail,
    .performance-mode .particle,
    .performance-mode .spider,
    .performance-mode .fog-cloud {
        animation-duration: 0.1s !important;
        opacity: 0.3 !important;
    }
    
    .performance-mode .falling-objects {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .bio-paper {
        margin: 15px;
        padding: 40px 30px 30px 40px;
        max-height: 90vh;
    }
    
    .bio-title {
        font-size: 1.6em;
        letter-spacing: 1px;
    }
    
    .bio-text {
        font-size: 0.85em;
        line-height: 1.6;
    }

    /* Keep spiders looking consistent - no appearance changes */

    /* Modal adjustments for mobile */
    .lyrics-content {
        margin: 15px;
        padding: 25px;
        max-width: 90vw;
        border-radius: 15px;
    }
    
    .nav-hint {
        font-size: 0.7em;
        bottom: 5px;
        right: 5px;
    }

    /* Track text sizing for mobile */
    .track-text {
        font-size: clamp(12px, 3vw, 18px);
    }

    /* Smaller lights on mobile */
    .light-left, .light-right {
        width: 8vw;
        height: 8vw;
        min-width: 40px;
        min-height: 40px;
        max-width: 80px;
        max-height: 80px;
    }

    /* Album title hotspot adjustment for mobile */
    .album-title-hotspot {
        width: clamp(250px, 50vw, 400px);
        height: clamp(50px, 10vh, 80px);
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .track-text {
        font-size: clamp(10px, 3.5vw, 16px);
    }

    .lyrics-content {
        margin: 10px;
        padding: 20px;
    }
}

/* Very thin screens - phones in portrait, narrow windows */
@media (max-width: 360px) {
    .track-text {
        font-size: clamp(9px, 4vw, 14px);
        /* Ensure track numbers stay visible and don't wrap */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 90vw;
    }
    
    .track-text .track-number {
        font-weight: bold;
        margin-right: 4px;
        flex-shrink: 0; /* Prevent number from shrinking */
    }
    
    .track-text .track-title {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Keep spiders looking the same - only adjust animations for performance */
    /* Reduce animation complexity on very thin screens for performance */
    .spider-leg {
        animation: none !important;
    }
    
    .lyrics-content {
        margin: 5px;
        padding: 15px;
        max-width: 95vw;
    }
    
    .light-left, .light-right {
        width: 6vw;
        height: 6vw;
        min-width: 30px;
        min-height: 30px;
        max-width: 60px;
        max-height: 60px;
    }
}

/* Extra thin screens - very narrow windows or small phones */
@media (max-width: 320px) {
    .track-text {
        font-size: clamp(8px, 4.5vw, 12px);
        padding: 3px 8px;
        line-height: 1.2;
    }
    
    .track-text .track-number {
        font-size: 1.1em;
        margin-right: 3px;
    }
    
    /* Keep spiders looking the same - no visual changes */
    
    .bio-paper {
        margin: 8px;
        padding: 20px 15px 15px 20px;
    }
    
    .nav-hint {
        font-size: 0.6em;
        bottom: 3px;
        right: 3px;
    }
}

/* Floating particles and atmospheric effects */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.8;
    }
}

/* Fog clouds and smoke effects */
.fog-cloud {
    position: fixed;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    pointer-events: auto;
    width: 100px;
    height: 100px;
}

.fog-cloud.visible {
    opacity: 1;
}

.fog-cloud:hover {
    transform: scale(1.05);
}

/* Smoke particle system */
.smoke-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(80, 80, 80, 0.8) 0%, 
        rgba(60, 60, 60, 0.6) 30%, 
        rgba(40, 40, 40, 0.4) 60%, 
        rgba(20, 20, 20, 0.2) 80%, 
        transparent 100%);
    filter: blur(2px);
    animation: smokeRise 8s ease-out infinite;
}

.smoke-particle:nth-child(1) {
    width: 20px;
    height: 20px;
    left: 40px;
    bottom: 0px;
    animation-delay: 0s;
    animation-duration: 6s;
}

.smoke-particle:nth-child(2) {
    width: 25px;
    height: 25px;
    left: 35px;
    bottom: 5px;
    animation-delay: 0.8s;
    animation-duration: 7s;
}

.smoke-particle:nth-child(3) {
    width: 30px;
    height: 30px;
    left: 45px;
    bottom: 10px;
    animation-delay: 1.6s;
    animation-duration: 8s;
}

.smoke-particle:nth-child(4) {
    width: 18px;
    height: 18px;
    left: 50px;
    bottom: 8px;
    animation-delay: 2.4s;
    animation-duration: 6.5s;
}

.smoke-particle:nth-child(5) {
    width: 35px;
    height: 35px;
    left: 30px;
    bottom: 15px;
    animation-delay: 3.2s;
    animation-duration: 9s;
}

.smoke-particle:nth-child(6) {
    width: 22px;
    height: 22px;
    left: 55px;
    bottom: 12px;
    animation-delay: 4s;
    animation-duration: 7.5s;
}

@keyframes smokeRise {
    0% {
        transform: translateY(0px) translateX(0px) scale(0.5) rotate(0deg);
        opacity: 0.9;
        filter: blur(1px);
    }
    20% {
        transform: translateY(-30px) translateX(5px) scale(0.8) rotate(20deg);
        opacity: 0.8;
        filter: blur(1.5px);
    }
    40% {
        transform: translateY(-70px) translateX(-10px) scale(1.2) rotate(-15deg);
        opacity: 0.6;
        filter: blur(2px);
    }
    60% {
        transform: translateY(-120px) translateX(15px) scale(1.6) rotate(30deg);
        opacity: 0.4;
        filter: blur(3px);
    }
    80% {
        transform: translateY(-180px) translateX(-5px) scale(2.2) rotate(-10deg);
        opacity: 0.2;
        filter: blur(4px);
    }
    100% {
        transform: translateY(-250px) translateX(20px) scale(3) rotate(45deg);
        opacity: 0;
        filter: blur(5px);
    }
}

/* Falling debris and objects styles */
.falling-debris {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    top: 0;
    left: 0;
}

/* Falling themed objects */
.falling-objects {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 9600;
    pointer-events: none;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.falling-objects.active {
    opacity: 1;
}

/* Vampire fangs image for "fang" */
.vampire-teeth {
    position: absolute;
    opacity: 0;
    background-image: url('https://i.ibb.co/3HtD3gq/fangs.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}

/* Different sizes for variety */
.vampire-teeth:nth-child(1), .vampire-teeth:nth-child(5), .vampire-teeth:nth-child(9) {
    width: 40px;
    height: 30px;
}

.vampire-teeth:nth-child(2), .vampire-teeth:nth-child(6), .vampire-teeth:nth-child(10) {
    width: 28px;
    height: 21px;
}

.vampire-teeth:nth-child(3), .vampire-teeth:nth-child(7), .vampire-teeth:nth-child(11) {
    width: 36px;
    height: 27px;
}

.vampire-teeth:nth-child(4), .vampire-teeth:nth-child(8), .vampire-teeth:nth-child(12) {
    width: 24px;
    height: 18px;
}

/* Heart image for "heart drop" and "split" */
.broken-heart {
    position: absolute;
    opacity: 0;
    background-image: url('https://i.ibb.co/MDNxKpH2/a-red-heart-shaped-object-on-a-transparent-background-f.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.6));
}

/* Different sizes for variety */
.broken-heart:nth-child(1), .broken-heart:nth-child(5), .broken-heart:nth-child(9) {
    width: 32px;
    height: 32px;
}

.broken-heart:nth-child(2), .broken-heart:nth-child(6), .broken-heart:nth-child(10) {
    width: 24px;
    height: 24px;
}

.broken-heart:nth-child(3), .broken-heart:nth-child(7), .broken-heart:nth-child(11) {
    width: 28px;
    height: 28px;
}

.broken-heart:nth-child(4), .broken-heart:nth-child(8), .broken-heart:nth-child(12) {
    width: 20px;
    height: 20px;
}

.broken-heart:nth-child(13), .broken-heart:nth-child(14) {
    width: 36px;
    height: 36px;
}

/* Animation for falling vampire teeth with different patterns */
.vampire-teeth:nth-child(1), .vampire-teeth:nth-child(5), .vampire-teeth:nth-child(9) {
    animation: fallTeeth 8s infinite linear;
}

.vampire-teeth:nth-child(2), .vampire-teeth:nth-child(6), .vampire-teeth:nth-child(10) {
    animation: fallTeethSpin 6s infinite linear;
}

.vampire-teeth:nth-child(3), .vampire-teeth:nth-child(7), .vampire-teeth:nth-child(11) {
    animation: fallTeethWobble 10s infinite linear;
}

.vampire-teeth:nth-child(4), .vampire-teeth:nth-child(8), .vampire-teeth:nth-child(12) {
    animation: fallTeeth 9s infinite linear;
}

/* Animation for falling hearts with different speeds */
.broken-heart:nth-child(1), .broken-heart:nth-child(6), .broken-heart:nth-child(11) {
    animation: fallHeart 10s infinite linear;
}

.broken-heart:nth-child(2), .broken-heart:nth-child(7), .broken-heart:nth-child(12) {
    animation: fallHeartSlow 14s infinite linear;
}

.broken-heart:nth-child(3), .broken-heart:nth-child(8), .broken-heart:nth-child(13) {
    animation: fallHeartFast 7s infinite linear;
}

.broken-heart:nth-child(4), .broken-heart:nth-child(9), .broken-heart:nth-child(14) {
    animation: fallHeart 12s infinite linear;
}

.broken-heart:nth-child(5), .broken-heart:nth-child(10) {
    animation: fallHeartSlow 16s infinite linear;
}

/* Individual falling objects with different delays and positions */
.falling-objects .vampire-teeth:nth-child(1) { left: 10%; animation-delay: 0s; }
.falling-objects .vampire-teeth:nth-child(2) { left: 25%; animation-delay: 1s; }
.falling-objects .vampire-teeth:nth-child(3) { left: 40%; animation-delay: 2s; }
.falling-objects .vampire-teeth:nth-child(4) { left: 55%; animation-delay: 3s; }
.falling-objects .vampire-teeth:nth-child(5) { left: 70%; animation-delay: 4s; }
.falling-objects .vampire-teeth:nth-child(6) { left: 85%; animation-delay: 5s; }
.falling-objects .vampire-teeth:nth-child(7) { left: 15%; animation-delay: 6s; }
.falling-objects .vampire-teeth:nth-child(8) { left: 30%; animation-delay: 7s; }
.falling-objects .vampire-teeth:nth-child(9) { left: 45%; animation-delay: 0.5s; }
.falling-objects .vampire-teeth:nth-child(10) { left: 60%; animation-delay: 1.5s; }
.falling-objects .vampire-teeth:nth-child(11) { left: 75%; animation-delay: 2.5s; }
.falling-objects .vampire-teeth:nth-child(12) { left: 90%; animation-delay: 3.5s; }

.falling-objects .broken-heart:nth-child(1) { left: 8%; animation-delay: 0s; }
.falling-objects .broken-heart:nth-child(2) { left: 22%; animation-delay: 1.2s; }
.falling-objects .broken-heart:nth-child(3) { left: 36%; animation-delay: 2.4s; }
.falling-objects .broken-heart:nth-child(4) { left: 50%; animation-delay: 3.6s; }
.falling-objects .broken-heart:nth-child(5) { left: 64%; animation-delay: 4.8s; }
.falling-objects .broken-heart:nth-child(6) { left: 78%; animation-delay: 6s; }
.falling-objects .broken-heart:nth-child(7) { left: 92%; animation-delay: 7.2s; }
.falling-objects .broken-heart:nth-child(8) { left: 14%; animation-delay: 8.4s; }
.falling-objects .broken-heart:nth-child(9) { left: 28%; animation-delay: 0.8s; }
.falling-objects .broken-heart:nth-child(10) { left: 42%; animation-delay: 2s; }
.falling-objects .broken-heart:nth-child(11) { left: 56%; animation-delay: 3.2s; }
.falling-objects .broken-heart:nth-child(12) { left: 70%; animation-delay: 4.4s; }
.falling-objects .broken-heart:nth-child(13) { left: 84%; animation-delay: 5.6s; }
.falling-objects .broken-heart:nth-child(14) { left: 98%; animation-delay: 6.8s; }

/* Animation keyframes for falling teeth */
@keyframes fallTeeth {
    0% {
        transform: translateY(-30px) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(1.2);
        opacity: 0.8;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes fallTeethSpin {
    0% {
        transform: translateY(-30px) rotate(0deg) scale(1);
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    30% {
        transform: translateY(30vh) rotate(270deg) scale(0.7);
        opacity: 0.9;
    }
    70% {
        transform: translateY(70vh) rotate(540deg) scale(1.4);
        opacity: 0.6;
    }
    95% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(100vh) rotate(720deg) scale(0.9);
        opacity: 0;
    }
}

@keyframes fallTeethWobble {
    0% {
        transform: translateY(-30px) rotate(0deg) scale(1);
        opacity: 0;
    }
    12% {
        opacity: 0.8;
    }
    25% {
        transform: translateY(25vh) rotate(45deg) scale(1.1);
        opacity: 0.9;
    }
    50% {
        transform: translateY(50vh) rotate(-45deg) scale(0.9);
        opacity: 0.7;
    }
    75% {
        transform: translateY(75vh) rotate(90deg) scale(1.3);
        opacity: 0.5;
    }
    100% {
        transform: translateY(100vh) rotate(180deg) scale(0.7);
        opacity: 0;
    }
}

/* Animation keyframes for falling hearts */
@keyframes fallHeart {
    0% {
        transform: translateY(-30px) rotate(0deg) scale(1);
        opacity: 0;
    }
    8% {
        opacity: 0.9;
    }
    25% {
        transform: translateY(25vh) rotate(90deg) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(0.9);
        opacity: 0.7;
    }
    75% {
        transform: translateY(75vh) rotate(270deg) scale(1.2);
        opacity: 0.5;
    }
    92% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes fallHeartSlow {
    0% {
        transform: translateY(-30px) rotate(0deg) scale(1);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    30% {
        transform: translateY(30vh) rotate(120deg) scale(1.3);
        opacity: 0.9;
    }
    60% {
        transform: translateY(60vh) rotate(240deg) scale(0.7);
        opacity: 0.6;
    }
    85% {
        transform: translateY(85vh) rotate(320deg) scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(0.9);
        opacity: 0;
    }
}

@keyframes fallHeartFast {
    0% {
        transform: translateY(-30px) rotate(0deg) scale(1);
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    20% {
        transform: translateY(20vh) rotate(60deg) scale(0.8);
        opacity: 0.8;
    }
    40% {
        transform: translateY(40vh) rotate(150deg) scale(1.4);
        opacity: 0.7;
    }
    70% {
        transform: translateY(70vh) rotate(280deg) scale(0.6);
        opacity: 0.4;
    }
    100% {
        transform: translateY(100vh) rotate(400deg) scale(1.2);
        opacity: 0;
    }
}

.debris-particle {
    position: absolute;
    opacity: 0;
}

.dust {
    width: 4px;
    height: 4px;
    background: var(--debris-color);
    border-radius: 50%;
    box-shadow: 0 0 3px var(--debris-glow);
    animation: fallDust 8s infinite linear;
    transition: background 1s ease-in-out, box-shadow 1s ease-in-out;
}

.debris-small {
    width: 3px;
    height: 8px;
    background: rgba(200, 200, 200, 0.9);
    border-radius: 1px;
    box-shadow: 0 0 2px rgba(200, 200, 200, 0.6);
    animation: fallDebrisSmall 12s infinite linear;
}

.debris-medium {
    width: 5px;
    height: 12px;
    background: rgba(180, 180, 180, 0.95);
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(180, 180, 180, 0.7);
    animation: fallDebrisMedium 15s infinite linear;
}

/* Ensure all debris particles are positioned with animation delays */
.debris-particle:nth-child(1) { left: 5%; animation-delay: 0s; }
.debris-particle:nth-child(2) { left: 15%; animation-delay: 1s; }
.debris-particle:nth-child(3) { left: 25%; animation-delay: 2s; }
.debris-particle:nth-child(4) { left: 35%; animation-delay: 3s; }
.debris-particle:nth-child(5) { left: 45%; animation-delay: 4s; }
.debris-particle:nth-child(6) { left: 55%; animation-delay: 5s; }
.debris-particle:nth-child(7) { left: 65%; animation-delay: 6s; }
.debris-particle:nth-child(8) { left: 75%; animation-delay: 7s; }
.debris-particle:nth-child(9) { left: 85%; animation-delay: 0.5s; }
.debris-particle:nth-child(10) { left: 95%; animation-delay: 1.5s; }
.debris-particle:nth-child(11) { left: 10%; animation-delay: 2.5s; }
.debris-particle:nth-child(12) { left: 20%; animation-delay: 3.5s; }
.debris-particle:nth-child(13) { left: 30%; animation-delay: 4.5s; }
.debris-particle:nth-child(14) { left: 40%; animation-delay: 5.5s; }
.debris-particle:nth-child(15) { left: 50%; animation-delay: 6.5s; }
.debris-particle:nth-child(16) { left: 60%; animation-delay: 7.5s; }
.debris-particle:nth-child(17) { left: 70%; animation-delay: 0.8s; }
.debris-particle:nth-child(18) { left: 80%; animation-delay: 1.8s; }
.debris-particle:nth-child(19) { left: 90%; animation-delay: 2.8s; }
.debris-particle:nth-child(20) { left: 8%; animation-delay: 3.8s; }

@keyframes fallDust {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes fallDebrisSmall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }
    8% {
        opacity: 0.9;
    }
    50% {
        transform: translateY(50vh) rotate(180deg);
        opacity: 0.8;
    }
    92% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fallDebrisMedium {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.95;
    }
    40% {
        transform: translateY(40vh) rotate(90deg);
        opacity: 0.9;
    }
    70% {
        transform: translateY(70vh) rotate(180deg);
        opacity: 0.7;
    }
    95% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(100vh) rotate(270deg);
        opacity: 0;
    }
}

/* Track Game Button Styles */
#lyricsGameButton {
    margin-top: 20px;
    text-align: center;
    animation: gameButtonFadeIn 0.5s ease-out;
}

#lyricsGameButton button {
    background: linear-gradient(45deg, #ff6b6b, #ff4757) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    position: relative !important;
    overflow: hidden !important;
}

#lyricsGameButton button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4) !important;
    background: linear-gradient(45deg, #ff5252, #ff3838) !important;
}

#lyricsGameButton button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.5) !important;
}

#lyricsGameButton button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#lyricsGameButton button:hover::before {
    left: 100%;
}

@keyframes gameButtonFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Game indicator styles removed - no longer showing on homepage */
