/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

@font-face {
  font-family: 'Gosttype';
  src: url('/css/fonts/GOSTtypeB.TTF');
  font-display: swap;
}

@font-face {
  font-family: 'Strong';
  src: url('/css/fonts/Strong-Regular.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'Halloween';
  src: url('/css/fonts/Halloween.ttf');
  font-display: swap;
}

:root {
  --bg-color: #000000;
  --text-color: #99958c;
  --link-color: #808080;
  --link-hover-color: #a79b69;
  --scrollbar-color: #474747;
  --input-bg-color: #222222;
  --input-bg-gradient: linear-gradient(#222222, #191919);
  --input-text-color: #888888;
  --input-border-color: #282828;
  --input-hover-color: #282828;
  --input-active-bg: #191919;
  --textarea-bg: #242424;
  --textarea-border: #323232;
  --textarea-text: #999999;
  --checkbox-background: #888888;
  --checkbox-border: #999999;
}

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 8px; /* Немного увеличил для удобства */
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-color);
  border-radius: 4px;
}

html,
body {
  background-color: var(--bg-color);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 12px;
  color: var(--text-color);
  word-wrap: break-word;
  max-width: 550px;
  margin: 0 auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--link-color);
  -webkit-transition: color 0.3s ease;
  -o-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--link-hover-color);
}

header {
  width: 100%;
  overflow: hidden;
}

header img {
  width: 100%;
  height: auto;
  display: block;
}

.container {
  background-image: 
    url("/css/design/top_left.png"),
    url("/css/design/top_right.png"),
    url("/css/design/bottom_left.png"),
    url("/css/design/bottom_right.png"),
    url("/css/design/center_top.png"),
    url("/css/design/center_right.png"),
    url("/css/design/center_bottom.png"),
    url("/css/design/center_left.png"),
    url("/css/design/bg.png");
  
  background-position: 
    0% 0%, 
    100% 0%, 
    0% 100%, 
    100% 100%, 
    0% 0%, 
    100% 0%, 
    0% 100%, 
    0% 0%, 
    center;
  
  background-repeat: 
    no-repeat, 
    no-repeat, 
    no-repeat, 
    no-repeat, 
    repeat-x, 
    repeat-y, 
    repeat-x, 
    repeat-y, 
    repeat;
  
  padding: 25px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

button, 
input, 
select, 
textarea {
  font-family: Arial, sans-serif;
  color: var(--input-text-color);
  border: 1px solid var(--input-border-color);
  background: var(--input-bg-color) var(--input-bg-gradient);
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 4px;
  -webkit-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none; /* Убирает стандартный вид элементов */
}

button {
  cursor: pointer;
  background: var(--input-bg-color);
}

input {
  display: inline-block;
  font-size: 11px !important;
}

input:hover,
button:hover {
  background: var(--input-bg-color) var(--input-bg-gradient);
  border-color: var(--input-hover-color);
}

input:active,
button:active {
  background: var(--input-active-bg) var(--input-bg-gradient);
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) inset;
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) inset;
}

select {
  padding: 3px;
  font-size: 11px !important;
}

.custom-select{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 8px 36px 8px 10px; /* место под стрелку справа */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
}
/* Убрать стрелку в IE */
.custom-select::-ms-expand{ display: none; }

form {
  margin: 0;
  padding: 0;
}

input, 
textarea, 
select {
  vertical-align: middle;
  outline: none;
  margin: 5px 0;
}

textarea {
  background: var(--textarea-bg);
  border-color: var(--textarea-border);
  color: var(--textarea-text);
  width: 100% !important;
  resize: vertical; /* Разрешает вертикальное изменение размера */
  min-height: 100px;
}

/* Стили для чекбоксов и радио-кнопок */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none; /* Убираем стандартный вид */
  width: 16px;
  height: 16px;
  border: 1px solid var(--input-border-color);
  background-color: #222222;
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  margin-right: 5px;
}

/* Стили для чекбокса */
input[type="checkbox"] {
  border-radius: 3px;
}

/* Стили для радио-кнопки */
input[type="radio"] {
  border-radius: 50%;
}

