/* ===================================
   СТИЛИ ДЛЯ МИНИ-ИГРЫ "РУБКА СУГРОБА"
   snowdrift_game.css
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

/* Основной контейнер игры */
.snowdrift-game-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.97);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: snowdriftFadeIn 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

@keyframes snowdriftFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Игровой контейнер */
.snowdrift-game {
    width: 90%;
    max-width: 600px;
    height: 85vh;
    max-height: 750px;
    background: linear-gradient(180deg, 
        #1e1e24 0%, 
        #252530 30%,
        #1a1a20 60%,
        #15151a 100%
    );
    border-radius: 12px;
    box-shadow: 
        0 0 60px rgba(80, 20, 20, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid #3a2020;
    font-family: 'Roboto', sans-serif;
}

/* Заголовок игры */
.snowdrift-game .game-header {
    background: linear-gradient(180deg, #251515 0%, #1a0f0f 100%);
    padding: 15px 20px;
    border-bottom: 1px solid #3a2525;
}

.snowdrift-game .game-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.snowdrift-game .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c0c0c0;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

.snowdrift-game .stat-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
}

.snowdrift-game .stat-value {
    min-width: 50px;
    text-align: center;
    background: rgba(80, 30, 30, 0.3);
    padding: 6px 14px;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    border: 1px solid #402020;
}

.snowdrift-game .time-warning {
    animation: snowdriftPulseRed 0.5s infinite;
    color: #e05555;
}

@keyframes snowdriftPulseRed {
    0%, 100% {
        background: rgba(150, 40, 40, 0.5);
        transform: scale(1);
    }
    50% {
        background: rgba(180, 50, 50, 0.7);
        transform: scale(1.05);
    }
}

.snowdrift-game .admin-mode {
    background: linear-gradient(135deg, #4a1a1a, #351515);
    padding: 6px 16px;
    border-radius: 6px;
    color: #d4a84a;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #5a3030;
}

/* Игровое поле */
.snowdrift-game .game-field {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, 
        #121218 0%,
        #18181e 40%,
        #1e1e25 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Контейнер сугроба */
.snowdrift-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Сугроб */
.snowdrift {
    width: 300px;
    height: 300px;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.9) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 30%, rgba(240, 250, 255, 0.8) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 60%, rgba(230, 245, 255, 0.7) 0%, transparent 45%),
        linear-gradient(135deg, 
            #e8f4ff 0%,
            #d0e8ff 25%,
            #b8dcff 50%,
            #a0d0ff 75%,
            #88c4ff 100%
        );
    border-radius: 50% 50% 45% 55% / 60% 65% 35% 40%;
    box-shadow: 
        inset -10px -10px 30px rgba(100, 150, 200, 0.3),
        inset 10px 10px 30px rgba(255, 255, 255, 0.4),
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(150, 200, 255, 0.2);
    position: relative;
    cursor: crosshair;
    transition: transform 0.1s ease;
    overflow: hidden;
}

.snowdrift:hover {
    transform: scale(1.02);
    box-shadow: 
        inset -10px -10px 30px rgba(100, 150, 200, 0.4),
        inset 10px 10px 30px rgba(255, 255, 255, 0.5),
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(150, 200, 255, 0.3);
}

.snowdrift.damaged {
    animation: snowdriftShake 0.1s ease;
}

@keyframes snowdriftShake {
    0%, 100% { transform: translateX(0) scale(1); }
    25% { transform: translateX(-5px) scale(0.98); }
    75% { transform: translateX(5px) scale(0.98); }
}

.snowdrift.destroyed {
    animation: snowdriftExplode 0.8s ease forwards;
}

@keyframes snowdriftExplode {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(0.3);
        opacity: 0;
    }
}

