* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.game-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.target-section, .player-section {
    text-align: center;
}

.target-color, .player-color {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.target-color {
    background: #FF6B6B;
}

.player-color {
    background: #ffffff;
}

.color-code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-block;
}

.controls {
    margin-bottom: 40px;
}

.color-sliders {
    margin-bottom: 30px;
}

.slider-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.slider-group label {
    font-weight: 600;
    width: 20px;
    text-align: center;
}

.slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.red::-webkit-slider-thumb {
    background: #FF6B6B;
}
.green::-webkit-slider-thumb {
    background: #4ECDC4;
}
.blue::-webkit-slider-thumb {
    background: #45B7D1;
}

.slider-group span {
    font-family: 'Monaco', 'Menlo', monospace;
    font-weight: 600;
    width: 35px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
}

.actions {
    display: flex;
    gap: 15px;
}

button {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.primary-btn {
    background: linear-gradient(45deg, #4ECDC4, #44A08D);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #4ECDC4;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

.feedback {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.feedback-content {
    text-align: center;
}

#feedbackText {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.difference-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.difference-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ECDC4, #44A08D);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 100%;
}

.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

@keyframes celebrate {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.pulse {
    animation: pulse 0.5s ease;
}

.celebrate {
    animation: celebrate 0.6s ease;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .game-board {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .target-color, .player-color {
        width: 120px;
        height: 120px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}