//*
//Author by Axnov(Yakhnov Anatoliy), All rights reserved.
*//
html {
    min-height: 100%;
    min-height: 100dvh;
    background: #202325;
}
body {
    margin: 0 auto;
    min-width: 240px;
    max-width: 600px;
    min-height: 100vh;
    min-height: 100dvh;
    font-size: 14px;
    font-family: arial, verdana, tahoma, sans-serif;
    font-style: normal;
    color: #ffffff;
    text-shadow: 1px 1px 2px #000000;
    overflow-y: auto;
    background: #202325;
    background-image: none;
}

@media (min-width: 600px) {
    body {
        background: url(/public/img/back/bg.webp) no-repeat fixed 50% #202325;
        background-size: 1920px 1080px;
    }
}
/* Экран не больше 1366×768 — подставляем размер фона под эту сетку */
@media (min-width: 600px) and (max-width: 1366px) and (max-height: 768px) {
    body {
        background-size: 1366px 768px;
        background: url(/public/img/back/bgmini.webp) no-repeat fixed 50% #202325;
    }
}
.centerScreen{
    z-index: 9999;
    position: fixed;
    background-color: rgba(0, 0, 0, .6);
    height: 100vh;
    height: 100dvh;
    left: 0;
    top: 0;
    width: 100%;
    display: flex;
    overflow-y: auto;
}
.messageMenu{
    display: flex;
    margin: auto;
    
}
.messagePositionExit{
    position: absolute;
    top: -15px;
    right: -15px;
}
.messageBack{
    color: #d3d3d3;
    border: solid 1px #65738b;
    border-radius: 10px;
    background: linear-gradient(to right, #40545f, #517489, #40545f);
}
.fontSegoe{
    font-family: Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
.logoLogin{
    background: url(/public/boby/cloud.png) 0 -205px / 200% repeat-x, url(/public/img/main/logo.png) 0 0 / 100% no-repeat, url(/public/boby/1.png) 0 0 / 100% repeat;
}
.start{
    background: url(/public/img/main/aute.png) 0 59% / 100% no-repeat;
    padding: 31px;
    font-size: 32px;
    filter: drop-shadow(0 2px 0 #000) drop-shadow(0 3px 1px rgba(0, 0, 0, .25));
}
.castleMap {
    height: calc(100vh - 161px);
    height: calc(100svh - 161px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    position: relative;
    background-repeat: repeat-y;
    overflow: auto;
    touch-action: pan-x pan-y;
    width: 100%;
}
/* Красивый кастомный скроллбар в стиле факелов / золота */
.castleMap::-webkit-scrollbar {
    width: 10px;
    height: 0;   /* убираем горизонтальный скроллбар */
}

.castleMap::-webkit-scrollbar-track {
    background: rgba(40, 28, 18, 0.85);
    border-left: 1px solid rgba(120, 70, 30, 0.4);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
}

.castleMap::-webkit-scrollbar-thumb {
    background: linear-gradient(
        to bottom,
        #ffcc77,
        #ffaa44,
        #e68a2e
    );
    border-radius: 8px;
    border: 2px solid rgba(40, 28, 18, 0.95);
    
    /* Свечение как от факела */
    box-shadow: 
        0 0 10px rgba(255, 180, 70, 0.8),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.castleMap::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ffe299, #ffbb66, #f99d44);
    box-shadow: 
        0 0 18px rgba(255, 205, 90, 0.95),
        inset 0 3px 6px rgba(255, 255, 255, 0.5);
}

/* Убираем белый квадратик в углу */
.castleMap::-webkit-scrollbar-corner {
    background: transparent;
}

/* Для Firefox */
.castleMap {
    scrollbar-width: thin;
    scrollbar-color: #ffaa44 rgba(40, 28, 18, 0.85);
}
.castleMapBack {
    background-image: url(/public/img/castle/castle.webp?v=1);
    width: 600px;
    height: 1076px;
    background-size: contain;
    position: relative;
    overflow: hidden;
    --cfw: 600px; /* CSS-переменная = текущая ширина замка, обновляется JS при зуме */
}
.castlePosition0img{
    background-image: url(/public/img/build/0.webp);
}
.castlePosition1img{
    background-image: url(/public/img/build/1.webp);
}
.castlePosition2img{
    background-image: url(/public/img/build/2.webp);
}

.castlePosition3img{
    background-image: url(/public/img/build/3.webp);
}
.castlePosition4img{
    background-image: url(/public/img/build/4.webp);
}
.castlePosition5img{
    background-image: url(/public/img/build/5.webp);
}
.castlePosition6img{
    background-image: url(/public/img/build/6.webp);
}
.castlePosition7img{
    background-image: url(/public/img/build/7.webp);
}
.castlePosition8img{
    background-image: url(/public/img/build/8.webp);
}
.castlePosition9img{
    background-image: url(/public/img/build/9.webp);
}
.castlePosition10img{
    background-image: url(/public/img/build/10.webp);
}
.castlePosition11img{
    background-image: url(/public/img/build/11.webp);
}
.castlePosition12img{
    background-image: url(/public/img/build/12.webp);
}
.castlePosition13img{
    background-image: url(/public/img/build/13.webp);
}
.castlePosition14img{
    background-image: url(/public/img/build/14.webp);
}
.castlePosition15img{
    background-image: url(/public/img/build/15.webp);
}
.castlePosition16img{
    background-image: url(/public/img/build/16.webp);
}
.castlePosition17img{
    background-image: url(/public/img/build/17.webp);
}
.castlePosition18img{
    background-image: url(/public/img/build/18.webp);
}
.castlePosition19img{
    background-image: url(/public/img/build/19.webp);
}
.castlePosition20img{
    background-image: url(/public/img/build/20.webp);
}
.castlePosition21img{
    background-image: url(/public/img/build/21.webp);
}
.castlePosition22img{
    background-image: url(/public/img/build/22.webp);
}
.castlePosition23img{
    background-image: url(/public/img/build/23.webp);
}
.castlePosition24img{
    background-image: url(/public/img/build/24.webp);
}
.castlePosition25img{
    background-image: url(/public/img/build/25.webp);
}
.castlePosition26img{
    background-image: url(/public/img/build/26.webp);
}
.castlePositionDevImg{
    background-image: url(/public/img/build/dev.webp);
}
.castlePosition0{
    left: 24%;
    top: 34%;
}
.castlePosition1{
    left: 65%;
    top: 32%;
}
.castlePosition2{
    left: 15%;
    top: 38%;
}
.castlePosition3{
    left: 35%;
    top: 32%;
}
.castlePosition4{
    left: 53%;
    top: 31%;
}
.castlePosition5{
    left: 53%;
    top: 37%;
}
.castlePosition6{
    left: 75%;
    top: 36%;
}
.castlePosition7{
    left: 26%;
    top: 42%;
}
.castlePosition8{
    left: 35%;
    top: 38%;
}
.castlePosition9{
    left: 64%;
    top: 43%;
}
.castlePosition10{
    left: 74%;
    top: 56%;
}
.castlePosition11{
    left: 17%;
    top: 51%;
}
.castlePosition12{
    left: 54%;
    top: 49%;
}
.castlePosition13{
    left: 59%;
    top: 57%;
}
.castlePosition14{
    left: 33%;
    top: 57%;
}
.castlePosition15{
    left: 13%;
    top: 44%;
}
.castlePosition16{
    left: 77%;
    top: 49%;
}
.castlePosition17{
    left: 34%;
    top: 47%;
}
.castlePosition18{
    left: 53%;
    top: 43%;
}
.castlePosition19 {
    left: 33%;
    top: 65%;
}
.castlePosition20{
    left: 20%;
    top: 64%;
}
.castlePosition21{
    left: 23%;
    top: 71%;
}
.castlePosition22{
    left: 56%;
    top: 65%;
}
.castlePosition23{
    left: 65%;
    top: 71%;
}
.castlePosition24{
    left: 72%;
    top: 63%;
}
.castlePosition25{
    left: 18%;
    top: 57%;
}
.castlePosition26{
    left: 78%;
    top: 42%;
}
.castlePositionInner{
    padding-bottom: 100%;
    width: 100%;
}
.castlePositionUrl{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
}
.pisitionLevel {
    position: absolute;
    top: 3%;
    left: 3%;
    min-width: calc(var(--cfw) * 0.022);
    height: calc(var(--cfw) * 0.022);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 4, 0, 0.82);
    border: 1px solid rgba(200, 148, 28, 0.35);
    border-radius: 50%;
    color: #f0dfa0;
    font-weight: 700;
    font-size: calc(var(--cfw) * 0.014);
    font-family: Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.6);
    z-index: 11;
    pointer-events: none;
}
.positionName {
    user-select: none;
    position: absolute;
    z-index: 5;
    left: 50%;
    transform: translateX(-50%);
    top: 80%;
    margin-top: 3px;
    text-align: center;
    padding: 2px 7px 3px;
    background: rgba(8, 4, 0, 0.76);
    border: 1px solid rgba(200, 148, 28, 0.30);
    color: #f0dfa0;
    text-shadow: 0 1px 3px rgba(0,0,0,1);
    letter-spacing: 0.01em;
    white-space: nowrap;
    pointer-events: none;
}
/* Иконка времени внутри названия здания — масштабируется с текстом */
.positionName img {
    height: 1.4em;
    width: auto;
    vertical-align: middle;
    margin-right: 2px;
}
.castleButtom{
    position: absolute;
    display: inline-block;
    width: 100%;
    height: 11%;
    margin: 0px !important;
    background-size: 100% auto;
    background-position: 0% 50%;
    bottom: 0%;
}
.castleMenu {
    position: absolute;
    display: inline-block;
    width: 100%;
    height: 100%;
    margin: 0px !important;
    background-size: 100% auto;
    background-position: 0% 50%;
    top: 0%;
    z-index: 9999;
    background: #0000008a;
}
.castleMenuPanel {
    position: absolute;
    display: inline-block;
    width: 100%;
    height: 100%;
    margin: 0px !important;
    background-size: 100% auto;
    background-position: 0% 50%;
    top: 0%;
    z-index: 9999;
    background: url(/public/img/castle/panel.png?v=1) 0 50% / 100% no-repeat;
}
.castleMenuPanelColor{
    color: #000000;
    font-size: 16px;
    text-shadow: 1px 1px 2px #ffffff;
    font-weight: 700;
}
.castleMenuPanelUrls {
    position: absolute;
    display: inline-block;
    width: 90%;
    height: 50%;
    margin: 0px !important;
    background-size: 100% auto;
    background-position: 0% 50%;
    top: 23%;
    left: 7%;
    z-index: 9999;
    overflow: auto;
    scrollbar-color: #452113 black;
}
.castleMenuPanelExit {
    position: absolute;
    display: inline-block;
    width: 12%;
    height: 12%;
    margin: 0px !important;
    background-size: 100% auto;
    background-position: 0% 50%;
    top: 16%;
    right: 15%;
    z-index: 9999;
    background: url(/public/img/castle/exit.png?v=1) 0 50% / 100% no-repeat;
}
/* Панель ресурсов — под панелью сообщений */
.castleTopBar {
    position: relative;
    top: 0%;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, #080e18 0%, #0b1928 100%);
    border-bottom: 1px solid rgba(52, 152, 219, 0.15);
}


/* Быстрые кнопки на карте замка */
.castleQuickList {
    position: absolute;
    top: 1%;
    left: 1%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 12;
    pointer-events: auto;
}
.castleQuickListRight {
    left: auto;
    right: 1%;
}
.castleQuickItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 6px;
    min-width: clamp(48px, 12vw, 64px);
    box-sizing: border-box;
    background: none;
    border: none;
    box-shadow: none;
    text-decoration: none;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
    transition: filter 0.15s ease;
}
.castleQuickItem-icon {
    display: block;
    width: clamp(38px, 10vw, 54px);
    height: clamp(38px, 10vw, 54px);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    filter:
        drop-shadow(0 0 4px rgba(0, 0, 0, 0.9))
        drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}
.castleQuickItem-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-size: clamp(9px, 2.3vw, 12px);
    font-weight: 800;
    font-family: Segoe UI, Roboto, Arial, sans-serif;
    color: #fff;
    text-align: center;
    text-shadow:
        0 0 3px #000,
        0 1px 0 #000,
        -1px 0 0 #000,
        1px 0 0 #000,
        0 -1px 0 #000,
        0 2px 6px rgba(0, 0, 0, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.castleQuickItem-sub {
    font-size: clamp(8px, 1.9vw, 10px);
    font-weight: 600;
    color: rgba(220, 235, 255, 0.95);
    text-shadow:
        0 0 3px #000,
        0 1px 0 #000,
        0 2px 4px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0;
}
/* Иконка-лупа (SVG вместо background-image) */
.castleQuickItem-icon--zoom {
    background: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.castleQuickItem-icon--zoom svg {
    width: 65%;
    height: 65%;
    color: #fff;
    filter:
        drop-shadow(0 0 3px rgba(0,0,0,0.9))
        drop-shadow(0 2px 5px rgba(0,0,0,0.8));
}

/* ── Модальное окно масштаба карты ───────────────────────────────────────── */
.castleZoomModal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.castleZoomPanel {
    background: linear-gradient(180deg, #1a2a3a 0%, #0d1e30 100%);
    border: 1px solid rgba(52, 152, 219, 0.4);
    border-radius: 14px;
    padding: 24px 20px 20px;
    width: min(300px, 88vw);
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}
.castleZoomTitle {
    font-size: 17px;
    font-weight: 700;
    color: #c8e0f0;
    font-family: Segoe UI, Roboto, Arial, sans-serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.castleZoomValue {
    font-size: 42px;
    font-weight: 800;
    color: #ffe8a0;
    font-family: Segoe UI, Roboto, Arial, sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1;
}
.castleZoomSlider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(52, 152, 219, 0.25);
    outline: none;
    cursor: pointer;
}
.castleZoomSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe8a0 0%, #c88000 100%);
    border: 2px solid rgba(255, 215, 50, 0.85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    cursor: pointer;
}
.castleZoomSlider::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe8a0 0%, #c88000 100%);
    border: 2px solid rgba(255, 215, 50, 0.85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    cursor: pointer;
}
.castleZoomHints {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 11px;
    color: #5a7a90;
    font-family: Segoe UI, Roboto, Arial, sans-serif;
    margin-top: -8px;
}
.castleZoomActions {
    display: flex;
    gap: 10px;
    width: 100%;
}
.castleZoomBtn {
    flex: 1;
    padding: 11px 6px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: Segoe UI, Roboto, Arial, sans-serif;
    cursor: pointer;
    transition: filter 0.12s;
    border: none;
}
.castleZoomBtn--reset {
    background: rgba(255, 255, 255, 0.07);
    color: #90aabb;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.castleZoomBtn--save {
    background: linear-gradient(180deg, #2a7abf 0%, #1a5a9a 100%);
    color: #fff;
    border: 1px solid rgba(52, 152, 219, 0.5);
}
.castleZoomBtn:active {
    filter: brightness(0.85);
}

@media (hover: hover) {
    .castleQuickItem:hover {
        filter: brightness(1.15) drop-shadow(0 0 6px rgba(255,210,80,0.4));
    }
}
@media (pointer: coarse) {
    .castleQuickItem:active {
        filter: brightness(0.9);
    }
}
.castleQuickItem--edu {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

.castleTopPanel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6%;
    height: 100%;
    text-decoration: none;
    color: #aed6f1;
    background: transparent;
    position: relative;
    z-index: 1;
    border-radius: 6px;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.castleTopPanel:active {
    background: rgba(82, 201, 255, 0.12);
    box-shadow: inset 0 0 14px rgba(82, 201, 255, 0.18);
    transform: scale(0.96);
}
.castleTopPanel-icon {
    display: inline-block;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 100% auto;
    transition: filter 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.castleTopPanel.has-new .castleTopPanel-icon {
    filter: drop-shadow(0 0 8px rgba(82, 201, 255, 0.55)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}
.castleTopPanel-mail .castleTopPanel-icon {
    background-image: url(/public/img/topPanel/mail.png);
}
.castleTopPanel-mail.has-new .castleTopPanel-icon {
    background-image: url(/public/img/topPanel/in.png);
}
.castleTopPanel-report .castleTopPanel-icon {
    background-image: url(/public/img/topPanel/report.png);
}
/* Панель сообщений (почта, отчёты, атаки, подкрепления) — сверху, на всю ширину */
.castleBottomBar {
    position: relative;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    height: 58px;          /* фиксированная высота панели */
    padding: 0 4px;
    box-sizing: border-box;
    gap: 4px;
    background: linear-gradient(180deg, #0d1e30 0%, #0b1928 100%);
    overflow: hidden;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.castleBottomBar::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.castleBottomBar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    border-radius: 8px;
    position: relative;
    background: transparent;
    height: clamp(30px, 12vw, 46px);
    aspect-ratio: 1 / 1;   /* всегда квадратные */
    flex-shrink: 0;
    border: 1px solid rgba(120, 180, 255, 0.16);
}



.castleBottomBar-item:hover {
    border-color: rgba(120, 180, 255, 0.32);
}
.castleBottomBar-item:active {
    border-color: rgba(120, 180, 255, 0.45);
}
.castleBottomBar-item.has-new .castleBottomBar-icon {
    filter: drop-shadow(0 0 4px rgba(140, 200, 255, 0.6)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}
.castleBottomBar-icon {
    position: relative;
    z-index: 1;
    display: inline-block;
    width: 64%;
    height: 0;
    padding-bottom: 68%;
    margin: 0;
    background-position: 50% 50%;
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.22));
}
.castleBottomBar-icon-mail { background-image: url(/public/img/topPanel/mail.png); }
.castleBottomBar-item.has-new .castleBottomBar-icon-mail { background-image: url(/public/img/topPanel/in.png); }
.castleBottomBar-icon-report { background-image: url(/public/img/topPanel/mail.png); }
.castleBottomBar-item.has-new .castleBottomBar-icon-report { background-image: url(/public/img/topPanel/report.png); }
.castleBottomBar-icon-attackme { background-image: url(/public/img/army/attackMe.png); }
.castleBottomBar-icon-attackmy { background-image: url(/public/img/army/attackMy.png); }
.castleBottomBar-icon-reinforce { background-image: url(/public/img/army/yourReinforcements.png); }
.castleBottomBar-icon-foreign { background-image: url(/public/img/army/foreignReinforcements.png); }
.castleBottomBar-num {
    position: absolute;
    top: -10%;
    left: 65%;
    right: auto;
    padding: 4%;
    min-width: 1.2em;
    height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: max(10px, 2.5vw);
    font-weight: 800;
    color: #d4e6f1;
    background: linear-gradient(180deg, rgba(82, 201, 255, 0.18) 0%, rgba(25, 40, 55, 0.78) 45%, rgba(12, 22, 34, 0.92) 100%);
    border: 1px solid rgba(52, 152, 219, 0.40);
    border-radius: 99px;
    text-shadow: none;
    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 0 18px rgba(82, 201, 255, 0.10);
    z-index: 3;
}

@media (min-width: 600px) {
    .castleBottomBar-num {
        font-size: 14px;
        
    }
}
.castleResRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 40px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #080e18 0%, #0b1928 100%);
    overflow: hidden;
}
.castleResItem {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 2px 0 clamp(18px, 5vw, 30px); /* только горизонтальный padding меняется */
    background: transparent;
    border: none;
    border-radius: 0;
    flex-shrink: 1;
    box-shadow: none;
    box-sizing: border-box;
}
.castleResItem + .castleResItem {
    border-left: 1px solid rgba(52, 152, 219, 0.18);
}
.castleResItem + .castleResItem::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
    pointer-events: none;
}
.castleResItem-icon {
    position: absolute;
    left: 4%;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    width: clamp(14px, 4vw, 22px);
    height: clamp(14px, 4vw, 22px);
    margin: 0;
    background-position: 50% 50%;
    background-size: 100% auto;
    background-repeat: no-repeat;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.28));
}
.castleResItem-les { background: url(/public/img/res/les.png) 50% 50% / 100% auto no-repeat; }
.castleResItem-kam { background: url(/public/img/res/kam.png) 50% 50% / 100% auto no-repeat; }
.castleResItem-zel { background: url(/public/img/res/zel.png) 50% 50% / 100% auto no-repeat; }
.castleResItem-eda { background: url(/public/img/res/eda.png) 50% 50% / 100% auto no-repeat; }
.castleResItem-lud { background: url(/public/img/res/lud.png) 50% 50% / 100% auto no-repeat; }
.castleResItem-value {
    font-size: clamp(10px, 3.2vw, 16px);
    font-weight: 700;
    color: #f7d36a;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.65),
        0 2px 4px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    letter-spacing: 0.2px;
}

/* Нижняя панель (замок) — в одной гамме с castleBottomBar / castleResRow, не чистый чёрный */
.accountMainNav {
    position: relative;
    z-index: 5;
    width: 100%;
    margin: 0;
    padding: 0 0 env(safe-area-inset-bottom, 0);
    box-sizing: border-box;
    background: linear-gradient(180deg, #0d1e30 0%, #080e18 100%);
    border-top: 1px solid rgba(52, 152, 219, 0.25);
    box-shadow:
        inset 0 1px 0 rgba(52, 152, 219, 0.1),
        0 -4px 16px rgba(0, 0, 0, 0.5);
}
.accountMainNav-inner {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.accountMainNav-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    height: 60px;          /* фиксированная высота — не меняется */
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background: linear-gradient(180deg, #0d1e30 0%, #080e18 100%);
    overflow: hidden;
}
.accountMainNav-item {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0;
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 2px 9px;
    margin: 0;
    text-decoration: none;
    color: #a8c0d8;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(52, 152, 219, 0.12);
    -webkit-tap-highlight-color: transparent;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: background 0.12s ease, -webkit-box-shadow 0.12s ease;
    transition: background 0.12s ease, -webkit-box-shadow 0.12s ease;
    transition: background 0.12s ease, box-shadow 0.12s ease;
}
.accountMainNav-item:last-child {
    border-right: none;
}
/* тонкий «блик» в стык ячеек, как у castleResItem */
.accountMainNav-item + .accountMainNav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14%;
    bottom: 14%;
    width: 1px;
    background: -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(40%, rgba(255, 255, 255, 0.1)), to(transparent));
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1) 40%, transparent);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}
.accountMainNav-item--active111,
.accountMainNav-item111[aria-current="page"] {
    z-index: 1;
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(50, 85, 120, 0.45)), to(rgba(28, 50, 78, 0.7)));
    background: linear-gradient(180deg, rgba(50, 85, 120, 0.45) 0%, rgba(28, 50, 78, 0.7) 100%);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 200, 120, 0.1), 0 0 0 1px rgba(82, 201, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 200, 120, 0.1), 0 0 0 1px rgba(82, 201, 255, 0.12);
}
@media (hover: hover) {
    .accountMainNav-item:hover:not(.accountMainNav-item--active):not([aria-current="page"]) {
        background: rgba(52, 152, 219, 0.08);
    }
}
.accountMainNav-item:active {
    background: rgba(52, 152, 219, 0.14);
}
.accountMainNav-item-icon {
    display: block;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    width: 25px;
    height: 25px;
    margin: 0;
    background-position: 50% 50%;
    background-size: contain;
    background-repeat: no-repeat;
    -webkit-filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
    opacity: 0.95;
}
.accountMainNav-item--active,
.accountMainNav-item[aria-current="page"] {
    background: linear-gradient(180deg, rgba(52, 152, 219, 0.14) 0%, rgba(8, 14, 24, 0.0) 100%);
    box-shadow: inset 0 2px 0 rgba(246, 255, 177, 0.55);
}
.accountMainNav-item--active .accountMainNav-item-icon,
.accountMainNav-item[aria-current="page"] .accountMainNav-item-icon {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(246, 255, 177, 0.35)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.accountMainNav-item-icon-home { background-image: url(/public/img/topPanel/home.png); }
.accountMainNav-item-icon-map { background-image: url(/public/img/topPanel/map.png); }
.accountMainNav-item-icon-profile { background-image: url(/public/img/topPanel/profile.png); }
.accountMainNav-item-icon-alliance { background-image: url(/public/img/topPanel/alliance.png); }
.accountMainNav-item-icon-gold { background-image: url(/public/img/topPanel/gold.png); }
.accountMainNav-item-label {
    position: relative;
    z-index: 1;
    font-size: clamp(10px, 2.5vw, 13px);
    font-weight: 600;
    line-height: 1.15;
    color: #d4e6f1;
    text-align: center;
    max-width: 100%;
    padding: 0 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
    font-family: arial, verdana, tahoma, sans-serif;
}
.accountMainNav-item--active .accountMainNav-item-label,
.accountMainNav-item[aria-current="page"] .accountMainNav-item-label {
    /* как цифры ресурсов */
    color: #f7d36a;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.65),
        0 2px 4px rgba(0, 0, 0, 0.35);
}

.accountMainNav-item:focus-visible {
    outline: 2px solid rgba(120, 180, 255, 0.55);
    outline-offset: -2px;
    z-index: 2;
}

/* Кнопка-кладка на странице замка */
.accountMainNav-item--btn {
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    -webkit-appearance: none;
    appearance: none;
}

/* Иконка замка в нижнем таб-баре */
.accountMainNav-item-icon-castle { background-image: url(/public/img/icons/castle.png); }
/* Иконка почты в нижнем таб-баре */
.accountMainNav-item-icon-mail   { background-image: url(/public/img/topPanel/mail.png); }

/* Бейдж-число на элементе таб-бара */
.accountMainNav-item-num {
    position: absolute;
    top: 5px;
    right: 12%;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 8px;
    background: #e74c3c;
    color: #fff;
    font-size: 9px;
    font-family: Arial, sans-serif;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 6px rgba(231,76,60,0.6);
    pointer-events: none;
}

/* ============================================
   ПЕРЕКЛЮЧАЕМЫЕ ПАНЕЛИ ЗАМКА (TAB PANELS)
   ============================================ */

.castle-tabpane {
    display: none;
    height: calc(100vh - 161px);
    height: calc(100svh - 161px);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.castle-tabpane.ctab-active {
    display: block;
}
#ctab-menu.ctab-active {
    display: flex;
}

/* Внутри панели «Замок» — castleMap занимает всё */
#ctab-castle {
    position: relative; /* якорь для FAB-кнопки */
}
#ctab-castle .castleMap {
    height: 100%;
}

