window.gapi = { load: function(){} };
window.FB = { init: function(){} };

@font-face {
    font-family: "Tiki";
    src: url("/assets/TikiTropic.ttf");
    unicode-range: U+0000-007F;
}

@font-face {
    font-family: "Tiki";
    src: url("/assets/ObelixPro.woff2");
    font-size-adjust: 0.4;
    unicode-range: U+0400-04FF;
}

@font-face {
    font-family: "South Africa";
    src: url("/assets/afrikas.woff");
    unicode-range: U+0000-007F;
}

@font-face {
    font-family: "South Africa";
    src: url("/assets/ObelixPro.woff2");
    font-size-adjust: 0.88;
    unicode-range: U+0400-04FF;
}

.arial,
.arrow-btn {
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    margin-top: -0.2em;
}

body {
    margin: 0;
    padding: 0;
    border: 0;
    background-color: #000;
    background-image: url("assets/texture3c.webp");
    
    /* Добавь эти строки: */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    word-spacing: 0.5ch;
    font-family: "South Africa";
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

ul {
    padding: 0;
    margin: 0;
    padding-left: 1ch;
}

h1,
h2,
h3,
h4 {
    margin: 10px 0;
}

h3 {
    font-size: 1.33em;
}

div,
input,
input::placeholder {
    color: #3a3836;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: transparent;
}

a,
a:hover,
a:active,
a:visited {
    color: #3a3836;
    text-decoration: none;
}

input:hover,
textarea:hover,
input:hover::placeholder {
    color: #6a6764;
}

input,
textarea {
    text-align: center;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    border: 3px solid #a5640a;
    padding-top: 0.2em;
    border-radius: 12px;
    width: 15ch;
    user-select: auto;
}

input:focus {
    outline: 0;
}

.column {
    flex-direction: column;
}

.hidden {
    display: none;
}

.panel {
    background: linear-gradient(to bottom left, #f9e5bd, #f8daa5);
    padding: 20px;
    border-radius: 20px;
    border: 3px solid #a5640a;
    margin: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}

.screen {
    position: relative;
    top: -7vh;
}

.two-column {
    flex: 100%;
}

.align-left {
    align-items: flex-start;
}

.ad-container {
    flex-direction: column;
    padding: 0.5em 1ch 1em;
    min-width: 320px;
    min-height: 278px;
}

.advertisementText {
    font-size: 0.7rem;
}

.ad-placeholder {
    background-color: #00008b;
    background-image: url("assets/ad-placeholder.jpg");
    width: 300px;
    height: 600px;
    position: fixed;
    right: 0;
}

.ad-placeholder-small {
    background-color: #00008b;
    background-image: url("assets/ad-placeholder-small.png");
    width: 300px;
    height: 250px;
}

#view-container {
    height: 100vh;
    align-items: flex-end;
    background-color: #6ca6e6;
    background-image: url("assets/background03.png");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    position: relative;
}

#controls-container {
    position: fixed;
    bottom: 0;
    left: 0;
}

.btn,
.main-menu-btn,
.back-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1px 0;
    cursor: pointer;
    transition: transform 0.1s, filter 0.1s;
}

#share-section {
    transition: transform 0.1s ease-out;
}

.highlighted {
    transform: scale(1.1);
}

.btn {
    font-size: 1.1rem;
    word-spacing: initial;
}

.back-btn,
.btn {
    color: #3d2403;
    background-color: #d6b583;
    border: 3px solid #5a2704;
    border-radius: 12px;
    padding: 5px 8px 2px;
    margin: 2px;
    white-space: nowrap;
}

.back-btn:hover,
.btn:hover {
    filter: brightness(1.75);
}

.back-btn:active,
.btn:active {
    transform: scale(0.9);
}

.back-btn {
    position: absolute;
    left: 0.5ch;
    top: 1.3em;
    border-radius: 50%;
    background-image: url("assets/back.png");
    background-repeat: no-repeat;
    background-size: 1em;
    background-position: 0.18em 0.1em;
    width: 1.8em;
    height: 1.8em;
}

.keyboard-btn,
.chat-btn {
    color: #312f2c;
    border-radius: 0.4em;
    background-color: #c8c1b5;
    font-size: 0.75em;
    height: 1.8em;
    width: 1.8em;
    padding: 0.2em 0 0 0;
    border: 3px solid #747069;
    margin: 0.1em 0;
}

