@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
.winner_arrea {
  position: fixed;
  height: calc(var(--tg-viewport-height) - 190px);
  width: 100%;
  left: 0;
  top: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* 🎨 Градиентный фон с анимацией */
  background-color: rgba(0, 0, 0, 0.7);
  background-size: 400% 400%;
  opacity: 0;
  transition: all 0.3s ease;
  color: #fff;
  text-align: center;
}
.winner_arrea.active {
  opacity: 1;
}

/* 🖼 Аватарка с бесконечной пульсацией */
.winner_arrea img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--tg-theme-button-color);
  margin-bottom: 20px;
  animation: popIn 0.8s ease, pulseAvatar 3s infinite ease-in-out;
}

/* Заголовок */
.winner_arrea h1 {
  font-size: 36px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--tg-theme-button-color);
  animation: glowText 2.5s infinite alternate;
}

.winner_arrea .winner_subtitle {
  font-size: 14px;
  margin-top: 0px;
}

/* 💰 Сумма с мигающим свечением */
.winner_arrea .winner_amount_title {
  font-size: 55px;
  font-weight: 600;
  color: var(--tg-theme-button-color);
  animation: glowAmount 1.5s infinite alternate;
}

.winner_arrea .winner_amount_vault {
  font-size: 30px;
  text-transform: uppercase;
  margin-top: -10px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--tg-theme-button-color);
  animation: glowText 2s infinite alternate;
}

.winner_arrea .winner_endtext {
  font-size: 14px;
}

.winner_arrea span {
  font-size: 1.2em;
  margin: 5px 0;
}

/* ✨ Свечение суммы */
@keyframes glowAmount {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}
/* ❤️ Пульсация аватарки */
@keyframes pulseAvatar {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
/* Поп-эффект для первого появления */
@keyframes popIn {
  0% {
    transform: scale(0) rotate(-30deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(10deg);
    opacity: 1;
  }
  70% {
    transform: scale(0.9) rotate(-5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}
.screens .screen {
  display: none;
}
.screens .screen.active {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  height: var(--tg-viewport-height);
}

.screen#giveaway .giveaway_arrea {
  width: 100%;
  flex: 1;
  position: relative;
}
.screen#giveaway .giveaway_arrea .giveaway_indicator {
  position: absolute;
  top: calc(50% - 16px);
}
.screen#giveaway .giveaway_arrea .giveaway_indicator.left {
  left: 16px;
}
.screen#giveaway .giveaway_arrea .giveaway_indicator.right {
  right: 16px;
}
.screen#giveaway .giveaway_arrea .giveaway_indicator.right svg {
  transform: rotate(180deg);
}
.screen#giveaway .giveaway_arrea .giveaway_items {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  height: calc(var(--tg-viewport-height) - 190px);
  flex-wrap: nowrap;
  margin: 0 auto;
  /* Анимация вращения */
}
.screen#giveaway .giveaway_arrea .giveaway_items::before {
  background: linear-gradient(to top, transparent, var(--tg-theme-secondary-bg-color));
  content: "";
  height: 36px;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 2;
}
.screen#giveaway .giveaway_arrea .giveaway_items .giveaway_item {
  flex-grow: 1;
  flex-basis: 0;
  padding: 10px 0px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  border: 2px solid transparent;
}
.screen#giveaway .giveaway_arrea .giveaway_items .giveaway_item img {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  display: block;
}
.screen#giveaway .giveaway_arrea .giveaway_items .giveaway_item.winner {
  border-color: red;
}
.screen#giveaway .giveaway_arrea .giveaway_items .spin-animation {
  animation: spin 5s ease-in-out infinite;
}
.screen#giveaway .giveaway_menu {
  width: 100%;
  flex: 0 0 180px;
  height: 190px;
  background-color: var(--tg-theme-secondary-bg-color);
  padding: 15px;
  display: flex;
  flex-direction: column;
  padding: 20px 15px;
  position: relative;
  z-index: 150;
}
.screen#giveaway .giveaway_menu .winners_result {
  display: flex;
  justify-content: space-between;
  padding: 0px 10px;
  margin-bottom: 15px;
}
.screen#giveaway .giveaway_menu .winners_result .winners_result_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.screen#giveaway .giveaway_menu .winners_result .winners_result_item .winners_result_text {
  margin-top: 10px;
}
.screen#giveaway .giveaway_menu .winners_result .winners_result_item .winner_username {
  height: 10px;
  font-size: 12px;
  margin-top: 6px;
  font-weight: 500;
}
.screen#giveaway .giveaway_menu .winners_result img {
  width: 45px;
  height: 45px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 50%;
  background: var(--tg-theme-header-bg-color);
}
.screen#giveaway .giveaway_menu .winners_result .winners_result_text {
  font-size: 12px;
}
.screen#giveaway .giveaway_menu button {
  background-color: transparent;
  width: 100%;
  padding-bottom: 15px;
  padding-top: 15px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  position: relative;
  border: none;
  outline: none;
  margin-top: auto;
}
.screen#giveaway .giveaway_menu button .background-btn {
  width: 100%;
  height: 100%;
  background-color: #27ae60;
  opacity: 0.2;
  position: absolute;
  left: 0px;
  top: 0px;
  border-radius: 12px;
}
.screen#giveaway .giveaway_menu button .button-text {
  position: relative;
  z-index: 10;
  color: #27ae60;
}

/* Определение анимации */
@keyframes spin {
  0% {
    transform: rotate(0deg); /* Начало вращения */
  }
  50% {
    transform: rotate(1800deg); /* Быстрое вращение */
  }
  100% {
    transform: rotate(3600deg); /* Замедленное завершение */
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
  background-color: var(--tg-theme-secondary-bg-color);
  background-image: url("../fortune-bg.png");
  background-position: top;
  background-size: 50%;
  height: var(--tg-viewport-height);
  color: var(--tg-theme-text-color);
  font-family: "Inter", sans-serif;
}

img {
  max-width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}/*# sourceMappingURL=main.css.map */