:root {
    --tcg-gold: #f2c15c;
    --tcg-gold-strong: #ffcc66;
    --tcg-purple: #7f3cff;
    --tcg-ink: #0f0b15;
    --tcg-text: #f7ead0;
    --tcg-muted: #d4c7aa;
}


.logoHeader {
    display: flex;
    justify-content: end;
    padding-top: 5px;
    width: 70%;
}

@media (max-width: 767px) {
    .logoHeader {
        width: 80%;
    }

    .btnMenuDisplay {
        justify-content: center;
    }
}

.topbar {
    width: 100%;
    height: 85px;
    background-image: url('/Content/images/top-bar/tcg_chile_top_bar_top.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-size: 100% 100%;
}
.loginbar {
    background-image: url('/Content/images/top-bar/d8031a9c-44bc-43e7-938a-f59390ab6081.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.links {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.15px;
    color: #E9C27A;
    transition: color 0.2s ease-in-out;
    text-decoration: none;
}

.links:hover {
    color: #FFB45A;
}
.links a {
    margin-left: 4px;
}
.thorynForgotPass {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.1px;
    color: #BFAF96;
    transition: color 0.2s ease-in-out;
    text-decoration: none;
}

    .thorynForgotPass:hover {
        color: #E5C58D;
    }
    .thorynForgotPass a {
        margin-left: 4px;
    }
.aelricLoginButtonText {
    font-family: "Cinzel", "Inter", serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.3px;
    color: #FFF3DC;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.50);
}
/* =========================
   Botón “Iniciar Sesión”
   ========================= */
.vorathLoginButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    height: 46px;
    padding: 0 22px;
    border: 1px solid #F2B35E;
    border-radius: 8px;
    background: linear-gradient(180deg, #E48A32 0%, #C7671E 48%, #9F4310 100%);
    box-shadow: inset 0 1px 0 rgba(255, 236, 201, 0.30), inset 0 -1px 0 rgba(90, 30, 0, 0.35), 0 0 0 1px rgba(255, 184, 92, 0.10), 0 4px 10px rgba(0, 0, 0, 0.28), 0 0 14px rgba(240, 138, 43, 0.18);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

    .vorathLoginButton:hover {
        border-color: #FFD089;
        background: linear-gradient(180deg, #F09A3B 0%, #D87222 48%, #AF4D12 100%);
        box-shadow: inset 0 1px 0 rgba(255, 240, 214, 0.34), inset 0 -1px 0 rgba(90, 30, 0, 0.38), 0 0 0 1px rgba(255, 197, 116, 0.14), 0 6px 14px rgba(0, 0, 0, 0.30), 0 0 18px rgba(240, 138, 43, 0.28);
        transform: translateY(-1px);
    }

    .vorathLoginButton:active {
        transform: translateY(0);
        background: linear-gradient(180deg, #C96820 0%, #B05217 50%, #8D390D 100%);
        box-shadow: inset 0 2px 4px rgba(60, 18, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.24), 0 0 10px rgba(240, 138, 43, 0.16);
    }

    .vorathLoginButton:focus,
    .vorathLoginButton:focus-visible {
        outline: none;
        border-color: #FFD48A;
        box-shadow: inset 0 1px 0 rgba(255, 236, 201, 0.30), inset 0 -1px 0 rgba(90, 30, 0, 0.35), 0 0 0 2px rgba(255, 212, 138, 0.18), 0 0 18px rgba(240, 138, 43, 0.24);
    }

    .vorathLoginButton:disabled,
    .vorathLoginButton.disabled {
        cursor: not-allowed;
        opacity: 0.72;
        background: linear-gradient(180deg, #8C6A4C 0%, #75553A 48%, #5F442D 100%);
        border-color: #B99667;
        box-shadow: inset 0 1px 0 rgba(255, 236, 201, 0.10), 0 2px 6px rgba(0, 0, 0, 0.18);
    }
/* =========================
   Texto del botón “Iniciar Sesión”
   ========================= */
.aelricLoginButtonText {
    font-family: "Cinzel", "Inter", serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.3px;
    color: #FFF3DC;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.50), 0 0 6px rgba(255, 179, 94, 0.10);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
}
/* =========================================================
   ALTERNATIVA NUEVA - BUSCADOR TOP
   Altura total considerada: 85px
   ========================================================= */

/* Opcional
@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Inter:wght@400;500;600;700&display=swap');
*/

.lytheraSlot {
    position: relative;
    width: 100%;
    height: 85px;
    display: grid;
    grid-template-rows: 56px 21px;
    row-gap: 4px;
    align-content: start;
    padding: 2px 0;
    box-sizing: border-box;
}

.lytheraBar {
    position: relative;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    padding: 0 44px 0 48px;
    border: 1px solid rgba(240, 191, 102, 0.55);
    background: linear-gradient(180deg, rgba(11, 13, 24, 0.94) 0%, rgba(8, 9, 18, 0.98) 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 234, 195, 0.10), inset 0 0 0 1px rgba(255, 219, 152, 0.04);
    transition: transform 0.20s ease, border-color 0.20s ease, box-shadow 0.20s ease;
}

    .lytheraBar::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(90deg, rgba(9, 11, 20, 0.82) 0%, rgba(17, 19, 33, 0.56) 38%, rgba(8, 10, 19, 0.82) 100%), var(--lytheraTexture);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        opacity: 0.95;
        z-index: 0;
    }

    .lytheraBar::after {
        content: "";
        position: absolute;
        inset: 1px;
        border-radius: 15px;
        pointer-events: none;
        background: radial-gradient(circle at 20% 100%, rgba(255, 141, 43, 0.14), transparent 22%), radial-gradient(circle at 60% 0%, rgba(255, 186, 72, 0.10), transparent 20%), radial-gradient(circle at 100% 20%, rgba(73, 120, 255, 0.10), transparent 16%);
        z-index: 0;
    }

    .lytheraBar:hover,
    .lytheraBar:focus-within {
        transform: translateY(-1px);
        border-color: rgba(255, 209, 126, 0.82);
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32), 0 0 0 3px rgba(255, 191, 84, 0.08), 0 0 22px rgba(255, 146, 39, 0.10), inset 0 1px 0 rgba(255, 236, 202, 0.14), inset 0 0 0 1px rgba(255, 227, 168, 0.05);
    }

.lytheraMark {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #f0bf68;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(255, 176, 57, 0.18));
}

.lytheraField {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 0 !important;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #f6e5bf !important;
    font-family: "Marcellus", Georgia, serif;
    font-size: 1.42rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 56px;
}

    .lytheraField::placeholder {
        color: rgba(242, 205, 131, 0.92);
        opacity: 1;
    }

    .lytheraField:-webkit-autofill,
    .lytheraField:-webkit-autofill:hover,
    .lytheraField:-webkit-autofill:focus,
    .lytheraField:-webkit-autofill:active {
        -webkit-text-fill-color: #f6e5bf !important;
        -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
        transition: background-color 9999s ease-in-out 0s;
        caret-color: #ffd47d;
    }

.lytheraGlow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    border-radius: 3px;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at 35% 35%, #fff0c0 0%, #ffcf6b 42%, #d88924 100%);
    box-shadow: 0 0 8px rgba(255, 186, 73, 0.52), 0 0 16px rgba(255, 128, 35, 0.18);
}

.lytheraTrail {
    position: absolute;
    left: 48px;
    right: 32px;
    bottom: 7px;
    z-index: 1;
    pointer-events: none;
    color: rgba(231, 220, 194, 0.48);
    font-family: "Inter", "Segoe UI", sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lytheraPath {
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lytheraGate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 21px;
    padding: 0 12px;
    border-radius: 999px;
    text-decoration: none !important;
    color: rgba(247, 227, 184, 0.88) !important;
    font-family: "Inter", "Segoe UI", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(20, 17, 31, 0.42);
    border: 1px solid rgba(239, 192, 104, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 231, 189, 0.04);
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

    .lytheraGate:hover,
    .lytheraGate:focus {
        color: #ffe0a1 !important;
        background: rgba(28, 22, 39, 0.56);
        border-color: rgba(255, 206, 117, 0.36);
        box-shadow: 0 0 14px rgba(255, 156, 43, 0.08), inset 0 1px 0 rgba(255, 236, 202, 0.06);
    }

.lytheraRune {
    font-size: 0.78rem;
    line-height: 1;
    color: #f0bd63;
}

@media (max-width: 991.98px) {
    #buscaBwr {
        width: 100% !important;
    }

    .lytheraField {
        font-size: 1.18rem;
    }

    .lytheraTrail {
        font-size: 0.58rem;
    }
}

@media (max-width: 767.98px) {
    .lytheraBar {
        padding-left: 42px;
        padding-right: 36px;
    }

    .lytheraField {
        font-size: 1.02rem;
    }

    .lytheraTrail {
        display: none;
    }

    .lytheraGate {
        font-size: 0.68rem;
        padding: 0 10px;
    }
}
/*
 * Contenedor general generado por jQuery UI.
 */
.autocomplete-cartas-top {
    box-sizing: border-box !important;
    /*
     * Aproximadamente tres resultados de 100px.
     */
    max-height: min(325px, 48vh);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px !important;
}

    /*
 * Cada fila del listado.
 */
    .autocomplete-cartas-top .ui-menu-item {
        width: 100%;
        margin: 0 0 6px 0;
        padding: 0;
        box-sizing: border-box;
    }

        .autocomplete-cartas-top .ui-menu-item:last-child {
            margin-bottom: 0;
        }

    /*
 * jQuery UI agrega este wrapper automáticamente.
 */
    .autocomplete-cartas-top .ui-menu-item-wrapper {
        width: 100%;
        padding: 0 !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    /*
 * Tarjeta compacta.
 */
    .autocomplete-cartas-top .grid-item-search {
        display: grid !important;
        grid-template-columns: 76px minmax(0, 1fr);
        align-items: center;
        width: 100%;
        height: 98px;
        min-height: 98px;
        max-height: 98px;
        box-sizing: border-box;
        overflow: hidden;
    }

    /*
 * Sector de la imagen.
 */
    .autocomplete-cartas-top .img-search {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 76px;
        height: 98px;
        overflow: hidden;
    }

        /*
 * Evita que Bootstrap agregue espacio excesivo.
 */
        .autocomplete-cartas-top .img-search .col {
            padding: 0 !important;
            flex-basis: auto;
        }

    /*
 * Imagen controlada para no aumentar la fila.
 */
    .autocomplete-cartas-top .img-item-search {
        display: block;
        width: 66px;
        height: 90px;
        max-width: 66px;
        max-height: 90px;
        object-fit: contain;
    }

    /*
 * Sector textual.
 */
    .autocomplete-cartas-top .desc-item-search {
        min-width: 0;
        max-width: 100%;
        padding: 5px 8px 5px 4px;
        box-sizing: border-box;
        font-size: 12px;
        line-height: 1.2;
        overflow: hidden;
    }

        /*
 * Reduce los márgenes Bootstrap dentro del autocomplete.
 */
        .autocomplete-cartas-top .desc-item-search > div {
            margin-top: 0 !important;
            margin-bottom: 3px !important;
        }

    /*
 * Impide que un nombre largo ensanche la lista.
 */
    .autocomplete-cartas-top .name-item-search {
        display: block;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .autocomplete-cartas-top a,
    .autocomplete-cartas-top span,
    .autocomplete-cartas-top small {
        max-width: 100%;
        box-sizing: border-box;
    }