/* ============================================
   RULETA SAFARI - ALEJANDRO CUMPLE 1 AÑO
   Estilos principales
   ============================================ */

/* === CSS Variables / Design Tokens === */
:root {
  --jungle-darkest: #061a0e;
  --jungle-dark: #0d2818;
  --jungle-green: #1a472a;
  --jungle-mid: #2d6a4f;
  --jungle-light: #40916c;
  --jungle-pale: #74c69d;
  
  --gold: #d4a017;
  --gold-light: #f0c75e;
  --gold-bright: #ffd700;
  --gold-dark: #b8860b;
  
  --cream: #fff8dc;
  --cream-light: #fffef7;
  --safari-brown: #8B4513;
  --safari-tan: #D2B48C;
  
  --rain-blue: #4fc3f7;
  --rain-blue-dark: #0288d1;
  --gift-orange: #FFB74D;
  --gift-orange-dark: #F57C00;
  
  --red-party: #e53935;
  --pink-party: #ec407a;
  --purple-party: #7c4dff;
  
  --text-light: #f5f5f5;
  --text-cream: #fff8dc;
  --text-dark: #1a1a1a;
  
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shadow: rgba(0, 0, 0, 0.3);
  
  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  --wheel-size: min(85vw, 380px);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background: var(--jungle-darkest);
}

/* === Jungle Background === */
.jungle-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(45, 106, 79, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(64, 145, 108, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(26, 71, 42, 0.8) 0%, transparent 80%),
    linear-gradient(180deg, var(--jungle-darkest) 0%, var(--jungle-dark) 30%, #0f3520 70%, var(--jungle-darkest) 100%);
  overflow: hidden;
}

.jungle-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

/* Estrellas/luciérnagas */
.stars {
  position: absolute;
  inset: 0;
}

.fireflies .firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 8px 3px rgba(240, 199, 94, 0.5);
  animation: firefly-float 8s ease-in-out infinite;
  opacity: 0;
}

@keyframes firefly-float {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: 0.8; }
  50% { opacity: 0.4; transform: translate(30px, -40px); }
  80% { opacity: 0.9; }
}

/* === Falling Leaves === */
.falling-leaves {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.leaf {
  position: absolute;
  top: -60px;
  font-size: 24px;
  opacity: 0.6;
  animation: leaf-fall linear infinite;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@keyframes leaf-fall {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
    opacity: 0;
  }
  10% { opacity: 0.7; }
  90% { opacity: 0.5; }
  100% {
    transform: translateY(110vh) rotate(720deg) translateX(100px);
    opacity: 0;
  }
}

/* === Floating Safari Animals === */
.safari-animals {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.animal {
  position: absolute;
  font-size: 2.2rem;
  opacity: 0.15;
  transition: opacity 0.5s;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.animal span {
  display: inline-block;
  animation: animal-float 6s ease-in-out infinite;
}

.animal-1 { top: 8%; left: 3%; animation-delay: 0s; }
.animal-2 { top: 15%; right: 5%; animation-delay: 1s; }
.animal-3 { top: 45%; left: 2%; animation-delay: 2s; }
.animal-4 { top: 50%; right: 3%; animation-delay: 0.5s; }
.animal-5 { top: 75%; left: 5%; animation-delay: 1.5s; }
.animal-6 { top: 80%; right: 6%; animation-delay: 3s; }
.animal-7 { top: 30%; left: 1%; animation-delay: 2.5s; }
.animal-8 { top: 65%; right: 2%; animation-delay: 3.5s; }

.animal span {
  animation-duration: 5s;
}
.animal-1 span { animation-duration: 6s; }
.animal-2 span { animation-duration: 5.5s; }
.animal-3 span { animation-duration: 7s; }
.animal-4 span { animation-duration: 5s; }
.animal-5 span { animation-duration: 6.5s; }
.animal-6 span { animation-duration: 5.8s; }

@keyframes animal-float {
  0%, 100% { transform: translateY(0) rotate(-5deg) scale(1); }
  25% { transform: translateY(-12px) rotate(3deg) scale(1.05); }
  50% { transform: translateY(-8px) rotate(-3deg) scale(1); }
  75% { transform: translateY(-15px) rotate(5deg) scale(1.03); }
}

/* Plantas decorativas */
.plant {
  position: fixed;
  z-index: 1;
  font-size: 3rem;
  opacity: 0.3;
  pointer-events: none;
}
.plant-left { bottom: 5%; left: 2%; transform: scaleX(-1); }
.plant-right { bottom: 5%; right: 2%; }

/* === Main Content === */
main {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 1rem 1rem 3rem;
}

/* === Party Header === */
.party-header {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
  animation: fadeInDown 1s ease-out;
}

.balloons {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.balloon {
  font-size: 1.8rem;
  display: inline-block;
  animation: balloon-float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.b1 { animation-delay: 0s; filter: hue-rotate(0deg) drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }
.b2 { animation-delay: 0.5s; filter: hue-rotate(60deg) drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }
.b3 { animation-delay: 1s; filter: hue-rotate(120deg) drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }

@keyframes balloon-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

.header-badge {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.8rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 20px rgba(212, 160, 23, 0.5),
    0 0 40px rgba(212, 160, 23, 0.2),
    inset 0 2px 4px rgba(255,255,255,0.3);
  animation: badge-pulse 2s ease-in-out infinite;
}

.badge-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--jungle-dark);
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(212, 160, 23, 0.5), 0 0 40px rgba(212, 160, 23, 0.2); }
  50% { transform: scale(1.08); box-shadow: 0 0 30px rgba(212, 160, 23, 0.7), 0 0 60px rgba(212, 160, 23, 0.3); }
}

.title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.title-line1 {
  display: block;
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  color: var(--cream);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.title-line2 {
  display: block;
  font-size: clamp(1.3rem, 4vw, 2rem);
  color: var(--text-light);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.highlight {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(212, 160, 23, 0.5));
}

.subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--jungle-pale);
  font-weight: 500;
  letter-spacing: 1px;
}

.leaf-icon {
  display: inline-block;
  animation: leaf-sway 3s ease-in-out infinite;
}
@keyframes leaf-sway {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}

.header-animals {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  letter-spacing: 0.5rem;
  opacity: 0.7;
  animation: fadeIn 1.5s ease-out 0.5s both;
}

/* === Glass Card === */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* === Name Section === */
.name-section {
  width: 100%;
  max-width: 440px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.entrance-card {
  text-align: center;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  display: block;
  animation: bounce-gentle 2s ease-in-out infinite;
}

@keyframes bounce-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.entrance-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  font-size: 1.1rem;
  z-index: 1;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s var(--transition-smooth);
  outline: none;
}

.input-wrapper input::placeholder {
  color: rgba(255,255,255,0.4);
}

.input-wrapper input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.15);
}

