/* =========================================
   RESUMO / PERFIL DO PAL - SAVE GAME
========================================= */

.pal-resumo {
    width: 100%;
    margin: 25px 0 35px;
    box-sizing: border-box;
}

.pal-resumo *,
.pal-resumo *::before,
.pal-resumo *::after {
    box-sizing: border-box;
}


/* =========================================
   ESTRUTURA PRINCIPAL
========================================= */

.pal-resumo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}


/* =========================================
   TEXTO - LADO ESQUERDO
========================================= */

.pal-resumo-texto {
    min-width: 0;
}

.pal-resumo-texto > p {
    margin: 0 0 16px;
    line-height: 1.7;
}

.pal-resumo-texto > p:last-of-type {
    margin-bottom: 0;
}


/* =========================================
   SOBRE / CITAÇÃO DO PAL
========================================= */

.pal-sobre-citacao {
    position: relative;

    margin-top: 26px;
    padding: 8px 8px 4px 54px;
}


/* ASPA GRANDE */

.pal-sobre-aspas {
    position: absolute;

    top: -7px;
    left: 0;

    color: #9262fa;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;

    opacity: 0.85;

    pointer-events: none;
}


/* TEXTO DA CITAÇÃO */

.pal-sobre-citacao p {
    margin: 0;

    font-size: 15px;
    font-style: italic;
    line-height: 1.65;

    opacity: 0.78;
}


/* =========================================
   FICHA DO PAL - LADO DIREITO
========================================= */

.pal-perfil {
    width: 100%;
    margin: 0;

    background: rgba(146, 98, 250, 0.04);

    border: 1px solid rgba(146, 98, 250, 0.30);
    border-radius: 10px;

    overflow: hidden;
}


/* =========================================
   CABEÇALHO DO PAL
========================================= */

.pal-perfil-cabecalho {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;

    padding: 20px 18px 17px;

    text-align: center;
}


/* =========================================
   IMAGEM DO PAL
========================================= */

.pal-perfil-imagem {
    display: block !important;

    width: 135px !important;
    height: 135px !important;

    min-width: 135px !important;
    max-width: 135px !important;

    min-height: 135px !important;
    max-height: 135px !important;

    margin: 0 auto 8px !important;
    padding: 0 !important;

    object-fit: contain !important;

    border: 0 !important;
    border-radius: 0 !important;
}


/* =========================================
   NOME DO PAL
========================================= */

.pal-perfil-nome {
    margin: 0;

    color: #9262fa;

    font-size: 25px;
    font-weight: 700;
    line-height: 1.25;
}


/* =========================================
   NÚMERO DA PALPÉDIA
========================================= */

.pal-perfil-numero {
    margin-top: 4px;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;

    opacity: 0.75;
}

.pal-perfil-numero strong {
    color: #9262fa;
    font-weight: 700;
}


/* =========================================
   ABAS
========================================= */

.pal-abas {
    display: grid;
    grid-template-columns: 1fr 1.35fr 0.75fr;

    width: 100%;

    border-top: 1px solid rgba(146, 98, 250, 0.22);
    border-bottom: 1px solid rgba(146, 98, 250, 0.22);
}


/* =========================================
   BOTÕES DAS ABAS
========================================= */

.pal-aba-botao {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;
    min-height: 54px;

    margin: 0;
    padding: 9px 7px;

    background: transparent;

    border: 0;
    border-right: 1px solid rgba(146, 98, 250, 0.16);
    border-radius: 0;

    color: inherit;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.pal-aba-botao:last-child {
    border-right: 0;
}

.pal-aba-botao:hover {
    background: rgba(146, 98, 250, 0.08);
    color: #9262fa;
}


/* =========================================
   ABA ATIVA
========================================= */

.pal-aba-botao.ativo {
    background: rgba(146, 98, 250, 0.12);

    color: #9262fa;

    font-weight: 700;
}

.pal-aba-botao.ativo::after {
    content: "";

    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 0;

    height: 3px;

    background: #9262fa;

    border-radius: 3px 3px 0 0;
}


/* =========================================
   CONTEÚDO DAS ABAS
========================================= */

.pal-abas-conteudo {
    width: 100%;
    padding: 7px 16px 10px;
}

.pal-aba-painel {
    display: none;
    width: 100%;
}

.pal-aba-painel.ativo {
    display: block;
}


/* =========================================
   CLASSIFICAÇÃO
========================================= */

.pal-info-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    gap: 15px;

    padding: 11px 0;

    border-bottom: 1px solid rgba(146, 98, 250, 0.12);
}

.pal-info-linha:last-child {
    border-bottom: 0;
}

.pal-info-label {
    flex: 1 1 auto;
    min-width: 0;

    font-weight: 600;
    line-height: 1.4;
}

