/* =========================================================
   BRAWL TIER LIST · CRÉDITOS DEL PROYECTO
   Estilos aislados con prefijo btl-credits para no interferir
   con los estilos ni con las funciones de la aplicación.
   ========================================================= */

.btl-site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 26px 16px 30px;
    text-align: center;
}

.btl-site-footer .btl-footer-title,
.btl-site-footer .btl-footer-signature {
    margin: 0;
}

.btl-site-footer .btl-footer-title {
    color: #aebdd0;
    font-size: 13px;
}

.btl-site-footer .btl-footer-title span {
    color: #60a5fa;
}

.btl-credits-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 3px 0 0;
    padding: 7px 12px;
    color: #cfe6ff;
    font-size: 12px;
    font-weight: 750;
    background: rgba(15, 28, 49, 0.72);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 999px;
    cursor: pointer;
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.btl-credits-link:hover {
    color: #fff;
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(125, 211, 252, 0.7);
    transform: translateY(-1px);
}

.btl-credits-link:focus-visible,
.btl-credits-close:focus-visible {
    outline: 3px solid #7dd3fc;
    outline-offset: 3px;
}

.btl-site-footer .btl-footer-signature {
    color: #7f91a9;
    font-size: 11px;
}

.btl-site-footer .btl-footer-signature strong {
    color: #bdcce0;
}

.btl-credits-overlay[hidden] {
    display: none !important;
}

.btl-credits-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 18px;
    overflow-y: auto;
    background: rgba(2, 6, 23, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: btl-credits-fade-in 160ms ease-out;
}

.btl-credits-panel {
    position: relative;
    width: min(700px, 100%);
    max-height: min(850px, calc(100vh - 36px));
    overflow-y: auto;
    padding: clamp(20px, 4vw, 34px);
    color: #f8fafc;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.19), transparent 52%),
        linear-gradient(150deg, #111d31, #09111f 72%);
    border: 1px solid rgba(125, 211, 252, 0.25);
    border-radius: 22px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    animation: btl-credits-panel-in 180ms ease-out;
}

.btl-credits-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.btl-credits-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #7dd3fc;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.btl-credits-heading {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(23px, 4vw, 32px);
    font-weight: 950;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.btl-credits-intro {
    max-width: 490px;
    margin: 9px 0 0;
    color: #a7b7cb;
    font-size: 13px;
    line-height: 1.6;
}

.btl-credits-close {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #dbeafe;
    font-size: 22px;
    line-height: 1;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 11px;
    cursor: pointer;
    transition: background 150ms ease, transform 150ms ease;
}

.btl-credits-close:hover {
    background: rgba(59, 130, 246, 0.25);
    transform: rotate(3deg);
}

.btl-credits-people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.btl-credits-person {
    min-width: 0;
    padding: 20px;
    background: linear-gradient(155deg, rgba(30, 48, 74, 0.72), rgba(12, 22, 38, 0.85));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 17px;
}

.btl-credits-avatar {
    display: grid;
    place-items: center;
    width: 55px;
    height: 55px;
    margin-bottom: 17px;
    color: #bfdbfe;
    font-size: 25px;
    background: linear-gradient(145deg, #264974, #17283f);
    border: 1px solid rgba(147, 197, 253, 0.25);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

/* Foto/logo del creador: se mantiene el mismo tamaño visual que el avatar de IA. */
.btl-credits-avatar--profile {
    position: relative;
    overflow: hidden;
    padding: 3px;
    background: linear-gradient(145deg, #264974, #17283f);
}

.btl-credits-avatar--profile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 11px;
}

.btl-credits-avatar--profile img[hidden],
.btl-credits-avatar-fallback[hidden] {
    display: none !important;
}

.btl-credits-avatar-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 25px;
}

.btl-credits-person--ai .btl-credits-avatar {
    color: #ddd6fe;
    background: linear-gradient(145deg, #443567, #20243e);
    border-color: rgba(196, 181, 253, 0.28);
}

.btl-credits-role {
    margin: 0 0 6px;
    color: #7dd3fc;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btl-credits-person--ai .btl-credits-role {
    color: #c4b5fd;
}

.btl-credits-name {
    margin: 0;
    color: #f8fafc;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.btl-credits-description {
    margin: 11px 0 0;
    color: #afbed1;
    font-size: 12px;
    line-height: 1.7;
}

.btl-credits-divider {
    height: 1px;
    margin: 22px 0 15px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.3), transparent);
    border: 0;
}

.btl-credits-signoff {
    margin: 0;
    color: #8da0b8;
    font-size: 11px;
    line-height: 1.65;
    text-align: center;
}

.btl-credits-signoff strong {
    color: #dbeafe;
    font-weight: 800;
}

@keyframes btl-credits-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes btl-credits-panel-in {
    from { opacity: 0; transform: translateY(8px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 540px) {
    .btl-credits-overlay { padding: 10px; }
    .btl-credits-panel {
        max-height: calc(100vh - 20px);
        padding: 20px 16px;
        border-radius: 17px;
    }
    .btl-credits-header { gap: 10px; margin-bottom: 18px; }
    .btl-credits-people { grid-template-columns: 1fr; }
    .btl-credits-person { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 13px; padding: 15px; }
    .btl-credits-avatar { grid-row: 1 / span 3; width: 46px; height: 46px; margin: 0; font-size: 22px; border-radius: 13px; }
    .btl-credits-avatar--profile img { border-radius: 9px; }
    .btl-credits-avatar-fallback { font-size: 22px; }
    .btl-credits-role { align-self: end; }
    .btl-credits-name { font-size: 18px; }
    .btl-credits-description { margin-top: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    .btl-credits-overlay,
    .btl-credits-panel { animation: none !important; }
    .btl-credits-link,
    .btl-credits-close { transition: none !important; }
}
