/* === GLITCH EFFECT DLA STATKU === */
.statek-glitch {
    position: relative;
    animation: glitch-ship 4s infinite linear;
}

.statek-glitch::before,
.statek-glitch::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: inherit;           /* ←←←←←←←←←←←←←←←←←←←←←←←←←← */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
}

.statek-glitch::before {
    background-color: #00ff4100;
    animation: glitch-layer-1 4s infinite linear;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.statek-glitch::after {
    background-color: #ff00ff00;
    animation: glitch-layer-2 4s infinite linear;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}


@keyframes glitch-layer-1 {
    0%, 100%   { transform: translate(0); opacity: 0; }
    2%         { opacity: 0.7; transform: translate(-6px, -4px); }
    2.3%       { opacity: 0; }
    10%        { opacity: 0.6; transform: translate(8px, 3px); }
    10.3%      { opacity: 0; }
    35%        { opacity: 0.5; transform: translate(-4px, 6px); }
    35.3%      { opacity: 0; }
    68%        { opacity: 0; }
    70%        { opacity: 0.8; transform: translate(5px, -5px) skew(10deg); }
    70.4%      { opacity: 0; }
    98%        { opacity: 0; }
}

@keyframes glitch-layer-2 {
    0%, 100%   { transform: translate(0); opacity: 0; }
    15%        { opacity: 0.7; transform: translate(6px, -3px); }
    15.4%      { opacity: 0; }
    40%        { opacity: 0.6; transform: translate(-7px, 5px); }
    40.4%      { opacity: 0; }
    75%        { opacity: 0.8; transform: translate(-5px, -7px) skew(-15deg); }
    75.5%      { opacity: 0; }
}

@keyframes glitch-ship {
    0%, 94%, 100% { filter: hue-rotate(0deg) brightness(1); }
    95%           { filter: hue-rotate(90deg) brightness(1.4) drop-shadow(0 0 20px #00ff41); }
    96%           { filter: hue-rotate(180deg) brightness(0.9); }
    97%           { filter: hue-rotate(270deg) brightness(1.5) drop-shadow(0 0 30px #ff00ff); }
}