html,
body {
    margin: 0;
    padding: 0;
    background: #0B0F1A;
    overflow: hidden;
    cursor: url('taser_before.png') 16 16, auto;
    font-family: 'Press Start 2P', 'Courier New', monospace;
}

#cat {
    position: absolute;
    width: 100px;
    z-index: 10;
    pointer-events: auto;
    cursor: inherit;
    transition: filter 0.1s ease;
}

.being-zapped {
    animation: electricShake 0.1s infinite;
    filter: brightness(1.2) saturate(1.5);
}

@keyframes electricShake {
    0% { transform: translate(0px, 0px); }
    10% { transform: translate(-1px, -1px); }
    20% { transform: translate(1px, -1px); }
    30% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, 1px); }
    50% { transform: translate(-1px, -1px); }
    60% { transform: translate(1px, -1px); }
    70% { transform: translate(-1px, 1px); }
    80% { transform: translate(1px, 1px); }
    90% { transform: translate(-1px, -1px); }
    100% { transform: translate(0px, 0px); }
}

#voltageMeter {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    color: #ffffff;
    z-index: 100;
}

.meter-label {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-align: center;
    color: #ffffff;
}

.meter-display {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #ffffff;
    text-align: center;
}

.meter-unit {
    font-size: 16px;
    color: #ffffff;
}

.meter-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meter-icon {
    font-size: 16px;
    color: #ffff00;
    text-shadow: 0 0 8px #ffff00;
}

.meter-bar {
    flex: 1;
    height: 24px;
    background: rgba(255, 165, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #ffa500;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffa500 0%, #ffff00 100%);
    border-radius: 9px;
    transition: width 0.3s ease;
    box-shadow: 0 0 12px rgba(255, 165, 0, 0.8);
}

.meter-critical {
    animation: voltageFlicker 0.1s infinite;
    color: #ff0000 !important;
    text-shadow: 0 0 12px #ff0000 !important;
}

@keyframes voltageFlicker {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.smoke-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(200, 200, 200, 0.4) 0%, rgba(150, 150, 150, 0.2) 50%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 8;
}

@keyframes smokeRise {
    0% {
        transform: translateY(0px) scale(0.5);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-30px) scale(1);
        opacity: 0.3;
    }
    100% {
        transform: translateY(-60px) scale(1.5);
        opacity: 0;
    }
}

.shock {
    position: absolute;
    width: 150px;
    height: 150px;
    pointer-events: none;
    z-index: 9;
}

.lightning {
    position: absolute;
    width: 3px;
    background: linear-gradient(0deg, 
        transparent 0%, 
        #ffff00 15%, 
        #00ffff 35%, 
        #ffffff 50%, 
        #00ffff 65%, 
        #ffff00 85%, 
        transparent 100%);
    box-shadow: 0 0 6px #ffff00, 0 0 12px #00ffff, 0 0 18px #ffffff, 0 0 24px #00ffff;
    animation: lightningAnim 0.15s ease-out forwards;
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #ffffff 0%, #ffff00 40%, #00ffff 70%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 4px #ffff00, 0 0 8px #00ffff, 0 0 12px #ffffff;
    animation: sparkAnim 0.2s ease-out forwards;
}

@keyframes lightningAnim {
    0% {
        opacity: 1;
        transform: scaleY(0);
        filter: brightness(3);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
        filter: brightness(2);
    }
    100% {
        opacity: 0;
        transform: scaleY(0.8);
        filter: brightness(0);
    }
}

@keyframes sparkAnim {
    0% {
        opacity: 1;
        transform: scale(0);
        filter: brightness(3);
    }
    50% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(2);
    }
    100% {
        opacity: 0;
        transform: scale(0.2);
        filter: brightness(0);
    }
}

.electric-aura {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 255, 0, 0.15) 0%,
        rgba(0, 255, 255, 0.1) 20%, 
        rgba(255, 255, 0, 0.08) 40%,
        rgba(0, 255, 255, 0.05) 60%, 
        transparent 80%);
    animation: auraAnim 0.15s ease-out forwards;
}

