body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
fieldset,
input,
textarea,
p,
blockquote,
th,
td {
    padding: 0;
    margin: 0;
    font-family: Verdana, sans-serif;
    font-size: 11px;
    text-decoration: none;
}

html {
    scrollbar-gutter: stable;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

textarea {
    box-sizing: border-box;
}

fieldset,
img {
    border: 0;
}

address,
caption,
cite,
code,
dfn,
em,
strong,
th,
var {
    font-weight: normal;
    font-style: normal;
}

ol,
ul {
    list-style: none;
}

ol.list,
ul.list {
    list-style: inherit;
    list-style-position: inside;
}

caption,
th {
    text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
    font-size: 100%;
}

dl dt {
    margin-bottom: 0.3rem;
    font-weight: bold;
}

dt {
    margin-top: 10px;
}

dd {
    margin-inline-start: 40px;
}

q:before,
q:after {
    content: '';
}

abbr,
acronym {
    border: 0;
}

fieldset {
    padding: 6px;
    border-radius: 3px;
    border: 1px solid #7A858C !important;
    border-width: 1px !important;
    vertical-align: top;
}

legend {
    color: #556775;
    font-weight: bold;
}

select {
    padding: 3px;
}

.label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.label-table {
    line-height: 30px;
}

body {
    cursor: default;
    color: #444;
    background: #DFDFDF url(https://utopie-game.ru/assets/i/temple/back.jpg) repeat;
    outline: none !important;

}

.margin-bottom {
    margin-bottom: 1.5rem;
}

.margin-top {
    margin-top: 1.5rem;
}

.margin-bottom-px {
    margin-bottom: 10px;
}

.margin-top-px {
    margin-top: 10px;
}

.margin-bottom-small {
    margin-bottom: 2px;
}

.margin-top-small {
    margin-top: 2px;
}

.flex-data-blocks {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.flex-data-blocks .data-block {
    flex: 1 1 0;
    min-width: 200px;
}

.data-block {
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: rgba(0, 0, 0, 0.12) 0 1px 3px, rgba(0, 0, 0, 0.24) 0 1px 2px !important;
    border-radius: 2px;
    position: relative;
    background: #f4f4f4;
    border-radius: 14px;
    padding: 15px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.data-block .last-p {
    border-top: 1px solid #8da1b0;
    margin-top: 1rem;
    padding-top: 1rem;
}

/* Декоративная рамка */
.data-block::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(113, 129, 142, 0.3);
    border-radius: 10px;
    pointer-events: none;
}

.game-wrapper .data-block {
    border: none !important;
}

.data-block-textured-border {
    padding: 5px !important;
    margin-bottom: 10px;
    box-shadow: rgba(0, 0, 0, 0.12) 0 1px 3px, rgba(0, 0, 0, 0.24) 0 1px 2px !important;
    border-radius: 14px;
    position: relative;
    border: 1px solid #acb4bd;
    background: #f4f4f4;
}

.data-block-textured-border .data-block-inner {
    background: #f4f4f4;
    padding: 10px;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-sizing: border-box;
    border: 1px solid rgba(113, 129, 142, 0.3);
    ;
}

.data-block-textured-border.snowy {
    background: url("/assets/i/textures/winter_1.jpg");
    background-repeat: repeat;
    background-size: 30%;
    border-color: #324554;
}

.data-block-textured-border.snowy .data-block-inner {
    border-color: #324554;
}


/* Стили для заголовков внутри блока */
.data-block h2,
.data-block-textured-border .data-block-inner h2 {
    /* font-family: 'Times New Roman', serif; */
    /* color: #4A2F1E; */
    text-align: center;
    /* text-shadow: 1px 1px 2px rgba(0,0,0,0.1); */
    font-size: 14px !important;
    position: relative;
    padding: 3px 0 5px 0 !important;
}

/* Декоративные элементы для заголовков */
.data-block h2::after,
.data-block-textured-border .data-block-inner h2::after {
    content: '';
    display: block;
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, #71818e, transparent);
    margin: 10px auto 0;
}



h2.on-block-header {
    font-size: 14px !important;
    font-weight: bold;
    color: #444;
    text-align: center;
    padding: 12px 20px !important;
    position: relative;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);

    padding: 0 !important;


}

h2.on-block-header>span:first-child {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 10px 0;
    grid-gap: 20px;
}

h2.on-block-header>span:first-child::after,
h2.on-block-header>span:first-child::before {
    content: " ";
    display: block;
    border-bottom: 2px solid #c2c9ce;
}

.ui-tabs-panel h2.on-block-header:not(:first-of-type) {
    margin-top: 20px;
}





h2.big-header {
    text-align: center;
    margin: 10px 0;
    position: relative;
    font-size: 20px;
    color: #444;
    border: 2px solid #acb4bd;
    background: #f4f4f4;
}

.ui-tabs-panel h2.big-header:not(:first-of-type) {
    margin-top: 20px;
    padding: 5px !important;
}

/* Общие стили для всех уголков */
h2.big-header::before,
h2.big-header::after,
h2.big-header>span::before,
h2.big-header>span::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid #c2c9ce;
    pointer-events: none;
}

