/* =====================================================================
   Numberland — Black Friday pre-launch landing
   Tokens are taken from the "game numberland" Figma file (Black Friday).
   ===================================================================== */

/* Yekan Bakh Pro (FaNum cut: Persian digits), self-hosted from the supplied licensed webfonts
   (fontiran.com — commercial, do not redistribute). No Medium cut: 500 resolves to Regular. */
@font-face { font-family: "Yekan Bakh FaNum"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("assets/fonts/YekanBakhFaNum-Regular.woff2") format("woff2"); }
@font-face { font-family: "Yekan Bakh FaNum"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/YekanBakhFaNum-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Yekan Bakh FaNum"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/YekanBakhFaNum-Bold.woff2") format("woff2"); }
@font-face { font-family: "Yekan Bakh FaNum"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/YekanBakhFaNum-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Yekan Bakh FaNum"; font-style: normal; font-weight: 900; font-display: swap; src: url("assets/fonts/YekanBakhFaNum-Black.woff2") format("woff2"); }

:root {
  /* shared button (2026-11-14): one solid fill sampled from edit/f20ef9f9…png (#FF9000),
     white Yekan Bakh Bold label, no gradient */
  --btn-fill: #ff9000;
  --btn-fill-hover: #ff9c1a;
  --btn-fill-down: #e68200;
  --btn-text: #fff;
  --btn-weight: 700;

  /* chest cards — solid tier strokes and tints sampled from edit/4ae58394…png */
  --tier-bronze: #b87346; --tier-bronze-bg: #22160d;
  --tier-silver: #bfc3c9; --tier-silver-bg: #191c1f;
  --tier-gold: #e9a920;   --tier-gold-bg: #221907;

  /* surfaces */
  --bg: #040404;
  --bg-2: #0b0b0e;
  --surface: #151519;
  --surface-2: #202025;
  --surface-3: #24242c;
  --stroke: #34343b;
  --stroke-2: #43434d;
  /* text */
  --text: #f7f5f6;
  --muted: #a9a7b3;
  --subtle: #7d7b87;
  /* brand */
  --orange: #ff9000;
  --orange-deep: #fc4900;
  --gold: #ffb800;
  --gold-light: #ffe08a;
  --gold-bg: #4d3800;
  --silver: #cfd4dc;
  --bronze: #d38a4f;
  --danger: #ff4d5e;
  --success: #3ddc84;

  --grad-cta: linear-gradient(90deg, #ff9000 0%, #fc4900 100%);
  --grad-gold: linear-gradient(180deg, #fff3b0 0%, #ffcc33 38%, #e59400 75%, #b76a00 100%);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 24px 60px -24px rgba(0, 0, 0, .8);
  --font: "Yekan Bakh FaNum", "Yekan Bakh", "Vazirmatn", Tahoma, system-ui, sans-serif;
  --gutter: 16px;
  --container: 1200px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 768px) { :root { --gutter: 28px; } }
@media (min-width: 1280px) { :root { --gutter: 40px; } }

/* Animatable angle for rotating golden rims (graceful static fallback without @property) */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ----------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
html.reg-modal-open, html.reg-modal-open body { overflow: hidden; }
body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, picture, svg { display: block; max-width: 100%; }
picture img { width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--orange); color: #111; font-weight: 800; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
.text-glow { color: var(--orange); text-shadow: 0 0 28px rgba(255, 144, 0, .45); }
.gold-text {
  background: linear-gradient(100deg, #ffcc33 0%, #fff3b0 22%, #ffb800 40%, #ff9000 60%, #ffe08a 80%, #ffcc33 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gold-shimmer 6s linear infinite;
  filter: drop-shadow(0 0 18px rgba(255, 184, 0, .35));
}

/* ----------------------------------------------------------- backdrop (dark metallic + neon) */
.backdrop { position: absolute; inset: 0 0 auto; height: max(120vh, 1000px); z-index: -1; overflow: hidden; pointer-events: none; }
.backdrop::before { /* warm neon bloom behind the logo */
  content: ""; position: absolute; left: 50%; top: -12%; width: min(1100px, 160vw); aspect-ratio: 1.6; transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(255, 90, 0, .28), rgba(255, 90, 0, .08) 55%, transparent 75%);
  animation: bloom 5.5s ease-in-out infinite;
}
.backdrop::after { /* vignette into the page */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, var(--bg) 100%), radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(0, 0, 0, .7));
}
.backdrop__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 20%, #000, transparent 75%); mask-image: radial-gradient(70% 55% at 50% 20%, #000, transparent 75%);
  transform: perspective(700px) rotateX(55deg) translateY(-18%) scale(1.6); transform-origin: 50% 0;
}
.backdrop__beam {
  position: absolute; top: -20%; width: 34vw; max-width: 460px; height: 120%;
  background: linear-gradient(180deg, rgba(255, 140, 40, .16), transparent 70%);
  filter: blur(18px); transform-origin: 50% 0; opacity: .8;
}
.backdrop__beam--a { left: 6%; transform: rotate(-22deg); animation: beam 12s ease-in-out infinite; }
.backdrop__beam--b { right: 6%; transform: rotate(22deg); animation: beam 12s ease-in-out -6s infinite reverse; }