/* === Safari Button === */
.btn-safari {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 24px;
  border: none;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright), var(--gold));
  background-size: 200% 200%;
  color: var(--jungle-dark);
  box-shadow: 
    0 4px 15px rgba(212, 160, 23, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.3);
  animation: btn-shimmer 3s ease-in-out infinite;
}

@keyframes btn-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-safari:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(212, 160, 23, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-safari:active {
  transform: translateY(0) scale(0.98);
}

.btn-safari:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  font-size: 1.2rem;
  display: inline-block;
  animation: bounce-gentle 2s ease-in-out infinite;
}

/* === Wheel Section === */
.wheel-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
  width: 100%;
}

.player-greeting {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-light);
  text-align: center;
  animation: fadeIn 0.5s ease-out;
}

.wheel-container {
  position: relative;
  width: var(--wheel-size);
  height: var(--wheel-size);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pointer / Flecha */
.wheel-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  animation: pointer-bounce 1.5s ease-in-out infinite;
}

@keyframes pointer-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(4px); }
}

/* Marco de la ruleta */
.wheel-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-outer-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--gold-dark),
    var(--gold),
    var(--gold-bright),
    var(--gold),
    var(--gold-dark),
    var(--gold),
    var(--gold-bright),
    var(--gold),
    var(--gold-dark)
  );
  box-shadow: 
    0 0 30px rgba(212, 160, 23, 0.3),
    inset 0 0 20px rgba(0,0,0,0.3);
  animation: ring-rotate 20s linear infinite;
}

@keyframes ring-rotate {
  to { transform: rotate(360deg); }
}

.wheel-inner {
  position: relative;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.4);
  transition: transform 0s;
  will-change: transform;
}

.wheel-inner canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Botón central de girar */
.wheel-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid var(--gold-dark);
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--jungle-dark);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 
    0 4px 20px rgba(0,0,0,0.4),
    0 0 20px rgba(212, 160, 23, 0.4),
    inset 0 2px 4px rgba(255,255,255,0.4);
  transition: all 0.3s var(--transition-smooth);
  animation: center-pulse 2s ease-in-out infinite;
  letter-spacing: 1px;
}

.spin-icon {
  font-size: 1.2rem;
}

.spin-text {
  font-size: 0.65rem;
  letter-spacing: 2px;
}

@keyframes center-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 20px rgba(212, 160, 23, 0.4); }
  50% { box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 40px rgba(212, 160, 23, 0.7); }
}

.wheel-center-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.wheel-center-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.wheel-center-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  animation: none;
}

.wheel-center-btn:disabled:hover {
  transform: translate(-50%, -50%) scale(1);
}

/* Instrucciones */
.instructions {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 1s ease-out 0.5s both;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  animation: pulse-dot-anim 1.5s ease-in-out infinite;
}

@keyframes pulse-dot-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.6); }
}

/* === Already Played === */
.already-played, .no-prizes {
  width: 100%;
  max-width: 440px;
  animation: fadeInUp 0.8s ease-out;
}

.result-card {
  text-align: center;
}

.result-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.prev-prize-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}

