.fmld-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(32, 12, 38, .56);
  z-index: 999999;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fmld-backdrop.is-open {
  display: flex;
}

.fmld-modal {
  width: min(440px, calc(100vw - 22px));
  max-height: min(92vh, 760px);
  overflow: auto;
  border-radius: 28px;
  background: #fff;
  color: #201527;
  box-shadow: 0 34px 90px rgba(20, 4, 25, .42);
  position: relative;
  padding: 22px;
}

.fmld-modal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  background: linear-gradient(90deg, #ff2d8f, #ffd56a, #25b778, #6b37d8);
}

.fmld-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f8edf6;
  color: #201527;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.fmld-badge {
  width: 80px;
  height: 80px;
  margin: 18px auto 12px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  font-size: 2.35rem;
  background: linear-gradient(135deg, #ffd56a, #ff8b45);
  box-shadow: 0 18px 34px rgba(255, 139, 69, .28);
}

.fmld-modal h2 {
  margin: 0 36px 10px;
  font-size: clamp(1.8rem, 8vw, 2.45rem);
  line-height: .96;
  text-align: center;
  letter-spacing: 0;
}

.fmld-modal p {
  margin: 0 auto 14px;
  color: #6f6075;
  line-height: 1.42;
  text-align: center;
  max-width: 340px;
  font-weight: 750;
}

.fmld-jackpot-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 14px;
  border-radius: 999px;
  padding: 9px 13px;
  color: #fff;
  background: linear-gradient(135deg, #201527, #67205f);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 12px 28px rgba(32,21,39,.2);
  font-weight: 950;
  font-size: .86rem;
  overflow: hidden;
  position: relative;
}

.fmld-jackpot-strip::before {
  content: "";
  position: absolute;
  inset: -60% auto -60% -35%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  transform: rotate(16deg);
  animation: fmldShineSweep 2.8s ease-in-out infinite;
}

.fmld-lights {
  display: inline-flex;
  gap: 4px;
}

.fmld-lights i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffd56a;
  box-shadow: 0 0 12px #ffd56a;
  animation: fmldLightChase 900ms ease-in-out infinite alternate;
}

.fmld-lights i:nth-child(2) {
  animation-delay: 120ms;
  background: #ff8b45;
  box-shadow: 0 0 12px #ff8b45;
}

.fmld-lights i:nth-child(3) {
  animation-delay: 240ms;
  background: #25b778;
  box-shadow: 0 0 12px #25b778;
}

.fmld-slot-machine {
  position: relative;
  margin: 12px auto 12px;
  width: min(342px, 100%);
  border-radius: 28px;
  padding: 15px 13px 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 213, 106, .45), transparent 30%),
    linear-gradient(145deg, #35133f 0%, #1f0a27 72%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.14),
    0 18px 42px rgba(32,21,39,.24);
  overflow: hidden;
}

.fmld-slot-machine::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.23), transparent);
  transform: rotate(18deg);
  animation: fmldShineSweep 3.2s ease-in-out infinite;
}

.fmld-machine-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
  color: #fff;
  font-size: .67rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fmld-machine-top span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
}

.fmld-reels {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 8px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.08)),
    #120716;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.16),
    inset 0 10px 26px rgba(0,0,0,.25);
}

.fmld-reel {
  height: 94px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 12%, rgba(255,255,255,.92), rgba(255,255,255,.64) 32%, rgba(255,244,252,.95) 68%),
    #fff;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow:
    inset 0 -10px 20px rgba(255,45,143,.11),
    0 9px 18px rgba(0,0,0,.18);
  overflow: hidden;
}

.fmld-symbol {
  display: inline-grid;
  place-items: center;
  min-width: 1.2em;
  color: #201527;
  font-size: 2.85rem;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 3px 0 rgba(255,255,255,.54);
}

.fmld-symbol.is-amazon-symbol {
  min-width: 72px;
  gap: 0;
  color: #111820;
  font-size: 1rem;
  line-height: 1;
  text-shadow: none;
}

.fmld-symbol.is-amazon-symbol strong {
  display: block;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: -.04em;
}

.fmld-symbol.is-amazon-symbol small {
  display: block;
  width: 43px;
  height: 12px;
  margin-top: -1px;
  border-bottom: 4px solid #ff9900;
  border-radius: 0 0 999px 999px;
  transform: rotate(-5deg);
}

.fmld-symbol.is-cashapp-symbol {
  min-width: 72px;
  min-height: 58px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #00d632, #00a82b);
  font-size: 1rem;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0,0,0,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 8px 18px rgba(0,168,43,.18);
}

.fmld-symbol.is-cashapp-symbol strong {
  display: block;
  font-size: 2.1rem;
  line-height: .86;
  font-weight: 950;
}