/* ----------------------------------------------------------- buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: var(--radius);
  font-family: var(--font); font-size: 18px; font-weight: var(--btn-weight); line-height: 1; white-space: nowrap; text-decoration: none;
  transition: transform .2s var(--ease-out), box-shadow .2s, filter .2s, background-color .2s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
/* Every button on the page (primary and the success state's secondary one) shares one solid fill. */
.btn--primary,
.btn--ghost { color: var(--btn-text); background: var(--btn-fill); background-image: none; border: 0; overflow: hidden; box-shadow: 0 12px 32px -14px rgba(255, 144, 0, .6); }
.btn--primary:hover,
.btn--ghost:hover { background: var(--btn-fill-hover); transform: translateY(-1px); }
.btn--primary:active,
.btn--ghost:active { background: var(--btn-fill-down); transform: translateY(0) scale(.98); }
.btn--primary:disabled { cursor: progress; transform: none; }
.btn--ghost { min-height: 48px; font-size: 16px; }
.btn__label { font-weight: var(--btn-weight); }
.btn__spinner { position: absolute; width: 24px; height: 24px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; opacity: 0; animation: spin .8s linear infinite; }
.btn.is-loading .btn__label { opacity: 0; }
.btn.is-loading .btn__spinner { opacity: 1; }
.btn.is-loading::after { animation: none; }

/* ----------------------------------------------------------- HERO */
.hero { position: relative; padding-block: max(20px, env(safe-area-inset-top)) 40px; }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* Animated BLACK FRIDAY logo
   Frames: 960×378 (desktop) / 640×252 (mobile). The top 31.746% never changes.  */
.bf-logo {
  --split: 31.746%;
  position: relative; width: min(100%, 440px); aspect-ratio: 960 / 378;
  margin-top: 6px;
  animation: logo-in 1.1s var(--ease-out) both;
}
.bf-logo__poster, .bf-logo__poster img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bf-logo__poster img { filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .6)); }
.bf-logo__anim {
  position: absolute; inset: var(--split) 0 0 0; opacity: 0;
  background-image: var(--bf-sprite); background-repeat: no-repeat; background-size: 400% 800%; background-position: 66.67% 100%;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .6));
}
.bf-logo.is-animated .bf-logo__anim { opacity: 1; animation: bf-neon 5.5s step-end infinite; }
.bf-logo.is-animated .bf-logo__poster img { clip-path: inset(0 0 calc(100% - var(--split) - 1px) 0); }
.bf-logo__sheen { /* light sweeping across the metal "BLACK" during the fully-lit hold */
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  -webkit-mask: var(--bf-mask) center / 100% 100% no-repeat; mask: var(--bf-mask) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .7) 47%, rgba(255, 214, 170, .35) 52%, transparent 61%) no-repeat;
  background-size: 260% 100%; background-position: 140% 0;
  mix-blend-mode: overlay; clip-path: inset(0 0 calc(100% - var(--split)) 0);
}
.bf-logo.is-animated .bf-logo__sheen { opacity: 1; animation: sheen 5.5s ease-in-out infinite; }
.bf-logo__halo { /* neon glow that breathes with the animation */
  position: absolute; left: 8%; right: 8%; top: 38%; bottom: -6%;
  background: radial-gradient(closest-side, rgba(255, 96, 0, .55), rgba(255, 60, 0, .18) 60%, transparent);
  filter: blur(26px); opacity: .7; z-index: -1;
}
.bf-logo.is-animated .bf-logo__halo { animation: halo 5.5s ease-in-out infinite; }
.bf-logo__floor { /* reflection on the floor */
  position: absolute; left: 14%; right: 14%; bottom: -14%; height: 18%;
  background: radial-gradient(closest-side, rgba(255, 110, 20, .45), transparent);
  filter: blur(10px); z-index: -1;
}
.bf-logo.is-paused * { animation-play-state: paused !important; }

