@font-face {
            font-family: 'TinosBold';
            src: url('zabasefont_Tinos Bold.ttf') format('truetype');
        }

        body {
            margin: 0;
            padding: 0;
            font-family: 'TinosBold', sans-serif;
            font-size: 16px;
            color: #ffffff;
            height: 100vh;
            overflow: hidden;
            background-image: url('backgroundpage.webp');
            background-size: cover;
            background-position: center center;
            background-attachment: fixed;
            background-repeat: no-repeat;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .outer-container {
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100%;
            overflow: hidden;
            position: relative;
            justify-content: center;
            align-items: center;
            box-sizing: border-box;
            padding-left: 10px;
        }

        .top-container {
            display: flex;
            justify-content: left;
            width: 100%;
            padding: 5px;
            max-width: 1200px;
            margin-bottom: 6px;
        }

        .logo {
            width: 150px;
            top: 10px;
        }

        .pop-text {
            color: white;
            font-size: 20px;
            line-height: 40px;
            margin-left: 154px;
            position: absolute;
        }

        .inner-container {
            display: flex;
            overflow-x: auto;
            white-space: nowrap;
            width: 100vw;
            height: 250px;
            gap: 0;
            align-items: stretch;
            padding: 0 20px;
            max-width: 1200px;
            isolation: isolate; /* изолира стиловете */
        }

        .bottom-container {
            all: initial; /* нулира всички наследени стилове */
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 5px;
            max-width: 1200px;
            width: 100%;
            position: relative;
            font-family: 'TinosBold', sans-serif;
            color: #fff;
            margin-top: 6px;
        }

        .bottom2-container {
            all: initial; /* нулира всички наследени стилове */
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .bottom-container * {
            all: unset;
            font-family: 'TinosBold', sans-serif;
            color: #fff;
        }

.button {
    aspect-ratio: 3 / 4.3;
    height: 100%;
    flex-shrink: 0;
}

.A {
    aspect-ratio: 3 / 4.3;
    height: 100%;
    flex-shrink: 0;
    background-color: transparent; /* Прозрачен фон */
    border: none; /* Без рамка */
    cursor: pointer;
    position: relative;
}

.A .button-text {
    position: absolute; /* Абсолютно позициониране на текста вътре в бутона */
    bottom: 41px; /* Поставя текста на 60px от долния ръб на бутона */
    left: 50%; /* Центрира текста по хоризонтала */
    transform: translateX(-50%); /* Придвижва текста по хоризонтала, така че да е точно в центъра */
    color: white;
    font-size: 20px;
    z-index: 1;
}

.A::before,
.A::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%; /* Половината от бутона */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.A::before {
    top: 0;
    z-index: 1;
    background-image: url('images/game_files/17mode1.svg'); /* Път към горната снимка */
}

.A::after {
    bottom: 0;
    background-image: url('images/game_files/17game1.svg'); /* Път към долната снимка */
}

.A::before {
    height: calc(50% + 20px); /* 20px допълнително припокриване */
}
.A::after {
    height: calc(50% + 20px);
}

.B {
    aspect-ratio: 3 / 4.3;
    height: 100%;
    flex-shrink: 0;
    background-color: transparent; /* Прозрачен фон */
    border: none; /* Без рамка */
    cursor: pointer;
    position: relative;
}

.B .button-text {
    position: absolute; /* Абсолютно позициониране на текста вътре в бутона */
    bottom: 27px; /* Поставя текста на 60px от долния ръб на бутона */
    left: 50%; /* Центрира текста по хоризонтала */
    transform: translateX(-50%); /* Придвижва текста по хоризонтала, така че да е точно в центъра */
    color: white;
    font-size: 20px;
    z-index: 1;
}

.B::before,
.B::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%; /* Половината от бутона */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.B::before {
    top: 0;
    z-index: 1;
    background-image: url('images/game_files/17mode2.svg'); /* Път към горната снимка */
}

.B::after {
    bottom: 0;
    background-image: url('images/game_files/17game2.svg'); /* Път към долната снимка */
}

.B::before {
    height: calc(50% + 20px); /* 20px допълнително припокриване */
}
.B::after {
    height: calc(50% + 20px);
}

.C {
    aspect-ratio: 3 / 4.3;
    height: 100%;
    flex-shrink: 0;
    background-color: transparent; /* Прозрачен фон */
    border: none; /* Без рамка */
    cursor: pointer;
    position: relative;
}

.C .button-text {
    position: absolute; /* Абсолютно позициониране на текста вътре в бутона */
    bottom: 27px; /* Поставя текста на 60px от долния ръб на бутона */
    left: 50%; /* Центрира текста по хоризонтала */
    transform: translateX(-50%); /* Придвижва текста по хоризонтала, така че да е точно в центъра */
    color: white;
    font-size: 20px;
    z-index: 1;
}

.C::before,
.C::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%; /* Половината от бутона */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.C::before {
    top: 0;
    z-index: 1;
    background-image: url('images/game_files/17mode3.svg'); /* Път към горната снимка */
}

.C::after {
    bottom: 0;
    background-image: url('images/game_files/17game3.svg'); /* Път към долната снимка */
}

.C::before {
    height: calc(50% + 20px); /* 20px допълнително припокриване */
}
.C::after {
    height: calc(50% + 20px);
}

.D {
    aspect-ratio: 3 / 4.3;
    height: 100%;
    flex-shrink: 0;
    background-color: transparent; /* Прозрачен фон */
    border: none; /* Без рамка */
    cursor: pointer;
    position: relative;
}

.D .button-text {
    position: absolute; /* Абсолютно позициониране на текста вътре в бутона */
    bottom: 27px; /* Поставя текста на 60px от долния ръб на бутона */
    left: 50%; /* Центрира текста по хоризонтала */
    transform: translateX(-50%); /* Придвижва текста по хоризонтала, така че да е точно в центъра */
    color: white;
    font-size: 20px;
    z-index: 1;
}

.D::before,
.D::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%; /* Половината от бутона */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.D::before {
    top: 0;
    z-index: 1;
    background-image: url('images/game_files/17mode4.svg'); /* Път към горната снимка */
}

.D::after {
    bottom: 0;
    background-image: url('images/game_files/17game4.svg'); /* Път към долната снимка */
}

.D::before {
    height: calc(50% + 20px); /* 20px допълнително припокриване */
}
.D::after {
    height: calc(50% + 20px);
}

.E {
    aspect-ratio: 3 / 4.3;
    height: 100%;
    flex-shrink: 0;
    background-color: transparent; /* Прозрачен фон */
    border: none; /* Без рамка */
    cursor: pointer;
    position: relative;
}

.E .button-text {
    position: absolute; /* Абсолютно позициониране на текста вътре в бутона */
    bottom: 27px; /* Поставя текста на 60px от долния ръб на бутона */
    left: 50%; /* Центрира текста по хоризонтала */
    transform: translateX(-50%); /* Придвижва текста по хоризонтала, така че да е точно в центъра */
    color: white;
    font-size: 20px;
    z-index: 1;
}

.E::before,
.E::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%; /* Половината от бутона */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.E::before {
    top: 0;
    z-index: 1;
    background-image: url('images/game_files/17mode5.svg'); /* Път към горната снимка */
}

.E::after {
    bottom: 0;
    background-image: url('images/game_files/17game5.svg'); /* Път към долната снимка */
}

.E::before {
    height: calc(50% + 20px); /* 20px допълнително припокриване */
}
.E::after {
    height: calc(50% + 20px);
}

.F {
    height: 46%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background-color: transparent; /* Прозрачен фон */
    border: none; /* Без рамка */
    cursor: pointer;
    position: relative;
    background-image: url('images/game_files/maybe/17setting.svg'); /* Снимка за фон */
    background-size: cover; /* Покрива целия бутон */
    background-position: center; /* Центрира изображението */
    cursor: pointer; /* Курсор на бутона */
}

.F .icon {
    position: absolute; /* Абсолютно позициониране на текста вътре в бутона */
    width: 70px; /* Ширина на иконката */
    height: 70px; /* Височина на иконката */
    background-image: url('images/game_files/15icon15.svg'); /* Снимка за фон */
    background-size: contain; /* Прави иконката да се побере в контейнера */
    background-repeat: no-repeat;
    background-position: center; /* Центрира иконката в контейнера */
    bottom: 35px; /* Разстояние между иконката и текста */
    z-index: 1;
}

.F .button-text {
    position: absolute; /* Абсолютно позициониране на текста вътре в бутона */
    bottom: 0px; /* Поставя текста на 60px от долния ръб на бутона */
    left: 50%; /* Центрира текста по хоризонтала */
    transform: translateX(-50%); /* Придвижва текста по хоризонтала, така че да е точно в центъра */
    color: rgb(52, 52, 52);
    font-size: 20px;
    z-index: 1;
}

.G {
    height: 46%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background-color: transparent; /* Прозрачен фон */
    border: none; /* Без рамка */
    cursor: pointer;
    position: relative;
    background-image: url('images/game_files/maybe/17setting.svg'); /* Снимка за фон */
    background-size: cover; /* Покрива целия бутон */
    background-position: center; /* Центрира изображението */
    cursor: pointer; /* Курсор на бутона */
}

.G .icon {
    position: absolute; /* Абсолютно позициониране на текста вътре в бутона */
    width: 70px; /* Ширина на иконката */
    height: 70px; /* Височина на иконката */
    background-image: url('images/game_files/15icon1.svg'); /* Снимка за фон */
    background-size: contain; /* Прави иконката да се побере в контейнера */
    background-repeat: no-repeat;
    background-position: center; /* Центрира иконката в контейнера */
    bottom: 35px; /* Разстояние между иконката и текста */
    z-index: 1;
    transform: translateX(20%);
}

.G .button-text {
    position: absolute; /* Абсолютно позициониране на текста вътре в бутона */
    bottom: 0px; /* Поставя текста на 60px от долния ръб на бутона */
    left: 50%; /* Центрира текста по хоризонтала */
    transform: translateX(-50%); /* Придвижва текста по хоризонтала, така че да е точно в центъра */
    color: rgb(52, 52, 52);
    font-size: 20px;
    z-index: 1;
}

.button-column {
    display: flex;
    flex-direction: column; 
    gap: 10px;
}

.first {
    aspect-ratio: 2 / 1.5;
    min-width: 280px; /* Минимална ширина */
    background-color: transparent; /* Прозрачен фон */
    border: none; /* Без рамка */
    cursor: pointer;
    position: relative;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.top-left-container {
    position: absolute;
    flex-shrink: 0;
    background-color: transparent; /* Прозрачен фон */
    border: none; /* Без рамка */
    cursor: pointer;
    position: top;
    background-image: url('images/game_files/22account0.svg');
    background-size: 100% 100%; /* Покрива целия бутон */
    cursor: pointer; /* Курсор на бутона */
    width: 50px;
    height: 50px;
    top: 0px;
    left: 20px;
    display: flex;
    align-items: top;
    padding: 10px;
    color: white;
    border-radius: 5px;
}

.player-avatar {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    margin-bottom: -10px;
}

.avatar-frame {
    width: 70px;
    height: 70px;
    margin-left: -60px;
    margin-top: -10px;
}

.center-image-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90%;
    object-fit: contain;
    z-index: 1;
}

.center-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.bottom-right-container {
    position: absolute;
    display: flex;
    justify-content: flex-end;
    background-image: url('images/game_files/22account0.svg'); /* Снимка за фон */
    background-size: 100% 100%; /* Покрива целия бутон */
    cursor: pointer; /* Курсор на бутона */
    width: 180px;
    height: 40px;
    bottom: 5px;
    right: 12px;
    padding: 10px;
    z-index: 2;
}

.bottom20-container {
            all: initial; /* нулира всички наследени стилове */
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }


@media (max-width: 420px) {
    .bottom20-container > *:not(:last-child) {
        margin-right: -5px !important;
    }
}

.icon-container {
    display: flex;
    align-items: right;
    z-index: 2;
}

.icon {
    width: 30px;
    height: 30px;
    margin-top: 5px;
    margin-right: 0px;
    margin-left: 5px;
    z-index: 2;
}

.icon-text {
    font-size: 22px;
    color: #5a3a14;
    margin-top: 5px;
    z-index: 2;
}

.shop-button {
    width: 45px;
    height: 45px;
    right: 0px;
    background-image: url('images/game_files/11buttonA2.svg'); /* Снимка за фон */
    background-size: 100% 100%; /* Покрива целия бутон */
    cursor: pointer; /* Курсор на бутона */
    font-size: 50px;
    color: white;
    border: none;
    cursor: pointer;
    margin-left: 8px;
    margin-top: -3px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.shop-button:hover {
    background: url('images/game_files/11buttonA3.svg') center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.leave {
    width: 40px;
    height: 40px;
    background-image: url('images/game_files/4button3.svg'); /* Основен фон */ 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    float: left;
    justify-items: start;
}

/* Смяна на фона при ховър */
.leave:hover {
    background: url('images/game_files/11buttonA4.svg') center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Иконка в бутона */
.leave {
    width: 25px;
    height: 25px;
    margin-right: 8px;
}

.playername {
    display: flex; /* Активира flexbox */
    justify-content: flex-start; /* Подравнява елементите вляво */
    display: inline-block;
    font-size: 19px;
    line-height: 100%;
}

.assignment {
    width: 40px;
    height: 40px;
    background-image: url('images/game_files/11buttonA0.svg'); /* Основен фон */ 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    float: left;
    justify-items: start;
}

/* Смяна на фона при ховър */
.assignment:hover {
    background: url('images/game_files/11buttonA1.svg') center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Иконка в бутона */
.assignment {
    width: 25px;
    height: 25px;
    margin-right: 8px;
}

/* Скриване по подразбиране */
.player-menu-hidden {
  display: none;
}

/* Центриране на менюто и стил */
#player-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 800px;
  max-height: 600px;
  background: url('images/game_files/21backround1.svg') no-repeat center center;
  background-size: 100% 100%;
  z-index: 3;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 50px;
}
#player-menu.hidden {
  display: none;
}

/* Фонов контейнер, за да се управлява padding */
.player-menu-bg {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Бутон за затваряне */
.close-btn {
    width: 40px;
    height: 40px;
    position: absolute;
    top: -1px;
    right: -21px;
    border: none;
    background-color: transparent;
    background-image: url('images/game_files/11buttonA4.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    padding: 0;
}

/* Икона в бутона */
.close-btn .icon {
    display: block;
    width: 20px;
    height: 20px;
    margin: auto;
    margin-top: -3px;
    background-image: url('images/game_files/15icon14.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
}

/* Смяна на фоновото изображение при ховър */
.close-btn:hover {
    background-image: url('images/game_files/11buttonA5.svg');
}

/* Основно съдържание с 3 колони: лява, център, дясна (последните два са в центъра) */
.player-menu-content {
  display: flex;
  flex: 1;
  gap: 14px;
  margin-top: 50px; /* За да има разстояние от бутона за затваряне */
}

/* Лява колона (100px ширина) */
.left-column {
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.player-photo {
  width: 70px;
  height: 70px;
  overflow: hidden;
  object-fit: cover;
}

.avatar-frame-menuacc {
    width: 104px;
    height: 104px;
    position: absolute;
    top: 36px;
}

.btn-change-photo {
  padding: 6px 8px;
  cursor: pointer;
  font-size: 15px;
  margin-top: 8px;
  align-self: flex-start;
  background-image: url('images/game_files/10buttonD2.svg');
  background-size: 100% 100%;
  color: #ffffff;
  line-height: 20px;
  border: none;
  background-color: transparent;
  font-family: 'TinosBold', sans-serif;
  height: 35px;
  width: 70px;
}
.btn-change-photo:hover {
    background-image: url('images/game_files/10buttonD3.svg');
}

/* Централна колона - текстово поле и бутон */
.center-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
}

.center-red {
  flex: 1;
  display: flex;
  gap: 10px;
}

.player-name {
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1.5px solid #ffffff;
  color: #5a3a14;
  font-family: 'TinosBold', sans-serif;
  width: 135px;
  height: 20px;
}

.btn-change-name {
  width: fit-content;
  padding: 6px 12px;
  cursor: pointer;
  align-self: flex-start;
  background-image: url('images/game_files/10buttonD2.svg');
  background-size: 100% 100%;
  color: #ffffff;
  font-size: 15px;
  border: none;
  background-color: transparent;
  font-family: 'TinosBold', sans-serif;
  height: 35px;
}
.btn-change-name:hover {
    background-image: url('images/game_files/10buttonD3.svg');
}

/* ID с бутон за копиране */
.player-id-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-top: -18px;
  color: #5a3a14;
  font-family: 'TinosBold', sans-serif;
  justify-content: space-between; /* ✅ Добавено */
  width: 250px; /* ✅ или друга фиксирана стойност като 300px */
}

.btn-copy-id {
  cursor: pointer;
  background: #555;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
}

/* Двата контейнера по 100px под основното съдържание */
.container-100px {
  height: 70px;
  margin-top: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  /* Тук можеш да добавиш още стил */
}

.container-400px {
  margin-top: 10px;
  width: 100px;
  max-height: 300px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  /* Тук можеш да добавиш още стил */
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; height: 100%;
  display: flex; justify-content: center; align-items: center;
  z-index: 5;
}
.modal-content {
  background-image: url('images/game_files/22account0.svg');
  background-size: 100% 100%;
  padding: 20px;
  width: 200%;
  max-width: 260px;
  text-align: center;
  z-index: 6;
}

/* Бутон за затваряне */
.close-btn5 {
    width: 40px;
    height: 40px;
    position: absolute;
    border: none;
    background-color: transparent;
    background-image: url('images/game_files/11buttonA4.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateX(100%);
    transform: translateY(-100%);
    cursor: pointer;
    padding: 0;
}

/* Икона в бутона */
.close-btn5 .icon {
    display: block;
    width: 20px;
    height: 20px;
    margin: auto;
    margin-top: -3px;
    background-image: url('images/game_files/15icon14.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
}

/* Смяна на фоновото изображение при ховър */
.close-btn5:hover {
    background-image: url('images/game_files/11buttonA5.svg');
}

.btn-change-name3 {
  width: fit-content;
  padding: 6px 12px;
  cursor: pointer;
  align-self: flex-start;
  background-image: url('images/game_files/10button0.svg');
  background-size: 100% 100%;
  color: #ffffff;
  font-size: 15px;
  border: none;
  background-color: transparent;
  font-family: 'TinosBold', sans-serif;
  height: 35px;
}
.btn-change-name3:hover {
    background-image: url('images/game_files/10button1.svg');
}
.btn-change-name3.active {
  background-image: url('images/game_files/10button2.svg');
}
.btn-change-name3.active:hover {
  background-image: url('images/game_files/10button3.svg');
}

.game-container {
  display: flex;
  position: absolute;
  height: 300px;
  width: 570px;
  overflow: visible;
  top: 50%;
  left: 50vw;
  transform: translateX(-285px) translateY(-50%);
  z-index: 100;
  position: absolute; /* задължително за позициониране на псевдоелемента */
  pointer-events: auto; /* за сигурност при абсолютна позиция */
  box-sizing: border-box;
}
.hidden {
  display: none;
}

.game-container::before {
  content: "";
  position: absolute;
  overflow: hidden;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: url('images/game_files/21backround1.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1; /* стои под съдържанието */
}

  /* Колони */
  .game-left-col {
    width: 206px;
    padding: 5px;
    margin-left: -22px;
    padding-right: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .game-middle-col {
    margin-top: -2px;
    width: 100px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .game-right-col {
    flex: 1;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  /* Лява колона - заглавие и текст */
  .game-left-col h1 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    color: #5a3a14;
    text-align: justify;
    margin-top: -3px;
  }
  .game-left-col p {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #5a3a14;
    margin-top: -10px;
    margin-bottom: 5px;
    text-align: justify;
  }

  /* Трите контейнера със SVG фон */
  .game-player-container {
    position: relative;
    width: 170px;
    height: 55px;
    margin-bottom: 5px;
    padding: 10px;
    background-image: url('images/game_files/22account8.svg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }
  /* Снимка отляво 60x60 */
  .game-player-photo {
    width: 55px;
    height: 55px;
    object-fit: cover;
    position: relative;
  }
  
  .game-player-photo-overlay {
    width: 77px;
    height: 77px;
    top: -11px;
    left: -11px;
    object-fit: cover;
    position: absolute;
    z-index: 2;
  }

  /* Текст до снимките вдясно */
  .game-player-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 10px;
    color: #5a3a14;
  }

  /* Текст и бутон в един ред с разстояние между тях */
  .game-players-current {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* да е най-отдолу в лявата колона */
    width: 100%;
    line-height: 16px;
    color: #5a3a14;
  }
  .cancel-btn {
  width: fit-content;
  padding: 6px 12px;
  cursor: pointer;
  background-image: url('images/game_files/10buttonD4.svg');
  background-size: 100% 100%;
  color: #ffffff;
  font-size: 15px;
  border: none;
  background-color: transparent;
  font-family: 'TinosBold', sans-serif;
  height: 35px;
}
.cancel-btn:hover {
    background-image: url('images/game_files/10buttonD5.svg');
}

  /* Централна колона: снимка и gif */
  .game-middle-col .game-gif {
    top: 50%;      /* поставяме стрелката центрирана вертикално */
    left: 50%;     /* центрирана хоризонтално */
    width: 80px;  /* ширина на стрелката */
    height: auto;
    z-index: 1;
  }
  .game-middle-col .game-photo {
    position: absolute;
    margin-top: -3px;
    width: 10px;
    top: 0;
    left: 44%;
    height: 50%;
    object-fit: cover;
    background-repeat: repeat-y;
    z-index: 1;
  }
  .game-strelk {
  position: absolute;
  top: calc(50% - 24px);
  left: calc(50% - 3px);
  width: 7px;  /* ширина на стрелката */
  height: auto;
  transform-origin: 50% 86%; /* точката на въртене малко навътре по ширината (20%) и по средата по височината (50%) */
  animation: rotateHand 2s linear infinite;
  transform-box: fill-box; /* важно за SVG, ако стрелката е SVG */
  z-index: 2;
}

@keyframes rotateHand {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

  /* Дясна колона */
  .game-right-col {
    position: relative;
    line-height: 16px;
    color: #5a3a14;
  }

  .game-right-btn {
  width: fit-content;
  padding: 6px 12px;
  cursor: pointer;
  position: absolute;
  right: 10px;
  background-image: url('images/game_files/10button0.svg');
  background-size: 100% 100%;
  color: #ffffff;
  font-size: 15px;
  border: none;
  background-color: transparent;
  font-family: 'TinosBold', sans-serif;
  height: 35px;
}
.game-right-btn:hover {
    background-image: url('images/game_files/10button1.svg');
}

  .game-text-below-button {
    text-align: left;
    margin-top: 40px;
    margin-bottom: 10px;
    color: #5a3a14;
  }

  .s5555 {
    font-size: 1rem;
    color: #5a3a14;
    text-align: justify;
  }

  .s5556 {
    font-size: 1rem;
    color: #5a3a14;
    margin-top: 20px;
  }

.s5557 {
    font-size: 18px !important;
    color: #5a3a14;
  }

  /* Хоризонтално подредени 4 контейнера с икони */
  .game-icon-row {
    display: flex;
    gap: 5px;
  }
  .game-icon-box {
    width: 75px;
    height: 80px;
    background-image: url('images/game_files/maybe/17setting.svg');
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .game-icon-box img {
    width: 60px;
    height: 60px;
    margin-top: -10px;
    object-fit: contain;
    margin-bottom: 5px;
  }
  .game-icon-box span {
    font-size: 0.8rem;
    text-align: center;
  }

.game-right-2 {
  width: fit-content;
  padding: 6px 12px;
  padding-left: 14px;
  cursor: pointer;
  position: relative;
  margin-left: auto;
  margin-right: 10px; /* отстояние отдясно */
  background-image: url('images/game_files/0button0.svg');
  background-size: 100% 100%;
  color: #ffffff;
  font-size: 15px;
  border: none;
  background-color: transparent;
  font-family: 'TinosBold', sans-serif;
  height: 35px;
  white-space: nowrap;       /* не пренася реда */
  overflow: hidden;          /* скрива излишния текст */
  text-overflow: ellipsis;
}
.game-right-2:hover {
    background-image: url('images/game_files/0button1.svg');
    background-size: 100% 100% !important;
}
.game-right-2 span {
  display: inline-block;
  transform: translateX(-4px) translateY(-4px);
}

#overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0); /* първоначално прозрачен */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: background 0.7s ease, opacity 0.7s ease;
  z-index: 9999;
}

#overlay.visible {
  background: rgba(23, 0, 0, 0.8); /* леко затъмнение */
  opacity: 1;
  pointer-events: auto;
}

.left-panel {
  width: 300px;
  height: auto;
  background-image: url('images/game_files/22account0.svg');
  background-size: 100% 100%;
  color: #5a3a14;
  line-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  padding-left: 30px;
  user-select: none;
}

#animated-image {
  height: clamp(200px, 80vh, 400px);
  width: auto;   /* ширината според изображението */
  user-select: none;
  transform: scaleX(-1)
}

#image-wrapper22 {
  /* Начално позициониране - леко вдясно и скрито отдолу */
  transform: translateX(30px) translateY(100%) scale(1);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
  will-change: transform, opacity;
  cursor: pointer;
}

#image-wrapper22.active {
  opacity: 1;
  transform: translateX(30px) translateY(0) scale(1);
  animation: playfulPulse 0.4s ease 0.4s forwards; /* след като се покаже */
}

/* Анимация: разширяване и свиване леко за игрив ефект */
@keyframes playfulPulse {
  0% {
    transform: translateX(30px) translateY(0) scale(1);
  }
  50% {
    transform: translateX(30px) translateY(0) scale(1.05, 0.95);
  }
  100% {
    transform: translateX(30px) translateY(0) scale(1);
  }
}

.game-right-3 {
  width: fit-content;
  padding: 6px 12px;
  cursor: pointer;
  position: relative;
  background-image: url('images/game_files/8button2.svg');
  background-size: 100% 100%;
  color: #ffffff;
  font-size: 15px;
  border: none;
  background-color: transparent;
  font-family: 'TinosBold', sans-serif;
  height: 35px;
}
.game-right-3:hover {
    background-image: url('images/game_files/8button3.svg');
}

.title2 {
  position: absolute;
  color: #ffffff;
  font-size: 20px;
  margin-top: 0px;
}

/* Контейнер за настройките */
#settingsContainer {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 40px;
    padding-bottom: 40px;
    background: url('images/game_files/21backround1.svg') no-repeat center;
    background-size: 100% 100%; /* 🔹 Разтяга фона */
    z-index: 1000;
}

/* Подредба в 2 колони */
.settings-content {
    display: flex;
    justify-content: space-between;
    gap: 0px;
}

/* Всяка колона */
.settings-col.left {
    flex: 2; /* Лявата колона по-широка */
}
.settings-col.right {
    flex: 1; /* Дясната колона по-тясна */
    align-items: flex-end;
    text-align: right; 
}

/* Заглавия */
.settings-col p {
    margin: 0px;
    font-size: 18px;
    color: #5a3a14;
}

/* Бутони */
.map-btn {
    position: relative;
    width: 100px;
    height: 70px;
    font-size: 16px;
    border: 3px solid #888;
    border-radius: 8px;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s;
}

.map-btn:hover {
    border-color: rgb(255, 225, 0);
}

/* Натискане → зелена рамка */
.map-btn:active {
    border-color: rgb(0, 179, 0);
}

/* Active клас → зелена рамка */
.map-btn.active {
    border-color: rgb(0, 172, 0);
}

.map-btn .map1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background: url("images/game_files/Map/MapGfx1.jpg") no-repeat center;
    background-size: cover;
    z-index: 0;
}

.map-btn .map2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background: url("images/game_files/Map/MapGfx2.jpg") no-repeat center;
    background-size: cover;
    z-index: 0;
}

.map-btn .map3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background: url("images/game_files/Map/MapGfx3.jpg") no-repeat center;
    background-size: cover;
    z-index: 0;
}

.units-btn {
    position: relative;
    width: 100px;
    height: 55px;
    left: -5px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background-color: transparent;
    transition: background 0.2s;
}

@-moz-document url-prefix() {
  .units-btn {
    position: relative;
    width: 100px;
    height: 55px;
    left: -5px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background-color: transparent;
    transition: background 0.2s;
    top: -30px;
}
}

.units-btn .soldier1 {
    position: absolute;
    top: 0px;
    left: 5px;
    width: 31px;
    height: 60px;
    background: url("images/player_files/soldiers/1/b1.svg") no-repeat center;
    background-size: contain;
    z-index: 0;
}

.units-btn .soldier2 {
    position: absolute;
    top: -5px;
    left: 30px;
    width: 38px;
    height: 63px;
    background: url("images/player_files/soldiers/1/b2.svg") no-repeat center;
    background-size: contain;
    z-index: 1;
}

.units-btn .soldier3 {
    position: absolute;
    top: 0px;
    right: 5px;
    width: 31px;
    height: 60px;
    background: url("images/player_files/soldiers/1/b3.svg") no-repeat center;
    background-size: contain;
    z-index: 0;
}

.lang-btn {
  width: fit-content;
  padding: 6px 12px;
  cursor: pointer;
  align-self: flex-start;
  background-image: url('images/game_files/10buttonD2.svg');
  background-size: 100% 100%;
  color: #ffffff;
  font-size: 15px;
  border: none;
  background-color: transparent;
  font-family: 'TinosBold', sans-serif;
  height: 35px;
  margin-bottom: 15px;
}
.lang-btn:hover {
    background-image: url('images/game_files/10buttonD3.svg');
}

.lang2-btn {
  position: relative;
  width: fit-content;
  padding: 6px 12px;
  cursor: pointer;
  align-self: flex-start;
  background-image: url('images/game_files/10buttonD2.svg');
  background-size: 100% 100%;
  color: #ffffff;
  font-size: 15px;
  border: none;
  background-color: transparent;
  font-family: 'TinosBold', sans-serif;
  height: 35px;
  top: -20px !important;
  margin-bottom: -10px;
}
@-moz-document url-prefix() {
  .lang2-btn {
      position: relative;
  width: fit-content;
  padding: 6px 12px;
  cursor: pointer;
  align-self: flex-start;
  background-image: url('images/game_files/10buttonD2.svg');
  background-size: 100% 100%;
  color: #ffffff;
  font-size: 15px;
  border: none;
  background-color: transparent;
  font-family: 'TinosBold', sans-serif;
  height: 35px;
  margin-top: 30px;
  }
}
.lang2-btn:hover {
    background-image: url('images/game_files/10buttonD3.svg');
}

/* Слайдери */
input[type=range] {
    width: 100%;
    margin-top: -20px;
}

@media (max-width: 600px) {
    #settingsContainer {
        width: 90%; /* по-малка ширина на мобилно */
    }
    .settings-content {
        flex-direction: column;
        align-items: center;
    }
    .settings-col {
        align-items: center;
    }
}

.title3 {
  position: absolute;
  color: #ffffff;
  font-size: 20px;
  margin-top: -38px;
}

.close-btn10 {
    width: 40px;
    height: 40px;
    position: absolute;
    top: -4px;
    right: -1px;
    border: none;
    background-color: transparent;
    background-image: url('images/game_files/11buttonA4.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    padding: 0;
}

.close-btn10 .icon {
    display: block;
    width: 20px;
    height: 20px;
    margin: auto;
    margin-top: -3px;
    background-image: url('images/game_files/15icon14.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
}

/* Смяна на фоновото изображение при ховър */
.close-btn10:hover {
    background-image: url('images/game_files/11buttonA5.svg');
}

#soldier-container {
    display: none; /* скрит по подразбиране */
    max-width: 100%;
    margin-top: 34px;
    padding: 12px;
    padding-top: 35px;
    position: absolute;
    background-image: url('images/game_files/22account0.svg');
    background-size: 100% 100%;
    z-index: 10000;
}

.soldier-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    overflow-x: auto;
}

.soldier-icon {
    flex: 0 0 auto;
    margin-right: 10px;
}

.soldier-icon img {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.soldier2-icon {
    flex: 0 0 auto;
    margin-right: 12px;
    margin-left: 1.8px;
}

.soldier2-icon img {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.soldier-buttons {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    flex: 1;
}

/* Стил за бутоните */
.soldier-buttons button {
    height: 60px;
    width: 40px;
    font-size: 14px;
    border: 3px solid #bdbdbd;
    border-radius: 5px;
    background-color: #d0d0d0;
    cursor: pointer;
    flex-shrink: 0;
}

.soldier-buttons img {
    height: 50px;
    width: 35px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: -7px;
}

.soldier-buttons button:hover {
    border-color: rgb(255, 225, 0);
}

/* Натискане → зелена рамка */
.soldier-buttons button:active {
    border-color: rgb(0, 179, 0);
}

/* Active клас → зелена рамка */
.soldier-buttons button.active {
    border-color: rgb(0, 172, 0);
    background-color: rgb(136, 189, 136);
}

.close-btn11 {
    width: 40px;
    height: 40px;
    position: absolute;
    top: -20px;
    right: -10px;
    border: none;
    background-color: transparent;
    background-image: url('images/game_files/11buttonA4.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    padding: 0;
}

.close-btn11 .icon {
    display: block;
    width: 20px;
    height: 20px;
    margin: auto;
    margin-top: -3px;
    background-image: url('images/game_files/15icon14.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
}

/* Смяна на фоновото изображение при ховър */
.close-btn11:hover {
    background-image: url('images/game_files/11buttonA5.svg');
}

.titleinputsettings {
    margin-bottom: -3px !important;
    margin-top: -3px !important;
}

.scale-wrapper {
    display: flex;
    justify-content: space-between; /* разстояние между стойност и текст */
    align-items: center;
    width: 100%; /* или колкото искаш */
}

.lang-container {
  position: absolute;
  display: flex;
  flex-wrap: wrap;
  width: 300px;
  background-image: url('images/game_files/22account0.svg');
  background-size: 100% 100%;
  padding: 10px;
  padding-top: 30px;
  margin-top: 5px;
  z-index: 100000;
  align-items: center!important;
  justify-content: center!important;
}

.lang-container2 {
  gap: 5px !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center!important;
  justify-content: center!important;
}

.lang-button5 {
  position: relative;
  width: fit-content;
  padding: 6px 12px;
  cursor: pointer;
  align-self: flex-start;
  background-image: url('images/game_files/10buttonD0.svg');
  background-size: 100% 100%;
  color: #ffffff;
  font-size: 15px;
  border: none;
  background-color: transparent;
  font-family: 'TinosBold', sans-serif;
  height: 35px;
}

.lang-button5:hover {
    background-image: url('images/game_files/10buttonD1.svg');
}

.close-btn13 {
    width: 40px;
    height: 40px;
    position: absolute;
    top: -20px;
    right: -10px;
    border: none;
    background-color: transparent;
    background-image: url('images/game_files/11buttonA4.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    padding: 0;
}

.close-btn13 .icon {
    display: block;
    width: 20px;
    height: 20px;
    margin: auto;
    margin-top: -3px;
    background-image: url('images/game_files/15icon14.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
}

/* Смяна на фоновото изображение при ховър */
.close-btn13:hover {
    background-image: url('images/game_files/11buttonA5.svg');
}

.lang-button5.active {
  width: fit-content;
  padding: 6px 12px;
  cursor: pointer;
  align-self: flex-start;
  background-image: url('images/game_files/10buttonD2.svg');
  background-size: 100% 100%;
  color: #ffffff;
  font-size: 15px;
  border: none;
  background-color: transparent;
  font-family: 'TinosBold', sans-serif;
  height: 35px;
}
.lang-button5.active:hover {
    background-image: url('images/game_files/10buttonD3.svg');
}

.shop-container {
  position: absolute;
  display: flex;
  gap: 10px;
  background-image: url('images/game_files/21backround0.svg');
  background-size: 100% 112%;
  background-position: center;
  padding: 30px;
  padding-bottom: 36px;
  padding-top: 36px;
  width: 600px;
  height: 280px;
  z-index: 10;
}

.left-big-btn {
  width: 130px;
  background: #ddd;
  border: none;
}

.right-content {
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

/* Горен ред с 2 колони по 4 бутона */
.top-row {
  display: flex;
  flex-direction: column; /* подрежда елементите вертикално */
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto; /* Скрол при малък екран */
  direction: rtl;
  padding-top: 10px;
  padding-left: 6px;
  margin-top: -10px;
}

.top-row > * {
  direction: ltr;   /* Текстът си остава нормален */
}

.col {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 5px;
  flex: 0 0 auto;
  width: 100%;
}

.top-row button {
  min-width: 50px;
  height: 120px;
  padding: 5px;
}

/* Долен ред с 14 бутона */
.bottom-row {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden; /* скриваме вертикалния скрол */
  width: 100%; /* контейнерът не излиза извън рамките */
  white-space: nowrap; /* всички бутони в един ред */
  padding-bottom: 5px; /* малко разстояние за скрола */
}

.bottom-row button {
  min-width: 50px;
  padding: 5px;
  flex: 0 0 auto; /* предотвратява разтягането */
}

.top-row-titles {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  font-size: 18px;
  color: #5a3a14;
}

.shop-icon-box {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'TinosBold', sans-serif;
    width: 75px;
    height: 110px !important;
    background-image: url('images/game_files/maybe/17setting.svg');
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.07s ease-in-out;
}
.shop-icon-box:active {
  transform: scale(0.85);
}
  .shop-icon-box img {
    width: 60px;
    height: 60px;
    margin-top: -10px;
    object-fit: contain;
    margin-bottom: 5px;
  }
  .shop-icon-box span {
    font-size: 0.8rem;
    text-align: center;
  }

.s5558 {
    font-size: 18px !important;
    color: #5a3a14;
    margin-top: -5px;
    margin-left: 0px;
  }

.s5559 {
    font-size: 16px !important;
    color: #5a3a14;
    margin-top: -3px;
    margin-left: 0px;
  }

.s5560 {
    font-size: 16px !important;
    color: #08ae0d;
    margin-top: -10px;
    margin-left: 0px;
  }

.s5560s {
    font-size: 16px !important;
    color: #5a3a14;
    margin-top: -10px;
    margin-left: 0px;
  }

.price-icon {
  width: 18px !important;
  height: 18px !important;
  position: relative;
  top: 10px; /* фино вертикално изместване */
  margin-right: 2px; /* разстояние между иконата и числото */
  display: inline-block;
}

.shop-icon-box1 {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'TinosBold', sans-serif;
    width: 75px;
    height: 110px !important;
    background-image: url('images/game_files/maybe/17setting.svg');
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .shop-icon-box1 img {
    width: 50px;
    height: 50px;
    margin-top: 0px;
    object-fit: contain;
    margin-bottom: 5px;
  }
  .shop-icon-box1 span {
    font-size: 0.8rem;
    text-align: center;
  }

  .shop-icon-box2 {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'TinosBold', sans-serif;
    width: 75px;
    height: 110px !important;
    background-image: url('images/game_files/maybe/17setting.svg');
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .shop-icon-box2 img {
    width: 40px;
    height: 40px;
    margin-top: 10px;
    object-fit: contain;
    margin-bottom: 5px;
  }
  .shop-icon-box2 span {
    font-size: 0.8rem;
    text-align: center;
  }

.sortnumbers-btn {
  padding: 6px 8px;
  cursor: pointer;
  font-size: 15px;
  margin-top: 5px;
  margin-left: 43px;
  background-image: url('images/game_files/10buttonD2.svg');
  background-size: 100% 100%;
  color: #ffffff;
  line-height: 20px;
  border: none;
  background-color: transparent;
  font-family: 'TinosBold', sans-serif;
  height: 32px !important;
}
.sortnumbers-btn:hover {
    background-image: url('images/game_files/10buttonD3.svg');
}

.buy {
  padding: 6px 8px;
  cursor: pointer;
  font-size: 15px;
  margin-top: 2px;
  margin-left: 10px;
  align-self: flex-start;
  background-image: url('images/game_files/10buttonD2.svg');
  background-size: 100% 100%;
  color: #ffffff;
  line-height: 20px;
  border: none;
  background-color: transparent;
  font-family: 'TinosBold', sans-serif;
  height: 32px !important;
  width: 56px;
}
.buy:hover {
    background-image: url('images/game_files/10buttonD3.svg');
}

.close-btn15 {
    width: 40px;
    height: 40px;
    position: absolute;
    right: -5px;
    border: none;
    background-color: transparent;
    background-image: url('images/game_files/11buttonA4.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateX(100%);
    transform: translateY(-100%);
    cursor: pointer;
    padding: 0;
    margin-top: -3px;
}

/* Икона в бутона */
.close-btn15 .icon {
    display: block;
    width: 20px;
    height: 20px;
    margin: auto;
    margin-top: -3px;
    background-image: url('images/game_files/15icon14.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
}

.close-btn15:hover {
    background-image: url('images/game_files/11buttonA5.svg');
}

  .kont-main-rare {
    display: flex;
    justify-content: space-between; /* разделя двата блока: ляв и десен */
    align-items: center;
    width: 600px;
    gap: 10px;
  }

  .kont-inner-rare {
    display: flex;
    gap: 5px; /* бутоните един до друг */
  }

.yellow3-button {
  width: 100%;
  height: 236px;
  background-color: transparent;
  background-image: url('images/game_files/24shopbuilding.svg');
  background-repeat: no-repeat;
  background-size: 80% 80%;
  transform: scaleX(-1);
  background-position: left bottom;
  border: none;
  font-size: 16px;
}

.palatkata {
  position: absolute;
  color: #5a3a14;
  right: 120px;
  top: 20px;
  font-size: 20px;
}

.palatkata2 {
  position: absolute;
  color: #5a3a14;
  right: 74px;
  margin-top: 26px;
  font-size: 16px;
}

.palatkata3 {
  position: absolute;
  color: #5a3a14;
  right: 137px;
  margin-top: 26px;
  font-size: 16px;
}

.shop-icon-box5 {
    background: none;
    border: none;
    font-family: 'TinosBold', sans-serif;
    width: 75px;
    transform: scaleX(-1) translate(-140px, 80px) rotate(-5deg);
    height: 110px !important;
    margin-top: 60px;
    background-image: url('images/game_files/maybe/17setting.svg');
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .shop-icon-box5 img {
    width: 40px;
    height: 40px;
    margin-top: 5px;
    object-fit: contain;
    margin-bottom: 10px;
  }
  .shop-icon-box5 span {
    font-size: 0.8rem;
    text-align: center;
  }

.discordicon {
    width: 90px;
    margin-top: 3px;
  }

.pick {
  padding: 6px 8px;
  cursor: pointer;
  font-size: 15px;
  margin-left: 10px;
  align-self: flex-start;
  background-image: url('images/game_files/10buttonD2.svg');
  background-size: 100% 100%;
  color: #ffffff;
  line-height: 20px;
  border: none;
  background-color: transparent;
  font-family: 'TinosBold', sans-serif;
  transform: scaleX(-1) translate(-136px, 37px) rotate(-5deg);
  height: 32px !important;
  width: 56px;
}
.pick:hover {
    background-image: url('images/game_files/10buttonD3.svg');
}

.hidden {
  visibility: hidden;       /* невидим */
  pointer-events: none;     /* не може да се кликва */
  position: absolute;       /* вади го от потока, без да мести другите */
}

.icongender-container {
    display: flex;        /* Подрежда хоризонтално */            /* Разстояние между иконките */
    align-items: center;  /* Центрира вертикално */
    margin-top: 9px;
    margin-bottom: -2px;
}

.icongender-container img {
    width: 16px;
    height: 16px;
}

.a456654 {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}