@font-face {
    font-family: 'BadBoys';
    src: url('Bad Boys.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'BadBoys', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: 
        radial-gradient(circle at 20% 80%, rgba(20, 20, 20, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(15, 15, 15, 0.8) 0%, transparent 50%),
        linear-gradient(135deg, #000000 0%, #0a0a0a 25%, #050505 50%, #000000 75%, #0a0a0a 100%);
    color: #e0e0e0;
    overflow: hidden;
    height: 100vh;
    cursor: default;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.005) 2px,
            rgba(255, 255, 255, 0.005) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.003) 2px,
            rgba(255, 255, 255, 0.003) 4px
        );
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(0, 0, 0, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}

#container {
    position: relative;
    width: 100vw;
    height: 100vh;
    z-index: 3;
}

.stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stage.active {
    opacity: 1;
    visibility: visible;
}

/* Green Pill Stage */
#green-pill-stage {
    background: 
        radial-gradient(circle at center, rgba(0, 255, 100, 0.02) 0%, transparent 70%),
        radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.5) 0%, transparent 40%);
}


.pill {
    max-width: 200px;
    height: auto;
    filter: 
        drop-shadow(0 0 20px rgba(0, 255, 100, 0.3))
        contrast(1.1)
        brightness(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.pill:hover {
    transform: scale(1.05);
    filter: 
        drop-shadow(0 0 30px rgba(0, 255, 100, 0.5))
        contrast(1.2)
        brightness(1.0);
}

/* Floating animation for green pill */
.floating {
    animation: float 3s ease-in-out infinite, slowSpin 6s linear infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(var(--rotation, 0deg));
    }
    50% {
        transform: translateY(-15px) rotate(var(--rotation, 0deg));
    }
}

@keyframes slowSpin {
    0% {
        --rotation: 0deg;
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-7.5px) rotate(90deg);
    }
    50% {
        --rotation: 180deg;
        transform: translateY(-15px) rotate(180deg);
    }
    75% {
        transform: translateY(-7.5px) rotate(270deg);
    }
    100% {
        --rotation: 360deg;
        transform: translateY(0px) rotate(360deg);
    }
}

/* Shine effect */
.pill::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shine {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Red Pill Stage */
#red-pill-stage {
    background: 
        radial-gradient(circle at center, rgba(255, 0, 50, 0.02) 0%, transparent 70%),
        radial-gradient(circle at 30% 30%, rgba(0, 0, 0, 0.7) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.6) 0%, transparent 40%);
}

#red-pill {
    filter: 
        drop-shadow(0 0 25px rgba(255, 0, 50, 0.4))
        contrast(1.1)
        brightness(0.9);
    margin-bottom: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spinPill 3s linear infinite;
}

@keyframes spinPill {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}



/* Mayhem Stage */
#mayhem-stage {
    background: 
        radial-gradient(circle at center, rgba(255, 0, 50, 0.015) 0%, transparent 70%),
        radial-gradient(circle at 25% 25%, rgba(0, 0, 0, 0.8) 0%, transparent 35%),
        radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.7) 0%, transparent 35%);
    justify-content: center;
    align-items: center;
    transition: background 0.6s ease;
}

/* Green theme for mayhem stage */
#mayhem-stage.green-theme {
    background: 
        radial-gradient(circle at center, rgba(0, 255, 100, 0.02) 0%, transparent 70%),
        radial-gradient(circle at 25% 25%, rgba(0, 0, 0, 0.8) 0%, transparent 35%),
        radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.7) 0%, transparent 35%);
}

#top-bar {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.top-pill {
    width: 40px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 0, 50, 0.3));
}

.spinning-pill {
    animation: spinAndTransition 6s linear infinite;
}

@keyframes spinAndTransition {
    0% {
        transform: rotate(0deg);
        filter: drop-shadow(0 0 10px rgba(255, 0, 50, 0.3));
    }
    25% {
        transform: rotate(90deg);
        filter: drop-shadow(0 0 15px rgba(255, 255, 0, 0.5));
    }
    50% {
        transform: rotate(180deg);
        filter: drop-shadow(0 0 10px rgba(0, 255, 100, 0.4));
    }
    75% {
        transform: rotate(270deg);
        filter: drop-shadow(0 0 15px rgba(255, 255, 0, 0.5));
    }
    100% {
        transform: rotate(360deg);
        filter: drop-shadow(0 0 10px rgba(255, 0, 50, 0.3));
    }
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
}

#twitter-icon:hover {
    color: #1DA1F2;
    background: rgba(29, 161, 242, 0.1);
    transform: scale(1.1);
}

#community-icon:hover {
    color: #ff4500;
    background: rgba(255, 69, 0, 0.1);
    transform: scale(1.1);
}