.hero__title {
  margin-top: 22px; font-size: clamp(25px, 6.4vw, 46px); font-weight: 900; line-height: 1.5;
  letter-spacing: -.3px; text-wrap: balance;
  animation: rise .9s var(--ease-out) .12s both;
}
/* "جمعه سیاه نامبرلند": heavier strokes + wider word gaps (letter-spacing would break Persian letter joins) */
.hero__title-brand { font-weight: 900; word-spacing: .2em; -webkit-text-stroke: .045em currentColor; paint-order: stroke fill; }
.hero__lead {
  margin-top: 10px; max-width: 36em; color: var(--muted);
  font-size: clamp(15px, 3.9vw, 18px); font-weight: 500; line-height: 1.9; text-wrap: balance;
  animation: rise .9s var(--ease-out) .2s both;
}
.hero__form-wrap { position: relative; width: 100%; max-width: 600px; margin-top: 36px; }
.hero__chest { display: none; }

/* campaign announcement under the form — open typography on the page background */
.hero__promo { width: 100%; max-width: 960px; margin-top: clamp(40px, 7vw, 72px); text-align: center; animation: rise 1s var(--ease-out) .4s both; }
.hero__promo-title {
  font-size: clamp(29px, 7.8vw, 58px); font-weight: 900; line-height: 1.45; letter-spacing: -.3px;
  color: #fff; text-wrap: balance; text-shadow: 0 4px 24px rgba(0, 0, 0, .55);
}
.hero__promo-hl {
  display: inline-block; white-space: nowrap; padding-block: .04em;
  color: var(--orange);
  filter: drop-shadow(0 0 20px rgba(255, 144, 0, .42));
}
.hero__promo-sub { margin-top: clamp(8px, 1.4vw, 14px); color: #bfbab3; font-size: clamp(16px, 4.3vw, 22px); font-weight: 500; line-height: 1.8; }

@media (min-width: 768px) {
  .bf-logo { width: min(100%, 560px); }
  .hero__form-wrap { margin-top: 40px; }
}
@media (min-width: 1100px) {
  .hero { padding-block: 36px 56px; }
  .bf-logo { width: 620px; }
  .hero__title { margin-top: 26px; }
  .hero__form-wrap { margin-top: 28px; }
  .hero__chest { position: absolute; display: block; pointer-events: none; animation: rise 1.2s var(--ease-out) .4s both; }
  .hero__chest picture { position: relative; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .65)); }
  .hero__chest--gold { width: 230px; left: -270px; top: -20px; }
  .hero__chest--silver { width: 160px; right: -215px; top: -72px; }
  .hero__chest--silver picture { animation-delay: -2s; animation-duration: 6.8s; }
  .hero__chest--bronze { width: 140px; right: -180px; bottom: -50px; }
  .hero__chest--bronze picture { animation-delay: -4s; animation-duration: 7.4s; }
}

