/* =========================================================
   THE WOUNDED LEGACY
   FICHA DE PERSONAGEM — V1
========================================================= */

:root {
    --sheet-dark: #121625;
    --sheet-dark-2: #0D111E;
    --sheet-panel: #181C2E;
    --sheet-gold: #B29758;
    --sheet-gold-soft: rgba(178,151,88,.36);
    --sheet-cream: #E8E2D5;
    --sheet-text: #CBC6BD;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        #111524;
    color:
        var(--sheet-text);
    font-family:
        'Poppins',
        sans-serif;
}

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

button,
input,
select {
    font: inherit;
}


/* =========================================================
   ABAS DO PLAYER
========================================================= */

.character-tabs {
    position: relative;
    z-index: 20;

    width: 100%;

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

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

.character-tabs-inner {
    width:
        min(
            1280px,
            calc(100% - 70px)
        );

    min-height: 58px;

    margin:
        0 auto;

    display: grid;

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

    align-items: stretch;

    gap: 24px;
}

.character-tabs-label {
    display: flex;
    align-items: center;

    padding-right: 24px;

    border-right:
        1px solid
        rgba(178,151,88,.12);

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

    font-family:
        'Cinzel',
        serif;

    font-size: 7.5px;

    letter-spacing: .8px;

    text-transform: uppercase;

    white-space: nowrap;
}

.character-tabs-scroll {
    min-width: 0;

    display: flex;
    align-items: stretch;

    overflow-x: auto;

    scrollbar-width: none;
}

.character-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.character-tab {
    position: relative;

    min-width: max-content;

    padding:
        0
        17px;

    display: flex;
    align-items: center;

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

    font-family:
        'Cinzel',
        serif;

    font-size: 8px;

    letter-spacing: .55px;

    transition:
        color .2s ease,
        background .2s ease;
}

.character-tab:hover {
    color:
        var(--sheet-gold);
}

.character-tab.active {
    color:
        var(--sheet-gold);

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

.character-tab.active::after {
    content: '';

    position: absolute;

    left: 18px;
    right: 18px;
    bottom: 0;

    height: 1px;

    background:
        var(--sheet-gold);
}


/* =========================================================
   ÁREA GERAL
========================================================= */

.character-sheet-wrap {
    width:
        min(
            1320px,
            calc(100% - 56px)
        );

    margin:
        0 auto;

    padding:
        40px
        0
        72px;
}

.character-sheet {
    position: relative;

    overflow: hidden;

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

    background:
        linear-gradient(
            135deg,
            #181C2E,
            #111524
        );

    box-shadow:
        0 22px 60px
        rgba(0,0,0,.22);
}

.character-sheet::before {
    content: '';

    position: absolute;

    inset: 7px;

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

    pointer-events: none;
}


/* =========================================================
   TOPO
========================================================= */

.sheet-top {
    position: relative;

    min-height: 430px;

    display: grid;

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

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

.sheet-portrait-column {
    position: relative;

    padding:
        23px;

    background:
        radial-gradient(
            circle at 50% 26%,
            rgba(178,151,88,.08),
            transparent 42%
        ),
        #0C101C;

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

.sheet-portrait-frame {
    position: relative;

    height: 340px;

    overflow: hidden;

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

    background:
        #090D17;
}

.sheet-portrait-frame::before {
    content: '';

    position: absolute;

    inset: 6px;

    z-index: 2;

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

    pointer-events: none;
}

.sheet-portrait-frame img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position:
        center top;
}

.sheet-portrait-placeholder {
    width: 100%;
    height: 100%;

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

    background:
        radial-gradient(
            circle,
            rgba(178,151,88,.07),
            transparent 42%
        );
}

.sheet-portrait-placeholder span {
    color:
        rgba(178,151,88,.44);

    font-family:
        'Cinzel',
        serif;

    font-size: 74px;
}

.portrait-corner {
    position: absolute;

    z-index: 3;

    width: 24px;
    height: 24px;

    pointer-events: none;
}

.portrait-corner-tl {
    top: 6px;
    left: 6px;

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

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

.portrait-corner-tr {
    top: 6px;
    right: 6px;

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

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

.portrait-corner-bl {
    bottom: 6px;
    left: 6px;

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

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

.portrait-corner-br {
    right: 6px;
    bottom: 6px;

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

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

.portrait-player {
    margin-top: 15px;

    padding:
        10px
        12px;

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

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

.portrait-player small {
    display: block;

    margin-bottom: 3px;

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

    font-size: 6.5px;

    letter-spacing: .8px;
}

.portrait-player strong {
    color:
        var(--sheet-cream);

    font-family:
        'Cinzel',
        serif;

    font-size: 10px;

    font-weight: 500;
}


/* =========================================================
   IDENTIDADE
========================================================= */

.sheet-identity {
    position: relative;

    padding:
        38px
        46px
        32px;

    background:
        radial-gradient(
            circle at 86% 8%,
            rgba(178,151,88,.06),
            transparent 27%
        );
}

.sheet-record-label {
    margin-bottom: 19px;

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

    font-family:
        'Cinzel',
        serif;

    font-size: 7.5px;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}

.identity-label {
    display: block;

    margin-bottom: 4px;

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

    font-family:
        'Cinzel',
        serif;

    font-size: 7px;

    letter-spacing: .85px;

    text-transform: uppercase;
}

.identity-row-primary h1 {
    margin: 0;

    color:
        var(--sheet-cream);

    font-family:
        'Cinzel',
        serif;

    font-size:
        clamp(
            36px,
            4vw,
            62px
        );

    line-height: 1;

    font-weight: 500;
}

.identity-line {
    position: relative;

    width: 100%;
    height: 22px;

    margin:
        5px
        0
        8px;
}

.identity-line::before {
    content: '';

    position: absolute;

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

    height: 1px;

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

.identity-line::after {
    content: '';

    position: absolute;

    top: 50%;
    left: 0;

    width: 7px;
    height: 7px;

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

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

    background:
        #171B2D;
}

.identity-grid {
    display: grid;

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

    gap:
        18px
        28px;
}

.identity-field {
    min-width: 0;

    padding-bottom: 10px;

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

.identity-field strong {
    display: block;

    overflow: hidden;

    color:
        var(--sheet-cream);

    font-family:
        'Cinzel',
        serif;

    font-size: 13px;

    font-weight: 500;

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


.occupation-block {
    margin-top: 21px;
    padding-top: 15px;
    border-top:
        1px solid
        rgba(178,151,88,.11);
}

.occupation-form {
    margin-top: 8px;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: 8px;
    align-items: stretch;
}

.occupation-select-wrap {
    position: relative;
    min-width: 0;
}

.occupation-select {
    width: 100%;
    min-height: 42px;
    padding:
        0
        38px
        0
        12px;
    border:
        1px solid
        rgba(178,151,88,.27);
    outline: 0;
    border-radius: 0;
    background:
        linear-gradient(
            180deg,
            rgba(21,24,43,.96),
            rgba(12,15,28,.96)
        );
    color:
        var(--sheet-cream);
    font-family:
        'Cinzel',
        serif;
    font-size: 10px;
    letter-spacing: .25px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.occupation-select:hover,
.occupation-select:focus {
    border-color:
        rgba(178,151,88,.60);
    background:
        linear-gradient(
            180deg,
            rgba(31,32,50,.98),
            rgba(16,19,34,.98)
        );
    box-shadow:
        inset 0 0 0 1px
        rgba(178,151,88,.055);
}

.occupation-select option {
    background: #181927;
    color: #E8E2D5;
}

.occupation-select option:disabled {
    color: #777986;
    background: #141522;
}

.occupation-chevron {
    position: absolute;
    top: 50%;
    right: 13px;
    pointer-events: none;
    transform:
        translateY(-50%)
        rotate(45deg);
    color:
        rgba(178,151,88,.78);
    font-size: 7px;
}

.occupation-other-wrap {
    grid-column: 1 / -1;
}

.occupation-other-wrap[hidden] {
    display: none !important;
}

.occupation-other-wrap input {
    width: 100%;
    min-height: 40px;
    padding:
        0
        12px;
    border:
        1px solid
        rgba(178,151,88,.22);
    outline: 0;
    border-radius: 0;
    background:
        rgba(10,13,25,.76);
    color:
        var(--sheet-cream);
    font-family:
        'Poppins',
        sans-serif;
    font-size: 10px;
}

.occupation-other-wrap input:focus {
    border-color:
        rgba(178,151,88,.55);
}

.occupation-save {
    min-height: 42px;
    padding:
        0
        17px;
    border:
        1px solid
        rgba(178,151,88,.52);
    background:
        rgba(178,151,88,.10);
    color:
        var(--sheet-gold);
    font-family:
        'Cinzel',
        serif;
    font-size: 8px;
    letter-spacing: .55px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.occupation-save:hover {
    border-color:
        var(--sheet-gold);
    background:
        var(--sheet-gold);
    color:
        #101321;
}

.occupation-help {
    display: block;
    margin-top: 7px;
    color:
        rgba(203,198,189,.37);
    font-size: 7px;
    line-height: 1.5;
}

.occupation-readonly {
    margin-top: 8px;
    min-height: 42px;
    display: flex;
    align-items: center;
    padding:
        0 12px;
    border:
        1px solid
        rgba(178,151,88,.16);
    background:
        rgba(10,13,25,.34);
}

.occupation-readonly strong {
    color:
        rgba(232,226,213,.88);
    font-family:
        'Cinzel',
        serif;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 500;
}



/* =========================================================
   CORPO EM DOIS PAINÉIS
========================================================= */

.sheet-body {
    display: grid;

    grid-template-columns:
        minmax(0,1.1fr)
        minmax(420px,.9fr);

    align-items: stretch;
}

.sheet-panel {
    min-width: 0;

    padding:
        29px
        31px
        34px;
}

.history-panel {
    border-right:
        1px solid
        rgba(178,151,88,.18);
}

.panel-title {
    position: relative;

    margin-bottom: 20px;

    padding-bottom: 12px;

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

.panel-title span {
    color:
        var(--sheet-cream);

    font-family:
        'Cinzel',
        serif;

    font-size: 22px;

    text-transform: uppercase;
}

.panel-title::after {
    content: '◇';

    position: absolute;

    right: 0;
    bottom: 4px;

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

    font-size: 12px;
}

.biography-content {
    color:
        rgba(203,198,189,.78);

    font-size: 10.5px;

    line-height: 1.9;
}

.empty-copy {
    color:
        rgba(203,198,189,.43);

    font-style: italic;
}


/* =========================================================
   MINI ÁRVORE — SEM FOTOS
========================================================= */

.family-tree-mini {
    min-height: 320px;

    padding:
        12px
        8px
        0;
}

.family-couple-row {
    display: grid;

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

    align-items: center;

    gap: 0;
}

.family-node,
.family-child-node {
    position: relative;

    min-height: 74px;

    padding:
        13px
        12px;

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

    text-align: center;

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

    background:
        linear-gradient(
            180deg,
            rgba(178,151,88,.055),
            rgba(178,151,88,.018)
        );
}

.family-node::before,
.family-child-node::before {
    content: '';

    position: absolute;

    inset: 4px;

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

    pointer-events: none;
}

.family-node-self {
    border-color:
        rgba(178,151,88,.62);
}

.family-node-empty {
    opacity: .55;
}

.family-node small {
    margin-bottom: 4px;

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

    font-size: 6.5px;

    letter-spacing: .7px;
}

.family-node strong,
.family-child-node {
    color:
        var(--sheet-cream);

    font-family:
        'Cinzel',
        serif;

    font-size: 10px;

    font-weight: 500;
}

.family-link-horizontal {
    height: 1px;

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

.family-descender {
    width: 1px;
    height: 34px;

    margin:
        0 auto;

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

.family-children-title {
    display: grid;

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

    align-items: center;

    gap: 10px;

    margin-bottom: 15px;

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

    font-family:
        'Cinzel',
        serif;

    font-size: 8px;

    letter-spacing: .8px;

    text-transform: uppercase;
}

.family-children-title span {
    height: 1px;

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

.family-children-grid {
    display: grid;

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

    gap: 8px;
}

.family-child-node {
    min-height: 58px;

    padding:
        10px
        8px;

    font-size: 8.5px;
}

a.family-node:hover,
a.family-child-node:hover {
    border-color:
        rgba(178,151,88,.66);

    color:
        var(--sheet-gold);
}

.family-empty {
    padding:
        24px;

    text-align: center;

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

    font-size: 8.5px;

    border:
        1px dashed
        rgba(178,151,88,.12);
}


/* =========================================================
   RELAÇÕES
========================================================= */

.sheet-relations {
    padding:
        32px
        31px
        40px;

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

    background:
        rgba(9,13,24,.2);
}

.relations-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 21px;
}

.section-kicker {
    display: block;

    margin-bottom: 5px;

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

    font-family:
        'Cinzel',
        serif;

    font-size: 7px;

    letter-spacing: .85px;

    text-transform: uppercase;
}

.relations-heading h2 {
    margin:
        0
        0
        5px;

    color:
        var(--sheet-cream);

    font-family:
        'Cinzel',
        serif;

    font-size: 24px;

    font-weight: 500;

    text-transform: uppercase;
}

.relations-heading p {
    margin: 0;

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

    font-size: 8.5px;
}

.relation-add-button {
    min-height: 38px;

    padding:
        0
        15px;

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

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

    color:
        var(--sheet-gold);

    font-family:
        'Cinzel',
        serif;

    font-size: 7.5px;

    letter-spacing: .55px;

    text-transform: uppercase;

    cursor: pointer;
}

.relation-add-button:hover {
    background:
        var(--sheet-gold);

    color:
        #0C101C;
}

.relation-flash {
    margin-bottom: 16px;

    padding:
        10px
        12px;

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

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

    color:
        var(--sheet-gold);

    font-size: 8.5px;
}

.relation-flash.error {
    border-color:
        rgba(178,88,88,.32);

    color:
        #D5A1A1;
}

.relations-grid {
    display: grid;

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

    gap: 10px;
}

.relation-card {
    position: relative;

    min-width: 0;

    padding:
        14px;

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

    background:
        rgba(20,24,41,.64);
}

.relation-type {
    margin-bottom: 4px;

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

    font-size: 6.5px;

    letter-spacing: .7px;

    text-transform: uppercase;
}

.relation-name {
    display: block;

    overflow: hidden;

    color:
        var(--sheet-cream);

    font-family:
        'Cinzel',
        serif;

    font-size: 13px;

    font-weight: 500;

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

.relation-name:hover {
    color:
        var(--sheet-gold);
}

.relation-meta {
    margin-top: 4px;

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

    font-size: 7.5px;
}

.relation-owner-actions {
    margin-top: 11px;

    padding-top: 9px;

    display: flex;

    gap: 8px;

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

.relation-owner-actions button {
    padding: 0;

    border: 0;

    background:
        transparent;

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

    font-size: 7px;

    cursor: pointer;
}

.relation-owner-actions button:hover {
    color:
        var(--sheet-gold);
}

.relations-empty,
.relations-unavailable {
    padding:
        25px;

    border:
        1px dashed
        rgba(178,151,88,.13);

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

    text-align: center;

    font-size: 8.5px;
}


/* =========================================================
   MODAL
========================================================= */

body.modal-open {
    overflow: hidden;
}

.relation-modal {
    position: fixed;

    inset: 0;

    z-index: 5000;

    display: none;

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

    padding: 24px;
}

.relation-modal.open {
    display: flex;
}

.relation-modal-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(4,7,14,.78);

    backdrop-filter:
        blur(5px);
}

.relation-modal-card {
    position: relative;
    z-index: 2;

    width:
        min(
            520px,
            100%
        );

    padding:
        28px;

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

    background:
        #15192A;

    box-shadow:
        0 28px 80px
        rgba(0,0,0,.45);
}

.relation-modal-card::before {
    content: '';

    position: absolute;

    inset: 6px;

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

    pointer-events: none;
}

.relation-modal-close {
    position: absolute;

    top: 11px;
    right: 13px;

    width: 28px;
    height: 28px;

    border: 0;

    background:
        transparent;

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

    font-size: 20px;

    cursor: pointer;
}

.relation-modal-card h2 {
    margin:
        0
        0
        21px;

    color:
        var(--sheet-cream);

    font-family:
        'Cinzel',
        serif;

    font-size: 23px;

    font-weight: 500;
}

.relation-field {
    position: relative;

    display: block;

    margin-bottom: 16px;
}

.relation-field > span {
    display: block;

    margin-bottom: 6px;

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

    font-family:
        'Cinzel',
        serif;

    font-size: 7px;

    letter-spacing: .65px;

    text-transform: uppercase;
}

.relation-field input,
.relation-field select {
    width: 100%;
    height: 42px;

    padding:
        0
        11px;

    outline: 0;

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

    background:
        #101423;

    color:
        var(--sheet-cream);

    font-size: 9px;
}

.relation-field input:focus,
.relation-field select:focus {
    border-color:
        rgba(178,151,88,.55);
}

.relation-suggestions {
    position: absolute;

    top: calc(100% + 4px);
    left: 0;
    right: 0;

    z-index: 10;

    max-height: 230px;

    overflow-y: auto;

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

    background:
        #0E1220;

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

.relation-suggestions:empty {
    display: none;
}

.relation-suggestion {
    width: 100%;

    padding:
        9px
        10px;

    display: block;

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

    background:
        transparent;

    text-align: left;

    cursor: pointer;
}

.relation-suggestion:hover {
    background:
        rgba(178,151,88,.06);
}

.relation-suggestion strong {
    display: block;

    color:
        var(--sheet-cream);

    font-family:
        'Cinzel',
        serif;

    font-size: 9px;

    font-weight: 500;
}

.relation-suggestion span {
    display: block;

    margin-top: 2px;

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

    font-size: 7px;
}

.relation-modal-actions {
    margin-top: 24px;

    display: flex;
    justify-content: flex-end;

    gap: 8px;
}

.relation-modal-actions button {
    min-height: 38px;

    padding:
        0
        14px;

    font-family:
        'Cinzel',
        serif;

    font-size: 7px;

    letter-spacing: .55px;

    text-transform: uppercase;

    cursor: pointer;
}

.relation-cancel {
    border:
        1px solid
        rgba(203,198,189,.12);

    background:
        transparent;

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

.relation-save {
    border:
        1px solid
        rgba(178,151,88,.38);

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

    color:
        var(--sheet-gold);
}


/* =========================================================
   NÃO ENCONTRADO
========================================================= */

.character-not-found {
    padding:
        80px
        30px;

    text-align: center;

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

    background:
        rgba(13,17,30,.5);
}

.character-not-found h1 {
    margin:
        0
        0
        10px;

    color:
        var(--sheet-cream);

    font-family:
        'Cinzel',
        serif;

    font-size: 30px;
}

.character-not-found p {
    color:
        rgba(203,198,189,.55);

    font-size: 9px;
}

.character-not-found a {
    margin-top: 18px;

    display: inline-flex;

    padding:
        10px
        15px;

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

    color:
        var(--sheet-gold);

    font-family:
        'Cinzel',
        serif;

    font-size: 7.5px;

    text-transform: uppercase;
}


/* =========================================================
   BUSCA GLOBAL
========================================================= */

.search-feedback {
    position: fixed;

    top: 16px;
    right: 16px;

    z-index: 6000;

    padding:
        10px
        13px;

    color:
        var(--sheet-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: 1100px) {

    .sheet-top {
        grid-template-columns:
            290px
            minmax(0,1fr);
    }

    .sheet-portrait-frame {
        height: 300px;
    }

    .sheet-body {
        grid-template-columns:
            1fr;
    }

    .history-panel {
        border-right: 0;

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

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

}

@media (max-width: 800px) {

    .character-tabs-inner {
        width:
            calc(100% - 38px);

        grid-template-columns:
            1fr;

        gap: 0;
    }

    .character-tabs-label {
        min-height: 34px;

        padding-right: 0;

        border-right: 0;

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

    .character-sheet-wrap {
        width:
            calc(100% - 30px);
    }

    .sheet-top {
        grid-template-columns:
            1fr;
    }

    .sheet-portrait-column {
        border-right: 0;

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

    .sheet-portrait-frame {
        width:
            min(
                420px,
                100%
            );

        height: 430px;

        margin:
            0 auto;
    }

    .sheet-identity {
        padding:
            30px
            26px;
    }

}

@media (max-width: 650px) {

    .character-sheet-wrap {
        width:
            calc(100% - 22px);

        padding:
            22px
            0
            46px;
    }

    .sheet-portrait-column,
    .sheet-panel,
    .sheet-relations {
        padding:
            20px;
    }

    .sheet-identity {
        padding:
            25px
            20px;
    }

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

        gap: 13px;
    }

    .family-couple-row {
        grid-template-columns:
            1fr;
    }

    .family-link-horizontal {
        width: 1px;
        height: 20px;

        margin:
            0 auto;
    }

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

    .relations-heading {
        align-items: flex-start;

        flex-direction: column;
    }

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

    .relation-add-button {
        width: 100%;
    }

}

@media (max-width: 430px) {

    .sheet-portrait-frame {
        height: 350px;
    }

    .family-children-grid {
        grid-template-columns:
            1fr;
    }

}


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

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

    .character-sheet-wrap {
        width:
            min(
                1420px,
                calc(100% - 84px)
            );
    }

    .sheet-top {
        grid-template-columns:
            385px
            minmax(0,1fr);

        min-height: 470px;
    }

    .sheet-portrait-frame {
        height: 375px;
    }

    .sheet-identity {
        padding:
            44px
            54px
            36px;
    }

    .identity-row-primary h1 {
        font-size: 64px;
    }

    .sheet-body {
        grid-template-columns:
            minmax(0,1.15fr)
            minmax(470px,.85fr);
    }

}


@media (max-width: 700px) {

    .occupation-form {
        grid-template-columns: 1fr;
    }

    .occupation-save {
        width: 100%;
    }

}