@keyframes auraAnim {
    0% {
        transform: scale(0.5);
        opacity: 1;
        box-shadow: 0 0 15px rgba(255, 255, 0, 0.9), 0 0 25px rgba(0, 255, 255, 0.7);
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
        box-shadow: 0 0 25px rgba(0, 255, 255, 0.6), 0 0 35px rgba(255, 255, 0, 0.5);
    }
    100% {
        transform: scale(2);
        opacity: 0;
        box-shadow: 0 0 40px rgba(255, 255, 0, 0.2), 0 0 50px rgba(0, 255, 255, 0.1);
    }
}

.flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 255, 0, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 255, 255, 0.04) 0%, transparent 35%),
        radial-gradient(ellipse at 40% 80%, rgba(255, 255, 0, 0.05) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 20%, rgba(0, 255, 255, 0.03) 0%, transparent 30%),
        linear-gradient(135deg, 
            transparent 0%,
            rgba(255, 255, 0, 0.02) 20%, 
            rgba(0, 255, 255, 0.015) 40%,
            rgba(255, 255, 255, 0.02) 50%,
            rgba(0, 255, 255, 0.015) 60%, 
            rgba(255, 255, 0, 0.02) 80%,
            transparent 100%);
    mix-blend-mode: screen;
    animation: electricFlashAnim 0.12s ease-out forwards;
    z-index: 1;
    pointer-events: none;
}

@keyframes electricFlashAnim {
    0% {
        opacity: 1;
        filter: brightness(1.8) saturate(2);
    }
    15% {
        opacity: 0.3;
        filter: brightness(0.8) saturate(1.5);
    }
    30% {
        opacity: 0.8;
        filter: brightness(1.4) saturate(2.2);
    }
    45% {
        opacity: 0.2;
        filter: brightness(0.6) saturate(1);
    }
    60% {
        opacity: 0.6;
        filter: brightness(1.1) saturate(1.8);
    }
    80% {
        opacity: 0.1;
        filter: brightness(0.4) saturate(0.8);
    }
    100% {
        opacity: 0;
        filter: brightness(0) saturate(0);
    }
}

/* ===== ELECTRIC VOID BACKGROUND ===== */

.electric-void {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    pointer-events: none;
    transition: filter 0.3s ease;
}

.electric-void.zap-pulse {
    filter: brightness(1.2) saturate(1.5);
}

.electric-void.storm-mode {
    filter: brightness(1.4) contrast(1.2) saturate(2);
}

.electric-void.overload-mode {
    background: radial-gradient(ellipse at center, rgba(255, 0, 0, 0.3) 0%, rgba(139, 0, 0, 0.2) 50%, transparent 100%);
    filter: brightness(1.8) contrast(1.5) saturate(3);
    animation: overloadGlitch 0.1s infinite;
}

.electric-void.screen-shake {
    animation: screenShake 0.3s ease-out;
}

@keyframes overloadGlitch {
    0% { filter: brightness(1.8) contrast(1.5) saturate(3) hue-rotate(0deg); }
    25% { filter: brightness(2.2) contrast(1.8) saturate(4) hue-rotate(10deg); }
    50% { filter: brightness(1.5) contrast(1.2) saturate(2.5) hue-rotate(-5deg); }
    75% { filter: brightness(2.0) contrast(1.6) saturate(3.5) hue-rotate(5deg); }
    100% { filter: brightness(1.8) contrast(1.5) saturate(3) hue-rotate(0deg); }
}

@keyframes screenShake {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-2px, -1px); }
    20% { transform: translate(2px, 1px); }
    30% { transform: translate(-1px, 2px); }
    40% { transform: translate(1px, -1px); }
    50% { transform: translate(-2px, 1px); }
    60% { transform: translate(2px, -2px); }
    70% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 2px); }
    90% { transform: translate(-1px, -2px); }
    100% { transform: translate(0, 0); }
}

/* CRT and Digital Distortion Effects */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        );
    z-index: 100;
    pointer-events: none;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0px); }
    100% { transform: translateY(4px); }
}

.em-interference {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, 
            transparent 0%,
            rgba(0, 255, 255, 0.03) 20%,
            transparent 40%,
            rgba(255, 0, 255, 0.02) 60%,
            transparent 80%,
            rgba(255, 255, 0, 0.03) 100%
        );
    z-index: -5;
    pointer-events: none;
    animation: emWave 3s ease-in-out infinite;
}

