body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 900px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

h1 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

h2 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.game-info {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.game-info p {
    margin: 12px 0;
    font-size: 1.1em;
    color: #2c3e50;
}

.game-stage {
    margin: 30px 0;
}

.colors-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    min-height: 120px;
}

.color-bottle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: 3px solid white;
    background: currentColor;
}

.color-bottle:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

.color-bottle.selected {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    border-color: #f39c12;
}

.color-bottle.correct-position {
    box-shadow: 0 0 15px #27ae60;
}

.color-bottle.correct-position::after {
    content: "✓";
    position: absolute;
    top: -10px;
    right: -10px;
    color: #27ae60;
    font-weight: bold;
    font-size: 24px;
    background: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-controls {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    margin: 0 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.timer {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 10px 20px;
    border-radius: 20px;
}

.message {
    font-size: 22px;
    font-weight: bold;
    margin: 25px 0;
    padding: 20px;
    border-radius: 10px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #fef9e7 0%, #f9e79f 100%);
    color: #f39c12;
}

.leaderboard {
    margin-top: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.leaderboard table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.leaderboard th, .leaderboard td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.leaderboard th {
    background-color: #3498db;
    color: white;
}

.leaderboard tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.7);
}

.leaderboard tr:hover {
    background-color: rgba(52, 152, 219, 0.2);
}

.leaderboard-form {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.leaderboard-form input {
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin: 10px;
    width: 200px;
}

.leaderboard-form button {
    padding: 12px 24px;
    font-size: 16px;
    margin: 10px;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .colors-container {
        gap: 10px;
    }
    
    .color-bottle {
        width: 50px;
        height: 50px;
    }
    
    .game-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    button {
        padding: 12px 20px;
        font-size: 16px;
        margin: 5px;
    }
    
    .leaderboard th, .leaderboard td {
        padding: 8px 4px;
        font-size: 14px;
    }
    
    .leaderboard-form input {
        width: 150px;
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .color-bottle {
        width: 40px;
        height: 40px;
    }
    
    .message {
        font-size: 18px;
        padding: 15px;
    }
    
    .colors-container {
        gap: 8px;
    }
    
    .game-info p {
        font-size: 1em;
    }
    
    .timer {
        font-size: 18px;
        padding: 8px 15px;
    }
}