/* Трещины на сугробе - 25% урона */
.snowdrift.damage-25::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Первая трещина */
        linear-gradient(125deg, 
            transparent 0%, 
            transparent 35%, 
            rgba(80, 120, 160, 0.4) 36%, 
            rgba(100, 140, 180, 0.5) 37%, 
            rgba(80, 120, 160, 0.4) 38%, 
            transparent 39%, 
            transparent 100%
        ),
        /* Вторая трещина */
        linear-gradient(65deg, 
            transparent 0%, 
            transparent 55%, 
            rgba(80, 120, 160, 0.3) 56%, 
            rgba(100, 140, 180, 0.4) 56.5%, 
            rgba(80, 120, 160, 0.3) 57%, 
            transparent 58%, 
            transparent 100%
        );
    pointer-events: none;
    border-radius: inherit;
    animation: crackAppear 0.3s ease;
}

/* Трещины на сугробе - 50% урона */
.snowdrift.damage-50::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Первая трещина */
        linear-gradient(125deg, 
            transparent 0%, 
            transparent 35%, 
            rgba(80, 120, 160, 0.5) 36%, 
            rgba(100, 140, 180, 0.6) 37%, 
            rgba(80, 120, 160, 0.5) 38%, 
            transparent 39%, 
            transparent 100%
        ),
        /* Вторая трещина */
        linear-gradient(65deg, 
            transparent 0%, 
            transparent 55%, 
            rgba(80, 120, 160, 0.4) 56%, 
            rgba(100, 140, 180, 0.5) 56.5%, 
            rgba(80, 120, 160, 0.4) 57%, 
            transparent 58%, 
            transparent 100%
        ),
        /* Третья трещина */
        linear-gradient(95deg, 
            transparent 0%, 
            transparent 25%, 
            rgba(80, 120, 160, 0.4) 26%, 
            rgba(100, 140, 180, 0.5) 26.5%, 
            rgba(80, 120, 160, 0.4) 27%, 
            transparent 28%, 
            transparent 100%
        ),
        /* Четвёртая трещина */
        linear-gradient(155deg, 
            transparent 0%, 
            transparent 65%, 
            rgba(80, 120, 160, 0.3) 66%, 
            rgba(100, 140, 180, 0.4) 66.5%, 
            rgba(80, 120, 160, 0.3) 67%, 
            transparent 68%, 
            transparent 100%
        );
    pointer-events: none;
    border-radius: inherit;
    animation: crackAppear 0.3s ease;
}

/* Трещины на сугробе - 75% урона */
.snowdrift.damage-75::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Первая трещина - толще */
        linear-gradient(125deg, 
            transparent 0%, 
            transparent 34%, 
            rgba(70, 110, 150, 0.5) 35%, 
            rgba(90, 130, 170, 0.7) 36%, 
            rgba(110, 150, 190, 0.8) 37%, 
            rgba(90, 130, 170, 0.7) 38%, 
            rgba(70, 110, 150, 0.5) 39%, 
            transparent 40%, 
            transparent 100%
        ),
        /* Вторая трещина - толще */
        linear-gradient(65deg, 
            transparent 0%, 
            transparent 54%, 
            rgba(70, 110, 150, 0.4) 55%, 
            rgba(90, 130, 170, 0.6) 56%, 
            rgba(110, 150, 190, 0.7) 56.5%, 
            rgba(90, 130, 170, 0.6) 57%, 
            rgba(70, 110, 150, 0.4) 58%, 
            transparent 59%, 
            transparent 100%
        ),
        /* Третья трещина */
        linear-gradient(95deg, 
            transparent 0%, 
            transparent 24%, 
            rgba(80, 120, 160, 0.5) 25%, 
            rgba(100, 140, 180, 0.6) 26%, 
            rgba(120, 160, 200, 0.7) 26.5%, 
            rgba(100, 140, 180, 0.6) 27%, 
            rgba(80, 120, 160, 0.5) 28%, 
            transparent 29%, 
            transparent 100%
        ),
        /* Четвёртая трещина */
        linear-gradient(155deg, 
            transparent 0%, 
            transparent 64%, 
            rgba(80, 120, 160, 0.4) 65%, 
            rgba(100, 140, 180, 0.5) 66%, 
            rgba(120, 160, 200, 0.6) 66.5%, 
            rgba(100, 140, 180, 0.5) 67%, 
            rgba(80, 120, 160, 0.4) 68%, 
            transparent 69%, 
            transparent 100%
        ),
        /* Пятая трещина */
        linear-gradient(40deg, 
            transparent 0%, 
            transparent 44%, 
            rgba(80, 120, 160, 0.4) 45%, 
            rgba(100, 140, 180, 0.5) 45.5%, 
            rgba(80, 120, 160, 0.4) 46%, 
            transparent 47%, 
            transparent 100%
        ),
        /* Шестая трещина */
        linear-gradient(180deg, 
            transparent 0%, 
            transparent 54%, 
            rgba(80, 120, 160, 0.3) 55%, 
            rgba(100, 140, 180, 0.4) 55.5%, 
            rgba(80, 120, 160, 0.3) 56%, 
            transparent 57%, 
            transparent 100%
        );
    pointer-events: none;
    border-radius: inherit;
    animation: crackAppear 0.3s ease;
}