/* ----------------------------------------------------------- registration card */
.reg {
  position: relative; width: 100%;
  padding: 44px 18px 18px;
  border: 1px solid var(--stroke); border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 144, 0, .14), transparent 60%),
    linear-gradient(180deg, rgba(32, 32, 37, .96), rgba(21, 21, 25, .96));
  box-shadow: var(--shadow-card), 0 0 60px -20px rgba(255, 110, 0, .35);
  text-align: start;
  animation: rise 1s var(--ease-out) .28s both;
}
.reg::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 144, 0, .9), rgba(252, 73, 0, 0) 35%, rgba(255, 184, 0, 0) 65%, rgba(255, 184, 0, .75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.reg__chests { position: absolute; top: 0; left: 50%; transform: translate(-50%, -58%); display: flex; align-items: flex-end; gap: 4px; pointer-events: none; }
.reg__chest { width: 64px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .6)); animation: float 4.8s ease-in-out infinite; }
.reg__chest--gold { width: 92px; animation-delay: -1.6s; filter: drop-shadow(0 8px 24px rgba(255, 184, 0, .45)); }
.reg__chest--bronze { animation-delay: -3.2s; }
.reg__head { display: flex; gap: 12px; align-items: flex-start; }
.reg__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--orange); background: rgba(255, 144, 0, .12); border: 1px solid rgba(255, 144, 0, .3); }
.reg__icon svg { animation: ring 4s ease-in-out infinite 1.5s; transform-origin: 50% 10%; }
.reg__title { font-size: 18px; font-weight: 800; line-height: 1.6; }
.reg__subtitle { color: var(--muted); font-size: 14px; line-height: 1.8; }
.reg__form { margin-top: 18px; }
.reg__label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.reg__row { display: grid; grid-template-columns: 1fr; grid-template-areas: "field" "error" "submit"; grid-template-rows: auto minmax(20px, auto) auto; gap: 12px; }
.reg__field { grid-area: field; position: relative; display: flex; align-items: center; height: 60px; border-radius: var(--radius); background: var(--bg-2); border: 1.5px solid var(--stroke-2); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.reg__submit { grid-area: submit; width: 100%; height: 60px; font-size: 19px; }
.reg__error { grid-area: error; display: flex; gap: 6px; align-items: center; margin-top: -2px; color: #ff8a95; font-size: 14px; font-weight: 600; line-height: 1.7; }
.reg__error::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 12px; font-weight: 900; }
.reg__field:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 144, 0, .16); background: #0e0e12; }
.reg__field.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 77, 94, .14); }
.reg__field.is-shake { animation: shake .4s ease; }
.reg__field-icon { position: absolute; inset-inline-start: 16px; color: var(--muted); pointer-events: none; }
.reg__field:focus-within .reg__field-icon { color: var(--orange); }
.reg__field-check { position: absolute; inset-inline-end: 16px; color: var(--success); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--ease-out); pointer-events: none; }
.reg__field.is-valid .reg__field-check { opacity: 1; transform: none; }
.reg__field input { width: 100%; height: 100%; padding: 0 48px; border: 0; background: transparent; outline: none; font-size: 21px; font-weight: 700; letter-spacing: .06em; text-align: right; font-variant-numeric: tabular-nums; caret-color: var(--orange); }
.reg__field input::placeholder { color: #7d7b87; font-weight: 600; letter-spacing: 0; }
.reg__field input:placeholder-shown { direction: rtl; font-size: 18px; }
.reg__privacy { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; color: var(--subtle); font-size: 13px; line-height: 1.8; }
.reg__privacy-icon { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--muted); }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----------------------------------------------------------- success popup (modal) */
.reg__modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.reg__modal[hidden] { display: none; }
.reg__modal-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 4, .74); animation: fade-in .25s var(--ease-out) both; }
.reg__modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 360px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 24px 30px;
  border: 1px solid var(--stroke); border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 144, 0, .14), transparent 60%),
    linear-gradient(180deg, rgba(32, 32, 37, .98), rgba(21, 21, 25, .98));
  box-shadow: var(--shadow-card), 0 0 60px -20px rgba(255, 110, 0, .35);
  outline: none;
  animation: modal-pop .35s var(--ease-out) both;
}
.reg__modal-close {
  position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--stroke-2);
  background: var(--surface); color: var(--muted); cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.reg__modal-close:hover { color: var(--text); border-color: var(--orange); background: var(--surface-2); }
.reg__modal-art { position: relative; width: 120px; margin: 0 auto 4px; }
.reg__modal-art picture { position: relative; display: block; animation: pop .7s var(--ease-out) both, float 4.5s ease-in-out .7s infinite; }
.reg__modal-glow { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 184, 0, .55), transparent 70%); filter: blur(14px); animation: glow 2.6s ease-in-out infinite; }
.reg__modal-title { margin-top: 10px; font-size: 19px; font-weight: 800; color: var(--text); line-height: 2; text-wrap: balance; }

/* ----------------------------------------------------------- OTP popup (shares .reg__modal chrome) */
.reg__otp-icon.reg__field-icon {
  position: static; inset-inline-start: auto; pointer-events: none;
  display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 2px;
  border-radius: 12px; color: var(--orange);
  background: rgba(255, 144, 0, .12); border: 1px solid rgba(255, 144, 0, .3);
}
.reg__otp-icon.icon-mask { width: 20px; height: 20px; -webkit-mask-size: 20px; mask-size: 20px; }
.reg__otp-sub { margin-top: 6px; max-width: 28em; color: var(--muted); font-size: 14px; line-height: 1.9; }
.reg__otp-sub bdi { color: var(--text); font-weight: 800; white-space: nowrap; }

