.roulette-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.25);
  background: rgba(15, 23, 42, 0.4);
  color: #e2e8f0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.roulette-back-btn:hover,
.roulette-back-btn:focus-visible {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(226, 232, 240, 0.45);
  color: #f8fafc;
  transform: translateY(-1px);
}

.roulette-back-btn:focus-visible {
  outline: 2px solid rgba(255, 78, 212, 0.45);
  outline-offset: 2px;
}

.roulette-back-btn__icon {
  font-size: 1rem;
  line-height: 1;
}

.roulette-root .roulette-wrapper {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .roulette-root .roulette-wrapper {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.roulette-root .roulette-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.roulette-root .roulette-wheel {
  position: relative;
  width: min(440px, 82vw);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.32) 0 55%, rgba(12, 19, 38, 0.85) 56% 74%, rgba(7, 11, 25, 1) 75% 100%);
  box-shadow:
    inset 0 0 18px rgba(15, 23, 42, 0.55),
    inset 0 -18px 30px rgba(15, 23, 42, 0.65),
    0 30px 60px rgba(7, 11, 25, 0.6);
  overflow: hidden;
}

.roulette-root .roulette-wheel__rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(241, 245, 249, 0.12) 0%, rgba(51, 65, 85, 0.05) 42%, rgba(12, 19, 38, 0.6) 80%, rgba(8, 10, 24, 0.85) 100%);
  box-shadow:
    inset 0 0 6px rgba(148, 163, 184, 0.3),
    inset 0 18px 32px rgba(15, 23, 42, 0.55),
    0 12px 20px rgba(8, 10, 24, 0.35);
  z-index: 1;
}

.roulette-root .roulette-ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: var(--roulette-gradient, radial-gradient(circle at center, #1f2937, #0f172a));
  box-shadow: inset 0 0 18px rgba(15, 23, 42, 0.7);
  z-index: 3;
}

.roulette-root .roulette-ring::after {
  content: '';
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.9) 0 45%, rgba(15, 23, 42, 0.35) 46% 100%);
  box-shadow: inset 0 0 18px rgba(30, 41, 59, 0.8);
}

.roulette-root .roulette-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(15, 23, 42, 0) 0deg 6deg,
    rgba(15, 23, 42, 0.22) 6deg 6.6deg
  );
  mix-blend-mode: overlay;
  opacity: 0.7;
}

.roulette-root .roulette-wheel__groove {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 20%, rgba(248, 250, 252, 0.45) 0%, rgba(241, 245, 249, 0.18) 25%, rgba(30, 41, 59, 0.85) 60%, rgba(17, 24, 39, 0.95) 100%);
  box-shadow:
    inset 0 0 10px rgba(148, 163, 184, 0.45),
    inset 0 16px 26px rgba(15, 23, 42, 0.6);
  z-index: 2;
}

.roulette-root .roulette-number-ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 5;
}

.roulette-root .roulette-number {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: clamp(0.55rem, 1.65vw, 0.85rem);
  color: #e2e8f0;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(15, 23, 42, 0.8);
  letter-spacing: 0.04em;
  transform-origin: center;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  text-transform: uppercase;
}

.roulette-root .roulette-number[data-color='green'] {
  color: #bef264;
}

.roulette-root .roulette-number[data-color='red'] {
  color: #fecaca;
}

.roulette-root .roulette-number.is-active {
  color: #ffe982;
  text-shadow: 0 0 12px rgba(255, 233, 130, 0.85);
}

.roulette-root .roulette-pointer {
  position: absolute;
  top: -4%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(26px, 6vw, 40px);
  height: clamp(26px, 6vw, 40px);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fef9c3 0%, #fde047 48%, #f59e0b 100%);
  box-shadow:
    0 8px 16px rgba(250, 204, 21, 0.45),
    inset 0 0 12px rgba(254, 240, 138, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
}

.roulette-root .roulette-pointer::after {
  content: '';
  position: absolute;
  bottom: -62%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: clamp(9px, 2vw, 12px) solid transparent;
  border-right: clamp(9px, 2vw, 12px) solid transparent;
  border-top: clamp(18px, 4vw, 24px) solid #fde047;
  filter: drop-shadow(0 5px 9px rgba(234, 179, 8, 0.45));
}

.roulette-root .roulette-pointer::before {
  content: '';
  position: absolute;
  top: 16%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(14px, 3vw, 20px);
  height: clamp(14px, 3vw, 20px);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(254, 252, 232, 0.9) 0%, rgba(253, 230, 138, 0.75) 55%, rgba(250, 204, 21, 0.35) 100%);
}

.roulette-root .roulette-ball-track {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92%;
  height: 92%;
  transform-origin: center;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: transform 4.8s cubic-bezier(0.13, 0.69, 0.14, 1);
  z-index: 6;
}

.roulette-root .roulette-ball {
  position: absolute;
  top: clamp(8px, 2vw, 12px);
  left: 50%;
  width: clamp(15px, 2.8vw, 18px);
  height: clamp(15px, 2.8vw, 18px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #e2e8f0 60%, #94a3b8 100%);
  box-shadow:
    0 6px 10px rgba(15, 23, 42, 0.65),
    inset -2px -4px 6px rgba(148, 163, 184, 0.45);
}

.roulette-root .roulette-panel {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: inset 0 0 18px rgba(15, 23, 42, 0.6), 0 20px 45px rgba(7, 11, 25, 0.45);
}

.roulette-root .roulette-panel button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.roulette-root .roulette-history-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.55);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #f8fafc;
  font-weight: 600;
}

.roulette-root .roulette-history-pill[data-color='red'] {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.roulette-root .roulette-history-pill[data-color='black'] {
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}

.roulette-root .roulette-history-pill[data-color='green'] {
  border-color: rgba(134, 239, 172, 0.45);
  color: #bbf7d0;
}

.roulette-root .roulette-history-pill__dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 6px rgba(15, 23, 42, 0.65);
}

.roulette-root .roulette-history-pill__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.roulette-root .roulette-input {
  background-color: rgba(15, 23, 42, 0.45);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.roulette-root .roulette-input:focus {
  box-shadow: 0 0 0 2px rgba(255, 78, 212, 0.25);
}

.roulette-root .roulette-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.8rem;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.roulette-root .roulette-chip:hover {
  background: rgba(236, 72, 153, 0.22);
  border-color: rgba(236, 72, 153, 0.4);
  transform: translateY(-2px);
}

.roulette-root .roulette-chip:active {
  transform: translateY(0);
}

.roulette-root .roulette-bet-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.6);
  box-shadow: inset 0 0 12px rgba(15, 23, 42, 0.45);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.roulette-root .roulette-bet-pill[data-color='red'] {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.roulette-root .roulette-bet-pill[data-color='black'] {
  border-color: rgba(148, 163, 184, 0.45);
}

.roulette-root .roulette-bet-pill[data-color='green'] {
  border-color: rgba(134, 239, 172, 0.45);
  color: #bbf7d0;
}
