.wheel-wrapper {
  position: fixed;
  bottom: 30px;        /* instead of top: 50% */
  right: 25px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  /* remove transform: translateY(-50%) */
}

.wheel-trigger {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border: none;
  border-radius: 50%;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}
.wheel-trigger:active {
  transform: translate(-50%, -50%) scale(0.94);
}

.wheel-trigger.open {
  background: linear-gradient(135deg, #f97316, #ef4444);
  /* or any color you like – e.g., a warm orange/red */
}

.wheel-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
}
.wheel-container.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wheel-cards {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center;
  transition: transform 0.3s ease-out;
}

.wheel-card {
  position: absolute;
  width: 44px;
  height: 44px;
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: bold;
  color: white;
  font-size: 1rem;
}
.wheel-card:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(99, 102, 241, 0.9);
}

.wheel-card::after {
  content: attr(data-name);
  position: absolute;
  bottom: 100%;          /* places the tooltip above the circle */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10000000;
  margin-bottom: 8px;    /* gives a little gap between circle and tooltip */
}

.wheel-card:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px); /* slight upward motion on hover */
}

/* Donut ring – now inside wheel-container, so it rotates with cards */
.rotate-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  pointer-events: auto;
  z-index: 15;
  box-sizing: border-box;
}
.rotate-ring {
  opacity: 1; /* always visible when wheel-container is active */
  transition: none; /* no fade because container handles visibility */
}
.wheel-container:not(.active) .rotate-ring {
  display: none;
}

.rotate-semi {
  position: absolute;
  width: 50%;
  height: 100%;
  top: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: background 0.2s;
  background: rgba(255,255,255,0.1);
  border: none;
}
.rotate-semi.left {
  left: 0;
  border-radius: 100px 0 0 100px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.rotate-semi.right {
  right: 0;
  border-radius: 0 100px 100px 0;
  border-left: 1px solid rgba(255,255,255,0.2);
}
.rotate-semi:hover {
  background: rgba(99, 102, 241, 0.5);
}

@media (max-width: 640px) {
  .rotate-ring {
    width: 100px;
    height: 100px;
  }
  .rotate-semi {
    font-size: 1rem;
  }
}

.wheel-card-offline {
  opacity: 0.5;
  filter: grayscale(0.5);
  background: rgba(30, 41, 59, 0.5) !important;
  border-color: rgba(255,255,255,0.1) !important;
  cursor: not-allowed !important;
}