/* -----cards de personajes---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
}



.card-char {
    border: 1.5px solid #fff3;
    padding: 1.2rem 1rem 1rem 1rem;
    border-radius: 1.2rem;
    max-width: 21rem;
    min-width: 16rem;
    width: 100%;
    height: 23rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #f5f5f5;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(40, 40, 50, 0.14) 80%);
    box-shadow: 0 4px 28px 0 rgba(0, 0, 0, 0.19), 0 1.5px 3px 0 rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(3.5px);
    transition: transform 0.18s cubic-bezier(.33, 1.53, .67, 1), box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.card-char:hover {
    transform: translateY(-7px) scale(1.025);
}


.char-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.07rem;
    font-weight: 500;
    margin-bottom: .25rem;
    letter-spacing: 0.01em;
}

.char-card-header p {
    margin: 0;
    padding: 0;
    color: white;
    font-weight: 500;
}

.char-card-header p:last-child {
    font-size: 0.97rem;
    opacity: 0.77;
}

.char-card-body {
    display: flex;
    align-items: flex-end;
    gap: 1.1rem;
}

.char-card-body .img-container {
    width: 140px;
    aspect-ratio: 3/4;
    border-radius: .75rem;
    overflow: hidden;
    flex-shrink: 0;
}

.char-card-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    display: block;
    transition: filter .2s;

}

.drop-shadow-rose {
    --shadow-color: 0 0 5px rgba(247, 4, 130, 0.784);
    filter: drop-shadow(var(--shadow-color));
}

.drop-shadow-white {
    --shadow-color: 0 0 3px rgba(255, 255, 255, 0.762);
    filter: drop-shadow(var(--shadow-color));
}

.card-char:hover .char-card-body img {
    filter: brightness(1.08) drop-shadow(0 2px 7px #000a) drop-shadow(var(--shadow-color, none));
}


.char-card-body>div:last-child {
    flex: 1;
    padding-left: 0.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    justify-content: flex-end;
}

.card-text {
    margin: 0;
    color: #fffa;
    font-size: 1.03rem;
}

.card-text strong {
    color: #fafafa;
    font-weight: 500;
}

.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.gap-2 {
    gap: 0.67rem !important;
}


.card-char.best-player-card,
.best-player-card.card-char {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1.5px solid rgba(255, 214, 92, 0.65);
    background: linear-gradient(155deg, #0d0e10, #161821 55%, #1e160c 100%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 214, 92, 0.25);
}

.card-char.best-player-card::before,
.best-player-card.card-char::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 227, 158, 0.15);
    box-shadow: inset 0 0 25px rgba(255, 217, 121, 0.12);
    pointer-events: none;
}

.card-char.best-player-card::after,
.best-player-card.card-char::after {
    content: "";
    position: absolute;
    inset: -15% -12% auto -12%;
    height: 48%;
    background: radial-gradient(circle, rgba(255, 233, 145, 0.28), transparent 68%);
    filter: blur(35px);
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.card-char.best-player-card:hover::after,
.best-player-card.card-char:hover::after {
    opacity: 1;
    transform: scale(1.08);
}

.card-char.best-player-card .char-card-header p:first-child,
.best-player-card.card-char .char-card-header p:first-child {
    color: #ffeaba;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(255, 212, 121, 0.65);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.card-char.best-player-card .char-card-body img,
.best-player-card.card-char .char-card-body img {
    filter: none;
}

.card-char.best-player-card:hover,
.best-player-card.card-char:hover {
    box-shadow:
        0 9px 32px rgba(0, 0, 0, 0.38),
        0 0 40px rgba(255, 214, 92, 0.4);
}

.card-img-top {
    width: 1.2rem;
}

.borderless {
    border: transparent;
}

.btn-text-red {
    color: rgba(255, 0, 0, 0.68);
    transition-duration: 200ms;
}

.btn-text-red:hover {
    color: red;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.673);
}

.btn-text-blue {
    color: rgba(0, 255, 0, 0.601);
    transition-duration: 200ms;
}

.btn-text-blue:hover {
    color: rgb(0, 255, 0);
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.743);
}

/* -----cards de nuevo personaje---------- */
.new-char-card {
    border: 2px dashed #71f5c6bb;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, rgba(34, 255, 200, 0.09), rgba(40, 40, 50, 0.13) 90%);
    color: #F5F5F5;
    min-width: 16rem;
    max-width: 21rem;
    width: 100%;
    height: 23rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.13);
    backdrop-filter: blur(2.5px);
    transition: box-shadow 0.17s, transform 0.16s, border-color 0.15s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.new-char-card:hover {
    transform: translateY(-4px) scale(1.022);
}

