/* ============================= */
/* ИЗОЛИРОВАННЫЕ СТИЛИ ТОЛЬКО ДЛЯ MINES ИГРЫ */
/* ============================= */

/* Изолируем все стили внутри .mines-game-container */
.mines-game-container {
  /* Сброс наследования стилей */
  all: initial;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Основной контейнер */
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  /* Защита от скрытия */
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
}

.mines-game-container * {
  box-sizing: border-box !important;
}

.mines-game-container .mines__fairness-container {
  margin-top: 8px;
  width: 100%;
  max-width: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Экстренные стили для принудительного отображения ячеек */
.mines-game-container .mines__path-item.force-visible {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 40px !important;
  background: #2a2d47 !important;
  border: 1px solid #363a54 !important;
  border-radius: 6px !important;
  position: relative !important;
  cursor: pointer !important;
  align-items: center !important;
  justify-content: center !important;
  grid-auto-rows: 1fr !important;
  grid-auto-columns: 1fr !important;
}

/* Дополнительная защита игрового поля */
.mines-game-container .mines__path.force-visible {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  gap: 4px !important;
  padding: 10px !important;
  background: rgba(42, 45, 71, 0.1) !important;
  border-radius: 8px !important;
}

.mines-game-container .mines__game-area.force-visible {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 300px !important;
  background: rgba(36, 39, 66, 0.5) !important;
  border-radius: 12px !important;
}

/* ============================= */
/* Стили оплаты / ставки         */
/* ============================= */
.mines-game-container .mines__bet-label {
  display: block;
  font-size: 14px;
  color: #9ca3b8;
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  width: 100%;
}

.mines-game-container .mines__bet-input {
  width: 100%;
  max-width: 350px;
  margin-bottom: 16px;
}

.mines-game-container .bx-input__input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2a2d47;
  border: 2px solid #363a54;
  border-radius: 10px;
  padding: 0;
  height: 42px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.mines-game-container .mines {
  margin-bottom: 3% !important;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 5px auto 0;
  box-sizing: border-box;
  padding: 0 20px;
}

.mines-game-container .bx-input__input:focus-within {
  border-color: #4f7cff;
  background: #2d3150;
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.15);
}

.mines-game-container .fullInputWidth {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  outline: none;
  width: 100%;
  height: 100%;
  padding: 0 16px;
  text-align: left;
}

.mines-game-container .fullInputWidth::placeholder {
  color: #7a8093;
  font-weight: 400;
}

/* Level 1 (4x4) - принудительно равные размеры */
.mines-game-container .mines__path[style*="grid-template-columns: repeat(4, 1fr)"] {
  grid-template-rows: repeat(4, 0fr) !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
  
  /* Дополнительное принуждение для Safari */
  grid-auto-rows: 1fr !important;
  grid-auto-columns: 1fr !important;
}

/* Level 2 (5x5) - принудительно равные размеры */
.mines-game-container .mines__path[style*="grid-template-columns: repeat(5, 1fr)"] {
  grid-template-rows: repeat(5, 0fr) !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 6px !important;
  
  /* Дополнительное принуждение для Safari */
  grid-auto-rows: 1fr !important;
  grid-auto-columns: 1fr !important;
}

/* Level 3 (6x6) - принудительно равные размеры */
.mines-game-container .mines__path[style*="grid-template-columns: repeat(6, 1fr)"] {
  grid-template-rows: repeat(6, 0fr) !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 5px !important;
  
  /* Дополнительное принуждение для Safari */
  grid-auto-rows: 1fr !important;
  grid-auto-columns: 1fr !important;
}

/* Level 4 (7x7) - принудительно равные размеры */
.mines-game-container .mines__path[style*="grid-template-columns: repeat(7, 1fr)"] {
  grid-template-rows: repeat(7, 0fr) !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 4px !important;
  
  /* Дополнительное принуждение для Safari */
  grid-auto-rows: 1fr !important;
  grid-auto-columns: 1fr !important;
}

.mines-game-container .icon.money {
  width: 22px;
  height: 22px;
  margin-right: 16px;
  flex-shrink: 0;
}

.mines-game-container .mines__bet-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  flex-wrap: nowrap; /* Принудительно в один ряд */
}

.mines-game-container .mines__bet-buttons a {
  background: #2a2d47;
  border: 1px solid #363a54;
  color: #9ca3b8;
  padding: 10px 8px; /* Уменьшены горизонтальные отступы */
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px; /* Уменьшен размер шрифта для мобильных */
  font-weight: 600;
  text-decoration: none;
  flex: 1;
  text-align: center;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: all 0.2s ease;
  white-space: nowrap; /* Предотвращает перенос текста */
}

.mines-game-container .mines__bet-buttons a:hover {
  background: #2d3150;
  border-color: #4a5073;
  color: #ffffff;
  transform: translateY(-1px);
}

