/* ==========================================================================
   Betty — one-page story funnel to Fanvue: the offer, the vault, the slot, the win
   ========================================================================== */

:root {
  --night: #14051c;
  --night-2: #1d0828;
  --panel: rgba(28, 6, 36, 0.8);
  --panel-solid: #24092e;
  --line: rgba(255, 92, 184, 0.38);
  --pink: #ff2d9b;
  --pink-hi: #ff8fd0;
  --pink-lo: #b8006a;
  --gold: #ffc93c;
  --gold-hi: #fff2b8;
  --gold-lo: #b86a00;
  /* Fanvue's brand green (#49f264 on fanvue.com). Everything that sends people to Fanvue uses it,
     so the page they land on already feels familiar. Gold is for the win, pink for Betty and the spin. */
  --fanvue: #49f264;
  --fanvue-hi: #a1ff62;
  --fanvue-lo: #10a238;
  --fanvue-ink: #031a09;
  --text: #fff2fa;
  --muted: #dcb3cf;
  --ink: #2a0a1c;

  --f-script: "Yellowtail", "Brush Script MT", cursive;
  --f-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --f-body: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;

  --col: 480px;
  --pad: 16px;

  --glow-pink: 0 0 18px rgba(255, 45, 155, 0.55), 0 0 42px rgba(255, 45, 155, 0.28);
  --glow-gold: 0 0 16px rgba(255, 201, 60, 0.55), 0 0 40px rgba(255, 150, 0, 0.25);
  --glow-fanvue: 0 0 16px rgba(73, 242, 100, 0.55), 0 0 40px rgba(73, 242, 100, 0.25);

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.4;
  overflow: hidden;
  overscroll-behavior: none;
}

img, video, svg { display: block; max-width: 100%; }
svg { fill: currentColor; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

body.is-booting .story { visibility: hidden; }

/* --------------------------------------------------------------------------
   The frame: Betty behind everything, a phone-width column in front
   -------------------------------------------------------------------------- */

.app {
  position: fixed; inset: 0;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, var(--col));
  margin: 0 auto;
}
.app.is-shaking { animation: shake .6s cubic-bezier(.36,.07,.19,.97) both; }

.app__bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--night); }
.app__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 18%;
  filter: blur(7px) saturate(1.25) brightness(.55);
  transform: scale(1.08);
}
.app__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 40%, transparent, rgba(20, 5, 28, .55) 70%),
    linear-gradient(180deg, rgba(20, 5, 28, .25), rgba(20, 5, 28, .1) 30%, rgba(40, 4, 40, .55) 75%, rgba(20, 5, 28, .92));
}

/* Hearts drifting up behind the content */
.hearts { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hearts span {
  position: absolute; bottom: -40px;
  width: var(--s); height: var(--s);
  color: var(--pink);
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(255, 45, 155, .9));
  animation: float-up var(--d) linear var(--delay) infinite;
}
.hearts svg { width: 100%; height: 100%; }

