body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: white;
  background: url('../images/bg.png') repeat;
  background-size: cover;
  padding-bottom: 65px;
  min-height: 100vh;
  background-color: #0f0f10;
}

.crash-back {
  width: 100%;
  border-radius: 12px;
  height: 250px;
  background: url(../../assets/images/bg-crash.png) no-repeat center center;
  background-size: cover;
}

.tower-wrap {
  width: var(--gridW);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(var(--coefW), var(--coefW)) calc((5 * var(--cell)) + (4 * var(--gap)));
  column-gap: var(--colGap);
  align-items: start;
}

.currency-symbol .fa-solid {
  color: #00aaff !important;
  /* Задаем синий цвет */
  size: 10px;
}

.tower-coefs {
  display: grid;
  grid-auto-rows: var(--cell);
  row-gap: var(--gap);

  width: var(--coefW);
  min-width: var(--coefW);
  max-width: var(--coefW);
  box-sizing: border-box;
}

.tower-coefs>* {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
}

.tower-all {
  --cell: 68px;
  --gap: 8px;
  --coefW: 120px;
  --colGap: 16px;
  --gridW: calc(var(--coefW) + var(--colGap) + (5 * var(--cell)) + (4 * var(--gap)));
  width: var(--gridW);
  margin: 0 auto;
}

.tower-coef-item {
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  box-sizing: border-box;
  border: 2px solid #2f2f45;
  border-radius: 12px;
  background: #121215;
  color: #c9c9d7;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tower-coef-item.active {
  border-color: #00bfef;
  color: #00bfef;
  background: #0f1a14;
}

.tower-grid {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}


.tower-grid .row {
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(5, var(--cell));
  gap: var(--gap);
  justify-content: center;
}

.tower-grid .row>[class*="col-"],
.tower-grid .mob-block-tower {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
}

.towerbtn {
  box-sizing: border-box;
  width: var(--cell);
  height: var(--cell);
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1c;
  border: 2px solid #2f2f45;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s, background .2s;
}

.towerbtn:hover {
  border-color: #00e7ef;
}

@media (max-width: 480px) {
  .tower-all {
    --cell: 60px;
    --gap: 6px;
    --coefW: 110px;
    --colGap: 12px;
  }
}

.fit-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;

  overflow: hidden;
  text-align: center;
}


.towerbtn:not(.revealed) .fit-inner {
  display: none !important;
}

.towerbtn.revealed img {
  display: block;
  max-width: 80%;
  max-height: 80%;
  margin: auto;
  pointer-events: none;
}


