/* =========================================================
   BANCO DEL CLAN · PÁGINA PÚBLICA
========================================================= */


/* =========================================================
   PANEL PRINCIPAL
========================================================= */

.public-panel {
    padding: 22px;
}


/* =========================================================
   BUSCADOR PÚBLICO · FILTRADO EN TIEMPO REAL
========================================================= */

/* El atributo hidden debe prevalecer incluso sobre los display definidos
 * por estos componentes. */
.public-search-clear[hidden],
.public-advanced-count[hidden],
.public-advanced-group[hidden],
.public-class-message[hidden],
.public-filter-reset[hidden],
.public-filter-empty[hidden] {
    display: none !important;
}


.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    white-space: nowrap;

    border: 0;
}


.public-filter-shell {
    margin-bottom: 28px;
    padding: 14px;

    border:
        1px solid
        rgba(151, 197, 221, 0.58);

    border-radius: 19px;

    background:
        linear-gradient(
            145deg,
            rgba(252, 254, 255, 0.97),
            rgba(238, 248, 253, 0.91)
        );

    box-shadow:
        0 9px 24px
        rgba(35, 88, 120, 0.10);

    backdrop-filter:
        blur(6px);
}


.public-filter-primary {
    display: grid;

    grid-template-columns:
        minmax(250px, 1.35fr)
        minmax(440px, 1fr);

    gap: 12px;

    align-items: center;
}


/* =========================================================
   BÚSQUEDA
========================================================= */

.public-search-box {
    position: relative;

    min-width: 0;
}


.public-search-icon {
    position: absolute;

    top: 50%;
    left: 15px;

    z-index: 2;

    transform:
        translateY(-50%);

    color:
        #56829c;

    font-size: 22px;
    font-weight: 900;
    line-height: 1;

    pointer-events: none;
}


.public-search-input {
    width: 100%;
    min-height: 46px;

    padding:
        0
        43px;

    border:
        1px solid
        rgba(111, 170, 202, 0.52);

    border-radius: 14px;

    outline: none;

    background:
        rgba(255, 255, 255, 0.97);

    color:
        #17364c;

    font-family: inherit;
    font-size: 14px;
    font-weight: 750;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.86),
        0 3px 10px
        rgba(45, 98, 128, 0.05);

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}


.public-search-input::placeholder {
    color:
        #91a7b6;

    font-weight: 650;
}


.public-search-input:focus {
    border-color:
        rgba(53, 133, 174, 0.78);

    background:
        #ffffff;

    box-shadow:
        0 0 0 4px
        rgba(79, 157, 199, 0.13),
        0 5px 14px
        rgba(45, 98, 128, 0.08);
}


.public-search-clear {
    position: absolute;

    top: 50%;
    right: 8px;

    z-index: 3;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    padding: 0;

    transform:
        translateY(-50%);

    border: 0;
    border-radius: 50%;

    background:
        rgba(70, 116, 143, 0.10);

    color:
        #53788e;

    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;
}


.public-search-clear:hover {
    background:
        rgba(70, 116, 143, 0.18);

    color:
        #294f67;
}


/* =========================================================
   CLASES PRINCIPALES · ICONOS OFICIALES
========================================================= */

.public-class-picker {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
}

.public-class-filter {
    --class-solid: #355f78;
    --class-rgb: 53, 95, 120;

    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-width: 0;
    min-height: 44px;
    padding: 6px 9px;
    overflow: hidden;

    border: 1px solid rgba(var(--class-rgb), 0.30);
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            rgba(var(--class-rgb), 0.15),
            rgba(var(--class-rgb), 0.055)
        ),
        rgba(250, 253, 255, 0.96);

    color: var(--class-solid);

    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 2px 7px rgba(38, 75, 98, 0.045);

    transition:
        transform 0.12s ease,
        border-color 0.12s ease,
        background 0.12s ease,
        color 0.12s ease,
        box-shadow 0.12s ease;
}

.public-class-filter:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--class-rgb), 0.52);
    background:
        linear-gradient(
            135deg,
            rgba(var(--class-rgb), 0.21),
            rgba(var(--class-rgb), 0.085)
        ),
        #ffffff;
}

.public-class-filter:focus-visible,
.public-type-filter:focus-visible,
.public-slot-filter:focus-visible,
.public-filter-reset:focus-visible,
.public-search-clear:focus-visible {
    outline: 3px solid rgba(68, 147, 189, 0.23);
    outline-offset: 2px;
}