/* Состояние при выборе для чекбокса */
input[type="checkbox"]:checked {
  background-image: url('data:image/svg+xml,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"%3e%3cpath fill="none" stroke="%230c5f7eed" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="m6 10 3 3 6-6"/%3e%3c/svg%3e');
}

/* Состояние при выборе для радио-кнопки */
input[type="radio"]:checked {
  background-image: url('data:image/svg+xml,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="-4 -4 8 8"%3e%3ccircle r="2" fill="%230c5f7eed"/%3e%3c/svg%3e');
}

/* Псевдоэлемент для галочки в чекбоксе */
input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  color: var(--text-color);
  font-size: 10px;
}

/* Состояние наведения */
input[type="checkbox"]:hover,
input[type="radio"]:hover {
  border-color: #a79b69;
}

label {
  display: inline-block;
  color: var(--text-color);
  font-size: 12px;
  margin-right: 10px;
  cursor: pointer;
  -webkit-transition: color 0.3s ease;
  -o-transition: color 0.3s ease;
  transition: color 0.3s ease;
  vertical-align: middle;
}

label:hover {
  color: var(--link-hover-color);
}

/* Для label с чекбоксами и радио-кнопками */
label.checkbox-label,
label.radio-label {
  display: block;
}

label.checkbox-label input[type="checkbox"],
label.radio-label input[type="radio"] {
  margin-right: 5px;
}

/* Состояние наведения для label с input */
label.checkbox-label:hover,
label.radio-label:hover {
  color: var(--link-hover-color);
}

/* Состояние disabled */
label.disabled,
label:disabled {
  color: var(--scrollbar-color);
  cursor: not-allowed;
}

.message {
  width: 100%;
  display: block;
  padding: 10px;
  margin: 4px 0;
  border-radius: 3px;
}

.message.success {
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    from(rgba(166, 196, 138, 0.12)),
    to(rgba(166, 196, 138, 0.02))
  );
  background: -o-linear-gradient(
    left,
    rgba(166, 196, 138, 0.12),
    rgba(166, 196, 138, 0.02)
  );
  background: linear-gradient(
    90deg,
    rgba(166, 196, 138, 0.12),
    rgba(166, 196, 138, 0.02)
  );
  color: #a6c48a;
  border: 1px solid rgba(166, 196, 138, 0.08);
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65),
    inset 0 -2px 6px rgba(0, 0, 0, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65),
    inset 0 -2px 6px rgba(0, 0, 0, 0.25);
}

.message.error {
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    from(rgb(196 138 138 / 12%)),
    to(rgb(196 138 138 / 2%))
  );
  background: -o-linear-gradient(
    left,
    rgb(196 138 138 / 12%),
    rgb(196 138 138 / 2%)
  );
  background: linear-gradient(
    90deg,
    rgb(196 138 138 / 12%),
    rgb(196 138 138 / 2%)
  );
  color: #c48a8a;
  border: 1px solid rgb(196 138 138 / 8%);
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65),
    inset 0 -2px 6px rgba(0, 0, 0, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65),
    inset 0 -2px 6px rgba(0, 0, 0, 0.25);
}

.message.info {
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    from(rgba(138, 196, 196, 0.12)),
    to(rgba(138, 196, 196, 0.02))
  );
  background: -o-linear-gradient(
    left,
    rgba(138, 196, 196, 0.12),
    rgba(138, 196, 196, 0.02)
  );
  background: linear-gradient(
    90deg,
    rgba(138, 196, 196, 0.12),
    rgba(138, 196, 196, 0.02)
  );
  color: #8ac4c4;
  border: 1px solid rgba(138, 196, 196, 0.08);
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65),
    inset 0 -2px 6px rgba(0, 0, 0, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65),
    inset 0 -2px 6px rgba(0, 0, 0, 0.25);
}

