@font-face {
  font-family: "RubikBoldLocal";
  src: url("font/RubikBold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  /* убираем тотальное скрытие */
  /* overflow: hidden; */
  overflow-x: hidden;      /* по X режем, по Y — можно скроллить */
  overflow-y: auto;

  background: #3a2219;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;

  /* вместо полного запрета жестов — только вертикальный пан */
  touch-action: pan-y;
  overscroll-behavior-y: contain;  /* не отдаём "потянуть вниз" наружу */
  overscroll-behavior-x: none;     /* по X ничего не отдаём */
}

/* Корневая конфигурация "игрового окна" */
:root {
  /* ВЕРТИКАЛЬНЫЙ СДВИГ ТОЛЬКО ДЛЯ /img/nav/top_balance_bg.png
     Можно ставить 0, -40px, -80px и т.п. — на остальной UI не влияет */
  --top-underlay-offset: -56px;

  /* Габариты виртуальной игровой области (до масштабирования)
     Соотношение 972 x 1454, как ты просил */
  --game-width: 972;   /* px */
  --game-height: 1583; /* px */

  /* Отступы под верхнюю и нижнюю панель/меню.
     Чуть увеличила top-ui-gap, чтобы учесть профиль под балансами. */
  --top-ui-gap: 45px;
  --bottom-ui-gap: -10px;

  /* Безопасный отступ сверху под Telegram интерфейс:
     пробуем и var(--tg-safe-area-inset-top), и env(safe-area-inset-top) */
  --safe-area-top: max(
    var(--tg-safe-area-inset-top, 0px),
    env(safe-area-inset-top, 0px)
  );

  /* СПЯЩИЙ персонаж (character_slep.gif) */
  --character-sleep-height: 18%;  /* % от высоты игрового окна */
  --character-sleep-top: 71.2%;   /* позиция внутри окна */
  --character-sleep-left: 60.25%;

  /* КОПАЮЩИЙ персонаж (character_kik.gif) */
  --character-mine-height: 24%;
  --character-mine-top: 73.4%;
  --character-mine-left: 63.49%;

  /* ЗОЛОТО */
  --gold-height: 16%;
  --gold-top: 79.5%;
  --gold-left: 75.5%;

  --nav-active-color: #ffd46a;
  --nav-inactive-color: #a5abb6;

  /* Высота подкладки под нижнее меню (можешь менять как хочешь) */
  --bottom-underlay-height: 135px; /* пример: 50px, ширина авто */

  /* Отступы снизу для подкладки и самого нижнего меню —
     чтобы легко поднимать/опускать всю зону. */
  --bottom-underlay-bottom: -2px;
  --bottom-nav-bottom: 20px;

  /* Цвета профиля и кнопок (можешь играться с каждым отдельно) */
  --profile-bg: #4a2a1c;
  --profile-border: #382526;
  --profile-name-color: #ffffff;
  --profile-username-color: #d7b89a;

  --profile-btn1-bg: #ffc99b;
  --profile-btn1-border: #382526;

  --profile-btn2-bg: #FFEAB3;
  --profile-btn2-border: #382526;

  /* ЛЕВЫЕ ВЕРТИКАЛЬНЫЕ ИКОНКИ (Профессии / Рейды / Маркет) */
  --left-menu-icon-size: 45px;      /* размер иконки (можешь менять) */
  --left-menu-offset-top: 180px;    /* отступ сверху от safe-area-top (под профилем) */
  --left-menu-offset-left: 19px;    /* отступ слева от края экрана */
  --left-menu-gap: 10px;            /* вертикальный отступ между иконками */

  /* ПРАВАЯ КОЛОНКА УРОВНЕЙ ШАХТЫ */
  --right-levels-offset-top: 265px;   /* чтобы было симметрично с левыми иконками */
  --right-levels-offset-right: 0px;  /* отступ справа от края экрана */
  --right-levels-width: 75px;         /* ширина блока уровней */
}

/* Обёртка под игровое окно:
   занимает пространство между верхним и нижним меню и
   центрирует саму сцену. */
.game-wrapper {
  position: fixed;
  left: 0;
  right: 0;
  /* Добавили safe-area-top, чтобы сцена не залезала под шапку ТГ */
  top: calc(var(--safe-area-top) + var(--top-ui-gap));
  bottom: var(--bottom-ui-gap);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none; /* клики пройдут внутрь сцены */
  z-index: 1;
}

/* Игровая сцена фиксированного размера (до масштабирования).
   Масштабируем её через transform из JS, чтобы на всех устройствах
   она выглядела одинаково. */
.scene {
  position: absolute;
  width: calc(var(--game-width) * 1px);
  height: calc(var(--game-height) * 1px);
  overflow: hidden;
  touch-action: none;
  transform-origin: 50% 50%;
  pointer-events: auto; /* сама сцена кликабельна */

  /* Рамка + скруглённые углы + фон внутри окна */
  background: #050816;
  border-radius: 26px;
}

/* Фон уже внутри фиксированной сцены:
   растягиваем на всю область окна, без translate(-50%, -50%). */
.scene-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* для твоей 972x1454 отлично подойдёт */
  pointer-events: none;
  user-select: none;
}