.custom-select {
  width: 100%;
  padding: 12px;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  background: #1e1e2f;
  border: 2px solid #3a3a55;
  border-radius: 12px;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;

  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

.custom-select option {
  background: #2a2a3d;
  color: #fff;
  padding: 10px;
}

.crash-game-graph {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.rocket-class.at-corner {
  font-size: 16px;
  opacity: 0.8;
}


@keyframes rocketFly {
  0% {
    transform: rotate(0deg) translateY(0);
  }

  25% {
    transform: rotate(0deg) translateY(0);
  }

  50% {
    transform: rotate(0deg) translateY(0);
  }

  75% {
    transform: rotate(0deg) translateY(0);
  }

  100% {
    transform: rotate(0deg) translateY(0);
  }
}

.rocket-class:not(.at-corner) {
  animation: rocketFly 0.5s infinite;
}

.rocket-class {
  position: absolute;
  width: 80px;
  /* Уменьшим размер */
  height: 80px;
  font-size: 20px;
  transform: rotate(0deg);
  text-align: center;
  background: url(../images/rocketka.png);
  background-size: contain;
  background-repeat: no-repeat;
  line-height: 24px;
  z-index: 1000;
  /* Увеличим z-index */
  pointer-events: none;
  transition: all 0.2s ease-out;
  transform-origin: center;
}

.rocket-class.animated {
  animation: rocketFly 0.5s infinite;
}

.step-mine-coeff {
  font-size: 9px;
  margin-top: 2px;
  /* Отступ между коэффициентом и шагом */
  position: static;
  /* Убираем absolute, так как теперь используем flex */
  line-height: 1;
  /* Убираем лишний межстрочный интервал */
}


/* Стили для бонусной страницы */
.bonus-content {
  padding: 16px;
  color: white;
  max-width: 414px;
}

.bonus-header {
  text-align: center;
  margin-bottom: 24px;
}

.bonus-header h1 {
  font-size: 24px;
  margin: 0;
  color: #4cd6ee;
}

.bonus-card {
  background-color: #1a1a1c;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.bonus-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.bonus-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4cd6ee, #00a5b1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 18px;
}

.bonus-title {
  font-size: 18px;
  font-weight: bold;
}

.bonus-description {
  font-size: 15px;
  color: #aaa;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Ежедневный бонус */
.daily-bonus-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.daily-bonus-day {
  background-color: #252528;
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.daily-bonus-day.active {
  background: linear-gradient(135deg, #4cd6ee, #009cb1);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 217, 206, 0.5);
}

.daily-bonus-day.claimed {
  background: linear-gradient(135deg, #4a5568, #2d3748);
  opacity: 0.8;
}

.bonus-day-number {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 6px;
}

.bonus-day-amount {
  font-size: 12px;
  color: #4cd6ee;
  font-weight: bold;
}

.daily-bonus-day.claimed .bonus-day-amount {
  color: #ccc;
}

.bonus-day-check {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #4cd6ee;
  color: #000;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.claim-button {
  width: 100%;
  background: linear-gradient(135deg, #4cd6ee, #0096b1);
  color: #000;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.claim-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 166, 217, 0.4);
}

.claim-button:disabled {
  background: #2d3748;
  color: #718096;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Промокоды */
.promo-input-container {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.promo-input {
  flex: 1;
  background-color: #252528;
  border: 1px solid #2d3748;
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
}

.promo-input:focus {
  border-color: #4cd6ee;
}

.promo-button {
  background: linear-gradient(135deg, #4cd6ee, #00b1b1);
  color: #000;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

.promo-history {
  margin-top: 16px;
}

.promo-history-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.promo-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #252528;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}

.promo-code {
  font-weight: bold;
  font-size: 14px;
}

.promo-status {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 20px;
}

.status-success {
  background-color: #0f5132;
  color: #75b798;
}

.status-error {
  background-color: #842029;
  color: #ea868f;
}

.status-pending {
  background-color: #664d03;
  color: #ffda6a;
}

/* Другие бонусы */
.other-bonuses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.other-bonus {
  background-color: #252528;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.other-bonus:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.other-bonus-icon {
  font-size: 24px;
  color: #4cd6ee;
  margin-bottom: 8px;
}

.other-bonus-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
}

.other-bonus-amount {
  font-size: 12px;
  color: #4cd6ee;
}

/* Анимации */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

#crHist {
  display: flex;
  gap: 5px;
  margin-top: -10px;
  max-width: 100%;
  overflow-y: hidden;
}

#crHist::-webkit-scrollbar {
  height: 4px;
}

#crHist::-webkit-scrollbar-track {
  background: transparent;
}

#crHist::-webkit-scrollbar-thumb {
  background: #1a1a1c;
  border-radius: 2px;
}

.hist-crash {
  color: #fff;
  font-weight: 600;
  padding: 4px;
  border-radius: 12px
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 400 / 250;
  overflow: hidden;
  border-radius: 12px;
  margin: 0 auto;
}

.carousel-inner {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.carousel-slide {
  flex: 0 0 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  z-index: 10;
}

.carousel-btn.prev {
  left: 12px;
}

.carousel-btn.next {
  right: 12px;
}

.carousel-indicators {
  position: relative;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.indicator {
  width: 8px;
  /* уменьшено с 12px */
  height: 8px;
  /* уменьшено с 12px */
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.indicator.active {
  background: white;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0f0f10;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.preloader-content {
  text-align: center;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 192, 217, 0.3);
  border-top-color: #4cd6ee;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.preloader-text {
  color: #4cd6ee;
  font-size: 18px;
  margin-top: 15px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.minesweeper-content {
  padding: 16px;
  color: white;
  max-width: 414px;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif;
}

.fair-icon {
  width: 40px;
  height: 40px;
  border: 2px solid #4cd6ee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4cd6ee;
  font-size: 18px;
}



/* Шапка игры */
.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.multiplier-buttons {
  display: flex;
  gap: 10px;
}

.multiplier-buttons .btn {
  padding: 10px 20px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
}

.multiplier-buttons .x2 {
  background-color: #444;
}

.multiplier-buttons .x3 {
  background-color: #d4a017;
}

.multiplier-buttons .x5 {
  background-color: #d32f2f;
}

.multiplier-buttons .x50 {
  background-color: #4caf50;
}

.multiplier-buttons .btn:hover {
  opacity: 0.85;
}

.bets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 450px;
}



@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.bet-card {
  background-color: #1c1c1c;
  border-radius: 12px;
  padding: 12px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bet-title {
  font-weight: bold;
  font-size: 1.1em;
}

#status-x50 {
  position: absolute;
  left: 50%;
  color: #888;
  font-family: monospace;
  font-size: 20px;
  text-align: center;
  backface-visibility: hidden;
  will-change: transform;
  white-space: nowrap;
  top: 65%;
  transform: translate(-50%, -50%);
  margin-top: 10px;
}

/* Цвета заголовков */
.x2 .bet-title {
  color: #888;
}

.x3 .bet-title {
  color: #d4a017;
}

.x5 .bet-title {
  color: #d32f2f;
}

.x50 .bet-title {
  color: #4caf50;
}

.bet-value {
  font-size: 1.4em;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon {
  font-size: 0.8em;
  opacity: 0.8;
}

.bet-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bet-item {
  display: flex;
  justify-content: space-between;
  background-color: #2a2a2a;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.9em;
  color: #ccc;
}

.no-bets {
  color: #888;
  text-align: center;
  font-size: 0.9em;
}

/* Абсолютное позиционирование сообщения ПОВЕРХ сетки */
.win-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  background: radial-gradient(circle at center, #0e4b4f 0%, #072b0c 100%);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.win-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.win-multiplier {
  font-size: 24px;
  font-weight: bold;
  margin: 10px 0;
}

.win-amount {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}


.line-x50 {
  width: 4px;
  margin: 0 2px;
  cursor: pointer;
  border-radius: 2px;
}

.nickname-x50 {
  display: inline-block;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.x2-color {
  background: #323537;
  height: 18px;
}

.x3-color {
  background: #da9a00;
  height: 24px;
}

.x5-color {
  background: #d83c33;
  height: 30px;
}

.x50-color {
  background: #50b251;
  height: 36px;
}

.x50-history {
  align-items: flex-end;
}

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

  to {
    transform: rotate(360deg);
  }
}

.deposit-amount-input {
  display: flex;
  align-items: center;
  position: relative;
}

.amount-input {
  width: 100%;
  padding-right: 70px;
}

.input-buttons {
  position: absolute;
  right: 5px;
  margin-top: -25px;
  display: flex;
  gap: 4px;
}

.input-btn {
  padding: 8px 16px;
  font-size: 16px !important;
  border: none;
  background: #444 !important;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.input-btn:hover {
  background: #666;
}

.fa-spinner {
  animation: rotate 1s linear infinite;
}

.scroll-container {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 10px;
  scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.coef {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 40px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background: #0a0909;
  border: 2px solid #3d2c2c;
  opacity: 0.5;
  transition: 0.2s;
  text-align: center;
  padding: 0 5px;
}

.coef.active {
  background: #0a0909;
  border: 2px solid #4cd6ee;
  color: #4cd6ee;
  opacity: 1;
}

.bomby {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: black;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  margin-right: 6px;
}

.coef-content {
  display: flex;
  align-items: center;
  gap: 5px;
}

.wheel-container {
  justify-content: center;
  max-width: 100%;
  width: 100%;
  height: 150px;
  overflow: hidden;
  position: relative;
}

.range-wrapper {
  position: relative;
  width: 300px;
  background: #1b1b1b;
  border-radius: 12px;
  padding: 40px 20px 30px;
  box-shadow: 0 0 10px #4cd6ee33;
  text-align: center;
}

.range-label {
  font-size: 14px;
  color: #888;
  margin-bottom: 12px;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: #2b2b2b;
  border-radius: 10px;
  outline: none;
  position: relative;
  z-index: 2;
}

/* Track */
input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #4cd6ee, #00b5d4);
  height: 8px;
  border-radius: 10px;
}

input[type="range"]::-moz-range-track {
  background: linear-gradient(to right, #4cd6ee, #4cd6ee);
  height: 8px;
  border-radius: 10px;
}

/* Thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #4cd6ee;
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 10px #4cd6ee;
  margin-top: -6px;
  /* ← поднять выше, чтобы было по центру */
  cursor: pointer;
  position: relative;
  z-index: 3;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #4cd6ee;
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 10px #00d9ff;
  cursor: pointer;
}

.tooltip {
  position: absolute;
  bottom: 18px;
  background-color: #1f1f1f;
  color: #4cd6ee;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 5;
  border: 1px solid #009eb9;
  box-shadow: 0 0 8px #00d9ff;
  transform: translateX(-50%);

}


.game-time {
  font-size: 14px;
  color: #888;
}

.game-title {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  flex-grow: 1;
}

.game-balance {
  display: flex;
  align-items: center;
  gap: 6px;
}

.balance-icon {
  color: #4cd6ee;
  font-weight: bold;
}

.balance-text {
  font-size: 14px;
}

/* Основной контент игры */
.mines-game {
  background-color: #1a1a1c;
  border-radius: 16px;
  padding: 20px;
}

.game-subtitle {
  font-size: 18px;
  text-align: center;
  margin: 0 0 8px 0;
  color: #888;
}

.game-multiplier {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  color: #4cd6ee;
  margin-bottom: 20px;
}

/* Строка множителей */
.multipliers-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.multiplier-box {
  background-color: #252528;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: bold;
}

/* Блок ставки */
.bet-section {
  margin-bottom: 24px;
}

.bet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bet-title {
  font-size: 16px;
  font-weight: bold;
}

.bet-step {
  font-size: 14px;
  color: #888;
}

.bet-input {
  background-color: #252528;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.input-label {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.amount-input-container {
  display: flex;
  align-items: center;
}

.amount-input {
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  font-weight: bold;
  width: 100%;
  padding: 8px 0;
  outline: none;
}

.multiplier-display {
  color: #4cd6ee;
  font-size: 24px;
  font-weight: bold;
  margin-left: 12px;
}

.quick-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.quick-amount {
  flex: 1;
  background-color: #252528;
  border: none;
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

/* Блок мин */
.mines-section {
  margin-bottom: 24px;
}

.mines-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  text-align: center;
}

.game-container {
  text-align: center;
}

.multipliers {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.multiplier {
  background-color: #2c464b;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: bold;
  color: #4cd6ee;
}

.multiplier.selected {
  background-color: #0f1d1b;
  color: #4cd6ee;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, 60px);
  grid-template-rows: repeat(5, 60px);
  gap: 5px;
}

.cell {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  cursor: pointer;
  background-color: #0f0f10 !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.w-tile {
  background: url(../../assets/images/tile-mine.png?v=2);
  background-size: cover;
  position: relative;
}

.justify-content-center {
  justify-content: center;
}

.w-tile::after {
  content: "";
  font-weight: bold;
  font-size: 24px;
  color: #fff;
}

.gem {
  position: relative;
  background: url(../../assets/images/gem-mine.png?v=2);
  background-size: cover;
}

.gem::after {
  content: "";
  font-size: 24px;
}

.bomb {
  background-color: #2e1f10;
  background: url(../../assets/images/bomb-mine.png?v=2);
  background-size: cover;
  position: relative;
}

.bomb::after {
  content: "";
  font-size: 24px;
}

.mines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mine-option {
  background-color: #252528;
  border-radius: 8px;
  padding: 16px 8px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
}

.mine-option:hover {
  background-color: #2e2e32;
}

/* Кнопка ставки */
.place-bet-button {
  width: 100%;
  background-color: #4cd6ee;
  color: #000;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

/* Убираем стрелки у числового ввода */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

button,
input,
textarea,
select {
  font-family: 'Montserrat', sans-serif;
}

.history-content {
  padding: 16px;
  color: white;
  max-width: 414px;
  margin: 0 auto;
}

.history-header h1 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.history-tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  background-color: #1a1a1c;
  border-radius: 12px;
  padding: 4px;
}

.history-tab {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
}

.history-tab.active {
  background-color: #4cd6ee;
  color: #000;
  font-weight: bold;
}

.history-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.filter-button {
  padding: 8px 12px;
  background-color: #1a1a1c;
  border: none;
  color: #888;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.filter-button.active {
  background-color: #4cd6ee;
  color: #000;
  font-weight: bold;
}

.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.transaction-day {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.transaction-day.active {
  display: flex;
}

.transaction-item {
  display: flex;
  align-items: center;
  background-color: #1a1a1c;
  border-radius: 12px;
  padding: 12px 16px;
  gap: 12px;
}

.transaction-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.transaction-item.success .transaction-icon {
  color: #4cd6ee;
}

.transaction-item.failed .transaction-icon {
  color: #ff4444;
}

.transaction-item.pending .transaction-icon {
  color: #ffcc00;
}

.transaction-info {
  flex: 1;
}

.transaction-type {
  font-size: 14px;
  font-weight: 500;
}

.transaction-date {
  font-size: 12px;
  color: #888;
}

.transaction-amount {
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.transaction-amount.positive {
  color: #4cd6ee;
}

.transaction-amount.negative {
  color: #ff4444;
}

.transaction-cancel {
  background: none;
  border: none;
  color: #888;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.transaction-cancel:hover {
  color: #ff4444;
}

.betting-content {
  padding: 16px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 414px;
  margin: 0 auto;
}

button:disabled {
  opacity: 0.5;
}

/* Панель множителя */
.multiplier-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a1a1c;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
}

.dice-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dice-icon {
  font-size: 24px;
}

.multiplier-info {
  display: flex;
  flex-direction: column;
}

.multiplier-value {
  font-size: 18px;
  font-weight: bold;
  color: #4cd6ee;
}

.multiplier-label {
  font-size: 12px;
  color: #888;
}

.bet-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.bet-amount,
.win-amount {
  font-size: 14px;
}

.bet-label,
.win-label {
  color: #888;
  margin-right: 6px;
}

.bet-value {
  color: white;
}

.win-value {
  color: #4cd6ee;
  font-weight: bold;
}

/* Остальные стили (как в предыдущем примере) */
.betting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.betting-header h1 {
  font-size: 20px;
  margin: 0;
}

.betting-step {
  font-size: 14px;
  color: #888;
}

.betting-input-section {
  background-color: #1a1a1c;
  border-radius: 12px;
  padding: 16px;
}

.input-label {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.amount-input-container {
  display: flex;
  align-items: center;
}

.amount-input {
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  font-weight: bold;
  width: 100%;
  padding: 8px 0;
  outline: none;
}

.currency-symbol {
  font-size: 24px;
  font-weight: bold;
  margin-left: 8px;
}

.quick-buttons {
  display: flex;
  flex-wrap: nowrap;
  /* Не переносить кнопки */
  gap: 8px;
  overflow-x: auto;
  /* Включает скролл на маленьких экранах */
  padding-bottom: 4px;
}

.quick-amount {
  background-color: #1a1a1c;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  /* Не расширяться, а сохранить размеры */
}

.outcome-section {
  background-color: #1a1a1c;
  border-radius: 12px;
  padding: 16px;
  margin-top: 8px;
}

.outcome-section h2 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 12px;
}

.outcome-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.outcome-option {
  background-color: #252528;
  border: none;
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}

.outcome-option.big {
  font-size: 16px;
  padding: 16px;
  grid-column: span 2;
}

.number-bets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  grid-column: span 2;
  margin-top: 8px;
}

.number-bet {
  background-color: #252528;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  text-align: center;
}

/* Стили для активных кнопок */
.outcome-option.active,
.number-bet.active {
  background-color: #4cd6ee;
  color: #000;
  font-weight: bold;
}

.place-bet-button {
  width: 100%;
  background-color: #4cd6ee;
  color: #000;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 16px;
}

.wallet-new {
  display: flex;
  align-items: center;
  background-color: #1a1a1c;
  padding: 2px 4px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(0, 225, 255, 0.2);
  gap: 10px;
}

.wallet-icon {
  width: 40px;
  height: 40px;
  border: 2px solid #4cd6ee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4cd6ee;
  font-size: 18px;
}

.profile-new {
  display: flex;
  align-items: center;
  background-color: #1a1a1c;
  padding: 2px 4px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(0, 238, 255, 0.2);
  gap: 10px;
}

.profile-text {
  font-size: 12px;
  color: #888;
  text-align: right;
}

.profile-text strong {
  color: #ffffff;
  font-size: 16px;
}

.profile-icon {
  width: 40px;
  height: 40px;
  border: 2px solid #4cd6ee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4cd6ee;
  font-size: 18px;
}

/* Скрываем содержимое по умолчанию */
.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Открытое содержимое */
.expanded {
  max-height: 500px;
  /* достаточно большое значение */
  opacity: 1;
  pointer-events: auto;
}

#collapsible-content {
  overflow: hidden;
  max-height: 30px;
  /* высота при свёрнутом виде */
  opacity: 0.5;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

#collapsible-content.expanded {
  max-height: 1000px;
  /* достаточно большое значение для раскрытия */
  opacity: 1;
}

.toggle-arrow,
.toggle-arrow * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* CSS */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(20, 20, 22, 1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 999;
}

.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  transition: color 0.2s ease;
}

.bottom-nav .nav-item .icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.bottom-nav .nav-item.active,
.bottom-nav .nav-item:hover {
  color: white;
}

/* Модалка */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1000;
  padding-right: 15px;
  padding-left: 15px;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease forwards;
}

.modal-dialog {
  max-width: 500px;
  width: 100%;
  transform: translateY(-20px);
  opacity: 0;
  animation: slideUp 0.3s ease forwards;
}

.modal-content {
  background: #1a1a1d;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid #2c2c2e;
}

/* header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #2c2c2e;
  background: #121214;
}

.modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  font-size: 22px;
  cursor: pointer;
  color: #bbb;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #fff;
}

/* body */
.modal-body {
  padding: 18px;
}

.form-group {
  margin-bottom: 14px;
}

/* footer */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid #2c2c2e;
  background: #121214;
}

/* Анимации */
@keyframes fadeIn {
  from {
    background: rgba(0, 0, 0, 0);
  }

  to {
    background: rgba(0, 0, 0, 0.65);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toggle-arrow {
  cursor: pointer;
  font-size: 20px;
  text-align: center;
  margin-top: 5px;
  transition: transform 0.3s ease;
}

.toggle-arrow:focus,
.toggle-arrow:active {
  outline: none;
}


.toggle-arrow.rotated {
  transform: rotate(180deg);
}

.logo-image {
  width: 75px
}

.wallet-text {
  font-size: 14px;
  color: #888;
}

.wallet-text strong {
  color: #ffffff;
  font-size: 18px;
}


.image-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 16px;
}

.card-image {
  width: 100%;
  border-radius: 20px;
  display: block;
}


.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  max-width: 100%;
  margin: 0 auto;
  background-color: #0f0f10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}

.top-bar .wallet,
.top-bar .profile {
  background-color: #1a1a1a;
  padding: 10px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  font-size: 12px;
  box-shadow: 0 0 10px rgba(0, 195, 255, 0.1);
}

.top-bar .icon {
  margin-right: 8px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #4cd6ee;
  font-family: 'Comic Sans MS', cursive;
}

.main-content {
  max-width: 414px;
  margin: -260px auto 0;
  background-size: cover;
  min-height: 100vh;
  padding: 10px;
  position: absolute;
  opacity: 0;
  visibility: hidden;
  z-index: 10;
}

.main-content.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

/* Для неактивных страниц - убираем за пределы экрана */
.main-content:not(.active) {
  transform: translateX(-100vw);
  pointer-events: none;
}

.deposit-content {
  padding: 16px;
}

.deposit-header {
  text-align: center;
  margin-bottom: 24px;
}

.deposit-header h1 {
  font-size: 24px;
  margin: 0;
}

.deposit-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.deposit-tab {
  flex: 1;
  padding: 12px;
  background-color: #1a1a1c;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 12px;
  cursor: pointer;
}

.deposit-tab.active {
  background-color: #4cd6ee;
  color: #000;
}

.deposit-amount {
  background-color: #1a1a1c;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.deposit-amount-label {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.deposit-amount-value {
  font-size: 24px;
  font-weight: bold;
}

.quick-amounts {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.quick-amount {
  background-color: #1a1a1c;
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  flex: 1;
  min-width: 60px;
}

.wallet-amount {
  background-color: #1a1a1c;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.wallet-amount-label {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.wallet-amount-value {
  font-size: 18px;
}

.deposit-footer {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.footer-button {
  background-color: transparent;
  border: 1px solid #4cd6ee;
  color: #4cd6ee;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.payment-methods {
  margin-bottom: 24px;
}

.payment-methods-label {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.payment-method {
  display: flex;
  align-items: center;
  background-color: #1a1a1c;
  border-radius: 12px;
  padding: 16px;
}

.payment-method-icon {
  width: 40px;
  height: 40px;
  border: 2px solid #4cd6ee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4cd6ee;
  font-size: 18px;
  margin-right: 16px;
}

.payment-method-name {
  flex: 1;
  font-size: 16px;
}

.payment-method-arrow {
  color: #888;
}

.continue-button {
  width: 100%;
  background-color: #4cd6ee;
  color: #000;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.deposit-amount-input {
  display: flex;
  align-items: center;
  position: relative;
}

.currency-symbol {
  font-size: 24px;
  font-weight: bold;
  margin-right: 8px;
  color: white;
}

.amount-input {
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  font-weight: bold;
  width: 100%;
  padding: 0;
  outline: none;
}

/* Убираем стрелки у input type number */
.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.amount-input {
  -moz-appearance: textfield;
}

.bonus-banner {
  margin: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0c4953, #1a525c);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.profile-content {
  padding: 16px;
  color: white;
}

.profile-header h1 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.balance-section {
  background-color: #1a1a1c;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.balance-label {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.balance-value {
  font-size: 24px;
  font-weight: bold;
}

.profile-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.profile-tab {
  flex: 1;
  padding: 12px;
  background-color: #1a1a1c;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 12px;
  cursor: pointer;
}

.profile-tab.active {
  background-color: #4cd6ee;
  color: #000;
}

.withdraw-requirement {
  background-color: #1a1a1c;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: center;
}

.requirement-text {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.requirement-value {
  font-size: 18px;
  font-weight: bold;
}

.referral-section {
  background-color: #1a1a1c;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.referral-section h2 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 16px;
}

.referral-stats {
  margin-bottom: 16px;
}

.referral-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  font-size: 14px;
  color: #888;
}

.stat-value {
  font-size: 16px;
  font-weight: bold;
}

.referral-description {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 16px;
  line-height: 1.4;
}

.referral-link-container {
  margin-bottom: 16px;
}

.referral-link-label {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.referral-link-box {
  display: flex;
  align-items: center;
  background-color: #252528;
  border-radius: 8px;
  padding: 12px;
}

.referral-icon {
  color: #4cd6ee;
  margin-right: 12px;
  font-size: 18px;
}

.referral-link {
  flex: 1;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.referral-copy {
  color: #4cd6ee;
  font-size: 18px;
  margin-left: 12px;
}

.referral-button {
  width: 100%;
  background-color: #4cd6ee;
  color: #000;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.social-section {
  margin-bottom: 16px;
}

.social-section h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.social-buttons {
  display: flex;
  gap: 8px;
}

.social-button {
  flex: 1;
  text-align: center;
  text-decoration: none;
  background-color: #1a1a1c;
  border: none;
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.pulse-anim {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
}

.promo-section h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.promo-input-container {
  display: flex;
  gap: 8px;
}

.promo-input {
  flex: 1;
  background-color: #1a1a1c;
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.promo-button {
  background-color: #4cd6ee;
  color: #000;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.bonus-banner h1 {
  font-size: 24px;
  margin: 0;
}

.bonus-banner p {
  margin-top: 8px;
  font-size: 14px;
  color: #c0ffdd;
}

.bonus-banner button {
  margin-top: 16px;
  background-color: #4cd6ee;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  font-size: 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 16px;
}

.card {
  background-color: #1a1a1c;
  border-radius: 20px;
  padding: 16px;
  color: white;
  position: relative;
  overflow: hidden;
}

.card h3 {
  margin-top: 0;
  font-size: 16px;
}

.card p {
  color: #aaa;
  font-size: 12px;
}

.tag {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 8px;
  background-color: #3ed5f0;
  color: #000;
  border-radius: 8px;
  font-size: 10px;
}

/* Стили для ставок участников Crash */
.crashBets {
  max-height: 250px;
  overflow-y: auto;
  padding: 15px;
  background-color: #1a1a1c;
  border-radius: 12px;
  margin-top: 15px;
  border: 1px solid #333;
}

.bet-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 8px;
  background-color: #2a2a2c;
  border-radius: 6px;
  border: 1px solid #333;
  transition: all 0.3s ease;
}

.bet-item:hover {
  background-color: #333;
  border-color: #2c8ce0;
}

.bet-avatar {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.bet-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bet-info {
  flex: 1;
  min-width: 0;
}

.bet-name {
  color: white;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bet-amount {
  color: #2c8ce0;
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.bet-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.bet-status.active {
  background-color: #43bacf;
  color: white;
}

.bet-status.cashed_out {
  background-color: #ffc107;
  color: #000;
}

.bet-status.lost {
  background-color: #dc3545;
  color: white;
}

.no-bets {
  text-align: center;
  color: #666;
  font-size: 14px;
  padding: 20px;
  font-style: italic;
}

/* Стили для переключателя звуков */
.sound-toggle {
  margin: 15px 0;
}

.sound-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.sound-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  background-color: #333;
  border-radius: 24px;
  transition: background-color 0.3s;
  margin-right: 10px;
}

.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.sound-switch input:checked+.slider {
  background-color: #2c8ce0;
}

.sound-switch input:checked+.slider:before {
  transform: translateX(26px);
}

.sound-label {
  color: white;
  font-size: 14px;
  font-weight: 500;
}

/* ========================================================== */
/* ==== НАЧАЛО: УЛУЧШЕННЫЕ СТИЛИ ДЛЯ РАКЕТЫ LUCKY JET ==== */
/* ========================================================== */

#luckyJet {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 70px;
  /* Отступ для нижней навигации */
}

.luckyjet-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
  flex-grow: 1;
}

/* --- Панель истории --- */
.luckyjet-history {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.luckyjet-history::-webkit-scrollbar {
  display: none;
}

.luckyjet-history-item {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  background-color: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease;
}

.luckyjet-history-item:hover {
  transform: translateY(-2px);
}

.luckyjet-history-item.blue {
  color: #4cd6ee;
  border-color: #4cd6ee44;
}

.luckyjet-history-item.purple {
  color: #a78bfa;
  border-color: #a78bfa44;
}

.luckyjet-history-item.yellow {
  color: #facc15;
  border-color: #facc1544;
}


.luckyjet-game-area {
    position: relative;
    /* 1. Базовый градиент глубокого космоса */
    background: radial-gradient(ellipse at 70% 100%, #2a374a 0%, #090a0f 100%);
    border-radius: 16px;
    height: 300px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(76, 214, 238, 0.1);
}

@keyframes move-twink-back {
  from {
    background-position: 0 0;
  }

  to {
    background-position: -10000px 5000px;
  }
}

.stars,
.twinkling {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stars {
  background: #000 url(https://www.script-tutorials.com/demos/360/images/stars.png) repeat top center;
  z-index: 0;
}

.twinkling {
  background: transparent url(https://www.script-tutorials.com/demos/360/images/twinkling.png) repeat top center;
  z-index: 1;
  animation: move-twink-back 200s linear infinite;
}

/* --- Интерфейс (множитель и статус) --- */
.luckyjet-ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 15px rgba(76, 214, 238, 0.5);
}

.luckyjet-multiplier {
  font-size: 58px;
  font-weight: 700;
  color: #fff;
  transition: color .3s ease;
}

.luckyjet-multiplier.crashed {
  color: #e74c3c;
  animation: shake .5s ease-in-out;
}

.luckyjet-status-text {
  font-size: 18px;
  color: #adb5bd;
  font-weight: 500;
}

/* --- Анимация Ракеты --- */
.luckyjet-jetman {
  position: absolute;
  width: 90px;
  height: auto;
  z-index: 5;
  left: 0;
  bottom: 0;
  will-change: transform;
  transition: opacity .3s ease;
  /* Стартовая позиция */
  transform: translate(-120px, 0);
}

.luckyjet-jetman img {
  width: 100%;
  filter: drop-shadow(0 0 15px rgba(76, 214, 238, 0.7));
  animation: jetmanBob .8s ease-in-out infinite;
}

.luckyjet-jetman::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 32%;
  width: 25px;
  height: 60px;
  /* Удлиненное пламя */
  background: linear-gradient(to top, #fdb838, transparent);
  border-radius: 50% 50% 0 0;
  filter: blur(8px);
  transform-origin: bottom;
  animation: flamePulse .15s ease-in-out infinite;
  opacity: 1;
}

.luckyjet-jetman.exploded {
  animation: explosion .4s ease-out forwards;
}

/* --- Холст для траектории полета --- */
#luckyJetChartCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* --- Эффект взрыва --- */
.luckyjet-game-area.is-crashed::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 200px 150px white;
  /* Интенсивная вспышка */
  opacity: 0;
  animation: crash-flash 0.5s ease-out forwards;
  z-index: 4;
}

.luckyjet-game-area::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 200%; height: 200%;
    /* Ссылка на текстуру туманности */
    background: transparent url(https://www.transparenttextures.com/patterns/nebula.png) repeat;
    background-size: 500px 500px; /* Размер текстуры */
    opacity: 0.2;
    z-index: 1;
    animation: move-clouds-back 150s linear infinite;
}


.luckyjet-game-area::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent url(https://www.script-tutorials.com/demos/360/images/twinkling.png) repeat top center;
    z-index: 2;
    animation: move-twink-back 200s linear infinite;
}
/* --- Список ставок --- */

@keyframes move-clouds-back {
    from { transform: translate(0, 0); }
    to { transform: translate(-50%, -50%); }
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}
.luckyjet-bets-list {
  background: #1a1a1c;
  border-radius: 12px;
  padding: 8px 15px;
  margin-bottom: 10px;
  max-height: 120px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #4A5568 #2D3748;
}

.luckyjet-bets-list::-webkit-scrollbar {
  width: 5px;
}

.luckyjet-bets-list::-webkit-scrollbar-thumb {
  background-color: #4A5568;
  border-radius: 10px;
}

.luckyjet-bet-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #2a2a2e;
  font-size: 14px;
  color: #CBD5E0;
}

.luckyjet-bet-item:last-child {
  border-bottom: none;
}

.luckyjet-bet-user {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.luckyjet-bet-details {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 10px;
}

.luckyjet-bet-amount,
.luckyjet-bet-win {
  font-weight: 600;
  min-width: 70px;
  text-align: right;
}

.luckyjet-bet-win {
  color: #A0AEC0;
}

.luckyjet-bet-item.cashed-out .luckyjet-bet-win {
  color: #48BB78;
  font-weight: 700;
}

.luckyjet-bet-item.crashed .luckyjet-bet-win {
  color: #e74c3c;
}


.luckyjet-no-bets {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 50px;
  color: #7a8c99;
  font-size: 14px;
  font-style: italic;
}

/* --- Кнопки управления --- */
#luckyJetBetButton {
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  padding: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

#luckyJetBetButton.bet {
  background: linear-gradient(135deg, #4cd6ee, #009cb1);
  color: #000;
}

#luckyJetBetButton.bet:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 7px 25px rgba(76, 214, 238, 0.4);
}

#luckyJetBetButton.cashout {
  background: linear-gradient(135deg, #2ecc71, #28a745);
  color: #fff;
}

#luckyJetBetButton.cashout:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 7px 25px rgba(46, 204, 113, 0.4);
}

#luckyJetBetButton:disabled {
  background: #2d3748;
  color: #718096;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* --- Анимации --- */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0)
  }

  25% {
    transform: translateX(-5px)
  }

  50% {
    transform: translateX(5px)
  }

  75% {
    transform: translateX(-3px)
  }
}

@keyframes jetmanBob {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-7px)
  }
}

@keyframes flamePulse {

  0%,
  100% {
    transform: scaleY(1) scaleX(1);
    opacity: .9;
  }

  50% {
    transform: scaleY(1.2) scaleX(1.1);
    opacity: 1;
  }
}

@keyframes explosion {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(3);
    opacity: 0;
    filter: blur(5px);
  }
}

@keyframes crash-flash {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(3);
    opacity: 0;
  }
}

/* ========================================================== */
/* ==== КОНЕЦ: УЛУЧШЕННЫЕ СТИЛИ ДЛЯ РАКЕТЫ LUCKY JET ==== */
/* ========================================================== */

/* ======================================================================== */
/* STYLES FOR BEAUTIFUL NOTIFICATIONS                                       */
/* ======================================================================== */

.notification {
  /* Позиционирование по центру сверху */
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);

  /* Внешний вид */
  padding: 16px 24px;
  border-radius: 12px;
  background-color: #333;
  /* Фоновый цвет по умолчанию */
  color: #ffffff;
  min-width: 280px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  z-index: 10001;
  /* Убедимся, что уведомление поверх всего */

  /* Легкое голубое свечение */
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2), 0 0 20px 5px rgba(52, 152, 219, 0.4);

  /* Анимации */
  opacity: 0;
  transform: translateY(-30px) translateX(-50%);
  /* Начальное состояние для анимации */
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  pointer-events: none;
  /* Нельзя кликнуть, когда скрыто */
}

/* Модификатор для видимого состояния */
.notification.show {
  opacity: 1;
  transform: translateY(0) translateX(-50%);
  pointer-events: auto;
}

/* Цвета для разных типов уведомлений */
.notification.success {
  background: linear-gradient(145deg, #2ecc71, #28a745);
}

.notification.error {
  background: linear-gradient(145deg, #e74c3c, #c0392b);
}


.tower-coef-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 5px;
  margin-bottom: 5px;
  transition: background-color 0.3s, transform 0.3s;
  background-color: #2a2a2a;
  /* Цвет по умолчанию */
}

.tower-coef-row.active {
  background-color: #ff9900;
  /* Цвет для активной строки */
  color: #1a1a1a;
  font-weight: bold;
  transform: scale(1.05);
}

#notification-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.notification-toast {
  padding: 16px 22px;
  border-radius: 19px;
  color: #fff;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 15px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  background: rgba(15, 15, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);

  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.notification-toast.success {
  border: 4px solid #4fc3f7;
  /* Голубой акцент */
}

.notification-toast.error {
  border: 4px solid #ef5350;
}

.notification-toast b {
  font-weight: 600;
  color: #4fc3f7;
  /* Голубой акцент */
}


