/* =========================================================
   THE WOUNDED LEGACY
   FICHÁRIO PÚBLICO — V1
========================================================= */

:root {
    --dark: #15182B;
    --dark-2: #101321;
    --dark-3: #0B0E1A;
    --panel: #181B2D;
    --panel-2: #121626;

    --gold: #B29758;
    --gold-light: #CFB46D;

    --cream: #E8E2D5;
    --text: #CBC6BD;
}


/* =========================================================
   RESET LOCAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 0;
    min-height: 100vh;
    overflow-x: hidden;

    background:
        var(--dark);

    color:
        var(--text);

    font-family:
        'Poppins',
        sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}


/* =========================================================
   HERO
========================================================= */

.archive-hero {
    position: relative;

    min-height: 310px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        url('../images/hero.png')
        center 42% /
        cover
        no-repeat;

    border-bottom:
        1px solid
        rgba(178,151,88,.15);
}

.archive-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(8,12,28,.96),
            rgba(10,14,31,.84) 48%,
            rgba(12,16,33,.69)
        ),
        linear-gradient(
            to bottom,
            rgba(10,13,28,.25),
            rgba(21,24,43,.94)
        );
}

.archive-hero-inner {
    position: relative;
    z-index: 2;

    width:
        min(
            1180px,
            calc(100% - 70px)
        );

    margin:
        0 auto;

    padding:
        44px 0;
}

.archive-eyebrow {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 12px;

    color:
        var(--gold);

    font-family:
        'Cinzel',
        serif;

    font-size: 9px;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}

.archive-eyebrow span {
    width: 30px;
    height: 1px;

    background:
        rgba(178,151,88,.68);
}

.archive-hero h1 {
    max-width: 850px;

    margin: 0;

    color:
        var(--cream);

    font-family:
        'Cinzel',
        serif;

    font-size:
        clamp(
            42px,
            4vw,
            64px
        );

    line-height: 1.04;

    font-weight: 400;

    text-transform: uppercase;
}

.archive-hero h1 strong {
    display: block;

    color:
        var(--gold);

    font-weight: 500;
}

.archive-title-divider {
    position: relative;

    width: 290px;
    height: 24px;

    margin:
        14px
        0;
}

.archive-title-divider::before {
    content: '';

    position: absolute;

    top: 50%;
    left: 0;
    right: 0;

    height: 1px;

    background:
        linear-gradient(
            to right,
            var(--gold),
            transparent
        );
}

.archive-title-divider span {
    position: absolute;

    top: 50%;
    left: 34%;

    width: 8px;
    height: 8px;

    border:
        1px solid
        var(--gold);

    transform:
        translateY(-50%)
        rotate(45deg);
}

.archive-hero p {
    max-width: 760px;

    margin: 0;

    color:
        #DDD6C8;

    font-size: 12.5px;

    line-height: 1.8;
}


/* =========================================================
   PÁGINA
========================================================= */

.fichario-page,
.player-profile-page {
    width:
        min(
            1180px,
            calc(100% - 70px)
        );

    margin:
        0 auto;

    padding:
        58px
        0
        80px;
}


/* =========================================================
   CABEÇALHO DO REGISTRO
========================================================= */

.registry-heading {
    display: grid;

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

    align-items: end;

    gap: 45px;

    margin-bottom: 30px;

    padding-bottom: 28px;

    border-bottom:
        1px solid
        rgba(178,151,88,.14);
}

.section-kicker {
    display: block;

    margin-bottom: 7px;

    color:
        var(--gold);

    font-family:
        'Cinzel',
        serif;

    font-size: 8px;

    letter-spacing: 1.25px;

    text-transform: uppercase;
}

.registry-heading h2,
.character-section-heading h2 {
    margin:
        0
        0
        9px;

    color:
        var(--cream);

    font-family:
        'Cinzel',
        serif;

    font-size: 27px;

    line-height: 1.15;

    font-weight: 500;

    text-transform: uppercase;
}

.registry-heading p {
    max-width: 680px;

    margin: 0;

    color:
        rgba(203,198,189,.72);

    font-size: 10.5px;

    line-height: 1.8;
}

.registry-stats {
    display: flex;
    align-items: stretch;

    border:
        1px solid
        rgba(178,151,88,.17);

    background:
        rgba(12,15,28,.38);
}

.registry-stat {
    min-width: 86px;

    padding:
        12px
        14px;

    text-align: center;
}