.mines-game-container .mines__bet-buttons a:active {
  transform: translateY(0);
  background: #242742;
}

/* ============================= */
/* Кнопки BET / Take / Auto      */
/* ============================= */
.mines-game-container .btn {
  transition: all 0.2s ease;
  height: 48px;
  border-radius: 12px;
  padding: 0px 18px;
  background: linear-gradient(109.64deg, #397ce6 5.39%, #397ce6 63.15%);
  color: #fff;
  font-weight: 600;
  overflow: hidden;
  position: relative;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mines-game-container .btn--blue {
  background: #4f7cff;
  color: #ffffff;
}

.mines-game-container .btn--big {
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
}

.mines-game-container .btn:disabled,
.mines-game-container .btn.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.mines-game-container .btn span {
  pointer-events: none;
}

/* ============================= */
/* КВАДРАТНЫЙ контейнер для игрового поля */
/* ============================= */
.mines-game-container .mines__game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px; /* Увеличено с 500px до 600px */
  background: #242742;
  border-radius: 12px;
  border: 1px solid #363a54;
  overflow: visible;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

/* НОВЫЙ: Квадратный wrapper для игрового поля */
.mines-game-container .mines__game-area-wrapper {
  width: 100%;
  max-width: 600px; /* Увеличено с 500px до 600px */
  aspect-ratio: 1 / 1; /* Сохраняем квадратную пропорцию */
  background: #242742;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  position: relative;
  padding: 20px; /* Увеличено с 15px до 20px для большего отступа */
  box-sizing: border-box;
}

.mines-game-container .mines__game-area {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* ИГРОВОЕ ПОЛЕ - теперь всегда квадратное */
.mines-game-container .mines__path {
  display: grid !important;
  
  /* Убираем все отступы и границы */
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  
  /* Grid настройки - КРИТИЧНО для Safari */
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  box-sizing: border-box !important;
  
  /* Убираем flex стили полностью */
  flex-direction: unset !important;
  justify-content: unset !important;
  flex-wrap: unset !important;
  align-items: unset !important;
  
  /* КРИТИЧНО: принудительно равные размеры */
  grid-auto-rows: 1fr !important;
  grid-auto-columns: 1fr !important;
  align-content: stretch !important;
  justify-content: stretch !important;
  justify-items: stretch !important;
  align-items: stretch !important;
  
  /* Заставляем Safari использовать одинаковые размеры */
  grid-template-rows: unset !important;
  grid-template-columns: unset !important;
}

/* ============================= */
/* УНИВЕРСАЛЬНЫЕ размеры ячеек для всех уровней */
/* ============================= */

.mines-game-container .mines__path[style*="grid-template-columns: repeat(4, 1fr)"] {
  grid-template-rows: repeat(4, 0fr) !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important; /* Больше промежуток для крупных ячеек */
}

.mines-game-container .mines__path[style*="grid-template-columns: repeat(4, 1fr)"] .mines__path-item {
  border-radius: 8px !important; /* Больше скругление */
}

.mines-game-container .mines__path[style*="grid-template-columns: repeat(4, 1fr)"] .mines__path-item > *,
.mines-game-container .mines__path[style*="grid-template-columns: repeat(4, 1fr)"] .mines__icon {
  width: 80% !important; /* Большие иконки для 4x4 */
  height: 80% !important;
  max-width: 45px !important;
  max-height: 45px !important;
}

/* Level 2 (5x5) - средне-большие ячейки */
.mines-game-container .mines__path[style*="grid-template-columns: repeat(5, 1fr)"] {
  grid-template-rows: repeat(5, 0fr) !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 6px !important;
}

.mines-game-container .mines__path[style*="grid-template-columns: repeat(5, 1fr)"] .mines__path-item {
  border-radius: 7px !important;
}

.mines-game-container .mines__path[style*="grid-template-columns: repeat(5, 1fr)"] .mines__path-item > *,
.mines-game-container .mines__path[style*="grid-template-columns: repeat(5, 1fr)"] .mines__icon {
  width: 75% !important;
  height: 75% !important;
  max-width: 38px !important;
  max-height: 38px !important;
}

/* Level 3 (6x6) - средние ячейки */
.mines-game-container .mines__path[style*="grid-template-columns: repeat(6, 1fr)"] {
  grid-template-rows: repeat(6, 0fr) !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 5px !important;
}

.mines-game-container .mines__path[style*="grid-template-columns: repeat(6, 1fr)"] .mines__path-item {
  border-radius: 6px !important;
}

.mines-game-container .mines__path[style*="grid-template-columns: repeat(6, 1fr)"] .mines__path-item > *,
.mines-game-container .mines__path[style*="grid-template-columns: repeat(6, 1fr)"] .mines__icon {
  width: 70% !important;
  height: 70% !important;
  max-width: 32px !important;
  max-height: 32px !important;
}


.mines-game-container .mines__path-item {
  /* КРИТИЧНО для Safari: метод через padding */
  aspect-ratio: unset !important;
  width: 100% !important;
  height: 0 !important;
  padding-bottom: 100% !important; /* Создаем идеальный квадрат */
  max-width: 100% !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  
  /* Позиционирование */
  position: relative !important;
  display: block !important;
  
  /* Принудительное растягивание по Grid */
  align-self: stretch !important;
  justify-self: stretch !important;
  
  /* Стили */
  border: 1px solid #363a54 !important;
  border-radius: 6px !important;
  background: #2a2d47 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  
  /* Убираем все flex свойства */
  align-items: unset !important;
  justify-content: unset !important;
  flex-direction: unset !important;
  flex-wrap: unset !important;
  flex: unset !important;
  
  /* Дополнительные ограничения для Safari */
  overflow: hidden !important;
  contain: layout style !important;
}

.mines-game-container .mines__path-item::before {
    content: "" !important;
    display: block !important;
    width: 100% !important;
    padding-bottom: 100% !important; /* Это создает квадрат */
    box-sizing: border-box !important;
}

.mines-game-container .mines__path-item > * {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 1 !important;
}


.mines-game-container .mines__path-item::before,
.mines-game-container .mines__path-item::after {
    display: none !important;
    content: none !important;
}

.mines-game-container .mines__path-item::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #2a2d47 !important;
    border: 1px solid #363a54 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  .mines-game-container .mines__path-item .mines__icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10 !important;
    width: 70% !important;
    height: 70% !important;
    max-width: 30px !important;
    max-height: 30px !important;
  }

.mines-game-container .mines__path-item:hover:not(.clicked):not(.bomb-revealed):not(.safe-revealed):not(.disabled) {
  background: #2d3150 !important;
  border-color: #4a5073 !important;
}

.mines-game-container .mines__path-item.clicked {
  background: rgba(0, 212, 170, 0.1) !important;
  border-color: #00d4aa !important;
}

.mines-game-container .mines__path-item.bomb-revealed {
  background: rgba(255, 107, 107, 0.1) !important;
  border-color: #ff6b6b !important;
}

.mines-game-container .mines__path-item.safe-revealed {
  background: rgba(0, 212, 170, 0.05) !important;
  border-color: #00d4aa !important;
  opacity: 0.7 !important;
}

.mines-game-container .mines__path-item.disabled {
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.mines-game-container .mines__icon {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 10 !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  display: block !important;
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .mines-game-container .mines__path {
      /* Дополнительные ограничения */
      contain: layout !important;
  }
  
  .mines-game-container .mines__path-item {
      transform: translateZ(0) !important;
      will-change: transform !important;
      backface-visibility: hidden !important;
  }
}

@media screen and (max-width: 767px) {
  .mines-game-container .mines__path-item {
      /* Еще более принудительные настройки для мобильного Safari */
      height: 0 !important;
      padding-bottom: 100% !important;
      min-height: 0 !important;
      max-height: none !important;
  }
  
  .mines-game-container .mines__path {
      /* Убираем все что может растянуть поле по высоте */
      max-height: none !important;
      height: 100% !important;
  }
}

.mines-game-container .mines__icon--bomb {
  background-image: url('/images/mines_bomb.png');
}

.mines-game-container .mines__icon--coin {
  background-image: url('/images/mines_diamond.png');
}

/* ============================= */
/* Уведомление о выигрыше         */
/* ============================= */
.mines-game-container .win-animation-local {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background: rgba(42, 45, 71, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  min-width: 200px;
  max-width: 280px;
  border: 1px solid #4f7cff;
  box-shadow: 0 0 25px rgba(79, 124, 255, 0.4);
}

.mines-game-container .win-animation-local__content {
  text-align: center;
  animation: winPulseLocal 0.8s ease-out;
}

.mines-game-container .win-animation-local__title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #4f7cff;
  text-shadow: 0 0 20px rgba(79, 124, 255, 0.8);
  margin-bottom: 12px;
  animation: winGlowLocal 2s ease-in-out infinite alternate;
}

.mines-game-container .win-animation-local__amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00d4aa;
  text-shadow: 0 0 15px rgba(0, 212, 170, 0.6);
  margin-bottom: 8px;
  animation: winBounceLocal 1s ease-in-out infinite;
}

.mines-game-container .win-animation-local__multiplier {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffd93d;
  text-shadow: 0 0 10px rgba(255, 217, 61, 0.6);
}

/* ============================= */
/* Стили для множителя (X)       */
/* ============================= */
.mines-game-container .mines__x-container {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  background: #242742;
  margin-top: 2px;
  border-radius: 0 0 12px 12px;
}

.mines-game-container .mines__x {
  background: #2a2d47;
  border: 1px solid #363a54;
  border-radius: 8px;
  padding: 6px;
  width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

.mines-game-container .mines__scroll {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: auto;
  -webkit-mask-image: linear-gradient(to left, transparent 0%, #EBECF2 76%);
}

.mines-game-container .mines__scroll .x30__bonus-item {
  flex: 0 0 auto;
  min-width: 45px;
  height: 32px;
  background: #363a54;
  border-radius: 5px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0px 3px;
}

.mines-game-container .mines__scroll .x30__bonus-item.active {
  background: #4f7cff !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(79, 124, 255, 0.6);
  border-color: #4f7cff;
  transform: scale(1.05);
  z-index: 2;
}

.mines-game-container .mines__scroll .x30__bonus-item.active {
  animation: slideCoefficient 0.3s ease-out;
}

.mines-game-container .mines__scroll {
  scroll-behavior: smooth;
}

.mines-game-container .mines__scroll .x30__bonus-item.future:hover {
  background: #4a5073 !important;
  color: #ffffff !important;
}

.mines-game-container .mines__scroll .x30__bonus-item.completed {
  background: #00d4aa !important;
  color: #ffffff !important;
  border-color: #00d4aa;
  opacity: 0.8;
}

.mines-game-container .mines__scroll .x30__bonus-item.future {
  background: #363a54 !important;
  color: #9ca3b8 !important;
  border-color: #4a5073;
  opacity: 0.7;
}

.mines-game-container .mines__scroll .x30__bonus-item.x2,
.mines-game-container .mines__scroll .x30__bonus-item.x3,
.mines-game-container .mines__scroll .x30__bonus-item.x5,
.mines-game-container .mines__scroll .x30__bonus-item.x30 {
  background: #363a54 !important;
}

@keyframes slideCoefficient {
  0% {
    transform: translateX(10px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================= */
/* Стили игровых настроек        */
/* ============================= */
.mines-game-container .mines__game-settings {
  margin-top: 8px;
}

.mines-game-container .mines__setting-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mines-game-container .mines__setting-item {
  flex: 1;
  min-width: 140px;
}

.mines-game-container .mines__setting-label {
  display: block;
  font-size: 12px;
  color: #7a8093;
  margin-bottom: 6px;
  font-weight: 500;
  line-height: 1.3;
}

.mines-game-container .mines__custom-select {
  position: relative;
  background: #2a2d47;
  border: 1px solid #363a54;
  border-radius: 8px;
  transition: all 0.2s ease;
  overflow: hidden;
}

.mines-game-container .mines__custom-select:hover {
  border-color: #4a5073;
  background: #2d3150;
}

.mines-game-container .mines__custom-select:focus-within {
  border-color: #4f7cff;
  background: #2d3150;
  box-shadow: 0 0 0 2px rgba(79, 124, 255, 0.15);
}

.mines-game-container .mines__custom-select select {
  appearance: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  width: 100%;
  padding: 10px 30px 10px 12px;
  line-height: 1.2;
  font-family: inherit;
}

.mines-game-container .mines__custom-select select option {
  background: #2a2d47;
  color: #ffffff;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 400;
  border: none;
}

.mines-game-container .mines__select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #7a8093;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mines-game-container .mines__select-arrow svg {
  width: 10px;
  height: 6px;
}

.mines-game-container .mines__custom-select:hover .mines__select-arrow {
  color: #9ca3b8;
}

.mines-game-container .mines__custom-select:focus-within .mines__select-arrow {
  color: #4f7cff;
  transform: translateY(-50%) rotate(180deg);
}

.mines-game-container .mines__custom-select.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.mines-game-container .mines__custom-select.disabled select {
  cursor: not-allowed;
}

/* ============================= */
/* Кнопка Fairness и Debug       */
/* ============================= */
.mines-game-container .mines__fairness-container,
.mines-game-container .mines__debug-container {
  margin-top: 8px;
  width: 100%;
  max-width: 350px;
}

.mines-game-container .btn--fairness,
.mines-game-container .btn--debug {
    background: transparent;
    border: 1px solid #363a54;
    color: #6a6f84;
    font-size: 13px;
    font-weight: 400;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    height: 28px;
    gap: 4px;
    width: auto;
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap; /* Текст не переносится */
}

.mines-game-container .btn--debug {
  background: #ff6b6b !important;
  color: white !important;
  border-color: #ff6b6b !important;
  opacity: 1 !important;
}

.mines-game-container .btn--fairness:hover,
.mines-game-container .btn--debug:hover {
  background: rgba(42, 45, 71, 0.3);
  border-color: #4a5073;
  color: #7a8093;
  opacity: 1;
}

.mines-game-container .btn--debug:hover {
  background: #ff5252 !important;
  color: white !important;
}

.mines-game-container .fairness-icon {
  width: 10px;
  height: 10px;
  margin-right: 4px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
/* ============================= */
/* Раскладка контролов (Controls) */
/* ============================= */
.mines-game-container .mines__controls-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.mines-game-container .mines__controls-row .bx-input {
  flex: 1 1 0;
  min-width: 140px;
}

/* ============================= */
/* Базовая раскладка (будет переопределена в медиа-запросах) */
/* ============================= */
.mines-game-container .mines__wrapper {
  width: 100%;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}

/* ============================= */
/* АДАПТИВНАЯ РАСКЛАДКА с автоматической перестановкой */
/* ============================= */

/* Desktop: 2 колонки рядом */
@media (min-width: 992px) {
  .mines-game-container .mines__wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    max-width: 1000px;
    align-items: start;
  }

  .mines-game-container .mines__left {
    width: 100%;
    order: 1;
  }

  .mines-game-container .mines__right {
    width: auto !important;
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mines-game-container .mines__game-container {
    max-width: 500px;
    transform: scale(1);
    transform-origin: center;
  }
}

/* Tablet: 2 колонки, но ближе друг к другу */
@media (max-width: 991px) and (min-width: 768px) {
  .mines-game-container .mines__wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    max-width: 100%;
    align-items: start;
  }

  .mines-game-container .mines__left {
    width: 100%;
    order: 1;
  }

  .mines-game-container .mines__right {
    width: auto !important;
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mines-game-container .mines__game-container {
    transform: scale(0.9);
    transform-origin: center;
    max-width: 500px;
  }
}

/* Mobile: ПОЛНАЯ ПЕРЕСТАНОВКА - сначала поле, потом меню */
@media (max-width: 767px) {
  .mines-game-container .mines {
    padding: 0 15px;
    width: 100%;
  }

  .mines-game-container .mines__scroll .x30__bonus-item {
    min-width: 40px;
    height: 28px;
    font-size: 11px;
    margin: 0px 2px;
  }

  .mines-game-container .mines__game-container {
    width: 100%;
    max-width: min(85vw, 85vh) !important; /* Берем 85% от меньшего размера */
    transform: none;
  }

  .mines-game-container .mines__fairness-container {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .mines-game-container .btn--fairness {
      min-width: 80px;
  }

  .mines-game-container .mines__path {
    display: grid !important;
    gap: 4px !important;
    
    /* Убираем все отступы и границы */
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    
    /* Grid настройки - КРИТИЧНО для Safari */
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    box-sizing: border-box !important;
    
    /* Убираем flex стили полностью */
    flex-direction: unset !important;
    justify-content: unset !important;
    flex-wrap: unset !important;
    align-items: unset !important;
    
    /* Равномерное распределение строк и колонок */
    grid-auto-rows: 1fr !important;
    grid-auto-columns: 1fr !important;
    align-content: stretch !important;
    justify-content: stretch !important;
    justify-items: stretch !important;
    align-items: stretch !important;
}

  .mines-game-container .mines__wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  /* 1. ПОЛЕ ПЕРВЫМ - на всю ширину */
  .mines-game-container .mines__right {
    order: 1;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
  }

  .mines-game-container .mines__game-container {
    width: 100%;
    max-width: min(400px, calc(100vw - 30px));
    transform: none;
  }

  .mines-game-container .mines__game-area-wrapper {
    max-width: 100%;
  }

  /* 2. МЕНЮ ВТОРЫМ - на всю ширину */
  .mines-game-container .mines__left {
    order: 2;
    width: 100% !important;
    margin: 0;
  }

  .mines-game-container .mines__bet-input {
    max-width: 100%;
    width: 100%;
  }

  /* ИСПРАВЛЕНИЕ: кнопки ставок ВСЕГДА в один ряд на мобильных */
  .mines-game-container .mines__bet-buttons {
    flex-wrap: nowrap !important; /* Принудительно запрещаем перенос */
    gap: 4px !important; /* Уменьшаем промежутки */
    overflow-x: auto; /* Добавляем прокрутку если не помещается */
  }

  .mines-game-container .mines__bet-buttons a {
    flex: 1;
    min-width: 50px !important; /* Минимальная ширина */
    max-width: none;
    font-size: 11px !important; /* Еще меньше шрифт */
    padding: 8px 4px !important; /* Еще меньше отступы */
    white-space: nowrap;
  }

  .mines-game-container .mines__setting-row {
    flex-direction: column;
    gap: 12px;
  }

  .mines-game-container .mines__setting-item {
    min-width: auto;
    width: 100%;
  }

  .mines-game-container .mines__custom-select {
    width: 100%;
  }

  .mines-game-container .mines__fairness-container {
    width: 100%;
    max-width: 100%;
  }

}

/* Small Mobile: еще более компактные кнопки */
@media (max-width: 480px) {

  .fairness-modal__body::-webkit-scrollbar {
    width: 4px;
  }

  .fairness-modal__body::-webkit-scrollbar-thumb {
      background: #4a5073;
      border-radius: 2px;
  }

  .game-transparency {
      padding: 16px;
      font-size: 12px;
  }

    .fairness-modal {
      align-items: center;
      justify-content: center;
      padding: 10px;
  }

  .fairness-modal__content {
      width: calc(100vw - 20px) !important;
      height: 70vh !important;
      max-height: 70vh !important;
      min-height: 70vh !important;
      max-width: none !important;
      border-radius: 8px;
  }

  .fairness-modal__header {
      padding: 12px 16px;
      flex-shrink: 0;
      min-height: 60px;
  }

  .fairness-modal__tabs {
      flex-shrink: 0;
      min-height: 44px;
  }

  .fairness-modal__body {
      height: calc(70vh - 60px - 44px) !important;
      max-height: calc(70vh - 60px - 44px) !important;
      min-height: calc(70vh - 60px - 44px) !important;
      overflow-y: auto;
      padding: 12px 16px;
      flex: 1;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
  }

  .fairness-modal__title {
      font-size: 15px;
  }

  .fairness-modal__icon {
      width: 16px;
      height: 16px;
  }

  .fairness-tab {
      padding: 8px 12px;
      font-size: 12px;
  }

    .mines-game-container .mines__game-container {
        max-width: min(90vw, 90vh) !important;
    }

  .mines-game-container .mines {
    padding: 0 10px;
  }

  .mines-game-container .mines__wrapper {
    gap: 10px;
  }

  .mines-game-container .mines__game-container {
    max-width: min(350px, calc(100vw - 20px));
  }

  .mines-game-container .mines__bet-buttons {
    gap: 3px !important;
  }

  .mines-game-container .mines__bet-buttons a {
    font-size: 10px !important;
    padding: 6px 2px !important;
    min-width: 45px !important;
  }

  .mines-game-container .mines__path[style*="grid-template-columns: repeat(4, 1fr)"] .mines__path-item > *,
  .mines-game-container .mines__path[style*="grid-template-columns: repeat(4, 1fr)"] .mines__icon {
      max-width: 30px !important;
      max-height: 30px !important;
  }

  .mines-game-container .mines__path[style*="grid-template-columns: repeat(5, 1fr)"] .mines__path-item > *,
  .mines-game-container .mines__path[style*="grid-template-columns: repeat(5, 1fr)"] .mines__icon {
      max-width: 25px !important;
      max-height: 25px !important;
  }

  .mines-game-container .mines__path[style*="grid-template-columns: repeat(6, 1fr)"] .mines__path-item > *,
  .mines-game-container .mines__path[style*="grid-template-columns: repeat(6, 1fr)"] .mines__icon {
      max-width: 22px !important;
      max-height: 22px !important;
  }

  .mines-game-container .mines__path[style*="grid-template-columns: repeat(7, 1fr)"] .mines__path-item > *,
  .mines-game-container .mines__path[style*="grid-template-columns: repeat(7, 1fr)"] .mines__icon {
      max-width: 18px !important;
      max-height: 18px !important;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .fairness-modal__content {
      height: 85vh !important;
      max-height: 85vh !important;
      min-height: 85vh !important;
  }
  
  .fairness-modal__body {
      height: calc(85vh - 60px - 44px) !important;
      max-height: calc(85vh - 60px - 44px) !important;
      min-height: calc(85vh - 60px - 44px) !important;
  }
}

@media (max-width: 360px) {

  .fairness-modal__content {
      width: calc(100vw - 16px) !important;
      height: 75vh !important;
      max-height: 75vh !important;
      min-height: 75vh !important;
  }

  .fairness-modal__body {
      height: calc(75vh - 60px - 44px) !important;
      max-height: calc(75vh - 60px - 44px) !important;
      min-height: calc(75vh - 60px - 44px) !important;
      padding: 10px 12px;
  }

  .fairness-modal__header {
      padding: 10px 12px;
  }

    .mines-game-container .mines__game-container {
        max-width: min(95vw, 95vh) !important;
    }

  .mines-game-container .mines {
    padding: 0 8px;
  }

  .mines-game-container .mines__game-container {
    max-width: min(320px, calc(100vw - 16px));
  }

  .mines-game-container .mines__wrapper {
    gap: 15px;
  }

  .mines-game-container .mines__bet-buttons a {
    font-size: 9px !important;
    padding: 6px 1px !important;
    min-width: 40px !important;
  }
}

/* ============================= */
/* Анимации */
/* ============================= */
@keyframes winPulseLocal {
  0% { transform: scale(0.7); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes winGlowLocal {
  0% { text-shadow: 0 0 20px rgba(79, 124, 255, 0.8); }
  100% { text-shadow: 0 0 30px rgba(79, 124, 255, 1), 0 0 50px rgba(79, 124, 255, 0.6); }
}

@keyframes winBounceLocal {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes spinMines {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================= */
/* Кнопки в состоянии загрузки   */
/* ============================= */
.mines-game-container .btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
  background: #4a5073 !important;
  cursor: not-allowed !important;
}

.mines-game-container .loading-spinner {
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  animation: spinMines 0.75s linear infinite;
}

.mines-game-container .btn-loading:hover {
  transform: none !important;
}

/* ============================= */
/* Дополнительные базовые стили */
/* ============================= */
.mines-game-container .d-flex {
  display: flex;
}

.mines-game-container .flex-column {
  flex-direction: column;
}

.mines-game-container .align-center {
  align-items: center;
}

.mines-game-container .justify-center {
  justify-content: center;
}

.mines-game-container .justify-space-between {
  justify-content: space-between;
}

.mines-game-container .flex-wrap {
  flex-wrap: wrap;
}

.mines-game-container .icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
  pointer-events: none;
}

.mines-game-container .bx-input {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}

.mines-game-container .bx-input:nth-last-child(1) {
  margin-bottom: 0;
}

/* ============================= */
/* Скроллбар для множителей       */
/* ============================= */
.mines-game-container .mines__scroll::-webkit-scrollbar {
  height: 4px;
}

.mines-game-container .mines__scroll::-webkit-scrollbar-track {
  background: #2a2d47;
  border-radius: 2px;
}

.mines-game-container .mines__scroll::-webkit-scrollbar-thumb {
  background: #363a54;
  border-radius: 2px;
}

.mines-game-container .mines__scroll::-webkit-scrollbar-thumb:hover {
  background: #4a5073;
}

/* ============================= */
/* Модальные окна Fairness */
/* ============================= */
.fairness-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fairness-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.fairness-modal__content {
  position: relative;
  background: #242742;
  border-radius: 12px;
  border: 1px solid #363a54;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.fairness-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #363a54;
  background: #242742;
  border-radius: 12px 12px 0 0;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.fairness-modal__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.fairness-modal__icon {
  width: 20px;
  height: 20px;
  color: #4f7cff;
}

.fairness-modal__close {
  background: none;
  border: none;
  color: #9ca3b8;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.fairness-modal__close:hover {
  background: #363a54;
  color: #ffffff;
}

.fairness-modal__tabs {
  display: flex;
  border-bottom: 1px solid #363a54;
}

.fairness-tab {
  flex: 1;
  padding: 12px 20px;
  background: none;
  border: none;
  color: #9ca3b8;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.fairness-tab:hover {
  color: #ffffff;
  background: rgba(79, 124, 255, 0.1);
}

.fairness-tab.active {
  color: #4f7cff;
}

.fairness-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #4f7cff;
}

.fairness-modal__body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  
  scrollbar-width: thin;
  scrollbar-color: #363a54 transparent;
}

.fairness-tab-content {
  display: none;
}

.fairness-modal__body::-webkit-scrollbar {
  width: 6px;
}

.fairness-modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.fairness-modal__body::-webkit-scrollbar-thumb {
  background: #363a54;
  border-radius: 3px;
}

.fairness-modal__body::-webkit-scrollbar-thumb:hover {
  background: #4a5073;
}

.fairness-modal__header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.fairness-modal__tabs::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.fairness-tab-content.active {
  display: block;
}

.fairness-field {
  margin-bottom: 16px;
}

.fairness-field label {
  display: block;
  font-size: 12px;
  color: #9ca3b8;
  margin-bottom: 6px;
  font-weight: 500;
}

.fairness-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fairness-input-group input {
  flex: 1;
  background: #2a2d47;
  border: 1px solid #363a54;
  border-radius: 8px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.fairness-input-group input:focus {
  border-color: #4f7cff;
  background: #2d3150;
  box-shadow: 0 0 0 2px rgba(79, 124, 255, 0.15);
}

.fairness-copy-btn,
.fairness-change-btn {
  background: #4f7cff;
  border: none;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fairness-copy-btn:hover,
.fairness-change-btn:hover {
  background: #5d87ff;
  transform: translateY(-1px);
}

.fairness-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 16px 0;
}

.fairness-verification {
  color: #9ca3b8;
  font-size: 13px;
  line-height: 1.5;
}

.fairness-game-info {
  background: #2a2d47;
  border: 1px solid #363a54;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #ffffff;
  word-break: break-all;
}

.fairness-game-info div {
  margin-bottom: 4px;
}

.fairness-game-info div:last-child {
  margin-bottom: 0;
}

/* ============================= */
/* ПРОФЕССИОНАЛЬНАЯ СИСТЕМА ЧЕСТНОСТИ */
/* ============================= */

.game-transparency {
  background: linear-gradient(135deg, #242742 0%, #1e1f3a 100%);
  border-radius: 12px;
  padding: 24px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid #363a54;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Header */
.transparency-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(79, 124, 255, 0.2);
}

.transparency-header h3 {
  color: #4f7cff;
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.transparency-subtitle {
  color: #9ca3b8;
  margin: 0;
  font-size: 12px;
  font-style: italic;
  opacity: 0.9;
}

/* Sections */
.transparency-section {
  margin-bottom: 24px;
  background: rgba(42, 45, 71, 0.3);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(54, 58, 84, 0.5);
  transition: all 0.3s ease;
}

.transparency-section:hover {
  border-color: rgba(79, 124, 255, 0.3);
  box-shadow: 0 2px 12px rgba(79, 124, 255, 0.1);
}

.transparency-section:last-child {
  margin-bottom: 0;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-header h4 {
  color: #ffffff;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.section-badge {
  background: linear-gradient(135deg, #4f7cff 0%, #6366f1 100%);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(79, 124, 255, 0.3);
}

/* Hash Container */
.hash-container {
  background: #1a1d35;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #2d3653;
}

.hash-value {
  font-family: 'Courier New', 'SF Mono', Monaco, monospace;
  font-size: 14px;
  color: #00d4aa;
  background: rgba(0, 212, 170, 0.1);
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid rgba(0, 212, 170, 0.2);
  word-break: break-all;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 10px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hash-info {
  color: #7a8093;
  font-size: 11px;
  text-align: center;
  font-style: italic;
}

/* Source Data */
.source-data {
  background: #1a1d35;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #2d3653;
  margin-bottom: 16px;
}

.data-component {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(54, 58, 84, 0.3);
  flex-wrap: wrap;
  gap: 8px;
}

.data-component:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.data-component label {
  color: #9ca3b8;
  font-size: 12px;
  font-weight: 500;
  min-width: 120px;
}

.seed-value {
  font-family: 'Courier New', monospace;
  background: rgba(79, 124, 255, 0.15);
  color: #4f7cff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(79, 124, 255, 0.2);
}

.config-value {
  font-family: 'Courier New', monospace;
  background: rgba(255, 217, 61, 0.15);
  color: #ffd93d;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid rgba(255, 217, 61, 0.2);
  word-break: break-all;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Combined String */
.combined-string {
  background: #1a1d35;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #2d3653;
}

.combined-string label {
  display: block;
  color: #9ca3b8;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
}

.string-display {
  font-family: 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  padding: 12px;
  border-radius: 6px;
  font-size: 11px;
  word-break: break-all;
  border: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.4;
}

/* Outcome Grid */
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.outcome-item {
  background: #1a1d35;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #2d3653;
  text-align: center;
  transition: all 0.2s ease;
}

.outcome-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.outcome-label {
  color: #9ca3b8;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.outcome-value {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

/* Specific outcome colors */
.outcome-item.mines .outcome-value {
  color: #ff6b6b;
}

.outcome-item.clicks .outcome-value {
  color: #00d4aa;
}

.outcome-item.bet .outcome-value {
  color: #4f7cff;
}

.outcome-item.payout .outcome-value {
  color: #ffd93d;
}

/* Footer */
.transparency-footer {
  background: rgba(42, 45, 71, 0.2);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid rgba(54, 58, 84, 0.3);
  text-align: center;
}

.verification-note {
  color: #9ca3b8;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.export-data-btn {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.export-data-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.export-data-btn:active {
  transform: translateY(0);
}

/* Mobile Adaptations */
@media (max-width: 767px) {
  .game-transparency {
      padding: 20px 16px;
      font-size: 12px;
  }
  
  .transparency-section {
      padding: 16px;
      margin-bottom: 20px;
  }
  
  .section-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
  }
  
  .section-badge {
      align-self: flex-end;
  }
  
  .data-component {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
  }
  
  .data-component label {
      min-width: auto;
  }
  
  .outcome-grid {
      grid-template-columns: 1fr;
      gap: 8px;
  }
  
  .outcome-item {
      padding: 12px;
  }
  
  .config-value {
      max-width: 100%;
      font-size: 10px;
  }
  
  .hash-value {
      font-size: 12px;
      padding: 10px 12px;
  }
  
  .string-display {
      font-size: 10px;
      padding: 10px;
  }
}

/* Animations */
@keyframes transparencyFadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.game-transparency {
  animation: transparencyFadeIn 0.6s ease-out;
}

.transparency-section {
  animation: transparencyFadeIn 0.4s ease-out;
  animation-fill-mode: both;
}

.transparency-section:nth-child(1) { animation-delay: 0.1s; }
.transparency-section:nth-child(2) { animation-delay: 0.2s; }
.transparency-section:nth-child(3) { animation-delay: 0.3s; }
.transparency-section:nth-child(4) { animation-delay: 0.4s; }

@media (min-width: 768px) {
  .fairness-modal__content {
      max-height: 80vh;
      min-height: 400px; /* Минимальная высота */
  }
}

@media (max-width: 767px) and (min-width: 481px) {
  .fairness-modal__content {
      width: 95%;
      height: 75vh !important; /* Фиксированная высота */
      max-height: 75vh !important;
      min-height: 75vh !important;
  }
}