.infection-level-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #88ddff;
    border-radius: 5px;
    color: #88ddff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 999999;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.5s ease;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(136, 221, 255, 0.5);
    box-shadow: 0 0 20px rgba(136, 221, 255, 0.3);
}

.infection-level-indicator.show {
    opacity: 1;
    transform: translateX(0);
}


.infection-level-indicator.level-1 {
    border-color: #88ddff;
    color: #88ddff;
    animation: pulse-blue 2s ease-in-out infinite;
}


.infection-level-indicator.level-3 {
    border-color: #ffaa00;
    color: #ffaa00;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.6);
    animation: pulse-orange 1.5s ease-in-out infinite;
}


.infection-level-indicator.level-5 {
    border-color: #ff4444;
    color: #ff4444;
    text-shadow: 0 0 15px rgba(255, 68, 68, 0.8);
    animation: pulse-red 1s ease-in-out infinite, glitch-shake 0.5s infinite;
    background: rgba(255, 68, 68, 0.1);
}

@keyframes pulse-blue {
    0%, 100% {
        box-shadow: 0 0 20px rgba(136, 221, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(136, 221, 255, 0.6);
    }
}

@keyframes pulse-orange {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 170, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 35px rgba(255, 170, 0, 0.7);
    }
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 25px rgba(255, 68, 68, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 68, 68, 0.9);
    }
}

@keyframes glitch-shake {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-2px) translateY(1px); }
    50% { transform: translateX(2px) translateY(-1px); }
    75% { transform: translateX(-1px) translateY(-2px); }
}




body.infection-glitch::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999995; 
    background: linear-gradient(
        90deg,
        rgba(255, 0, 0, 0.1) 0%,
        rgba(0, 255, 0, 0.1) 50%,
        rgba(0, 0, 255, 0.1) 100%
    );
    animation: body-glitch-overlay 0.15s steps(3);
    mix-blend-mode: difference;
}

body.infection-glitch .terminal-body,
body.infection-glitch .classified-content {
    animation: content-shake 0.15s steps(2);
}

@keyframes body-glitch-overlay {
    0% {
        opacity: 0;
        filter: hue-rotate(0deg) saturate(2);
        transform: translateX(0);
    }
    20% {
        opacity: 0.8;
        filter: hue-rotate(90deg) saturate(3);
        transform: translateX(-5px);
    }
    40% {
        opacity: 0.6;
        filter: hue-rotate(180deg) saturate(2);
        transform: translateX(5px);
    }
    60% {
        opacity: 0.8;
        filter: hue-rotate(270deg) saturate(3);
        transform: translateX(-3px);
    }
    80% {
        opacity: 0.5;
        filter: hue-rotate(360deg) saturate(2);
        transform: translateX(3px);
    }
    100% {
        opacity: 0;
        filter: hue-rotate(0deg) saturate(1);
        transform: translateX(0);
    }
}

@keyframes content-shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px) translateY(1px); }
    50% { transform: translateX(2px) translateY(-1px); }
    75% { transform: translateX(-1px) translateY(2px); }
    100% { transform: translateX(0); }
}



.cursor-crystal-trail {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #88ddff 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    animation: trail-fade 1s ease-out forwards;
    box-shadow: 0 0 10px rgba(136, 221, 255, 0.8);
}

@keyframes trail-fade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}