/* Базовый стиль для обоих персонажей */
.character-img {
  position: absolute;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  cursor: default;
  user-select: none;
  touch-action: none;
  width: auto;
  transition:
    top 0.25s ease,
    left 0.25s ease,
    height 0.25s ease,
    transform 0.25s ease,
    opacity 0.2s ease;
  z-index: 10;
}

/* Спящий персонаж */
.character-img.--state-sleep {
  top: var(--character-sleep-top);
  left: var(--character-sleep-left);
  height: var(--character-sleep-height); /* % от высоты сцены */
}

/* Копающий персонаж */
.character-img.--state-mine {
  top: var(--character-mine-top);
  left: var(--character-mine-left);
  height: var(--character-mine-height);
}

/* По умолчанию второй персонаж (копатель) скрыт,
   пока не начнётся добыча */
#characterMine {
  opacity: 0;
  visibility: hidden;
}

/* Якорь для вылетающих Z — оставляем, но теперь позиционирование делаем из JS по персонажу */
.z-anchor {
  position: absolute;
  top: calc(var(--character-sleep-top) - 4%);
  left: calc(var(--character-sleep-left) + 1.5%);
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  pointer-events: none;
  user-select: none;
  z-index: 11;
}

/* Золото */
.gold-pile {
  position: absolute;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  pointer-events: none;
  user-select: none;
  z-index: 9;
  height: var(--gold-height);
  top: var(--gold-top);
  left: var(--gold-left);
}

/* Летящие "Z" (храп) */
.z-letter {
  position: absolute;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(1);
  animation-name: zFloat;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  z-index: 30;
}

@keyframes zFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(0.85);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%)
      translate3d(var(--z-offset-x, -90px), var(--z-offset-y, -90px), 0)
      scale(1.3);
  }
}

/* ===== КНОПКА "ДОБЫЧА" ПО ЦЕНТРУ ЭКРАНА НАД ПЕРСОНАЖЕМ ===== */
.mine-button-wrap {
  position: absolute;
  left: 73%;
  top: 56%;             /* двигаешь вверх/вниз, если нужно */
  transform: translateX(-50%);
  z-index: 40;
  pointer-events: none; /* чтобы фон под ним не ломался */
}

.mine-button {
  pointer-events: auto;
  padding: 13px 25px;
  border-radius: 999px;
  /* лёгкий объёмный градиент вместо плоского цвета */
  background: linear-gradient(180deg, #fff3c5 0%, #fff3c5 100%);
  font-family: "RubikBoldLocal", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #3a2300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  cursor: pointer;
  outline: none;
  box-shadow:
    0 4px 0 #382526;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease;
  border: 2.5px solid #382526; /* ← Добавленная красивая обводка */
}

.mine-button:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 rgba(163, 111, 30, 0.9),
    0 3px 8px rgba(0, 0, 0, 0.35);
  filter: brightness(0.97);
}

.mine-button__label {
  line-height: 1.1;
}