/* Story progress bar along the top */
.bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--pad) 4px;
}
.bar__steps { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.bar__steps button { display: block; width: 100%; padding: 8px 0; }
.bar__steps button::before {
  content: ""; display: block; height: 4px; border-radius: 4px;
  background: rgba(255, 255, 255, .22);
  transition: background .3s, box-shadow .3s;
}
.bar__steps li.is-done button::before { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.bar__steps button:disabled { cursor: default; }
.app.is-spinning .bar { pointer-events: none; }

.icon-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--line);
  background: rgba(20, 5, 28, .45);
  color: var(--pink-hi);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn--sm { width: 34px; height: 34px; }
.icon-btn--sm svg { width: 18px; height: 18px; }
.icon-btn .when-on { display: none; }
.icon-btn[aria-pressed="true"] .when-on { display: block; }
.icon-btn[aria-pressed="true"] .when-off { display: none; }

/* --------------------------------------------------------------------------
   Steps: one screen each, no scrolling
   -------------------------------------------------------------------------- */

.story { position: relative; min-height: 0; }

.step {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  padding: 2px var(--pad) 8px;
  text-align: center;
  visibility: hidden; opacity: 0;
  transition: opacity .35s ease, visibility 0s linear .35s;
  isolation: isolate;
}
.step.is-active { visibility: visible; opacity: 1; transition: opacity .35s ease; }
/* Content slides in; the slot's spot stays put so the machine can be laid over it right away. */
.step.is-active > :not(.slot-spot):not(.win__photo) { animation: step-in .5s cubic-bezier(.2,.8,.2,1) both; }
.step.is-active.is-back > :not(.slot-spot):not(.win__photo) { animation-name: step-in-back; }
.step.is-active > :nth-child(2) { animation-delay: .04s; }
.step.is-active > :nth-child(3) { animation-delay: .08s; }
.step.is-active > :nth-child(4) { animation-delay: .12s; }
.step.is-active > :nth-child(5) { animation-delay: .16s; }
.step.is-active > :nth-child(6) { animation-delay: .2s; }

.step__cta { display: grid; justify-items: center; gap: 8px; width: 100%; margin-top: auto; }

/* The spin button: Betty-pink, glossy, the biggest thing on the screen. */
.btn-spin {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 62px; padding: 0 22px;
  border-radius: 999px;
  border: 2px solid rgba(255, 230, 244, .9);
  background: radial-gradient(120% 140% at 50% 0%, #ff9ad6, #ff2d9b 52%, #b8006a);
  color: #fff;
  font-family: var(--f-display); font-size: 1.6rem; letter-spacing: .05em; text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(120, 0, 60, .55);
  box-shadow: 0 6px 0 #7a0046, 0 0 34px rgba(255, 45, 155, .85), inset 0 3px 0 rgba(255, 255, 255, .5);
  overflow: hidden; isolation: isolate;
  animation: breathe 2.4s ease-in-out infinite;
  transition: transform .1s, box-shadow .1s;
}
.btn-spin::after {
  content: ""; position: absolute; inset: -2px auto -2px -40%; width: 34%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-18deg);
  animation: shine 3.2s ease-in-out infinite;
}
.btn-spin svg { width: 22px; height: 22px; flex: none; }
.btn-spin:active { transform: translateY(5px); box-shadow: 0 1px 0 #7a0046, 0 0 22px rgba(255, 45, 155, .7), inset 0 3px 0 rgba(255,255,255,.5); }

/* The quiet way out on every screen: straight to Fanvue, in Fanvue green. */
.skip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(73, 242, 100, .55);
  background: rgba(3, 26, 9, .45);
  color: var(--fanvue-hi);
  font-weight: 700; font-size: .95rem; letter-spacing: .03em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.skip svg { width: 16px; height: 16px; }
.skip:hover { background: rgba(73, 242, 100, .14); }

/* 1. The offer ------------------------------------------------------------ */

.brand {
  display: grid; justify-items: center;
  margin: 0;
  font-weight: 400; line-height: .8;
}
.brand__script {
  font-family: var(--f-script); font-size: clamp(3rem, 15vw, 4.2rem);
  color: #fff0f8;
  text-shadow: 0 0 3px #fff, 0 0 10px #ff6fc0, 0 0 24px var(--pink), 0 0 52px var(--pink);
  transform: rotate(-4deg);
  animation: neon-on 1.4s steps(1) .2s both;
}
.brand__block {
  position: relative;
  margin: .02em 0 0 1.8em;
  font-family: var(--f-display); font-size: clamp(2.1rem, 10vw, 2.8rem); letter-spacing: .06em; text-transform: uppercase;
  color: #ffe1f2;
  text-shadow: 0 0 6px #fff, 0 0 16px var(--pink), 0 0 34px var(--pink);
}

.card {
  position: relative;
  flex: 1 1 0; min-height: 140px;
  display: flex; justify-content: center;
  width: 100%; margin: 0;
}
.card img {
  height: 100%; width: auto; max-width: 100%;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
  border-radius: 22px;
  border: 3px solid var(--pink-hi);
  box-shadow: 0 0 0 4px rgba(255, 45, 155, .3), 0 0 40px rgba(255, 45, 155, .7), 0 20px 40px -14px rgba(0, 0, 0, .8);
}
/* On her hair at the top, never over her face or bust. */
.card__tag {
  position: absolute; left: 50%; top: 12px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: linear-gradient(180deg, #ff6fc0, #ff2d9b 60%, #c4006a);
  box-shadow: var(--glow-pink);
  font-family: var(--f-display); font-size: 1.15rem; letter-spacing: .03em; white-space: nowrap;
  transform: translateX(-50%) rotate(-6deg);
  animation: tag-wiggle 3s ease-in-out infinite;
}
.card__tag b { margin-left: 4px; padding: 0 6px; border-radius: 6px; background: #fff; color: var(--pink-lo); font-weight: 400; }

.offer {
  width: 100%;
  padding: 10px 10px 10px;
  border-radius: 18px;
  border: 2px solid rgba(255, 143, 208, .75);
  background: var(--panel);
  box-shadow: var(--glow-pink);
  backdrop-filter: blur(6px);
}
.offer__title {
  margin: 0 0 8px;
  font-family: var(--f-display); font-size: 1.55rem; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase;
  text-wrap: balance;
}
.offer__chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.offer__chips li {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 7px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 143, 208, .3);
  font-weight: 600; font-size: .82rem; line-height: 1.1;
}
.offer__chips svg { width: 16px; height: 16px; color: var(--fanvue); }

/* 2. The vault ------------------------------------------------------------ */

.title {
  display: flex; align-items: center; gap: 8px;
  margin: 2px 0 0;
  font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; line-height: 1; letter-spacing: .03em; text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 45, 155, .6);
}
.title svg { width: 30px; height: 30px; color: var(--gold); filter: drop-shadow(0 0 8px rgba(255, 180, 0, .7)); }
.kicker { display: grid; margin: -4px 0 0; line-height: 1.15; }
.kicker b { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; letter-spacing: .05em; text-transform: uppercase; color: var(--pink-hi); }
.kicker span { font-size: .95rem; color: var(--muted); }

.locks {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  width: min(100%, max(210px, calc(100dvh - 420px)));
  flex: none;
}
.lock {
  position: relative; aspect-ratio: 1;
  border-radius: 14px; overflow: hidden;
  border: 2px solid rgba(255, 143, 208, .7);
  box-shadow: 0 0 16px rgba(255, 45, 155, .45);
  animation: lock-glow 2.4s ease-in-out calc(var(--i) * -.27s) infinite;
}
.lock img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.lock::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 45, 155, .12), rgba(40, 0, 30, .35)); }
.lock svg {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 30%; height: 30%;
  color: var(--gold-hi);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .7)) drop-shadow(0 0 8px rgba(255, 180, 0, .6));
}

