/*
 * PUMPI - Degen Style CSS
 * With Pill Interaction Effects
 */

:root {
    --pumpi-green: #39FF14;
    --pumpi-green-dark: #052c01;
    --pumpi-black: #0a0a0a;
    --pumpi-white: #f5f5f5;
}

/* BASE */
body {
    background: linear-gradient(180deg, var(--pumpi-green-dark) 0%, #000 50%, var(--pumpi-green-dark) 100%);
    color: var(--pumpi-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* FONTS */
.doodle-font {
    font-family: 'Permanent Marker', cursive;
}

.degen-font {
    font-family: 'Bangers', system-ui;
    letter-spacing: 0.08em;
}

/* EFFECTS */
.sketchy-box {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid var(--pumpi-green);
    border-radius: 2px;
    box-shadow: 4px 4px 0 #000;
}

.sketchy-box::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px dashed rgba(57, 255, 20, 0.3);
    border-radius: 4px;
    pointer-events: none;
}

.sticker {
    filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.6));
    transition: transform 0.2s ease;
}

.sticker:hover {
    transform: scale(1.05) !important;
}

/* Tape Corner */
.tape-corner {
    position: relative;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}

.tape-corner::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 20px;
    height: 10px;
    background: rgba(255, 255, 200, 0.5);
    transform: rotate(-45deg);
    z-index: 10;
}

/* Scribble Underline */
.scribble-underline {
    position: relative;
    display: inline-block;
}

.scribble-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0 5 Q25 0 50 5 T100 5' stroke='%2339FF14' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* Glow Text */
.text-glow {
    text-shadow:
        0 0 10px var(--pumpi-green),
        0 0 20px rgba(57, 255, 20, 0.5),
        2px 2px 0 #000;
}

/* BACKGROUND */
.wormhole-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 30% 70%, rgba(57, 255, 20, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(57, 255, 20, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--pumpi-green-dark) 0%, #000 100%);
}

.floating-asset {
    pointer-events: none;
    user-select: none;
}

/* Chaotic Float Animation */
.chaotic-float {
    animation: chaoticFloat 6s ease-in-out infinite;
}

@keyframes chaoticFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(var(--base-rotation, 0deg)) scale(1);
    }

    15% {
        transform: translate(8px, -12px) rotate(calc(var(--base-rotation, 0deg) + 3deg)) scale(1.02);
    }

    30% {
        transform: translate(-5px, 8px) rotate(calc(var(--base-rotation, 0deg) - 2deg)) scale(0.98);
    }

    45% {
        transform: translate(12px, 5px) rotate(calc(var(--base-rotation, 0deg) + 4deg)) scale(1.03);
    }

    60% {
        transform: translate(-10px, -8px) rotate(calc(var(--base-rotation, 0deg) - 3deg)) scale(1.01);
    }

    75% {
        transform: translate(6px, 10px) rotate(calc(var(--base-rotation, 0deg) + 2deg)) scale(0.99);
    }

    90% {
        transform: translate(-8px, -5px) rotate(calc(var(--base-rotation, 0deg) - 1deg)) scale(1.02);
    }
}

/* Dollar Rain Animation */
.dollar-float {
    animation: dollarFall 12s linear infinite;
    filter: drop-shadow(0 0 5px rgba(57, 255, 20, 0.3));
}

@keyframes dollarFall {
    0% {
        top: -15%;
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(20px) rotate(15deg);
    }

    50% {
        transform: translateX(-15px) rotate(-10deg);
    }

    75% {
        transform: translateX(10px) rotate(20deg);
    }

    100% {
        top: 110%;
        transform: translateX(-10px) rotate(360deg);
    }
}

/* Character Glow Animation */
.character-glow {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.15);
    }
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--pumpi-green);
    border: 2px solid #000;
}

/* ========== GLITCH EFFECT (Blue Pill) ========== */
#glitch-overlay {
    background: transparent;
    mix-blend-mode: difference;
}

.glitch-slice {
    position: absolute;
    width: 100%;
    height: 33.33%;
    background: transparent;
    overflow: hidden;
}

.glitch-slice:nth-child(1) {
    top: 0;
}

.glitch-slice:nth-child(2) {
    top: 33.33%;
}

.glitch-slice:nth-child(3) {
    top: 66.66%;
}

.glitch-active {
    animation: glitchEffect 0.15s steps(2) infinite;
}

.glitch-active .glitch-slice:nth-child(1) {
    animation: glitchSlice1 0.2s steps(1) infinite;
    background: rgba(255, 0, 0, 0.3);
}

.glitch-active .glitch-slice:nth-child(2) {
    animation: glitchSlice2 0.15s steps(1) infinite;
    background: rgba(0, 255, 255, 0.3);
}

.glitch-active .glitch-slice:nth-child(3) {
    animation: glitchSlice3 0.18s steps(1) infinite;
    background: rgba(255, 0, 255, 0.3);
}

@keyframes glitchEffect {

    0%,
    100% {
        filter: none;
    }

    25% {
        filter: hue-rotate(90deg);
    }

    50% {
        filter: invert(1);
    }

    75% {
        filter: hue-rotate(-90deg) saturate(2);
    }
}

@keyframes glitchSlice1 {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-20px);
    }

    40% {
        transform: translateX(15px);
    }

    60% {
        transform: translateX(-10px);
    }

    80% {
        transform: translateX(25px);
    }
}

@keyframes glitchSlice2 {

    0%,
    100% {
        transform: translateX(0);
    }

    15% {
        transform: translateX(30px);
    }

    35% {
        transform: translateX(-25px);
    }

    55% {
        transform: translateX(20px);
    }

    85% {
        transform: translateX(-15px);
    }
}

@keyframes glitchSlice3 {

    0%,
    100% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(-15px);
    }

    30% {
        transform: translateX(20px);
    }

    50% {
        transform: translateX(-30px);
    }

    70% {
        transform: translateX(10px);
    }
}

/* Site corruption effect */
.site-corrupted {
    animation: siteCorrupt 0.1s steps(2) infinite;
}

@keyframes siteCorrupt {
    0% {
        transform: translate(0, 0) skewX(0);
        filter: none;
    }

    25% {
        transform: translate(-5px, 2px) skewX(1deg);
        filter: hue-rotate(90deg);
    }

    50% {
        transform: translate(3px, -3px) skewX(-0.5deg);
        filter: saturate(3) contrast(1.5);
    }

    75% {
        transform: translate(2px, 1px) skewX(0.5deg);
        filter: hue-rotate(-90deg);
    }

    100% {
        transform: translate(-2px, -1px) skewX(-1deg);
        filter: invert(0.1);
    }
}

/* ========== PUMP EFFECT (Green Pill) ========== */
#pump-overlay {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.pump-active {
    animation: pumpGlow 0.3s ease-out infinite;
}

@keyframes pumpGlow {

    0%,
    100% {
        background: radial-gradient(circle, rgba(57, 255, 20, 0.2) 0%, transparent 70%);
    }

    50% {
        background: radial-gradient(circle, rgba(57, 255, 20, 0.5) 0%, transparent 70%);
    }
}

/* Shake effect for pump */
.shake {
    animation: shake 0.1s linear infinite;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }
}