.pal-info-valor {
    flex: 0 1 auto;
    min-width: 0;

    text-align: right;
    line-height: 1.4;
}


/* =========================================
   ELEMENTO
========================================= */

.pal-elemento {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 3px 9px;

    background: rgba(146, 98, 250, 0.12);

    border: 1px solid rgba(146, 98, 250, 0.35);
    border-radius: 5px;

    color: #9262fa;

    font-weight: 700;
    line-height: 1;
}

.pal-elemento-icone {
    display: block;

    width: 18px;
    height: 18px;

    min-width: 18px;

    object-fit: contain;
}


/* =========================================
   GÊNERO
========================================= */

.pal-generos {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;

    gap: 5px;

    white-space: nowrap;
}

.pal-masculino {
    color: #55aaff;
    font-weight: 700;
}

.pal-feminino {
    color: #ff72ad;
    font-weight: 700;
}

.pal-genero-divisor {
    opacity: 0.6;
}


/* =========================================
   FOME
========================================= */

.pal-info-fome {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}

.pal-info-fome .pal-info-label {
    flex: 0 0 auto;
}

.pal-fome {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 2px;
    flex-wrap: nowrap;
}

.pal-fome-pao {
    display: block;

    width: 16px;
    height: 16px;

    min-width: 16px;
    flex: 0 0 16px;

    -webkit-mask-image: url("https://savegame.com.br/palworld/icones/icones-geral/pao.webp");
    mask-image: url("https://savegame.com.br/palworld/icones/icones-geral/pao.webp");

    -webkit-mask-size: contain;
    mask-size: contain;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    background-color: #a7a7a7;
}

/* =========================================
   NÍVEL DE FOME
========================================= */

.pal-fome[data-fome="1"] .pal-fome-pao:nth-child(-n+1),
.pal-fome[data-fome="2"] .pal-fome-pao:nth-child(-n+2),
.pal-fome[data-fome="3"] .pal-fome-pao:nth-child(-n+3),
.pal-fome[data-fome="4"] .pal-fome-pao:nth-child(-n+4),
.pal-fome[data-fome="5"] .pal-fome-pao:nth-child(-n+5),
.pal-fome[data-fome="6"] .pal-fome-pao:nth-child(-n+6),
.pal-fome[data-fome="7"] .pal-fome-pao:nth-child(-n+7),
.pal-fome[data-fome="8"] .pal-fome-pao:nth-child(-n+8),
.pal-fome[data-fome="9"] .pal-fome-pao:nth-child(-n+9),
.pal-fome[data-fome="10"] .pal-fome-pao:nth-child(-n+10) {
    background-color: #9262fa;
}

/* =========================================
   REPRODUÇÃO
========================================= */

.pal-reproducao {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;

    gap: 6px;

    color: #9262fa;

    font-weight: 700;
    line-height: 1;
}

.pal-reproducao-icone {
    display: block !important;

    width: 20px !important;
    height: 20px !important;

    min-width: 20px !important;
    max-width: 20px !important;

    min-height: 20px !important;
    max-height: 20px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;

    border: 0 !important;
}


/* =========================================
   HABILIDADE DE COMPANHEIRO
========================================= */

.pal-habilidade {
    padding: 10px 0 6px;
}

.pal-habilidade-nome {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 9px;

    color: #9262fa;

    font-weight: 700;
    line-height: 1.4;
}

.pal-habilidade-icone {
    flex: 0 0 auto;

    font-size: 22px;
    line-height: 1;
}

.pal-habilidade p {
    margin: 0;
    line-height: 1.65;
}


/* =========================================
   ESTATÍSTICAS DO PAL
========================================= */

.pal-estatisticas {
    width: 100%;
    padding: 3px 0;
}


/* =========================================
   LINHA DA ESTATÍSTICA
========================================= */

.pal-estatistica-linha {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;

    width: 100%;

    gap: 8px;

    padding: 9px 0;

    border-bottom: 1px solid rgba(146, 98, 250, 0.12);
}

.pal-estatistica-linha:last-child {
    border-bottom: 0;
}


/* =========================================
   ÍCONE / SÍMBOLO DA ESTATÍSTICA
========================================= */

.pal-estatistica-icone {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    color: #9262fa;

    font-size: 17px;
    font-weight: 700;
    line-height: 1;

    opacity: 0.9;
}


/* =========================================
   NOME DA ESTATÍSTICA
========================================= */

.pal-estatistica-nome {
    min-width: 0;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}


/* =========================================
   VALOR DA ESTATÍSTICA
========================================= */

.pal-estatistica-valor {
    min-width: 36px;

    color: #9262fa;

    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    text-align: right;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 850px) {

    .pal-resumo-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .pal-perfil {
        width: 100%;
    }

}