.registry-stat + .registry-stat {
    border-left:
        1px solid
        rgba(178,151,88,.12);
}

.registry-stat strong {
    display: block;

    color:
        var(--gold);

    font-family:
        'Cinzel',
        serif;

    font-size: 20px;

    line-height: 1;
}

.registry-stat span {
    display: block;

    margin-top: 5px;

    color:
        rgba(203,198,189,.5);

    font-size: 7.5px;

    letter-spacing: .6px;

    text-transform: uppercase;
}


/* =========================================================
   BUSCA LOCAL
========================================================= */

.registry-tools {
    margin-bottom: 25px;
}

.registry-search {
    width: 100%;

    display: grid;

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

    align-items: center;

    gap: 10px;

    padding:
        8px
        9px
        8px
        13px;

    border:
        1px solid
        rgba(178,151,88,.18);

    background:
        rgba(12,15,28,.48);
}

.registry-search > svg {
    width: 16px;
    height: 16px;

    fill:
        rgba(178,151,88,.68);
}

.registry-search input {
    width: 100%;
    min-width: 0;

    height: 34px;

    padding: 0;

    border: 0;
    outline: 0;

    background:
        transparent;

    color:
        var(--cream);

    font-size: 10.5px;
}

.registry-search input::placeholder {
    color:
        rgba(203,198,189,.38);
}

.registry-search button,
.clear-search {
    min-height: 34px;

    padding:
        0
        15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(178,151,88,.31);

    background:
        rgba(178,151,88,.075);

    color:
        var(--gold);

    font-family:
        'Cinzel',
        serif;

    font-size: 8px;

    letter-spacing: .65px;

    text-transform: uppercase;

    cursor: pointer;
}

.registry-search button:hover {
    background:
        var(--gold);

    color:
        var(--dark-3);
}

.clear-search {
    border-color:
        rgba(203,198,189,.13);

    background:
        transparent;

    color:
        rgba(203,198,189,.55);
}


/* =========================================================
   GRID DE PLAYERS
========================================================= */

.player-grid {
    display: grid;

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

    gap: 14px;
}

.player-card {
    position: relative;

    min-width: 0;
    min-height: 190px;

    padding:
        19px;

    display: grid;

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

    gap: 18px;

    border:
        1px solid
        rgba(178,151,88,.22);

    background:
        linear-gradient(
            135deg,
            rgba(25,29,49,.88),
            rgba(16,19,34,.89)
        );

    overflow: hidden;

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

.player-card::before {
    content: '';

    position: absolute;

    inset: 5px;

    border:
        1px solid
        rgba(178,151,88,.055);

    pointer-events: none;
}

.player-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(178,151,88,.52);

    background:
        linear-gradient(
            135deg,
            rgba(30,34,56,.94),
            rgba(18,22,39,.94)
        );

    box-shadow:
        0 12px 28px
        rgba(0,0,0,.16);
}

.card-corner {
    position: absolute;

    width: 19px;
    height: 19px;

    opacity: .6;

    pointer-events: none;
}

.card-corner-tl {
    top: 9px;
    left: 9px;

    border-top:
        1px solid
        var(--gold);

    border-left:
        1px solid
        var(--gold);
}

.card-corner-br {
    right: 9px;
    bottom: 9px;

    border-right:
        1px solid
        var(--gold);

    border-bottom:
        1px solid
        var(--gold);
}

.player-seal {
    width: 70px;
    height: 70px;

    margin-top: 6px;

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

    border:
        1px solid
        rgba(178,151,88,.48);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(178,151,88,.08),
            rgba(178,151,88,.01)
        );

    box-shadow:
        inset 0 0 0 5px
        rgba(178,151,88,.035);
}

.player-seal span {
    color:
        var(--gold);

    font-family:
        'Cinzel',
        serif;

    font-size: 20px;

    letter-spacing: 1px;
}

.player-card-content {
    min-width: 0;
}

.player-card-top {
    display: flex;

    justify-content:
        space-between;

    gap: 14px;

    align-items:
        flex-start;
}

.player-type {
    display: block;

    margin-bottom: 5px;

    color:
        rgba(178,151,88,.6);

    font-size: 7px;

    letter-spacing: .9px;

    text-transform: uppercase;
}

.player-card h3 {
    margin: 0;

    color:
        var(--cream);

    font-family:
        'Cinzel',
        serif;

    font-size: 19px;

    line-height: 1.15;

    font-weight: 500;
}