.checks { display: grid; gap: 5px; margin: 2px 0 0; padding: 0; list-style: none; text-align: left; }
.checks li { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1rem; }
.checks svg {
  width: 20px; height: 20px; padding: 3px; flex: none;
  border-radius: 6px;
  background: var(--pink); color: #fff;
  box-shadow: 0 0 8px rgba(255, 45, 155, .7);
}

/* 3. The slot ------------------------------------------------------------- */

.step--slot { gap: 6px; }
.script-title {
  margin: 0;
  font-family: var(--f-script); font-weight: 400; font-size: clamp(2.6rem, 12vw, 3.3rem); line-height: 1;
  color: #fff0f8;
  text-shadow: 0 0 3px #fff, 0 0 12px #ff6fc0, 0 0 28px var(--pink);
}
.sub { margin: 0; max-width: 34ch; font-size: 1.05rem; font-weight: 500; text-shadow: 0 1px 8px rgba(20, 0, 20, .8); }
.sub b { color: var(--gold); }
/* Betty takes all the height the machine leaves. The box keeps the source's shape (a tight
   forehead-to-neckline band): on a short phone it narrows rather than turning into a slit, so her face
   and bust always show whole. */
.portrait {
  flex: 1 1 0; min-height: 110px; max-height: 520px;
  width: auto; max-width: 100%; aspect-ratio: 760 / 661;
  object-fit: cover; object-position: 50% 40%;
  border-radius: 20px;
  border: 2px solid var(--pink-hi);
  box-shadow: 0 0 30px rgba(255, 45, 155, .55);
}
/* The machine is scaled into this box (440 x 380 natural), right under her photo. */
.slot-spot { flex: none; width: 100%; aspect-ratio: 440 / 380; max-height: 46dvh; }
.fine { margin: 0; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.step--slot .step__cta { margin-top: 0; }
.sub--slot { font-size: .92rem; }
/* Short phones: every pixel goes to her photo. */
@media (max-height: 800px) { .step--slot .fine, .sub--slot.is-default { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 4. The win -------------------------------------------------------------- */

.step--win { justify-content: center; gap: 12px; }
/* Betty across the top of the screen, face and cleavage above the "You won!", fading into the panel. */
.win__photo {
  position: absolute; left: 0; top: 0; z-index: -1;
  width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; object-position: 50% 30%;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent);
  mask-image: linear-gradient(180deg, #000 80%, transparent);
}
.win__script {
  margin: auto 0 0;
  font-family: var(--f-script); font-size: 2.8rem; line-height: 1;
  color: #fff0f8;
  text-shadow: 0 0 3px #fff, 0 0 12px #ff6fc0, 0 0 28px var(--pink);
}
.win__title {
  margin: -8px 0 0;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(3.6rem, 19vw, 5rem); line-height: .95; text-transform: uppercase;
  background: linear-gradient(180deg, #fff6c8, var(--gold) 50%, #c56f00); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 180, 0, .55)) drop-shadow(0 4px 0 rgba(90, 30, 0, .6));
}
.win__panel {
  width: 100%;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 2px solid rgba(255, 143, 208, .8);
  background: var(--panel);
  box-shadow: var(--glow-pink);
  backdrop-filter: blur(6px);
}
.win__head {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0;
  font-family: var(--f-display); font-size: 1.35rem; letter-spacing: .03em; text-transform: uppercase;
}
.win__head svg { width: 22px; height: 22px; color: var(--fanvue); flex: none; }
.win__text { margin: 6px auto 0; max-width: 36ch; color: #fde3f2; font-size: 1rem; }
.step--win .step__cta { margin-top: 0; }

.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; margin: 2px 0 0; padding: 0; list-style: none; font-size: .82rem; font-weight: 600; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 5px; }
.trust svg { width: 13px; height: 13px; color: var(--fanvue); }

/* Small print */
.legal {
  padding: 2px var(--pad) calc(env(safe-area-inset-bottom, 0px) + 6px);
  text-align: center;
  font-size: .72rem; line-height: 1.3;
  color: rgba(220, 179, 207, .75);
}
.legal p { margin: 0; }
/* The AI notice sits last and smaller, but stays readable: Fanvue requires it, and it must be noticeable. */
.legal__ai { margin-top: 2px; font-size: .625rem; letter-spacing: .01em; color: rgba(220, 179, 207, .62); }

/* --------------------------------------------------------------------------
   Buttons shared with the old page
   -------------------------------------------------------------------------- */

/* The Fanvue button, in Fanvue green with dark text like their own buttons. Everything funnels here. */
.cta-vault {
  --h: 64px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid rgba(236, 255, 228, 0.85);
  background: linear-gradient(180deg, var(--fanvue-hi) 0%, var(--fanvue) 50%, var(--fanvue-lo) 100%);
  color: var(--fanvue-ink);
  font-family: var(--f-display);
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  box-shadow:
    0 0 0 5px rgba(73, 242, 100, 0.2),
    0 0 34px rgba(73, 242, 100, 0.6),
    0 14px 30px -10px rgba(0, 0, 0, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.55);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cta-vault::after {
  content: "";
  position: absolute; inset: -2px auto -2px -40%;
  width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent);
  transform: skewX(-18deg);
  animation: shine 3.8s ease-in-out infinite;
  z-index: -1;
}
.cta-vault:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 0 6px rgba(73,242,100,.28), 0 0 48px rgba(73,242,100,.8), 0 18px 34px -10px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,255,255,.55); }
.cta-vault:active { transform: translateY(1px) scale(0.99); }
.cta-vault__icon { width: 26px; height: 26px; flex: none; }
.cta-vault__label { white-space: nowrap; }
.cta-vault--xl { --h: 72px; font-size: 1.6rem; width: 100%; padding: 0 22px; }
.cta-vault--sm { --h: 46px; font-size: 1.05rem; padding: 0 20px; gap: 8px; box-shadow: 0 0 0 3px rgba(73,242,100,.2), 0 0 22px rgba(73,242,100,.5), inset 0 2px 0 rgba(255,255,255,.5); }

.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px;
  border-radius: 999px;
  border: 2px solid var(--gold-hi);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, #e08a00);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--glow-gold), inset 0 2px 0 rgba(255,255,255,.7);
  transition: transform .15s ease, filter .15s ease;
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-gold:disabled { filter: grayscale(.7) brightness(.7); cursor: not-allowed; transform: none; }

.link-btn {
  color: var(--pink-hi);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 143, 208, 0.45);
}
.link-btn:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Slot machine
   Natural size 440 x 380: a pink chrome drum with three reels, a neon sign on top and one big
   Spin button below. JS positions it with translate+scale over the slot screen's spot.
   -------------------------------------------------------------------------- */

.slot {
  --cell: 92px;
  position: fixed; left: 0; top: 0; z-index: 62;
  width: 440px; height: 380px;
  transform-origin: 0 0;
  visibility: hidden;
}
.slot.is-ready { visibility: visible; }
.slot.is-moving { transition: transform .85s cubic-bezier(.65,-0.05,.25,1.1); }
.slot.is-moving-quick { transition: transform .3s ease; }
.slot__body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center;
}
.slot__body.is-jolting { animation: jolt .32s cubic-bezier(.2,.9,.3,1.2) both; }
.slot__body.is-shaking { animation: shake .55s cubic-bezier(.36,.07,.19,.97) both; }

