body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    font-family: Arial, sans-serif;
}

.hangman-wrapper {
    max-width: 700px;
    width: 100%;
    padding: 20px;
    background: #ff4fa3;
    color: #fff;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(255, 79, 163, 0.7);
}

.hangman-svg {
    width: 180px;
    margin: 0 auto 10px;
}

.gallow {
    stroke: #fff;
    stroke-width: 4;
}

.part {
    stroke: #fff;
    stroke-width: 4;
    fill: none;
    opacity: 0;
}

.word {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.letter {
    width: 28px;
    height: 36px;
    border-bottom: 3px solid #fff;
    font-size: 24px;
    line-height: 36px;
    position: relative;
}

.spark {
    position: absolute;
    pointer-events: none;
    color: #fff;
    text-shadow: 0 0 8px #fff;
}

.keyboard {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 15px;
}

.keyboard button {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    color: #ff4fa3;
    font-weight: bold;
    cursor: pointer;
}

.keyboard button:disabled {
    opacity: 0.4;
}


.reset {
    margin-top: 18px;
    background: linear-gradient(135deg, #ff7ac8, #ff4fa3);
    border: none;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 999px;
    box-shadow:
        0 6px 14px rgba(255, 79, 163, 0.6),
        inset 0 0 6px rgba(255, 255, 255, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.reset:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 10px 22px rgba(255, 79, 163, 0.75),
        inset 0 0 8px rgba(255, 255, 255, 0.5);
}

.reset:active {
    transform: scale(0.96);
}


#hint-btn {
    background: linear-gradient(135deg, #ff7ac8, #ff4fa3);
    color: #fff;
    border: none;
    padding: 6px 14px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 999px;
    box-shadow:
        0 4px 10px rgba(255, 79, 163, 0.55),
        inset 0 0 6px rgba(255, 255, 255, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#hint-btn:hover {
    transform: translateY(-1px) scale(1.04);
    box-shadow:
        0 7px 16px rgba(255, 79, 163, 0.75),
        inset 0 0 8px rgba(255, 255, 255, 0.5);
}

#hint-btn:active {
    transform: scale(0.96);
}