.character-count {
    flex: 0 0 auto;

    min-width: 65px;

    text-align: right;
}

.character-count strong {
    display: block;

    color:
        var(--gold);

    font-family:
        'Cinzel',
        serif;

    font-size: 18px;

    line-height: 1;
}

.character-count span {
    color:
        rgba(203,198,189,.45);

    font-size: 6.8px;

    text-transform: uppercase;
}

.player-divider {
    position: relative;

    width: 100%;
    height: 13px;

    margin:
        6px 0
        8px;
}

.player-divider::before {
    content: '';

    position: absolute;

    top: 50%;
    left: 0;

    width: 115px;
    height: 1px;

    background:
        linear-gradient(
            to right,
            rgba(178,151,88,.62),
            transparent
        );
}

.player-divider span {
    position: absolute;

    top: 50%;
    left: 43px;

    width: 5px;
    height: 5px;

    border:
        1px solid
        rgba(178,151,88,.7);

    transform:
        translateY(-50%)
        rotate(45deg);
}

.character-preview {
    min-height: 42px;

    display: flex;
    flex-wrap: wrap;

    align-content:
        flex-start;

    gap:
        5px;
}

.character-preview span {
    padding:
        4px
        7px;

    border:
        1px solid
        rgba(178,151,88,.10);

    background:
        rgba(178,151,88,.025);

    color:
        rgba(203,198,189,.65);

    font-size: 7.8px;
}

.character-preview .more-characters {
    color:
        rgba(178,151,88,.72);
}

.player-card-action {
    margin-top: 10px;

    display: flex;
    align-items: center;

    gap: 4px;

    color:
        rgba(178,151,88,.76);

    font-family:
        'Cinzel',
        serif;

    font-size: 7.5px;

    letter-spacing: .55px;

    text-transform: uppercase;
}

.player-card-action svg {
    width: 13px;
    height: 13px;

    fill:
        currentColor;

    transition:
        transform .2s ease;
}

.player-card:hover .player-card-action svg {
    transform:
        translateX(3px);
}


/* =========================================================
   VAZIO
========================================================= */

.registry-empty {
    padding:
        70px
        30px;

    text-align: center;

    border:
        1px solid
        rgba(178,151,88,.15);

    background:
        rgba(13,16,29,.42);
}

.empty-symbol {
    margin-bottom: 12px;

    color:
        rgba(178,151,88,.58);

    font-size: 24px;
}

.registry-empty h3,
.registry-empty h1 {
    margin:
        0
        0
        10px;

    color:
        var(--cream);

    font-family:
        'Cinzel',
        serif;

    font-size: 24px;

    font-weight: 500;

    text-transform: uppercase;
}

.registry-empty p {
    max-width: 600px;

    margin:
        0 auto;

    color:
        rgba(203,198,189,.62);

    font-size: 10px;

    line-height: 1.8;
}

.registry-empty p strong {
    color:
        var(--gold);

    font-weight: 500;
}

.registry-empty > a {
    min-height: 38px;

    margin-top: 22px;

    padding:
        0
        17px;

    display: inline-flex;
    align-items: center;

    border:
        1px solid
        rgba(178,151,88,.28);

    color:
        var(--gold);

    font-family:
        'Cinzel',
        serif;

    font-size: 8px;

    text-transform: uppercase;
}


/* =========================================================
   FICHA DO PLAYER
========================================================= */

.player-profile-hero {
    border-bottom:
        1px solid
        rgba(178,151,88,.14);

    background:
        radial-gradient(
            circle at 18% 20%,
            rgba(178,151,88,.055),
            transparent 31%
        ),
        linear-gradient(
            135deg,
            #15182B,
            #101321
        );
}

.player-profile-inner {
    width:
        min(
            1180px,
            calc(100% - 70px)
        );

    margin:
        0 auto;

    padding:
        35px
        0
        42px;
}

.back-to-registry {
    display: inline-flex;
    align-items: center;

    gap: 3px;

    margin-bottom: 31px;

    color:
        rgba(203,198,189,.48);

    font-family:
        'Cinzel',
        serif;

    font-size: 7.5px;

    letter-spacing: .65px;

    text-transform: uppercase;

    transition:
        color .2s ease;
}

.back-to-registry:hover {
    color:
        var(--gold);
}

