body {
  font-family: sans-serif;
  text-align: center;
  background: #0d0d2b;
  color: white;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.container {
  padding: 0px; /* боковые границы*/
}

#roulette-area {
  padding: 0 !important;
}

.roulette-container {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  margin: 0 auto;
}

@media (max-width: 400px) {
  .nft-item {
    flex: 0 0 45vw;
  }
}
.roulette-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.roulette {
  min-width: 100vw;
  display: flex;
  width: max-content;
  transition: transform 3s ease-out;
  will-change: transform;
}


.nft-item {
  width: 150px;
  margin: 0 5px;
  flex-shrink: 0;
}

.nft-item img {
  width: 100%;  
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}


.case-image {
  width: 250px;
  margin: -20px auto;
  display: block;
  transition: transform 0.3s ease;
  box-shadow: none;
  filter: drop-shadow(0 0 24px #1f9ee7) drop-shadow(0 0 48px #6f47ff);
  animation: glowDropShadow 2.2s ease-in-out infinite;
}

@keyframes glowDropShadow {
  0% {
    filter: drop-shadow(0 0 18px #1f9ee7) drop-shadow(0 0 32px #6f47ff);
  }
  30% {
    filter: drop-shadow(0 0 32px #6f47ff) drop-shadow(0 0 60px #1f9ee7);
  }
  60% {
    filter: drop-shadow(0 0 40px #1f9ee7) drop-shadow(0 0 80px #6f47ff);
  }
  100% {
    filter: drop-shadow(0 0 18px #1f9ee7) drop-shadow(0 0 32px #6f47ff);
  }
}

.case-image:hover {
  transform: scale(1.05);
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: sans-serif;
}


.modal {
  position: fixed;
  inset: 0; /* = top: 0; right: 0; bottom: 0; left: 0 */
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}

/* содержимое модалки */
.modal-content {
  background: linear-gradient(135deg, #232347 80%, #1f2233 100%);
  color: #fff;
  padding: 32px 18px 28px 18px;
  border-radius: 18px;
  width: 90%;
  min-height: 200px;
  max-width: 340px;
  box-shadow: 0 8px 32px rgba(31,158,231,0.18);
  text-align: center;
  position: relative;
  border: 2px solid #1f9ee7;
}

.modal-emoji {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.modal-title {
  color: #1f9ee7;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.modal-message {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700; /* жирный для основного текста */
  margin-bottom: 18px;
}

.modal-sub {
  color: #b8c6e0;
  display: block;
  font-size: 0.98rem;
  font-weight: 400; /* обычный вес для подзаголовка */
  margin-top: 6px;
}

.modal-register-btn {
  margin-top: 10px;
  padding: 12px 28px;
  font-size: 1.08rem;
  font-weight: bold;
  background: linear-gradient(90deg, #ffb300 0%, #ff7e5f 100%);
  color: #fff;
  border: none;
  border-radius: 32px;
  box-shadow: 0 4px 18px rgba(255,126,95,0.13);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.modal-register-btn:hover, .modal-register-btn:focus {
  background: linear-gradient(90deg, #ff7e5f 0%, #ffb300 100%);
  transform: scale(1.06);
}

.modal-content button {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #007aff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #005ee6;
}

.nft-item.selected {
  transform: scale(1.25);
  z-index: 2;
  transition: transform 0.3s ease;
}

.nft-item.dimmed {
  opacity: 0.3;
  filter: blur(2px);
  transition: opacity 0.3s ease, filter 0.3s ease;
  
}

.roulette-wrapper.show-selected {
  overflow: visible !important;
}

.roulette-container.show-selected {
  overflow: visible !important;
}

.roulette-pointer {
  position: absolute;
  left: 50%;
  top: 102%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 24px solid #1f9ee7;
  z-index: 10;
  pointer-events: none;
}
#roulette-area {
  position: relative;
}

/*.roulette-pointer.pointer-lower {
  top: 87%;  смещаем ещё ниже после выпадения 
}
*/

 /*либо просто убираем после выпадения*/
.roulette-pointer.hidden {
  display: none;
}


.open-btn {
  display: inline-block;
  padding: 16px 36px;
  
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #1f9ee7 0%, #6f47ff 100%);
  border: none;
  border-radius: 32px;
  box-shadow: 0 4px 24px rgba(31,158,231,0.15);
  cursor: pointer;
  transition: background 0.3s, transform 0.6s, box-shadow 0.2s;
  margin-top: 8px;
  letter-spacing: 1px;
  line-height: 1;    
}

.open-btn:hover, .open-btn:focus {
  background: linear-gradient(90deg, #6f47ff 0%, #1f9ee7 100%);
  transform: scale(1.06);
  box-shadow: 0 8px 32px rgba(31,158,231,0.25);
}

#claim-btn {
  display: block;
  margin: 24px auto 0 auto; /* сверху 24px, по центру, снизу 0 */
  padding: 16px 36px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #ff7e5f 0%, #feb47b 100%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  border: none;
  border-radius: 32px;
  box-shadow: 0 4px 24px rgba(255,126,95,0.15);
  cursor: pointer;
  transition:
    background-position 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    background 0.3s,
    transform 0.2s,
    box-shadow 0.2s;
  letter-spacing: 1px;
  line-height: 1;
}

#claim-btn:hover, #claim-btn:focus {
  background-position: 100% 0%;
  transform: scale(1.06);
  box-shadow: 0 8px 32px rgba(255,126,95,0.25);
}

#result {
  margin-top: 24px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  text-align: center;
}

.drop-result {
  display: inline-block;
  background: rgba(25, 28, 56, 0.92);
  border-radius: 18px;
  padding: 28px 36px 22px 36px;
  margin: 0 auto 18px auto;
  box-shadow: 0 6px 32px rgba(31,158,231,0.10);
  text-align: center;
  min-width: 220px;
  max-width: 90vw;
}

.drop-label {
  font-size: 0.98rem;
  color: #b8c6e0; /* светло-серый с голубым оттенком */
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-bottom: 7px; /* больше отступ вниз */
  margin-top: -10px;    /* чуть выше */
  text-transform: uppercase;
}

.drop-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 7px;
  text-shadow: 0 2px 12px rgba(31,158,231,0.18);
}

.drop-price {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0098ea;
  background: none;
  border-radius: 0;
  padding: 0;
  display: block;
  margin-top: 2px;
  
}

.drop-price-label {
  color: #b8c6e0;
  font-weight: 400;
  font-size: 0.97em;
  margin-right: 0.1px;
}

.main-header {
  margin-bottom: 30px; 
  padding-top: 20px; /* если нужно чуть приподнять весь блок   */
}

.main-subtitle {
  margin-top: -12px; /* или 0, если нужно совсем близко */
}

.modal-message, .modal-sub {
  color: #fff;
}

.nft-gallery {
  margin: 40px auto 0 auto;
  padding: 24px 0 12px 0;
  background: rgba(25, 28, 56, 0.7);
  border-radius: 18px 18px 0 0;
  max-width: 700px;
  box-shadow: 0 -4px 32px rgba(31,158,231,0.10);
}

.gallery-title {
  color: #b8c6e0;
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 1px;
}

.gallery-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.gallery-list img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(31,158,231,0.10);
  opacity: 0.85;
  transition: transform 0.2s, opacity 0.2s;
}

.gallery-list img:hover {
  transform: scale(1.12);
  opacity: 1;
}