.new-char-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.new-char-circle {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: rgba(38, 255, 198, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.9rem;
    box-shadow: 0 2px 8px 0 #2affdb2a;
    border: 2.5px solid #52fad8cc;
    transition: background .14s, border-color .14s;
}

.new-char-card:hover .new-char-circle {
    background: #38d9a9;
    border-color: #fff;
}

.new-char-plus {
    font-size: 2.7rem;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    transition: color .13s, transform .14s;
}

.new-char-card:hover .new-char-plus {
    color: #12504b;
    transform: scale(1.19);
}

.new-char-title {
    color: #e6fff9;
    font-size: 1.14rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: .01em;
    text-shadow: 0 2px 10px #0002;
    transition: color .13s;
    user-select: none;
}

/* imgen de fondo */
.bg-img-containter {
    position: fixed;
    bottom: 0;
    right: -10rem;
    height: 80vh;
    opacity: .3;
    z-index: 1;
}

#char-bg-image {
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.35s cubic-bezier(.43, 1.56, .51, .96), transform 0.4s cubic-bezier(.43, 1.56, .51, .96);
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    pointer-events: none;
}

#char-bg-image.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}


/* //////////////////////////////////////////////// */

/* Seccion de abajo */
.glass-board-wide {
    width: 95%;
    margin: 0 auto;
    /* margin: 2.5rem auto 2.5rem auto; */
    padding: 2.2rem 3rem 2.1rem 3rem;
    border-radius: 2.2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(40, 40, 50, 0.14) 80%);
    border: 2px solid #fff3;
    box-shadow: 0 9px 44px 0 rgba(30, 25, 60, 0.14), 0 2.5px 10px 0 rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(15px) saturate(1.23);
    color: #fafaff;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    align-items: stretch;
}

.glass-board-wide-section {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.glass-board-wide-title {
    font-size: 2.05rem;
    color: #dbbe01;
    font-weight: 800;
    margin: 0 0 0.9rem 0;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 9px #47387a4a;
    opacity: 0.95;
}

.glass-board-wide-row {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: space-between;
    font-size: 1.7rem;
    background: rgba(255, 255, 255, 0.09);
    padding: 1.1rem 2.2rem 1.1rem 2.2rem;
    border-radius: 1.25rem;
    font-weight: 700;
    box-shadow: 0 2px 10px #221e3a13;
}

.glass-label-wide {
    color: #dbbe01;
    font-weight: 600;
    min-width: 115px;
    letter-spacing: 0.03em;
    font-size: 1.2em;
    opacity: 0.93;
}

.glass-value-wide {
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.02em;
    font-size: 1.33em;
    text-shadow: 0 1px 8px #3d34552b;
}

.glass-divider-wide {
    margin: 1.2rem 0;
    border: none;
    border-top: 2.2px solid #fff3;
    background: none;
}

@media (max-width: 1050px) {
    .glass-board-wide {
        max-width: 98vw;
        padding: 1.2rem 0.3rem 1.2rem 0.3rem;
    }

    .glass-board-wide-row {
        flex-wrap: wrap;
        gap: 1.1rem;
        padding: 0.7rem 0.6rem 0.7rem 0.6rem;
        font-size: 1.14rem;
    }

    .glass-board-wide-title {
        font-size: 1.45rem;
    }
}

.legend-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    width: 100%;
}