@keyframes emWave {
    0% { transform: translateX(-100px) scaleX(0.8); opacity: 0.5; }
    50% { transform: translateX(0px) scaleX(1.2); opacity: 1; }
    100% { transform: translateX(100px) scaleX(0.8); opacity: 0.5; }
}

/* Subtle lightning arcs across background */
.void-lightning {
    position: absolute;
    width: 1px;
    height: 80vh;
    background: linear-gradient(0deg,
        transparent 0%,
        rgba(100, 200, 255, 0.3) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(100, 200, 255, 0.3) 70%,
        transparent 100%);
    box-shadow: 0 0 4px rgba(100, 200, 255, 0.4);
    opacity: 0;
    animation: voidBolt 8s infinite;
}

.void-lightning:nth-child(1) {
    left: 15%;
    top: 10%;
    animation-delay: 0s;
}

.void-lightning:nth-child(2) {
    left: 60%;
    top: 5%;
    animation-delay: 3s;
}

.void-lightning:nth-child(3) {
    left: 85%;
    top: 15%;
    animation-delay: 6s;
}

@keyframes voidBolt {
    0% { opacity: 0; transform: scaleY(0); }
    1% { opacity: 1; transform: scaleY(1); }
    2% { opacity: 0.7; transform: scaleY(0.9); }
    3% { opacity: 0; transform: scaleY(1); }
    100% { opacity: 0; }
}

/* Floating electric particles */
.electric-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(100, 200, 255, 0.8) 60%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(100, 200, 255, 0.6);
    animation: particleFloat 12s infinite linear;
}

.electric-particle:nth-child(4) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.electric-particle:nth-child(5) {
    top: 60%;
    left: 30%;
    animation-delay: 3s;
    animation-duration: 18s;
}

.electric-particle:nth-child(6) {
    top: 40%;
    left: 70%;
    animation-delay: 6s;
    animation-duration: 12s;
}

.electric-particle:nth-child(7) {
    top: 80%;
    left: 50%;
    animation-delay: 9s;
    animation-duration: 20s;
}

.electric-particle:nth-child(8) {
    top: 15%;
    left: 90%;
    animation-delay: 12s;
    animation-duration: 16s;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0px) translateX(0px);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) translateX(-15px);
    }
}

/* Aurora waveforms (EM pulses) */
.aurora-wave {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(100, 200, 255, 0.1) 20%,
        rgba(100, 200, 255, 0.3) 50%,
        rgba(100, 200, 255, 0.1) 80%,
        transparent 100%);
    box-shadow: 0 0 10px rgba(100, 200, 255, 0.2);
    opacity: 0;
    animation: auroraWave 10s infinite;
}

.aurora-wave:nth-child(9) {
    top: 30%;
    animation-delay: 0s;
    transform: rotate(2deg);
}

.aurora-wave:nth-child(10) {
    top: 70%;
    animation-delay: 5s;
    transform: rotate(-1deg);
    animation-duration: 12s;
}

@keyframes auroraWave {
    0% {
        opacity: 0;
        transform: translateX(-100px) scaleX(0.8);
    }
    30% {
        opacity: 0.6;
        transform: translateX(0px) scaleX(1);
    }
    70% {
        opacity: 0.6;
        transform: translateX(0px) scaleX(1);
    }
    100% {
        opacity: 0;
        transform: translateX(100px) scaleX(0.8);
    }
}

/* Interactive white lightning flash overlay */
.lightning-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.15) 100%);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    animation: lightningFlash 0.15s ease-out forwards;
}

@keyframes lightningFlash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* ZapStats Panel (Bottom Left) */
#zapStats {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ffff;
    border-radius: 5px;
    padding: 15px;
    color: #00ffff;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 13px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    z-index: 50;
}

#zapStats .stat-line {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

#zapStats .stat-icon {
    font-size: 12px;
}

#zapStats .stat-value {
    color: #ffffff;
    font-weight: bold;
}

/* Footer (Bottom Center) */
#footer {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 25px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 12px;
    color: #666;
    z-index: 50;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

#footer .token-address {
    color: #ffff00;
    position: relative;
    font-size: 10px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    animation: priceFlicker 2s infinite;
}