.arrow-btn {
    height: 1.4em;
    width: 1.4em;
    margin: 0 0.1ch;
    vertical-align: middle;
}

#login-google,
#login-facebook {
    padding-left: calc(8px + 1.3em);
    background-size: 1.3em;
    background-repeat: no-repeat;
    background-position: 3px 2.5px;
}

#login-google {
    background-image: url("assets/google-icon.png");
}

#login-facebook {
    background-image: url("assets/facebook.png");
}

.main-menu-btn {
    padding: 0 calc(1.3rem + 0.33ch);
    font-size: 1.3rem;
}

.main-menu-btn-selected {
    transform: scale(1.3);
    background-image: url("assets/ball2.png");
    background-repeat: no-repeat;
    background-size: 1.2rem;
    color: #00f;
}

.main-menu-btn-active {
    transform: scale(1);
}

#gui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
}

#border-left,
#border-right {
    position: absolute;
    bottom: 0;
}

th,
td {
    padding: 5px 0.5ch;
    word-spacing: normal;
}

th {
    font-size: 0.8rem;
    font-weight: normal;
}

td {
    border-top: 1px solid #a49a8a;
}

.highscores-placement {
    text-align: right;
}

.highscores-self {
    color: #008000;
    font-weight: bold;
}

.highscores-image-cell {
    padding: 3px;
}

.highscores-image {
    width: 2em;
    height: 2em;
    border-radius: 50%;
    border: 1px solid #beb097;
    background-size: 3.5em;
    background-position: -1.25em -0.5em;
}

.highscores-name {
    font-size: 1.1rem;
    width: 12ch;
}

.highscores-name,
.highscores-level,
.highscores-wins,
.highscores-matches {
    text-align: center;
}

.highscores-playtime {
    text-align: right;
    font-size: 0.8rem;
    text-align: right;
}

.left-wins,
.right-wins {
    font-size: 0.6em;
}

#opponent-level-right,
#opponent-level-left {
    font-size: 0.85em;
    word-spacing: initial;
}

.sound-btn,
#logout {
    background-size: cover;
    background-repeat: no-repeat;
    width: 1.5em;
    height: 1.5em;
    cursor: pointer;
    transition: transform 0.1s;
}

.sound-btn:hover,
#logout:hover {
    transform: scale(1.3);
}

.sound-btn:active,
#logout:active {
    transform: scale(1);
}

#logout {
    background-image: url("assets/logout.png");
}

#region-btn {
    width: 5ch;
    padding: 0.3em 0.5ch 0.1em;
    font-size: 0.8em;
}

.footer-elem,
.credits-elem {
    margin: 0 1.5ch;
}

.footer-elem div,
.credits-elem div {
    margin-bottom: 0.05em;
    font-size: 0.8em;
    margin-right: 1ch;
}

.footer-elem a,
.credits-elem a {
    transition: transform 0.1s;
}

.footer-elem a:hover,
.credits-elem a:hover {
    transform: scale(1.1);
}

.footer-elem a:active,
.credits-elem a:active {
    transform: scale(1);
}

#credits-link {
    transition: transform 0.1s;
}

#credits-link:hover {
    transform: scale(1.1);
}

#credits-link:active {
    transform: scale(1);
}

.credits-elem {
    margin-top: 0.5em;
}

.footer {
    padding: 0.6em 0 0.4em;
    border-radius: 14px;
    font-size: 0.8em;
    word-spacing: 0;
    margin: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 0;
}

li {
    margin: 0.2em 0;
}

.chest-container,
#chest {
    width: calc(308px * 0.7);
    height: calc(196px * 0.7);
}

#chest {
    background-image: url("assets/chest.png");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.1s;
    cursor: pointer;
}

#chest:hover {
    transform: scale(1.1);
}

#chest:active {
    transform: scale(1);
}

.chest-shaking {
    animation-name: chest-shake;
    animation-duration: 0.6s;
    transform-origin: center;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

#news {
    padding: 1em 1ch;
    white-space: normal;
    width: 320px;
    font-size: 0.7em;
}

#news h3 {
    font-size: 1.1em;
}

#news ul {
    flex-shrink: 0;
}

#news h2 {
    align-self: center;
    font-size: 1.3rem;
    margin: 0;
}

.scrollable {
    justify-content: flex-start;
    align-items: flex-start;
    overflow-y: scroll;
    max-height: 300px;
}

.scrollable::-webkit-scrollbar {
    width: 12px;
    border-radius: 6px;
    background: #c8c1b5;
}