/* ══════════════════════════════════════════════════════════════════════════
   ПОДЛОЖКИ КНОПОК ЗАМКА
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Подложка «Построить здание» — арочная платформа снизу по центру ─────── */
.castle-build-podlozhka {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: clamp(18px, 4vw, 28px) clamp(30px, 8vw, 60px) clamp(12px, 2.5vw, 18px);

    /* Тёмный камень с лёгкой текстурой */
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(180, 130, 40, 0.12) 0%, transparent 70%),
        linear-gradient(180deg, rgba(55, 38, 12, 0.92) 0%, rgba(22, 14, 4, 0.98) 55%, rgba(8, 5, 1, 1) 100%);

    /* Арочная форма */
    border-radius: 50% 50% 0 0 / 45% 45% 0 0;

    /* Золотая окантовка */
    border-top: 2px solid #c8860a;
    border-left: 1px solid rgba(200, 134, 10, 0.4);
    border-right: 1px solid rgba(200, 134, 10, 0.4);

    /* Свечение и объём */
    box-shadow:
        0 -10px 35px rgba(200, 134, 10, 0.35),
        0 -3px 10px rgba(200, 134, 10, 0.18),
        inset 0 2px 14px rgba(255, 200, 70, 0.06);
}

/* Декоративный золотой штрих по верху арки */
.castle-build-podlozhka::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(40px, 10vw, 70px);
    height: 6px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(200, 134, 10, 0.5) 15%,
        #ffe090 40%,
        #ffd060 50%,
        #ffe090 60%,
        rgba(200, 134, 10, 0.5) 85%,
        transparent 100%
    );
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(200, 134, 10, 0.7);
}