.mine-button__timer {
  font-size: 30px;
  opacity: 0.9;
}

.mine-button[disabled] {
  opacity: 0.8;
  cursor: default;
}

/* ================= ПОДКЛАДКА ПОД НИЖНЕЕ МЕНЮ =================
   Картинка поверх игровой области, но под самими кнопками меню. */
.bottom-nav-underlay {
  position: fixed;
  left: 50%;
  bottom: var(--bottom-underlay-bottom); /* управляем отступом снизу */
  transform: translateX(-50%);
  z-index: 45;  /* выше сцены, ниже меню */
  pointer-events: none;
}

.bottom-nav-underlay__img {
  height: var(--bottom-underlay-height); /* ты можешь менять эту переменную */
  width: auto;
  display: block;
}

/* ================= НИЖНЕЕ МЕНЮ (5 пунктов) ================= */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--bottom-nav-bottom); /* нижнее меню тоже через переменную */
  padding: 0 15px;
  background: transparent; /* без заднего фона */
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0px;
  z-index: 50;
  -webkit-user-select: none;
  user-select: none;
}

.bottom-nav__item {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #FFF;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease;
  opacity: 0.95;
  touch-action: manipulation;
}

.bottom-nav__item:active {
  transform: translateY(-1px) scale(0.97);
  opacity: 0.9;
}

.bottom-nav__item-icon {
  width: 35px;
  height: 35px;
  margin-bottom: 3px;
  object-fit: contain;
  pointer-events: none;
}

.bottom-nav__item-label {
  font-family: "RubikBoldLocal", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.bottom-nav__item.--active {
  color: var(--nav-active-color);
  transform: translateY(-2px) scale(1.05);
  opacity: 1;
}

/* ================= ВЕРХНЯЯ ПОДКЛАДКА ПОД БАЛАНСЫ ================= */
.top-balance-underlay {
  position: fixed;
  left: 50%;
  /* учитываем safe-area-top и твой сдвиг для /img/nav/top_balance_bg.png */
  top: calc(var(--safe-area-top) + var(--top-underlay-offset));
  transform: translateX(-50%);
  z-index: 35; /* над сценой, но под самими блоками баланса */
  pointer-events: none;
}

.top-balance-underlay__img {
  height: 245px; /* подберёшь под свою картинку */
  width: auto;
  display: block;
}

/* ================= ВЕРХНЯЯ ПАНЕЛЬ: БАЛАНСЫ + ПРОФИЛЬ ================= */
.top-balance {
  position: fixed;
  left: 0;
  right: 0;
  /* вместо жёсткого 10px — safe-area-top + отступ */
  top: calc(var(--safe-area-top) + 50px);
  padding: 0 18px;
  z-index: 60; /* выше всего остального UI */
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none; /* наружный слой не ловит клики */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.top-balance__row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: auto; /* сама строка кликабельна */
}

.top-balance__row--profile {
  margin-top: 2px;
}

.balance-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;   /* центрируем содержимое по горизонтали */
  padding: 6px 16px 6px 36px;
  width: 44vw;          /* одинаковая длина */
  max-width: 220px;     /* ограничение, чтобы не разъезжалось на больших экранах */
  min-width: 140px;
  height: 30px;
  border-radius: 999px;
  background: #cd864d;
  box-shadow:
    0 2px 0 #382526;
  border: 2px solid #382526; /* ← Добавленная красивая обводка */
  pointer-events: auto;
  overflow: visible;
}

.balance-pill--gold {
  background: #ffe5b0;
}

.balance-pill--gems {
  background: #ffb6b6;
}

.balance-pill__icon-wrap {
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.balance-pill__icon-wrap img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
}

.balance-pill__value {
  font-family: "RubikBoldLocal", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #ffffff;
  white-space: nowrap;

  /* добавлено для центрирования цифры */
  flex: 1 1 auto;
  text-align: center;
}

.balance-pill--gold .balance-pill__value {
  color: #3c2418;
}

.balance-pill--gems .balance-pill__value {
  color: #3c2418;
}