.public-class-filter-icon {
    position: relative;
    z-index: 1;

    width: 27px;
    height: 27px;
    flex: 0 0 27px;

    object-fit: cover;
    border-radius: 7px;

    box-shadow:
        0 1px 4px rgba(24, 52, 73, 0.14);

    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease;
}

.public-class-filter-label {
    position: relative;
    z-index: 1;

    overflow: hidden;
    text-overflow: ellipsis;
}

.public-class-filter:hover .public-class-filter-icon {
    transform: scale(1.04);
}

/* Todos · neutro */
.class-filter-all {
    --class-solid: #49677a;
    --class-rgb: 73, 103, 122;
}

/* Mago · turquesa */
.class-filter-mago {
    --class-solid: #258ea3;
    --class-rgb: 67, 179, 200;
}

/* Sacerdote · dorado */
.class-filter-priest {
    --class-solid: #a78343;
    --class-rgb: 215, 181, 118;
}

/* Guerrero · coral */
.class-filter-guerrero {
    --class-solid: #b65046;
    --class-rgb: 220, 105, 91;
}

/* Pícaro · violeta grisáceo */
.class-filter-picaro {
    --class-solid: #635d79;
    --class-rgb: 119, 111, 139;
}

.public-class-filter[aria-pressed="true"] {
    border-color: var(--class-solid);
    background: var(--class-solid);
    color: #ffffff;

    box-shadow:
        0 6px 14px rgba(var(--class-rgb), 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.public-class-filter[aria-pressed="true"] .public-class-filter-icon {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.28),
        0 2px 6px rgba(20, 35, 45, 0.18);
}

.class-filter-all[aria-pressed="true"] {
    background: #355f78;
    border-color: #355f78;
}

.public-class-filter.is-denied {
    animation:
        public-filter-shake
        0.28s ease;
}


@keyframes public-filter-shake {
    0%, 100% {
        transform:
            translateX(0);
    }

    30% {
        transform:
            translateX(-3px);
    }

    70% {
        transform:
            translateX(3px);
    }
}


/* =========================================================
   ESTADO / LIMPIAR
========================================================= */

.public-filter-meta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    min-height: 25px;

    margin-top: 9px;
    padding:
        0
        2px;
}


.public-result-count {
    color:
        #71899a;

    font-size: 11px;
    font-weight: 800;
}


.public-filter-reset {
    padding:
        4px
        6px;

    border: 0;

    background:
        transparent;

    color:
        #47758f;

    font-family: inherit;
    font-size: 11px;
    font-weight: 900;

    cursor: pointer;
}


.public-filter-reset:hover {
    color:
        #1e5d80;
}


.public-class-message {
    margin-top: 4px;
    padding:
        7px
        10px;

    border:
        1px solid
        rgba(205, 159, 59, 0.28);

    border-radius: 10px;

    background:
        rgba(255, 247, 219, 0.90);

    color:
        #80631d;

    font-size: 10px;
    font-weight: 800;

    text-align: center;
}


/* =========================================================
   FILTROS AVANZADOS
========================================================= */

.public-advanced {
    margin-top: 7px;

    border-top:
        1px solid
        rgba(134, 180, 205, 0.30);
}


.public-advanced > summary {
    display: flex;

    align-items: center;
    justify-content: flex-start;

    gap: 7px;

    min-height: 36px;

    padding:
        8px
        3px
        2px;

    color:
        #4d7085;

    font-size: 11px;
    font-weight: 900;

    list-style: none;

    cursor: pointer;

    user-select: none;
}


.public-advanced > summary::-webkit-details-marker {
    display: none;
}


.public-advanced > summary::after {
    content:
        "⌄";

    margin-left: auto;

    color:
        #7895a7;

    font-size: 16px;
    line-height: 1;

    transition:
        transform 0.15s ease;
}


.public-advanced[open] > summary::after {
    transform:
        rotate(180deg);
}


.public-advanced-count {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 19px;
    height: 19px;

    padding:
        0
        5px;

    border-radius: 999px;

    background:
        #3d718f;

    color:
        #ffffff;

    font-size: 9px;
    font-weight: 950;
}


.public-advanced-body {
    display: grid;

    gap: 13px;

    padding:
        11px
        1px
        2px;
}