.reg__otp-form { width: 100%; margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.reg__field--otp input {
  width: 100%; height: 100%; padding: 0 16px; border: 0; background: transparent; outline: none;
  font-size: 22px; font-weight: 800; letter-spacing: .5em; text-align: center;
  font-variant-numeric: tabular-nums; caret-color: var(--orange);
}
.reg__field--otp input::placeholder { letter-spacing: normal; font-size: 16px; color: #7d7b87; font-weight: 600; }
.reg__otp-submit { width: 100%; height: 56px; font-size: 17px; }

.reg__otp-actions { width: 100%; margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reg__otp-resend, .reg__otp-edit {
  background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: color .2s;
}
.reg__otp-resend { color: var(--orange); }
.reg__otp-resend:hover:not(:disabled) { color: var(--gold-light); }
.reg__otp-resend:disabled { color: var(--subtle); cursor: default; }
.reg__otp-edit:hover { color: var(--text); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .reg__modal-backdrop, .reg__modal-card, .reg__modal-art picture, .reg__modal-glow { animation: none; }
}

@media (min-width: 480px) {
  .reg { padding: 48px 26px 24px; }
  .reg__row { grid-template-columns: 1fr auto; grid-template-areas: "field submit" "error error"; grid-template-rows: auto minmax(18px, auto); }
  .reg__submit { width: auto; min-width: 190px; }
  .reg__chest { width: 76px; }
  .reg__chest--gold { width: 108px; }
}
@media (min-width: 1100px) { .reg { padding-top: 26px; } .reg__chests { display: none; } }

/* ----------------------------------------------------------- shared */
.glow { position: absolute; inset: 8%; border-radius: 50%; filter: blur(22px); animation: glow 4s ease-in-out infinite; pointer-events: none; }
.glow--gold { background: radial-gradient(circle, rgba(255, 184, 0, .6), transparent 68%); }
.glow--silver { background: radial-gradient(circle, rgba(207, 212, 220, .42), transparent 68%); animation-delay: -1.3s; }
.glow--bronze { background: radial-gradient(circle, rgba(211, 138, 79, .48), transparent 68%); animation-delay: -2.6s; }

.section { position: relative; padding-block: clamp(56px, 9vw, 104px); }
.section__head { max-width: 640px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section__title { margin-top: 0; font-size: clamp(24px, 5.4vw, 40px); font-weight: 900; line-height: 1.5; text-wrap: balance; }
.section__lead { margin-top: 10px; color: var(--muted); font-size: clamp(15px, 3.8vw, 17px); line-height: 1.9; text-wrap: pretty; }

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ----------------------------------------------------------- 4. chest prizes */
/* Three rows as in «Pop Up— Box» (edit/4ae58394…png): RTL — chest on the right, name / prize beside it.
   Each card: one solid 1.5px border in the tier colour over its dark tint. No gradient strokes. */
.chests { display: grid; gap: 14px; max-width: 720px; margin-inline: auto; }
.chest-card {
  --tint: var(--tier-bronze); --tint-bg: var(--tier-bronze-bg);
  position: relative;
  display: grid; grid-template-columns: 96px 1fr; column-gap: 16px; align-items: center;
  padding: 14px 18px; border-radius: 22px;
  background: var(--tint-bg);
  border: 1.5px solid var(--tint);
  transition: transform .35s var(--ease-out), opacity .8s var(--ease-out);
}
.chest-card--silver { --tint: var(--tier-silver); --tint-bg: var(--tier-silver-bg); }
.chest-card--gold   { --tint: var(--tier-gold);   --tint-bg: var(--tier-gold-bg); }
.chest-card__art { position: relative; width: 96px; }
.chest-card__art picture { position: relative; display: block; animation: float 5.5s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)); }
.chest-card--silver .chest-card__art picture { animation-delay: -1.8s; }
.chest-card--gold .chest-card__art picture { animation-delay: -3.6s; }
.chest-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.chest-card__name { font-size: 20px; font-weight: 800; line-height: 1.6; color: var(--tint); }
.chest-card__prize { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; font-size: 15px; font-weight: 700; line-height: 1.7; color: var(--text); }
.chest-card__label { flex-basis: 100%; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.6; }
.chest-card--gold .chest-card__label { color: var(--gold-light); }
.chest-card__amount { font-size: 18px; font-weight: 800; color: var(--text); white-space: nowrap; }
.chest-card__unit { color: var(--text); white-space: nowrap; }

.chests__note {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; max-width: 100%;
  margin: clamp(22px, 3vw, 34px) auto 0; padding: 12px 20px; border-radius: var(--radius);
  background: rgba(77, 56, 0, .28); border: 1px solid rgba(255, 184, 0, .3);
  color: var(--text); font-size: clamp(15px, 3.8vw, 17px); font-weight: 700; line-height: 1.8; text-align: center; text-wrap: balance;
}
.chests__key { flex: none; width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(255, 184, 0, .45)); }
.chests__note b { color: var(--gold); font-weight: 900; }

@media (hover: hover) and (pointer: fine) {
  .chest-card:hover { transform: translateY(-2px); }
  .chest-card:hover .chest-card__art picture { animation-duration: 2.4s; }
}
@media (min-width: 768px) {
  .chest-card { grid-template-columns: 120px 1fr; column-gap: 22px; padding: 16px 26px; }
  .chest-card__art { width: 120px; }
  .chest-card__name { font-size: 23px; }
  .chest-card__prize { font-size: 17px; }
  .chest-card__label { font-size: 15px; }
  .chest-card__amount { font-size: 21px; }
}

/* ----------------------------------------------------------- 5. elite (highest records) */
.elite { padding-top: clamp(28px, 5vw, 56px); }
.prizes { padding-top: 0; }
.elite__frame {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 44px 18px 26px; border-radius: 28px; text-align: center;
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(255, 184, 0, .28), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(255, 110, 0, .14), transparent 70%),
    linear-gradient(180deg, #17120a, #0c0a07 55%, #090807);
  box-shadow: 0 0 0 1px rgba(255, 184, 0, .14), 0 40px 120px -40px rgba(255, 170, 0, .55);
}
.elite__frame::before { /* rotating golden rim */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; z-index: 3; pointer-events: none;
  background: conic-gradient(from var(--ang), #ffb800, rgba(255, 184, 0, .1) 20%, #fff3b0 35%, rgba(255, 184, 0, .1) 55%, #ff9000 75%, rgba(255, 184, 0, .1) 90%, #ffb800);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-ang 8s linear infinite;
}
.elite__rays {
  position: absolute; left: 50%; top: 96px; width: 900px; height: 900px; margin: -450px 0 0 -450px; z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 200, 60, .12) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 10%, transparent 70%); mask-image: radial-gradient(closest-side, #000 10%, transparent 70%);
  animation: spin 60s linear infinite;
}
.elite__sparkles i {
  position: absolute; width: 14px; height: 14px; z-index: -1;
  background: #ffe08a; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 6px #ffb800); animation: twinkle 3.2s ease-in-out infinite;
}
.elite__sparkles i:nth-child(1) { top: 9%; left: 12%; }
.elite__sparkles i:nth-child(2) { top: 18%; right: 14%; width: 10px; height: 10px; animation-delay: -1s; }
.elite__sparkles i:nth-child(3) { top: 40%; left: 6%; width: 8px; height: 8px; animation-delay: -2s; }
.elite__sparkles i:nth-child(4) { top: 6%; right: 32%; width: 9px; height: 9px; animation-delay: -.5s; }
.elite__sparkles i:nth-child(5) { bottom: 14%; right: 6%; animation-delay: -1.6s; }
.elite__sparkles i:nth-child(6) { bottom: 8%; left: 30%; width: 9px; height: 9px; animation-delay: -2.6s; }

.elite__head { display: flex; flex-direction: column; align-items: center; }
.elite__podium { position: relative; width: min(100%, 340px); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .6)); }
.elite__podium img { display: block; width: 100%; height: auto; aspect-ratio: 1086 / 679; }
.elite__title { margin-top: 10px; font-size: clamp(28px, 7vw, 50px); font-weight: 900; line-height: 1.4; text-wrap: balance; }
.elite__title .gold-text { display: inline-block; }
.elite__lead { margin-top: 12px; max-width: 34em; color: #d9d2c0; font-size: clamp(16px, 4vw, 19px); font-weight: 600; line-height: 1.9; text-wrap: pretty; }

.elite__list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.elite-prize {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; text-align: start;
  padding: 20px 18px; border-radius: 20px;
  background: radial-gradient(100% 120% at 0% 0%, rgba(255, 184, 0, .16), transparent 60%), rgba(12, 10, 6, .85);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.elite-prize::before { /* gold gradient border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: linear-gradient(160deg, #fff0b3, #ffb800 30%, rgba(255, 184, 0, .15) 60%, #ff9000);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.elite-prize--chatgpt  { --brand: 190, 190, 200; --delay: 0s; }    /* glow tinted to each supplied tile */
.elite-prize--google   { --brand: 150, 160, 230; --delay: -1.8s; }
.elite-prize--telegram { --brand: 170, 120, 235; --delay: -3.6s; }

.prize-art { --art: 92px; position: relative; grid-row: span 2; width: var(--art); margin-bottom: 10px; }
.prize-art__glow { position: absolute; inset: -6%; border-radius: 30%; background: radial-gradient(circle, rgba(var(--brand), .6), transparent 70%); filter: blur(18px); animation: glow 4s ease-in-out var(--delay) infinite; }
.prize-art__img { /* the supplied ChatGPT / Gemini / Telegram Premium tiles: own colours, square, own rounded corners */
  position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .55));
  animation: float 5.5s ease-in-out var(--delay) infinite;
}
.elite-prize__name { align-self: end; font-size: clamp(21px, 5.6vw, 26px); font-weight: 900; line-height: 1.5; color: #fff; }
.elite-prize__en { align-self: start; justify-self: start; font-family: "Vazirmatn", var(--font); font-size: 14px; font-weight: 800; letter-spacing: .06em; color: var(--gold); text-transform: uppercase; }
.elite-prize__tag {
  position: absolute; top: -11px; inset-inline-end: 16px;
  padding: 1px 12px; border-radius: 999px; background: #1a1408; border: 1px solid var(--gold);
  color: var(--gold); font-size: 12px; font-weight: 800;
}

@media (hover: hover) and (pointer: fine) {
  .elite-prize:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(255, 184, 0, .7); }
  .elite-prize:hover .prize-art__img { animation-duration: 2.2s; }
}

@media (min-width: 768px) {
  .elite__frame { padding: 56px 40px 34px; }
  .elite__podium { width: min(100%, 440px); }
  .elite__list { max-width: 620px; margin-inline: auto; margin-top: 36px; gap: 18px; }
  .elite-prize { padding: 24px 24px; }
  .prize-art { --art: 104px; }
}
@media (min-width: 1024px) {
  .elite__list { max-width: none; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
  .elite-prize { grid-template-columns: 1fr; grid-template-rows: auto; justify-items: center; text-align: center; padding: 34px 18px 26px; row-gap: 4px; }
  .prize-art { --art: 148px; grid-row: auto; margin-bottom: 24px; }
  .elite-prize__en { justify-self: center; }
  .elite-prize__tag { inset-inline-end: auto; left: 50%; transform: translateX(-50%); }
  .elite-prize:nth-child(2) { transition-delay: .08s; }
  .elite-prize:nth-child(3) { transition-delay: .16s; }
}


/* compact phone layouts */
@media (max-width: 639px) {
  .elite-prize { column-gap: 14px; padding: 20px 14px 18px; }
  .prize-art { --art: 84px; }
  .elite-prize__name { font-size: clamp(18px, 5.1vw, 22px); }
  .elite-prize__en { font-size: 13px; }
}

/* ----------------------------------------------------------- 6. closing CTA */
.final-cta { padding-top: 0; }
.final-cta__card {
  position: relative; overflow: hidden;
  display: grid; justify-items: center; text-align: center; gap: 12px;
  padding: 26px 20px 28px; border-radius: var(--radius-lg);
  background: radial-gradient(80% 120% at 50% 120%, rgba(255, 110, 0, .28), transparent 60%), var(--surface);
  border: 1px solid var(--stroke);
}
.final-cta__art { position: relative; width: 120px; }
.final-cta__art picture { position: relative; animation: float 5s ease-in-out infinite; }
.final-cta__title { font-size: clamp(24px, 6.2vw, 34px); font-weight: 900; line-height: 1.55; text-wrap: balance; }
.final-cta__title .text-glow { white-space: nowrap; }
.final-cta__btn { width: 100%; max-width: 340px; }
@media (min-width: 1024px) {
  .final-cta__card { grid-template-columns: auto 1fr auto; justify-items: start; text-align: start; gap: 32px; padding: 24px 40px; align-items: center; }
  .final-cta__btn { width: auto; min-width: 220px; }
}

/* ----------------------------------------------------------- footer */
.footer { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--stroke); background: rgba(4, 4, 4, .8); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--subtle); font-size: 13px; }
.footer img { width: 112px; opacity: .8; }