@keyframes crackAppear {
    from { 
        opacity: 0; 
        transform: scale(0.95);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

/* Блеск сугроба */
.snowdrift-shine {
    position: absolute;
    top: 10%;
    left: 20%;
    width: 60%;
    height: 40%;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.2) 30%,
        transparent 60%
    );
    border-radius: 50%;
    pointer-events: none;
    animation: snowdriftShimmer 3s ease-in-out infinite;
}

@keyframes snowdriftShimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

/* Эффекты порезов */
.cut-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.slash-mark {
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(100, 150, 255, 0.8) 20%,
        rgba(150, 200, 255, 0.9) 50%,
        rgba(100, 150, 255, 0.8) 80%,
        transparent 100%
    );
    box-shadow: 
        0 0 10px rgba(150, 200, 255, 0.6),
        0 0 20px rgba(100, 150, 200, 0.4);
    animation: snowdriftSlashFade 0.5s ease-out forwards;
    pointer-events: none;
}

@keyframes snowdriftSlashFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* ТРЕЙСЕР КУРСОРА - стиль Fruit Ninja */
.cursor-tracer {
    position: fixed;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 10002; /* Выше всего в модальном окне */
    mix-blend-mode: screen;
    /* Центрируем относительно курсора */
    margin-left: -15px;
    margin-top: -15px;
}

.cursor-tracer-inner {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, 
        rgba(180, 220, 255, 1) 0%,
        rgba(140, 200, 255, 0.8) 30%,
        rgba(100, 180, 255, 0.4) 60%,
        transparent 100%
    );
    border-radius: 50%;
    animation: tracerPulse 0.8s ease-in-out infinite;
    box-shadow: 
        0 0 25px rgba(180, 220, 255, 1),
        0 0 50px rgba(140, 200, 255, 0.6),
        0 0 75px rgba(100, 180, 255, 0.3);
}

@keyframes tracerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Контейнер для следов */
.trail-container {
    pointer-events: none;
}

/* След-клинок как в Fruit Ninja */
.slash-trail {
    position: fixed;
    height: 8px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(180, 220, 255, 0.3) 5%,
        rgba(200, 230, 255, 0.7) 15%,
        rgba(220, 240, 255, 0.9) 50%,
        rgba(200, 230, 255, 0.7) 85%,
        rgba(180, 220, 255, 0.3) 95%,
        transparent 100%
    );
    pointer-events: none;
    transform-origin: left center;
    box-shadow: 
        0 0 15px rgba(200, 230, 255, 0.8),
        0 0 30px rgba(180, 220, 255, 0.5),
        0 0 45px rgba(160, 210, 255, 0.3);
    animation: slashTrailFade 0.3s ease-out forwards;
    z-index: 10001;
    border-radius: 50%;
}

@keyframes slashTrailFade {
    0% {
        opacity: 1;
        transform: rotate(var(--angle, 0deg)) scaleX(1);
    }
    100% {
        opacity: 0;
        transform: rotate(var(--angle, 0deg)) scaleX(0.8);
    }
}