.public-advanced-group {
    display: grid;

    gap: 7px;
}


.public-filter-label {
    display: flex;

    align-items: baseline;

    gap: 6px;

    color:
        #42657a;

    font-size: 10px;
    font-weight: 950;

    letter-spacing: 0.25px;

    text-transform: uppercase;
}


.public-filter-label small {
    color:
        #879ba8;

    font-size: 9px;
    font-weight: 750;

    letter-spacing: 0;

    text-transform: none;
}


.public-type-picker,
.public-slot-picker {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;
}


.public-type-filter,
.public-slot-filter {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 32px;

    padding:
        6px
        10px;

    border:
        1px solid
        rgba(128, 170, 193, 0.40);

    border-radius: 999px;

    background:
        rgba(250, 253, 255, 0.96);

    color:
        #5b788a;

    font-family: inherit;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.1;

    white-space: nowrap;

    cursor: pointer;

    transition:
        transform 0.12s ease,
        border-color 0.12s ease,
        background 0.12s ease,
        color 0.12s ease;
}


.public-type-filter:hover,
.public-slot-filter:hover {
    transform:
        translateY(-1px);

    border-color:
        rgba(75, 139, 174, 0.58);
}


.public-type-filter[aria-pressed="true"] {
    border-color:
        #345e77;

    background:
        #345e77;

    color:
        #ffffff;
}


.public-slot-filter[aria-pressed="true"] {
    border-color:
        #3a857c;

    background:
        #3a857c;

    color:
        #ffffff;
}


.public-advanced-selects {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(180px, 235px)
        );

    gap: 10px;
}


.public-select-field {
    display: grid;

    gap: 5px;
}


.public-select-field > span {
    color:
        #59788b;

    font-size: 10px;
    font-weight: 900;
}


.public-select-field .select {
    width: 100%;
    min-height: 38px;

    font-size: 11px;
}


/* =========================================================
   OCULTACIÓN DINÁMICA
========================================================= */

.public-item-card[hidden],
.public-filter-empty[hidden] {
    display:
        none
        !important;
}


.public-filter-empty {
    margin-top: 4px;
}


/* =========================================================
   RESPONSIVE DEL BUSCADOR
========================================================= */

@media (max-width: 980px) {

    .public-filter-primary {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 650px) {

    .public-filter-shell {
        margin-bottom: 22px;
        padding: 10px;

        border-radius: 16px;
    }


    .public-filter-primary {
        gap: 9px;
    }


    .public-search-input {
        min-height: 44px;

        padding:
            0
            40px;

        font-size: 13px;
    }


    .public-search-icon {
        left: 13px;

        font-size: 20px;
    }


    .public-class-picker {
        gap: 4px;
    }


    .public-class-filter {
        flex-direction: column;
        gap: 2px;

        min-height: 54px;
        padding: 5px 2px 4px;

        border-radius: 10px;

        font-size: 8.5px;
        letter-spacing: -0.1px;
    }


    .public-class-filter-icon {
        width: 22px;
        height: 22px;
        flex-basis: 22px;

        border-radius: 6px;
    }


    .public-type-picker,
    .public-slot-picker {
        gap: 5px;
    }


    .public-type-filter,
    .public-slot-filter {
        min-height: 30px;

        padding:
            5px
            8px;

        font-size: 9px;
    }


    .public-advanced-selects {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 390px) {

    .public-class-filter {
        min-height: 52px;
        font-size: 7.8px;
        letter-spacing: -0.2px;
    }


    .public-class-filter-icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }


    .public-filter-meta {
        align-items: flex-start;
    }

}


/* =========================================================
   GRID DE OBJETOS
========================================================= */

.public-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 16px;
}


/* =========================================================
   TARJETA DE OBJETO
========================================================= */

.public-item-card {
    display: grid;

    grid-template-columns:
        92px
        minmax(0, 1fr);

    gap: 14px;

    min-width: 0;

    padding: 14px;

    border:
        1px solid
        rgba(158, 202, 225, 0.58);

    border-radius: 16px;

    background:
        rgba(249, 253, 255, 0.91);

    box-shadow:
        0 6px 16px
        rgba(41, 92, 123, 0.08);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}


.public-item-card:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(113, 177, 211, 0.72);

    box-shadow:
        0 10px 22px
        rgba(41, 92, 123, 0.13);
}


/* =========================================================
   IMAGEN
========================================================= */