.back-to-registry svg {
    width: 14px;
    height: 14px;

    fill:
        currentColor;
}

.player-profile-head {
    display: flex;
    align-items: center;

    gap: 28px;
}

.player-profile-seal {
    width: 104px;
    height: 104px;

    flex: 0 0 104px;

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

    border:
        1px solid
        rgba(178,151,88,.52);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(178,151,88,.09),
            rgba(178,151,88,.01) 68%
        );

    box-shadow:
        inset 0 0 0 7px
        rgba(178,151,88,.025);
}

.player-profile-seal span {
    color:
        var(--gold);

    font-family:
        'Cinzel',
        serif;

    font-size: 28px;

    letter-spacing: 1.4px;
}

.player-profile-title h1 {
    margin: 0;

    color:
        var(--cream);

    font-family:
        'Cinzel',
        serif;

    font-size:
        clamp(
            34px,
            3.1vw,
            50px
        );

    line-height: 1.05;

    font-weight: 500;
}

.profile-divider {
    position: relative;

    width: 230px;
    height: 18px;

    margin:
        8px
        0
        4px;
}

.profile-divider::before {
    content: '';

    position: absolute;

    top: 50%;
    left: 0;
    right: 0;

    height: 1px;

    background:
        linear-gradient(
            to right,
            rgba(178,151,88,.78),
            transparent
        );
}

.profile-divider span {
    position: absolute;

    top: 50%;
    left: 38%;

    width: 6px;
    height: 6px;

    border:
        1px solid
        var(--gold);

    transform:
        translateY(-50%)
        rotate(45deg);
}

.player-profile-title p {
    margin: 0;

    color:
        rgba(203,198,189,.6);

    font-size: 9.5px;
}


/* =========================================================
   CABEÇALHO PERSONAGENS
========================================================= */

.character-section-heading {
    margin-bottom: 24px;

    padding-bottom: 18px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    border-bottom:
        1px solid
        rgba(178,151,88,.14);
}

.character-section-heading h2 {
    margin-bottom: 0;
}

.character-total {
    color:
        rgba(203,198,189,.42);

    font-size: 8px;

    letter-spacing: .65px;

    text-transform: uppercase;
}


/* =========================================================
   CARDS DE PERSONAGEM
========================================================= */

.character-grid {
    display: grid;

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

    gap: 15px;
}

.character-card {
    min-width: 0;

    border:
        1px solid
        rgba(178,151,88,.18);

    background:
        #141829;

    overflow: hidden;

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

.character-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(178,151,88,.48);

    box-shadow:
        0 12px 28px
        rgba(0,0,0,.17);
}

.character-portrait {
    position: relative;

    height: 250px;

    overflow: hidden;

    background:
        #0E1220;
}

.character-portrait img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position:
        center top;

    transition:
        transform .45s ease;
}

.character-card:hover .character-portrait img {
    transform:
        scale(1.025);
}

.portrait-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            transparent 48%,
            rgba(14,18,32,.16) 70%,
            #141829 100%
        );

    pointer-events: none;
}

.character-placeholder {
    width: 100%;
    height: 100%;

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

    background:
        radial-gradient(
            circle,
            rgba(178,151,88,.08),
            transparent 45%
        ),
        #101422;
}

.character-placeholder span {
    color:
        rgba(178,151,88,.45);

    font-family:
        'Cinzel',
        serif;

    font-size: 60px;
}

.character-card-body {
    position: relative;

    padding:
        14px
        16px
        16px;
}

.character-house {
    display: block;

    margin-bottom: 4px;

    color:
        rgba(178,151,88,.61);

    font-size: 7px;

    letter-spacing: .75px;

    text-transform: uppercase;
}

.character-card h3 {
    margin: 0;

    color:
        var(--cream);

    font-family:
        'Cinzel',
        serif;

    font-size: 17px;

    line-height: 1.2;

    font-weight: 500;
}

.character-title {
    min-height: 28px;

    margin:
        5px
        0
        10px;

    color:
        rgba(203,198,189,.58);

    font-size: 8.5px;

    line-height: 1.55;
}

.character-meta {
    min-height: 37px;

    display: flex;
    flex-wrap: wrap;

    gap:
        8px
        14px;

    margin-top: 10px;
}

.character-meta span {
    color:
        rgba(203,198,189,.63);

    font-size: 7.8px;
}