/* Декоративные заклёпки по краям */
.castle-build-podlozhka::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(200, 134, 10, 0.2) 10%,
        rgba(200, 134, 10, 0.15) 90%,
        transparent 100%
    );
}

.castle-build-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;                /* занимает место между боковыми кнопками */
    text-decoration: none;
    background: none;
    border: none;
    padding: 0 4px;
    pointer-events: auto;
    transition: transform 0.15s, filter 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.castle-build-fab img {
    height: clamp(44px, 11vw, 56px);
    width: 100%;            /* растягивается по flex-ширине */
    max-width: 260px;       /* но не шире чем нужно */
    object-fit: contain;
    display: block;
}
.castle-build-fab:hover {
    filter: brightness(1.12);
    transform: scale(1.04);
}
.castle-build-fab:active {
    filter: brightness(0.88);
    transform: scale(0.97);
}

/* ══════════════════════════════════════════════════════════════════════════
   НИЖНЯЯ ПАНЕЛЬ ЗАМКА — две кнопки: Меню (слева) и Ресурсы (справа)
   ══════════════════════════════════════════════════════════════════════════ */
.castle-bottom-bar {
    position: absolute;
    bottom: clamp(10px, 2.5vw, 16px);
    left: 0;
    right: 10px; /* учитываем ширину скроллбара */
    z-index: 15;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(10px, 2.5vw, 18px);
    pointer-events: none; /* клики сквозь пустое пространство */
}

.castle-bottom-btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(52px, 13vw, 64px);
    height: clamp(52px, 13vw, 64px);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    background: none;
    border: none;
    padding: 0;
    transition: transform 0.15s, filter 0.15s;
}

/* Картинки заполняют кнопку целиком */
.castle-bottom-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

@media (hover: hover) {
    .castle-bottom-btn:hover {
        transform: scale(1.07);
        filter: brightness(1.15);
    }
}
.castle-bottom-btn:active {
    transform: scale(0.93);
    filter: brightness(0.85);
}

/* ---- Панель «Меню» ---- */
#ctab-menu {
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, #0b1928 0%, #091420 100%);
    position: relative;
    z-index: 20;
}

/* Шапка панели меню — sticky-строка с крестиком */
.ctab-menu-topbar {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: linear-gradient(180deg, #0b1928 0%, #0d1e30 100%);
    border-bottom: 1px solid rgba(52, 152, 219, 0.18);
    padding: 4px 6px;
    box-sizing: border-box;
}

/* Заголовок шапки */
.ctab-menu-topbar-title {
    flex: 1;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f6ffb1;
    text-shadow: 0 0 12px rgba(246, 255, 177, 0.45);
    padding-left: 10px;
}

/* Крестик закрытия меню */
.ctab-menu-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(52, 152, 219, 0.35);
    background: rgba(52, 73, 94, 0.45);
    color: #aed6f1;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.ctab-menu-close:hover {
    background: rgba(231, 76, 60, 0.6);
    border-color: rgba(231, 76, 60, 0.5);
    color: #fff;
}

.ctab-menu-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;

    scrollbar-width: thin;
    scrollbar-color: rgba(52,152,219,0.4) rgba(0,0,0,0.2);
    padding: 10px 6px 20px;
}
.ctab-menu-body::-webkit-scrollbar { width: 4px; }
.ctab-menu-body::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
.ctab-menu-body::-webkit-scrollbar-thumb { background: rgba(52,152,219,0.35); border-radius: 4px; }

/* Заголовок секции */
.ctab-section-title {
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(246, 255, 177, 0.5);
    padding: 14px 6px 7px;
    border-bottom: 1px solid rgba(52,152,219,0.15);
    margin-bottom: 4px;
}
.ctab-menu-body .ctab-section-title:first-child {
    padding-top: 4px;
}

/* Сетка иконок — 3 столбца */
.ctab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(52,152,219,0.05);
    margin-bottom: 2px;
}

/* Карточка раздела */
.ctab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    padding: 12px 4px 10px;
    text-decoration: none;
    color: #aed6f1;
    font-family: Arial, sans-serif;
    font-size: 11px;
    text-align: center;
    background: rgba(255,255,255,0.012);
    border: 1px solid rgba(52,152,219,0.08);
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ctab-item:hover,
.ctab-item:active {
    background: rgba(52,152,219,0.13);
    border-color: rgba(52,152,219,0.3);
    color: #fff;
}

.ctab-item__img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.7));
    transition: transform 0.15s, filter 0.15s;
}

.ctab-item:hover .ctab-item__img,
.ctab-item:active .ctab-item__img {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 7px rgba(82,201,255,0.55));
}

.ctab-item__name {
    line-height: 1.2;
    letter-spacing: 0.02em;
    word-break: break-word;
}

/* Обёртка для иконки с бейджем */
.ctab-item__bwrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Бейдж-кружок поверх иконки */
.ctab-item__badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 8px;
    background: #e74c3c;
    color: #fff;
    font-size: 9px;
    font-family: Arial, sans-serif;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 6px rgba(231,76,60,0.7);
    pointer-events: none;
}

/* Кнопка выхода в меню-панели */
.ctab-exit {
    margin: 18px 0 8px;
    text-align: center;
}

.ctab-exit a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,180,170,0.7);
    text-decoration: none;
    letter-spacing: 0.5px;
    border: 1px solid rgba(231,76,60,0.2);
    background: rgba(231,76,60,0.06);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ctab-exit a:hover {
    background: rgba(231,76,60,0.18);
    border-color: rgba(231,76,60,0.45);
    color: #ff9e93;
}