/* Neon plate sitting on the drum's top edge */
.slot__sign {
  position: relative; z-index: 3;
  height: 48px; margin-bottom: -24px; padding: 0 30px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #3d0a4c, #1d0428);
  box-shadow:
    0 0 0 3px #ffd6ef, 0 0 0 6px #ff2d9b, 0 0 0 8px #8a0048,
    0 0 30px rgba(255,45,155,.9), 0 10px 18px rgba(0,0,0,.5);
  font-family: var(--f-display); font-size: 1.75rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  white-space: nowrap;
  color: #ffe1f2;
  text-shadow: 0 0 6px #fff, 0 0 14px var(--pink), 0 0 26px var(--pink);
}
.slot__sign.is-jackpot { color: #fff6c8; text-shadow: 0 0 6px #fff, 0 0 14px var(--gold), 0 0 30px #ff9d00; animation: flicker .18s steps(2) 10; }

/* The drum: pink chrome, bright at the top and bottom edges and shaded at the sides so it reads as
   a rounded, polished barrel. */
.slot__drum {
  position: relative;
  width: 100%; height: 270px;
  border-radius: 46px;
  background:
    linear-gradient(90deg, rgba(70,0,35,.55), transparent 12%, transparent 88%, rgba(70,0,35,.55)),
    linear-gradient(180deg, #ffe6f4 0%, #ff8fd0 9%, #d1007a 24%, #9a0050 50%, #d1007a 76%, #ff8fd0 91%, #ffe0f1 100%);
  box-shadow:
    inset 0 3px 0 rgba(255,255,255,.85),
    inset 0 -3px 0 rgba(255,255,255,.45),
    0 0 0 2px #ffd6ef,
    0 30px 60px -18px rgba(0,0,0,.85),
    0 0 70px rgba(255,45,155,.75),
    0 0 160px rgba(255,45,155,.35);
}
.slot__bulbs { position: absolute; inset: 0; pointer-events: none; }
.bulb {
  position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #ffe9a8 45%, #ffb43c);
  box-shadow: 0 0 6px #ffd24a, 0 0 14px #ff9d00;
  animation: bulb 1s steps(1) infinite;
}
.bulb:nth-child(2n) { animation-delay: -.5s; }
.slot.is-spinning .bulb { animation-duration: .3s; }
.slot.is-won .bulb { animation-duration: .1s; background: #fff; }

.slot__window {
  position: absolute; inset: 36px 28px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 0 8px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #4a0030, #8a0048 50%, #4a0030);
  box-shadow:
    0 0 0 3px #ffd6ef,
    0 0 0 7px #a1004f,
    0 0 30px rgba(255,45,155,.85),
    inset 0 0 14px rgba(0,0,0,.6);
}
.reel {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, #f6c4e0, #fff 20%, #fff 80%, #f6c4e0);
}
/* Drum curvature: symbols darken as they roll over the top and under the bottom. */
.reel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(90,0,50,.75), rgba(90,0,50,0) 32%, rgba(90,0,50,0) 68%, rgba(90,0,50,.75));
}
.reel.is-anticipating { box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 26px rgba(255,170,0,.9); animation: pulse-gold .3s ease-in-out infinite alternate; }
/* The middle row sits on the payline whatever the window height. */
.reel__strip { position: absolute; left: 0; right: 0; top: calc(50% - var(--cell) * 1.5); will-change: transform; }
.reel__strip.is-blurred-motion { filter: url(#reelBlur); }
.cell { height: var(--cell); display: grid; place-items: center; }
.cell svg { width: 76px; height: 76px; filter: drop-shadow(0 4px 3px rgba(90,0,50,.4)); }
.cell.is-win svg { animation: sym-win .5s ease-in-out infinite alternate; }

/* Each matching symbol's hit: it stamps in, the reel flashes white and stays framed in gold, and a
   shockwave with sparks bursts out over the machine. The third hit is the biggest. */
.cell.is-hit svg { animation: sym-hit .55s cubic-bezier(.2,.9,.25,1.25) both; }
.cell.is-hit.is-win svg { animation: sym-hit .55s cubic-bezier(.2,.9,.25,1.25) both, sym-win .5s ease-in-out .55s infinite alternate; }
.reel.is-hit { box-shadow: inset 0 0 0 4px var(--gold), inset 0 0 30px rgba(255,190,40,.85); }
.reel.is-hit::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #fff 0%, rgba(255,240,190,.9) 35%, rgba(255,200,60,0) 75%);
  animation: reel-flash .45s ease-out both;
}
.hit-burst { position: absolute; z-index: 4; width: 0; height: 0; pointer-events: none; }
.hit-ring {
  position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%;
  border: 7px solid #fff0b8;
  box-shadow: 0 0 22px 4px #ffcf5a, 0 0 46px #ff9d00, inset 0 0 18px #fff3c4;
  animation: hit-ring .75s cubic-bezier(.2,.65,.35,1) both;
}
.hit-ring--late { border-color: #ff8fd0; box-shadow: 0 0 22px 4px var(--pink), 0 0 40px var(--pink); animation-delay: .1s; }
/* A gold bloom behind the hit */
.hit-glow {
  position: absolute; left: -70px; top: -70px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.6) 0%, rgba(255,214,90,.6) 30%, rgba(255,140,0,0) 70%);
  mix-blend-mode: screen;
  animation: hit-glow .6s ease-out both;
}
.hit-burst i {
  position: absolute; left: calc(var(--sz) / -2); top: calc(var(--sz) / -2);
  width: var(--sz); height: var(--sz); border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #ffe9a8 45%, #ffb43c);
  box-shadow: 0 0 10px 2px #ffd24a, 0 0 22px #ff9d00;
  animation: spark .85s cubic-bezier(.15,.75,.3,1) both;
}
.hit-burst i:nth-child(3n) { background: radial-gradient(circle at 40% 35%, #fff, #ffb3dc 45%, var(--pink)); box-shadow: 0 0 8px var(--pink-hi), 0 0 16px var(--pink); }
.hit-burst--2 .hit-ring { --ring: 3.6; }
.hit-burst--3 .hit-ring { --ring: 4.8; border-width: 9px; }
.hit-burst--3 .hit-glow { --glow: 2.4; }
.slot__payline {
  position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px;
  background: linear-gradient(90deg, transparent, rgba(255,45,155,.85) 6%, rgba(255,45,155,.85) 94%, transparent);
  box-shadow: 0 0 10px var(--pink);
  opacity: .5;
}
.slot.is-won .slot__payline { opacity: 1; height: 5px; animation: flicker .15s steps(2) infinite; }
.slot__glass {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 18%),
    linear-gradient(115deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 28%, rgba(255,255,255,0) 72%, rgba(255,255,255,.1) 100%);
}

.slot__controls { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 18px; padding: 0 6px; }
.slot__meter {
  flex: 1; min-width: 0;
  display: grid; place-items: center;
  height: 56px;
  border-radius: 16px;
  background: #0e0214;
  box-shadow: inset 0 0 0 2px #b8006a, inset 0 0 18px rgba(255,45,155,.35), 0 0 18px rgba(255,45,155,.35);
  font-family: var(--f-display); font-size: 1.5rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255,180,0,.8);
  white-space: nowrap; overflow: hidden;
}
/* The one Spin button: a big glossy pink key that presses down. */
.slot__spin {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 220px; height: 64px; padding: 0 24px;
  border-radius: 999px;
  border: 3px solid #fff;
  background: radial-gradient(circle at 50% 25%, #ff9ad6, #ff2d9b 55%, #b8006a);
  color: #fff;
  font-family: var(--f-display); font-size: 1.9rem; letter-spacing: .08em; text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(120,0,60,.6);
  box-shadow: 0 7px 0 #7a0046, 0 0 34px rgba(255,45,155,.95), inset 0 3px 0 rgba(255,255,255,.55);
  transition: transform .1s, box-shadow .1s;
}
.slot__spin svg { width: 28px; height: 28px; flex: none; }
.slot__spin:active, .slot__spin.is-pressed { transform: translateY(6px); box-shadow: 0 1px 0 #7a0046, 0 0 22px rgba(255,45,155,.7), inset 0 3px 0 rgba(255,255,255,.55); }
.slot.is-spinning .slot__spin svg { animation: spin-icon .6s linear infinite; }
.slot__spin:disabled { cursor: default; font-size: 1.35rem; filter: saturate(.55) brightness(.8); }
.slot__spin:disabled svg { display: none; }

/* --------------------------------------------------------------------------
   Modals, toast, flash, coins canvas
   -------------------------------------------------------------------------- */

.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 2, 14, .78); backdrop-filter: blur(6px); animation: fade-in .25s ease both; }
.modal__card {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 30px 26px 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, #2f0b3c, #1d0628);
  border: 2px solid rgba(255,201,60,.7);
  box-shadow: var(--glow-gold), 0 40px 80px -20px rgba(0,0,0,.9);
  text-align: center;
  animation: pop .45s cubic-bezier(.2,1.4,.4,1) both;
}
.modal__x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); }
.modal__x svg { width: 18px; height: 18px; }