.fmld-symbol.is-cashapp-symbol small {
  display: block;
  margin-top: 2px;
  font-size: .48rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fmld-symbol.is-landing {
  animation: fmldSymbolLand 220ms ease-out;
}

.fmld-reel.is-spinning .fmld-symbol {
  filter: blur(1px);
  animation: fmldReelSpin 120ms linear infinite;
}

.fmld-lever {
  position: absolute;
  right: -7px;
  top: 68px;
  width: 22px;
  height: 88px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd56a, #ff8b45);
  box-shadow: 0 10px 18px rgba(255,139,69,.28), inset 0 1px 0 rgba(255,255,255,.58);
  transform-origin: center 16px;
}

.fmld-lever::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -15px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff6c8, #ff2d8f 56%, #9d155d);
  transform: translateX(-50%);
  box-shadow: 0 10px 18px rgba(255,45,143,.35);
}

.fmld-slot-machine.is-pulled {
  animation: fmldJackpotShake 520ms ease-in-out;
}

.fmld-slot-machine.is-pulled .fmld-lever {
  animation: fmldLeverPull 680ms ease-in-out;
}

.fmld-wheel-wrap {
  width: min(238px, 72vw);
  height: min(238px, 72vw);
  margin: 15px auto 12px;
  position: relative;
}

.fmld-pointer {
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 32px solid #201527;
  z-index: 2;
}

.fmld-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 10px solid #fff;
  background: conic-gradient(from -25deg, #ef4fa7 0 16.6%, #25b778 16.6% 33.2%, #ffd56a 33.2% 49.8%, #6b37d8 49.8% 66.4%, #ff8b45 66.4% 83%, #1cc8d9 83% 100%);
  box-shadow: 0 16px 42px rgba(42, 15, 53, .25);
  transition: transform 2.4s cubic-bezier(.17,.84,.26,1);
  position: relative;
}

.fmld-wheel::after {
  content: "LUCK";
  position: absolute;
  inset: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #ff2d8f;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(32, 21, 39, .13);
}

.fmld-wheel-label {
  position: absolute;
  left: calc(50% + var(--x));
  top: calc(50% + var(--y));
  width: 66px;
  min-height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 4px 6px;
  color: #201527;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.72);
  font-size: .58rem;
  line-height: .9;
  font-weight: 950;
  text-align: center;
  box-shadow: 0 5px 12px rgba(32,21,39,.16);
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.fmld-wheel-label strong {
  display: block;
  font-size: .7rem;
  line-height: .92;
}

.fmld-wheel-label small {
  display: block;
  font-size: .47rem;
  line-height: .9;
  text-transform: uppercase;
}

.fmld-wheel-label.is-amazon {
  background: #fff;
  color: #111820;
}

.fmld-wheel-label.is-amazon strong {
  font-size: .74rem;
  letter-spacing: -.02em;
}

.fmld-wheel-label.is-amazon small {
  width: 32px;
  height: 7px;
  margin: 1px auto 0;
  border-bottom: 3px solid #ff9900;
  border-radius: 0 0 999px 999px;
  color: transparent;
}

.fmld-wheel-label.is-cashapp {
  background: #00d632;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.16);
}

.fmld-wheel-label.is-cashapp strong {
  font-size: .96rem;
  line-height: .8;
}

.fmld-wheel-label.is-cashapp small {
  font-size: .5rem;
  color: #fff;
}

.fmld-wheel.is-spinning {
  box-shadow: 0 16px 42px rgba(42, 15, 53, .25), 0 0 0 10px rgba(255, 213, 106, .18), 0 0 40px rgba(239, 79, 167, .42);
}

.fmld-result {
  min-height: 40px;
  text-align: center;
  color: #ff2d8f;
  font-weight: 950;
  font-size: 1.1rem;
}

.fmld-result.is-win {
  color: #0d8c57;
  font-size: 1.28rem;
  animation: fmldResultPop 520ms ease-out;
}

.fmld-fields {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.fmld-fields input {
  width: 100%;
  border: 1px solid rgba(32, 21, 39, .13);
  background: #fff;
  color: #201527;
  border-radius: 16px;
  min-height: 50px;
  padding: 0 14px;
  font-size: 1rem;
  font-weight: 800;
}

.fmld-saved-profile {
  margin: 8px auto 0;
  color: rgba(32, 21, 39, .68);
  font-size: .78rem;
  font-weight: 850;
  text-align: center;
}

.fmld-saved-profile strong {
  color: #201527;
  font-weight: 950;
}

.fmld-spin {
  border: 0;
  border-radius: 999px;
  min-height: 52px;
  padding: 14px 18px;
  color: #fff;
  background: linear-gradient(135deg, #ff2d8f, #ff8b45);
  box-shadow: 0 14px 34px rgba(239, 79, 167, .32);
  font-weight: 950;
  cursor: pointer;
  font-size: 1rem;
}

.fmld-spin:disabled {
  cursor: not-allowed;
  opacity: .58;
  box-shadow: none;
}

.fmld-note {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #effbf5;
  color: #116940;
  font-weight: 900;
  text-align: center;
}

.fmld-prize-reveal {
  position: fixed;
  inset: 10px;
  z-index: 1000001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at 22% 14%, rgba(255, 213, 106, .38), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(255, 45, 143, .34), transparent 30%),
    linear-gradient(145deg, rgba(32, 21, 39, .96), rgba(98, 28, 111, .95));
  border-radius: 26px;
  box-shadow: 0 28px 90px rgba(20, 4, 25, .55);
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.fmld-prize-reveal.is-open {
  display: flex;
  animation: fmldRevealIn 360ms ease-out;
}

.fmld-prize-reveal::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle, rgba(255,255,255,.2) 0 3px, transparent 4px) 0 0 / 54px 54px,
    linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  animation: fmldPrizeSparkle 4s linear infinite;
}

.fmld-prize-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  border-radius: 28px;
  padding: clamp(24px, 6vw, 44px) clamp(16px, 5vw, 34px);
  background: rgba(255,255,255,.96);
  color: #201527;
  box-shadow: 0 24px 70px rgba(0,0,0,.3);
}

