:root {
    --forca-primary: #c125fa;
    --forca-primary-dark: #9e18d1;
    --forca-page-bg: #f7f8fc;
    --forca-text: #342c37;
    --forca-muted: #786b7c;
    --forca-border: #eadff0;
    --forca-success: #48ad61;
    --forca-danger: #df5757;
    --platform-primary-dark: #a115d1;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--forca-page-bg);
    color: var(--forca-text);
}

button {
    font: inherit;
}

.forca-layout {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.forca-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    background: var(--forca-primary);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.10),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.forca-logo {
    display: block;
    width: auto;
    max-width: 190px;
    height: 44px;
    object-fit: contain;
}

.forca-page {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    padding: 22px 14px 28px;
}

.forca-shell {
    width: min(980px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

.forca-question-standard {
    flex: 0 0 auto;
    width: min(920px, 100%) !important;
    max-width: 920px !important;
    margin: 0 auto !important;
}

.forca-game-card {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 18px;
    border: 1px solid var(--forca-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(55, 35, 63, 0.08);
}

.forca-game-main {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
    align-items: center;
    gap: 26px;
}

.forca-play-area {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 18px;
    padding: 8px 0 8px 4px;
}

.forca-drawing-area {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.forca-svg {
    display: block;
    width: min(250px, 100%);
    height: auto;
}

.gallows-line {
    stroke: #5e5063;
    stroke-width: 7;
    stroke-linecap: round;
}

.hangman-part {
    fill: none;
    stroke: var(--forca-primary);
    stroke-width: 7;
    stroke-linecap: round;
    opacity: 0;
    transform-origin: center;
    transition: opacity 0.18s ease;
}

.hangman-part.visible {
    opacity: 1;
}

.forca-attempts {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    margin-top: -2px;
}

.forca-attempts-title {
    color: var(--forca-muted);
    font-size: 11px;
    font-weight: 600;
}

.forca-lives {
    min-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.forca-life {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--forca-primary);
    box-shadow: 0 1px 4px rgba(193, 37, 250, 0.25);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.forca-life.lost {
    background: #d7ceda;
    opacity: 0.55;
    transform: scale(0.82);
}

.forca-word-area {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 4px 4px 0;
}

.forca-word {
    width: 100%;
    min-height: 62px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 8px 6px;
}

.forca-slot {
    width: 30px;
    min-width: 24px;
    height: 42px;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 5px;
    border-bottom: 3px solid #5e5063;
    color: var(--forca-primary-dark);
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
}

.forca-slot.revealed {
    border-bottom-color: var(--forca-primary);
}

.forca-space {
    width: 18px;
    height: 42px;
}

.forca-symbol {
    min-width: 16px;
    height: 42px;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 5px;
    color: #5e5063;
    font-size: 23px;
    font-weight: 600;
}

.forca-tip {
    margin: 0;
    color: var(--forca-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

.forca-keyboard {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
}

.forca-letter {
    appearance: none;
    min-width: 0;
    min-height: 42px;
    padding: 0 4px;
    border: 2px solid var(--forca-primary);
    border-radius: 10px;
    background: #ffffff;
    color: var(--forca-primary-dark);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(193, 37, 250, 0.08);
    transition:
        transform 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.forca-letter:hover:not(:disabled),
.forca-letter:focus-visible:not(:disabled) {
    transform: translateY(-1px);
    background: #f9effd;
    outline: none;
}

.forca-letter.correct {
    border-color: var(--forca-success);
    background: #e7f8ec;
    color: #26743c;
}

.forca-letter.wrong {
    border-color: var(--forca-danger);
    background: #fdeaea;
    color: #963838;
}

.forca-letter:disabled {
    cursor: default;
    opacity: 0.72;
}

.forca-result {
    flex: 0 0 auto;
}

.platform-footer {
    margin-top: auto;
    background: var(--platform-primary-dark);
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

.platform-footer p {
    margin: 0;
    font-family: Poppins, Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
}

@media (max-width: 720px) {
    .forca-page {
        padding: 18px 8px 22px;
    }

    .forca-shell {
        gap: 11px;
    }

    .forca-game-card {
        padding: 13px 10px 14px;
    }

    .forca-game-main {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .forca-play-area {
        gap: 12px;
        padding: 0;
    }

    .forca-svg {
        width: min(185px, 80%);
    }

    .forca-word-area {
        padding-top: 4px;
    }

    .forca-keyboard {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 5px;
        margin: 0;
    }

    .forca-letter {
        min-height: 40px;
        border-radius: 8px;
        font-size: 13px;
    }

    .forca-slot {
        width: 25px;
        height: 37px;
        font-size: 21px;
    }
}

@media (max-width: 560px) {
    .forca-header {
        min-height: 62px;
        padding: 9px 12px;
    }

    .forca-logo {
        max-width: 165px;
        height: 38px;
    }

    .forca-keyboard {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .platform-footer {
        padding: 14px 12px;
    }
}