.castleCreateButton{
    background: url(/public/img/castle/create.png) 0 59% / 100% no-repeat;
    position: absolute;
    display: inline-block;
    width: 40%;
    height: 100%;
    margin: 0px !important;
    background-size: 100% auto;
    background-position: 0% 50%;
    left: 30%;
}
.castleScrollButton{
    background: url(/public/img/castle/menu.png) 0 59% / 100% no-repeat;
    position: absolute;
    display: inline-block;
    width: 130px;
    height: 70px;
    margin: 0px !important;
    background-size: 100% auto;
    background-position: 0% 50%;
    left: 2%;
    bottom: 7%;
    z-index: 10;
}
.castleResButton{
    background: url(/public/img/castle/res.png) 0 59% / 100% no-repeat;
    position: absolute;
    display: inline-block;
    width: 23%;
    height: 93%;
    margin: 0px !important;
    background-size: 100% auto;
    background-position: 0% 50%;
    right: 2%;
    bottom: 7%;
}
.castlePosition{
    position: absolute;
    display: inline-block;
    width: 10%;
    height: 5%;
    margin: 0px !important;
    background-size: 100% auto;
    background-position: 0% 50%;
}
.back2{
    background: #40545f;
        padding: 10px 0px 15px 0px;
        background: linear-gradient(to right, #40545f, #517489, #40545f);
}
.infoMain{
    background: linear-gradient(to right, #10192021, #16161680, #10192021);
    color: #FED36B;
    padding: 10px;
}
.gameName{
    background: linear-gradient(#f5d952, #ef830f);
    text-shadow: none;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 0 #000) drop-shadow(0 3px 1px rgba(0, 0, 0, .25));
}
.gameNameSize {
    
    font-size: 10vw;
} 

@media (min-width: 600px){
    .gameNameSize {
        font-size: 60px;
    }   
}
.gameNameDiscription{
    color: #f3cfb4;
}
.gameNameDiscriptionSize{
    font-size: 3vw;
}
@media (min-width: 600px) {
    .gameNameDiscriptionSize{
        font-size: 18px;
    }
}


.gameNameText{
    text-shadow: 0 0 2px #fff, 
             /* выпуклость надписи */
             -1px -1px 0 hsl(80, 70%, 35%),
             -2px -2px 1px hsl(80, 70%, 35%),
             /* переход к подложке */  
             -2px -2px 2px hsl(80, 10%, 15%), 
             /* подложка */                            
             -2px -2px 0 7px hsl(60, 80%, 95%),
             -3px -3px 0 7px hsl(60, 10%, 65%),
             -4px -4px 0 7px hsl(60, 10%, 65%),
             -5px -5px 0 7px hsl(60, 10%, 65%),
             -6px -6px 0 7px hsl(60, 10%, 65%),
             /* тень подложки */                            
             -7px -7px 4px 8px hsl(60, 10%, 40%),
             -8px -8px 6px 9px hsl(60, 10%, 55%);
}

.bigName{
    color: #FFFADD;
    font-size: 18px;
}
.rel {
    position: relative;
}
.absolute{
    position: absolute;
}
.inh{
    position: inherit
}
.onlineOval{
    background: #856A4D;
    border-radius: 15px;
    position: inherit;
    padding: 5px 15px;
    top: -6px;
    border: solid 2px #8F7962;
    box-shadow: 0px 0px 0px 1px #0a0a0a, -1px -1px 0px 0px #675a5a21, inset 0px -2px 0px 0px #100e0cb5, inset 0px 1px 0px 0px #2f2f2f, 0px 0px 0px 3px #674f4894, inset 0px 2px 12px 1px #6f3505;
}
a {
	
	color: #fff;
}
.aTDN{
    text-decoration: none;
}
form{
    margin: 0;
}
hr{
    margin: 0;
    padding: 0;
    height: 0;
    border: none;
    /*border-top: 1px solid #000000bd;
    border-bottom: 1px solid #ffffff26;*/
    border-top: 1px #000000 solid;
    border-bottom: 1px #425763 solid;
}
.hr2 {
    margin: 0;
    padding: 0;
    height: 0;
    border: none;
    border-top: 1px #000000 solid;
    border-bottom: 1px #7691a1 solid;
}
.repaColor1{
   filter: hue-rotate(70deg);
}
.repaColor2{
    filter: hue-rotate(264deg);
}
.repaColor3{
    filter: hue-rotate(170deg);
    
}
.repaColor4{
    filter: hue-rotate(220deg);
}
.repaColor5{
    filter: hue-rotate(330deg);
}

.knockAnimate {
  
  
  -webkit-animation: knock 5s infinite;
  animation: knock 5s infinite;
}
@keyframes knock {
  0%   { filter: saturate(2) hue-rotate(0deg); }
  50%  { filter: saturate(1) hue-rotate(200deg); }
  100% { filter: saturate(2) hue-rotate(0deg); }
}
@-webkit-keyframes knock {
  0%   { -webkit-filter: saturate(2) hue-rotate(0deg); }
  50%  { -webkit-filter: saturate(1) hue-rotate(200deg); }
  100% { -webkit-filter: saturate(2) hue-rotate(0deg); }
}


.row {
    display: flex;
    flex-wrap: wrap;
}
.w100 {
    width: 100%;
}
.w95 {
    width: 95%;
}
.w90 {
    width: 90%;
}
.w60 {
    width: 60%;
}
.w50 {
    width: 50%;
}
.w33 {
    width: 33%;
}
.w20 {
    width: 100%;
}
.col2 {
    flex: 0 0 50%;
    max-width: 50%;
}
.col4 {
    flex: 0 0 25%;
    max-width: 25%;
}
.col7 {
    flex: 0 0 14.28%;
    max-width: 14.28%;
}

.col3-320 {
	    flex: 0 0 33%;
	    max-width: 33%;
	}
@media (min-width: 320px){
    .col5 {
        flex: 0 0 20%;
        max-width: 20%;
    }	
}
@media (min-width: 400px){
	.col3 {
	    flex: 0 0 33%;
	    max-width: 33%;
	}
}
.fontSizeCastle {
    font-size: calc(var(--cfw) * 0.014);
    font-family: Segoe UI, Roboto, Arial, sans-serif;
}

.fz12{
	font-size: 12px;
}
.fz16{
    font-size: 16px;
}
.fz18{
    font-size: 18px;
}
.strokeText{
    text-shadow: 
    -0   -1px 1px #000000,
     0   -1px 1px #000000,
    -0    1px 1px #000000,
     0    1px 1px #000000,
    -1px -0   1px #000000,
     1px -0   1px #000000,
    -1px  0   1px #000000,
     1px  0   1px #000000,
    -1px -1px 1px #000000,
     1px -1px 1px #000000,
    -1px  1px 1px #000000,
     1px  1px 1px #000000,
    -1px -1px 1px #000000,
     1px -1px 1px #000000,
    -1px  1px 1px #000000,
     1px  1px 1px #000000;
}

.bg {
    background: #34474f;
    border-left: solid 1px #000000;
    border-right: solid 1px #000000;
    border-radius: 2px;
    box-shadow: inset 0px 0px 2px 1px #ffffff1f, 0px 0px 12px 0px #00000059;
}
.p-5-10{
    padding: 5px 10px;
}
.p20-0-0-0{
	padding: 20px 0px 0px 0px;
}
.p3-0{
	padding: 3px 0;
}
.p4-0{
    padding: 4px 0;
}
.p3{
	padding: 3px;
}
.p7-0{
    padding: 7px 0;
}
.p1{
    padding: 1px;
}
.p2{
    padding: 2px;
}
.p10{
    padding: 10px;
}
.p10-0{
    padding: 10px 0px;
}
.p0-10{
    padding: 0px 10px;
}
.p10-20{
    padding: 10px 20px;
}
.p20{
    padding: 20px;
}
.p0-5{
    padding: 0px 5px;
}
.p5persent{
    padding: 5%;
}
.p2persent{
    padding: 2%;
}
.mTop10{
    margin-top: 10px;
}
.mTop3 {
    margin-top: 3px;
}
.mLeft10{
    margin-left: 10px;
}
.content{
    background: #1f2d3b;
    border-radius: 5px;
}
.center{
    text-align: center;
}
.right{
    text-align: right;
}
.fr {
    float: right;
}
.fl {
    float: left;
}
.inputForm {
    color: #ffffff;
    border: solid 1px #AAB4BD;
    background: #3C474D;
    padding: 9px 10px;
    border-radius: 3px;
    box-shadow: inset 0px 1px 0px 0px #2E393F, inset 0px -1px 0px 0px #4b4b4b, 0px -1px 0px 0px #505D66, 0px 1px 0px 0px #3F4E55, 0px 0px 4px 2px #22303942;
}
.inputForm2 {
    color: #290B06;
    border: none;
    background: #CAC9C2;
    border-radius: 3px;
    box-shadow: inset 0px -1px 1px 0px #ffffffbd, inset 0px 3px 1px 0px #0000008c;
    padding: 10px 5px;
    width: 97%;
}
/* Эффект при наведении и фокусе */
.inputForm2:focus,
.inputForm2:hover {
    border-color: rgba(255, 255, 255, 0.5); /* Более заметная рамка при взаимодействии */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* Тень становится глубже */
}

/* Дизайн placeholder-текста */
.inputForm2::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.5); /* Светлый серый цвет placeholder */
}

.inputForm2:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.inputForm2::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.button{
	background: #83a6a9;
    border: solid 0px;
    box-shadow: inset 0px 0px 1px 2px #ffffff2e, inset 0px -1px 0px 1px #0000006b, 0px 0px 0px 1px #00000069, 0px 4px 2px 0px #0000002e, inset 0px 1px 0px 0px #ffffff59;
    border-radius: 1px;
    color: #fff;
    padding: 9px 20px;
    color: #ffffff;
    border-radius: 3px;
    text-shadow: 1px 1px 2px #000000;
}
.button2 {
    border-radius: 10px;
    padding: 9px 20px;
    background: #CAC9C2;
    border: 1px solid #0e0e0e;
    box-shadow: inset 0px 30px 16px 0px #ffffff42, inset 0 3px 2px 0px #ffffffeb, inset 0 -2px 2px 0px #0000007d;
    text-shadow: 1px 1px 2px #AB958D;
    color: #28100E;
}
.errorColor{
	color: red;
}
.red{
	color: #ff7b7b;
}
.green{
    color: #16bd16;
}
.topPanel{
	background: #112933;
    padding: 5px;
/*    margin: 4px 0px;*/
    border-top: solid 1px #8A8FA0;
    border-bottom: solid 1px #8A8FA0;
    color: #ffffff;
    box-shadow: 0px 1px 3px 0px #000000, 0px 0px 0px 0px #000000, inset 0px 13px 20px 0px #ffffff24, inset 0px -13px 20px 0px #00000085;
}
.vs{
	vertical-align: sub;
}
.vm {
    vertical-align: middle;
}
.minW100{
	min-width: 100px;
}
.minW150{
	min-width: 150px;
}
.minW180{
    min-width: 180px;
}
.minW200{
    min-width: 200px;
}
.tdlt{
	text-decoration: line-through;
}
.mapBack{
    background: url(/public/img/back/grass.png) repeat;
}
.pml0{
    padding: 0px;
    margin: 0;
    line-height: 0px;
}
.buttonBig{
    background: #945232;
    border-radius: 5px;
    padding: 5px;
    margin: 5px 0px;
    border-top: solid 1px #fff;
    border-bottom: solid 1px #000;
    box-shadow: inset 0px 0px 5px 1px #C96C40;
}
.tableInfoBack1{
    background: #455d67;
}
.tableInfoBack2{
    background: #2f4047;
}
.tableInfoBackGold{
    background: #D1B89B;
}
.nav_button_on {
    background-color: #7c9aa7;
    border-color: #ffffff;
    box-shadow: 1px;
    box-shadow: inset 1px 1px 0px 0px #fdfdfda1, inset -1px -1px 0px 0px #00000040;
}
.nav_button_off {
    background-color: #7c9aa7;
    box-shadow: inset -1px -1px 0px 0px #fdfdfdba, inset 1px 1px 0px 0px #0000006b;
}
.nav {
    padding: 3px;
    font-size: 17px;
    border: solid 1px #000;
    min-width: 26px;
    border-radius: 0px;
    text-shadow: 1px 1px 2px #000000;
}

.nav2 {
    padding: 8px;
    font-size: 20px;
    border: solid 1px #000;
    min-width: 26px;
    border-radius: 3px;
    text-shadow: 1px 1px 2px #000000;
}
.nav_button_on2 {
    background-color: #96B0C0;
    box-shadow: 1px;
    box-shadow: inset 1px 1px 0px 0px #fdfdfda1, inset -1px -1px 0px 0px #00000040;
}
.nav_button_off2 {
    background-color: #96b0c09e;
    box-shadow: inset -1px -1px 0px 0px #fdfdfdba, inset 1px 1px 0px 0px #0000006b;
}


.displayIB{
    display:inline-block
}
.checkbox {
    position: absolute;
    z-index: -1;
    opacity: 0;
    margin: 1px 0 0 0px;
}
.checkbox + label {
    position: relative;
    padding: 0px 0px 0px 40px;
    cursor: pointer;
}
.checkbox + label:before {
    content: '';
    position: absolute;
    top: 1px;
    left: 0;
    width: 33px;
    height: 15px;
    border-radius: 13px;
    background: #676d7f;
    box-shadow: inset 0 2px 3px rgba(0,0,0,.2);
    transition: .2s;
}
.checkbox + label:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 13px;
    border-radius: 10px;
    background: #f5f5f5;
    box-shadow: 0 2px 5px rgba(0,0,0,.3);
    transition: .2s;
}
.checkbox:checked + label:before {
    background: #b4bac9;
}
.checkbox:checked + label:after {
    left: 20px;
}
.checkbox:focus + label:before {
}
.bflex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.header .headerCenterBlock {
    width: calc(100% - 28%);
    text-align: center;
}
.header .headerLeftBlock, .header .headerRightBlock {
    width: 14%;
    display: inline-block;
}
.slot{
    border: solid 1px #101010;
    box-shadow: inset 0px 0px 0px 1px #BEA68B;
    border-radius: 4px;
    background: #112933;
    padding: 2px;
}
.profileSlotLeft{
    width: 25%;
}
.profileSlotCenter{
    width: calc(100% - 50%);
}
.profileSlotRight{
    width: 25%;
}
.item {
    display: block;
    height: 70px;
    position: relative;
    overflow: hidden;
    border: 1px solid #000;
    text-decoration: none;
    border-radius: 5px;
    background: #E3473B;
    box-shadow: inset 0px -2px 0px 1px #00000047, inset 0px 2px 1px 1px #ffffff52;
}
.itemImg {
    height: 30px;
    padding: 12px 0 2px 0;
    background: url(https://bratki.mobi/images/klyak.png) no-repeat 50% 4px;
}
.menuItem {
    height: auto;
    padding: 5px 0;
    text-align: left;
    background: #6C757E;
    display: block;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-size: 14px;
    border: 1px solid #000;
    text-decoration: none;
    border-radius: 3px;
}
.menuItem img {
    vertical-align: middle;
    margin: 0 3px;
}
.right{
    text-align: right;
}
.left{
    text-align: left;
}
.imgParamGeneral{
    max-height: 200px;
    max-width: 200px;
}
.yellow{
    color:yellow;
}
.earth{
    width: 100%;
    background-image: url(/public/img/map/earth.png);
    height: 100%;
    background-size: cover;
}
.leftimg {
    float:left; /* Выравнивание по левому краю */
    margin: 7px 7px 7px 0; /* Отступы вокруг картинки */
   }
.footBack{
    background: #A8A092;
}
.backHp{
    background: #a99f8d;
}
.dungeonMap {
    background-image: url(/public/img/dungeon/map.jpg);
    padding-bottom: 133%;
    position: relative;
    background-repeat: repeat-y;
    background-position: 50% 0;
    background-size: 100% auto;
    display: block !important;
}
.poisonCaveMap{
    background-image: url(/public/img/dungeon/maps/1.jpg);
    padding-bottom: 146%;
    position: relative;
    background-repeat: repeat-y;
    background-position: 50% 0;
    background-size: 100% auto;
    display: block !important;
}
.fieryAbyssMap{
    background-image: url(/public/img/dungeon/maps/2.jpg);
    padding-bottom: 146%;
    position: relative;
    background-repeat: repeat-y;
    background-position: 50% 0;
    background-size: 100% auto;
    display: block !important;
}
.steleMap{
    background-image: url(/public/img/dungeon/maps/3.jpg);
    padding-bottom: 138%;
    position: relative;
    background-repeat: repeat-y;
    background-position: 50% 0;
    background-size: 100% auto;
    display: block !important;
}
.dungeonPosition{
    position: absolute;
    display: inline-block;
    margin: 0px !important;
    background-size: 100% auto;
    background-position: 0% 50%;
    cursor: pointer;
}

.dungeon1Position:hover{
    filter: drop-shadow(-6px 0px 6px #27a450);
}
.dungeon2Position:hover{
    filter: drop-shadow(7px -5px 6px #ae5927);
}
.dungeon3Position:hover{
    filter: drop-shadow(-7px 3px 6px #558ed1);
}
.dungeonExitPosition:hover{
    filter: drop-shadow(-7px 3px 6px #6fa0c7);
}

.dungeonImg1 {
    background-image: url(/public/img/dungeon/dungeon1.png);
}

.dungeonImg2 {
    background-image: url(/public/img/dungeon/dungeon2.png);
}

.dungeonImg3 {
    background-image: url(/public/img/dungeon/dungeon3.png);
}
.dungeonImg1Click {
    background-image: url(/public/img/dungeon/clickDungeon1.png);
}
.dungeonImg2Click {
    background-image: url(/public/img/dungeon/clickDungeon2.png);
}
.dungeonImg3Click {
    background-image: url(/public/img/dungeon/clickDungeon3.png);
}
.dungeonImgExitClick {
    background-image: url(/public/img/dungeon/exit.png);
}
.dungeonLevelPanel {
    background-image: url(/public/img/dungeon/panelLevel.png);
}
.dungeonMissionsPanel {
    background-image: url(/public/img/main/aute.png);
}
.dungeon1Position {
    width: 45%;
    height: 45%;
    right: 0%;
    top: 49%;
}
.dungeon2Position {
    width: 61%;
    height: 48%;
    left: 0%;
    bottom: 0%;
}
.dungeon3Position {
    width: 26%;
    height: 30%;
    right: 0%;
    top: 16%;
}
.dungeonExitPosition {
    width: 29%;
    height: 14%;
    left: 25%;
    top: 24%;
}
.dungeonLevelPanelPosition {
    width: 40%;
    height: 15%;
    left: 2%;
    top: 2%;
}
.dungeonMissionsPosition {
    width: 34%;
    height: 5%;
    right: 2%;
    top: 5%;
}
.dungeonMissionsPositionText {
    width: 100%;
    height: 55%;
    top: 19%;
}
.dungeonImgFilter{
    filter: grayscale(1);
}


.fontSizeDungeon1Name {
    font-size: 5vw;
}
.fontSizeDungeon2Name {
    font-size: 6vw;
}
.fontSizeDungeon3Name {
    font-size: 6vw;
}
.fontSizeDungeonExitName {
    font-size: 5vw;
}
.fontSizeDungeonLevelPanel {
    font-size: 6.5vw;
}
.fontSizeDungeonOnlinePanel {
    font-size: 4.5vw;
}
.fontSizeMissionsPanel {
    font-size: 4.5vw;
}
@media (min-width: 600px) {
    .fontSizeDungeon1Name {
        font-size: 30px;
    }
    .fontSizeDungeon2Name {
        font-size: 36px;
    }
    .fontSizeDungeon3Name {
        font-size: 36px;
    }
    .fontSizeDungeonExitName {
        font-size: 30px;
    }
    .fontSizeDungeonLevelPanel {
        font-size: 40px;
    }
    .fontSizeDungeonOnlinePanel {
        font-size: 24px;
    }
    .fontSizeMissionsPanel {
        font-size: 24px;
    }
}
.dungeonPosition1Name{
    color: #78bf7c;
    position: absolute;
    z-index: 5;
    left: 29%;
    width: 68%;
    bottom: 30%;
    text-align: center;
    background: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.1)), color-stop(30%, rgba(0, 0, 0, 0.5)), color-stop(70%, rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.1)));
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.1) 100%);
}
.dungeonPosition2Name{
    color: #dbca72;
    position: absolute;
    z-index: 5;
    left: 8%;
    width: 68%;
    bottom: 13%;
    text-align: center;
    background: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.1)), color-stop(30%, rgba(0, 0, 0, 0.5)), color-stop(70%, rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.1)));
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.1) 100%);
}
.dungeonPosition3Name{
    color: #ae93dd;
    position: absolute;
    z-index: 5;
    left: 29%;
    width: 68%;
    bottom: 30%;
    text-align: center;
    background: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.1)), color-stop(30%, rgba(0, 0, 0, 0.5)), color-stop(70%, rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.1)));
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.1) 100%);
}