.public-item-image {
    display: flex;

    align-items: flex-start;
    justify-content: center;
}


.public-item-image .item-thumb {
    width: 92px;
    height: 92px;

    flex-shrink: 0;

    border-radius: 15px;
}


.public-item-image .item-thumb img {
    width: 94%;
    height: 94%;
}


/* =========================================================
   CONTENIDO
========================================================= */

.public-item-content {
    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 92px;
}


.public-item-content h3 {
    margin:
        2px
        0
        6px;

    overflow: hidden;

    color: #18344c;

    font-size: 16px;
    font-weight: 850;
    line-height: 1.25;

    text-overflow: ellipsis;
}


/* =========================================================
   DATOS
========================================================= */

.public-item-details {
    display: flex;
    flex-wrap: wrap;

    gap: 4px;

    color: #71889b;

    font-size: 11px;
    line-height: 1.45;
}


.detail-separator {
    opacity: 0.55;
}


/* =========================================================
   CLASES · COLORES FIJOS
========================================================= */

.public-class-list,
.farever-tooltip-classes {
    display: inline-flex;

    flex-wrap: wrap;
    align-items: center;

    gap: 4px;
}


.public-class-tag {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        2px
        6px;

    border:
        1px solid
        transparent;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 900;

    line-height: 1.25;

    white-space: nowrap;
}


/* Guerrero · rojo */

.public-class-tag.class-warrior {
    border-color:
        rgba(188, 55, 55, 0.24);

    background:
        #fff0f0;

    color:
        #b52e2e;
}


/* Pícaro · dorado oscuro, legible sobre blanco */

.public-class-tag.class-rogue {
    border-color:
        rgba(184, 127, 0, 0.28);

    background:
        #fff7dc;

    color:
        #9a6900;
}


/* Sacerdote · verde */

.public-class-tag.class-priest {
    border-color:
        rgba(42, 133, 78, 0.24);

    background:
        #edf9f1;

    color:
        #247542;
}


/* Mago · azul */

.public-class-tag.class-mage {
    border-color:
        rgba(45, 111, 184, 0.24);

    background:
        #edf5ff;

    color:
        #2a68aa;
}


/* Todos · neutro */

.public-class-tag.class-all {
    border-color:
        rgba(96, 121, 139, 0.22);

    background:
        #f2f6f8;

    color:
        #617887;
}


/* =========================================================
   PIE DE TARJETA
========================================================= */

.public-item-footer {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 8px;

    margin-top: auto;
    padding-top: 12px;
}


/* =========================================================
   STOCK
========================================================= */

.public-stock {
    display: inline-flex;

    align-items: center;

    gap: 4px;

    padding:
        6px
        9px;

    border:
        1px solid
        #c9e9dd;

    border-radius: 999px;

    background:
        #eaf8f3;

    color:
        #3b725f;

    font-size: 11px;
    font-weight: 750;

    white-space: nowrap;
}


.public-stock strong {
    color:
        #1f7857;

    font-size: 12px;
}


/* =========================================================
   COPIAR TÍTULO
========================================================= */

.copy-title-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    padding:
        6px
        10px;

    border:
        1px solid
        rgba(63, 124, 160, 0.23);

    border-radius: 999px;

    background:
        rgba(237, 248, 253, 0.96);

    color:
        #356c8b;

    font-family: inherit;
    font-size: 10px;
    font-weight: 850;

    line-height: 1.2;

    white-space: nowrap;

    cursor: pointer;

    transition:
        transform 0.12s ease,
        background 0.12s ease,
        color 0.12s ease,
        border-color 0.12s ease;
}


.copy-title-button:hover {
    transform:
        translateY(-1px);

    background:
        #dff2fa;

    border-color:
        rgba(52, 127, 169, 0.38);

    color:
        #205d7e;
}


.copy-title-button.copied {
    background:
        #e7f8ef;

    border-color:
        #b8e2ca;

    color:
        #257452;
}


.copy-title-button.copy-error {
    background:
        #fdecec;

    border-color:
        #efc3c3;

    color:
        #a83c3c;
}


/* =========================================================
   SIN RESULTADOS
========================================================= */

.public-empty {
    margin-top: 4px;
}


/* =========================================================
   TOP APORTADORES · AVATARES
========================================================= */