/* Позиционирование уголков */
h2.big-header::before {
    top: -6px;
    left: -6px;
    border-right: 0;
    border-bottom: 0;
}

h2.big-header::after {
    top: -6px;
    right: -6px;
    border-left: 0;
    border-bottom: 0;
}

h2.big-header>span::before {
    bottom: -6px;
    left: -6px;
    border-right: 0;
    border-top: 0;
}

h2.big-header>span::after {
    bottom: -6px;
    right: -6px;
    border-left: 0;
    border-top: 0;
}


.flex-of-data-block-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: -10px -10px 10px -10px;
}

.flex-of-data-block-wrapper .data-block {
    margin: 10px;
    flex: 1 1 0;
    min-width: 200px;
    background: #f4f4f4;
}

.data-date {
    text-align: end;
}

.data-block h3 {
    padding: 0 0 10px 0
}

.data-block h2 {
    padding: 0 0 10px 0 !important;
}

.data-block .data-date {
    text-align: end;
    margin-top: 5px;
}

.content-main {
    padding: 15px;
}

@media (max-width: 1150px) {
    .content-main {
        padding: 0;
    }

    .location-layout-main-content-block {
        padding-right: 0 !important;
    }

    .ui-tabs .ui-tabs-panel {
        padding: 5px !important;
    }

    .location-right-block-wrapper {
        padding-top: 0 !important;
    }
}