.scrollable::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background-color: #747069;
}

.coinIcon {
    width: 1.3em;
    height: 1.3em;
    background-image: url("assets/textures/coin.png");
    background-size: contain;
    margin-left: 0.2ch;
    margin-top: -0.2em;
}

.locked-item {
    width: 45%;
    height: 45%;
    background-image: url("assets/lock.png");
    background-size: contain;
    position: absolute;
    bottom: 5%;
    left: 0;
}

@-moz-keyframes chest-shake {
    0% {
        transform: translate(2%, 1%) rotate(0deg);
    }
    10% {
        transform: translate(-1%, -2%) rotate(-1deg);
    }
    20% {
        transform: translate(-3%, 0%) rotate(1deg);
    }
    30% {
        transform: translate(0%, 2%) rotate(0deg);
    }
    40% {
        transform: translate(1%, -1%) rotate(1deg);
    }
    50% {
        transform: translate(-1%, 2%) rotate(-1deg);
    }
    60% {
        transform: translate(-3%, 1%) rotate(0deg);
    }
    70% {
        transform: translate(2%, 1%) rotate(-1deg);
    }
    80% {
        transform: translate(-1%, -1%) rotate(1deg);
    }
    90% {
        transform: translate(2%, 2%) rotate(0deg);
    }
    100% {
        transform: translate(1%, -2%) rotate(-1deg);
    }
}

@-webkit-keyframes chest-shake {
    0% {
        transform: translate(2%, 1%) rotate(0deg);
    }
    10% {
        transform: translate(-1%, -2%) rotate(-1deg);
    }
    20% {
        transform: translate(-3%, 0%) rotate(1deg);
    }
    30% {
        transform: translate(0%, 2%) rotate(0deg);
    }
    40% {
        transform: translate(1%, -1%) rotate(1deg);
    }
    50% {
        transform: translate(-1%, 2%) rotate(-1deg);
    }
    60% {
        transform: translate(-3%, 1%) rotate(0deg);
    }
    70% {
        transform: translate(2%, 1%) rotate(-1deg);
    }
    80% {
        transform: translate(-1%, -1%) rotate(1deg);
    }
    90% {
        transform: translate(2%, 2%) rotate(0deg);
    }
    100% {
        transform: translate(1%, -2%) rotate(-1deg);
    }
}

@-o-keyframes chest-shake {
    0% {
        transform: translate(2%, 1%) rotate(0deg);
    }
    10% {
        transform: translate(-1%, -2%) rotate(-1deg);
    }
    20% {
        transform: translate(-3%, 0%) rotate(1deg);
    }
    30% {
        transform: translate(0%, 2%) rotate(0deg);
    }
    40% {
        transform: translate(1%, -1%) rotate(1deg);
    }
    50% {
        transform: translate(-1%, 2%) rotate(-1deg);
    }
    60% {
        transform: translate(-3%, 1%) rotate(0deg);
    }
    70% {
        transform: translate(2%, 1%) rotate(-1deg);
    }
    80% {
        transform: translate(-1%, -1%) rotate(1deg);
    }
    90% {
        transform: translate(2%, 2%) rotate(0deg);
    }
    100% {
        transform: translate(1%, -2%) rotate(-1deg);
    }
}

@keyframes chest-shake {
    0% {
        transform: translate(2%, 1%) rotate(0deg);
    }
    10% {
        transform: translate(-1%, -2%) rotate(-1deg);
    }
    20% {
        transform: translate(-3%, 0%) rotate(1deg);
    }
    30% {
        transform: translate(0%, 2%) rotate(0deg);
    }
    40% {
        transform: translate(1%, -1%) rotate(1deg);
    }
    50% {
        transform: translate(-1%, 2%) rotate(-1deg);
    }
    60% {
        transform: translate(-3%, 1%) rotate(0deg);
    }
    70% {
        transform: translate(2%, 1%) rotate(-1deg);
    }
    80% {
        transform: translate(-1%, -1%) rotate(1deg);
    }
    90% {
        transform: translate(2%, 2%) rotate(0deg);
    }
    100% {
        transform: translate(1%, -2%) rotate(-1deg);
    }
}

#hud-container {
    position: fixed;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: flex-start;
}

#hud {
    align-items: center;
}

.hud-separator {
    margin: 10px;
    align-items: center;
}

.hud-half {
    min-width: 200px;
    justify-content: space-between;
    align-items: center;
}