.message.warning {
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    from(rgba(196, 166, 138, 0.12)),
    to(rgba(196, 166, 138, 0.02))
  );
  background: -o-linear-gradient(
    left,
    rgba(196, 166, 138, 0.12),
    rgba(196, 166, 138, 0.02)
  );
  background: linear-gradient(
    90deg,
    rgba(196, 166, 138, 0.12),
    rgba(196, 166, 138, 0.02)
  );
  color: #c4a68a;
  border: 1px solid rgba(196, 166, 138, 0.08);
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65),
    inset 0 -2px 6px rgba(0, 0, 0, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65),
    inset 0 -2px 6px rgba(0, 0, 0, 0.25);
}

.line {
  padding: 2px 8px;
  background: url('/css/design/sub_top.png');
  color: #D2CBC0;
  height: 20px;
  font-size: 10px;
  margin: 5px -10px;
}

.block_div {
  display: block;
  background: url('/css/icons/pda_background.png');
  padding: 4px;
  margin-top: 1px;
  margin-bottom: 1px;
  border: 1px solid #222;
}

.map {
	font-size: 0px;
	max-width: 450px;
	position: relative;
  margin: 2px 0;
}

.mapClass {
  position: absolute;
  color: #9c9c9c;
  z-index: 9999999999;
  border: 2px solid #11111159;
  background: #111111ab;
  font-size: 12px;
}

.mapInfo {
  position: absolute;
  right: 0;
  color: #9c9c9c;
  z-index: 9999999999;
  border: 2px solid #11111159;
  background: #111111ab;
  font-size: 12px;
}

.cell {
	width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; /* Сохраняем квадратную форму */
  background-size: cover; /* Заполняем всю ячейку */
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.object {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  width: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
          z-index: 999999999999;
}

.object img {
  max-width: 90%;
}

.map-info {
  position: absolute;
  color: #9c9c9c;
  z-index: 9999999999;
  border: 2px solid #11111159;
  background: #111111ab;
  font-size: 12px;
}

.arrow_left {
  position: relative;
  padding: 0px;
  z-index: 9999999999;
  display: block;
  background-image: url('/css/map/icons/arrow_el_on.png') !important;
  background-size: 34% !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  margin-top: -55.2%;
  padding-top: 54.6%;
  width: 24%;
  margin-left: -77%;
}

.arrow_right {
  position: relative;
  z-index: 9999999999;
  display: block;
  background-image: url('/css/map/icons/arrow_er_on.png') !important;
  background-size: 36% !important;
  background-repeat: no-repeat !important;
  background-position: right center !important;
  margin-top: -55.6%;
  margin-left: 76.5%;
  padding-top: 55.6%;
  width: 24%;
}

.arrow_up {
  position: relative;
  z-index: 9999999999;
  display: block;
  background-image: url('/css/map/icons/arrow_eu_on.png') !important;
  background-size: 18% !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;
  margin-top: -55.6%;
  margin-left: 0%;
  padding-top: 26.688%;
  width: 48%;
}

.arrow_down {
  position: relative;
  z-index: 9999999999;
  display: block;
  background-image: url('/css/map/icons/arrow_ed_on.png') !important;
  background-size: 18% !important;
  background-repeat: no-repeat !important;
  background-position: bottom center !important;
  margin-top: 0;
  margin-left: -0.5%;
  padding-top: 26.688%;
  width: 48%;
}

#progressBarMove {
    width: 100%;
    background-color: #111;
    height: 2px;
    border-radius: 5px;
    overflow: hidden;
    text-align: left !important;
}

@keyframes smoothProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

#progressBarDuration {
    width: 0%;
    background-color: orange; /* Цвет прогресс-бара */
    height: 2px;
    animation: smoothProgress 6s ease-in-out forwards; /* Плавный переход ширины */
    text-align: left !important;
}

.bg_item {
  box-sizing: border-box;
  background-image: url('/css/design/bg_item.png');
  background-position: center;
  background-repeat: repeat;
  background-size: 12px;
}

.inventory-act-icon {
    background-color: #222;
    border: 1px solid #bca078;
    border-radius: 50%;
    opacity: 0.75;
    padding: 4px;
    overflow: hidden;
    height: 32px;
    width: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    vertical-align: middle;
    box-shadow: 0px 0px 2px orange;
}