.character-meta small {
    display: block;

    margin-bottom: 1px;

    color:
        rgba(178,151,88,.44);

    font-size: 6px;

    letter-spacing: .45px;

    text-transform: uppercase;
}

.character-card-link {
    margin-top: 13px;

    padding-top: 10px;

    display: flex;
    align-items: center;

    gap: 3px;

    border-top:
        1px solid
        rgba(178,151,88,.10);

    color:
        var(--gold);

    font-family:
        'Cinzel',
        serif;

    font-size: 7.5px;

    letter-spacing: .55px;

    text-transform: uppercase;
}

.character-card-link svg {
    width: 13px;
    height: 13px;

    fill:
        currentColor;
}


/* =========================================================
   SEARCH FEEDBACK
========================================================= */

.search-feedback {
    position: fixed;

    top: 16px;
    right: 16px;

    z-index: 2000;

    padding:
        10px
        13px;

    color:
        var(--cream);

    background:
        #161A2C;

    border:
        1px solid
        rgba(178,151,88,.38);

    font-size: 9px;

    opacity: 0;

    transform:
        translateY(-8px);

    pointer-events: none;

    transition:
        opacity .25s ease,
        transform .25s ease;
}

.search-feedback.show {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 1050px) {

    .player-grid {
        grid-template-columns:
            1fr;
    }

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

}

@media (max-width: 800px) {

    .archive-hero-inner,
    .fichario-page,
    .player-profile-inner,
    .player-profile-page {
        width:
            calc(100% - 38px);
    }

    .registry-heading {
        grid-template-columns:
            1fr;

        align-items:
            start;

        gap: 20px;
    }

    .registry-stats {
        width: 100%;
    }

    .registry-stat {
        flex: 1;
    }

}

@media (max-width: 650px) {

    .archive-hero {
        min-height: 270px;
    }

    .archive-hero-inner,
    .fichario-page,
    .player-profile-inner,
    .player-profile-page {
        width:
            calc(100% - 28px);
    }

    .archive-hero h1 {
        font-size:
            clamp(
                33px,
                10vw,
                45px
            );
    }

    .archive-hero p {
        font-size: 10px;
    }

    .fichario-page,
    .player-profile-page {
        padding:
            38px
            0
            55px;
    }

    .registry-search {
        grid-template-columns:
            18px
            minmax(0,1fr);
    }

    .registry-search button,
    .clear-search {
        min-height: 33px;
    }

    .registry-search button {
        grid-column:
            1 / -1;
    }

    .clear-search {
        grid-column:
            1 / -1;
    }

    .player-card {
        grid-template-columns:
            58px
            minmax(0,1fr);

        gap: 13px;

        padding: 15px;
    }

    .player-seal {
        width: 54px;
        height: 54px;
    }

    .player-seal span {
        font-size: 15px;
    }

    .player-card h3 {
        font-size: 16px;
    }

    .player-profile-head {
        align-items: flex-start;

        gap: 18px;
    }

    .player-profile-seal {
        width: 74px;
        height: 74px;

        flex-basis: 74px;
    }

    .player-profile-seal span {
        font-size: 20px;
    }

    .character-grid {
        grid-template-columns:
            1fr;
    }

    .character-portrait {
        height: 330px;
    }

}

@media (max-width: 430px) {

    .registry-stats {
        display: grid;

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

    .registry-stat {
        min-width: 0;

        padding:
            10px
            5px;
    }

    .registry-stat strong {
        font-size: 17px;
    }

    .player-card {
        grid-template-columns:
            1fr;
    }

    .player-seal {
        margin:
            0 auto;
    }

    .player-card-top {
        flex-direction: column;
    }

    .character-count {
        text-align: left;
    }

    .player-profile-head {
        flex-direction: column;
    }

    .character-portrait {
        height: 285px;
    }

}


/* =========================================================
   FULL HD
========================================================= */

@media
(min-width: 1600px)
and (min-height: 900px)
and (max-height: 1200px) {

    .archive-hero {
        min-height: 340px;
    }

    .archive-hero-inner,
    .fichario-page,
    .player-profile-inner,
    .player-profile-page {
        width:
            min(
                1280px,
                calc(100% - 90px)
            );
    }

    .archive-hero h1 {
        font-size: 66px;
    }

    .archive-hero p {
        font-size: 13px;
    }

    .player-grid {
        gap: 16px;
    }

    .player-card {
        min-height: 198px;
    }

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

}
