/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary:  #6c2bd9;
  --gold: #facc15;
  --green: #25d366;
  --dark: #2d3436;
}

body { font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif; }

/* STICKY CONTEST INFO with smooth animated bottom border */
.sticky-info {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: linear-gradient(180deg, #f9fafb 0%, #eef2ff 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border-bottom: 4px solid transparent;
  background-image: 
    linear-gradient(180deg, #f9fafb 0%, #eef2ff 100%),
    linear-gradient(90deg,
      #4c1d95 0%,
      #312e81 25%,
      #facc15 50%,
      #d97706 75%,
      #4c1d95 100%,
      #312e81 125%,
      #facc15 150%,
      #d97706 175%,
      #4c1d95 200%
    );
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 400% 4px;
  background-position: 0 0, 0 100%;
  animation: stickyBorderFlow 8s linear infinite;
}
@keyframes stickyBorderFlow {
  0%   { background-position: 0 0,    0% 100%; }
  100% { background-position: 0 0, -200% 100%; }
}

.contest-info { 
  padding: 5px 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 5px;
  margin: 0 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 10px;
}
.info-card { display: flex; justify-content: space-around; gap: 15px; align-items: flex-start; }
.info-item { 
  text-align: center; 
  display: flex;
  flex-direction: column;
}
.info-label {
  font-size: 0.7rem; color: #4b5563; text-transform: uppercase;
  font-weight: 800; letter-spacing: 0.04em;
}
.info-value { font-size: 1.05rem; font-weight: 800; color: #6c2bd9; }
.countdown { 
  color: #ffffff; 
  font-weight: 900;
  background: linear-gradient(180deg, #4c1d95, #4c1d95, #4c1d95);
  padding: 2px 8px;
  animation: countdownPulse 2s ease-in-out infinite;
}

@keyframes countdownPulse
  {0%, 100% {transform: scale(1);}
  50% {transform: scale(1.05);}
}

/* HERO */
.hero-section {
  background: linear-gradient(135deg, #0f172a, #2b1b6f, #32031f, #0f172a);
  background-size: 280% 280%;
  animation: heroGradient 6s ease-in-out infinite;
  color: white;
  padding: 28px 14px 30px;
  text-align: left;
}
@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-section { animation: none; background-position: 50% 50%; }
}

.hero-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.hero-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; }

.brand-mark { display: flex; align-items: center; gap: 18px; min-width: 360px; }
.brand-logo {
  width: 148px; height: 148px; object-fit: contain;
  border-radius: 18px; background: rgba(255,255,255,0.05); padding: 14px;
}
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-kicker {
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0.85; font-weight: 700;
}
.brand-title {
  font-family: 'Space Grotesk','Inter',sans-serif;
  font-size: 2.35rem; line-height: 1.1; margin:  0;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.brand-strong { color: #f8fafc; font-weight: 800; }
.brand-accent { color: #facc15; font-weight: 800; }
.brand-sub { font-size: 0.98rem; font-weight: 700; letter-spacing: 0.01em; color: #e2e8f0; }

/* CTA STACK:  equal heights */
.cta-stack {
  display: flex; align-items: stretch; gap: 12px;
  flex-wrap:  nowrap; justify-content: flex-end; min-height: 78px;
}
.prize-chip, .cta-button {
  min-height: 78px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 20px; border-radius: 14px;
}
.prize-chip {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
}
.chip-icon { font-size: 1.6rem; }
.chip-label {
  font-size: 0.84rem; text-transform: uppercase; opacity: 0.82;
  letter-spacing: 0.04em; font-weight: 700;
}
.chip-value { font-size: 1.35rem; font-weight: 800; color: #facc15; }

.cta-button {
  background: #facc15; color: #2d1a05; border: 2px solid #f1c40f;
  font-size: 0.98rem; font-weight: 800; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.04em;
  text-decoration: none; box-shadow: none; justify-content: center;
}
.cta-button .label { display: inline-block; }
.cta-button:hover { filter: brightness(0.96); }

.info-n1 {
  font-weight: 1000; letter-spacing: 0.02em; font-size: 1.2rem;
  color: #ffffff; text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* INFO BANNER */
.info-banner {
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px 14px;
  color: #f1f5f9;
  display: grid;
  gap: 4px;
  position: relative;
  isolation: isolate;
  text-align: center;
}

.info-banner::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  padding: 3px;
  background: linear-gradient(
    90deg,
    #facc15 0%,
    #d97706 25%,
    #4c1d95 50%,
    #312e81 75%,
    #facc15 100%
  );
  background-size: 300% 300%;
  animation:  bannerBorderFlow 6s linear infinite;
  z-index: -1;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

@keyframes bannerBorderFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.info-title {
  font-weight: 800; letter-spacing: 0.02em; font-size: 0.95rem;
  color: #facc15; text-transform: uppercase;
}
.info-text { font-size: 0.92rem; line-height: 1.5; }
.info-emphasis { font-weight: 800; color: #f97316; font-size: 0.9rem; }

/* RECHARGE CARD UPGRADE (clickable) */
.recharge-check { margin: 16px 0; padding: 0; border: none; background: transparent; }
.recharge-card {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 14px; position: relative;
  background: linear-gradient(180deg, #fff8e6 0%, #fff3cc 100%);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border: 1.5px solid #f6d25c; overflow: hidden;
}
.recharge-card::before {
  content: "";
  position: absolute; inset: 0; border-radius: 14px; padding: 1.5px;
  background: linear-gradient(135deg, #facc15, #eab308, #fbbf24);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.recharge-accent {
  width: 4px; align-self: stretch; border-radius: 10px;
  background: linear-gradient(180deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}
.recharge-content {
  display: flex; gap: 12px; align-items: center; flex:  1;
  cursor: pointer;
}
.checkbox-container {
  background: white; border-radius: 10px; padding: 6px;
  border: 1px solid #e5e7eb;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.checkbox-container input[type="checkbox"] {
  width: 22px; height: 22px; cursor: pointer; accent-color: #f59e0b;
}
.checkbox-label {
  font-weight: 800; color: #92400e; font-size: 0.95rem; line-height: 1.35;
  cursor: pointer;
}

/* SELECTION */
.selection-section { padding: 15px 10px; background: #e5e7eb; }
.selection-card { background: white; border-radius: 12px; padding: 15px 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.section-title { font-size: 1.3rem; color: var(--primary); margin-bottom: 5px; text-align: center; font-weight: 800; }
.section-subtitle { text-align: center; color: #6b7280; font-size: 0.8rem; margin-bottom: 12px; }
.action-buttons { display: flex; gap: 8px; margin-bottom: 12px; }
.btn-primary, .btn-secondary {
  flex: 1; padding: 8px 15px; border-radius: 6px; border: none;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.btn-primary { background: linear-gradient(180deg, #10b981, #06534a); color: white; }
.btn-secondary { background: #f1f2f6; color: var(--dark); border: 2px solid #dfe6e9; }
.number-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin:  12px 0; justify-items: center; }
.number-ball {
  width: 100%; max-width: 45px; aspect-ratio: 1; border-radius: 50%;
  background: #f1f2f6; border: 2px solid #dfe6e9;
  display: flex; align-items:  center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: var(--dark);
  cursor: pointer; transition: all 0.2s; user-select: none;
}
.number-ball:active { transform: scale(0.95); }
.number-ball.selected {
  color: #fff;
  box-shadow: 
    0 0 0 2px rgba(250, 204, 21, 0.8),
    0 2px 8px rgba(250, 204, 21, 0.7),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 3px rgba(255, 255, 255, 0.4);
  transform: translateY(-3px) scale(1.08);
  font-weight: 900;
  animation: ballBounce 0.6s ease-in-out;
  position: relative;
}

/* Warna warni untuk setiap bola yang dipilih */
.number-ball.selected:nth-child(10n+1) { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.number-ball.selected:nth-child(10n+2) { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.number-ball.selected:nth-child(10n+3) { background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%); }
.number-ball.selected:nth-child(10n+4) { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.number-ball.selected:nth-child(10n+5) { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.number-ball.selected:nth-child(10n+6) { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.number-ball.selected:nth-child(10n+7) { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.number-ball.selected:nth-child(10n+8) { background: linear-gradient(135deg, #d946ef 0%, #c026d3 100%); }
.number-ball.selected:nth-child(10n+9) { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.number-ball.selected:nth-child(10n+0) { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }

.number-ball.selected::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 25%;
  width: 35%;
  height: 25%;
  background: rgba(255, 255, 255, 0.4);
  filter: blur(3px);
}

@keyframes ballBounce {
  0% {
    transform: translateY(0) scale(1);
  }
  25% {
    transform: translateY(-8px) scale(1.1);
  }
  50% {
    transform: translateY(-3px) scale(1.08);
  }
  65% {
    transform: translateY(-6px) scale(1.09);
  }
  80% {
    transform: translateY(-3px) scale(1.08);
  }
  100% {
    transform: translateY(-3px) scale(1.08);
  }
}
.selected-display {
  background: #e5e7eb; padding: 10px; border-radius: 8px;
  margin: 12px 0; display: flex; flex-direction: column;
  align-items: center; text-align: center;
}
.selected-header { text-align: center; font-size: 0.75rem; margin-bottom: 8px; color: #6b7280; }
.selected-numbers { justify-content: center; display: flex; flex-wrap: wrap; gap: 8px; min-height: 30px; margin-bottom: 8px; }
.number-badge {
  color: #fff; 
  padding: 0;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 0.95rem; 
  font-weight: 800;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border: none;
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center;
  gap: 2px;
  position: relative;
  animation: basketballBounce 3.2s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
}

/* Color classes matching grid ball pattern (10n+x) */
.number-badge.ball-color-1 { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.number-badge.ball-color-2 { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.number-badge.ball-color-3 { background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%); }
.number-badge.ball-color-4 { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.number-badge.ball-color-5 { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.number-badge.ball-color-6 { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.number-badge.ball-color-7 { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.number-badge.ball-color-8 { background: linear-gradient(135deg, #d946ef 0%, #c026d3 100%); }
.number-badge.ball-color-9 { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.number-badge.ball-color-0 { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }

/* Animation delays for sequential bounce */
.number-badge:nth-child(1) { animation-delay: 0s; }
.number-badge:nth-child(2) { animation-delay: 0.15s; }
.number-badge:nth-child(3) { animation-delay: 0.3s; }
.number-badge:nth-child(4) { animation-delay: 0.45s; }
.number-badge:nth-child(5) { animation-delay: 0.6s; }

.number-badge::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 25%;
  width: 35%;
  height: 25%;
  background: rgba(255, 255, 255, 0.4);
  filter: blur(3px);
  pointer-events: none;
  border-radius: 50%;
}

@keyframes basketballBounce {
  0% { transform: translateY(0) scale(1, 1); }
  5% { transform: translateY(-2px) scale(1.02, 0.98); }
  15% { transform: translateY(-15px) scale(0.98, 1.02); }
  25% { transform: translateY(0) scale(1.05, 0.95); }
  30% { transform: translateY(0) scale(1, 1); }
  35% { transform: translateY(-8px) scale(0.99, 1.01); }
  45% { transform: translateY(0) scale(1.03, 0.97); }
  50% { transform: translateY(0) scale(1, 1); }
  55% { transform: translateY(-4px) scale(0.99, 1.01); }
  65% { transform: translateY(0) scale(1.02, 0.98); }
  70% { transform: translateY(0) scale(1, 1); }
  100% { transform: translateY(0) scale(1, 1); }
}
.order-indicator { font-size: 0.6rem; font-weight: 600; opacity: 0.8; letter-spacing: 0.5px; }
.number-text { font-size: 1.1rem; font-weight: 900; }
.empty-state { font-size: 0.8rem; color: #adb5bd; font-style: italic; }
.selected-count { font-size: 0.85rem; font-weight: 700; color: var(--dark); text-align: center; }
.selected-count.complete { color: var(--green); }

/* SUBMIT BUTTON */
.submit-button {
  width: 100%; padding: 14px; background: var(--green); color: white;
  border: none; border-radius: 8px; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; text-transform: uppercase; transition: all 0.3s;
  animation: buttonPulse 2s ease-in-out infinite;
}
.submit-button:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.submit-button:active {
  transform: scale(0.98);
}
.submit-button:disabled { 
  background: #dfe6e9; 
  color: #adb5bd; 
  cursor: not-allowed; 
  animation: none;
  transform: none;
}

@keyframes buttonPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
  }
}

/* POPUP */
.user-info-popup { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height:  100%; background: rgba(0,0,0,0.7); }
.user-info-popup-content { background: white; margin: 10% auto; padding: 0; border-radius: 15px; width: 90%; max-width:  500px; position: relative; }
.close-popup { position: absolute; right: 15px; top: 15px; font-size: 28px; font-weight: bold; color: #aaa; cursor: pointer; z-index: 1; }
.user-info-popup-body { padding: 40px 20px 20px; }
.popup-title { font-size: 1.3rem; color: var(--primary); margin-bottom: 20px; text-align: center; font-weight: 700; }
.form-group { margin-bottom: 15px; }
.form-label { display: block; font-weight: 700; margin-bottom: 5px; font-size: 0.85rem; color: var(--dark); }
.form-input { width: 100%; padding: 12px; border: 2px solid #dfe6e9; border-radius: 8px; font-size: 0.9rem; }

/* POPUP WARNING STYLING (responsive) */
.popup-warning {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius:  12px;
  border: 2px solid #f97316;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  display: flex;
  gap: 10px;
  align-items:  flex-start;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  box-sizing: border-box;
  max-width: 100%;
}
.warn-icon {
  font-size: 1.2rem;
  line-height: 1;
  color: #d97706;
  flex-shrink: 0;
}
.warn-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #9a3412;
  font-size: 0.93rem;
  line-height: 1.45;
  word-break: break-word;
}
.warn-title { font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.popup-warning a {
  color: #b45309;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .user-info-popup-content {
    width: 94%;
    border-radius: 12px;
  }
  .user-info-popup-body {
    padding: 28px 16px 18px;
  }
  .user-info-popup-content {
    margin: 15% auto;
  }
  .popup-warning {
    margin-top: 12px;
    padding: 10px 11px;
    border-radius:  10px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  }
  .warn-body { font-size: 0.9rem; line-height: 1.4; }
}

/* TOAST — compact & clear */
.toast {
  visibility: hidden;
  min-width: 280px;
  max-width: 520px;
  background: linear-gradient(180deg, #4c1d95, #4c1d95);
  color: #f9fafb;
  text-align: center;
  border-radius: 10px;
  padding: 12px 20px;
  position: fixed;
  z-index: 2000;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.08);
}

.toast.show { visibility: visible; animation: fadein 0.25s, fadeout 0.25s 2.75s; }

.toast.error {
  background: #991b1b;
  border-color: rgba(255,255,255,0.12);
  color: #fee2e2;
  animation: fadein 0.25s, fadeout 0.25s 4.75s;
}

.toast.checking {
  background: #facc15;
  color: #1f2937;
  border-color: rgba(0,0,0,0.08);
  animation: fadein 0.25s, fadeout 0.25s 4.75s;
}

@keyframes fadein {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform:  translateX(-50%) translateY(0); }
}
@keyframes fadeout {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to   { opacity: 0; transform:  translateX(-50%) translateY(6px); }
}

/* EMOJI BUTTONS */
.btn-emoji { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; }
.btn-emoji .emoji { display: inline-block; font-size: 1rem; animation: wiggle 2s ease-in-out infinite; transform-origin: 50% 60%; }
.btn-emoji .label { display: inline-block; }
.btn-emoji:hover .emoji { animation: wiggle-fast 0.9s ease-in-out infinite; }
.btn-emoji:active { transform: translateY(1px) scale(0.99); }
@keyframes wiggle { 0%,100%{transform:rotate(0deg);}10%{transform:rotate(-10deg) scale(1.05);}20%{transform:rotate(12deg);}30%{transform:rotate(-8deg);}40%{transform:rotate(6deg);}50%{transform:rotate(0deg) scale(1.02);}60%{transform:rotate(5deg);}70%{transform:rotate(-5deg);}80%{transform:rotate(3deg);}90%{transform:rotate(-2deg);} }
@keyframes wiggle-fast { 0%,100%{transform:rotate(0deg);}15%{transform:rotate(-14deg) scale(1.07);}30%{transform:rotate(14deg);}45%{transform:rotate(-10deg);}60%{transform:rotate(8deg);}75%{transform:rotate(-6deg);}90%{transform:rotate(4deg);} }

/* HERO EMOJIS */
.hero-emoji { display: inline-block; transform-origin: 50% 60%; }
.hero-emoji.gift, .hero-emoji.trophy, .hero-emoji.fire { animation: float-wiggle 2.8s ease-in-out infinite; }
.hero-emoji.target { animation: pulse-scale 1.6s ease-in-out infinite; }
.btn-emoji-hero { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; letter-spacing: 0.5px; }
.btn-emoji-hero .label { display: inline-block; }
.btn-emoji-hero:hover .hero-emoji.target,
.btn-emoji-hero:hover .hero-emoji.gift,
.btn-emoji-hero:hover .hero-emoji.trophy { animation-duration: 1.1s; }
@keyframes float-wiggle {
  0%,100%{transform:translateY(0) rotate(0deg) scale(1);}
  12%{transform:translateY(-2px) rotate(-8deg) scale(1.05);}
  24%{transform: translateY(2px) rotate(10deg);}
  36%{transform: translateY(-3px) rotate(-6deg);}
  48%{transform: translateY(1px) rotate(4deg);}
  60%{transform:translateY(-1px) rotate(-3deg);}
  72%{transform:translateY(2px) rotate(2deg);}
  88%{transform:translateY(-1px) rotate(-1deg) scale(1.03);}
}
@keyframes pulse-scale { 0%,100%{transform:scale(1);opacity:1;}25%{transform:scale(1.08);opacity:0.95;}50%{transform:scale(0.97);opacity:0.9;}75%{transform:scale(1.04);opacity:1;} }

@media (prefers-reduced-motion: reduce) {
  .hero-emoji { animation: none; transform:  none; }
  .btn-emoji .emoji { animation: none; }
}

/* MOBILE */
@media (max-width:  640px) {
  .hero-top { align-items: flex-start; }
  .brand-title { font-size: 1.9rem; }
  .brand-logo { width: 120px; height: 120px; border-radius: 16px; }
  .cta-stack { width: 100%; justify-content: flex-start; }
  .prize-chip, .cta-button { width: 100%; justify-content: center; }
}
@media (max-width: 360px) {
  .number-ball { max-width: 35px; font-size: 0.75rem; }
  .brand-title { font-size: 1.65rem; }
  .checkbox-label { font-size: 0.75rem; }
}

/* Desktop polish for selection area */
@media (min-width: 1024px) {
  .selection-section {
    background: #e5e7eb;
    padding: 28px 0 40px;
  }
  .selection-card {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 18px;
    border-radius: 14px;
    box-shadow:  0 10px 30px rgba(0,0,0,0.12);
    border: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  }
  .section-title {
    font-size: 1.35rem;
    letter-spacing: 0.02em;
  }
  .section-subtitle {
    margin-top: 4px;
    font-size:  0.92rem;
    color: #6b7280;
  }
  /* Action bar */
  .action-buttons {
    background: #f1f5f9;
    border:  1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px;
    gap: 10px;
  }
  .btn-primary, .btn-secondary {
    padding: 10px 16px;
    font-size:  0.9rem;
    font-weight: 700;
  }
  /* Selected display */
  .selected-display {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
  }
  /* Number grid desktop:  10 columns, tighter vertical space */
  .number-grid {
    grid-template-columns: repeat(10, minmax(42px, 1fr));
    gap: 6px 10px;
    padding: 10px 6px 4px;
  }
  .number-ball {
    max-width: 54px;
    aspect-ratio: 1;
    font-size: 0.9rem;
    border:  2px solid #d7dce3;
    background: #f9fafb;
  }
  .number-ball.selected {
    border-color: #6c2bd9;
    box-shadow: 0 6px 12px rgba(108, 92, 231, 0.25);
    transform: translateY(-1px);
  }
  /* Recharge card spacing on desktop */
  .recharge-check { margin:  18px 0; }
  .recharge-card { padding: 16px 18px; }
  .checkbox-label { font-size: 1rem; }
}

/* Slightly darker outline for the selection area on large screens */
@media (min-width: 1280px) {
  .selection-card {
    border: 1px solid #d8dee9;
  }
}

/* FLOATING WHATSAPP BUTTON */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s ease;
  animation: whatsappPulse 2s ease-in-out infinite;
  overflow: hidden;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  }
}

/* HORIZONTAL COLOR ANIMATION FOR CTA BUTTON */
.cta-button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    #facc15 0%,
    #f59e0b 25%,
    #facc15 50%,
    #f59e0b 75%,
    #facc15 100%
  );
  background-size: 200% 100%;
  animation: ctaColorSlide 3s linear infinite;
}

@keyframes ctaColorSlide {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

/* TROPHY EMOJI ANIMATION */
.chip-icon {
  display: inline-block;
  animation: trophyBounce 2s ease-in-out infinite;
}

@keyframes trophyBounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-5px) rotate(-5deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(-5px) rotate(5deg);
  }
}

/* Mobile adjustments for floating WhatsApp */
@media (max-width: 640px) {
  .floating-whatsapp {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
  }
  
  /* Hero section mobile adjustments */
  .hero-top {
    flex-direction: column;
    gap: 16px;
  }
  
  .brand-mark {
    min-width: auto;
    width: 100%;
  }
  
  .brand-logo {
    width: 100px;
    height: 100px;
  }
  
  .brand-title {
    font-size: 1.8rem;
  }
  
  /* Make CTA buttons responsive on mobile */
  .cta-stack {
    gap: 8px;
    min-height: auto;
    width: 100%;
    justify-content: center;
  }
  
  .prize-chip, .cta-button {
    min-height: auto;
    padding: 12px 14px;
    font-size: 0.8rem;
  }
  
  .chip-icon {
    font-size: 1.3rem;
  }
  
  .chip-label {
    font-size: 0.7rem;
  }
  
  .chip-value {
    font-size: 1.1rem;
  }
  
  .cta-button .label {
    font-size:  0.8rem;
  }
}

/* RULES SECTION - TIGHTER SPACING */
.rules-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 28px 16px 36px 16px;
  border-top: 1px solid #dee2e6;
}

.rules-container {
  max-width: 900px;
  margin: 0 auto;
}

.rules-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #2d3436;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom:  14px;
  text-align: center;
  line-height: 1.35;
}

.rules-subtitle {
  font-size: 0.9rem;
  color: #495057;
  line-height: 1.6;
  margin-bottom: 18px;
  text-align:  center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.rule-item {
  background: white;
  padding: 16px 18px;
  border-radius:  12px;
  border-left: 4px solid #6c2bd9;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #2d3436;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
}

.rule-item strong {
  color: #6c2bd9;
  font-weight: 800;
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.rule-item ul {
  margin-left: 16px;
  line-height: 1.55;
}

.rule-item p {
  margin-bottom: 8px;
  line-height: 1.55;
}

.rule-item p + p {
  margin-top:  4px;
}

.premio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin:  12px 0 10px 0;
}

.premio-box {
  background: linear-gradient(180deg, #8b5cf6, #22084e);
  color: white;
  padding: 14px 12px;
  border-radius:  10px;
  text-align: center;
  font-size: 0.88rem;
  font-weight:  700;
  line-height: 1.45;
  box-shadow: 0 4px 12px rgba(108, 43, 217, 0.35);
}

.premio-value {
  font-size: 1.4rem;
  font-weight:  900;
  display: block;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

.codigo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin:  12px 0 0 0;
    justify-content: center;
}

.codigo-item {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #2d1a05;
  padding: 10px 14px;
  border-radius:  8px;
  font-size:  0.88rem;
  font-weight:  700;
  text-align: center;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
}

.sabado-bonus {
  background: linear-gradient(180deg, #10b981, #06534a);
  color: white;
  padding: 12px 14px;
  border-radius:  10px;
  text-align: center;
  font-size: 0.92rem;
  font-weight:  800;
  margin-bottom: 10px;
  box-shadow:  0 4px 12px rgba(16, 185, 129, 0.35);
  letter-spacing: 0.5px;
}

.rules-transfer {
  background: rgba(255, 255, 255, 0.6);
  padding: 12px 16px;
  border-radius:  10px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #495057;
  text-align:  center;
  border: 2px dashed #dee2e6;
  margin-bottom: 0;
}

.rules-transfer strong {
  color: #6c2bd9;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  display: block;
}

.rule-note {
  font-size: 0.82rem;
  margin-top: 10px;
  color: #6c757d;
  font-style: italic;
  padding-top: 8px;
  border-top: 1px dashed #dee2e6;
}

.cta-button-rules {
  display: inline-block;
  background: linear-gradient(
    90deg,
    #facc15 0%,
    #f59e0b 25%,
    #facc15 50%,
    #f59e0b 75%,
    #facc15 100%
  );
  background-size: 200% 100%;
  animation: ctaColorSlide 3s linear infinite;
  color: #2d1a05;
  padding: 12px 18px;
  border-radius:  10px;
  font-size: 0.95rem;
  font-weight:  800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  transition: all 0.3s ease;
  border: 2px solid #f1c40f;
  margin-top: 14px;
}

.cta-button-rules:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.5);
}

@media (max-width: 640px) {
  .rules-section {
    padding: 24px 14px 32px 14px;
  }
  
  .rules-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
  
  .rules-subtitle {
    font-size: 0.85rem;
    margin-bottom: 16px;
  }
  
  .rule-item {
    padding:  14px 14px;
  }
  
  .premio-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .sabado-bonus {
    padding: 11px 12px;
  }
  
  .cta-button-rules {
    display: block;
    width: 100%;
    padding: 14px 16px;
  }
}