.expBar {
  opacity: 0.9;
  border-radius: 2px !important;
  background-color: #303234;
  border-width: 2px !important;
  border-color: #313335 !important;
  border: 1px solid black;
}

.npc_hp {
  background: #C61A18;
  width: clamp(0%, var(--npc_hp, 0%), 100%);
  min-width: 1%;
  max-width: 100%;
  padding: 1px;
}

.expBarProgress {
  background: orange;
  width: clamp(0%, var(--exp, 0%), 100%);
  min-width: 1%;
  max-width: 100%;
  height: 3px;
}

.progress {
  height: 4px;
  border-radius: 1px;
  border: 2px solid #333333;
  overflow: hidden;
  background: #222;
  min-width: 0;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: 1px;
  background: #555;
  width: 0%;
  min-width: 0;
}

.hpBar {
  background-color: #0e0e0e;
}

.hpBarProgress {
  display: block;
  width: clamp(0%, var(--progress, 0%), 100%);
  min-width: 1%;
  max-width: 100%;
  height: 3px;
  border-radius: 8px;
  margin: 3px 0;
  background-color: #d90000c9;
}

.click {
  background: url('/css/icons/pda_background.png');
  border-radius: 2px;
  padding: 5px;
  margin: 1px 0;
  border: 1px solid #222;
  font-weight: bold;
}

.messsage-new {
    border: 1px solid #444;
    padding: 1px 6px;
    border-radius: 6px;
    background: #2b3a1f;
    border-color: #3b5d29;
    color: #9be07a;
    font-size: 0.85em;
}

.messsage-count {
  border: 1px solid #444;
  padding: 1px 6px;
  border-radius: 6px;
  background: #3a331f;
  border-color: #5d5129;
  color: #e0c17a;
  font-size: 0.85em;
}

.col-auto.block {
  display: block;
  background: url('/css/icons/pda_background.png');
  margin-top: 1px;
  margin-bottom: 1px;
  padding: 4px;
  border: 1px solid #222;
}

.col-auto > img {
  width: 46px;
  height: 46px;
  border-radius: 5px;
}

.col.block {
  display: block;
  background: url('/css/icons/pda_background.png');
  padding: 4px;
  margin-left: 2px;
  margin-top: 1px;
  margin-bottom: 1px;
  border: 1px solid #222;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.avatar-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* чтобы клик проходил сквозь рамку */
}

.button_reset {
  background: unset;
  border: unset;
  outline: unset;
}

.button_reset:hover {
  background: unset;
  border-color: unset;
}

.button_reset:active {
  background: unset;
}

img {
  max-width: 100%; /* Адаптивность */
  height: auto; /* Сохранение пропорций */
  display: block; /* Убирает лишние отступы */
  margin: 0 auto; /* Центрирование */
  
  /* Защита от перетаскивания */
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-user-drag: none;
  
  /* Мягкие углы */
  border-radius: 4px;
}

