*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #020817;
  color: #fff;
  overflow: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  background: url("assets/d2CLmo.jpg") center center / cover no-repeat;
  filter: brightness(0.6);
  z-index: -2;
}

.overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center,
      rgba(0, 0, 0, 0.1),
      rgba(0, 0, 0, 0.7));
  z-index: -1;
}

.main-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: rgba(2, 8, 23, 0.95);
  border-radius: 24px;
  padding: 20px 20px 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.icash-logo {
  height: 32px;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  color: #042f2e;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.headline {
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 13px;
  color: #cbd5f5;
  margin-bottom: 14px;
}

.wheel-wrapper {
  position: relative;
  width: min(240px, 56vw);
  height: min(240px, 56vw);
  margin-bottom: 10px;
}

.wheel-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.merchants-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.merchants-column img {
  display: block;
  max-width: 15vw;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.wheel {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.6);
  transition: transform 8s cubic-bezier(0.12, 0.78, 0.18, 1);
}

.pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 18px solid #facc15;
  border-bottom: 0;
  filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.8));
  z-index: 3;
}

.spin-hitbox {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
}

.spin-hitbox:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 4px;
}

.tap-hint {
  font-size: 11px;
  color: #a5b4fc;
  margin-bottom: 12px;
}

.merchants {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.merchants img {
  height: 26px;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.terms {
  font-size: 10px;
  color: #9ca3af;
  line-height: 1.4;
}

.modal-merchants {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 10px 0 6px;
  flex-wrap: wrap;
}

.modal-merchants img {
  height: 22px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
}

.modal-note {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.4;
  margin-bottom: 12px;
}

/* Modals */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 20;
}

.modal-backdrop.active {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 360px;
  background: radial-gradient(circle at top,
      #0f172a 0%,
      #020617 60%,
      #000 100%);
  border-radius: 20px;
  padding: 20px 18px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.modal h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.modal p {
  font-size: 13px;
  color: #e5e7eb;
  margin-bottom: 14px;
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal input[type="email"] {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  font-size: 14px;
}

.modal input::placeholder {
  color: #6b7280;
}

.primary-cta {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #111827;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(234, 179, 8, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.primary-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(234, 179, 8, 0.85);
}

.primary-cta:active {
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(234, 179, 8, 0.6);
}

.result-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #facc15, #f97316);
  color: #111827;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border-radius: 999px;
  border: 2px solid #fbbf24;
  background: radial-gradient(circle at top,
      rgba(15, 23, 42, 0.9),
      rgba(15, 23, 42, 0.98));
  color: #fde68a;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

@media(max-width: 360px) {
  .merchants-column img {
    max-width: 12vw;
    border-radius: 4px;

  }
}

@media (min-width: 361px) and (max-width: 480px) {
  .card {
    transform: translateY(-15%);
  }

  .modal {
    transform: translateY(-3%);
  }

  .merchants-column img {
    max-width: 15vw;
    border-radius: 4px;
  }

  .wheel-wrapper {
    width: 180px;
    height: 180px;
  }
}

@media (max-height: 640px) {
  .card {
    max-width: 380px;
    padding: 16px;
  }

  .wheel-wrapper {
    width: min(240px, 72vw);
    height: min(240px, 72vw);
  }

  .merchants img {
    height: 22px;
  }
}

@media (min-width: 768px) {
  .wheel-section {
    gap: 16px;
    margin-bottom: 10px;
  }

  .wheel-wrapper {
    width: 260px;
    height: 260px;
  }

  .merchants-column img {
    max-width: 120px;
    border-radius: 6px;
  }
}

.modal {
  background: radial-gradient(circle at top,
      #1f2937 0%,
      #020617 60%,
      #000 100%);
  border-radius: 20px;
  border: 1px solid rgba(250, 204, 21, 0.45);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 40px rgba(250, 204, 21, 0.35);
}

.result-title {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  margin: 0 auto 0.75rem auto;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #111827;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.8),
    0 0 30px rgba(248, 113, 113, 0.55);
}

.primary-cta {
  background: linear-gradient(135deg, #fde68a, #facc15, #f97316);
  color: #111827;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7), 0 0 24px rgba(250, 204, 21, 0.7);
}

.primary-cta:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.8), 0 0 32px rgba(250, 204, 21, 0.8);
}

.modal-merchants img {
  max-height: 32px;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

.modal-note {
  font-size: 0.78rem;
  opacity: 0.9;
}

/* Mobile styles for card */
@media (max-width: 480px) {}