.ball-container {
    position: relative;
    margin: 6px;
    width: 64px;
    height: 64px;
    cursor: pointer;
    background-color: #d6b583;
    border: 3px solid #85817c;
    border-radius: 6px;
    transition: transform 0.1s, border-color 0.2s;
}

.ball-container:hover {
    border-color: #fff;
}

.ball-container:active {
    transform: scale(0.9);
}

.ball {
    width: 95%;
    height: 95%;
    background-size: contain;
    background-repeat: no-repeat;
}

.ballSelected {
    transform: scale(1.15);
    border-color: #5a2704;
}

.opponent-preview-container,
.characterItem {
    position: relative;
    overflow: hidden;
    margin: 6px;
    width: 64px;
    height: 64px;
    cursor: pointer;
    background-color: #d6b583;
    border: 3px solid #85817c;
    border-radius: 6px;
    transition: transform 0.1s, border-color 0.2s;
}

.characterItem:hover {
    border-color: #fff;
}

.characterSelected {
    transform: scale(1.15);
    border-color: #5a2704;
}

.characterItem:active {
    transform: scale(0.9);
}

.character-p1 {
    border-color: #008000;
}

.character-p2 {
    border-color: #00f;
}

.character-both {
    border-top-color: #008000;
    border-left-color: #008000;
    border-bottom-color: #00f;
    border-right-color: #00f;
}

.character-frozen {
    filter: grayscale(100%);
}

.characterMark {
    font-family: 'Tiki';
    font-size: 62px;
    margin-bottom: 14px;
}

.opponent-preview-container {
    margin: 0;
    width: 80px;
    height: 80px;
    cursor: unset;
    border-color: #5a2704;
}

#opponent-preview-1,
#opponent-preview-2,
.characterImage {
    width: 180%;       /* Оставляем персонажей крупными */
    height: auto;
    margin-left: -60%;  /* Сдвигаем влево, чтобы показать правую часть (лицо) */
    margin-top: 15%;   /* Центрируем по вертикали */
    filter: drop-shadow(0 0 0 #000);
    flex-shrink: 0;
}

#player-name {
    font-size: 1.33rem;
    font-weight: bold;
}

.stats-elem {
    margin: 5px 10px;
    font-weight: bold;
    font-size: 1.1em;
    letter-spacing: 0.05ch;
    word-spacing: -0.2ch;
}

.progress-bar {
    border: 3px solid #3a3836;
    border-radius: 9px;
    width: 100%;
    font-size: 0.9em;
    padding: 3px 0 0px;
    color: #3a3836;
    background-size: 200%;
    margin: 2px 0;
}

#opponent-name-1,
#opponent-name-2 {
    font-size: 1.5rem;
}

.end-match-score {
    width: 150px;
    justify-content: space-between;
}

.share-button {
    height: 1.5em;
    margin: -0.2em 0.2ch 0 -0.35ch;
}

.preload-container {
    margin: 0.3em 0.5ch;
    position: relative;
    height: 3.3em;
    align-items: flex-start;
}

.preload-ball {
    width: 1.3em;
    height: 1.3em;
    background-image: url("assets/ball2.png");
    background-size: contain;
    -webkit-animation: preload-animation 1s linear infinite;
    animation: preload-animation 1s linear infinite;
}

.preload-shadow {
    position: absolute;
    bottom: 0;
    width: 1.3em;
    height: calc(1.3em / 5);
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.502);
    -webkit-animation: preload-shadow-animation 1s linear infinite;
    animation: preload-shadow-animation 1s linear infinite;
}

@-moz-keyframes preload-animation {
    0%,
    100% {
        animation-timing-function: cubic-bezier(0.45, 0, 0.9, 0.55);
    }
    0% {
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }
    50% {
        -webkit-transform: translate(0, 2em);
        transform: translate(0, 2em);
        animation-timing-function: cubic-bezier(0, 0.45, 0.55, 0.9);
    }
    100% {
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }
}

@-webkit-keyframes preload-animation {
    0%,
    100% {
        animation-timing-function: cubic-bezier(0.45, 0, 0.9, 0.55);
    }
    0% {
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }
    50% {
        -webkit-transform: translate(0, 2em);
        transform: translate(0, 2em);
        animation-timing-function: cubic-bezier(0, 0.45, 0.55, 0.9);
    }
    100% {
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }
}