[data-infection-level="3"] .cursor-crystal-trail,
[data-infection-level="4"] .cursor-crystal-trail {
    background: radial-gradient(circle, #ffaa00 0%, transparent 70%);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.8);
}

[data-infection-level="5"] .cursor-crystal-trail {
    background: radial-gradient(circle, #ff4444 0%, transparent 70%);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.9);
    animation: trail-fade 1s ease-out forwards, trail-glitch 0.3s infinite;
}

@keyframes trail-glitch {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
}



.text-corruption {
    animation: text-corrupt 0.3s steps(10);
}

@keyframes text-corrupt {
    0% {
        opacity: 1;
        color: inherit;
    }
    20% {
        opacity: 0.8;
        color: #88ddff;
        text-shadow: 2px 0 0 #ff4444, -2px 0 0 #44ff44;
    }
    40% {
        opacity: 0.6;
        color: #ffaa00;
        text-shadow: -2px 0 0 #88ddff, 2px 0 0 #ff4444;
    }
    60% {
        opacity: 0.8;
        color: #ff44ff;
        text-shadow: 2px 2px 0 #44ff44, -2px -2px 0 #ffaa00;
    }
    80% {
        opacity: 0.9;
        color: #44ff44;
        text-shadow: 0 0 5px #88ddff;
    }
    100% {
        opacity: 1;
        color: inherit;
        text-shadow: none;
    }
}



.crystal-infection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999997;
    opacity: 0.15;
    mix-blend-mode: screen;
}

.crystal-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(45deg, transparent 48%, rgba(136, 221, 255, 0.1) 49%, rgba(136, 221, 255, 0.1) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(136, 221, 255, 0.1) 49%, rgba(136, 221, 255, 0.1) 51%, transparent 52%);
    background-size: 100px 100px;
    animation: crystal-growth 20s linear infinite;
}

.crystal-pattern:nth-child(2) {
    background-size: 150px 150px;
    animation-duration: 25s;
    animation-direction: reverse;
    opacity: 0.5;
}

.crystal-pattern:nth-child(3) {
    background-size: 80px 80px;
    animation-duration: 15s;
    opacity: 0.3;
}

@keyframes crystal-growth {
    0% {
        background-position: 0 0;
        opacity: 0.15;
    }
    50% {
        opacity: 0.25;
    }
    100% {
        background-position: 100px 100px;
        opacity: 0.15;
    }
}



.eiren-special-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    max-width: 600px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #88ddff;
    border-radius: 10px;
    color: #88ddff;
    font-family: 'Courier New', monospace;
    z-index: 9999999;
    opacity: 0;
    animation: message-appear 0.5s ease-out 0.5s forwards;
    box-shadow:
        0 0 30px rgba(136, 221, 255, 0.5),
        inset 0 0 20px rgba(136, 221, 255, 0.1);
}

.eiren-special-message .message-header {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
    animation: header-pulse 2s ease-in-out infinite;
}

.eiren-special-message .message-content {
    font-size: 1rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(136, 221, 255, 0.5);
}

.eiren-special-message .message-signature {
    text-align: right;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    color: #ffaa00;
    font-weight: bold;
}

.eiren-special-message .btn-close-message {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.8rem;
    background: transparent;
    border: 2px solid #88ddff;
    color: #88ddff;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(136, 221, 255, 0.5);
}

.eiren-special-message .btn-close-message:hover {
    background: #88ddff;
    color: #000;
    box-shadow: 0 0 20px rgba(136, 221, 255, 0.8);
    text-shadow: none;
}

@keyframes message-appear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes header-pulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 68, 68, 1), 0 0 30px rgba(255, 68, 68, 0.6);
    }
}




[data-infection-level="0"] {
    
}


[data-infection-level="1"] {
    
}


[data-infection-level="2"] {
    
}


[data-infection-level="3"] {
    
}


[data-infection-level="4"] {
    
}


[data-infection-level="5"] {
    
}

[data-infection-level="5"] .crystal-infection-overlay {
    opacity: 0.5; 
    animation: overlay-intensify 2s ease-in-out infinite;
}

@keyframes overlay-intensify {
    0%, 100% {
        opacity: 0.4;
        filter: hue-rotate(0deg) saturate(1.5);
    }
    50% {
        opacity: 0.7;
        filter: hue-rotate(180deg) saturate(2);
    }
}


[data-infection-level="5"] .cursor-crystal-trail {
    width: 15px;
    height: 15px;
    box-shadow:
        0 0 20px rgba(255, 68, 68, 1),
        0 0 35px rgba(136, 221, 255, 0.8),
        0 0 50px rgba(255, 170, 0, 0.6);
}