.fmld-prize-kicker {
  color: #ff2d8f;
  font-size: .9rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fmld-prize-title {
  margin: 10px 0 8px;
  font-size: clamp(2.4rem, 11vw, 5.8rem);
  line-height: .86;
  font-weight: 950;
  color: #201527;
}

.fmld-prize-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(390px, 100%);
  margin: 12px auto;
  border-radius: 28px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #ff2d8f, #ff8b45, #ffd56a);
  color: #fff;
  font-size: clamp(3rem, 17vw, 7rem);
  line-height: .9;
  font-weight: 950;
  text-shadow: 0 5px 18px rgba(32,21,39,.22);
  box-shadow: 0 20px 48px rgba(239,79,167,.3);
}

.fmld-prize-sub {
  max-width: 420px;
  margin: 6px auto 18px;
  color: #6f6075;
  font-size: 1rem;
  line-height: 1.42;
  font-weight: 850;
}

.fmld-reveal-close {
  border: 0;
  border-radius: 999px;
  min-height: 52px;
  padding: 14px 22px;
  color: #fff;
  background: #201527;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(32,21,39,.22);
}

.fmld-legal {
  margin-top: 12px;
  color: #6f6075;
  font-size: .76rem;
  line-height: 1.4;
  text-align: center;
}

.fmld-snooze {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: rgba(32, 21, 39, .68);
  font-size: .76rem;
  font-weight: 850;
  text-align: center;
}

.fmld-snooze button {
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: #f6edf5;
  color: #6b4266;
  font-size: .74rem;
  font-weight: 950;
  cursor: pointer;
}

.fmld-snooze button:first-of-type {
  background: #fff2c7;
  color: #784300;
  box-shadow: inset 0 0 0 1px rgba(255, 184, 0, .28);
}

.fmld-coin-burst {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 4;
}

.fmld-coin {
  position: absolute;
  left: 50%;
  top: 56%;
  font-size: 1.5rem;
  filter: drop-shadow(0 8px 10px rgba(32,21,39,.18));
  animation: fmldCoinFly 1150ms cubic-bezier(.13,.8,.22,1) forwards;
}

.fmld-modal.is-celebrating {
  animation: fmldJackpotShake 420ms ease-in-out;
}

@keyframes fmldShineSweep {
  0%, 35% { transform: translateX(0) rotate(16deg); }
  70%, 100% { transform: translateX(520%) rotate(16deg); }
}

@keyframes fmldLightChase {
  from { opacity: .35; transform: scale(.72); }
  to { opacity: 1; transform: scale(1.18); }
}

@keyframes fmldResultPop {
  0% { transform: scale(.86); opacity: .35; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes fmldReelSpin {
  0% { transform: translateY(-16px) scale(1.04); opacity: .48; }
  100% { transform: translateY(16px) scale(1.04); opacity: .9; }
}

@keyframes fmldSymbolLand {
  0% { transform: scale(.76) translateY(-10px); }
  64% { transform: scale(1.18) translateY(3px); }
  100% { transform: scale(1) translateY(0); }
}

@keyframes fmldLeverPull {
  0%, 100% { transform: rotate(0); }
  45% { transform: rotate(18deg) translateY(9px); }
}

@keyframes fmldJackpotShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px) rotate(-.6deg); }
  45% { transform: translateX(5px) rotate(.6deg); }
  70% { transform: translateX(-3px); }
}