/* ===== ПРОФИЛЬ ПОД БАЛАНСАМИ + 2 ИКОНКИ-КНОПКИ ===== */

.profile-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.profile-row__item {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Профиль занимает всё оставшееся место */
.profile-row__item--profile {
  flex: 1 1 auto;
  max-width: 220px; /* чтобы оно не шире, чем баланс, по ощущениям */
  min-width: 120px;
  height: 50px;     /* общая высота профиля и иконок */
}

/* Кнопки-иконки — квадратные (ширина = высоте) */
.profile-row__item--icon {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
}

.profile-card {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffc99b;
  border: 2px solid var(--profile-border);
  box-shadow:
    0 2px 0 #382526;
  overflow: hidden;
}

.profile-card__avatar-wrap {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-card__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-card__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-card__name {
  font-family: "RubikBoldLocal", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #3c2418;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-card__username {
  font-size: 11px;
  color: #684838;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Две одинаковые иконки-кнопки справа */
.profile-icon-btn {
  width: 100%;
  height: 100%;
  border-radius: 999px; /* при квадратном контейнере — круг */
  border: 2px solid var(--profile-btn1-border);
  background: var(--profile-btn1-bg);
  box-shadow:
    0 2px 0 #382526;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease,
    filter 0.1s ease;
}

.profile-icon-btn__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.profile-icon-btn:active {
  transform: translateY(1px) scale(0.97);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.55);
  filter: brightness(0.96);
}

/* Лёгкое покачивание второй кнопки */
@keyframes profileBtnWiggle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(0) rotate(-7deg);
  }
  50% {
    transform: translateY(0) rotate(7deg);
  }
  75% {
    transform: translateY(0) rotate(-5deg);
  }
}

/* Вторая кнопка своим цветом + анимация покачивания */
.profile-icon-btn--second {
  background: var(--profile-btn2-bg);
  border-color: var(--profile-btn2-border);
  animation: profileBtnWiggle 2.5s ease-in-out infinite;
  transform-origin: center center;
}

/* ===== ЛЕВАЯ ВЕРТИКАЛЬНАЯ КОЛОНКА: ПРОФЕССИИ / РЕЙДЫ / МАРКЕТ ===== */
.left-menu {
  position: fixed;
  left: var(--left-menu-offset-left);
  top: calc(var(--safe-area-top) + var(--left-menu-offset-top));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--left-menu-gap);
  z-index: 55; /* ниже верхнего HUD (60), выше сцены (1) */
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
}

.left-menu__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
}

.left-menu__icon-wrap {
  width: var(--left-menu-icon-size);
  height: var(--left-menu-icon-size);
  display: flex;
  align-items: center;
  justify-content: center;
  /* без обводок и теней, как просил */
  background: transparent;
}

.left-menu__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.left-menu__label {
  margin-top: 2px;
  font-family: "RubikBoldLocal", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
  text-align: center;
  white-space: nowrap;
}

/* Пульсация подсветки для иконки "Рынок" */
.left-menu__item--market .left-menu__icon-wrap {
  animation: marketPulse 2.8s ease-in-out infinite;
}

