@charset "utf-8";
@font-face{font-family:'NAMU';src:local('NAMU 1850'),local('NAMU-1850'),url(/public/fonts/NAMU-1850.woff) format('woff')}

:root {
    --gold: #b57400;
    --grey: #2f393f;
}

*, [class^="box"] {
    font-family: NAMU,sans-serif;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
*::-webkit-scrollbar {
    width: 0;
    background-color: #0e0e0e;
}
textarea, input {
    cursor: pointer;
    user-select: auto;
}
textarea:focus, input:focus {
    cursor: text;
}
a, a img, button, select, option {
    cursor: pointer;
}
.btn, [class^="btn-"] {
    position: relative;
}
.line {
    width: 100%;
}

.header {
    border: 2px solid var(--gold);
    border-radius: 5px;
    background-color: var(--grey);
    color: #b5b5b5;
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 470px;
    z-index: 999;
}
.header-left {
    width: max-content;
    margin: 0;
    padding: 5px;
    font-size: 11px;
    border-right: 1px solid var(--gold);
}
.header-right {
    width: max-content;
    margin: 0;
    padding: 5px;
    font-size: 11px;
    text-align: right;
    display: flex;
}
.header-xp {
    border-right: 1px solid var(--gold);
    padding: 0 5px 0 0;
}
.header-xp:before {
    content: 'XP: ';
}
.header-lvl {
    border-right: 1px solid var(--gold);
    padding: 0 5px;
}
.header-lvl:before {
    content: 'LvL: ';
}
.header-eq {
    padding: 0 0 0 5px;
}
.header-eq:before {
    content: 'EQ: ';
}
.header-bottom {
    width: 100%;
    border-top: 1px solid var(--gold);
    padding: 5px;
    font-size: 10px;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.header-percent-box {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
}
.header-user {
    width: max-content;
    margin: 0;
}
.header-health {
    width: max-content;
    margin: 0;
}
.header-progress {
    position: relative;
    width: 100%;
    height: 8px;
    border: 1px solid var(--gold);
    border-radius: 3px;
    margin: 8px 0 0;
}
.header-scale {
    width: 56%;
    height: 2px;
    background-color: var(--gold);
    border-radius: 1px;
    position: absolute;
    top: 2px;
    left: 2px;
}

.mainBody {
    max-width: 500px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 115px 15px 100px;
    color: #e3e3f9;
    background-color: #0e0e0e;
    background-attachment: inherit;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
}
.mainBody:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(1px);
}

.sidebar-left, .sidebar-right {
    display: flex;
    width: 50px;
    height: max-content;
    margin: 0 0 30px;
}
.sidebar-item {
    width: 50px;
    height: 50px;
    border: 2px solid var(--gold);
    border-radius: 5px;
    background-color: var(--grey);
    margin: 0 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    cursor: pointer;
}

.person {
    display: flex;
    width: calc(100% - 190px);
    height: 170px;
    border: 2px solid var(--gold);
    border-radius: 5px;
    background-color: var(--grey);
    margin: 0 0 30px;
    z-index: 1;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-repeat: no-repeat;
    flex-direction: column;
}
.person * {
    width: 100%;
}
.person-head {
    height: 14%;
    margin: 3px 0 0;
}
.person-body {
    height: 25%;
    margin: 0 0 0;
}
.person-fit {
    height: 48%;
    margin: 0 0 5px;
}

.build-left, .build-right {
    display: flex;
    width: calc(50% - 20px);
}
.build-left {
    margin: 0 20px 0 0;
}
.build-right {
    margin: 0 0 0 20px;
}
.build-item {
    width: 100%;
    height: 150px;
    border: 2px solid var(--gold);
    border-radius: 5px;
    margin: 0 0 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
}

.footer {
    position: fixed;
    bottom: 15px;
    left: 50%;
    width: calc(100% - 30px);
    max-width: 470px;
    transform: translateX(-50%);
    z-index: 900;
}
.footer-item {
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-link {
    width: 50px;
    height: 50px;
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: center;
}
.footerLink {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(10px);
    z-index: 991;
}
.modal-portal {
    padding: 15px;
}
.modalTitle {
    text-align: center;
    margin: 5px 0 25px;
}
.modal {
    display: none;
    position: fixed;
    top: 20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    max-width: 470px;
    min-height: 150px;
    max-height: 70vh;
    background-color: #0e0e0e;
    border: 2px solid var(--gold);
    border-radius: 10px;
    z-index: 992;
    overflow-y: auto;
}
.modalClose {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.modalClose:before, .modalClose:after {
    content: '';
    display: block;
    width: 14px;
    height: 2px;
    background-color: var(--gold);
    transform: rotate(45deg);
    position: absolute;
}
.modalClose:after {
    width: 2px;
    height: 14px;
}
.modalInfo {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding-right: 50px;
}
.modalDisclaimer {
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
    line-height: 1.5;
}
.modalDisclaimer:before {
    content: '* ';
}
.modal-portal {
    background-image: url(/public/images/system/portal-bg.jpg);
}
.modal-items-buy-popup, .modal-items-buy-popup-before {
    display: none;
}



.portal {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    flex-wrap: wrap;
}
.portal-item {
    height: 100px;
    margin: 0 0 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    *border: 2px solid var(--gold);
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}
.portal-title {
    width: 100%;
    text-align: center;
    font-size: 11px;
    background-color: #293341;
    padding: 3px 5px;
    border-radius: 0 0 10px 10px;
    position: absolute;
    bottom: -1px;
}










.bodyError:not(:empty) {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.orientation{display:none;}
@media (orientation: landscape) {
    .orientation {
        display: flex;
        position: fixed;
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        align-items: center;
        justify-content: center;
        background-color: var(--grey);
        padding: 0 30%;
        text-align: center;
        z-index: 999;
    }
    .orientation:before {
        content: 'Приложение работает только в портретной ориентации, пожалуйста, переверните устройство';
        text-align: center;
    }
}