.dungeonPosition1NameOff{
    color: #78bf7c;
    position: absolute;
    z-index: 5;
    left: 29%;
    width: 68%;
    bottom: 30%;
    text-align: center;
    background: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.1)), color-stop(30%, rgba(0, 0, 0, 0.5)), color-stop(70%, rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.1)));
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.1) 100%);
}
.dungeonPosition2NameOff{
    color: #dbca72;
    position: absolute;
    z-index: 5;
    left: 8%;
    width: 68%;
    bottom: 13%;
    text-align: center;
    background: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.1)), color-stop(30%, rgba(0, 0, 0, 0.5)), color-stop(70%, rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.1)));
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.1) 100%);
}
.dungeonPosition3NameOff{
    color: #ae93dd;
    position: absolute;
    z-index: 5;
    left: 0%;
    width: 100%;
    bottom: 17%;
    text-align: center;
    background: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.1)), color-stop(30%, rgba(0, 0, 0, 0.5)), color-stop(70%, rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.1)));
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.1) 100%);
}


.dungeonPositionExitName{
    color: #3b80bf;
    position: absolute;
    z-index: 5;
    left: 14%;
    width: 68%;
    bottom: 13%;
    text-align: center;
    background: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.1)), color-stop(30%, rgba(0, 0, 0, 0.5)), color-stop(70%, rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.1)));
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.1) 100%);
}
.dungeonLevelPanelLevel{
    color: #ffffff;
    position: absolute;
    z-index: 5;
    left: 2%;
    width: 40%;
    bottom: 33%;
    text-align: center;
}
.dungeonPanelOnline{
    color: #ffffff;
    position: absolute;
    z-index: 5;
    left: 47%;
    width: 41%;
    bottom: 49%;
    text-align: center;
}
.dungeonStageImgPosition1 {
    background-image: url(/public/img/dungeon/stage/1.png);
}
.dungeonStageImgUnit1 {
    background-image: url(/public/img/dungeon/units/1.png);
}
.dungeonStageImgUnit2 {
    background-image: url(/public/img/dungeon/units/2.png);
}
.dungeonStageImgUnit3 {
    background-image: url(/public/img/dungeon/units/3.png);
}
.dungeonStageImgUnit4 {
    background-image: url(/public/img/dungeon/units/4.png);
}
.dungeonStageImgUnit5 {
    background-image: url(/public/img/dungeon/units/5.png);
}
.dungeonStageImgUnit6 {
    background-image: url(/public/img/dungeon/units/6.png);
}
.fontSizeDungeonLevelStage {
    font-size: 2.5vw;
}
@media (min-width: 600px) {
    .fontSizeDungeonLevelStage {
        font-size: 14px;
    }
}