@keyframes priceFlicker {
    0% { opacity: 1; }
    90% { opacity: 1; }
    95% { opacity: 0.3; }
    100% { opacity: 1; }
}

#footer .token-address::after {
    content: "⚡";
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 8px;
    color: #00ffff;
    animation: sparkle 1.5s infinite;
}

@keyframes sparkle {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(0.5); }
}

#footer .footer-buttons {
    display: flex;
    gap: 10px;
}

#footer .footer-btn {
    background: transparent;
    border: 1px solid #666;
    color: #666;
    padding: 6px 16px;
    font-size: 10px;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

#footer .footer-btn:hover {
    background: #00ffff;
    border-color: #00ffff;
    color: #000;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}



#footer .warning {
    color: #ff6600;
    font-size: 8px;
    animation: glitchRotate 8s infinite;
    max-width: 250px;
    text-align: center;
}

@keyframes glitchRotate {
    0% { transform: rotate(0deg); opacity: 1; }
    25% { transform: rotate(1deg); opacity: 0.8; }
    50% { transform: rotate(0deg); opacity: 1; }
    75% { transform: rotate(-1deg); opacity: 0.9; }
    100% { transform: rotate(0deg); opacity: 1; }
}

/* Cat Enhancement - Erratic Movement */
#cat.erratic {
    animation: erraticBounce 0.5s ease-in-out infinite;
}

@keyframes erraticBounce {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.1); }
    50% { transform: rotate(-3deg) scale(0.9); }
    75% { transform: rotate(2deg) scale(1.05); }
    100% { transform: rotate(0deg) scale(1); }
}

/* Overload Mode - Cat Clones */
.cat-clone {
    position: absolute;
    width: 100px;
    z-index: 15;
    pointer-events: none;
    filter: brightness(1.5) contrast(1.3);
    animation: cloneGlitch 0.15s infinite;
}

@keyframes cloneGlitch {
    0% { opacity: 0.8; transform: scale(1); filter: hue-rotate(0deg); }
    25% { opacity: 1; transform: scale(1.1); filter: hue-rotate(90deg); }
    50% { opacity: 0.6; transform: scale(0.9); filter: hue-rotate(180deg); }
    75% { opacity: 1; transform: scale(1.05); filter: hue-rotate(270deg); }
    100% { opacity: 0.8; transform: scale(1); filter: hue-rotate(360deg); }
}

/* Mute Button (Top Left) */
.mute-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 32px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.6);
    user-select: none;
    filter: drop-shadow(0 0 4px rgba(255, 255, 0, 0.4));
}

.mute-btn:hover {
    transform: scale(1.1);
    text-shadow: 0 0 12px rgba(255, 255, 0, 0.9);
    filter: drop-shadow(0 0 8px rgba(255, 255, 0, 0.7));
}

.mute-btn.muted {
    text-shadow: 0 0 8px rgba(255, 102, 0, 0.6);
    filter: drop-shadow(0 0 4px rgba(255, 102, 0, 0.4));
}

.mute-btn.muted:hover {
    text-shadow: 0 0 12px rgba(255, 102, 0, 0.9);
    filter: drop-shadow(0 0 8px rgba(255, 102, 0, 0.7));
}

/* Golden Battery (Combo Reward) */
.golden-battery {
    position: absolute;
    width: 38px;
    height: 48px;
    background: linear-gradient(45deg, #ffd700 0%, #ffff00 50%, #ffd700 100%);
    border: 2px solid #ffaa00;
    border-radius: 6px;
    cursor: inherit;
    z-index: 20;
    animation: batteryFloat 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    /* Ensure the entire element is clickable */
    pointer-events: auto;
    /* Add padding area for easier clicking */
    padding: 4px;
    margin: -4px; /* Compensate for padding in positioning */
}

.golden-battery::before {
    content: "⚡";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 16px;
    font-weight: bold;
    /* Ensure pseudo-element doesn't block clicks */
    pointer-events: none;
}

@keyframes batteryFloat {
    0% { transform: translateY(0px) scale(1) rotate(0deg); }
    50% { transform: translateY(-15px) scale(1.1) rotate(10deg); }
    100% { transform: translateY(0px) scale(1) rotate(0deg); }
} 