:root {
  --red-deep: #4c0519;
  --red-mid: #9f1239;
  --red-bright: #e11d48;
}

* { font-family: 'Vazirmatn', Tahoma, sans-serif; }

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(251,191,36,0.18), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(225,29,72,0.35), transparent 55%),
    linear-gradient(160deg, #4c0519 0%, #7f1d1d 45%, #9f1239 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: white;
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}

.glass-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Header glow */
.header-glow h1 { text-shadow: 0 4px 24px rgba(0,0,0,0.35); }

/* Shield bob */
.shield-bob {
  display: inline-block;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

/* Join button pulse-ish hover handled by tailwind; add sheen */
.btn-join { position: relative; overflow: hidden; }
.btn-join::after {
  content: '';
  position: absolute; top: 0; right: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: right 0.5s;
}
.btn-join:hover::after { right: 120%; }

/* Draw button glow */
.draw-btn { letter-spacing: 0.5px; }
.draw-glow { animation: drawpulse 1.8s ease-in-out infinite; }
@keyframes drawpulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(251,191,36,0.5), 0 12px 30px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 0 0 14px rgba(251,191,36,0), 0 12px 30px rgba(0,0,0,0.3); }
}

/* Shuffle name */
.shuffle-name { animation: flick 0.12s linear; }
@keyframes flick {
  from { opacity: 0.4; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

/* Chip entrance */
.chip-in { animation: chipin 0.3s ease-out both; }
@keyframes chipin {
  from { opacity: 0; transform: translateY(8px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Winner card entrance */
.winner-in { animation: winbounce 0.7s cubic-bezier(0.18,1.4,0.4,1) both; }
@keyframes winbounce {
  0% { opacity: 0; transform: translateY(40px) scale(0.6) rotate(-6deg); }
  60% { transform: translateY(-6px) scale(1.06) rotate(2deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

/* Banner */
.banner-in { animation: banner 0.6s ease-out both; }
@keyframes banner {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

/* Toast */
.toast-pop { animation: toastin 0.35s cubic-bezier(0.18,1.4,0.4,1) both; }
@keyframes toastin {
  from { opacity: 0; transform: translate(-50%, -24px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Error shake */
.err-shake { animation: shake 0.35s ease; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.hero-badge { animation: banner 0.6s ease-out both; }