.button,
.xbbutton {
    display: inline-block;
    outline: none !important;
    border-radius: 3px;
    font-weight: bold;
    color: #404040;
    cursor: default;
    padding: 3px 10px !important;
    background: linear-gradient(0deg, #acb4bd, #dde1e6);
    color: rgba(0, 0, 0, 1);
    border: 1px solid RGB(117, 128, 139);
    text-shadow: 0 1px 1px rgba(255, 255, 255, .7);
}

.button:hover,
.xbbutton:hover {
    background: linear-gradient(0deg, #d2d2d2, #ededed);
    cursor: pointer;
}

.text-button-green {
    background: linear-gradient(0deg, rgb(149, 211, 83), rgb(202, 255, 169)) !important;
}

.text-button-green:hover {
    color: rgb(0 118 9) !important;
    background: linear-gradient(0deg, rgb(179, 233, 122), rgb(219, 253, 197)) !important;
}

.text-button-blue {
    background: linear-gradient(0deg, #b4c9e1, #cae8ff) !important;
}

.text-button-blue:hover {
    background: linear-gradient(0deg, #cbdff5, #e4f3ff) !important;
    color: rgb(62 115 181) !important;
}

.text-button-orange {
    background: linear-gradient(0deg, #d9b784, #ffebca) !important;
}

.text-button-orange:hover {
    background: linear-gradient(0deg, #f3d4a6, #fff6e6) !important;
    color: rgb(122 62 0) !important;
}

.text-button-red {
    background: linear-gradient(0deg, #d98484, #ffdbca) !important;
}

.text-button-red:hover {
    background: linear-gradient(0deg, #f3a6a6, #ffe6e6) !important;
    color: rgb(122 62 0) !important;
}

a {
    color: inherit
}

.w3-container:after,
.w3-container:before,
.w3-panel:after,
.w3-panel:before,
.w3-row:after,
.w3-row:before,
.w3-row-padding:after,
.w3-row-padding:before,
.w3-cell-row:before,
.w3-cell-row:after,
.w3-clear:after,
.w3-clear:before,
.w3-bar:before,
.w3-bar:after {
    content: "";
    display: table;
    clear: both
}

.w3-cell-row {
    display: table;
    width: 100%
}

.w3-cell {
    display: table-cell
}

.w3-cell-top {
    vertical-align: top
}

.w3-cell-middle {
    vertical-align: middle
}

.w3-cell-bottom {
    vertical-align: bottom
}

input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="date"],
textarea,
select {
    /*width: 300px;*/
    height: 30px;
    padding: 6px 10px;
    background-color: #fff;
    border: 1px solid #D1D1D1;
    border-radius: 4px;
    box-shadow: none;
    box-sizing: border-box;
    max-width: -webkit-fill-available;
}

.form-table .f-r {
    text-align: right;
}

.form-table input {
    width: 300px;
}

.form-table .xbbutton {
    width: initial !important;
}

.form-table td {
    padding: 3px;
}

.hp-pw-digits {
    background: dimgrey;
    margin-top: 0;
    height: 30px;
    padding-top: 3px;
}

.tooltip {
    display: none;
}

.ui-tooltip {
    position: absolute;
    background-color: #F0F9BB;
    border: 1px solid #000000;
    font-size: .9em;
    padding: 1px;
    z-index: 9999;
    max-width: 800px;
}

body .ui-tooltip {
    border-width: 1px;
}

.ui-tooltip-content h2 {
    font-size: 11px !important;
    font-weight: bold;
    padding: 0 !important;
}

/*
TABLES
 */
.table-list {
    border-collapse: collapse;
    border: 1px solid #b4b5bb;
    width: 100%;
    padding: 10px;
}

.table-list td {
    text-align: left;
    border: 1px solid #b4b5bb;
    padding: .4rem;
}

.table-list .green-semitransparent {
    background: rgba(154, 255, 96, 0.3);
}

.table-list .red-semitransparent {
    background: rgba(255, 180, 96, 0.3);
}

.table-list th {
    text-align: center;
    background-color: rgb(202, 203, 206);
    padding: .3rem;
    border: 1px solid #b4b5bb;
    color: #444;
    font-size: 12px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, .7);
}

.table-list {
    background: url(https://utopie-game.ru/main_page/assets/css/images/overlay.png), rgb(223, 223, 223);
}

.table-list tr:nth-child(even) {
    background: url(https://utopie-game.ru/main_page/assets/css/images/overlay.png), rgb(230, 230, 230);
}

.table-list tr:hover {
    background: url(https://utopie-game.ru/main_page/assets/css/images/overlay.png), #C8CCD3 !important;
}

/**/


.ui-autocomplete {
    border: 1px solid;
    border-color: rgb(239, 239, 239) #71818D #71818D rgb(239, 239, 239);
    width: 150px;
    list-style: none;
    padding: 0;
    background-color: rgb(223, 225, 226);
    z-index: 999;
}

.ui-autocomplete .ui-state-active {
    margin: 0 !important;
}

.ui-menu-item:hover {
    background: #C5CED5;
    padding: 0;
}

.standard-panel {
    background-color: rgb(223, 225, 226);
    border: 1px solid #71818D;
    padding-left: 5px;
}

.toggle {
    padding-right: 5px;
}

.middle-cell tr td {
    padding: 0;
}

.z-table {
    width: 100%;
}

.z-table td {
    border: 1px solid #999 !important;
    position: relative;
}

.z-table tr:nth-child(odd) {
    background-color: #dfdfdf;
}

.z-table tr:nth-child(even) {
    background-color: #cfd2d9;
}

img {
    margin: 0;
}

.flash-item {
    position: fixed;
    top: 15px;
    right: 15px;
}

.hp_bg {
    background-image: url('https://utopie-game.ru/assets/i/hpscale.png');
    text-align: left;
    width: 253px;
}

.hp {
    background: #8e0000;
    background: -moz-linear-gradient(top, #8e0000 0%, #ff9592 39%, #e80404 51%, #e80404 51%, #8e0000 100%);
    background: -webkit-linear-gradient(top, #8e0000 0%, #ff9592 39%, #e80404 51%, #e80404 51%, #8e0000 100%);
    background: linear-gradient(to bottom, #8e0000 0%, #ff9592 39%, #e80404 51%, #e80404 51%, #8e0000 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#8e0000', endColorstr='#8e0000', GradientType=0);
    height: 8px;
}

.pw {
    background: #028c00;
    background: -moz-linear-gradient(top, #028c00 0%, #6cfc6c 39%, #1be504 51%, #08e004 53%, #028c00 100%);
    background: -webkit-linear-gradient(top, #028c00 0%, #6cfc6c 39%, #1be504 51%, #08e004 53%, #028c00 100%);
    background: linear-gradient(to bottom, #028c00 0%, #6cfc6c 39%, #1be504 51%, #08e004 53%, #028c00 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#028c00', endColorstr='#028c00', GradientType=0);
    height: 8px;
}

.nick {
    text-align: center;
    height: 18px;
}

.user_layout {
    border: 1px solid;
    border-color: rgb(239, 239, 239) #71818D #71818D rgb(239, 239, 239);
    padding: 3px;
    background: #ddd;
}

/*
РџР°РЅРµР»СЊ СЃРµСЂР°СЏ СЃ СЂР°РјРєР°РјРё РѕР±СЉРµРјРЅС‹РјРё
 */
.bordered-panel {
    border: 1px solid;
    border-color: rgb(239, 239, 239) #71818D #71818D rgb(239, 239, 239);
    padding: 5px;
    background: #C5CED5;
}


/*
* inputs
*/
input .text {
    padding: 3px !important;
}

.input-number {
    padding: 3px !important;
}

.input-text {
    padding: 3px !important;
}




.content-main {
    padding-top: 0
}

.npc-panel li {
    margin-top: 0;
}

.npc-panel {
    float: none;
}

.lr {
    text-align: right;
    padding-right: 3px;
    padding-top: 2px
}

.fr {
    padding-left: 3px;
    padding-top: 2px;
    font-weight: bold
}

.result-col-desc {
    width: 100%
}

.result-col-buy {
    padding: 3px;
    vertical-align: top;
    white-space: nowrap;
    text-align: right
}

.result-col-buy img:hover {
    filter: brightness(1.2)
}

.notification-window {
    width: 250px !important
}

h1 {
    font-size: 18px;
    font-weight: bold;
    padding: 5px 0;
}

h2 {
    font-size: 16px !important;
    font-weight: bold;
    padding: 5px 0 !important;
}

h3 {
    font-size: 14px;
    font-weight: bold;
    padding: 10px 0 0 0;
}

h4 {
    font-size: 12px;
    font-weight: bold;
    padding: 5px 0;
}

h5 {
    font-size: 12px;
    font-weight: bold;
    padding: 3px 0;
}

.ui-tabs-panel h2:not(:first-of-type) {
    padding-top: 1rem !important;
}

p {
    padding: 3px 0;
}

.description-item h2 {
    font-size: inherit;
    font-weight: bold;
    padding: 0;
}

.desc-ul {
    list-style: disc inside !important;
}


.invisible {
    display: none;
}

.no-display {
    display: none !important;
}

.flex-row {
    display: flex;
    flex-direction: row;
    flex: auto;
    flex-wrap: wrap;
}

.flex-block {
    border: 1px solid #8da1b0;
    padding: 5px;
}

.highlight:hover {
    filter: brightness(1.1);
    cursor: pointer;
}

.disabled {
    filter: grayscale(1);
    cursor: not-allowed;
}

.processing {
    filter: opacity(.5);
    cursor: not-allowed;
}

/*right block*/
.quick-user-info {
    padding-top: 5px;
}

.quick-user-info .name {
    text-align: right;
    padding-right: 5px;
    white-space: nowrap;
}

.quick-user-info .value {
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
}

.right-col-inner {
    position: fixed;
    right: 0;
    top: 21px;
    padding: 10px 10px 10px 0;
    width: 230px
}

.near-rooms {
    padding: 10px;
    background-color: #dfe1e2;
    border: 1px solid #71818D;
}

.room-name {
    font-size: 13px;
    font-weight: bold;
    border-bottom: 1px solid #71818D;
    padding-bottom: 10px;
    text-align: center;
    margin-bottom: 10px;
}

.near-rooms-list {
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: left;
}

.near-rooms-list li {
    margin-bottom: 5px;
}

.near-rooms-list li a:hover {
    color: rgb(171, 30, 30);
}

.near-rooms-list li:last-child {
    margin-bottom: 0;
}

.link-loc a {
    color: darkred;
    font-size: 12px;
    text-decoration: none;
    font-weight: bold;
}


.help-button:hover {
    color: darkred;
    cursor: pointer;
}



/*COLORS*/
.color-red {
    color: red;
}

.color-green {
    color: green;
}

.style-hp {
    color: darkred;
}

.style-mana {
    color: darkgreen;
}

.style-int {
    color: #bb5500;
}

.style-lovk {
    color: darkcyan;
}

.style-power {
    color: #003370;
}

.style-damage {
    color: #0055bb;
}

.style-bron {
    color: #696969;
}

.style-intel {
    color: #003370;
}

.style-powerup {
    color: #8300bb;
}

.green-frame {
    border: 1px solid #7cbd00;
    background: rgba(216, 255, 150, .67);
    padding: 5px;
}

.red-frame {
    border: 1px solid #bd0000;
    background: rgba(255, 150, 150, 0.67);
    padding: 5px;
}

.location-layout {
    display: flex;
    margin: 0 auto;
    max-width: 85rem;
}

.location-layout-main-content-block {
    padding-right: 10px;
    width: 100%;
    margin-top: 10px;
}

@media screen and (max-width:1150px) {
    .location-layout {
        flex-direction: column-reverse;
    }

    .right-col-inner {
        width: 100% !important;
    }
}

.inv-user-layout th {
    font-weight: bold;
}

.inv-user-layout table {
    width: 100%;
    border-spacing: 2px;
}


/*
Progress bars
 */
.progress {
    background-color: #a0adb7;
    border-radius: 4px;
    height: 30px;
    position: relative;
    border: 1px solid #71818d;
    color: white;
    box-shadow: inset 0 0 10px #556775bd;
    box-sizing: content-box;
}

.progress.progress-xs {
    height: 5px;
    margin-top: 5px;
}

.progress.progress-sm {
    height: 10px;
    margin-top: 5px;
}

.progress.progress-lg {
    height: 25px;
}

.progress.vertical {
    position: relative;
    width: 20px;
    height: 200px;
    display: inline-block;
    margin-right: 10px;
}

.progress.vertical>.progress-bar {
    width: 100% !important;
    position: absolute;
    bottom: 0;
}

.progress.vertical.progress-xs {
    width: 5px;
    margin-top: 5px;
}

.progress.vertical.progress-sm {
    width: 10px;
    margin-top: 5px;
}

.progress.vertical.progress-lg {
    width: 30px;
}

.progress-bar {
    background-color: #2196F3;
    box-shadow: none;
    height: inherit;
    border-radius: 4px;
    box-sizing: content-box;
}

.progress-bar.text-left {
    text-align: left;
}

.progress-bar.text-left span {
    margin-left: 10px;
}

.progress-bar.text-right {
    text-align: right;
}

.progress-bar.text-right span {
    margin-right: 10px;
}

@-webkit-keyframes progress-bar-stripes {
    from {
        background-position: 40px 0;
    }

    to {
        background-position: 0 0;
    }
}

@keyframes progress-bar-stripes {
    from {
        background-position: 40px 0;
    }

    to {
        background-position: 0 0;
    }
}

.progress.active .progress-bar,
.progress-bar.active {
    -webkit-animation: progress-bar-stripes 4s linear infinite;
    -o-animation: progress-bar-stripes 4s linear infinite;
    animation: progress-bar-stripes 4s linear infinite;
}

.progress-striped .progress-bar,
.progress-bar-striped {
    background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
}

.progress-bar-secondary {
    background-color: #323a45;
}

.progress-bar-default {
    background-color: #B0BEC5;
}

.progress-bar-success {
    background-color: #36b538;
}

.progress-bar-info {
    background-color: #29B6F6;
}

.progress-bar-warning {
    background-color: #FFD600;
}

.progress-bar-danger {
    background-color: #ef1c1c;
}

.progress-bar span {
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    line-height: 30px;
    text-shadow: 0px 1px 1px rgb(48 48 48);
    white-space: nowrap;
}

.count-label {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #fff4d4;
    padding: 1px 5px;
    border: 1px solid black;
}

.radio-holder {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: -5px -5px 5px;
}

.radio-holder .radio__block {
    margin: 5px;
    background: #5286b147;
    padding: 5px 10px;
    text-align: center;
    color: black;
    border-radius: 20px;
}

.radio-holder .radio__block.selected {
    background: #5286b1;
    color: white;
}

.radio-holder .radio__block:hover {
    background: #5b94c3 !important;
    color: white;
    cursor: pointer;
}

.selected-green-frame {
    border: 4px solid #8dcf6c;
    box-sizing: border-box;
    box-shadow: 0px 0px 4px 3px #1f8b0b;
}

.inner-border-grey {
    border: 1px solid #c5c8ce;
    box-shadow: 0px 0px 0px 2px rgb(0 0 0);
}

.description-item h2 {
    font-size: 11px !important;
    padding: 0 !important;
}


.button-red-1 {
    background-image: url("https://utopie-game.ru/assets/icons/button-red-1.png");
    background-repeat: no-repeat;
    background-position: -1px -35px;
    width: 163px;
    height: 32px;

    color: white;
    line-height: 32px;

    border: none;
    text-align: center;
    outline: none !important;

    letter-spacing: 1px;
    text-shadow: 0 2px 2px rgba(0, 0, 0, .5);

    cursor: pointer;
}

.button-red-1:hover {
    width: 163px;
    height: 32px;
    background-position: -1px -69px;
}

.button-red-1:active {
    width: 163px;
    height: 32px;
    background-position: -1px -1px;
}

.button-green-1 {
    background-image: url("https://utopie-game.ru/assets/icons/button-green-1.png");
    background-repeat: no-repeat;
    background-position: -1px -35px;
    width: 163px;
    height: 32px;

    color: white;
    line-height: 32px;

    border: none;
    text-align: center;
    outline: none !important;

    letter-spacing: 1px;
    text-shadow: 0 2px 2px rgba(0, 0, 0, .5);

    cursor: pointer;
}

.button-green-1:hover {
    width: 163px;
    height: 32px;
    background-position: -1px -69px;
    color: white;
}

.button-green-1:active {
    width: 163px;
    height: 32px;
    background-position: -1px -1px;
    color: white;
}


.button-purple-1 {
    background-image: url("https://utopie-game.ru/assets/icons/button-purple-1.png");
    background-repeat: no-repeat;
    background-position: -1px -35px;
    width: 163px;
    height: 32px;

    color: white;
    line-height: 32px;
    outline: none !important;
    border: none;
    text-align: center;

    letter-spacing: 1px;
    text-shadow: 0 2px 2px rgba(0, 0, 0, .5);

    cursor: pointer;
}

.button-purple-1:hover {
    width: 163px;
    height: 32px;
    background-position: -1px -69px;
}

.button-purple-1:active {
    width: 163px;
    height: 32px;
    background-position: -1px -1px;
}



.ui-tooltip .ui-tooltip-content {
    padding: 5px;
}


.bordered-block-is-header {
    margin: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: #556775 0px 0px 0px 2px, #b9c1cb 0px 0px 0px 7px;
    width: fit-content;
    background: #b9c1cb;

}

.bordered-block-is-header .blocks-header {
    background: #c7d2df;
    padding: 10px;
    text-align: center;
}

.bordered-block-is-header .blocks-content {
    background: #b9c1cb;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.bordered-block-is-header .blocks-content .el-block {
    display: flex;
    gap: 10px;
}


.location-user-login-panel .hp-pw {
    background-image: url(https://utopie-game.ru/assets/i/scale.gif);
    height: 16px;
    text-align: left;
    width: 245px;
}

.location-user-login-panel {
    margin-bottom: 10px;
}

.location-user-login-panel .nick img {
    vertical-align: text-bottom;
}

.npc-panel {
    float: none;
    display: flex;
    gap: 5px;
}

.currency-icon {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}


.little-update-count {
    background-color: rgb(60, 60, 60);
    color: #ecf5ff;
    position: absolute;
    bottom: -2px;
    right: -2px;
    padding: 0px 3px;
    font-size: 9px;
    border: 1px solid #ecf5ff;
    box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.65);
}

.horizontal-list-item-block-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, 300px);
    /* Фиксированная ширина 300px */
    gap: 10px;
    justify-content: center;
    /* Центрируем блоки */
}

.list-item-block {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    gap: 15px;
    box-sizing: border-box;
    position: relative;
}

.list-item-block .description {
    display: block;
    padding: 5px 0;
}

.list-item-block .list-hint {
    font-size: 9px;
    color: #666;
    padding: 3px 0;
}

.list-item-block .main-icon,
.list-item-block .coll-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;

    vertical-align: middle;
    margin-right: 4px;
    border-radius: 2px;
    box-shadow: inset 0 0 6px #adadad;
    background-color: #fff;
    padding: 5px;
    box-sizing: border-box;
}

.list-data-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    height: 100%;
    position: relative;
}

.list-data-container::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 1px;
    background: #cccccc;
}

.list-item-block .data-flex-container {
    display: flex;
    height: -webkit-fill-available;
    align-items: flex-start;
    gap: 5px;
    height: -webkit-fit-content;
}

/* Правая кнопка/цена */
.list-item-block .action-button {
    margin-left: auto;
    padding: 5px 20px;
    white-space: nowrap;
    align-self: center;
}


/* Адаптивность */
@media screen and (max-width: 768px) {
    .list-item-block {
        min-height: 80px;
        padding: 15px;
    }

    .list-item-block .main-icon {
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 480px) {
    .list-item-block {
        height: auto;
        min-height: 70px;
        padding: 10px;
        width: 100% !important;
    }

    .horizontal-list-item-block-wrapper {
        grid-template-columns: repeat(auto-fill, 100%);
    }

    .list-item-block .action-button {
        padding: 3px 10px;
    }
}

.gray-hint,
.gray-hint p {
    font-size: 9px;
    color: #666;
    padding: 3px 0;
}

.npc-speech {
    color: #333;
}

.quest-dialog .npc-speech + .npc-speech {
    margin-top: 0.6em;
}

.npc-speech--typing {
    cursor: pointer;
}

.quest-text {
    margin-bottom: 15px;
    text-align: justify;
}

.quest-action {
    color: #666;
    font-style: italic;
    margin: 10px 0;
    padding: 5px 0;
    border-top: 1px solid #d4d9de;
    border-bottom: 1px solid #d4d9de;
}


.greyHeaderBlock {
    display: inline-block;
    height: 47px;
    line-height: 47px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    font-size: 0;
}

.greyHeaderBlock:before {
    content: "";
    background: url("https://utopie-game.ru/assets/i/gui/greyHeaderBlock/greyHeaderBlock-l.png") no-repeat;
    background-size: 25px 47px;
    width: 25px;
    height: 47px;
    display: inline-block;
    vertical-align: top;
}

.greyHeaderBlock .greyHeaderBlock-center {
    background: url(https://utopie-game.ru/assets/i/gui/greyHeaderBlock/greyHeaderBlock-m.png) repeat-x;
    background-size: auto 47px;
    height: 47px;
    display: inline-block;
    vertical-align: top;
    padding: 0 10px;
    min-width: 50px;
    font-size: 18px;
    line-height: 47px;
    flex: auto;
    text-shadow: 0 1px 2px black, 0px 2px 6px rgba(0, 0, 0, 0.432);
}

.greyHeaderBlock:after {
    content: "";
    background: url("https://utopie-game.ru/assets/i/gui/greyHeaderBlock/greyHeaderBlock-r.png") no-repeat;
    background-size: 25px 47px;
    width: 25px;
    height: 47px;
    display: inline-block;
    vertical-align: top;
}




.styled-block-list .styled-block-list-item {
    background: #fff;
    padding: 3px 6px;
    margin: 3px 0;
}


.styled-block-list .styled-block-list-item.big {
    padding: 6px;
}


.styled-block-list .styled-block-list-item:first-child,
.styled-block-list .styled-block-list-item:first-of-type {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.styled-block-list .styled-block-list-item:last-child,
.styled-block-list .styled-block-list-item:last-of-type {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}



/* Таблицы в стиле styled-block */
.styled-block-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 3px;
}

.styled-block-table tr {
    background: #fff;
}

.styled-block-table th {
    height: 30px;
}

.styled-block-table td,
.styled-block-table th {
    padding: 3px 6px;
}

.styled-block-table.big td,
.styled-block-table.big th {
    padding: 6px;
}

/* Скругление для первой строки (без thead/tbody) */
.styled-block-table>tr:first-child td:first-child,
.styled-block-table>tr:first-child th:first-child {
    border-top-left-radius: 8px;
}

.styled-block-table>tr:first-child td:last-child,
.styled-block-table>tr:first-child th:last-child {
    border-top-right-radius: 8px;
}

/* Скругление для thead */
.styled-block-table thead tr:first-child th:first-child,
.styled-block-table thead tr:first-child td:first-child {
    border-top-left-radius: 8px;
}

.styled-block-table thead tr:first-child th:last-child,
.styled-block-table thead tr:first-child td:last-child {
    border-top-right-radius: 8px;
}

/* Скругление для последней строки (без thead/tbody) */
.styled-block-table>tr:last-child td:first-child,
.styled-block-table>tr:last-child th:first-child {
    border-bottom-left-radius: 8px;
}

.styled-block-table>tr:last-child td:last-child,
.styled-block-table>tr:last-child th:last-child {
    border-bottom-right-radius: 8px;
}

/* Скругление для tbody (последняя строка) */
.styled-block-table tbody tr:last-child td:first-child,
.styled-block-table tbody tr:last-child th:first-child {
    border-bottom-left-radius: 8px;
}

.styled-block-table tbody tr:last-child td:last-child,
.styled-block-table tbody tr:last-child th:last-child {
    border-bottom-right-radius: 8px;
}

/* Если есть только tbody без thead - верхние углы */
.styled-block-table>tbody:first-child tr:first-child td:first-child,
.styled-block-table>tbody:first-child tr:first-child th:first-child {
    border-top-left-radius: 8px;
}

.styled-block-table>tbody:first-child tr:first-child td:last-child,
.styled-block-table>tbody:first-child tr:first-child th:last-child {
    border-top-right-radius: 8px;
}
