/* Prize Result */

.prize-result {
  margin: 20px 0;
  text-align: center;
  min-height: 60px;
}

.prize-result-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--tg-text);
  margin-bottom: 8px;
  animation: fadeIn 0.3s ease-out;
}

.prize-code {
  font-size: 14px;
  color: var(--tg-accent);
  font-weight: 500;
}

.prize-code span {
  font-weight: 600;
  color: #fff;
}

/* Prize Items */

.prizes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.prize-item {
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(
    135deg,
    rgba(26, 32, 56, 0.96),
    rgba(10, 14, 30, 0.96)
  );
  border: 1px solid rgba(112, 130, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.prize-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(112, 130, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.prize-item:hover {
  transform: translateY(-2px);
  border-color: rgba(112, 130, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(112, 130, 255, 0.2);
}

.prize-item:hover::before {
  left: 100%;
}

.prize-item-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--tg-text);
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.prize-item-name::before {
  content: '🎁';
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.prize-item-qty {
  font-size: 13px;
  color: var(--tg-text-soft);
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-weight: 500;
}

.prize-item-qty strong {
  color: var(--tg-accent);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* Анимация появления */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prize-item {
  animation: fadeInUp 0.4s ease-out;
}

.prize-item:nth-child(1) { animation-delay: 0.05s; }
.prize-item:nth-child(2) { animation-delay: 0.1s; }
.prize-item:nth-child(3) { animation-delay: 0.15s; }
.prize-item:nth-child(4) { animation-delay: 0.2s; }
.prize-item:nth-child(5) { animation-delay: 0.25s; }
.prize-item:nth-child(n+6) { animation-delay: 0.3s; }

/* Разделитель между заголовком и секцией призов */
.prizes-header-divider {
  margin: 20px 0 24px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(112, 130, 255, 0.2) 15%,
    rgba(112, 130, 255, 0.4) 30%,
    rgba(112, 130, 255, 0.6) 50%,
    rgba(112, 130, 255, 0.4) 70%,
    rgba(112, 130, 255, 0.2) 85%,
    transparent 100%
  );
  position: relative;
  overflow: visible;
  border-radius: 2px;
}

.prizes-header-divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, var(--tg-accent) 0%, transparent 70%);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.8), 0 0 40px rgba(88, 101, 242, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

.prizes-header-divider::after {
  content: '🎁';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  filter: drop-shadow(0 0 10px rgba(88, 101, 242, 0.5));
  background: var(--tg-bg);
  padding: 0 12px;
  z-index: 1;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Разделитель между секциями призов */
.prizes-section-divider {
  margin: 24px 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(112, 130, 255, 0.3) 20%,
    rgba(112, 130, 255, 0.5) 50%,
    rgba(112, 130, 255, 0.3) 80%,
    transparent 100%
  );
  position: relative;
  overflow: visible;
}

.prizes-section-divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--tg-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.6);
}

.prizes-section-divider::after {
  content: '✨';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.4));
  background: var(--tg-bg);
  padding: 0 8px;
}