.contributors-panel {
    margin-bottom: 22px;
    padding: 16px 18px 18px;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 20px;

    background: rgba(250, 253, 255, 0.90);

    box-shadow:
        0 8px 24px
        rgba(37, 86, 117, 0.11);

    backdrop-filter: blur(5px);
}

.contributors-title {
    display: flex;
    align-items: baseline;
    justify-content: center;

    gap: 7px;

    margin-bottom: 12px;

    color: #49697e;
}

.contributors-title strong {
    color: #274c65;

    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.8px;
}

.contributors-title small {
    color: #8194a3;

    font-size: 10px;
    font-weight: 700;
}

.contributors-strip {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(132px, 160px)
        );

    align-items: end;
    justify-content: center;

    gap: 14px;

    max-width: 920px;
    margin: 0 auto;
}

.contributor-profile {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;
    padding-top: 3px;
}

.contributor-avatar-wrap {
    position: relative;
    z-index: 2;

    width: 84px;
    height: 84px;
    padding: 4px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #dcecf4
        );

    box-shadow:
        0 7px 18px
        rgba(38, 82, 109, 0.18);
}

.contributor-avatar {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    background: #dfe8ee;
}

.contributor-pill {
    position: relative;
    z-index: 1;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    width: 100%;
    min-height: 38px;

    gap: 7px;

    margin-top: -8px;
    padding: 11px 10px 7px;

    border:
        1px solid
        rgba(126, 177, 203, 0.52);

    border-radius: 13px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98),
            rgba(235, 247, 252, 0.96)
        );

    color: #31566d;

    box-shadow:
        0 5px 13px
        rgba(41, 91, 120, 0.10);
}

