.jogo-assistant {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 1040;
    font-family: inherit;
}

.jogo-assistant__fab {
    width: 72px;
    height: 72px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #176c72, #2c9a9b);
    color: #fff;
    box-shadow: 0 14px 32px rgba(23, 108, 114, .28);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: transform .16s ease, box-shadow .16s ease;
}

.jogo-assistant__fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(23, 108, 114, .34);
}

.jogo-assistant__fab-mark {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .18);
    font-weight: 800;
}

.jogo-assistant__fab-text {
    font-size: .72rem;
    font-weight: 700;
}

.jogo-assistant__panel {
    width: min(370px, calc(100vw - 32px));
    height: 540px;
    max-height: calc(100vh - 48px);
    border-radius: 22px;
    overflow: hidden;
    background: #fffdfa;
    box-shadow: 0 18px 48px rgba(30, 47, 55, .22);
    border: 1px solid rgba(23, 108, 114, .12);
    display: flex;
    flex-direction: column;
}

.jogo-assistant__header {
    flex: 0 0 auto;
    padding: 16px 18px;
    color: #fff;
    background: linear-gradient(135deg, #17494d, #2c9a9b);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.jogo-assistant__title {
    font-weight: 800;
    font-size: 1.05rem;
}

.jogo-assistant__subtitle {
    opacity: .84;
    font-size: .82rem;
}

.jogo-assistant__close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    font-size: 1.35rem;
    line-height: 1;
}

.jogo-assistant__messages,
.jogo-assistant-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
    background: linear-gradient(180deg, #f7faf9 0%, #fbf7ef 100%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.jogo-assistant-welcome {
    flex: 0 0 auto;
}

.jogo-assistant-conversation {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.jogo-assistant-message,
.jogo-assistant__msg {
    max-width: 86%;
    margin-bottom: 10px;
    font-size: .92rem;
    line-height: 1.55;
    word-break: break-word;
}

.jogo-assistant-message.bot,
.jogo-assistant__msg--bot {
    align-self: flex-start;
    text-align: left;
}

.jogo-assistant-message.user,
.jogo-assistant__msg--user {
    align-self: flex-end;
    text-align: left;
}

.message-bubble,
.jogo-assistant__msg {
    padding: 10px 12px;
    border-radius: 16px;
    white-space: pre-line;
}

.jogo-assistant-message.bot .message-bubble,
.jogo-assistant-bubble.bot,
.jogo-assistant__msg--bot {
    background: #fff;
    color: #24313a;
    border-top-left-radius: 6px;
    box-shadow: 0 4px 12px rgba(23, 73, 77, .08);
    text-align: left;
    line-height: 1.7;
}

.jogo-assistant-message.user .message-bubble,
.jogo-assistant-bubble.user,
.jogo-assistant__msg--user {
    color: #fff;
    background: #176c72;
    border-top-right-radius: 6px;
}

.jogo-assistant-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 14px;
    justify-content: flex-start;
}

.jogo-assistant-quick-btn {
    border: 1px solid #16777a;
    background: #fff;
    color: #16777a;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: .86rem;
    cursor: pointer;
    transition: all .15s ease;
}

.jogo-assistant-quick-btn:hover {
    background: #16777a;
    color: #fff;
}

.jogo-assistant__composer {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #eef1ef;
}

.jogo-assistant__composer input {
    flex: 1;
    min-width: 0;
    border: 1px solid #dfe8e6;
    border-radius: 999px;
    padding: 10px 12px;
    outline: none;
}

.jogo-assistant__composer input:focus {
    border-color: #2c9a9b;
    box-shadow: 0 0 0 3px rgba(44, 154, 155, .12);
}

.jogo-assistant__composer button {
    border: 0;
    border-radius: 999px;
    background: #17494d;
    color: #fff;
    padding: 0 16px;
    font-weight: 700;
}

@media (max-width: 576px) {
    .jogo-assistant {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }

    .jogo-assistant__panel {
        width: 100%;
        height: min(540px, calc(100vh - 28px));
    }
}

/* =========================================================
   JOGO assistant mobile hardening - 2026-06-02
   ========================================================= */
.jogo-assistant,
.jogo-assistant__panel,
.jogo-assistant__messages,
.jogo-assistant__composer {
    min-width: 0;
}

.jogo-assistant__messages {
    -webkit-overflow-scrolling: touch;
}

.jogo-assistant-quick-actions {
    max-width: 100%;
}

.jogo-assistant-quick-btn {
    max-width: 100%;
    white-space: normal;
}

@media (max-width: 576px) {
    .jogo-assistant {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .jogo-assistant__fab {
        width: 62px;
        height: 62px;
    }

    .jogo-assistant__fab-mark {
        width: 26px;
        height: 26px;
    }

    .jogo-assistant__fab-text {
        font-size: .66rem;
    }

    .jogo-assistant__panel {
        width: 100%;
        height: min(520px, calc(100vh - 24px));
        max-height: calc(100vh - 24px);
        border-radius: 18px;
    }

    .jogo-assistant__header {
        padding: 13px 14px;
    }

    .jogo-assistant__messages,
    .jogo-assistant-messages {
        padding: 12px;
    }

    .jogo-assistant-message,
    .jogo-assistant__msg {
        max-width: 92%;
    }

    .jogo-assistant__composer {
        padding: 10px;
    }

    .jogo-assistant__composer button {
        padding: 0 14px;
        flex: 0 0 auto;
    }
}

@media (max-width: 380px) {
    .jogo-assistant__composer {
        flex-wrap: wrap;
    }

    .jogo-assistant__composer input,
    .jogo-assistant__composer button {
        width: 100%;
    }

    .jogo-assistant__composer button {
        min-height: 40px;
    }
}