/* Частицы следа */
.cursor-tracer-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, 
        rgba(220, 240, 255, 0.9) 0%,
        rgba(180, 220, 255, 0.6) 50%,
        transparent 100%
    );
    border-radius: 50%;
    pointer-events: none;
    animation: trailFade 0.4s ease-out forwards;
    z-index: 10001;
    box-shadow: 
        0 0 10px rgba(200, 230, 255, 0.8),
        0 0 20px rgba(180, 220, 255, 0.4);
    /* Центрируем частицу */
    margin-left: -4px;
    margin-top: -4px;
}

@keyframes trailFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.2);
    }
}

/* ПОСТОЯННЫЕ ПОРЕЗЫ НА СУГРОБЕ */
.permanent-slash {
    position: absolute;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(60, 100, 140, 0.4) 10%,
        rgba(80, 120, 160, 0.6) 30%,
        rgba(100, 140, 180, 0.7) 50%,
        rgba(80, 120, 160, 0.6) 70%,
        rgba(60, 100, 140, 0.4) 90%,
        transparent 100%
    );
    pointer-events: none;
    box-shadow: 
        0 0 8px rgba(100, 140, 180, 0.5),
        0 0 15px rgba(80, 120, 160, 0.3);
    animation: permanentSlashAppear 0.2s ease-out;
}

@keyframes permanentSlashAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) scaleX(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) scaleX(1);
    }
}

/* Полоска здоровья */
.health-bar-container {
    width: 100%;
    max-width: 350px;
}

.health-bar {
    position: relative;
    width: 100%;
    height: 30px;
    background: rgba(20, 20, 25, 0.8);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #352020;
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

.health-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #4a9dd4 0%,
        #5ab0e8 50%,
        #6ac3ff 100%
    );
    width: 100%;
    transition: width 0.3s ease;
    border-radius: 13px;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        0 0 15px rgba(100, 180, 255, 0.5);
}

.health-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: 900;
    font-size: 14px;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

/* Инструкция */
.snowdrift-game .game-instruction {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #909090;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 10;
    font-family: 'Roboto', sans-serif;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid #2a1a1a;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Кнопка выхода */
.snowdrift-game .game-exit-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 14px;
    background: rgba(30, 20, 20, 0.6);
    color: #808080;
    border: 1px solid #352525;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 200;
    font-family: 'Roboto', sans-serif;
    opacity: 0.7;
}

.snowdrift-game .game-exit-btn:hover {
    background: rgba(50, 30, 30, 0.8);
    color: #b0b0b0;
    opacity: 1;
}

/* Экран результатов */
.snowdrift-game .game-results {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #151015 0%, #1e1518 50%, #201518 100%);
    animation: snowdriftSlideIn 0.5s ease;
    font-family: 'Roboto', sans-serif;
}

