* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    color: white;
}

.game-container {
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.stat:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat i {
    font-size: 1.2rem;
    color: #8b5cf6;
}

/* Игровое поле - АДАПТИВНОЕ */
.game-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    min-height: 300px;
    place-items: center;
}

/* Круги - УМЕНЬШЕННЫЕ */
.circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    user-select: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.circle:hover {
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.circle.selected {
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Остальные стили остаются как были... */
.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 1rem;
}

.color-palette {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
    margin-top: 20px;
    text-align: center;
}

.color-palette h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.colors {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.color-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

/* Адаптивность */
@media (max-width: 768px) {
    .game-board {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 12px;
        padding: 15px;
    }
    
    .circle {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
    
    .game-header h1 {
        font-size: 1.8rem;
    }
    
    .stat {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .color-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .game-board {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 10px;
    }
    
    .circle {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .game-header h1 {
        font-size: 1.6rem;
    }
    
    .game-stats {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .color-btn {
        width: 40px;
        height: 40px;
    }
}