.gate__card { text-align: center; }
.gate__logo { margin: 0; font-family: var(--f-script); font-size: 3.4rem; line-height: 1; color: #fff0f8; text-shadow: 0 0 14px var(--pink), 0 0 30px var(--pink); }
.gate__card h3 { margin: 10px 0 6px; font-family: var(--f-display); font-weight: 400; font-size: 2rem; text-transform: uppercase; }
.gate__card p { color: var(--muted); }
.gate__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 18px; }

.toast {
  position: fixed; left: 50%; top: 18px; z-index: 95;
  max-width: calc(100% - 32px);
  padding: 12px 20px; border-radius: 999px;
  background: rgba(36, 9, 46, .96); border: 1.5px solid var(--gold);
  box-shadow: var(--glow-gold);
  font-weight: 600;
  transform: translateX(-50%);
  animation: drop-in .35s cubic-bezier(.2,1.3,.4,1) both;
}

.flash {
  position: fixed; inset: 0; z-index: 99; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), rgba(255,255,255,.95), rgba(255,220,120,.6) 25%, rgba(255,45,155,0) 65%);
}
.flash.is-on { animation: flash .7s ease-out both; }

.coins { position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100vh; pointer-events: none; }
.coins.is-idle { visibility: hidden; }

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes shine { 0%, 62% { left: -40%; } 100% { left: 130%; } }
@keyframes bulb { 0% { opacity: 1; } 50% { opacity: .25; } }
@keyframes flicker { 0% { opacity: 1; } 50% { opacity: .55; } }
@keyframes spin-icon { to { transform: rotate(360deg); } }
@keyframes neon-on { 0% { opacity: .2; } 8% { opacity: 1; } 12% { opacity: .35; } 20% { opacity: 1; } 24% { opacity: .5; } 30%, 100% { opacity: 1; } }
@keyframes pulse-gold { from { filter: brightness(1); } to { filter: brightness(1.15); } }
@keyframes sym-hit {
  0% { transform: scale(1.9); filter: brightness(2.2) drop-shadow(0 0 16px #fff); }
  45% { transform: scale(.88); }
  70% { transform: scale(1.12); filter: brightness(1.2) drop-shadow(0 0 12px #ffcf5a); }
  100% { transform: scale(1); filter: drop-shadow(0 0 8px #ffcf5a) drop-shadow(0 4px 3px rgba(90,0,50,.4)); }
}
@keyframes reel-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hit-ring { 0% { transform: scale(.3); opacity: 1; } 55% { opacity: .9; } 100% { transform: scale(var(--ring, 2.8)); opacity: 0; } }
@keyframes hit-glow { 0% { transform: scale(.2); opacity: 1; } 35% { transform: scale(var(--glow, 1.7)); opacity: 1; } 100% { transform: scale(var(--glow, 1.7)); opacity: 0; } }
@keyframes spark {
  0% { transform: translate(0, 0) scale(1.4); opacity: 1; }
  65% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; }
}
@keyframes jolt {
  0% { transform: none; }
  30% { transform: translateY(var(--jolt, 6px)) scale(1.012); }
  65% { transform: translateY(calc(var(--jolt, 6px) * -.35)); }
  100% { transform: none; }
}
@keyframes sym-win { from { transform: scale(1); } to { transform: scale(1.14); filter: drop-shadow(0 0 10px #ffcf5a) drop-shadow(0 0 4px #fff); } }
@keyframes shake {
  10%, 90% { transform: translate3d(-2px, 1px, 0); }
  20%, 80% { transform: translate3d(5px, -3px, 0); }
  30%, 50%, 70% { transform: translate3d(-9px, 4px, 0); }
  40%, 60% { transform: translate3d(9px, -4px, 0); }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
@keyframes drop-in { from { transform: translate(-50%, -140%); } }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@keyframes float-up {
  0% { transform: translate(0, 0) rotate(-10deg); opacity: 0; }
  10% { opacity: .75; }
  80% { opacity: .5; }
  100% { transform: translate(var(--x), -110vh) rotate(14deg); opacity: 0; }
}
@keyframes step-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-28px); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@keyframes tag-wiggle { 0%, 80%, 100% { transform: translateX(-50%) rotate(-6deg); } 86% { transform: translateX(-50%) rotate(-2deg) scale(1.06); } 93% { transform: translateX(-50%) rotate(-8deg); } }
@keyframes lock-glow { 0%, 100% { box-shadow: 0 0 10px rgba(255, 45, 155, .35); } 50% { box-shadow: 0 0 22px rgba(255, 45, 155, .8); } }
@keyframes cta-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }

.cta-vault--pulse { animation: cta-pulse 1.8s ease-in-out infinite; }
.cta-vault--pulse .cta-vault__icon { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   Responsive: every screen fits without scrolling, down to short phones
   -------------------------------------------------------------------------- */

@media (max-height: 700px) {
  .step { gap: 8px; }
  .brand__script { font-size: 2.7rem; }
  .brand__block { font-size: 1.9rem; }
  .offer { padding: 8px; }
  .offer__title { font-size: 1.25rem; margin-bottom: 6px; }
  .offer__chips li { padding: 5px 3px; font-size: .76rem; }
  .btn-spin { min-height: 54px; font-size: 1.35rem; }
  .title { font-size: 1.8rem; }
  .title svg { width: 24px; height: 24px; }
  .checks li { font-size: .9rem; }
  .script-title { font-size: 2.3rem; }
  .sub { font-size: .95rem; }
  .win__script { font-size: 2.3rem; }
  .win__title { font-size: 3.4rem; }
  /* Less room above the win: lift her photo so the title doesn't sit on her cleavage. */
  .win__photo { top: -40px; }
  .cta-vault--xl { --h: 62px; font-size: 1.35rem; }
}

@media (max-height: 600px) {
  .checks, .fine { display: none; }
  .card__tag { font-size: 1rem; }
  .win__text { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .cta-vault::after, .btn-spin::after { display: none; }
}
