body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


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

::-webkit-scrollbar-track {
    background: #050510;
}

::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 3px;
}


.opacity-0 {
    opacity: 0 !important;
    pointer-events: none;
}

.opacity-100 {
    opacity: 1 !important;
    pointer-events: auto;
}

.translate-y-4 {
    transform: translateY(1rem);
}

.translate-y-0 {
    transform: translateY(0);
}


.pattern-tag {
    display: inline-block;
    background: rgba(55, 65, 81, 0.5);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 4px;
    margin-bottom: 4px;
    border: 1px solid rgba(75, 85, 99, 0.4);
}

/* State: Cracked (Weak) - Visual Fracture */
.state-cracked {
    background-color: #ef4444 !important;
    clip-path: polygon(0% 0%, 15% 0%, 20% 30%, 25% 0%, 40% 0%, 45% 40%, 50% 0%, 65% 0%, 70% 20%, 75% 0%, 90% 0%, 95% 50%, 100% 0%, 100% 100%, 0% 100%);
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-2px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(2px, 0, 0);
    }
}

/* State: Melting (Medium) - Gooey Drip */
.state-melting {
    background-color: #eab308 !important;
    filter: url('#goo');
    position: relative;
    border-radius: 4px;
}

.state-melting::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: inherit;
    border-radius: 50%;
    right: 20%;
    top: 5px;
    animation: drip 2s infinite ease-in;
    pointer-events: none;
}

.state-melting::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: inherit;
    border-radius: 50%;
    right: 60%;
    top: 5px;
    animation: drip 3s infinite ease-in 0.5s;
    pointer-events: none;
}

@keyframes drip {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    80% {
        transform: translateY(20px);
        opacity: 1;
    }

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

/* State: Exploding (Strong) - Power Glow */
.state-exploding {
    background: linear-gradient(90deg, #22c55e, #10b981, #34d399, #22c55e) !important;
    background-size: 300% 100% !important;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.6), 0 0 30px rgba(34, 197, 94, 0.4);
    animation: pulse 1.5s infinite, gradientMove 2s linear infinite !important;
    position: relative;
    z-index: 10;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}