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

body {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 1200px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

h1 {
    font-size: 3.5rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: #a0a0e0;
    margin-bottom: 20px;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 15px;
}

.stat {
    text-align: center;
}

.stat span {
    display: block;
    font-size: 0.9rem;
    color: #a0a0e0;
    margin-bottom: 5px;
}

.stat div {
    font-size: 2rem;
    font-weight: bold;
    color: #4ecdc4;
}

.game-area {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.target-section, .canvas-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.target-section h3, .canvas-section h3 {
    margin-bottom: 15px;
    color: #ff6b6b;
}

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

.color-swatch {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 2px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.harmony-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #96ceb4;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.mixing-board {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.color-dropper {
    width: 100px;
    height: 150px;
    position: relative;
    margin-bottom: 20px;
}

.droplet {
    width: 60px;
    height: 80px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: absolute;
    cursor: grab;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.droplet:hover {
    transform: scale(1.1);
}

.droplet.dragging {
    cursor: grabbing;
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.color-palette {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.palette-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    transition: transform 0.2s ease;
}

.palette-color:hover {
    transform: scale(1.2);
}

.mix-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.result-color {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

#addToCanvas {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#addToCanvas:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.4);
}

.art-canvas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    min-height: 200px;
}

.canvas-slot {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.canvas-slot.filled {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.8);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.3);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.instructions {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.instructions h3 {
    margin-bottom: 15px;
    color: #4ecdc4;
}

.instructions p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.game-over.active {
    display: flex;
}

.game-over-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #4ecdc4;
    box-shadow: 0 0 40px rgba(78, 205, 196, 0.5);
}

.game-over-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ff6b6b;
}

.game-over-content p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #a0a0e0;
}

#continue {
    background: linear-gradient(45deg, #96ceb4, #88c9a1);
    margin-top: 20px;
}

@keyframes dropletFall {
    0% { transform: translateY(-100px) scale(0.8); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.droplet.new {
    animation: dropletFall 0.5s ease-out;
}

@keyframes pulseWarning {
    0% { color: #4ecdc4; }
    50% { color: #ff6b6b; }
    100% { color: #4ecdc4; }
}

.timer-warning {
    animation: pulseWarning 1s infinite;
}