@-o-keyframes preload-animation {
    0%,
    100% {
        animation-timing-function: cubic-bezier(0.45, 0, 0.9, 0.55);
    }
    0% {
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }
    50% {
        -webkit-transform: translate(0, 2em);
        transform: translate(0, 2em);
        animation-timing-function: cubic-bezier(0, 0.45, 0.55, 0.9);
    }
    100% {
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }
}

@keyframes preload-animation {
    0%,
    100% {
        animation-timing-function: cubic-bezier(0.45, 0, 0.9, 0.55);
    }
    0% {
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }
    50% {
        -webkit-transform: translate(0, 2em);
        transform: translate(0, 2em);
        animation-timing-function: cubic-bezier(0, 0.45, 0.55, 0.9);
    }
    100% {
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }
}

@-moz-keyframes preload-shadow-animation {
    0%,
    100% {
        animation-timing-function: cubic-bezier(0.45, 0, 0.9, 0.55);
    }
    0% {
        -webkit-transform: scale(0.5, 0.5);
        transform: scale(0.5, 0.5);
    }
    50% {
        -webkit-transform: scale(1, 1);
        transform: scale(1, 1);
        animation-timing-function: cubic-bezier(0, 0.45, 0.55, 0.9);
    }
    100% {
        -webkit-transform: scale(0.5, 0.5);
        transform: scale(0.5, 0.5);
    }
}

@-webkit-keyframes preload-shadow-animation {
    0%,
    100% {
        animation-timing-function: cubic-bezier(0.45, 0, 0.9, 0.55);
    }
    0% {
        -webkit-transform: scale(0.5, 0.5);
        transform: scale(0.5, 0.5);
    }
    50% {
        -webkit-transform: scale(1, 1);
        transform: scale(1, 1);
        animation-timing-function: cubic-bezier(0, 0.45, 0.55, 0.9);
    }
    100% {
        -webkit-transform: scale(0.5, 0.5);
        transform: scale(0.5, 0.5);
    }
}

@-o-keyframes preload-shadow-animation {
    0%,
    100% {
        animation-timing-function: cubic-bezier(0.45, 0, 0.9, 0.55);
    }
    0% {
        -webkit-transform: scale(0.5, 0.5);
        transform: scale(0.5, 0.5);
    }
    50% {
        -webkit-transform: scale(1, 1);
        transform: scale(1, 1);
        animation-timing-function: cubic-bezier(0, 0.45, 0.55, 0.9);
    }
    100% {
        -webkit-transform: scale(0.5, 0.5);
        transform: scale(0.5, 0.5);
    }
}

@keyframes preload-shadow-animation {
    0%,
    100% {
        animation-timing-function: cubic-bezier(0.45, 0, 0.9, 0.55);
    }
    0% {
        -webkit-transform: scale(0.5, 0.5);
        transform: scale(0.5, 0.5);
    }
    50% {
        -webkit-transform: scale(1, 1);
        transform: scale(1, 1);
        animation-timing-function: cubic-bezier(0, 0.45, 0.55, 0.9);
    }
    100% {
        -webkit-transform: scale(0.5, 0.5);
        transform: scale(0.5, 0.5);
    }
}

.chat-btn {
    font-size: 1.3rem;
}

.chat-label {
    margin: 0 0.5ch;
    border-radius: 20px;
    padding: 0.4em 0.5ch 0.2em;
}

/*# sourceMappingURL=main.css.map */

/* ===== Loadout modal + profile card ===== */
#character-screen {
    position: relative;
    align-items: flex-start;
}

#loadout-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 30;
}

#loadout-modal {
    width: min(960px, calc(100vw - 60px));
    max-height: calc(100vh - 70px);
    padding: 18px;
    overflow: auto;
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

.loadout-modal-header {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 12px;
}

.loadout-modal-body {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
}

.loadout-modal-actions {
    width: 100%;
    margin-top: 8px;
    justify-content: flex-end;
    gap: 10px;
}

.loadout-close-btn {
    min-width: 2.4em;
}

#player-profile-card {
    min-width: 320px;
    align-items: stretch;
    gap: 12px;
    padding: 18px;
}

.player-profile-card-top {
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
}

.player-profile-avatar-wrap {
    width: 86px;
    height: 86px;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
}