@keyframes fmldRevealIn {
  0% { opacity: 0; transform: scale(.94); }
  70% { opacity: 1; transform: scale(1.015); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes fmldPrizeSparkle {
  from { transform: translateX(-8%) rotate(0); }
  to { transform: translateX(8%) rotate(6deg); }
}

@keyframes fmldCoinFly {
  0% { transform: translate(-50%, -20%) scale(.6) rotate(0); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--x)), var(--y)) scale(1.18) rotate(var(--r)); opacity: 0; }
}

@media (max-width: 480px) {
  .fmld-backdrop {
    align-items: flex-end;
    padding: 8px;
  }

  .fmld-modal {
    width: 100%;
    max-height: min(88dvh, 640px);
    border-radius: 22px;
    padding: 14px;
  }

  .fmld-close {
    top: 11px;
    right: 11px;
    width: 36px;
    height: 36px;
    font-size: 21px;
  }

  .fmld-badge {
    width: 58px;
    height: 58px;
    margin: 14px auto 8px;
    border-radius: 18px;
    font-size: 1.75rem;
  }

  .fmld-modal h2 {
    margin: 0 32px 6px;
    font-size: clamp(1.45rem, 6vw, 1.9rem);
    line-height: 1;
  }

  .fmld-modal p {
    margin-bottom: 9px;
    font-size: .9rem;
    line-height: 1.28;
  }

  .fmld-jackpot-strip {
    margin-bottom: 8px;
    padding: 7px 10px;
    font-size: .74rem;
  }

  .fmld-wheel-wrap {
    width: min(194px, 56vw);
    height: min(194px, 56vw);
    margin: 9px auto 7px;
  }

  .fmld-slot-machine {
    width: min(310px, 100%);
    margin: 8px auto 8px;
    border-radius: 22px;
    padding: 11px 10px 13px;
  }

  .fmld-machine-top {
    margin-bottom: 8px;
    font-size: .57rem;
  }

  .fmld-machine-top span {
    min-height: 24px;
    padding: 5px 7px;
  }

  .fmld-reels {
    gap: 7px;
    padding: 7px;
    border-radius: 18px;
  }

  .fmld-reel {
    height: 75px;
    border-radius: 15px;
  }

  .fmld-symbol {
    font-size: 2.25rem;
  }

  .fmld-symbol.is-amazon-symbol,
  .fmld-symbol.is-cashapp-symbol {
    min-width: 58px;
  }

  .fmld-symbol.is-amazon-symbol strong {
    font-size: .82rem;
  }

  .fmld-symbol.is-amazon-symbol small {
    width: 35px;
    height: 10px;
    border-bottom-width: 3px;
  }

  .fmld-symbol.is-cashapp-symbol {
    min-height: 48px;
    border-radius: 14px;
  }

  .fmld-symbol.is-cashapp-symbol strong {
    font-size: 1.65rem;
  }

  .fmld-symbol.is-cashapp-symbol small {
    font-size: .42rem;
  }

  .fmld-lever {
    right: -5px;
    top: 55px;
    width: 18px;
    height: 70px;
  }

  .fmld-lever::before {
    width: 28px;
    height: 28px;
    top: -13px;
  }

  .fmld-pointer {
    top: -7px;
    border-left-width: 13px;
    border-right-width: 13px;
    border-top-width: 26px;
  }

  .fmld-wheel::after {
    inset: 50px;
  }

  .fmld-wheel-label {
    width: 58px;
    min-height: 25px;
    font-size: .52rem;
    padding: 3px 5px;
  }

  .fmld-wheel-label strong {
    font-size: .62rem;
  }

  .fmld-wheel-label small {
    font-size: .42rem;
  }

  .fmld-result {
    min-height: 30px;
    font-size: .98rem;
  }

  .fmld-result.is-win {
    font-size: 1.08rem;
  }

  .fmld-fields {
    gap: 8px;
    margin-top: 6px;
  }

  .fmld-fields input {
    min-height: 44px;
    border-radius: 14px;
    font-size: .94rem;
  }

  .fmld-spin {
    min-height: 46px;
    padding: 12px 16px;
    font-size: .94rem;
  }

  .fmld-legal {
    margin-top: 8px;
    font-size: .68rem;
    line-height: 1.28;
  }

  .fmld-snooze {
    margin-top: 7px;
    gap: 5px;
    font-size: .66rem;
  }

  .fmld-snooze button {
    padding: 5px 7px;
    font-size: .66rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .fmld-jackpot-strip::before,
  .fmld-lights i,
  .fmld-slot-machine::before,
  .fmld-slot-machine.is-pulled,
  .fmld-slot-machine.is-pulled .fmld-lever,
  .fmld-reel.is-spinning .fmld-symbol,
  .fmld-symbol.is-landing,
  .fmld-result.is-win,
  .fmld-modal.is-celebrating,
  .fmld-coin {
    animation: none;
  }

  .fmld-wheel {
    transition: none;
  }
}