@keyframes snowdriftSlideIn {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.snowdrift-game .results-content {
    text-align: center;
    color: #c0c0c0;
    padding: 30px;
}

.snowdrift-game .results-content h2 {
    font-size: 32px;
    margin-bottom: 25px;
    text-shadow: 0 2px 8px rgba(60, 20, 20, 0.4);
    animation: snowdriftScaleIn 0.5s ease;
    font-weight: 900;
    color: #d08080;
}

@keyframes snowdriftScaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.snowdrift-game .final-score {
    margin: 25px 0;
}

.snowdrift-game .score-label {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 500;
    color: #909090;
}

.snowdrift-game .score-number {
    font-size: 48px;
    font-weight: 900;
    text-shadow: 0 4px 12px rgba(60, 20, 20, 0.5);
    animation: snowdriftPopIn 0.6s ease 0.3s both;
    color: #6ac3ff;
}

@keyframes snowdriftPopIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.snowdrift-game .results-message {
    font-size: 15px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(60, 30, 30, 0.2);
    border-radius: 8px;
    border: 1px solid #352525;
    font-weight: 500;
    line-height: 1.6;
}

.snowdrift-game .results-buttons {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.snowdrift-game .results-buttons button,
.snowdrift-modal-overlay .modal-buttons button {
    padding: 12px 24px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    font-family: 'Roboto', sans-serif;
}

.snowdrift-game .btn-primary,
.snowdrift-modal-overlay .btn-primary {
    background: linear-gradient(135deg, #503030, #3a2020);
    color: #d4a84a;
    border: 1px solid #604040;
}

.snowdrift-game .btn-primary:hover,
.snowdrift-modal-overlay .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(60, 30, 30, 0.4);
    background: linear-gradient(135deg, #604040, #4a3030);
}

.snowdrift-game .btn-secondary,
.snowdrift-modal-overlay .btn-secondary {
    background: rgba(40, 40, 45, 0.8);
    color: #b0b0b0;
    border: 1px solid #404045;
}

.snowdrift-game .btn-secondary:hover,
.snowdrift-modal-overlay .btn-secondary:hover {
    background: rgba(50, 50, 55, 0.9);
    transform: translateY(-2px);
}

/* Модальные окна */
.snowdrift-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 12, 0.92);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: snowdriftFadeIn 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.snowdrift-modal-overlay .custom-modal {
    background: linear-gradient(135deg, #181418 0%, #1e181a 50%, #201518 100%);
    padding: 25px;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(60, 30, 30, 0.15);
    border: 1px solid #352525;
}

.snowdrift-modal-overlay .custom-modal h2 {
    color: #d08080;
    text-align: center;
    margin-bottom: 18px;
    font-size: 22px;
    font-weight: 900;
    text-shadow: 0 2px 6px rgba(60, 20, 20, 0.3);
}

.snowdrift-modal-overlay .custom-modal p {
    color: #a0a0a0;
    text-align: center;
    line-height: 1.6;
    font-weight: 400;
    font-size: 14px;
}

.snowdrift-modal-overlay .modal-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 18px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .snowdrift-game {
        width: 100%;
        height: 100vh;
        max-height: none;
        border-radius: 0;
    }
    
    .snowdrift-game .game-header {
        padding: 12px 15px;
    }
    
    .snowdrift-game .stat-item {
        font-size: 18px;
    }
    
    .snowdrift-game .stat-value {
        padding: 5px 12px;
        min-width: 45px;
        font-size: 16px;
    }
    
    .snowdrift-game .game-instruction {
        font-size: 14px;
        top: 12px;
        padding: 6px 14px;
    }
    
    .snowdrift {
        width: 250px;
        height: 250px;
    }
    
    .health-bar-container {
        max-width: 300px;
    }
    
    .snowdrift-game .game-exit-btn {
        padding: 6px 10px;
        font-size: 11px;
        top: 10px;
        left: 10px;
    }
    
    .snowdrift-game .results-content h2 {
        font-size: 26px;
    }
    
    .snowdrift-game .score-number {
        font-size: 40px;
    }
    
    .snowdrift-game .results-buttons {
        flex-direction: column;
    }
    
    .snowdrift-game .results-buttons button {
        width: 100%;
    }
    
    .snowdrift-modal-overlay .custom-modal {
        padding: 18px;
        width: 92%;
    }
    
    .cursor-tracer {
        width: 25px;
        height: 25px;
        margin-left: -12.5px;
        margin-top: -12.5px;
    }
    
    .slash-trail {
        height: 6px;
    }
    
    .cursor-tracer-trail {
        width: 6px;
        height: 6px;
        margin-left: -3px;
        margin-top: -3px;
    }
}

@media (max-width: 400px) {
    .snowdrift-game .game-stats {
        gap: 6px;
    }
    
    .snowdrift-game .stat-item {
        font-size: 16px;
        gap: 5px;
    }
    
    .snowdrift {
        width: 220px;
        height: 220px;
    }
    
    .health-bar-container {
        max-width: 260px;
    }
    
    .snowdrift-game .score-number {
        font-size: 36px;
    }
    
    .cursor-tracer {
        width: 20px;
        height: 20px;
        margin-left: -10px;
        margin-top: -10px;
    }
    
    .slash-trail {
        height: 5px;
    }
    
    .cursor-tracer-trail {
        width: 5px;
        height: 5px;
        margin-left: -2.5px;
        margin-top: -2.5px;
    }
}
