*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0e17;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf4;
  --muted: #8b95a8;
  --accent: #00d4aa;
  --accent-2: #7c5cff;
  --gold: #ffd54f;
  --robux: #00b06f;
  --danger: #ff4757;
  --radius: 20px;
  --font: 'Outfit', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-2);
  top: -120px;
  right: -100px;
}

.bg-glow-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: -80px;
  left: -80px;
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.2; }
  50% { transform: translateY(-30px) scale(1.2); opacity: 0.5; }
}

/* Header */
.header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: spin-slow 14s linear infinite;
}

.svg-robux {
  display: block;
  flex-shrink: 0;
}

.svg-robux--logo {
  width: 2.25rem;
  height: 2.25rem;
  filter: drop-shadow(0 0 12px rgba(0, 212, 170, 0.45));
}

.title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  vertical-align: middle;
}

.svg-robux--title {
  width: clamp(2.25rem, 5vw, 3rem);
  height: clamp(2.25rem, 5vw, 3rem);
  filter: drop-shadow(0 4px 20px rgba(0, 212, 170, 0.35));
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.logo .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(255, 71, 87, 0.12);
  border: 1px solid rgba(255, 71, 87, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ff8a96;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(255, 71, 87, 0); }
}

/* Main */
.main {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  text-align: center;
}

.hero {
  margin-bottom: 2.5rem;
}

.title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #5eead4 40%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Wheel */
.wheel-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.wheel-wrapper {
  position: relative;
  width: min(420px, 90vw);
  height: min(420px, 90vw);
}

.wheel-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--gold), var(--accent));
  background-size: 300% 300%;
  animation: ring-shift 4s ease infinite;
  z-index: 1;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 18px 45px rgba(0, 0, 0, 0.45),
    0 0 38px rgba(0, 212, 170, 0.2);
}

@keyframes ring-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.wheel-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg);
}

.wheel-wrapper::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.2), rgba(0, 212, 170, 0.08), transparent 70%);
  filter: blur(14px);
  z-index: 0;
  pointer-events: none;
}

.wheel-wrapper::after {
  content: '';
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.14), transparent 45%);
  pointer-events: none;
  z-index: 3;
}

#wheel {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  filter:
    drop-shadow(0 25px 55px rgba(0, 212, 170, 0.18))
    drop-shadow(0 8px 22px rgba(0, 0, 0, 0.45));
  transition: transform 0.1s linear;
}

.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 34px;
  height: 44px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.spin-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(145deg, #1a2235, #0f1420);
  box-shadow:
    0 0 0 4px rgba(0, 212, 170, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: var(--font);
  overflow: hidden;
}

.spin-center::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spin-center::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.18), transparent 35%);
  animation: spin-slow 4s linear infinite;
}

.spin-center:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow:
    0 0 0 6px rgba(0, 212, 170, 0.45),
    0 12px 40px rgba(0, 212, 170, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.spin-center:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.98);
}

.spin-center:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.spin-label {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--accent), #5eead4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats {
  display: flex;
  gap: 3rem;
  padding: 1.25rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

/* Community */
.community {
  margin-top: 3.25rem;
  text-align: left;
}

.community-head {
  text-align: center;
  margin-bottom: 1.1rem;
}

.community-title {
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  letter-spacing: -0.02em;
}

.community-subtitle {
  margin-top: 0.35rem;
  color: var(--muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.review-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.review-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #11172a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.review-body {
  min-width: 0;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.review-top strong {
  font-size: 0.95rem;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9afde9;
  border: 1px solid rgba(0, 212, 170, 0.4);
  background: rgba(0, 212, 170, 0.12);
}

.review-card p {
  color: #b8c4d4;
  font-size: 0.83rem;
  line-height: 1.35;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-value--with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.svg-robux--stat {
  width: 1.65rem;
  height: 1.65rem;
  filter: drop-shadow(0 0 8px rgba(0, 212, 170, 0.35));
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Robux drops */
.drop-zone {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.robux-drop {
  position: absolute;
  font-weight: 800;
  font-size: 0.95rem;
  color: #a7f3d0;
  text-shadow: 0 0 18px rgba(0, 212, 170, 0.55);
  animation: drop-fall 2.5s ease-in forwards;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.robux-drop .svg-robux--coin {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.7));
}

.robux-drop__val {
  letter-spacing: 0.02em;
}

@keyframes drop-fall {
  0% {
    opacity: 1;
    transform: translateY(-20px) rotate(0deg) scale(1);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(360deg) scale(0.6);
  }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 2.5rem 2rem;
  background: linear-gradient(160deg, #141b2d 0%, #0d111c 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.modal.is-open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(0, 212, 170, 0.15), transparent 70%);
  pointer-events: none;
}

.modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  animation: sparkle 1.5s ease infinite;
}

.svg-sparkle {
  width: 4.5rem;
  height: 4.5rem;
  filter: drop-shadow(0 0 24px rgba(255, 213, 79, 0.45));
}

@keyframes sparkle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.modal-prize {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.prize-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0.15rem;
}

.svg-robux--prize {
  width: 2.75rem;
  height: 2.75rem;
  filter: drop-shadow(0 0 16px rgba(52, 211, 153, 0.5));
}

.prize-amount {
  display: inline;
  font-size: 3rem;
  font-weight: 800;
  color: var(--robux);
  text-shadow: 0 0 40px rgba(0, 176, 111, 0.4);
  line-height: 1.2;
}

.prize-unit {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.modal-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1.25rem 0 1.75rem;
  line-height: 1.45;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a0e17;
  background: linear-gradient(135deg, var(--accent), #5eead4);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(0, 212, 170, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 212, 170, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Footer */
.footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-dot {
  margin: 0 0.4rem;
  opacity: 0.4;
}

/* Confetti */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  z-index: 99;
  pointer-events: none;
  animation: confetti-fall 3s ease-out forwards;
}

.confetti--robux {
  width: 14px;
  height: 14px;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible;
}

.confetti--robux svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0, 212, 170, 0.5));
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
  }
}

@media (max-width: 600px) {
  .header { padding: 1rem 1.25rem; }
  .main { padding: 0 1.25rem 3rem; }
  .stats { gap: 1.5rem; padding: 1rem 1.25rem; }
  .spin-center { width: 72px; height: 72px; }
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}