.mayhem-logo {
    max-width: 500px;
    height: auto;
    filter: 
        drop-shadow(0 0 30px rgba(255, 0, 50, 0.2))
        contrast(1.2)
        brightness(0.95)
        saturate(1.1);
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mayhem-logo:hover {
    transform: scale(1.1);
    filter: 
        drop-shadow(0 0 40px rgba(255, 0, 50, 0.4))
        contrast(1.3)
        brightness(1.0)
        saturate(1.2);
}

/* Green theme for mayhem logo */
.mayhem-logo.green-theme {
    filter: 
        drop-shadow(0 0 30px rgba(0, 255, 100, 0.2))
        contrast(1.2)
        brightness(0.95)
        saturate(1.1);
}

.mayhem-logo.green-theme:hover {
    transform: scale(1.1);
    filter: 
        drop-shadow(0 0 40px rgba(0, 255, 100, 0.4))
        contrast(1.3)
        brightness(1.0)
        saturate(1.2);
}

.mayhem-logo.glitch {
    animation: glitchEffect 0.6s ease-in-out;
}

@keyframes glitchEffect {
    0% {
        transform: scale(1.1) translateX(0);
        filter: 
            drop-shadow(0 0 40px rgba(255, 0, 50, 0.4))
            contrast(1.3)
            brightness(1.0)
            saturate(1.2);
    }
    10% {
        transform: scale(1.15) translateX(-5px);
        filter: 
            drop-shadow(0 0 50px rgba(0, 255, 100, 0.6))
            contrast(2.0)
            brightness(1.2)
            saturate(2.0)
            hue-rotate(120deg);
    }
    20% {
        transform: scale(1.08) translateX(3px);
        filter: 
            drop-shadow(0 0 30px rgba(255, 0, 50, 0.8))
            contrast(0.8)
            brightness(0.7)
            saturate(0.5);
    }
    30% {
        transform: scale(1.12) translateX(-2px);
        filter: 
            drop-shadow(0 0 60px rgba(0, 255, 100, 0.8))
            contrast(2.5)
            brightness(1.5)
            saturate(3.0)
            hue-rotate(120deg);
    }
    40% {
        transform: scale(1.1) translateX(1px);
        filter: 
            drop-shadow(0 0 20px rgba(255, 0, 50, 0.3))
            contrast(1.0)
            brightness(0.8)
            saturate(0.8);
    }
    50% {
        transform: scale(1.13) translateX(-1px);
        filter: 
            drop-shadow(0 0 70px rgba(0, 255, 100, 1.0))
            contrast(3.0)
            brightness(1.8)
            saturate(4.0)
            hue-rotate(120deg);
    }
    60% {
        transform: scale(1.09) translateX(2px);
        filter: 
            drop-shadow(0 0 25px rgba(255, 0, 50, 0.5))
            contrast(1.2)
            brightness(0.9)
            saturate(1.0);
    }
    70% {
        transform: scale(1.11) translateX(0px);
        filter: 
            drop-shadow(0 0 50px rgba(0, 255, 100, 0.7))
            contrast(2.2)
            brightness(1.3)
            saturate(2.5)
            hue-rotate(120deg);
    }
    80% {
        transform: scale(1.1) translateX(-1px);
        filter: 
            drop-shadow(0 0 35px rgba(255, 0, 50, 0.6))
            contrast(1.4)
            brightness(1.0)
            saturate(1.3);
    }
    90% {
        transform: scale(1.105) translateX(0px);
        filter: 
            drop-shadow(0 0 45px rgba(0, 255, 100, 0.5))
            contrast(1.8)
            brightness(1.1)
            saturate(2.0)
            hue-rotate(120deg);
    }
    100% {
        transform: scale(1.1) translateX(0);
        filter: 
            drop-shadow(0 0 40px rgba(255, 0, 50, 0.4))
            contrast(1.3)
            brightness(1.0)
            saturate(1.2);
    }
}

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

/* CA Display */
#ca-display {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 400;
    color: rgba(200, 200, 200, 0.8);
    background: rgba(0, 0, 0, 0.4);
    padding: 15px 25px;
    border-radius: 12px;
    border: 2px solid rgba(255, 69, 0, 0.4);
    backdrop-filter: blur(10px);
    animation: fadeInUp 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 69, 0, 0.3),
        inset 0 0 20px rgba(255, 69, 0, 0.1);
    transition: all 0.6s ease;
}

/* Green theme for CA display */
#ca-display.green-theme {
    border: 2px solid rgba(0, 255, 100, 0.4);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 255, 100, 0.3),
        inset 0 0 20px rgba(0, 255, 100, 0.1);
}

.ca-label {
    color: rgba(255, 0, 50, 0.9);
    font-weight: 500;
    text-shadow: 0 0 5px rgba(255, 0, 50, 0.3);
    transition: all 0.6s ease;
}

.ca-label.green-theme {
    color: rgba(0, 255, 100, 0.9);
    text-shadow: 0 0 5px rgba(0, 255, 100, 0.3);
}

.ca-address {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: rgba(180, 180, 180, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.ca-address.green-theme {
    color: rgba(150, 255, 150, 0.9);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.ca-address:hover {
    color: rgba(255, 0, 50, 0.8);
    text-shadow: 0 0 8px rgba(255, 0, 50, 0.4);
}

.ca-address.green-theme:hover {
    color: rgba(0, 255, 100, 0.8);
    text-shadow: 0 0 8px rgba(0, 255, 100, 0.4);
}


/* Transformation animation */
.pill-transform {
    animation: pillTransform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pillTransform {
    0% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 20px rgba(0, 255, 100, 0.3));
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.6));
    }
    100% {
        transform: scale(1) rotate(360deg);
        filter: drop-shadow(0 0 25px rgba(255, 0, 50, 0.4));
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .pill {
        max-width: 150px;
    }
    
    .mayhem-logo {
        max-width: 300px;
    }
    
    .enter-btn {
        font-size: 20px;
        letter-spacing: 6px;
    }
    
    .enter-btn:hover {
        letter-spacing: 10px;
    }
    
    #ca-display {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