.legend-highlight-card {
    position: relative;
    border-radius: 22px;
    padding: 1.4rem 1.6rem;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), rgba(10, 10, 18, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 26px 45px rgba(0, 0, 0, 0.35);
    color: #f8f9fb;
    overflow: hidden;
}

.legend-highlight-card::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -40%;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0.8;
    filter: blur(60px);
    pointer-events: none;
}

.legend-highlight-card.gradient-character::after,
.legend-highlight-card.gradient-clan::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    z-index: 0;
    opacity: 0.7;
}

.legend-highlight-card.gradient-character::after {
    background: radial-gradient(circle at 15% 15%, rgba(255, 220, 128, 0.25), transparent 55%);
}

.legend-highlight-card.gradient-clan::after {
    background: radial-gradient(circle at 80% 20%, rgba(137, 196, 255, 0.25), transparent 55%);
}

.legend-highlight-card > * {
    position: relative;
    z-index: 1;
}

.legend-highlight-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.legend-highlight-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.09);
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.1);
}

.legend-highlight-meta {
    flex: 1;
}

.legend-highlight-label {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

.legend-highlight-name {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fdfdfd;
}

.legend-highlight-xp {
    text-align: right;
    min-width: 100px;
}

.legend-highlight-xp span {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
}

.legend-highlight-xp strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffd861;
}

.legend-highlight-note {
    margin: 1rem 0 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 600px) {
    .legend-highlight-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .legend-highlight-xp {
        width: 100%;
        text-align: left;
    }
}

/* Cards Inventario */

.inv-card {
    width: 94%;
    /* max-width: 430px; */
    margin: 22px auto 20px auto;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.19) 60%, rgba(40, 40, 50, 0.16) 100%);
    border: 1.5px solid #fff3;
    border-radius: 1.18rem;
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.15), 0 1.5px 4px 0 rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(5.5px);
    color: #f7f7fa;
    padding: 1.2rem 1.5rem 1.1rem 1.5rem;
    transition: box-shadow 0.19s;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
}

.inv-card-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.22rem;
    font-weight: 600;
    color: #f6de90;
    margin-bottom: 0.2rem;
    letter-spacing: 0.01em;
}

.inv-slot-label {
    color: #ffd860;
    font-weight: 700;
}

.inv-slot-value {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.11);
    border-radius: 0.47rem;
    padding: 0.1rem 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.inv-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

.inv-label {
    color: #8d88aa;
    font-weight: 600;
    margin-right: 0.2rem;
}

.inv-value {
    color: #fafaff;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.inv-actions-row {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.6rem;
}

.inv-btn {
    border: none;
    border-radius: 0.7rem;
    font-size: 1.02rem;
    font-weight: 600;
    padding: 0.47rem 1.25rem;
    margin: 0;
    cursor: pointer;
    background: rgba(250, 250, 255, 0.09);
    color: #fcf9fc;
    transition: background 0.16s, color 0.14s, box-shadow 0.15s;
    box-shadow: 0 2px 6px 0 #0002;
    letter-spacing: 0.01em;
    outline: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.inv-btn-danger {
    background: linear-gradient(120deg, #941f40 60%, #ef5e5a 100%);
    color: #fff;
}

.inv-btn-danger:hover {
    background: linear-gradient(120deg, #c32323 60%, #ffe0e0 100%);
    color: #710b2d;
}

.inv-btn-warning {
    background: linear-gradient(120deg, #554100 60%, #ffe08b 100%);
    color: #fff9e7;
}

.inv-btn-warning:hover {
    background: linear-gradient(120deg, #ffe08b 80%, #ffd700 100%);
    color: #6b4b00;
}
