/* Bonus roulette — Paradise Life theme */

.roulette-section {
  padding: 8px 0 16px;
  margin-bottom: 8px;
}

.roulette-plate {
  padding: 28px 24px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(
    165deg,
    rgba(74, 21, 32, 0.35) 0%,
    rgba(22, 16, 24, 0.95) 45%,
    rgba(12, 8, 8, 0.98) 100%
  );
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.roulette-heading {
  margin: 0 0 8px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.roulette-description {
  margin: 0 auto 24px;
  max-width: 520px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.roulette-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 20px;
  height: 186px;
  contain: layout style paint;
}

.roulette-viewport::before,
.roulette-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 160px;
  z-index: 5;
  pointer-events: none;
}

.roulette-viewport::before {
  left: 0;
  background: linear-gradient(
    to right,
    #120c10 0%,
    rgba(18, 12, 16, 0.75) 45%,
    transparent 100%
  );
}

.roulette-viewport::after {
  right: 0;
  background: linear-gradient(
    to left,
    #120c10 0%,
    rgba(18, 12, 16, 0.75) 45%,
    transparent 100%
  );
}

.roulette-pointer {
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 6px;
  margin-left: -3px;
  border-radius: 2px;
  background: var(--gradient-neon);
  box-shadow: 0 0 18px rgba(232, 92, 176, 0.65);
  z-index: 10;
  pointer-events: none;
}

.roulette-pointer::before,
.roulette-pointer::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}

.roulette-pointer::before {
  top: -2px;
  border-bottom: 10px solid var(--neon-2);
}

.roulette-pointer::after {
  bottom: -2px;
  border-top: 10px solid var(--neon-3);
}

.roulette-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.roulette-strip {
  display: flex;
  flex-wrap: nowrap;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 130px;
  align-items: center;
  will-change: transform;
  backface-visibility: hidden;
}

.roulette-item {
  flex-shrink: 0;
  width: 104px;
  height: 104px;
  margin: 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid rgba(255, 154, 77, 0.2);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.roulette-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.roulette-item .roulette-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: center;
  line-height: 1.15;
  max-width: 100px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Группы шансов 40 / 30 / 20 / 10 % — как uzrust */
.roulette-item.roulette-group-0 {
  border-color: #e8e8e8;
  box-shadow: 0 0 10px #fff, 0 0 20px rgba(232, 232, 232, 0.45),
    inset 0 0 12px rgba(255, 255, 255, 0.1);
}

.roulette-item.roulette-group-1 {
  border-color: #4ade80;
  box-shadow: 0 0 10px #4ade80, 0 0 20px rgba(74, 222, 128, 0.45),
    inset 0 0 12px rgba(74, 222, 128, 0.12);
}

.roulette-item.roulette-group-2 {
  border-color: #38bdf8;
  box-shadow: 0 0 10px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.45),
    inset 0 0 12px rgba(56, 189, 248, 0.12);
}

.roulette-item.roulette-group-3 {
  border-color: #fbbf24;
  box-shadow: 0 0 10px #fbbf24, 0 0 22px rgba(251, 191, 36, 0.5),
    inset 0 0 12px rgba(251, 191, 36, 0.12);
}

.roulette-item.active {
  border-color: #86b300;
  box-shadow: 0 0 18px rgba(134, 179, 0, 0.55);
  transform: scale(1.08);
}

.roulette-cooldown-overlay {
  display: none;
  position: absolute;
  inset: 8%;
  z-index: 12;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    transparent 85%
  );
  pointer-events: none;
}

#rouletteCooldownText {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.85);
  font-variant-numeric: tabular-nums;
}

.roulette-section.roulette-cooldown-active .btn-roulette-spin {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.85;
}

.roulette-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.btn-roulette-spin {
  min-width: 160px;
}

.btn-roulette-spin svg {
  width: 18px;
  height: 18px;
}

.roulette-result {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 1.4em;
}

.roulette-result:empty {
  display: none;
}

@media (max-width: 600px) {
  .roulette-viewport {
    height: 160px;
  }

  .roulette-item {
    width: 88px;
    height: 88px;
    margin: 0 8px;
  }

  .roulette-item img {
    width: 44px;
    height: 44px;
  }

  .roulette-section {
    --mobile-item-width: 104;
  }
}