.prev-prize {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-light);
  padding: 0.8rem;
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 16px;
  margin-bottom: 1rem;
}

.enjoy-msg {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
}

.no-prizes .glass-card {
  text-align: center;
}
.no-prizes h2 {
  font-family: var(--font-display);
  color: var(--cream);
  margin-bottom: 0.5rem;
}

/* === Result Modal === */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(13, 40, 24, 0.95),
    rgba(26, 71, 42, 0.95)
  );
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(212, 160, 23, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.1);
  animation: modal-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  display: flex; /* Añadido */
  flex-direction: column; /* Añadido */
  align-items: center; /* Centra el botón y contenido */
}

@keyframes modal-enter {
  0% { transform: scale(0.5) translateY(50px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-celebration {
  position: relative;
  margin-bottom: 1rem;
}

.celebration-burst {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
  animation: burst-pulse 1.5s ease-in-out infinite;
}

@keyframes burst-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 0.4; }
}

.celebration-animals {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-top: -2rem;
}

.cel-animal {
  font-size: 1.8rem;
  display: inline-block;
  animation: cel-bounce 0.6s ease-out both;
}

.cel-a1 { animation-delay: 0.1s; }
.cel-a2 { animation-delay: 0.2s; }
.cel-a3 { animation-delay: 0.3s; }
.cel-a4 { animation-delay: 0.4s; }
.cel-a5 { animation-delay: 0.5s; }
.cel-a6 { animation-delay: 0.6s; }

@keyframes cel-bounce {
  0% { transform: scale(0) translateY(20px); opacity: 0; }
  60% { transform: scale(1.3) translateY(-10px); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.result-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold-bright);
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.result-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 1rem;
}

.result-prize-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(212, 160, 23, 0.4);
  border-radius: 20px;
  margin-bottom: 1rem;
  animation: prize-reveal 0.8s ease-out 0.3s both;
}

@keyframes prize-reveal {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.result-emoji {
  font-size: 3rem;
  animation: emoji-dance 1s ease-in-out infinite;
}

@keyframes emoji-dance {
  0%, 100% { transform: rotate(-10deg) scale(1); }
  25% { transform: rotate(10deg) scale(1.1); }
  50% { transform: rotate(-5deg) scale(1.05); }
  75% { transform: rotate(8deg) scale(1.1); }
}

.result-prize-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-light);
  font-weight: 600;
}

.result-message {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
}

/* === Confetti Canvas === */
.confetti-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

/* === Loading Overlay === */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--jungle-darkest);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out;
}

.loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-overlay.hidden-complete {
  display: none;
}

.loader {
  text-align: center;
}

.loader-animal {
  font-size: 4rem;
  animation: loader-bounce 1s ease-in-out infinite;
}

@keyframes loader-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.1); }
}

.loader-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-light);
  margin: 1rem 0;
}

.loader-bar {
  width: 200px;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-progress {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: 3px;
  animation: loader-fill 1.5s ease-out forwards;
}

@keyframes loader-fill {
  to { width: 100%; }
}

/* === Footer === */
.site-footer {
  margin-top: 2rem;
  padding: 1rem;
}

.admin-link {
  font-size: 1.2rem;
  opacity: 0.2;
  text-decoration: none;
  transition: opacity 0.3s;
  filter: grayscale(1);
}

.admin-link:hover {
  opacity: 0.6;
  filter: grayscale(0);
}

/* === Utility Classes === */
.hidden {
  display: none !important;
}

/* === Animations === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Wheel Spinning State === */
.wheel-spinning .wheel-outer-ring {
  animation: ring-rotate 2s linear infinite;
}

.wheel-spinning .wheel-pointer {
  animation: pointer-bounce 0.2s ease-in-out infinite;
}

/* === Responsive Design === */
@media (min-width: 768px) {
  :root {
    --wheel-size: 420px;
  }
  
  main {
    padding: 2rem 2rem 4rem;
  }
  
  .party-header {
    padding: 2rem;
  }
  
  .animal {
    font-size: 3rem;
    opacity: 0.2;
  }
  
  .wheel-center-btn {
    width: 85px;
    height: 85px;
  }
  
  .spin-text {
    font-size: 0.75rem;
  }
  
  .spin-icon {
    font-size: 1.4rem;
  }
  
  .glass-card {
    padding: 2.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --wheel-size: 480px;
  }
  
  .wheel-center-btn {
    width: 95px;
    height: 95px;
  }
}

/* === Special Effects for Wheel Segments === */
.wheel-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 5;
  animation: wheel-glow-pulse 3s ease-in-out infinite;
}

@keyframes wheel-glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* === Shake animation for errors === */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.shake {
  animation: shake 0.5s ease-out;
}

/* Error state for input */
.input-error {
  border-color: var(--red-party) !important;
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.2) !important;
}

/* === Safari-themed scrollbar === */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--jungle-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--jungle-mid);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--jungle-light);
}

/* === Selection color === */
::selection {
  background: rgba(212, 160, 23, 0.3);
  color: var(--cream);
}
