.roulette-s {
  flex-direction: column;
  font-family: var(--bulma-family-primary);
  font-weight: 400;
  letter-spacing: .2px;
  align-items: center;
  color: #fff;
}

.roulette-container {
  overflow: hidden;
  width: 100%;
  margin: 60px auto 30px auto;
  position: relative;
  max-width: 95%;
  height: 280px;
  border-radius: 10px;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(11px);
  outline: 1px solid rgba(255, 255, 255, 0.2);
}

.roulette-track {
  display: flex;
  transition: transform 5s cubic-bezier(0.2, 0.8, 0.2, 1);
  align-items: center;
  height: 100%;
  padding: 0 100px;
}

.roulette-item {
  flex: 0 0 260px;
  margin: 0 20px;
  text-align: center;
  background: rgba(50, 50, 50, 0.3);
  outline: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px;
  max-width: 280px;
}

.roulette-item.winner {
  box-shadow: 0 0 28px var(--red), 0 0 15px rgba(255, 0, 0, 0.6);
  transform: scale(1.15) rotate(-1deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  filter: brightness(1.2) saturate(1.3);
  animation: pulse 1s infinite ease-in-out .2s forwards;
}

@keyframes pulse {
  0% {
    transform: scale(1.15) rotate(-1deg);
    box-shadow: 0 0 28px var(--red), 0 0 15px rgba(255, 0, 0, 0.6);
  }
  50% {
    transform: scale(1.18) rotate(1deg);
    box-shadow: 0 0 36px var(--red), 0 0 25px rgba(255, 0, 0, 0.8);
  }
  100% {
    transform: scale(1.15) rotate(-1deg);
    box-shadow: 0 0 28px var(--red), 0 0 15px rgba(255, 0, 0, 0.6);
  }
}

.file-name2 {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  margin-top: 0px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.roulette-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.roulette-item p {
  font-size: 15px;
  margin-top: 6px;
  color: #ddd;
}

.details-roll {
  background: var(--dark);
}

.start-roulette {
  display: block;
  padding: 5px 10px 5px 10px;
  background: var(--dark);
  border: none;
  color: white;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin: 0 auto;
}

.start-roulette:hover {
  background: var(--ddark);
}

.start-roulette:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.start-roulette.spinning {
  background-color: #aaa;
}

.roulette-highlight {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  z-index: 10;
  pointer-events: none;
}


.roulette-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.roulette-modal.active {
  display: flex;
}

.modal-content-roll {
  background: rgba(51, 51, 51, 0.4);
  padding: 30px;
  outline: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(11px);
  display: flex;
  color: #fff;
  max-width: 400px;
  width: 90%;
  position: relative;
  flex-direction: column;
  align-items: center;
}

.modal-content-roll img {
  object-fit: cover;
  width: 100%;
  border-radius: 15px;
  height: 210px;
}

.modal-content-roll h2 {
  font-size: 22px;
  margin: 20px;
}

.modal-close-roll {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  cursor: pointer;
  color: #ccc;
}

.modal-buttons-roll {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.modal-button-roll {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: #fff;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s ease;
}

.modal-button-roll:hover {
  opacity: 0.9;
}


.roulette-track {
  min-width: 3000px;
}