.main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;

  &__container {
    padding-top: 20px;
    padding-bottom: 60px;
    position: relative;
  }

  &__title {
    font-size: 34px;
    font-weight: 900;
    color: $c-black;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.2;
    // 🔑 Главное исправление: выравнивание цифр
    font-variant-numeric: tabular-nums; // ← все цифры одинаковой ширины и высоты

    span {
      color: $c-green;
      font-weight: 900;
      text-shadow: 0 0 12px rgba(0, 185, 86, 0.3);
    }
  }

  &__subtitle {
    font-size: 18px;
    color: $c-black;
    opacity: 0.8;
    text-align: center;
    margin-bottom: 16px;
  }

  &__timer {
    font-size: 14px;
    color: $c-black;
    opacity: 0.7;
    text-align: center;
    margin-bottom: 24px;

    strong {
      font-weight: 700;
      color: $c-primary;
    }
  }

  &__illustration {
    display: block;
    width: 100%;
    max-width: 260px;
    margin: 0 auto 28px;
    object-fit: contain;
    max-height: 180px;
    border-radius: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    background: #fafafa;
    animation: floatBonus 5s ease-in-out infinite;
  }

  &__button {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  &__link {
    text-decoration: none;
    font-size: 22px;
    font-weight: 500;
    color: $c-white;
    width: 100%;
    padding: 20px 15px;
    border-radius: 190px;
    background: $c-primary;
    text-align: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    animation: pulseBonus 2s infinite;

    &:active {
      transform: scale(0.98);
    }
  }

  &__pay {
    text-align: center;
    color: $c-black;
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 16px;
  }

  &__back {
    font-size: 16px;
    color: $c-black;
    opacity: 0.7;
    text-decoration: underline;
    margin: 0 auto;
    width: max-content;
  }

  // Частицы фона
  &__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
  }

  .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: $c-green;
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s infinite linear;

    &:nth-child(1) {
      top: 20%;
      left: 10%;
      animation-delay: 0s;
      width: 6px;
      height: 6px;
    }
    &:nth-child(2) {
      top: 60%;
      right: 15%;
      animation-delay: 2s;
      width: 10px;
      height: 10px;
    }
    &:nth-child(3) {
      bottom: 30%;
      left: 20%;
      animation-delay: 4s;
      width: 7px;
      height: 7px;
    }
  }
}

// 🔹 Анимации
@keyframes pulseBonus {
  0% {
    box-shadow: 0 0 0 0 rgba(178, 42, 201, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(178, 42, 201, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(178, 42, 201, 0);
  }
}

@keyframes floatBonus {
  0%,
  100% {
    transform: translateY(0) rotate(0.3deg);
  }
  50% {
    transform: translateY(-10px) rotate(-0.3deg);
  }
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-100vh) translateX(20px);
    opacity: 0;
  }
}

// 🔧 Хедер (как в game10)
.header {
  &__container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 10px;
  }

  &__logo-wrapper {
    flex: 1;
    text-align: center;
  }

  &__logo {
    max-width: 180px;
    height: auto;
  }

  &__danger-wrapper {
    flex: 0 0 auto;
    padding-left: 10px;
  }

  &__danger {
    width: 28px;
    height: 28px;
  }
}

// 🔧 Футер
.footer {
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.02);

  &__container {
    max-width: 380px;
    margin: 0 auto;
    text-align: center;

    p {
      color: $c-black;
      opacity: 0.7;
      font-size: 12px;
      margin: 0;
      line-height: 1.4;
    }

    a {
      color: inherit;
      text-decoration: underline;
    }
  }
}
