body {
  background: linear-gradient(145deg, #021424, #021424);
  font-family: 'Comfortaa', cursive;
  color: white;
  margin: 0;
  padding: 0;
}


.bg-bgDark1 {
  
  background-color: rgba(46, 45, 47, 0.61);
}


.bg-violet-6000 {
 
  background-color: rgb(58, 168, 210);
}




.main-container {
  width: 100%; /* На мобильных устройствах будет 100% */
  max-width: 1280px; /* Ограничиваем максимальную ширину на десктопах */
  margin: 0 auto; /* Центрируем контейнер */
  padding: 20px; /* Паддинги для удобства */
}

/* Оставляем уже существующие стили для элементов */
.game-title {
  font-size: 2.5rem;
  color: #C084FC;
  text-shadow: 0 0 20px rgba(192, 132, 252, 0.8);
}

.resources {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 40px;
  backdrop-filter: blur(8px);
}

@media (min-width: 768px) {
  .resources {
    grid-template-columns: repeat(4, 1fr);
  }
}

.resource-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  word-wrap: break-word;
}

.resource-item span {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  display: block;
}

@media (max-width: 768px) {
  .resource-item span {
    font-size: 1.5rem;
  }

  .resource-item p {
    font-size: 0.875rem;
  }
}

.resource-item p {
  color: #E5E7EB;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.tariff-card {
  background: rgba(11, 40, 51, 0.8);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  transition: transform 0.3s;
}

.tariff-card:hover {
  transform: translateY(-3px);
  border-radius: 16px;
  box-shadow: 0 0 5px rgba(155, 93, 229, 0.6);
}

.tariff-button {
  background: inear-gradient(to right, #a4253d, #C81919);
  color: white;
  font-weight: bold;
  border-radius: 50px;
  padding: 12px 24px;
  transition: transform 0.3s;
}

.tariff-button:hover {
  transform: scale(1.05);
}

.start-button {
  background: inear-gradient(to right, #a23b3b, #C81919);
  padding: 16px 32px;
  font-size: 1.5rem;
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.start-button:hover {
  transform: scale(1.1);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: #D946EF;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #D946EF;
}

.nav-link:hover::after {
  width: 100%;
}

/* Стили для контейнера монет */
.coins-container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10%; /* Поднимаются относительно нижней части секции */
  display: flex;
  justify-content: space-between;
  z-index: -1;
  opacity: 0.6; /* Полупрозрачность для фона */
}

.coin {
  animation: riseUp 3s ease-out infinite; /* Анимация для поднятия монет */
  opacity: 0;
}

.coin-small {
  width: 30px;
  height: 30px;
}

.coin-medium {
  width: 40px;
  height: 40px;
}

.coin-large {
  width: 50px;
  height: 50px;
}

/* Анимация монет — подъем снизу */
@keyframes riseUp {
  0% {
    transform: translateY(0); /* Начинают снизу */
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px); /* Поднимаются вверх до нужного уровня */
    opacity: 0;
  }
}

/* Позиционирование монет слева и справа */
.coin-left {
  animation-delay: 0s; /* Монета слева */
}

.coin-right {
  animation-delay: 1s; /* Монета справа появляется позже */
}

/* Позиционирование монет с разными размерами */
.coin-left.coin-small {
  animation-delay: 0s;
}

.coin-left.coin-medium {
  animation-delay: 0.5s;
}

.coin-left.coin-large {
  animation-delay: 1s;
}

.coin-right.coin-small {
  animation-delay: 0.5s;
}

.coin-right.coin-medium {
  animation-delay: 1s;
}

.coin-right.coin-large {
  animation-delay: 1.5s;
}

footer {
  text-align: center;
  color: #E5E7EB;
  padding: 20px; 
}

/* Адаптация для мобильных устройств */
@media (max-width: 767px) {
  .main-container {
    width: 100%;
    padding: 10px;
  }

  .resources {
    grid-template-columns: repeat(1, 1fr); /* Один столбец на мобильных */
  }

  .game-title {
    font-size: 1.8rem; /* Уменьшаем шрифт заголовка */
  }

  .resource-item {
    padding: 10px;
  }

  .start-button {
    font-size: 1.3rem;
    padding: 14px 28px;
  }
}
  .gold-coin {
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #ffeb3b, #fbc02d);
    border-radius: 50%;
    box-shadow:
      inset 2px 2px 5px rgba(255,255,255,0.9),
      0 0 5px rgba(255, 235, 59, 0.8);
    filter: drop-shadow(0 0 2px #fdd835);
    animation: coinRise 2.5s forwards ease-out;
    opacity: 0.9;
  }

  @keyframes coinRise {
    0% {
      transform: translateY(0) scale(1);
      opacity: 0.9;
    }
    70% {
      opacity: 1;
      transform: translateY(-100px) scale(1.2);
    }
    100% {
      transform: translateY(-150px) scale(0.8);
      opacity: 0;
    }
  }
          h3.relative {
            position: relative;
            display: inline-block;
          }
          /* Анимационная линия под заголовком */
          .animated-line {
            position: absolute;
            bottom: -8px;  /* Отступ под текстом */
            left: 0;
            height: 3px;
            width: 100%;
            background: linear-gradient(90deg, #8b5cf6, #4f46e5, #8b5cf6);
            border-radius: 2px;
            overflow: hidden;
          }
        
          .animated-line::before {
            content: "";
            position: absolute;
            top: 0;
            left: -50%;
            width: 50%;
            height: 100%;
            background: #fcd34d; /* желтый акцент */
            border-radius: 2px;
            animation: slide-line 2s linear infinite;
          }
        
          @keyframes slide-line {
            0% {
              left: -50%;
            }
            100% {
              left: 100%;
            }
          }