.contributor-name {
    min-width: 0;
    overflow: hidden;

    font-size: 12px;
    font-weight: 950;

    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contributor-count {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 36px;

    gap: 3px;
    padding: 4px 6px;

    border-radius: 999px;

    background: rgba(73, 148, 184, 0.12);

    color: #397b9c;

    font-size: 10px;
    font-weight: 950;

    white-space: nowrap;
}

.contributor-count span {
    font-size: 10px;
}

@media (max-width: 900px) {

    .contributors-strip {
        display: flex;

        justify-content: flex-start;

        gap: 10px;

        max-width: none;
        padding: 0 4px 4px;

        overflow-x: auto;

        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        overscroll-behavior-x: contain;
    }

    .contributor-profile {
        flex: 0 0 142px;

        scroll-snap-align: start;
    }

}


@media (max-width: 650px) {

    .contributors-panel {
        margin-bottom: 14px;
        padding: 13px 0 14px;

        border-radius: 17px;
    }

    .contributors-title {
        margin-bottom: 10px;
        padding: 0 14px;
    }

    .contributors-strip {
        padding-right: 14px;
        padding-left: 14px;
    }

    .contributor-profile {
        flex-basis: 132px;
    }

    .contributor-avatar-wrap {
        width: 72px;
        height: 72px;
    }

    .contributor-pill {
        min-height: 35px;
        padding: 10px 8px 6px;
    }

    .contributor-name {
        font-size: 11px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .public-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


@media (max-width: 900px) {

    .public-filters {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        margin-bottom: 26px;
    }


    .public-filters .button {
        width: 100%;
    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 650px) {

    .public-panel {
        padding: 14px;
    }


    .public-filters {
        grid-template-columns:
            1fr;

        gap: 8px;

        margin-bottom: 25px;
    }


    .public-clear {
        margin-top: -14px;
        margin-bottom: 22px;
    }


    .public-grid {
        grid-template-columns:
            1fr;

        gap: 12px;
    }


    .public-item-card {
        grid-template-columns:
            78px
            minmax(0, 1fr);

        gap: 11px;

        padding: 11px;

        border-radius: 14px;
    }


    .public-item-image .item-thumb {
        width: 78px;
        height: 78px;

        border-radius: 13px;
    }


    .public-item-content {
        min-height: 78px;
    }


    .public-item-content h3 {
        margin-top: 0;

        font-size: 15px;
    }


    .public-item-details {
        font-size: 10px;
    }


    .public-item-footer {
        gap: 6px;

        padding-top: 9px;
    }


    .public-stock {
        padding:
            5px
            8px;

        font-size: 10px;
    }


    .copy-title-button {
        padding:
            5px
            8px;

        font-size: 9px;
    }

}


/* =========================================================
   MÓVIL MUY ESTRECHO
========================================================= */

@media (max-width: 390px) {

    .public-item-card {
        grid-template-columns:
            70px
            minmax(0, 1fr);
    }


    .public-item-image .item-thumb {
        width: 70px;
        height: 70px;
    }


    .public-item-footer {
        flex-wrap: wrap;
    }


    .copy-title-button {
        width: 100%;
    }

}

/* =========================================================
   STATS FAREVER · TOOLTIP
========================================================= */

.public-item-card.has-farever-tooltip {
    position: relative;
    overflow: visible;
}


.public-item-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 6px;

    min-width: 0;
}


.farever-stats-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 4px;

    padding:
        6px
        9px;

    border:
        1px solid
        rgba(109, 91, 168, 0.22);

    border-radius: 999px;

    background:
        rgba(244, 241, 253, 0.96);

    color:
        #66539b;

    font-family: inherit;
    font-size: 10px;
    font-weight: 850;

    line-height: 1.2;

    white-space: nowrap;

    cursor: pointer;

    transition:
        transform 0.12s ease,
        background 0.12s ease,
        border-color 0.12s ease,
        color 0.12s ease;
}


.farever-stats-button:hover {
    transform:
        translateY(-1px);

    background:
        #ece6fb;

    border-color:
        rgba(96, 75, 157, 0.36);

    color:
        #544183;
}


/*
 * Tooltip global.
 *
 * La imagen del propio objeto se coloca como marca de agua
 * dentro de la ventana para identificarlo de un vistazo.
 */

.farever-tooltip {
    position: fixed;

    z-index: 9999;

    width:
        min(
            380px,
            calc(100vw - 24px)
        );

    padding:
        17px;

    overflow: hidden;

    border:
        1px solid
        rgba(126, 164, 188, 0.52);

    border-radius: 16px;

    background:
        rgba(17, 34, 48, 0.985);

    color:
        #edf7fc;

    box-shadow:
        0 18px 46px
        rgba(12, 31, 44, 0.34);

    backdrop-filter:
        blur(8px);

    pointer-events: none;
}


.farever-tooltip[hidden] {
    display: none;
}


.farever-tooltip-close {
    display: none;
}


.farever-tooltip-inner {
    position: relative;

    min-height: 110px;
}


.farever-tooltip-art {
    position: absolute;

    right: -34px;
    bottom: -38px;

    z-index: 0;

    width: 230px;
    height: 230px;

    object-fit: contain;

    opacity: 0.36;

    filter:
        saturate(1.35)
        contrast(1.12);

    pointer-events: none;
    user-select: none;
}


.farever-tooltip-content {
    position: relative;

    z-index: 1;
}


.farever-tooltip-header {
    display: flex;

    flex-direction: column;

    gap: 4px;

    padding-right: 28px;
}


.farever-tooltip-header strong {
    color:
        #ffffff;

    font-size: 15px;
    font-weight: 900;

    line-height: 1.25;

    text-shadow:
        0 1px 3px
        rgba(0, 0, 0, 0.55);
}


.farever-tooltip-header > span {
    color:
        #afc7d7;

    font-size: 10px;
    font-weight: 750;
}


.farever-tooltip-classes {
    margin-top: 2px;
}


/*
 * Dentro del tooltip mantenemos los mismos colores de clase,
 * pero con un poco más de contraste sobre fondo oscuro.
 */

.farever-tooltip
.public-class-tag.class-warrior {
    background:
        rgba(255, 228, 228, 0.96);

    color:
        #a61f1f;
}


.farever-tooltip
.public-class-tag.class-rogue {
    background:
        rgba(255, 242, 190, 0.97);

    color:
        #8a5d00;
}


.farever-tooltip
.public-class-tag.class-priest {
    background:
        rgba(224, 247, 231, 0.97);

    color:
        #1e6d3c;
}


.farever-tooltip
.public-class-tag.class-mage {
    background:
        rgba(224, 239, 255, 0.97);

    color:
        #245f9e;
}


.farever-tooltip
.public-class-tag.class-all {
    background:
        rgba(236, 242, 246, 0.94);

    color:
        #536b7a;
}


/* =========================================================
   STATS · ESTILO DE JUEGO
========================================================= */

.farever-tooltip-stats {
    display: flex;

    flex-direction: column;
    align-items: flex-start;

    gap: 6px;

    margin-top: 14px;
    padding-top: 13px;

    border-top:
        1px solid
        rgba(178, 210, 228, 0.18);
}


.farever-stat-line {
    display: inline-flex;

    align-items: baseline;

    width: max-content;

    gap: 4px;

    color:
        #7dff72;

    font-size: 12px;
    font-weight: 850;

    line-height: 1.3;

    text-shadow:
        0 0 8px
        rgba(83, 255, 92, 0.20);
}


.farever-stat-line strong {
    color:
        #8cff7f;

    font-size: 13px;
    font-weight: 950;
}


.farever-stat-line span {
    color:
        #75ee6d;

    font-weight: 800;
}


/* =========================================================
   EFECTOS
========================================================= */

.farever-tooltip-effect {
    position: relative;

    z-index: 1;

    margin-top: 13px;
    padding:
        11px
        12px;

    border:
        1px solid
        rgba(111, 190, 166, 0.28);

    border-radius: 11px;

    background:
        rgba(32, 74, 63, 0.72);

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.025);
}


.farever-tooltip-upgrade {
    border-color:
        rgba(222, 183, 87, 0.32);

    background:
        rgba(91, 69, 25, 0.72);
}


.farever-tooltip-effect-title {
    display: block;

    margin-bottom: 5px;

    color:
        #91e0c5;

    font-size: 10px;
    font-weight: 950;

    letter-spacing: 0.45px;

    text-transform: uppercase;
}


.farever-tooltip-upgrade
.farever-tooltip-effect-title {
    color:
        #f0d47f;
}


.farever-tooltip-effect p {
    margin: 0;

    color:
        #eef6fa;

    font-size: 11px;
    font-weight: 650;

    line-height: 1.5;

    text-shadow:
        0 1px 2px
        rgba(0, 0, 0, 0.32);
}


/* =========================================================
   TOOLTIP EN MÓVIL / TÁCTIL
========================================================= */

.farever-tooltip.is-mobile {
    top: auto !important;
    right: 12px;
    bottom: 12px;
    left: 12px !important;

    width: auto;
    max-height: 72vh;

    overflow-y: auto;

    padding-top: 19px;

    border-radius: 18px;

    pointer-events: auto;
}


.farever-tooltip.is-mobile
.farever-tooltip-art {
    right: -22px;
    bottom: -28px;

    width: 210px;
    height: 210px;

    opacity: 0.28;
}


.farever-tooltip.is-mobile
.farever-tooltip-close {
    position: absolute;

    top: 7px;
    right: 9px;

    z-index: 5;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.12);

    color:
        #ffffff;

    font-family: inherit;
    font-size: 19px;
    font-weight: 700;

    cursor: pointer;
}