.dungeonLevelStage {
    color: #ffffff;
    position: absolute;
    z-index: 5;
    left: 0%;
    width: 100%;
    bottom: 0%;
    text-align: center;
    
}
.dungeonLevelStageText {
    padding: 0 5%;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background: #0d161b;
    border-radius: 13px;
    border: solid 1px #b3b3b3;
}
.dungeonStagepoisonCavePosition1 {
    width: 12%;
    height: 10%;
    left: 70%;
    top: 6%;
}
.dungeonStagepoisonCavePosition2 {
    width: 12%;
    height: 10%;
    left: 87%;
    top: 9%;
}
.dungeonStagepoisonCavePosition3 {
    width: 12%;
    height: 10%;
    left: 50%;
    top: 9%;
}
.dungeonStagepoisonCavePosition4 {
    width: 12%;
    height: 10%;
    left: 62%;
    top: 19%;
}
.dungeonStagepoisonCavePosition5 {
    width: 12%;
    height: 10%;
    left: 32%;
    top: 18%;
}
.dungeonStagepoisonCavePosition6 {
    width: 12%;
    height: 10%;
    left: 52%;
    top: 29%;
}
.dungeonStagepoisonCavePosition7 {
    
    width: 12%;
    height: 10%;
    left: 40%;
    top: 39%;
}
.dungeonStagepoisonCavePosition8 {
    width: 12%;
    height: 10%;
    left: 61%;
    top: 40%;
}
.dungeonStagepoisonCavePosition9 {
    width: 12%;
    height: 10%;
    left: 85%;
    top: 43%;
}
.dungeonStagepoisonCavePosition10 {
    width: 12%;
    height: 10%;
    left: 48%;
    top: 50%;
}
.dungeonStagepoisonCavePosition11 {
    width: 12%;
    height: 10%;
    left: 30%;
    top: 69%;
}
.dungeonStagepoisonCavePosition12 {
    width: 12%;
    height: 10%;
    left: 20%;
    top: 79%;
}
.dungeonStagepoisonCavePosition13 {
    width: 12%;
    height: 10%;
    left: 40%;
    top: 81%; 
}
.dungeonStagepoisonCavePosition14 {
    
    width: 12%;
    height: 10%;
    left: 61%;
    top: 83%;
}
.dungeonStagepoisonCavePosition15 {
    width: 12%;
    height: 10%;
    left: 52%;
    top: 70%;
}
.dungeonStagepoisonCavePosition16 {
    width: 11%;
    height: 7%;
    left: 64%;
    top: 66%;
}
.dungeonStagepoisonCavePosition17 {
    width: 11%;
    height: 7%;
    left: 69%;
    top: 54%;
}
.dungeonStagepoisonCavePosition18 {
    width: 11%;
    height: 7%;
    left: 88%;
    top: 55%;
}
.dungeonStagepoisonCavePosition19 {
    width: 11%;
    height: 7%;
    left: 85%;
    top: 68%;
}
.dungeonStagepoisonCavePosition20 {
    width: 17%;
    height: 12%;
    left: 14%;
    top: 51%;
}
.dungeonStage2ImgPosition1 {
    background-image: url(/public/img/dungeon/stage/2.png);
}
.dungeonStage3ImgPosition1 {
    background-image: url(/public/img/dungeon/stage/3.png);
}
.dungeonStagefieryAbyssPosition1 {
    width: 8%;
    height: 7%;
    left: 23%;
    top: 17%;
}
.dungeonStagefieryAbyssPosition2 {
    width: 8%;
    height: 7%;
    left: 33%;
    top: 21%;
}
.dungeonStagefieryAbyssPosition3 {
    width: 8%;
    height: 7%;
    left: 36%;
    top: 29%;
}
.dungeonStagefieryAbyssPosition4 {
    width: 8%;
    height: 7%;
    left: 34%;
    top: 37%;
}
.dungeonStagefieryAbyssPosition5 {
    width: 8%;
    height: 7%;
    left: 33%;
    top: 45%;
}
.dungeonStagefieryAbyssPosition6 {
    width: 8%;
    height: 7%;
    left: 6%;
    top: 54%;
}
.dungeonStagefieryAbyssPosition7 {
    width: 8%;
    height: 7%;
    left: 27%;
    top: 62%;
}
.dungeonStagefieryAbyssPosition8 {
    width: 8%;
    height: 7%;
    left: 61%;
    top: 62%;
}
.dungeonStagefieryAbyssPosition9 {
    width: 8%;
    height: 7%;
    left: 49%;
    top: 64%;
}
.dungeonStagefieryAbyssPosition10 {
    width: 8%;
    height: 7%;
    left: 36%;
    top: 69%;
}
.dungeonStagefieryAbyssPosition11 {
    width: 8%;
    height: 7%;
    left: 39%;
    top: 77%;
}
.dungeonStagefieryAbyssPosition12 {
    width: 8%;
    height: 7%;
    left: 47%;
    top: 84%;
}
.dungeonStagefieryAbyssPosition13 {
    width: 8%;
    height: 7%;
    left: 59%;
    top: 86%;
}
.dungeonStagefieryAbyssPosition14 {
    width: 8%;
    height: 7%;
    left: 72%;
    top: 86%;
}
.dungeonStagefieryAbyssPosition15 {
    width: 8%;
    height: 7%;
    left: 84%;
    top: 84%;
}
.dungeonStagefieryAbyssPosition16 {
    width: 10%;
    height: 7%;
    left: 51%;
    top: 21%;
}
.dungeonStagefieryAbyssPosition17 {
    width: 10%;
    height: 7%;
    left: 62%;
    top: 12%;
}
.dungeonStagefieryAbyssPosition18 {
    width: 10%;
    height: 7%;
    left: 1%;
    top: 39%;
}
.dungeonStagefieryAbyssPosition19 {
    width: 10%;
    height: 7%;
    left: 15%;
    top: 38%;
}
.dungeonStagefieryAbyssPosition20 {
    width: 10%;
    height: 7%;
    left: 77%;
    top: 25%;
}
.dungeonStagefieryAbyssPosition21 {
    width: 10%;
    height: 7%;
    left: 86%;
    top: 17%;
}
.dungeonStagefieryAbyssPosition22 {
    width: 10%;
    height: 7%;
    left: 51%;
    top: 44%;
}
.dungeonStagefieryAbyssPosition23 {
    width: 10%;
    height: 7%;
    left: 83%;
    top: 44%;
}
.dungeonStagefieryAbyssPosition24 {
    width: 17%;
    height: 12%;
    left: 9%;
    top: 80%;
}
.dungeonStagefieryAbyssPosition25 {
    width: 17%;
    height: 12%;
    left: 61%;
    top: 73%;
}
.dungeonStagestelePosition1 {
    width: 12%;
    height: 12%;
    left: 3%;
    top: 19%;
}
.dungeonStagestelePosition2 {
    width: 12%;
    height: 12%;
    left: 16%;
    top: 24%;
}
.dungeonStagestelePosition3 {
    width: 12%;
    height: 12%;
    left: 30%;
    top: 29%;
}
.dungeonStagestelePosition4 {
    width: 12%;
    height: 12%;
    left: 44%;
    top: 34%;
}
.dungeonStagestelePosition5 {
    width: 12%;
    height: 12%;
    left: 58%;
    top: 38%;
}
.dungeonStagestelePosition6 {
    width: 12%;
    height: 12%;
    left: 72%;
    top: 42%;
}
.dungeonStagestelePosition7 {
    width: 12%;
    height: 12%;
    left: 86%;
    top: 46%;
}
.dungeonStagestelePosition8 {
    width: 12%;
    height: 12%;
    left: 86%;
    top: 68%;
}
.dungeonStagestelePosition9 {
    width: 12%;
    height: 12%;
    left: 74%;
    top: 75%;
}
.dungeonStagestelePosition10 {
    width: 12%;
    height: 12%;
    left: 59%;
    top: 81%;
}
.dungeonStagestelePosition11 {
    width: 12%;
    height: 12%;
    left: 44%;
    top: 86%;
}
.dungeonStagestelePosition12 {
    width: 12%;
    height: 12%;
    left: 27%;
    top: 86%;
}
.dungeonStagestelePosition13 {
    width: 12%;
    height: 12%;
    left: 9%;
    top: 86%;
}
.dungeonStagestelePosition14 {
    width: 12%;
    height: 12%;
    left: 3%;
    top: 74%;
}
.dungeonStagestelePosition15 {
    width: 12%;
    height: 12%;
    left: 19%;
    top: 74%;
}
.dungeonStagestelePosition16 {
    width: 12%;
    height: 12%;
    left: 37%;
    top: 74%;
}
.dungeonStagestelePosition17 {
    width: 12%;
    height: 12%;
    left: 56%;
    top: 68%;
}
.dungeonStagestelePosition18 {
    width: 12%;
    height: 12%;
    left: 42%;
    top: 62%;
}
.dungeonStagestelePosition19 {
    width: 12%;
    height: 12%;
    left: 26%;
    top: 60%;
}
.dungeonStagestelePosition20 {
    width: 12%;
    height: 12%;
    left: 8%;
    top: 60%;
}
.dungeonStagestelePosition21 {
    width: 13%;
    height: 9%;
    left: 58%;
    top: 56%;
}
.dungeonStagestelePosition22 {
    width: 13%;
    height: 9%;
    left: 38%;
    top: 50%;
}
.dungeonStagestelePosition23 {
    width: 13%;
    height: 9%;
    left: 15%;
    top: 45%;
}
.dungeonStagestelePosition24 {
    width: 13%;
    height: 9%;
    left: 5%;
    top: 8%;
}
.dungeonStagestelePosition25 {
    width: 13%;
    height: 9%;
    left: 25%;
    top: 14%;
}
.dungeonStagestelePosition26 {
    width: 13%;
    height: 9%;
    left: 46%;
    top: 10%;
}
.dungeonStagestelePosition27 {
    width: 13%;
    height: 9%;
    left: 42%;
    top: 22%;
}
.dungeonStagestelePosition28 {
    width: 13%;
    height: 9%;
    left: 64%;
    top: 19%;
}
.dungeonStagestelePosition29 {
    width: 13%;
    height: 9%;
    left: 58%;
    top: 29%;
}
.dungeonStagestelePosition30 {
    width: 13%;
    height: 9%;
    left: 79%;
    top: 33%;
}

.dungeonStage2ImgPosition1 {
    background-image: url(/public/img/dungeon/stage/2.png);
}


.dungeonLock {
    width: 40%;
    height: 15%;
    left: 2%;
    top: 2%;
    background-image: url(/public/img/icons/lock.png);
    position: absolute;
    display: inline-block;
    margin: 0px !important;
    background-size: 100% auto;
    background-position: 0% 50%;
    cursor: pointer;
}
.brightness50{
    filter: brightness(50%);  
}
.poisonCaveBattle {
    background-image: url(/public/img/dungeon/battle/1.jpg);
    padding-bottom: 94%;
    position: relative;
    background-repeat: repeat-y;
    background-position: 50% 0;
    background-size: 100% auto;
    display: block !important;
}
.poisonCaveGeneralPosition {
    width: 30%;
    height: 31%;
    left: 14%;
    top: 45%;
}
.poisonCaveEnemyPosition {
    width: 30%;
    height: 31%;
    right: 14%;
    top: 45%;
}
.poisonCaveEnemyText {
    color: #78bf7c;
    position: absolute;
    z-index: 5;
    left: 42%;
    width: 16%;
    top: 0%;
    text-align: center;
}
.fieryAbyssBattle {
    background-image: url(/public/img/dungeon/battle/2.jpg);
    padding-bottom: 94%;
    position: relative;
    background-repeat: repeat-y;
    background-position: 50% 0;
    background-size: 100% auto;
    display: block !important;
}
.fieryAbyssGeneralPosition {
    width: 30%;
    height: 31%;
    left: 14%;
    top: 52%;
}
.fieryAbyssEnemyPosition {
    width: 30%;
    height: 31%;
    right: 14%;
    top: 52%;
}
.fieryAbyssEnemyText {
    color: #dbca72;
    position: absolute;
    z-index: 5;
    left: 42%;
    width: 16%;
    top: 0%;
    text-align: center;
}
.steleBattle {
    background-image: url(/public/img/dungeon/battle/3.jpg);
    padding-bottom: 94%;
    position: relative;
    background-repeat: repeat-y;
    background-position: 50% 0;
    background-size: 100% auto;
    display: block !important;
}
.steleGeneralPosition {
    width: 30%;
    height: 31%;
    left: 14%;
    top: 52%;
}
.steleEnemyPosition {
    width: 30%;
    height: 31%;
    right: 14%;
    top: 52%;
}
.steleEnemyText {
    color: #ae93dd;
    position: absolute;
    z-index: 5;
    left: 42%;
    width: 16%;
    top: 0%;
    text-align: center;
}
.scaleXm1{
  transform: scaleX(-1);
}
.scaleX1{
  transform: scaleX(1);
}
.battlePanelHpGeneralPosition{
    

    width: 40%;
    height: 5%;
    left: 1%;
    top: 1%;
}
.battlePanelHpGeneralPositionBack{
    border: solid 1px #a0c59a;
    background: #173f2d;
}
.battlePanelHpGeneralPositionBackGreen{
    background: -webkit-gradient(linear, left top, right top, from(#337736), color-stop(50%, #4EA02C), to(#76db1f));
    background: linear-gradient(90deg, #337736 0%, #4EA02C 50%, #76DB1F 100%);
}
.battlePanelEnergyGeneralPosition{
    width: 40%;
    height: 1%;
    left: 1%;
    top: 6%;
}
.battlePanelEnergyGeneralPositionBack{
    border: solid 1px #ffffff;
    background: #173f2d;
}
.battlePanelEnergyGeneralPositionBackGreen{
    background: #e5bd44;
}
.battlePanelHpEnemyPosition{
    width: 40%;
    height: 5%;
    right: 1%;
    top: 1%;
}
.battlePanelHpEnemyPositionBack{
    border: solid 1px #d57875;
    background: #431d1a;
}
.battlePanelHpEnemyPositionBackRed{
    background: -webkit-gradient(linear, left top, right top, from(#430604), color-stop(50%, #8e2813), to(#D94C22));
    background: linear-gradient(90deg, #430604 0%, #8E2813 50%, #D94C22 100%);
}
.battlePanelGeneralPositionParamHp{
    width: 5%;
    height: 5%;
    left: 1%;
    top: 8%;
}
.battlePanelEnemyPositionParamHp{
    width: 5%;
    height: 5%;
    right: 1%;
    top: 8%;
}
.battlePanelGeneralPositionParamHpText{
    width: 35%;
    height: 5%;
    left: 7%;
    top: 9%;
}
.battlePanelEnemyPositionParamHpText{
    width: 35%;
    height: 5%;
    right: 7%;
    top: 9%;
}
.battlePanelGeneralPositionParamAttackText{
    width: 35%;
    height: 5%;
    left: 7%;
    top: 10%;
}
.battlePanelEnemyPositionParamAttackText{
    width: 35%;
    height: 5%;
    right: 7%;
    top: 10%;
}
.battlePanelGeneralPositionParamDefText{
    width: 35%;
    height: 5%;
    left: 7%;
    top: 16%;
}
.battlePanelGeneralPositionParamBloodText{
    width: 35%;
    height: 5%;
    left: 7%;
    top: 22%;
}
.battlePanelEnemyPositionParamDefText{
    width: 35%;
    height: 5%;
    right: 7%;
    top: 16%;
}
.battlePanelImgParamHp{
    background-image: url(/public/img/param/hp.png);
}
.battlePanelGeneralPositionParamAttack{
    width: 5%;
    height: 5%;
    left: 1%;
    top: 9%;
}
.battlePanelEnemyPositionParamAttack{
    width: 5%;
    height: 5%;
    right: 1%;
    top: 9%;
}
.battlePanelImgParamAttack{
    background-image: url(/public/img/param/attack.png);
}
.battlePanelGeneralPositionParamDef{
    width: 5%;
    height: 5%;
    left: 1%;
    top: 15%;
}
.battlePanelGeneralPositionParamBlood{
    width: 5%;
    height: 5%;
    left: 1%;
    top: 21%;
}
.battlePanelEnemyPositionParamDef{
    width: 5%;
    height: 5%;
    right: 1%;
    top: 15%;
}
.battlePanelImgParamDef{
    background-image: url(/public/img/param/def.png);
}
.battlePanelImgParamBlood{
    background-image: url(/public/img/icons/blood.png);
}
.fontSizeDungeonParam {
    font-size: 2.5vw;
}
.fontSizeDungeonMHp {
    font-size: 5vw;
}
@media (min-width: 600px) {
    .fontSizeDungeonParam {
        font-size: 14px;
    }
    .fontSizeDungeonMHp {
        font-size: 30px;
    }
}



.dungeonBattleUnitName{
    width: 100%;
    height: 10%;
    left: 0%;
    top: -15%;
    background: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.1)), color-stop(30%, rgba(0, 0, 0, 0.5)), color-stop(70%, rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.1)));
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.1) 100%);

}

