/* ── Roulette Modal ── */
.roulette-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.roulette-modal-content {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0,0,0,0.5);
  max-width: 400px;
  width: 100%;
}
.roulette-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}
.roulette-close-btn:hover {
  background: rgba(255,255,255,0.2);
}
.roulette-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 30px auto;
}
.roulette-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid var(--border);
  background: conic-gradient(
    #1e293b 0deg 60deg, 
    #334155 60deg 120deg, 
    #1e293b 120deg 180deg, 
    #334155 180deg 240deg, 
    #1e293b 240deg 300deg, 
    var(--accent) 300deg 360deg
  );
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
  /* Set initial rotation to 0 so math matches conic gradient */
  transform: rotate(0deg); 
}
.roulette-wheel::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: var(--bg-deep);
  border: 4px solid var(--border);
  border-radius: 50%;
  z-index: 5;
}
.roulette-wheel .sec {
  position: absolute;
  top: 50%; left: 50%;
  width: 130px; /* From center to edge */
  height: 30px;
  margin-top: -15px;
  transform-origin: left center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 15px;
  font-size: 0.85rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 2px #000;
  box-sizing: border-box;
  z-index: 3;
}
/* Center angles for conic gradient slices (which start at top) */
.sec-0 { transform: rotate(-60deg); }
.sec-1 { transform: rotate(0deg); }
.sec-2 { transform: rotate(60deg); }
.sec-3 { transform: rotate(120deg); }
.sec-4 { transform: rotate(180deg); }
.sec-5 { transform: rotate(240deg); color: #000 !important; text-shadow: none !important; font-size: 1rem !important;}

/* Fix text being upside down on the left/bottom side of the wheel */
.sec-3 span, .sec-4 span, .sec-5 span {
  display: inline-block;
  transform: rotate(180deg);
}

.roulette-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; 
  height: 0; 
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 35px solid #ef4444;
  z-index: 10;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6));
}
.roulette-btn {
  margin-top: 10px;
  font-size: 1.1rem;
  padding: 12px 30px;
  border-radius: 30px;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,229,195,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.roulette-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0,229,195,0.8);
}
.roulette-result {
  margin-top: 15px;
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
  min-height: 40px;
  color: #fff;
}
.roulette-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 5px;
  text-shadow: 0 0 10px rgba(0,229,195,0.3);
}
.roulette-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 10px;
}
