 html, body {
    margin: 0 auto;
    padding: 0;
    background-color: #4b3a36;
    color: #FEFEFE;
    font-size: small;
    max-width: 100%;
    border-radius: 10px;
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial;
}

.container {
   position: relative;
    border: 1px solid #7d7d7d;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden; 
}

h1, h2, h3 {
    margin: 0;
    padding: 0;
}
.logo {
    display: flex;
    justify-content: center;   /* логотип по центру */
    align-items: center;
    position: relative;        /* чтобы можно было позиционировать флаг */
    border-radius: 10px 10px 0 0;
    background: #000;
}

.logo-img {
    display: block;
    margin: 0 auto;            /* картинка остаётся по центру */
}

.flag {
    position: absolute;
    right: 10px;               /* прижимаем к правому краю */
    top: 50%;
    transform: translateY(-50%); /* выравниваем по вертикали */
    display: flex;
    align-items: center;
}

.flag img {
    margin-right: 5px;
    vertical-align: middle;
}


.striped-box {
    width: 100%;
    height: 20px; /* высота полоски */
background: linear-gradient(to bottom, rgba(0, 0, 255, 0.738) 50%, rgba(255, 255, 0, 0.495) 50%);
}


input[type=submit]{
   background: linear-gradient(to bottom, #6b4f1d, #3e2a0f);
    border: 1px solid #c9a34e;
    color: #fcebbd;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 5px #c9a34e;
    transition: transform 0.1s ease-in-out, box-shadow 0.2s;
}
form.trade-chat {
  display: flex;
  gap: 8px;
  margin: 5px 0;
}

textarea, input[type="text"], input[type="password"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #c9a34e;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

form.trade-chat input[type="text"]:focus {
  border-color: #c9a34e;
  box-shadow: 0 0 0 2px rgba(250, 234, 111, 0.2);
  outline: none;
}




a{
    text-decoration: none;
    color: #eea23e;
}
a.str{
background: #000;
    border: 2px solid #dda50b;
    padding: 10px;
    margin-left: 0px;
    border-radius: 50px;
}

.top{
    display: block;
background: linear-gradient(to bottom, #7a8060 0%, #5e6449 50%, #3c3f2d 100%);    border-top: 1px solid #7c7f74;
    border-top: 1px solid #7c7f74;
    border-bottom: 1px solid #303030;
    padding-left: 4px;
    white-space: nowrap;
}
.link {
    display: block;
    background: #5e6449;
    border-top: 1px solid #7c7f74;
    border-bottom: 1px solid #303030;
    padding: 10px;
    padding-left: 4px;
}
link a{
    color: #ffffff;
}
a.link{
    display: block;
background: linear-gradient(to bottom, #7a8060 0%, #5e6449 50%, #3c3f2d 100%);    border-top: 1px solid #7c7f74;
    border-bottom: 1px solid #303030;
    padding: 10px;
    font-size: 20px;
    color: #fff;
    border-radius: 7px;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 2px 2px 0 #000;
}
.nav {
  display: flex;
  justify-content: space-between; /* блоки слева и справа */
  margin: 5px;
}
.nav b{
background: #5e6449;
    border: 2px solid #303030;
    padding: 10px;
    margin-left: 0px;
    border-radius: 50px;
}
.nav1, .nav2 {
  flex: 1;               /* обе половины занимают равное место */
  display: flex;         /* делаем ссылки в ряд */
  justify-content: space-around; /* равномерное распределение */
  text-align: center;
}



.loc {
    display: block;
    background: #5e6449;
    border-top: 1px solid #7c7f74;
    border-bottom: 1px solid #303030;
    padding: 10px;
    border-radius: 7px;
    font-family: sans-serif;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 2px 2px 0 #000;

}

.loc p{
font-size: small;
}
.onloc {
  background: #5e6449;
    border-top: 1px solid #7c7f74;
    border-bottom: 1px solid #303030;
    padding: 10px;
    border-radius: 7px;
    font-family: sans-serif;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 2px 2px 0 #000;
    display: flex;
    justify-content: center;   /* центрируем по горизонтали */
    align-items: center;       /* выравниваем по вертикали */
    gap: 10px;                 /* расстояние между картинкой и текстом */
}

.onloc h2 {
    margin: 0;                 /* убираем лишние отступы */
}

/* .loc h2
 {
    display: inline-block;
} */
.loc a {
color: #ffffff;
}
.move-btn{
background: #9b3d3d;
}
.move-btn > button {
    cursor: pointer;
}
.info{
    background: #262626;
    padding: 15px;
    border: 4px solid #666565;
    margin: 2px;
    border-radius: 10px ;
    font-size: 20px;
}
.panel_one{
	color: #bebebe;
	display: inline-block;
	background: #262626;
	padding: 10px;
	border-right: 1px solid #353535;

}
.panel_two {
    margin: 3px 0px;
    background: #272526;
    border: 1px solid #dda50b;
    padding: 10px;
    border-radius: 7px;
}
.c{    
    display: block;
    margin: 3px 0px;
    background: #272526;
    border: 1px solid #dda50b;
    padding: 10px;
    border-radius: 7px;
}

.white{
    background: #b1b1b1;
    color: #000;
    padding: 0 5px;
}
.white a{
    color: #000;
}
.center{text-align: center;}
.line{
    background: url(border.png) repeat-x;
    height: 5px;
}
.bar{
background: #343434;
height: 5px;
}
.xp{
background: orange;
height: 5px;
}
.inventory {margin:20px auto;margin: 3px 0px;
    background: #382e30;
    border: 1px solid #624b46;
    padding: 10px;
    color:#eee;padding:15px;border-radius:10px;}
.grid {display:grid;grid-template-columns:repeat(5,50px);gap:5px;margin:10px 0;}
.slot {width:50px;height:50px;background:#444;border:1px solid #666;border-radius:5px;}
.slot.full {background:#933;}

button {    background: linear-gradient(to bottom, #6b4f1d, #3e2a0f);
    border: 1px solid #c9a34e;
    color: #fcebbd;
    font-size: 20px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 5px #c9a34e;
    transition: transform 0.1s ease-in-out, box-shadow 0.2s;
}
/* button:hover {background:#777;} */
.rpg-button {
    background: linear-gradient(to bottom, #6b4f1d, #3e2a0f);
    border: 1px solid #c9a34e;
    color: #fcebbd;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 5px #c9a34e;
    transition: transform 0.1s ease-in-out, box-shadow 0.2s;
}

.rpg-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #fcebbd;
}

.rpg-button img {
    vertical-align: middle;
    margin-right: 5px;
}

/* стиль для кнопки "Снять" */
.equip-btn.unequip {
      background: #777;    /* серая */
}

#enemyName{
  font-size: 20px;
}


.inventory-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 20px #000;
}

/* Верхняя часть */
.inventory-top {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* Левая панель — информация */
.char-info {
    width: 40%;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 10px;
}
.char-info h3 {
    color: #ffa500;
    text-align: center;
    margin-bottom: 5px;
}

/* Правая панель — экипировка */
.equip-panel {
    width: 55%;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 10px;
}
.equip-slot {
    border: 1px solid #444;
    border-radius: 6px;
    padding: 5px;
    margin: 5px 0;
    background: #151515;
}
.item{
    width:78px;
    position:relative;
    object-fit:contain;
    border:1px solid #555;
    padding:5px;
    text-align:center;
    background:#222;
    border-radius:8px;
    font-family: sans-serif;
}

.item > a {
  font-size: 8px;
}

.item > button {
  font-size: 14px;
}

/* Нижняя часть — инвентарь */
.inventory-bottom {
    margin-top: 15px;
    width: 100%;
}
.inventory-grid {
    display: grid;
    gap: 10px;
}
.item-cell {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 5px;
    text-align: center;
}
.item-cell button {
    margin-top: 5px;
    background: #af0000;
    color: #ddd;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 2px 5px;
    cursor: pointer;
}
.item-cell button:hover {
    background: #333;
}
.equip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: auto;
  text-align: center;
  gap: 5px;
}
.equip-cell {
  border: 1px solid #666;
  border-radius: 8px;
  padding: 4px;
  background: #111;
  font-family: sans-serif;
}
.move-container {
    display: flex;              /* Горизонтальное расположение */
    align-items: center;        /* Центровка по вертикали */
    gap: 5px;   
    white-space: nowrap;               /* Расстояние между кнопками и текстом */
}

#countdown {
    font-size: 22px;            /* Увеличенный размер текста */
    font-weight: bold;          /* Жирный текст */
    color: lime;             /* Светло-серый цвет (можно заменить) */
}
.countmaster {
    font-size: 18px;            /* Увеличенный размер текста */
    font-weight: bold;          /* Жирный текст */
    color: lime;             /* Светло-серый цвет (можно заменить) */
}
#inventory{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    /* align-items: center; */
    justify-content: space-evenly;
}

.countwar {
    font-size: 15px;
    font-weight: bold;
    color: lime;
}

.verstak-item {
  border-radius: 12px;
  background: #222;
  margin: 10px;
  padding: 15px;
  position: relative;
}


.verstak-item img {
  border: 4px solid #444;
  border-radius: 8px;
  background: #000;
  margin: 10px 0;
}

button.craft-btn {
  font-size: 20px;
  background: #439238;
  color: #fff;
  border: 4px solid #000;
  padding: 12px 24px;
  cursor: pointer;
  box-shadow: 6px 6px 0 #000;
  transition: transform 0.15s;
}

button.craft-btn:hover {
  transform: scale(1.1) rotate(-3deg);
  background: #ff6347;
}
.reload-container { display: none; }
.reload-container.active { display: block; }

/* метательное оружие всегда видно */
.reload-container.throwable { display: block; }

.weapon-ammo { 
    position: absolute;
    bottom: 5px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #0f0;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
 }

.weapon-quantity { 
    position: absolute;
    bottom: 5px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #0f0;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
 }

.reload-btn {
  position: absolute; 
    top: 76px;
    right: 16px;
    display: inline-block;
    margin-bottom: 4px;
    padding: 0 12px;
    background: none;
    border: none;
    box-shadow: none;
}

img {
    vertical-align: middle;
}


/* Вестак */


.verstak-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.verstak-item {
  background: #222;
  color: #eee;
  border-radius: 10px;
  padding: 15px;
  width: 100%;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.item-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.item-icon {
  width: 64px;
  height: 64px;
  margin-right: 10px;
}

.item-info b {
  font-size: 18px;
}

.desc {
  font-size: 14px;
  color: #aaa;
  margin: 2px 0 0;
}

.ingredients {
  margin: 10px 0;
}

.ingredient {
  font-size: 14px;
  margin: 2px 0;
}

.ok {
  color: lime;
  font-weight: bold;
}

.no {
  color: red;
  font-weight: bold;
}

.craft-btn {
  text-align: center;
}

.recipe-card {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.recipe-left, .recipe-right {
  text-align: center;
  margin: 0 10px;
}

.recipe-arrow {
  font-size: 32px;
  font-weight: bold;
  margin: 0 10px;
}
 /* Первый квест новичка */

.quest-window {
    background:#1b1b1b;
    border:2px solid #555;
    padding:10px;
    color:#ddd;
}

.npc-message {
    background:red;
    padding:10px;
    border-radius:8px;
    margin:10px 0;
    border:1px solid #555;
}

.quest-npc {
    font-weight: bold;
    font-style:italic;
    color:#ffffff;
    margin-bottom:8px;
    display: inline;
}

.quest-text {
    font-size:13px;
    margin-bottom:10px;
}

.quest-item {
    font-weight: bold;
    font-size:13px;
    color:rgb(255, 0, 0);
}

.quest-item.done {
    font-weight: bold;
    color:#4af800;
}

.quest-text{
    background: #222;
    color: #eee;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
 }
.quest-text div,
.quest-text form {
    margin: 0;
}

.modal {
  display: none; /* скрыто по умолчанию */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #222;
  color: #eee;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.7);
  text-align: center;
}
.modal-content button {
  margin: 10px;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
#confirm-yes { background: #4caf50; color: #fff; }
#confirm-no { background: #f44336; color: #fff; }
@keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0.3; }
    100% { opacity: 1; }
}

#confirm-yes-exit { background: #4caf50; color: #fff; }
#confirm-no-exit { background: #f44336; color: #fff; }
@keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0.3; }
    100% { opacity: 1; }
}

.info-item {
    background: #222;
    color: #eee;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

  .btn{
    display:inline-block;
    padding:8px 16px;
    border-radius:6px;
    text-decoration:none;
    background: #003a00;
    color: #6bff6b;
    border: 1px solid #6bff6b;
 }

 .notify {
    display: block;
    padding: 8px;
    margin: 10px auto;
    max-width: 90%;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    position: relative; /* важно для псевдоэлемента */
}

.notify.error {
    background: #3a0000;
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

/* хвостик с обводкой */
/* .notify.error::before,
.notify.error::after {
    content: "";
    position: absolute;
    left: 25px;
    bottom: 31px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 0px solid transparent;
}
.notify.error::before {
    border-bottom: 15px solid #ff6b6b;
    bottom: 32px;
}

.notify.error::after {
    border-bottom: 15px solid #3a0000;
} */


.notify.success {
    background: #003a00;
    color: #6bff6b;
    border: 1px solid #6bff6b;
}

.notify.warning {
    background: #786c00;
    color: #fff;
    border: 1px solid #fbff2d;
}
.hidden {
    display: none;
}

.trade-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.tradecd-item {
    background: #222;
    color: #eee;
    border-radius: 10px;
    padding: 0px;
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.trade-card {
    display: flex;
    /* align-items: center; */
    justify-content: center;
    margin: 10px 0;
}
.trade-card2 {
  border: 4px solid #444;
  border-radius: 8px;
  background: #000;
  padding: 10px 10px;
  margin:5px 0;
}
.empty {
  border: 4px solid #444;
  border-radius: 8px;
  background: #000;
  padding: 50px 50px;
  margin:5px 0;
}
 .trade-item img {
  border: 4px solid #444;
  border-radius: 8px;
  background: #000;
  margin: 10px 0;
}

.trade-left, .trade-right {
  text-align: center;
  /* margin: 0 10px; */
  background: #222;
  /* border-radius: 10px; */
  padding: 10px; /* чтобы не было лишних отступов */
  /* border: 1px solid #fff; */
}
.trade-h3 {
display: flex;
justify-content: space-between;
margin: 10px;
}
.tradeH3-left{
  
}
.tradeH3-right{
     text-align: right;
}
.arrows {
  display: flex;
  flex-direction: column; /* расположить элементы вертикально */
  align-items: center;    /* выровнять по центру */
}

.left-arrow {
  font-size: 32px;
  font-weight: bold;
  margin:60px 0;
}
.right-arrow {
  font-size: 32px;
  font-weight: bold;
  margin:60px 0;
}
.marquee {
  width: 80px;              /* ширина блока */
  overflow: hidden;         
  white-space: nowrap;      
  position: relative;
}

.marquee span {
  display: inline-block;
}

/* класс для анимации */
.marquee.animate span {
  animation: marquee 1s linear infinite alternate;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-100% + 80px)); }
}

.qty {
  color: lime;
  font-weight: bold; /* можно добавить жирность для акцента */
}
.trade-log {
  background:#b1b1b1;
  max-height:220px;
  overflow-y:auto;
  font-size:13px;
  scrollbar-width: thin;              /* для Firefox */
  scrollbar-color: #333 #5e6449;      /* для Firefox */
}

.trade-log::-webkit-scrollbar {
  width: 8px;
}

.trade-log::-webkit-scrollbar-track {
  background: #5e6449;
}

.trade-log::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
.scroll-wrapper {
  position: relative;
}

.fake-scroll {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: #5e6449;
}


.log-add     { color:#000000; }
.log-remove  { color:#000000; }
.log-confirm { color:#000000; }
.log-cancel  { color:#000000; }
.log-message { color:#000000; }

.log-row {
    margin-bottom:4px;
}

.time {
    color:#000000;
    margin-right:5px;
}

.trade-left.frozen,
.trade-right.frozen {
  position: relative;
  pointer-events: none; /* блокирует клики внутри */
  opacity: 0.5;         /* затемнение */
}

.trade-left.frozen::after,
.trade-right.frozen::after {
  content: "🔒"; /* можно заменить на картинку замка */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: gold;
  pointer-events: none; /* замок сам не кликается */
}

/* frozen — блокирует взаимодействие */
.frozen {
  position: relative;
  pointer-events: none;
  opacity: 0.5;
}
.frozen::after {
  content: "🔒";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: gold;
}

/* locked — только визуальное затемнение для чужого списка */
.locked {
  position: relative;
  opacity: 0.5;
}
.locked::after {
  content: "🔒";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: silver;
}
.white.to-me {
  font-weight: bold;
background-color: rgb(255 255 0 / 42%);
}



.mail-container {
  background: #674444;
  border-radius: 15px;
  padding: 20px;
}

.mail-form input {
  border: 1px solid #c9a34e;
  border-radius: 6px;
}

.mail-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.btn-send {
  background: linear-gradient(to bottom, #6b4f1d, #3e2a0f);
  border: 1px solid #c9a34e;
  color: #fcebbd;
}

.btn-refresh {
  padding: 11px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.mail-bubble {
  max-width: 70%;
  padding: 10px 14px;
  margin: 8px;
  border-radius: 20px;
  position: relative;
  border:1px solid #FFF ;
  clear: both;
}

.bubble-left {
  background: #151515;
  float: left;
  border-bottom-left-radius: 0px;
}

.bubble-right {
  background: #60461a;
  float: right;
  border-bottom-right-radius: 0px;
}
.mail-thread::after { content: ""; display: table; clear: both; }
.bubble-text {
  font-size: 14px;
  line-height: 1.4;
}

.bubble-meta {
  font-size: 9px;
  color: #979797;
  margin-top: 4px;
  text-align: right;
}

.mail-unread {
  color: red;
  font-weight: bold;
}

.mail-pagination {
  text-align: center;
  margin-top: 15px;
}


/* Контейнер формы */
.chat-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 8px;
  box-sizing: border-box;
}

/* Обёртка поля + кнопки */
.chat-input-wrap {
  position: relative;
  display: block;
}

/* Само поле */
.chat-input-wrap input[type="text"] {
  width: 100%;
  padding: 12px 48px 12px 12px; /* правый паддинг = ширина кнопки + отступ */
  border: 1px solid #c9a34e;
  background: #fff;
  color: #111;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: box-shadow .15s, border-color .15s;
}

/* Фокус поля */
.chat-input-wrap input[type="text"]:focus {
  border-color: #a67c00;
  box-shadow: 0 0 0 4px rgba(166,124,0,0.12);
}

/* Кнопка отправки, поверх поля справа */
.send-btn {
  background: none;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform .08s ease, box-shadow .12s ease, opacity .12s;
}

/* Иконка наследует цвет кнопки */
.send-btn svg { display: block; color: #62470b; }

/* Hover / active */
/* .send-btn:hover { transform: translateY(-50%) scale(1.03); }
.send-btn:active { transform: translateY(-50%) scale(0.98); } */

/* Disabled state */
.send-btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: translateY(-50%);
}

/* Адаптив: на очень маленьких экранах чуть уменьшаем кнопку и паддинг */
@media (max-width: 360px) {
  .chat-input-wrap input[type="text"] { padding-right: 44px; }
  .send-btn { width: 32px; height: 32px; right: 4px; }
}

.hp-block {
  margin: 10px 0;
}

.hp-bar {
  width: 200px;
  height: 5px;
  background-color: #ccc;
  border: 1px solid #000;
  border-radius: 50px;
  margin-top: 5px;
  position: relative;
}

.hp-fill {
  height: 100%;
  width: 100%; /* начальное значение */
  background-color: #4e9a06; /* зелёный */
  border-radius: 50px;
  transition: width 0.3s, background-color 0.3s;
}


.tutorial-locked {
    pointer-events: none;
}

.tutorial-active {
    position: relative;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.tutorial-active a button{
    position: relative;
    animation: blink 1s infinite;
}

/* волны */
.tutorial-active::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(330, 579, 38, 0.4);
    transform: translate(-50%, -50%);
    animation: ripple 2s infinite;
    pointer-events: none; /* чтобы не мешало клику */
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes ripple {
    0% {
        width: 10px;
        height: 10px;
        opacity: 0.6;
    }
    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}


.tutorial-active::before {
    content: "⬇"; /* стрелка вниз */
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    color: rgb(0, 255, 38);
    animation: bounce 1s infinite; /* бесконечная анимация */
}

@keyframes bounce {
    0%   { transform: translateX(-50%) translateY(0); }
    50%  { transform: translateX(-50%) translateY(10px); }
    100% { transform: translateX(-50%) translateY(0); }
}


.tutorial-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    font-weight: bold;
    transform: translateX(-50%);
    background: black;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    z-index: 9999;
    border: 2px solid #0ed527;
}
.highlight {
    background: #c00;
    color: #660d0d;
    display: inline-block; 
    transform: rotate(-10deg);
}
/* /////////////// */

.bonus-float {
    position: absolute;   /* теперь относительно site-container */
    top: 59px;            /* отступ от верхнего края контейнера */
    left: 226px;          /* прижимаем к правому краю */
    animation: float 3s ease-in-out infinite;
    z-index: 100;
}
.bonus-float a {
    display: inline-block;
    text-align: center;
}
.bonus-float img {
    max-width: 300px;
    height: auto;
}

@keyframes float {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}


.gum-float {
    position: absolute;   /* теперь относительно site-container */
    top: 59px;            /* отступ от верхнего края контейнера */
    left: 226px;          /* прижимаем к правому краю */
    /* animation: float 3s ease-in-out infinite; */
    z-index: 100;
}
.gum-float a {
    display: inline-block;
    text-align: center;
}
.gum-float img {
    max-width: 300px;
    height: auto;
}