/* =========================================
   CELULAR
========================================= */

@media (max-width: 600px) {

    .pal-resumo {
        margin: 20px 0 30px;
    }


    /* =====================================
       CITAÇÃO
    ===================================== */

    .pal-sobre-citacao {
        margin-top: 22px;
        padding: 7px 4px 3px 45px;
    }

    .pal-sobre-aspas {
        top: -5px;

        font-size: 62px;
    }

    .pal-sobre-citacao p {
        font-size: 14px;
        line-height: 1.6;
    }


    /* =====================================
       CABEÇALHO DO PERFIL
    ===================================== */

    .pal-perfil-cabecalho {
        padding: 18px 14px 16px;
    }


    /* =====================================
       IMAGEM
    ===================================== */

    .pal-perfil-imagem {
        width: 120px !important;
        height: 120px !important;

        min-width: 120px !important;
        max-width: 120px !important;

        min-height: 120px !important;
        max-height: 120px !important;
    }


    /* =====================================
       NOME E NÚMERO
    ===================================== */

    .pal-perfil-nome {
        font-size: 23px;
    }

    .pal-perfil-numero {
        font-size: 13px;
    }


    /* =====================================
       ABAS
    ===================================== */

    .pal-abas {
        grid-template-columns: 1fr 1.35fr 0.75fr;
    }

    .pal-aba-botao {
        min-height: 58px;

        padding: 7px 4px;

        font-size: 12px;
    }

    .pal-aba-botao.ativo::after {
        left: 6px;
        right: 6px;
    }


    /* =====================================
       CONTEÚDO DAS ABAS
    ===================================== */

    .pal-abas-conteudo {
        padding: 6px 14px 9px;
    }


    /* =====================================
       CLASSIFICAÇÃO
    ===================================== */

    .pal-info-linha {
        gap: 10px;
        padding: 11px 0;
    }

    .pal-info-label {
        flex: 0 0 42%;
    }

    .pal-info-valor {
        flex: 1 1 58%;
    }


    /* =====================================
       GÊNERO
    ===================================== */

    .pal-generos {
        white-space: normal;
        flex-wrap: wrap;
    }


    /* =====================================
       FOME
    ===================================== */

    .pal-info-fome .pal-info-label {
        flex: 0 0 auto;
    }

    .pal-fome {
        margin-left: auto;
        gap: 1px;
    }

    .pal-fome-pao {
        width: 14px;
        height: 14px;

        min-width: 14px;
        flex-basis: 14px;
    }


    /* =====================================
       ESTATÍSTICAS
    ===================================== */

    .pal-estatistica-linha {
        grid-template-columns: 22px minmax(0, 1fr) auto;

        gap: 7px;

        padding: 9px 0;
    }

    .pal-estatistica-icone {
        width: 20px;
        height: 20px;

        font-size: 16px;
    }

    .pal-estatistica-nome {
        font-size: 12px;
    }

    .pal-estatistica-valor {
        font-size: 12px;
    }

}

/* =========================================
   HABILIDADES
========================================= */

.pal-habilidades {
    width: 100%;
}


/* TÍTULO DO TIPO DE HABILIDADE */

.pal-habilidade-tipo {
    margin-bottom: 8px;

    color: #9262fa;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;

    text-transform: uppercase;
    letter-spacing: 0.4px;
}


/* =========================================
   HABILIDADE PASSIVA
========================================= */

.pal-habilidade-passiva {
    margin-top: 14px;
    padding: 16px 0 8px;

    border-top: 1px solid rgba(146, 98, 250, 0.12);
}

.pal-habilidade-passiva-valor {
    font-weight: 400;
    line-height: 1.65;
}

/* =========================================
   ESPAÇAMENTO DAS HABILIDADES PASSIVAS
========================================= */

/* Nome da passiva */
.pal-habilidade-passiva-valor .pal-habilidade-nome {
    margin-top: 12px;
    margin-bottom: 4px;
}

/* Primeira passiva não precisa de espaço acima */
.pal-habilidade-passiva-valor .pal-habilidade-nome:first-child {
    margin-top: 0;
}

/* Descrição da passiva */
.pal-habilidade-passiva-valor > p {
    margin: 0 !important;
    line-height: 1.55;
}

/* Espaço entre a descrição e a próxima passiva */
.pal-habilidade-passiva-valor > p + .pal-habilidade-nome {
    margin-top: 12px;
}

/* =========================================================
   ÍCONE DO ELEMENTO - HABILIDADE DE COMPANHEIRO
   ========================================================= */

.pal-habilidade-icone {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 32px;
	height: 32px;

	flex: 0 0 32px;
}

.pal-habilidade-icone img {
	display: block;

	width: 32px;
	height: 32px;

	object-fit: contain;
}