/* Клип — обрезает аватарку по скруглённым углам */
.player-profile-avatar-clip {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    border: 3px solid #a5640a;
    background: linear-gradient(to bottom left, #fff4dc, #f7d79a);
    overflow: hidden;
    box-sizing: border-box;
}

.player-profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* XP прогресс-бар на главном экране */
.player-profile-xp-bar-wrap {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.12);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 2px;
}
.player-profile-xp-bar-fill {
    height: 100%;
    background: linear-gradient(to right, #c8a050, #e8c060);
    border-radius: 4px;
    width: 0%;
    transition: width 0.4s ease;
}
.player-profile-xp-label {
    font-size: 0.72rem;
    color: #6d655b;
    margin-top: 1px;
}

.player-profile-main {
    flex: 1;
    gap: 6px;
}

.player-profile-name {
    font-size: 1.55rem;
    font-weight: bold;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-profile-level {
    font-size: 1.1rem;
    color: #5b3911;
}

.player-profile-rank {
    font-size: 0.95rem;
    color: #6d655b;
}

.player-profile-meta {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
}

.player-profile-meta-row {
    width: 100%;
    border: 3px solid #a5640a;
    border-radius: 12px;
    padding: 8px 12px 6px;
    background: rgba(255,255,255,0.25);
    justify-content: space-between;
}

.player-profile-loadout {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.player-profile-loadout-preview {
    gap: 8px;
}

.player-profile-mini-ball-label {
    font-size: 0.9rem;
    color: #6d655b;
}

.player-profile-mini-ball {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    border: 3px solid #a5640a;
    background-color: rgba(255,255,255,0.25);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 38px 38px;
}

@media (max-width: 1200px) {
    #player-profile-card {
        min-width: 280px;
    }

    #loadout-modal {
        width: calc(100vw - 30px);
    }

    .loadout-modal-body {
        flex-direction: column;
        align-items: center;
    }
}

/* === Character screen loadout mode === */

#character-screen.loadout-open > :not(#loadout-overlay) {
    visibility: hidden !important;
    pointer-events: none !important;
}

#character-screen.loadout-open > :not(#loadout-overlay) {
    visibility: hidden !important;
    pointer-events: none !important;
}

#character-screen.loadout-open #loadout-overlay,
#character-screen.loadout-open #loadout-overlay * {
    visibility: visible !important;
    pointer-events: auto !important;
}

#character-screen.loadout-open #loadout-overlay {
    background: transparent !important;
}

/* === Match settings inside loadout modal === */

#loadout-match-settings {
    width: 100% !important;
    min-height: 150px !important;

    background: linear-gradient(to bottom left, #f9e5bd, #f8daa5) !important;
    border: 3px solid #a5640a !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    outline: none !important;

    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;

    margin: 0 0 16px 0 !important;
    padding: 16px 20px 18px !important;
}

#loadout-match-settings h3 {
    font-size: 1.45rem !important;
    margin: 0 0 4px 0 !important;
}

.loadout-settings-row {
width: 92% !important;
align-self: center !important;
    align-items: center !important;
    gap: 24px !important;
}

#loadout-match-settings #player-name {
    width: 28ch !important;
    height: 44px !important;
    font-size: 1.25rem !important;
    padding: 4px 12px 2px !important;

    border: 3px solid #a5640a !important;
    border-radius: 14px !important;
}

.loadout-region-row {
    gap: 10px !important;
    align-items: center !important;
    justify-content: center !important;
}

.loadout-region-label {
    font-size: 1.1rem !important;
    color: #5b3911 !important;
}

#loadout-match-settings #region-btn {
    font-size: 1rem !important;
    padding: 5px 12px 3px !important;
}

/* === Center panel with Play button at the bottom === */

.character-screen-center-panel {
    min-height: 278px !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding-bottom: 12px !important;
}

.character-screen-play-btn {
    align-self: center !important;
    font-size: 1.6rem !important;
    padding: 7px 28px 5px !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
}

/* === Loadout modal — адаптивный размер без скролла === */
#loadout-modal {
    overflow: visible;
    max-height: none;
}

#loadout-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    overflow: hidden;
}

@media (max-height: 750px) {
    #loadout-modal { font-size: 0.88em; }
}
@media (max-height: 650px) {
    #loadout-modal { font-size: 0.76em; }
}
@media (max-height: 550px) {
    #loadout-modal { font-size: 0.64em; }
}

@media (max-width: 950px) {
    #loadout-modal { font-size: 0.88em; }
}
@media (max-width: 800px) {
    #loadout-modal { font-size: 0.76em; }
}
@media (max-width: 650px) {
    #loadout-modal { font-size: 0.64em; }
}