/* ----------------------------------------------------------- keyframes */
/* Generated from the GIF's frame sequence (35 frames, 5.5 s, 32 unique cells in a 4×8 grid). */
@keyframes bf-neon {
  0.000% { background-position: 0% 0%; }
  1.818% { background-position: 33.33% 0%; }
  3.636% { background-position: 66.67% 0%; }
  5.455% { background-position: 100% 0%; }
  7.273% { background-position: 0% 14.29%; }
  9.091% { background-position: 33.33% 14.29%; }
  10.909% { background-position: 66.67% 14.29%; }
  12.727% { background-position: 100% 14.29%; }
  14.545% { background-position: 0% 28.57%; }
  16.364% { background-position: 33.33% 28.57%; }
  18.182% { background-position: 66.67% 28.57%; }
  20.000% { background-position: 100% 28.57%; }
  21.818% { background-position: 0% 42.86%; }
  23.636% { background-position: 33.33% 42.86%; }
  25.455% { background-position: 66.67% 42.86%; }
  27.273% { background-position: 100% 42.86%; }
  29.091% { background-position: 0% 57.14%; }
  30.909% { background-position: 33.33% 57.14%; }
  32.727% { background-position: 66.67% 57.14%; }
  34.545% { background-position: 100% 57.14%; }
  36.364% { background-position: 0% 71.43%; }
  38.182% { background-position: 33.33% 71.43%; }
  40.000% { background-position: 66.67% 71.43%; }
  41.818% { background-position: 100% 71.43%; }
  43.636% { background-position: 0% 85.71%; }
  45.455% { background-position: 33.33% 85.71%; }
  47.273% { background-position: 66.67% 85.71%; }
  49.091% { background-position: 100% 85.71%; }
  50.909% { background-position: 0% 100%; }
  54.545% { background-position: 33.33% 100%; }
  56.364% { background-position: 66.67% 100%; }
  58.182% { background-position: 100% 100%; }
  61.818% { background-position: 33.33% 100%; }
  63.636% { background-position: 0% 100%; }
  65.455% { background-position: 66.67% 100%; }
  100% { background-position: 66.67% 100%; }
}
/* sheen sweeps over "BLACK" while the logo holds fully lit (65–100% of the loop) */
@keyframes sheen { 0%, 66% { background-position: 140% 0; } 92%, 100% { background-position: -40% 0; } }
@keyframes halo { 0%, 50% { opacity: .45; transform: scale(.94); } 66% { opacity: 1; transform: scale(1.06); } 90% { opacity: .85; transform: scale(1); } 100% { opacity: .45; transform: scale(.94); } }
@keyframes bloom { 0%, 55% { opacity: .65; } 70% { opacity: 1; } 100% { opacity: .65; } }
@keyframes logo-in { from { opacity: 0; transform: translateY(-14px) scale(.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes beam { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes glow { 0%, 100% { opacity: .55; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 144, 0, .65); } 80%, 100% { box-shadow: 0 0 0 9px rgba(255, 144, 0, 0); } }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-ang { to { --ang: 360deg; } }
@keyframes gold-shimmer { to { background-position: -220% 0; } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(45deg); } }
@keyframes ring { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(14deg); } 92% { transform: rotate(-12deg); } 95% { transform: rotate(8deg); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes pop { 0% { transform: scale(.4) rotate(-8deg); opacity: 0; } 60% { transform: scale(1.08) rotate(2deg); opacity: 1; } 100% { transform: none; } }

/* ----------------------------------------------------------- motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------- icons from edit/ (mobile.png, Lock.png)
   Used as masks so the supplied glyphs stay crisp at any density and take the surrounding colour. */
.icon-mask { display: inline-block; background-color: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.icon-mask--mobile { --icon: url("assets/img/icon-mobile.png"); }
.icon-mask--lock { --icon: url("assets/img/icon-lock.png"); }
.reg__field-icon.icon-mask { width: 18px; height: 22px; } /* mobile.png is 70 × 86 */

/* ----------------------------------------------------------- shared gray outline (2026-11-14)
   One flat 2px #A8A8B3 stroke on every card and outlined form element; corner radii unchanged.
   No gradient rims, metallic strokes or glow. The phone field's focus and error colours
   (.reg__field:focus-within / .is-invalid, more specific) still override it. */
:root { --outline: #a8a8b3; --outline-w: 2px; }
.reg, .reg__field, .elite__frame, .elite-prize, .chest-card, .chests__note, .final-cta__card { border: var(--outline-w) solid var(--outline); }
.reg::before, .elite__frame::before, .elite-prize::before { content: none; }
.reg { box-shadow: var(--shadow-card); }
.elite__frame { box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .elite-prize:hover { box-shadow: none; } }

/* ----------------------------------------------------------- corrections (2026-11-14)
   1. Both «ثبت شماره» buttons: Yekan Bakh Black (900, YekanBakhFaNum-Black.woff2), white on solid #FF9000.
   2. Chest cards are the exception to the shared gray outline: one 2px solid stroke in the tier colour
      (bronze #B87346 · silver #BFC3C9 · gold #E9A920 — the values used before the gray update). */
.reg__submit, .reg__submit .btn__label, .final-cta__btn { font-weight: 900; color: var(--btn-text); }
.chest-card { border: 2px solid var(--tint); }
