/* Hangman Minimalist Styles */

.hangman-svg {
    height: 200px;
    width: 200px;
    overflow: visible;
}

.structure-line {
    stroke: var(--border-hover);
    stroke-width: 2;
    stroke-linecap: round;
}

.body-part {
    stroke: var(--accent-primary);
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    display: none; /* Controlled by JS */
    animation: drawPart 0.5s ease forwards;
}

@keyframes drawPart {
    from { opacity: 0; stroke-dasharray: 100; stroke-dashoffset: 100; }
    to { opacity: 1; stroke-dashoffset: 0; }
}

.word-display {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 60px;
}

.word-letter {
    font-size: 2rem;
    font-weight: 300;
    width: 40px;
    border-bottom: 2px solid var(--border-light);
    text-align: center;
    color: var(--text-main);
    transition: all 0.2s;
}

.hint-box {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

/* Keyboard Grid */
.keyboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.keyboard-key {
    aspect-ratio: 1;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.keyboard-key:hover:not(:disabled) {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.keyboard-key:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
}

.keyboard-key.correct {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: white;
}

.keyboard-key.wrong {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef4444;
}

.game-message {
    padding: 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    display: none;
}

.game-message.success {
    background: #ecfdf5;
    color: #059669;
}

.game-message.error {
    background: #fef2f2;
    color: #dc2626;
}
