/* Daily Spin page */
.spin-page {
  cursor: auto;
  background: var(--bg);
}

.spin-page .custom-cursor,
.spin-page .cursor-glow {
  display: none;
}

.spin-hero {
  padding: 120px 0 40px;
  background:
    radial-gradient(ellipse 60% 70% at 80% 0%, rgba(232, 33, 39, 0.2), transparent 55%),
    radial-gradient(ellipse 50% 50% at 10% 100%, rgba(232, 33, 39, 0.06), transparent 50%),
    linear-gradient(180deg, #0d0d0d, var(--bg));
  border-bottom: 1px solid var(--border);
}

.spin-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.spin-hero h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.spin-hero h1 span {
  color: var(--tesla-red);
}

.spin-hero p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.spin-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.spin-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: #bbb;
}

.spin-pill strong {
  color: var(--tesla-red);
}

.spin-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.spin-stage {
  padding: 40px 32px 36px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.35));
  text-align: center;
}

.spin-wheel-wrap {
  position: relative;
  width: min(360px, 88vw);
  margin: 0 auto 28px;
}

.spin-wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 28px solid #fff;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.spin-wheel-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px solid rgba(232, 33, 39, 0.45);
  box-shadow: 0 0 60px rgba(232, 33, 39, 0.2), inset 0 0 30px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.spin-wheel-disc {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.08, 0.99);
  background: conic-gradient(
    from -22.5deg,
    #e82127 0deg 45deg,
    #1a1a1a 45deg 90deg,
    #c01c21 90deg 135deg,
    #111 135deg 180deg,
    #ff4444 180deg 225deg,
    #0f0f0f 225deg 270deg,
    #e82127 270deg 315deg,
    #151515 315deg 360deg
  );
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.spin-wheel-disc::after {
  content: '';
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle, #222, #0a0a0a);
  border: 3px solid rgba(232, 33, 39, 0.5);
  box-shadow: 0 0 20px rgba(232, 33, 39, 0.3);
}

.spin-wheel-label {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.spin-wheel-label span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 0 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.spin-countdown {
  display: none;
  margin-bottom: 20px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.spin-countdown.visible {
  display: block;
}

.spin-countdown-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fbbf24;
  margin-bottom: 8px;
}

.spin-countdown-time {
  font-size: 2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.spin-action-btn {
  min-width: 220px;
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 12px;
}

.spin-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.spin-result {
  margin-top: 20px;
  min-height: 28px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tesla-red);
}

.spin-result.win {
  animation: spinPop 0.5s ease;
}

@keyframes spinPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.spin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spin-panel {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.spin-panel h3 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.spin-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spin-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #bbb;
  line-height: 1.5;
}

.spin-check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
}

.spin-checklist li.done .spin-check-icon {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: var(--success);
}

.spin-checklist li.pending .spin-check-icon {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.spin-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
  color: var(--muted);
}

.spin-stat-row:last-child {
  border-bottom: none;
}

.spin-stat-row .val {
  color: var(--text);
  font-weight: 600;
}

.spin-gate {
  text-align: center;
  padding: 48px 24px;
}

.spin-gate p {
  color: var(--muted);
  margin: 12px 0 24px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .spin-layout {
    grid-template-columns: 1fr;
  }
}