.battlePanelGeneralHpText {
    width: 100%;
    height: 20%;
    left: 2%;
    top: 25%;
}
.battlePanelGeneralHpAttackText {
    width: 100%;
    height: 20%;
    right: 2%;
    top: 25%;
}
.battlePanelEnemyHpText {
    width: 100%;
    height: 20%;
    left: 2%;
    top: 25%;
}
.battlePanelEnemyHpAttackText {
    width: 100%;
    height: 20%;
    right: 2%;
    top: 25%;
}
.boxName{
    color: #f6ffb1;
    padding: 5px 0px;
    top: 5px;
    position: absolute;
    background: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.1)), color-stop(30%, rgba(0, 0, 0, 0.5)), color-stop(70%, rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.1)));
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.1) 100%);
}
.boxBuy{
    padding: 5px 0px;
    bottom: 0px;
    position: absolute;
}
.cursorPointer{
    cursor: pointer;
}
.p25P{
    padding: 25%;
}
.loginBack {
    scrollbar-width: none;
    -ms-overflow-style: none;
    background-color: #1a1614;
    background-image: url(/public/img/login/back.jpg?v=1);
    background-repeat: no-repeat;
    background-position: center 42%;
    background-size: cover;
    position: relative;
    box-sizing: border-box;
    min-height: 100dvh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: max(4px, env(safe-area-inset-top, 0)) max(10px, env(safe-area-inset-right, 0)) max(8px, env(safe-area-inset-bottom, 0)) max(10px, env(safe-area-inset-left, 0));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
@media (min-aspect-ratio: 4/3) {
    .loginBack {
        background-position: center center;
    }
}
/* Центр экрана — свиток; полоса онлайна отдельно внизу */
.loginScrollStage {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
    padding: 0.5rem max(10px, env(safe-area-inset-left, 0)) 0.5rem max(10px, env(safe-area-inset-right, 0));
}
/*
  Свиток: как на макете — сам PNG задаёт высоту (нижний ролик не режется).
  Текст/кнопки в слое поверх; отступы в % от ШИРИНЫ свитка (так совпадает с масштабом арта).
*/
.loginScroll {
    position: relative;
    width: min(72vw, 620px);
    max-width: 100%;
    margin: 0 auto;
    flex-shrink: 0;
}
.loginScroll-art {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: crisp-edges;
}
.loginScroll-inner {
    position: absolute;
    inset: 0;
    padding: 42% 19% 17.5%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(12px, 3vmin, 24px);
}
.loginScroll-intro {
    flex-shrink: 0;
    min-width: 0;
}
.loginScroll-desc {
    margin: 0;
    padding: 0;
    text-align: center;
    color: #1e1810;
    /* vmin — не раздувается на узких/низких экранах; верх ~14px на телефонах */
    font-size: clamp(11px, 2.55vmin, 14px);
    line-height: 1.42;
    font-family: Georgia, "Times New Roman", Times, serif;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
    overflow-wrap: break-word;
    hyphens: auto;
}
.loginScroll-bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(0.25rem, 0.9vmin, 0.6rem);
    flex-shrink: 0;
}
.loginLanding-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.25rem, 1.2vmin, 0.65rem);
}
.loginLanding-btnRow {
    width: 100%;
    text-align: center;
}
.loginLanding-btnImg {
    width: min(78%, 400px);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
/* Тяжёлые filter/drop-shadow только у устройств с настоящим hover — на телефонах меньше подвисаний */
@media (hover: hover) and (pointer: fine) {
    .loginLanding-btnImg {
        transition: filter 0.2s ease, transform 0.2s ease;
    }
    .loginLanding-btnRow a:hover .loginLanding-btnImg,
    .loginLanding-btnRow a:focus-visible .loginLanding-btnImg,
    .loginLanding-btnRow > img.loginLanding-btnImg:hover,
    .loginLanding-btnRow > img.loginLanding-btnImg:focus-visible {
        filter: brightness(1.1) drop-shadow(0 0 12px rgba(255, 215, 120, 0.5));
        transform: scale(1.02);
    }
    .loginLanding-btnRow a:active .loginLanding-btnImg,
    .loginLanding-btnRow > img.loginLanding-btnImg:active {
        filter: brightness(1.16) drop-shadow(0 0 14px rgba(255, 230, 150, 0.55));
        transform: scale(0.99);
    }
}
@media (hover: none), (pointer: coarse) {
    .loginLanding-btnRow a:active .loginLanding-btnImg,
    .loginLanding-btnRow > img.loginLanding-btnImg:active {
        filter: none;
        opacity: 0.92;
        transform: scale(0.99);
    }
}
@media (prefers-reduced-motion: reduce) {
    .loginLanding-btnImg {
        transition: none;
    }
    .loginLanding-btnRow a:hover .loginLanding-btnImg,
    .loginLanding-btnRow a:focus-visible .loginLanding-btnImg,
    .loginLanding-btnRow > img.loginLanding-btnImg:hover,
    .loginLanding-btnRow > img.loginLanding-btnImg:focus-visible,
    .loginLanding-btnRow a:active .loginLanding-btnImg,
    .loginLanding-btnRow > img.loginLanding-btnImg:active {
        transform: none;
    }
    .loginLanding-social a .socialMediaImgSize {
        transition: none;
    }
    .loginLanding-social a:hover .socialMediaImgSize,
    .loginLanding-social a:focus-visible .socialMediaImgSize,
    .loginLanding-social a:active .socialMediaImgSize {
        transform: none;
    }
}
.loginLanding-btnRow a {
    display: inline-block;
    line-height: 0;
}
.loginLanding-social {
    line-height: 0;
}
.loginLanding-social a {
    display: inline-block;
    line-height: 0;
}
.loginLanding-social a .socialMediaImgSize {
    transition: opacity 0.18s ease, transform 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    vertical-align: middle;
}
@media (hover: hover) and (pointer: fine) {
    .loginLanding-social a .socialMediaImgSize {
        transition: filter 0.2s ease, transform 0.2s ease;
    }
    .loginLanding-social a:hover .socialMediaImgSize,
    .loginLanding-social a:focus-visible .socialMediaImgSize {
        filter: brightness(1.1) drop-shadow(0 0 12px rgba(255, 215, 120, 0.5));
        transform: scale(1.08);
    }
    .loginLanding-social a:active .socialMediaImgSize {
        filter: brightness(1.16) drop-shadow(0 0 14px rgba(255, 230, 150, 0.55));
        transform: scale(0.96);
    }
}
@media (hover: none), (pointer: coarse) {
    .loginLanding-social a:active .socialMediaImgSize {
        filter: none;
        opacity: 0.9;
        transform: scale(0.96);
    }
}
.loginLanding-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    flex-shrink: 0;
}
.loginLanding-footer--online {
    justify-content: center;
    padding: 4px 8px calc(10px + env(safe-area-inset-bottom, 0));
}
.loginLanding-footer--online .onlinePodlozhka {
    max-width: min(96vw, 620px);
}
@media (max-width: 499px) {
    .loginScroll {
        width: min(88vw, 620px);
    }
    .loginScroll-desc {
        font-size: clamp(10px, 2.5vmin, 13px);
        line-height: 1.38;
    }
}
@media (max-height: 560px) {
    .loginScroll-inner {
        gap: 0.35rem;
    }
    .loginScroll-desc {
        font-size: clamp(10px, 2.4vmin, 13px);
        line-height: 1.35;
    }
}
@media (max-width: 349px) {
    .loginScroll-desc {
        font-size: clamp(9px, 2.35vmin, 11px);
        line-height: 1.32;
    }
}
@media (max-width: 299px) {
    .loginScroll-desc {
        font-size: clamp(8px, 2.2vmin, 10px);
        line-height: 1.28;
    }
}
/* Логин: под артом до низа окна — плотная подложка (без «дыры» и без второго фона body) */
body:has(.loginBack) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
body:has(.loginBack) > .bg {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background-color: #202325;
}
body:has(.loginBack) > .bg > .fontSegoe {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
body:has(.loginBack) > .bg > .fontSegoe > .loginBack {
    flex: 1 1 auto;
    width: 100%;
}
.startPosition {
    left: 21%;
    top: 61%;
    position: absolute;
    display: inline-block;
    width: 59%;
    height: 8%;
    margin: 0px !important;
    background-size: 100% auto;
    background-position: 0% 50%;
    background-image: url(/public/img/main/aute.png);
    cursor: pointer;
}
.regNextPosition {
    left: 21%;
    top: 83%;
    position: absolute;
    display: inline-block;
    width: 59%;
    height: 8%;
    margin: 0px !important;
    background-size: 100% auto;
    background-position: 0% 50%;
    background-image: url(/public/img/main/auteYellow.png);
    cursor: pointer;
}
.buttonName{
    filter: drop-shadow(0 2px 0 #000) drop-shadow(0 3px 1px rgba(0, 0, 0, .25));
}
.buttonSize{
    font-size: 7.5vw;
}
@media (min-width: 600px) {
    .buttonSize{
        font-size: 45px;
    }
}
.socialMediaPosition {
    left: 0%;
    top: 82%;
    position: absolute;
    display: inline-block;
    width: 100%;
    height: 8%;
    margin: 0px !important;
    background-size: 100% auto;
    background-position: 0% 50%;
}
.socialMediaImgSize {
    
    width: 8vw;
} 

@media (min-width: 600px){
    .socialMediaImgSize {
        width: 48px;
    }   
}
.onlineBack {
    background: linear-gradient(to right, #10192000, #0a030333, #10192000);
    color: #fff1ce;
    padding: 10px;
}
/* Главная: подложка «онлайн» — компактная полоса, текст внутри рамки */
.onlinePodlozhka {
    position: relative;
    display: block;
    width: fit-content;
    max-width: min(94vw, 400px);
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
}
@media (min-width: 900px) {
    .onlinePodlozhka {
        max-width: min(100%, 360px);
    }
}
.onlinePodlozhka-frame {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: clamp(30px, 8vmin, 48px);
    margin: 0 auto;
    vertical-align: top;
    pointer-events: none;
    user-select: none;
    object-fit: contain;
    object-position: center;
}
.onlinePodlozhka-content {
    position: absolute;
    left: 7%;
    right: 7%;
    top: 10%;
    bottom: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.15em 0.3em;
    box-sizing: border-box;
    text-align: center;
    color: #fff1ce;
    font-size: clamp(10px, min(2.8vw, 2.6vmin), 16px);
    line-height: 1.25;
    word-break: break-word;
}
.onlinePodlozhka-text,
.onlinePodlozhka-count {
    min-width: 0;
}
.onlinePodlozhka-icon {
    flex-shrink: 0;
    height: 1.15em !important;
    width: auto;
    vertical-align: middle;
}
@media (max-width: 360px) {
    .onlinePodlozhka {
        max-width: min(98vw, 100%);
    }
    .onlinePodlozhka-frame {
        max-height: clamp(28px, 9vw, 40px);
    }
    .onlinePodlozhka-content {
        left: 5%;
        right: 5%;
        font-size: clamp(9px, 2.6vw, 13px);
    }
}
.imgStandartSize{
    height: 4.2vw;
}
@media (min-width: 600px){
    .imgStandartSize {
        height: 24px;
    }   
}
.padding20{
    padding: 20px;
}
.regBack{
    background-image: url(/public/img/login/regBack.png);
    padding-bottom: 150%;
    position: relative;
    background-repeat: repeat-y;
    background-position: 50% 0;
    background-size: 100% auto;
    display: block !important;
}
.topPanelRegPosition {
    left: 0%;
    top: 0%;
    position: absolute;
    display: inline-block;
    width: 100%;
    height: 12%;
    margin: 0px !important;
    background-size: 100% auto;
    background-position: 0% 50%;
}
.topPanelRegBackPosition {
    left: 2%;
    top: 0%;
    position: absolute;
    display: inline-block;
    width: 9%;
    height: 5%;
    margin: 0px !important;
    background-size: 100% auto;
    background-position: 0% 50%;
    background-image: url(/public/img/login/back.png);
    z-index: 9999;
}
.regNameColor{
    color: #DFCA9D;;
}
.regNameSize{
    font-size: 4vw;
}

@media (min-width: 600px){
    .regNameSize {
        font-size: 24px;
    }   
}
.textShadow{
    text-shadow: 1px 1px 0px black;
}
.textInfoPosition {
    left: 0%;
    top: 57%;
    position: absolute;
    display: inline-block;
    width: 100%;
    height: 26%;
    margin: 0px !important;
    z-index: 1;
}
.regUnitPosition {
    position: absolute;
    display: inline-block;
    width: 45%;
    height: 30%;
    margin: 0px !important;
    left: 29%;
    top: 25%;
    background-size: 100% auto;
    background-position: 0% 50%;
}
.regUnitLeftPosition {
    position: absolute;
    display: inline-block;
    width: 18%;
    height: 12%;
    margin: 0px !important;
    left: 10%;
    top: 33%;
    background-size: 100% auto;
    background-position: 0% 50%;
    background-image: url(/public/img/login/left.png);
}
.regUnitRightPosition {
    position: absolute;
    display: inline-block;
    width: 18%;
    height: 12%;
    margin: 0px !important;
    right: 10%;
    top: 33%;
    background-size: 100% auto;
    background-position: 0% 50%;
    background-image: url(/public/img/login/right.png);
}
.startPositionText {
    left: 21%;
    top: 61%;
    position: absolute;
    display: inline-block;
    width: 59%;
    height: 8%;
    margin: 0px !important;

}
.lh44{
    line-height: 10.5vw;
}
.lh18{
    line-height: 6vw;
}


@media (min-width: 600px){
    .lh44 {
        line-height: unset;
    } 
    .lh18{
        line-height: unset;
    }  
}
.topPanelOrange {
    padding: 9px;
    background-image: url(/public/img/main/topPanel.png);
    background-repeat: repeat-x;
    color: #FFF6AE;
    font-size: 24px;
    background-position: 100% 0px;
    height: 30px;
    /* text-shadow: 1px 1px 1px #000000; */
    text-shadow: 1px 1px 2px #000000, -1px 1px 1px #000000, -1px -1px 0.2px #000000;
}

.topOrangeName{
    background: linear-gradient(#FFE9BA, #DDC098);
    text-shadow: none;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 0 #000) drop-shadow(0 3px 1px rgba(0, 0, 0, .25));
}


.fz14_25{
    font-size: 2.5vw;
}
@media (min-width: 600px){
    .fz14_25 {
        font-size: 14px;
    }   
}
.fz14_25 {
    
    font-size: 2.5vw;
} 

@media (min-width: 600px){
    .fz14_25 {
        font-size: 14px;
    }   
}
.gradientTopBack{
    background: linear-gradient(to top, #28373e, #0c0f12, #28373e);
}
.cardBack{
    padding: 10px 0px;
    text-align: center;
    background-size: 100% 100%;
    background-image: url(/public/img/main/card.png);
}
.p5{
    padding: 5px;
}
.w70{
    width: 70%
}
.bottom10px{
   bottom: 10px; 
}

.imgStandartSize20 {
    height: 3.5vw;
}
@media (min-width: 600px) {
    .imgStandartSize20 {
        height: 20px;
    }
}
.cardNameColor{
    color: #E6E9E6;
}

.font-size24_4{
    font-size: 4vw;
}

@media (min-width: 600px){
    .font-size24_4 {
        font-size: 24px;
    }   
}
.blueMiniTextColor{
    color: #88E4F7;
}
.goldMibiTextColor{
    color: #f6ee71;
}
.cardButton{
    cursor: pointer;
    background: #257585;
    padding: 10px;
    border-radius: 20px;
    color: #DDF3C3;
    box-shadow: inset 1px 1px 0px 0px #fdfdfda1, inset -1px -1px 0px 0px #00000040, inset 0px -6px 3px 0px #0000004d, inset 0px 4px 2px 0px #ffffff30, inset 0px -25px 7px 0px #00000030;
    background: linear-gradient(to right, #257585ad, #257585, #257585a8);
}
.cardButtonText{
    background: linear-gradient(#bbf2ff, #DDF3C3);
    text-shadow: none;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 0 #000) drop-shadow(0 3px 1px rgba(0, 0, 0, .25));
}
.windowBlueBack {
    border: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    box-shadow: none;
    min-width: auto;
    min-width: 15vw;
    max-width: 420px;
    background: #1E4253;
    /* box-shadow: 0px 0px 4px 1px #000000; */
    border-radius: 5px;
    border: 1px solid #000000;
}
.textShadow{
    text-shadow: 1px 1px 0px #000000, -1px -1px 0px #000000;
}
.imgSize66px_11vh {
    height: 11vw
}
@media (min-width: 600px) {
    .imgSize66px_11vh {
        height: 66px;
    }
}
.font-size4vw24px{
    font-size: 4vw;
}

@media (min-width: 600px){
    .font-size4vw24px {
        font-size: 24px;
    }   
}

.imgSize100px_17vw {
    height: 17vw
}
@media (min-width: 600px) {
    .imgSize100px_17vw {
        height: 100px;
    }
}
.imgSize55px_9vh {
    height: 9vw
}
@media (min-width: 600px) {
    .imgSize55px_9vh {
        height: 55px;
    }
}

.map{
    display: block;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    width: 100%;
    height: 100%;
    TEXT-ALIGN: center;
}
.mapHome{
    top: 2%;
    position: absolute;
    right: 0%;
    width: 15%;
    display: flex;
    overflow-y: auto;
    transform: translate(0%, 0%);
}
.mapCastleMenu{
    position: absolute;
    left: 4%;
    width: 20%;
    display: flex;
    overflow-y: auto;
    z-index: 999;
    transform: translate(0%, 0%);
    TEXT-ALIGN: center;
    bottom: 1%;
}
.mapGlass{
    position: absolute;
    left: 50%;
    width: 50%;
    display: flex;
    overflow-y: auto;
    z-index: 999;
    transform: translate(-50%, -50%);
    TEXT-ALIGN: center;
    bottom: 0%;
    cursor: pointer;
}
.mapSearchBack{
    padding: 5px;background: linear-gradient(to right, #10192000, #2b2b2b80, #10192000);
}
.mapPlassMinus{
    bottom: 4%;
    position: absolute;
    right: 0%;
    width: 25%;
    display: flex;
    overflow-y: auto;
    transform: translate(0%, 0%);
}
.panelLine {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 4px 0;
    text-decoration: none;
}
.panelInfo{
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    margin-top: 4px;
    line-height: 1.5;
}
.panelImg {
    width: 52px;
    height: 52px;
    padding: 0 6px;
}
.pageLineColor1{
    background-color: #2f4047;
}
.pageLineColor2{
    background-color: #455d67;
}
.panelImgSize {
    width: 48px;
    height: 48px;
}
.panelInfoDescription{
    font-size: small;
    color: #afb4ba;
}
.panelInfoRight{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    padding-right: 6px;
    text-align: center;
}
.iconSizeMiniS {
    top: 3px;
    width: 16px;
    height: 16px;
}
.fz10{
    font-size: 10px;
}
.panelImgSizeBig {
    width: 70px;
    height: 70px;
}
.panelImgBig {
    width: 70px;
    height: 70px;
    padding: 0 6px;
}
.violetColor {
    color: #c38ed7;
}
.redColor {
    color: #f78b9b;
}
.yellowColor {
    color: #ffc107;
}

.fontSizeSmall{
    font-size: small;
}
.verticalCenter{
    height: 25px;
    
}
.verticalCenter46 {
    height: 46px;
}
.line {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 4px 0;
    text-decoration: none;
}
.lineView {
    width: 52px;
    height: 52px;
    padding: 0 6px;
}
.lineView90 {
    width: 90px;
    height: 90px;
    padding: 0 6px;
}
.lineSize48 {
    width: 48px;
    height: 48px;
}
.lineSize88 {
    width: 88px;
    height: 88px;
}
.lineInfo {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    margin-top: 4px;
    line-height: 1.5;
}
.lineInfo2 {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    line-height: 1.5;
}
.lineRightCenter {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    padding-right: 6px;
    text-align: center;
}
.colorBrown{
    color: #2C110D
}
.colorBlack{
    color: #000000
}

.shadowBrown{
    text-shadow: 1px 1px 2px #AB958D;
}
.bold {
  font-weight: 700;
}
.backBead{
    background: #BEAD99;
    
}
.post{
    background: #CAC9C2;
    border: 1px solid #000000;
    border-radius: 3px;
    box-shadow: 0 0px 9px #00000040;
    padding: 7px;
}
.postReplica {
    background: #b8bf7e;
    border: 1px solid #000000;
    border-radius: 3px;
    box-shadow: 0 0px 9px #00000040;
    padding: 7px;
}
.postInfo{
    background: #797974;
    border-radius: 4px;
    padding: 10px;
}
.postMessage{
    padding: 6px 8px;
}
.navigationBack{
    background: #2a3a41;
}
.font-size30_5{
    font-size: 5vw;
}

@media (min-width: 600px){
    .font-size30_5 {
        font-size: 30px;
    }   
}
.fz16_27 {

    font-size: 2.7vw;
} 

@media (min-width: 600px){
    .fz16_27 {
        font-size: 16px;
    }   
}
.font-size40_6{
    font-size: 6vw;
}

@media (min-width: 600px){
    .font-size40_6 {
        font-size: 40px;
    }   
}
.border-radius28{
    border-radius: 28px;
}

/* ══════════════════════════════════════
   Обучение — модальный оверлей (RPG-стиль)
   ══════════════════════════════════════ */
.edu-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.62);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.edu-dialog {
    width: 100%;
    max-width: 500px;
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
}
.edu-npc {
    display: block;
    width: clamp(70px, 22vw, 100px);
    height: auto;
    margin: 0 auto 12px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.55));
    pointer-events: none;
    user-select: none;
}
.edu-panel {
    width: 100%;
    background: linear-gradient(180deg, #faf0d4 0%, #edd9a6 100%);
    border-top: 3px solid #b88c38;
    border-left: 3px solid #b88c38;
    border-right: 3px solid #b88c38;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6), inset 0 2px 0 rgba(255, 240, 180, 0.55), inset 0 -2px 0 rgba(160, 100, 20, 0.15);
    padding: 10px 10px 10px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}
.edu-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    padding: 0;
    background: rgba(120, 65, 10, 0.18);
    border: 1.5px solid rgba(140, 80, 18, 0.55);
    border-radius: 50%;
    color: #5a2c00;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    z-index: 2;
}
.edu-close:hover,
.edu-close:active {
    background: rgba(140, 80, 18, 0.32);
    border-color: rgba(140, 80, 18, 0.75);
}
.edu-name {
    margin: 0 0 10px;
    font-size: clamp(14px, 4vw, 18px);
    font-weight: 700;
    font-family: Georgia, 'Times New Roman', serif;
    color: #5a2c00;
    text-align: center;
    letter-spacing: 0.5px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(160, 100, 28, 0.30);
    text-shadow: none;
}
.edu-text {
    font-size: clamp(13px, 3.6vw, 16px);
    line-height: 1.58;
    color: #3a1e00;
    font-family: Georgia, 'Times New Roman', serif;
    text-align: center;
    margin-bottom: 18px;
    text-shadow: none;
}
.edu-text a {
    color: #8a4e00;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-shadow: none;
}
.edu-text a:hover {
    color: #c07010;
}
.edu-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.edu-btn {
    display: block;
    width: 100%;
    padding: 13px 20px;
    text-align: center;
    text-decoration: none;
    font-size: clamp(13px, 3.5vw, 15px);
    font-weight: 700;
    font-family: Segoe UI, Roboto, Arial, sans-serif;
    border-radius: 7px;
    box-sizing: border-box;
    letter-spacing: 0.3px;
    transition: filter 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.edu-btn--main {
    background: linear-gradient(180deg, #ca9238 0%, #9a6820 100%);
    border: 2px solid #7a5018;
    color: #fff8e8;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    box-shadow: 0 3px 10px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,225,120,0.3);
}
.edu-btn--skip {
    background: rgba(120, 80, 28, 0.12);
    border: 1.5px solid rgba(140, 90, 28, 0.40);
    color: #7a4a10;
    font-weight: 600;
    text-shadow: none;
}
@media (hover: hover) {
    .edu-btn:hover { filter: brightness(1.1); }
}
@media (pointer: coarse) {
    .edu-btn:active { filter: brightness(0.93); }
}
@media (max-width: 399px) {
    .edu-panel { padding: 24px 14px 20px; }
    .edu-text  { font-size: clamp(12px, 3.4vw, 14px); }
}