@keyframes marketPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* ===== ПРАВАЯ ВЕРТИКАЛЬНАЯ КОЛОНКА: УРОВНИ ШАХТЫ ===== */
.right-levels {
  position: fixed;
  right: var(--right-levels-offset-right);
  top: calc(var(--safe-area-top) + var(--right-levels-offset-top));
  width: var(--right-levels-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 55; /* как левая колонка */
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
}

.right-levels__scale {
  width: 90%;
  padding: 5px 6px 8px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

/* Бокс для уровня (Ур.1, Ур.2) */
.right-levels__box {
  width: 100%;
  border-radius: 10px;
  padding: 3px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.right-levels__box--current {
  background: #fff2c5;
  border: 1px solid var(--profile-border);
  box-shadow:
    0 2px 0 #382526;
}

.right-levels__box--next {
  background: rgba(0, 0, 0, 0.55);
}

.right-levels__level-current {
  font-family: "RubikBoldLocal", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  font-size: 11px;
  color: #3c2418;
  white-space: nowrap;
}

.right-levels__scale-bar {
  position: relative;
  width: 10px;
  height: 140px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.right-levels__scale-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffcf70 0%, #ffcf70 100%);
  transition: height 0.25s ease;
}

.right-levels__level-next {
  font-family: "RubikBoldLocal", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  font-size: 10px;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
}

/* Метрики: общее время и множитель — максимально минималистично */
.right-levels__metric {
  width: 100%;
  border-radius: 999px;
  padding: 2px 5px;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: "RubikBoldLocal", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  font-size: 10px;
  color: #ffffff;
  white-space: nowrap;
  text-align: center;
}

/* скрываем подписи "В работе" и "Множитель", оставляем только цифры */
.right-levels__metric--time .right-levels__metric-label,
.right-levels__metric--mult .right-levels__metric-label {
  display: none;
}

.right-levels__metric--time .right-levels__scale-time,
.right-levels__metric--mult .right-levels__mult-value {
  font-size: 11px;
}

.right-levels__scale-time {
  white-space: nowrap;
}

.right-levels__mult-value {
  font-size: 11px;
  color: #ffe06a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* кликабельность */
.right-levels__level-current,
.right-levels__level-next,
.right-levels__scale-time,
.right-levels__mult-value {
  cursor: pointer;
}

.right-levels__metric-label {
  opacity: 0.85;
}

/* Оставляем старые классы (scale-info, scale-mult), чтобы ничего не ломать,
   но в верстке они теперь не используются как отдельный блок */
.right-levels__scale-info {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-family: "RubikBoldLocal", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  font-size: 10px;
  color: #ffffff;
  text-align: center;
}

.right-levels__scale-mult {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.right-levels__list {
  width: 100%;
  display: none; /* остальные уровни скрыты, но разметка сохранена */
  flex-direction: column;
  gap: 3px;
  max-height: 210px;
  overflow: hidden; /* чтобы 20 строк не сползали вниз за пределы экрана */
}

.right-levels__item {
  width: 100%;
  border-radius: 10px;
  padding: 2px 4px;
  background: rgba(0, 0, 0, 0.22);
}

.right-levels__item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: "RubikBoldLocal", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  font-size: 10px;
  line-height: 1.1;
  color: #ffffff;
  white-space: nowrap;
}

.right-levels__item-level {
  margin-right: 4px;
}

.right-levels__item-time {
  opacity: 0.9;
}

.right-levels__item--active {
  background: #FFCB76;
  box-shadow:
    0 2px 0 #382526;
}

.right-levels__item--active .right-levels__item-row {
  color: #3c2418;
}

/* ===== TOAST-УВЕДОМЛЕНИЯ ===== */
.toast-container {
  position: fixed;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%);
  z-index: 120;
  pointer-events: none;
}

.toast {
  display: inline-block;
  max-width: 260px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  border: 2px solid #382526;
  font-family: "RubikBoldLocal", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  font-size: 12px;
  color: #fff2cc;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ОВЕРЛЕЙ РЕЗУЛЬТАТА МАЙНИНГА ===== */
.mine-result {
  position: fixed;
  left: 0;
  right: 0;
  top: -100px;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mine-result--visible {
  opacity: 1;
  transform: translateY(0);
}

.mine-result__inner {
  pointer-events: auto;
  padding: 12px 30px;
  border-radius: 18px;
  color: #ffffff;
  text-align: center;
  font-family: "RubikBoldLocal", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  max-width: 260px;
}

.mine-result__title {
  font-size: 18px;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.mine-result__subtitle {
  font-size: 13px;
  margin-bottom: 6px;
  opacity: 0.9;
}

.mine-result__rewards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 4px;
}

/* ОБНОВЛЁННЫЕ НАГРАДЫ: иконка + текст, без фона и теней позади */
.mine-result__reward {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  color: #ffe06a;
  text-shadow: none; /* без теней, чистый текст */
  white-space: nowrap;
}

.mine-result__reward-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.mine-result__reward-value {
  display: inline-block;
}

.mine-result__hint {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
}