/* Стили для изображений в ссылках */
a img {
  -webkit-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

a img:hover {
  opacity: 0.85;
}

/* Стили для загружаемых/незагруженных изображений */
img[loading="lazy"] {
  opacity: 0.5;
  -webkit-transition: opacity 0.5s ease;
  -o-transition: opacity 0.5s ease;
  transition: opacity 0.5s ease;
}

img:not([src]) {
  background-color: #242424;
  border: 1px dashed #323232;
}

/* Адаптивность */
@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Специальные классы */
.img-rounded {
  border-radius: 50%;
}

.img-thumbnail {
  border: 3px solid #323232;
  -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
          box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.img-grayscale {
  -webkit-filter: grayscale(100%);
          filter: grayscale(100%);
  -webkit-transition: -webkit-filter 0.3s ease;
  transition: -webkit-filter 0.3s ease;
  -o-transition: filter 0.3s ease;
  transition: filter 0.3s ease;
  transition: filter 0.3s ease, -webkit-filter 0.3s ease;
}

.img-grayscale:hover {
  -webkit-filter: grayscale(0%);
          filter: grayscale(0%);
}

.pagination{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center;-webkit-box-align: center;-ms-flex-align: center;align-items: center;}
.rog{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:3px;padding:8px;font-weight:bold;background: url('/css/icons/pda_background.png');-webkit-box-shadow:0 2px 4px rgba(0,0,0,0.1);box-shadow:0 2px 4px rgba(0,0,0,0.1);width:100%; border: 1px solid #222;}
.pagination_button{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;min-width:28px;height:28px;padding:4px;font-size:14px;font-weight:bold;color:#fff;background-color:#222;border-radius:4px;text-decoration:none;-webkit-transition:all 0.2s ease-in-out;-o-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}
.pagination_button:hover{background:#d2691e4c}
.pagination_active{background-color:#D2691E;pointer-events:none}
.pagination_button:disabled,.pagination_button.pagination_left:disabled,.pagination_button.pagination_right:disabled{color:#222;background-color:#222;pointer-events:none}
.pagination_left,.pagination_right{font-size:16px;font-weight:bold}
.pagination .disabled{pointer-events:none;opacity:0.5;cursor:default}
.pagination_list{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
@media (max-width:550px){.pagination_button{min-width:25px;height:25px;font-size:12px}
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    color: #999;
    font-family: Strong;
}

.table th, .table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #222;
    border-left: 1px solid rgba(255, 255, 255, 0.034); /* Левое граница */
    border-right: 1px solid rgba(255, 255, 255, 0.034); /* Правое граница */
    text-align: center;
    background-color: #1111119e; /* Зебра для четных строк */
}

.table th {
    background: url('/css/icons/pda_background.png');
    padding: 4px;
    margin-left: 2px;
    margin-top: 1px;
    margin-bottom: 1px;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.034); /* Левое граница */
    border-right: 1px solid rgba(255, 255, 255, 0.034); /* Правое граница */
}

.table tbody tr:nth-child(even) {
    background-color: #252525; /* Зебра для четных строк */
}

@media (max-width: 390px) {
    .table {
        display: block;
        overflow-x: auto;
        width: 100%;
        white-space: nowrap;
    }
}

.ammo-slots {
    display: flex;
    gap: 10px; /* Отступ между слотами */
    flex-wrap: wrap; /* Позволяет переносить слоты на новую строку */
    flex-direction: column;
}

.ammo-slot {
    display: flex; /* Используем flexbox для слота */
    align-items: center; /* Центрируем содержимое по вертикали */
    background-color: #161616d4;
    border: 2px solid #202020;
    border-radius: 5px;
    overflow: hidden;
    width: 68px; /* Ширина слота */
    height: 68px; /* Высота слота */
}

.ammo-slot img {
    max-width: 100%; /* Ширина изображения */
    max-height: 100%; /* Высота изображения */
    object-fit: contain; /* Сохранение пропорций изображения */
}

.ammo-label {
    margin-left: 10px; /* Отступ слева для названия */
    color: #ffffff; /* Цвет текста */
    font-size: 14px; /* Размер шрифта */
    display: flex; /* Используем flexbox для выравнивания */
    align-items: center; /* Центрируем текст по вертикали */
}

/*
  Halloween Design
*/

.hw-box {
    font: 500 15px / 1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: url('/css/halloween/background.jpg');
    background-repeat: repeat;
    background-size: cover;
    border-radius: 5px;
    gap: 4px;
    align-items: center;
}

.hw-group {
    display: flex;
    flex: 0 1 auto;
    min-width: 0;
    align-items: center;
    margin: 5px 2px;
}

.hw-group-center {
    justify-content: center;
}

.hw-group-bg {
  background: -webkit-gradient(linear, left top, left bottom, from(#1d1d1d), to(#0f0f0f));
  background: -o-linear-gradient(top,#1d1d1d,#0f0f0f);
  background: linear-gradient(180deg, #1d1d1d, #0f0f0f);
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 6px;
  gap: 6px;
  -webkit-box-shadow: inset 0 0 9px rgb(255 13 0 / .02), 0 1px 6px rgb(252 25 4 / .01);
  box-shadow: inset 0 0 9px rgb(255 13 0 / .02), 0 1px 6px rgb(252 25 4 / .01);
}

.hw-reel {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 8px;
  min-width: 64px;
  min-height: 64px;
  border: 1px dashed #2d2d2d;
  background: rgb(0 0 0 / .31);
}

.hw-reel img {
    transition: opacity 0.3s ease; /* Плавный переход для изменения непрозрачности */
    opacity: 1;
}

.hw-reel img.hidden {
    opacity: 0; /* Скрываем изображение для анимации */
}

.hw-button {
  width: 100% !important;
  cursor: pointer !important;
  background: #eb7608 !important;
  background: -webkit-gradient(linear, left top, left bottom, from(#eb7608ff), to(#c96105ff)) !important;
  background: -o-linear-gradient(top,#eb7608ff,#c96105ff) !important;
  background: linear-gradient(180deg, #eb7608ff, #c96105ff) !important;
  color: #111 !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .6px !important;
  -webkit-box-shadow: 0 6px 0 0 rgb(0 0 0 / .35), 0 12px 24px rgb(255 122 0 / .22) !important;
  box-shadow: 0 6px 0 0 rgb(0 0 0 / .35), 0 12px 24px rgb(255 122 0 / .22) !important;
}

@media (max-width:490px) {
  .hw-box {
    gap: 2px !important;
  }
  .hw-group-bg {
    gap: 2px !important;
    padding: 2px !important;
  }
  .hw-reel {
    min-width: 0;
    min-height: 64px !important;
  }
  .hw-reel img{
    max-width: 38px !important;
    max-height: 38px !important;
  }
}

.hw-coin {
  margin: 5px;
  font-weight: bold;
  color: #eea81e;
  border: 1px solid rgb(255 122 0 / .35);
  background: -webkit-gradient(linear, left top, left bottom, from(rgb(255 122 0 / .16)), to(rgb(255 179 0 / .12)));
  background: -o-linear-gradient(top,rgb(255 122 0 / .16),rgb(255 179 0 / .12));
  background: linear-gradient(180deg, rgb(255 122 0 / .16), rgb(255 179 0 / .12));
  border-radius: 999px;
  padding: 5px;
}

#myElement {
  display: none; /* Изначально скрыт */
}

.hw-info {
  padding: 10px 12px;
  border-radius: 10px;
  background: -webkit-gradient(linear, left top, left bottom, from(rgb(65 66 65 / .18)), to(rgb(62 63 61 / .12)));
  background: -o-linear-gradient(top,rgb(65 66 65 / .18),rgb(62 63 61 / .12));
  background: linear-gradient(180deg, rgb(65 66 65 / .18), rgb(62 63 61 / .12));
  background: -o-radial-gradient(50% -10%,120% 80%,rgb(255 122 0 / .18),transparent 60%),-o-radial-gradient(10% 20%,120% 80%,rgb(255 179 0 / .08),transparent 60%),#0b0c10;
  background: radial-gradient(120% 80% at 50% -10%, rgb(255 122 0 / .18), transparent 60%), radial-gradient(120% 80% at 10% 20%, rgb(255 179 0 / .08), transparent 60%), #0b0c10;
  border: 1px solid rgb(61 68 61 / .45);
  color: #ad9578;
  line-height: 2em;
  font-weight: 600;
  font-family: Strong;
}

.hw-lit-color-s {
  box-shadow: 
        0 0 1px rgba(255, 0, 0, 0.9), /* Внешний свет */
        inset 0 0 14px rgba(255, 0, 0, 0.4); /* Внутренний свет */
    transition: box-shadow 0.25s, outline-color 0.25s;
}

.hw-lit-color-w {
  box-shadow: 
        0 0 1px rgba(255, 187, 0, 0.9), /* Внешний свет */
        inset 0 0 14px rgba(255, 187, 0, 0.4); /* Внутренний свет */
    transition: box-shadow 0.25s, outline-color 0.25s;
}

.hw-lit-color-a {
  box-shadow: 
        0 0 1px rgba(0, 204, 255, 0.9), /* Внешний свет */
        inset 0 0 14px rgba(0, 204, 255, 0.4); /* Внутренний свет */
    transition: box-shadow 0.25s, outline-color 0.25s;
}

.hw-lit-color-b {
  box-shadow: 
        0 0 1px rgba(56, 211, 159, 0.9), /* Внешний свет */
        inset 0 0 14px rgba(56, 211, 159, 0.4); /* Внутренний свет */
    transition: box-shadow 0.25s, outline-color 0.25s;
}

.hw-lit-color-c {
  box-shadow:
        0 0 1px rgb(128 56 211 / 90%), inset 0 0 14px rgb(151 56 211 / 40%);
    transition: box-shadow 0.25s, outline-color 0.25s;
}

.hwResult.success {
  padding: 10px 12px;
  border-radius: 10px;
  background: -webkit-gradient(linear, left top, left bottom, from(rgb(107 255 77 / .18)), to(rgb(130 255 77 / .12)));
  background: -o-linear-gradient(top,rgb(107 255 77 / .18),rgb(130 255 77 / .12));
  background: linear-gradient(180deg, rgb(107 255 77 / .18), rgb(130 255 77 / .12));
  border: 1px solid rgb(89 255 77 / .45);
  color: #ffe4e4;
  font-weight: 600;
}

.hwResult.error {
  padding: 10px 12px;
  border-radius: 10px;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 77, 77, 0.18)), to(rgba(255, 77, 77, 0.12)));
  background: -o-linear-gradient(top,rgba(255, 77, 77, 0.18),rgba(255, 77, 77, 0.12));
  background: linear-gradient(180deg, rgba(255, 77, 77, 0.18), rgba(255, 77, 77, 0.12));
  border: 1px solid rgba(255, 77, 77, 0.45);
  color: #ffe4e4;
  font-weight: 600;
}

.hw-rules {
  font-weight: bold;
  color: #eea81e;
  font-family: Strong;
  background: linear-gradient(180deg, rgb(211 149 56 / 8%), rgb(211 149 56 / 4%));
  border: 1px solid rgb(255 255 255 / .05);
  border-radius: 2px;
  padding: 5px;
  margin-bottom: 1px;
}

.fightEview::-webkit-scrollbar {
    width: 2px;
    background: #2a2a2a;
}

.fightEview::-webkit-scrollbar-thumb {
    width: 2px;
    background: #5a5a6a;
}

.fightEview {
    max-height: 254px;
    overflow-y: scroll;
    overflow-x: hidden;
}

.d2-card {
	background: #1f1f1f;
	border: 1px solid #2a2a2a;
	border-radius: 10px;
	padding: 5px;
	margin: 10px 0 0 0;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .25)
}

/* product card */
.d2-product {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px
}

/* radio-selectable cards */
.d2-pack {
	position: relative;
	padding: 4px;
}

.d2-radio {
	position: absolute;
	opacity: 0;
	pointer-events: none
}

.d2-product.selectable {
	cursor: pointer;
	transition: transform .08s ease, box-shadow .08s ease, border-color .08s ease
}

.d2-radio:checked+.d2-product.selectable {
	background: radial-gradient(1000px 400px at 0% -20%, rgba(255, 190, 64, .15), transparent), linear-gradient(180deg, #1f1a12, #151515);
	border-color: #ec9513;
	box-shadow: 0 0 0 2px rgba(236, 149, 19, .35), 0 6px 20px rgba(0, 0, 0, .35);
	transform: translateY(-2px)
}

.d2-pack > input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  background-color: #1e1e1e;
  cursor: pointer;
  position: relative;
}

/* Галочка при выборе */
.d2-pack > input[type="checkbox"]:checked {
  background-color: #f3a120; /* оранжевый */
  border-color: #f3a120;
}

.d2-pack > input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #1e1e1e;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.contentJS {
  max-height: 0; /* Начальная высота */
  overflow: hidden; /* Скрываем переполнение */
  opacity: 0;
  -webkit-transition: 0.3s ease-in-out;
  -o-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

.contentJS.show {
  max-height: 100%;
  opacity: 1;
  display: block;
}