/* LilTrollTown - Clean hero version with funny fonts & effects */

:root { --green: #39ff14; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Glitch on logo */
.glitch-text {
    position: relative;
    display: inline-block;
}
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00cc;
    clip: rect(24px, 9999px, 90px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}
.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00ffff;
    clip: rect(85px, 9999px, 140px, 0);
    animation: glitch-anim 1.8s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    20% { clip: rect(10px, 9999px, 120px, 0); }
    40% { clip: rect(75px, 9999px, 85px, 0); }
    60% { clip: rect(25px, 9999px, 140px, 0); }
    80% { clip: rect(90px, 9999px, 95px, 0); }
    100% { clip: rect(5px, 9999px, 60px, 0); }
}

/* Troll buttons */
.troll-btn {
    font-family: 'Bangers', Impact, system-ui, sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 0 rgba(0,0,0,0.4);
}
.troll-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 0 rgba(0,0,0,0.35), 0 0 0 8px rgba(57, 255, 20, 0.15);
}
.troll-btn:active {
    transform: scale(0.96) translateY(3px) !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0.4);
}

/* Neon */
.text-\[\#39ff14\] {
    text-shadow: 0 0 10px #39ff14, 0 0 20px rgba(57,255,20,0.5);
}

/* Modal pop animation */
.modal-content {
    animation: modalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
}
@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.6) rotate(-8deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Audio pulse */
#audio-toggle.playing {
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(57,255,20,0.4); }
    70% { box-shadow: 0 0 0 12px rgba(57,255,20,0); }
}

/* Shine effect on buttons */
.troll-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: 0.5s;
}
.troll-btn:hover::after {
    left: 280%;
}

/* Mobile */
@media (max-width: 640px) {
    h1 { font-size: 62px !important; line-height: 0.82 !important; }
    .troll-btn { font-size: 1.35rem; padding-top: 1rem; padding-bottom: 1rem; }
}
