.card_pile {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 600px;
}
.card_pile h2 {
    position: relative;
    width: 100%;
    font-size: 2rem;
    font-weight: 900;
    color: azure;
}

.ninja_card:nth-child(1) {
    top: -10px;
    left: 10px;
}
.ninja_card {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../_img/ui/backgrounds/back01.png);
    border: 12px solid rgb(63, 102, 63);
    box-shadow: 0px 0px 10px rgba(0,0,0,1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
    padding: 4.5rem 0 0;
    transition: transform 0.5s;
}
.ninja_card:nth-child(2) {
    transform: rotate(2deg);
}

/* ----- ABSOLUTES ----- */
.ninja_graduation {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: black;
    font-size: 2rem;
    font-weight: 700;
}

.ninja_village {
    position: absolute;
    top: 1rem;
    left: 2rem;
    object-fit: contain;
}
.rogue {
    position: absolute;
    top: 50%;              /* centraliza verticalmente */
    left: 0;
    width: 100%;           /* cobre toda a largura da imagem */
    height: 2px;           /* espessura do risco */
    background: black;       /* cor do risco (pode ser preto, vermelho etc.) */
    transform: rotate(-10deg); /* inclinação do risco */
}


.stats_stamp {
    position: absolute;
    bottom: -1rem;
    left: 1rem;
    width: 50%;
    height: 50%;
    object-fit: contain;
    filter: saturate(50%);
    z-index: 1;
}

/* ----- Ninja Info ----- */

.ninja_info {
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info_row {
    width: 100%;
    height: 100%;
    display: flex;
    background: rgba(249, 255, 223, 0.5);
    color: black;
    font-size: .8rem;
    font-weight: 400;
}

.info_label {
    width: 50%;
    padding: .2rem;
    text-align: right;
    font-weight: 600;
}

.info_value {
    width: 50%;
    padding: .2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ----- Ninja profile ----- */
.ninja_profile {
    position: relative;
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
#character_selection {
    cursor: pointer;
}
#character_selection:hover::after {
    content: "Trocar avatar";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
    border-radius: 50%;
}

.ninja_profile img {
    width: 100%;
    height: 256px;
    object-fit: cover; 
    filter: saturate(100%);
}

.gauge-container {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    bottom: -10px;
    left: 0;
    width: 100%;
    transform: rotate(-15deg);
}

.gauge-empty {
    position: relative;
    background: url(../_img/ui/bars/barras_topo_bg.png);
    width: 100%;
    height: 18px;
    
}
.gauge-empty p {
    position: absolute;
    top: -5px;
    left: 0;
    font-weight: 600;
    font-size: 16px;
    z-index: 3;
    text-shadow: 0px 0px 1px rgba(255,255,255,1);
}

.gauge-fill {
    position: relative;
    height: 100%;
    max-width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.health-bar {
    background: url(../_img/ui/bars/barra_topo_exp_fill.png);
}
.exp-bar {
    background: url(../_img/ui/bars/barra_topo_vida_fill.png);
}

/* ----- Ninja Attributes ----- */
.ninja_attributes {
    width: 55%!important;
    height: 232px!important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* background: rgba(249, 255, 223, 0.5); */
    filter: saturate(250%);
    cursor: pointer;
}

/* ----- Ninja Statistics ----- */
.ninja_statistics {
    width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    font-size: 0.2rem;
    font-weight: 400;
    color: black;
}

.ninja_statistics .title {
    width: 100%;
    text-align: center;
    color: black;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.ninja_statistics .container {
    width: 100%;
    background: rgba(249, 255, 223, 0.5);
    display: flex;
    flex-direction: column;
}

.estatistic_row {
    width: 100%;
    display: flex;
    font-size: .6rem;
    font-weight: 700;
}

.estatistic_label {
    width: 50%;
    padding: 0 .2rem;
    text-align: right;
    font-weight: 600;
}

.estatistic_value {
    width: 50%;
    padding: 0 .2rem;
}


@media (max-width: 720px) {
    .ninja_card {
        margin: 0 auto;
    }
    .card_pile {
        height: 600px;
    }
}