@media (max-width: 650px) {

    .public-item-actions {
        gap: 5px;
    }


    .farever-stats-button {
        padding:
            5px
            8px;

        font-size: 9px;
    }


    .public-class-tag {
        padding:
            2px
            5px;

        font-size: 9px;
    }

}


@media (max-width: 390px) {

    .public-item-actions {
        width: 100%;

        justify-content: stretch;

        flex-wrap: wrap;
    }


    .farever-stats-button,
    .public-item-actions .copy-title-button {
        flex:
            1
            1
            auto;

        width: auto;
    }

}


/* =========================================================
   CABECERA · MIEMBROS DEL CLAN
========================================================= */

.hero-clan-members {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    gap: 6px;

    margin-top: 4px;
    padding: 5px 10px;

    border: 1px solid rgba(76, 148, 112, 0.20);
    border-radius: 999px;

    background: rgba(238, 250, 243, 0.72);

    color: #4d6f61;

    font-size: 11px;
    font-weight: 750;
    line-height: 1;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.hero-clan-members strong {
    color: #2b6d4d;

    font-size: 12px;
    font-weight: 950;
}

.hero-clan-status-dot {
    display: inline-block;

    width: 9px;
    height: 9px;

    flex: 0 0 9px;

    border-radius: 50%;

    background: #23a55a;

    box-shadow:
        0 0 0 2px rgba(35, 165, 90, 0.10);
}

@media (max-width: 650px) {

    .hero-clan-members {
        margin-top: 3px;
        padding: 5px 9px;

        font-size: 10px;
    }

    .hero-clan-members strong {
        font-size: 11px;
    }

    .hero-clan-status-dot {
        width: 8px;
        height: 8px;

        flex-basis: 8px;
    }

}