[data-infection-level="5"]::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 999996;
    border: 3px solid transparent;
    border-image: linear-gradient(
        45deg,
        rgba(136, 221, 255, 0.5),
        rgba(255, 68, 68, 0.5),
        rgba(255, 170, 0, 0.5),
        rgba(136, 221, 255, 0.5)
    ) 1;
    animation: border-glitch 3s linear infinite;
}

@keyframes border-glitch {
    0%, 100% {
        border-width: 3px;
        filter: hue-rotate(0deg);
    }
    25% {
        border-width: 5px;
        filter: hue-rotate(90deg);
    }
    50% {
        border-width: 2px;
        filter: hue-rotate(180deg);
    }
    75% {
        border-width: 6px;
        filter: hue-rotate(270deg);
    }
}



@media (max-width: 768px) {
    .infection-level-indicator {
        top: 10px;
        right: 10px;
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }

    .eiren-special-message {
        max-width: 90%;
        padding: 1.5rem;
        font-size: 0.9rem;
    }

    .crystal-pattern {
        background-size: 50px 50px;
    }

    .cursor-crystal-trail {
        width: 6px;
        height: 6px;
    }
}




[data-infection-level="5"] {
    position: relative;
}

[data-infection-level="5"] .terminal-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(136, 221, 255, 0.4) 2px, transparent 2px),
        radial-gradient(circle, rgba(255, 68, 68, 0.4) 2px, transparent 2px),
        radial-gradient(circle, rgba(255, 170, 0, 0.4) 1px, transparent 1px);
    background-size: 80px 80px, 120px 120px, 60px 60px;
    background-position: 0 0, 40px 40px, 20px 20px;
    pointer-events: none;
    z-index: 999993;
    animation: particles-float-intense 15s linear infinite;
    opacity: 0.6;
}

@keyframes particles-float-intense {
    0% {
        background-position: 0 0, 40px 40px, 20px 20px;
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(180deg);
    }
    100% {
        background-position: 80px 80px, 120px 120px, 60px 60px;
        filter: hue-rotate(360deg);
    }
}




[data-infection-level="4"]::before,
[data-infection-level="5"]::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999994;
    background: radial-gradient(
        circle at center,
        rgba(136, 221, 255, 0.1) 0%,
        rgba(255, 68, 68, 0.05) 50%,
        rgba(255, 170, 0, 0.1) 100%
    );
    animation: subtle-body-pulse 3s ease-in-out infinite;
    mix-blend-mode: overlay;
}


[data-infection-level="5"]::before {
    background: radial-gradient(
        circle at center,
        rgba(136, 221, 255, 0.2) 0%,
        rgba(255, 68, 68, 0.15) 50%,
        rgba(255, 170, 0, 0.2) 100%
    );
    animation: intense-body-pulse 2s ease-in-out infinite;
}

@keyframes subtle-body-pulse {
    0%, 100% {
        opacity: 0.3;
        filter: brightness(1) contrast(1);
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        filter: brightness(1.1) contrast(1.1) saturate(1.5);
        transform: scale(1.01);
    }
}

@keyframes intense-body-pulse {
    0%, 100% {
        opacity: 0.5;
        filter: brightness(1) contrast(1) hue-rotate(0deg);
        transform: scale(1);
    }
    25% {
        opacity: 0.7;
        filter: brightness(1.15) contrast(1.15) saturate(2) hue-rotate(45deg);
        transform: scale(1.02);
    }
    50% {
        opacity: 0.9;
        filter: brightness(1.2) contrast(1.2) saturate(2.5) hue-rotate(90deg);
        transform: scale(1.01);
    }
    75% {
        opacity: 0.7;
        filter: brightness(1.15) contrast(1.15) saturate(2) hue-rotate(45deg);
        transform: scale(1.02);
    }
}