/* ===================================
   АНИМАЦИЯ ЛЕТАЮЩИХ ШАШЕК (ГАЛОК)
   Шашки летают как птицы в небе
   =================================== */

.checkers-flying-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.checkers-flying-container::before,
.checkers-flying-container::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 50px;
    background: white;
    z-index: 2;
}

.checkers-flying-container::before {
    left: 0;
}

.checkers-flying-container::after {
    right: 0;
}

.flying-checker {
    position: absolute;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 
        0 0 10px rgba(0, 255, 136, 0.6),
        0 0 20px rgba(0, 255, 136, 0.4);
    opacity: 0.5;
    will-change: transform, left;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    transform-origin: center center;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}

.flying-checker div {
    color: inherit;
    text-shadow: inherit;
    font-family: inherit;
    font-weight: inherit;
}

.bird-container {
    color: inherit;
    text-shadow: inherit;
    font-family: inherit;
    font-weight: inherit;
}

.bird-line {
    color: inherit;
    text-shadow: inherit;
    font-family: inherit;
    font-weight: inherit;
    transition: none;
    animation: none;
}

.artifact-container {
    color: inherit;
    text-shadow: inherit;
    font-family: inherit;
    font-weight: inherit;
}

.artifact-symbol-1,
.artifact-symbol-2 {
    color: inherit;
    text-shadow: inherit;
    font-family: inherit;
    font-weight: inherit;
    transition: none;
    animation: none;
}

/* Вариации цвета для шашек */
.flying-checker:nth-child(3n) {
    color: var(--accent-color);
    text-shadow: 
        0 0 10px rgba(0, 212, 255, 0.6),
        0 0 20px rgba(0, 212, 255, 0.4);
}

.flying-checker:nth-child(3n+1) {
    color: #667eea;
    text-shadow: 
        0 0 10px rgba(102, 126, 234, 0.6),
        0 0 20px rgba(102, 126, 234, 0.4);
}

.flying-checker:nth-child(3n+2) {
    color: var(--secondary-color);
    text-shadow: 
        0 0 10px rgba(255, 0, 255, 0.6),
        0 0 20px rgba(255, 0, 255, 0.4);
}

/* Адаптивность - меньше артефактов на мобильных и убираем белые полоски */
@media (max-width: 768px) {
    .flying-checker:nth-child(n+5) {
        display: none;
    }
    
    .checkers-flying-container::before,
    .checkers-flying-container::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .flying-checker:nth-child(n+3) {
        display: none;
    }
    
    .checkers-flying-container::before,
    .checkers-flying-container::after {
        display: none;
    }
}

/* Отключение для prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .flying-checker {
        display: none !important;
    }
}

/* Делаем анимацию менее заметной на очень маленьких экранах */
@media (max-height: 600px) {
    .flying-checker {
        opacity: 0.15;
    }
}

