body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    background: radial-gradient(circle at top left, #ca8a04, var(--background));
}

.game-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--surface-border);
}

.btn-back {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: transparent;
}

.score-display {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.target-zone {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.target-zone h2 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.target-block {
    font-size: 5rem;
    line-height: 1.2;
    color: var(--text);
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.split-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-lg);
    border: 2px dashed rgba(255,255,255,0.1);
    min-height: 120px;
}

.split-slot {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--surface-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    box-shadow: inset 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.split-slot.filled {
    background: var(--surface-glass);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transform: scale(1.05);
}

.message-area {
    text-align: center;
    min-height: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface-glass);
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.palette-item {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 2px solid var(--surface-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-family: var(--font-kr);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    color: var(--text);
}

.palette-item:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--surface-glass);
    border-color: var(--success);
}

.palette-item:active {
    transform: scale(0.95);
}

.palette-item.used {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.msg-correct { color: var(--success); }
.msg-incorrect { color: var(--error); }
