/* Self-hosted fonts (OFL): Inter, Montserrat, Vazirmatn — latin + arabic subsets only, variable weights. Replaces the render-blocking fonts.googleapis.com stylesheet. */
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(../assets/fonts/inter-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:700 800;font-display:swap;src:url(../assets/fonts/montserrat-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Vazirmatn';font-style:normal;font-weight:400 900;font-display:swap;src:url(../assets/fonts/vazirmatn-arabic.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:'Vazirmatn';font-style:normal;font-weight:400 900;font-display:swap;src:url(../assets/fonts/vazirmatn-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* ==================================================================
   Numberland — Black Friday skin
   Figma file «game numberland» → Page 1 → section «Black Friday» (1241:102),
   asset sheets on the page «Black Friday — Orange». Every frame is 402 × 874.

     .frame--landing  Page 1 — Start Game (signed in)          1412:4166
                      Home 01 — Editable (signed out)          1241:4
     .dialog--tier    Pop-up — Bronze/Silver/Gold Chest Rewards 1327:724 · 1337:1042 · 1337:1178
     .dialog--chance  Pop up — Increasing the Odds             1349:1608
     .dialog--guide   Pop up — Game Guide                      1370:1186
     .frame--login    Page 1 — Login                           1370:442
     .frame--otp      Home 01 — Editable (code sheet)          1370:644 · 1323:376 · 1323:397
     .frame--play     Page 1 — Night mode gameplay (HUD)       1382:3795
                      Pop UP — You set a record / Try again    1409:3867 · 1409:3992 · 1412:4317
     .frame--vault    Page 1 — Box                             1412:4016 · 1412:4369
     .reward-modal    Pop UP — Opening the safe / Opened box   1412:4761 … 1412:4900
     .frame--codes    Page 1 — List of Prizes                  1412:4924 · 1428:5008 · 1429:5221
     .frame--top      Page 1 — Top Picks                       1429:5317
     .frame--faq      Page 1 — FAQ                             1429:5369

   This file is presentation only. The game world, the character rig, the obstacles and every
   gameplay animation (section 11 and the gameplay sections after the screens) are carried over
   from the previous stylesheet unchanged; only the HUD and the end-of-round cards are restyled.

   Every measured value is the literal Figma number multiplied by --u: one Figma pixel, rebased
   on the device by app.js (Scale) so the 804 px above the navigation always fit on one screen.
   Positions are physical (left/top) because they are Figma x/y coordinates; RTL only affects
   how text runs.
   ================================================================== */

/* ---------------- 1. Tokens & reset ---------------- */

/* Yekan Bakh Pro (FaNum cut: Persian digits) is the Figma font for every Persian text node. The supplied
   licensed webfonts are self-hosted from assets/fonts (commercial, fontiran.com — do not redistribute).
   There is no Medium cut: weight 500 resolves to Regular. Vazirmatn stays as the fallback. */
@font-face{font-family:'Yekan Bakh FaNum';font-style:normal;font-weight:300;font-display:swap;src:url(../assets/fonts/yekanbakhfanum-light.woff2) format('woff2');}
@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{
  --u:calc(100vw / 402);
  --yekan:'Yekan Bakh FaNum','Vazirmatn',Tahoma,sans-serif;
  --inter:'Inter','Vazirmatn',Tahoma,sans-serif;
  --mont:'Montserrat','Inter',system-ui,sans-serif;

  /* Black Friday palette (Figma fills) */
  --bg:#040404;          /* frame */
  --surface:#151519;     /* cards, buttons, header */
  --surface-2:#24242c;   /* inner cards, pop-up cards */
  --chip:#202025;        /* header chips */
  --nav:#121215;         /* bottom navigation */
  --line:#34343b;        /* 1–1.5 strokes */
  --line-2:#43434d;      /* inner card strokes */
  --line-3:#a9a7b3;      /* pop-up card strokes */
  --text:#f7f5f6;
  --muted:#a9a7b3;
  --slate:#94a3b8;
  --orange:#ff9000;      /* primary */
  --orange-deep:#fc4900; /* gradient end, timer label */
  --orange-down:#985600; /* primary, pressed / unavailable */
  /* Shared action button (2026-11-14): one solid fill sampled from the button reference
     (edit/f20ef9f9…png, #FF9000), white Yekan Bakh Bold label, rounded corners, no gradient. */
  --btn-fill:#ff9000;
  --btn-fill-down:var(--orange-down);
  --btn-text:#fff;
  --btn-weight:700;
  --amber:#ffb800;       /* active navigation, highlights */
  --amber-bg:#4d3800;
  --red:#ef2f45;
  --red-bg:#2c191d;
  --red-line:#6b2833;
  /* tiers, in Figma's rank order (user decision 2026-11-03): the campaign's bronze · gold · diamond
     wear Figma's bronze · silver · gold chest colours. The token names stay the tier ids. */
  --bronze:#b87346; --bronze-bg:#22150d;
  --gold:#bfc3c9;   --gold-bg:#1a1c1f;      /* Figma silver */
  --diamond:#e8aa20; --diamond-bg:#221a07;  /* Figma gold */

  /* kept for the gameplay sections carried over from the previous stylesheet */
  --blue:#1b94c3;
  --cyan:#00b8ff;
  --green:#2dcd00;
  --ui-scale:1;
}
/* Wide screens keep the phone composition at 1:1, centred. */
@media (min-width:500px){ :root{--u:1px;} }

*,*::before,*::after{box-sizing:border-box;}
[hidden]{display:none!important;}
html,body{margin:0;padding:0;background:var(--bg);}
body{font-family:var(--yekan);color:var(--text);overflow-x:hidden;-webkit-font-smoothing:antialiased;}
/* Game shell: the body centres the one visible 402-wide frame horizontally at any viewport width. */
body{display:flex;flex-direction:column;align-items:center;min-height:100vh;min-height:100dvh;}
h1,h2,p,ul,ol{margin:0;font-size:inherit;font-weight:inherit;}
img{display:block;max-width:none;}
button,input{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;border-radius:0;-webkit-tap-highlight-color:transparent;}
button{cursor:pointer;}
input{outline:none;}
a{color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent;}
:focus-visible{outline:2px solid var(--amber);outline-offset:2px;}

/* Strokes are drawn as inset box-shadows rather than CSS borders: Chrome snaps fractional border
   widths to whole pixels, while a shadow spread keeps the exact Figma width at every scale. */

/* Shared: every Figma node is absolutely placed inside the frame. :where() keeps these defaults
   at zero specificity so component rules win. */
:where(.frame *){position:absolute;}
:where(.frame p,.frame h1,.frame h2,.frame span,.frame b){white-space:nowrap;}

/* ---------------- 2. Frame ---------------- */

/* Every frame: bg #040404, clips content. Height is the device's (--app-h, which ignores the soft
   keyboard) and never shorter than the 804 above the pinned bottom navigation. */
.frame{position:relative;flex:none;width:calc(402 * var(--u));height:max(calc(804 * var(--u)),var(--app-h,100dvh));margin-inline:auto;background:var(--bg);overflow:hidden;}
/* Grouping wrappers are not boxes in Figma: their children are placed against the frame. */
.frame main,.frame header,.frame form,.frame .user,.frame .screen-content,
.frame .vault-content,.frame .faq-content,.frame .codes-content,.frame .top-content{position:static;}

/* ---------------- 3. Header (Rectangle 25 · 20,70 · 362 × 48) ---------------- */

.topbar__bg{left:calc(20 * var(--u));top:calc(70 * var(--u));width:calc(362 * var(--u));height:calc(48 * var(--u));border-radius:calc(12 * var(--u));background:var(--surface);box-shadow:inset 0 0 0 calc(1 * var(--u)) var(--line);}

/* Signed out (1241:4): «ورود | ثبت نام» 101 × 29 at 30,80 and the wordmark 137 × 29 at 235,80. */
.topbar-login{left:calc(30 * var(--u));top:calc(80 * var(--u));height:calc(29 * var(--u));display:flex;flex-direction:row-reverse;align-items:center;gap:calc(8 * var(--u));padding:0 calc(6 * var(--u)) 0 calc(6 * var(--u));border-radius:calc(8 * var(--u));background:var(--chip);box-shadow:inset 0 0 0 calc(1 * var(--u)) var(--line);transition:background-color .15s ease,box-shadow .15s ease;}
.topbar-login > *{position:static;}
.topbar-login__icon{width:calc(21 * var(--u));height:calc(21 * var(--u));}
.topbar-login__text{font-weight:600;font-size:calc(10 * var(--u));line-height:calc(16 * var(--u));color:var(--muted);}
button.topbar-login:hover{box-shadow:inset 0 0 0 calc(1 * var(--u)) var(--orange);}
button.topbar-login:active{scale:.97;}
.topbar-logo{left:calc(235 * var(--u));top:calc(80 * var(--u));width:calc(137 * var(--u));height:calc(29 * var(--u));object-fit:contain;object-position:100% 50%;}
:root[data-auth="in"] :is(.topbar-login,.topbar-logo){display:none;}
:root[data-auth="out"] .topbar :is(.pill,.user,.user-logout){display:none;}

/* Signed in (1412:4166): account chip 92 × 29 at 30,80 · «خروج» 38 × 29 at 128,80 ·
   chances 45 × 29 at 272,80 · keys 45 × 29 at 324,80. */
.user__bg{left:calc(30 * var(--u));top:calc(80 * var(--u));width:calc(94 * var(--u));height:calc(29 * var(--u));border-radius:calc(8 * var(--u));background:var(--chip);box-shadow:inset 0 0 0 calc(1 * var(--u)) var(--line);}
.user__avatar{left:calc(36 * var(--u));top:calc(84 * var(--u));width:calc(21 * var(--u));height:calc(21 * var(--u));}
.user__avatar img{inset:0;width:100%;height:100%;}
.user__phone{left:calc(63 * var(--u));top:calc(86.5 * var(--u));font:600 calc(9.5 * var(--u))/calc(16 * var(--u)) var(--yekan);color:var(--muted);}
.user__status{display:none;}
.user-logout{left:calc(128 * var(--u));top:calc(80 * var(--u));width:calc(38 * var(--u));height:calc(29 * var(--u));border-radius:calc(8 * var(--u));background:var(--red-bg);box-shadow:inset 0 0 0 calc(1 * var(--u)) var(--red-line);z-index:2;transition:background-color .15s ease;}
.user-logout__text{left:0;right:0;top:calc(5 * var(--u));text-align:center;font-weight:700;font-size:calc(12 * var(--u));line-height:calc(19 * var(--u));color:var(--red);}
.user-logout:hover{background:#3a1d23;}
.user-logout:active{scale:.95;}

.pill{top:calc(80 * var(--u));width:calc(45 * var(--u));height:calc(29 * var(--u));border-radius:calc(8 * var(--u));background:var(--chip);box-shadow:inset 0 0 0 calc(1 * var(--u)) var(--line);}
.pill--red{left:calc(272 * var(--u));}
.pill--gold{left:calc(324 * var(--u));}
.pill__num{left:calc(25 * var(--u));width:calc(15 * var(--u));top:calc(6 * var(--u));text-align:center;font-weight:800;font-size:calc(11 * var(--u));line-height:calc(17 * var(--u));color:var(--muted);}
.pill__heart,.pill__key{left:calc(6 * var(--u));top:calc(5.5 * var(--u));width:calc(18 * var(--u));height:calc(18 * var(--u));}
.pill__heart img{inset:0;width:100%;height:100%;}

/* ---------------- 4. Hero ---------------- */

/* Black Friday 3D Neon Logo — 292 × 119 at 57,146 (the provided animation, aspect kept). */
.hero__logo{left:calc(57 * var(--u));top:calc(146 * var(--u));width:calc(292 * var(--u));height:calc(119 * var(--u));pointer-events:none;}
.hero__logo img{inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 calc(6 * var(--u)) calc(18 * var(--u)) rgba(255,110,0,.22));}
/* «بپر و از نامبرلند جایزه ببر!» ExtraBold 22 at y 283 · description SemiBold 10 #94a3b8 at y 317 */
.hero__title{left:0;width:calc(402 * var(--u));top:calc(283 * var(--u));text-align:center;font-weight:800;font-size:calc(22 * var(--u));line-height:calc(34 * var(--u));color:var(--text);}
.hero__desc{left:0;width:calc(402 * var(--u));top:calc(317 * var(--u));text-align:center;font-weight:600;font-size:calc(10 * var(--u));line-height:calc(16 * var(--u));color:var(--slate);}

/* ---------------- 5. Primary button (شروع بازی · 361 × 55 at 21,356, #ff9000, radius 16) ---------------- */

.cta{left:calc(21 * var(--u));top:calc(356 * var(--u));width:calc(361 * var(--u));height:calc(55 * var(--u));display:flex;flex-direction:row-reverse;align-items:center;justify-content:center;border-radius:calc(16 * var(--u));background:var(--orange);box-shadow:0 calc(8 * var(--u)) calc(24 * var(--u)) rgba(255,120,0,.22),inset 0 calc(1 * var(--u)) 0 rgba(255,255,255,.18);transition:background-color .15s ease,box-shadow .2s ease,filter .15s ease;}
.cta > *{position:static;}
.cta__text{font-weight:900;font-size:calc(28 * var(--u));line-height:calc(43 * var(--u));color:var(--text);}
.cta__icon{width:calc(43 * var(--u));height:calc(43 * var(--u));object-fit:contain;}
@media (hover:hover){ .cta:not(.is-disabled):hover{filter:brightness(1.07);box-shadow:0 calc(10 * var(--u)) calc(30 * var(--u)) rgba(255,120,0,.34),inset 0 calc(1 * var(--u)) 0 rgba(255,255,255,.22);} }
.cta:not(.is-disabled):active{scale:.985;background:var(--orange-down);}
/* No chance left (1370:1541): the same button in its pressed colour; it does nothing (app.js). */
.cta.is-disabled{background:var(--orange-down);box-shadow:none;cursor:default;}

/* ---------------- 6. Record box & chests (صدوق‌ها · 362 × 180 at 20,434) ---------------- */

.record{left:calc(20 * var(--u));top:calc(430 * var(--u));width:calc(362 * var(--u));height:calc(180 * var(--u));}
.record__bg{inset:0;border-radius:calc(16 * var(--u));background:var(--surface);box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--line);}
.record__label{right:calc(31 * var(--u));top:calc(12 * var(--u));font-weight:600;font-size:calc(12 * var(--u));line-height:calc(19 * var(--u));color:var(--muted);}
.record__timer{right:calc(7 * var(--u));top:calc(9 * var(--u));width:calc(24 * var(--u));height:calc(24 * var(--u));}
.record__timer img{inset:0;width:100%;height:100%;}
.record__score{left:calc(13 * var(--u));top:calc(8 * var(--u));font-weight:700;font-size:calc(16 * var(--u));line-height:calc(25 * var(--u));color:var(--text);}
.record__divider{left:calc(13 * var(--u));top:calc(40.25 * var(--u));width:calc(337 * var(--u));height:calc(1.5 * var(--u));background:var(--line);}
/* Chest cards 99 × 109 at 33 / 153 / 273, y 489 — bronze · gold · diamond (Figma's bronze · silver · gold art). Each opens its pop-up. */
.reward{top:calc(55 * var(--u));width:calc(99 * var(--u));height:calc(109 * var(--u));border-radius:calc(16 * var(--u));transition:scale .15s ease;}
.reward--slot-1{left:calc(13 * var(--u));}
.reward--slot-2{left:calc(133 * var(--u));}
.reward--slot-3{left:calc(253 * var(--u));}
.reward__card{inset:0;border-radius:inherit;background:var(--surface-2);box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--line-2);transition:background-color .2s ease,box-shadow .2s ease;}
.reward__art{left:calc(14.5 * var(--u));top:calc(12 * var(--u));width:calc(70 * var(--u));height:calc(70 * var(--u));}
.reward__clip,.reward__clip img{inset:0;width:100%;height:100%;object-fit:contain;}
.reward__text{left:0;right:0;top:calc(80 * var(--u));text-align:center;font-weight:700;font-size:calc(11 * var(--u));line-height:calc(17 * var(--u));color:var(--text);}
/* Selected (1286:94): warm fill and an amber stroke — on hover/press and while its pop-up is open. */
button.reward:active{scale:.97;}
@media (hover:hover){ button.reward:hover .reward__card{background:#21160f;box-shadow:inset 0 0 0 calc(1.5 * var(--u)) #875016;} }
.frame--landing:has(.dialog--tier-bronze.is-open) .reward--bronze .reward__card,
.frame--landing:has(.dialog--tier-gold.is-open) .reward--gold .reward__card,
.frame--landing:has(.dialog--tier-diamond.is-open) .reward--diamond .reward__card{background:#21160f;box-shadow:inset 0 0 0 calc(1.5 * var(--u)) #875016;}

/* ---------------- 7. Secondary buttons ---------------- */

/* مشاهده جایزه‌ها 175.2 × 44 · افزایش شانس 176 × 44 · راهنمای بازی 362 × 45 (Figma y 632 / 694). The lower
   block sits 4–6 px higher than Figma so it ends at 733: on a height-bound screen (app.js fits 804 px
   including the 70 px navigation) only 734 px show above the navigation. */
.sbtn{height:calc(44 * var(--u));display:flex;flex-direction:row-reverse;align-items:center;justify-content:center;gap:calc(6 * var(--u));border-radius:calc(14 * var(--u));background:var(--surface);box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--line);color:var(--text);transition:background-color .15s ease,box-shadow .15s ease,color .15s ease;}
.sbtn > *,.sbtn__text > *{position:static;}
.sbtn--prizes{left:calc(20 * var(--u));top:calc(627 * var(--u));width:calc(175.2 * var(--u));}
.sbtn--chance{left:calc(206 * var(--u));top:calc(627 * var(--u));width:calc(176 * var(--u));}
.sbtn--guide{left:calc(20 * var(--u));top:calc(688 * var(--u));width:calc(362 * var(--u));height:calc(45 * var(--u));}
.sbtn__text{font-weight:800;font-size:calc(16 * var(--u));line-height:calc(25 * var(--u));}
.sbtn--guide .sbtn__text{font-weight:900;font-size:calc(22 * var(--u));line-height:calc(34 * var(--u));}
.sbtn__bolt,.sbtn__gift{position:relative;flex:none;width:calc(24 * var(--u));height:calc(24 * var(--u));}
.sbtn__map{position:relative;flex:none;width:calc(28 * var(--u));height:calc(28 * var(--u));}
.sbtn__bolt img,.sbtn__gift img,.sbtn__map img{inset:0;width:100%;height:100%;object-fit:contain;}
/* Active (1337:1351 / 1370:968): amber outline on a warm fill — pressed, and while its pop-up is open. */
.sbtn:active,
.frame--landing:has(.dialog--chance.is-open) .sbtn--chance,
.frame--landing:has(.dialog--guide.is-open) .sbtn--guide{background:#311c00;box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--orange);color:var(--orange);}
@media (hover:hover){ .sbtn:hover{box-shadow:inset 0 0 0 calc(1.5 * var(--u)) #6b4a1c;} }
.quicktest{display:none;}

/* ---------------- 8. Bottom navigation (فوتر · 402 × 70 at 0,804, #121215, #414149 top stroke) ---------------- */

/* Pinned to the viewport bottom (--app-h, so the soft keyboard does not lift it). */
.frame .tabbar{position:fixed;left:50%;top:calc(var(--app-h,100dvh) - 70 * var(--u));transform:translateX(-50%);width:calc(402 * var(--u));height:calc(70 * var(--u));background:var(--nav);box-shadow:inset 0 calc(1 * var(--u)) 0 #414149;z-index:5;}
/* Five 75-wide tap columns centred on the Figma icons (centres 58 · 139.5 · 212.5 · 288 · 358). */
.tab{top:0;width:calc(75 * var(--u));height:calc(70 * var(--u));color:var(--muted);}
.tab--faq{left:calc(20.5 * var(--u));}
.tab--top{left:calc(102 * var(--u));}
.tab--codes{left:calc(175 * var(--u));}
.tab--chests{left:calc(250.5 * var(--u));}
.tab--game{left:calc(320.5 * var(--u));}
.tab__icon{left:calc(22.5 * var(--u));top:calc(12 * var(--u));width:calc(30 * var(--u));height:calc(30 * var(--u));border-radius:50%;transition:background-color .2s ease;}
.tab__icon::before{content:'';position:absolute;inset:calc(6.5 * var(--u));background:currentColor;-webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat;}
.tab--faq{--icon:url('../assets/blackfriday/nav-help.svg');}
.tab--top{--icon:url('../assets/blackfriday/nav-trophy.svg');}
.tab--codes{--icon:url('../assets/blackfriday/nav-coupon.svg');}
.tab--chests{--icon:url('../assets/blackfriday/nav-chest.svg');}
.tab--game{--icon:url('../assets/blackfriday/nav-game.svg');}
.tab__label{left:0;right:0;top:calc(45 * var(--u));text-align:center;font-weight:600;font-size:calc(9 * var(--u));line-height:calc(14 * var(--u));color:inherit;}
.tab.is-active{color:var(--amber);}
.tab.is-active .tab__icon{background:var(--amber-bg);}
.tab.is-active .tab__label{font-weight:900;}
@media (hover:hover){ .tab:not(.is-active):hover{color:#d8d6df;} }
.tab:active .tab__icon{scale:.92;}

/* ---------------- 9. Sign-in sheet (Page 1 — Login) ---------------- */

/* The frosted sheet — Home01_Login(OTP): 402 × 531 at 0,343, #272727 50 %, 25 background blur,
   radius 80 on top, a white 30 % inner highlight 8 down. Above the navigation. */
.frame--login .overlay,.otp-card,.dialog-overlay{left:0;top:calc(343 * var(--u));bottom:0;width:calc(402 * var(--u));z-index:10;border-radius:calc(80 * var(--u)) calc(80 * var(--u)) 0 0;background:rgba(39,39,39,.5);-webkit-backdrop-filter:blur(calc(25 * var(--u)));backdrop-filter:blur(calc(25 * var(--u)));box-shadow:inset 0 calc(8 * var(--u)) calc(13.9 * var(--u)) rgba(255,255,255,.3);}
.frame--login .overlay{animation:sheet-up .38s cubic-bezier(.2,.9,.25,1) both;}
@keyframes sheet-up{from{translate:0 18%;opacity:.4;}to{translate:0 0;opacity:1;}}

.frame--login .modal{inset:0;z-index:11;pointer-events:none;animation:sheet-up .38s cubic-bezier(.2,.9,.25,1) both;}
.frame--login .modal > *,.frame--login .modal form > *{pointer-events:auto;}
.login-card{display:none;}
.login-card__art{left:calc(169 * var(--u));top:calc(418 * var(--u));width:calc(64.5 * var(--u));height:calc(43 * var(--u));object-fit:contain;}
.login-card__title{left:0;width:calc(402 * var(--u));top:calc(463 * var(--u));text-align:center;font-weight:800;font-size:calc(20 * var(--u));line-height:calc(31 * var(--u));color:#fff;}
.login-card__hint{left:0;width:calc(402 * var(--u));top:calc(499 * var(--u));text-align:center;font-weight:800;font-size:calc(14 * var(--u));line-height:calc(22 * var(--u));color:var(--amber);}
.login-card__label{right:calc(51 * var(--u));top:calc(527 * var(--u));font-weight:600;font-size:calc(14 * var(--u));line-height:calc(22 * var(--u));color:#fff;}
/* Rectangle 13 — 326 × 50 at 38,557, #151519, 1.5 #a9a7b3, radius 15 */
.login-field{left:calc(38 * var(--u));top:calc(557 * var(--u));width:calc(326 * var(--u));height:calc(50 * var(--u));border-radius:calc(15 * var(--u));background:var(--surface);box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--line-3);transition:box-shadow .15s ease;}
.login-field:focus-within{box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--orange),0 0 0 calc(4 * var(--u)) rgba(255,144,0,.14);}
/* 16 px minimum so iOS does not zoom into the field */
.login-field__input{inset:0;width:100%;height:100%;padding:0 calc(20 * var(--u));text-align:left;font:600 max(16px,calc(14 * var(--u)))/1 var(--yekan);color:#fff;caret-color:var(--orange);letter-spacing:.04em;}
.login-field__input::placeholder{color:var(--slate);opacity:1;}
.login-submit{left:calc(38 * var(--u));top:calc(615 * var(--u));width:calc(326 * var(--u));height:calc(51 * var(--u));border-radius:calc(16 * var(--u));background:var(--orange);transition:filter .15s ease,background-color .15s ease;}
.login-submit__text{left:0;right:0;top:calc(10 * var(--u));text-align:center;font-weight:800;font-size:calc(20 * var(--u));line-height:calc(31 * var(--u));color:var(--text);}
.login-submit:active{scale:.985;background:var(--orange-down);}
.login-submit:disabled{background:var(--orange-down);cursor:default;}
@media (hover:hover){ .login-submit:not(:disabled):hover{filter:brightness(1.07);} }
.login-card__error{left:calc(38 * var(--u));width:calc(326 * var(--u));top:calc(674 * var(--u));text-align:center;white-space:normal;font-weight:700;font-size:calc(11 * var(--u));line-height:calc(16 * var(--u));color:var(--red);}
/* The home screen behind the sheet is decoration; it never takes a tap. */
.frame--login .screen-content{pointer-events:none;}

/* ---------------- 10. Code sheet (OTP) ---------------- */

.frame--otp .screen-content{pointer-events:none;}
.otp-card{display:block;animation:sheet-up .38s cubic-bezier(.2,.9,.25,1) both;}
/* Close — the Figma close-circle (26 × 26, #ef2f45) at the sheet's top corner. */
.otp-close{left:calc(40 * var(--u));top:calc(376 * var(--u));width:calc(34 * var(--u));height:calc(34 * var(--u));z-index:12;}
.otp-close__x,.dialog__close-x,.reward-modal__close-x{inset:calc(4 * var(--u));background:var(--red);-webkit-mask:url('../assets/blackfriday/close-circle.svg') center/contain no-repeat;mask:url('../assets/blackfriday/close-circle.svg') center/contain no-repeat;transition:scale .15s ease;}
:is(.otp-close,.dialog__close,.reward-modal__close):hover > span{scale:1.1;}
:is(.otp-close,.dialog__close,.reward-modal__close):active > span{scale:.92;}
/* Everything on the sheet sits above it (the form is not a box, so its children are listed). */
.frame--otp :is(.otp-close,.otp-lock,.otp-title,.otp-desc,.otp-edit,.otp-boxes,.otp-error,.otp-submit,.otp-resend){z-index:11;animation:sheet-up .38s cubic-bezier(.2,.9,.25,1) both;}
.otp-lock{left:calc(166 * var(--u));top:calc(418 * var(--u));width:calc(70 * var(--u));height:calc(74 * var(--u));object-fit:contain;}
.otp-title{left:0;width:calc(402 * var(--u));top:calc(498 * var(--u));text-align:center;font-weight:800;font-size:calc(20 * var(--u));line-height:calc(31 * var(--u));color:#fff;}
.otp-desc{left:calc(38 * var(--u));top:calc(532 * var(--u));width:calc(326 * var(--u));text-align:center;white-space:normal;font-weight:800;font-size:calc(12 * var(--u));line-height:calc(19 * var(--u));color:#fff;}
.otp-desc span{position:static;white-space:pre-line;}
.otp-desc__phone{color:var(--orange);direction:ltr;unicode-bidi:isolate;}
.otp-edit{left:calc(151 * var(--u));top:calc(571 * var(--u));width:calc(100 * var(--u));height:calc(21 * var(--u));text-align:center;font-weight:800;font-size:calc(11 * var(--u));line-height:calc(21 * var(--u));color:var(--red);}
.otp-edit:hover{text-decoration:underline;}
/* Five code boxes, 34 × 35, 11 apart, centred on the sheet (Figma draws six; the code has five). */
.otp-boxes{left:calc(94 * var(--u));top:calc(609 * var(--u));width:calc(214 * var(--u));height:calc(35 * var(--u));display:flex;gap:calc(11 * var(--u));direction:ltr;}
.otp-box{position:relative;flex:none;width:calc(34 * var(--u));height:calc(35 * var(--u));border-radius:calc(8 * var(--u));background:var(--surface);box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--line-3);transition:box-shadow .15s ease;}
.otp-box:focus-within{box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--orange),0 0 0 calc(3 * var(--u)) rgba(255,144,0,.16);}
.frame--otp[data-state="error"] .otp-box{box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--red);}
.frame--otp[data-state="error"] .otp-boxes{animation:otp-shake .38s cubic-bezier(.36,.07,.19,.97) both;}
@keyframes otp-shake{20%,80%{translate:calc(-2 * var(--u)) 0;}40%{translate:calc(4 * var(--u)) 0;}60%{translate:calc(-4 * var(--u)) 0;}}
/* One input per box, covering the box; 22 × --u stays ≥ 16 px down to a 292 px viewport (no iOS zoom). */
.otp-box__input{inset:0;width:100%;height:100%;padding:0;text-align:center;font:700 max(16px,calc(22 * var(--u)))/1 var(--yekan);color:#fff;caret-color:var(--orange);direction:ltr;}
.otp-box__input::placeholder{color:#fff;opacity:1;}
.otp-box__input:focus-visible{outline:none;}
.otp-box__input::selection{background:transparent;}
.otp-error{left:calc(38 * var(--u));top:calc(647 * var(--u));width:calc(326 * var(--u));text-align:center;white-space:normal;font-weight:700;font-size:calc(11 * var(--u));line-height:calc(15 * var(--u));color:var(--red);}
.otp-submit{left:calc(38 * var(--u));top:calc(664 * var(--u));width:calc(326 * var(--u));height:calc(51 * var(--u));border-radius:calc(16 * var(--u));background:var(--orange);transition:filter .15s ease,background-color .15s ease;}
.otp-submit__text{left:0;right:0;top:calc(10 * var(--u));text-align:center;font-weight:800;font-size:calc(20 * var(--u));line-height:calc(31 * var(--u));color:var(--text);}
.otp-submit:active{scale:.985;background:var(--orange-down);}
.otp-submit:disabled{background:var(--orange-down);cursor:default;}
@media (hover:hover){ .otp-submit:not(:disabled):hover{filter:brightness(1.07);} }
/* «ارسال مجدد کد در: 01:59» Bold 13, centred at y 735; tappable once the countdown ends. */
.otp-resend{left:0;width:calc(402 * var(--u));top:calc(735 * var(--u));text-align:center;font-weight:700;font-size:calc(13 * var(--u));line-height:calc(20 * var(--u));color:var(--muted);}
.otp-resend span{position:static;white-space:pre;}
.otp-resend__time{color:var(--orange);font-weight:800;}
.otp-resend:disabled{cursor:default;}
.otp-resend:not(:disabled){color:var(--orange);}
.otp-resend:not(:disabled):hover{text-decoration:underline;}

/* ---------------- 11. Gameplay (Frame_03_Gameplay) ---------------- */

/* Frame_03_Gameplay (187:358). The whole screen is the tap-to-jump surface, so
   no double-tap zoom, text selection or image drag. */
/* The gameplay screen has square outer corners (the base .frame and its tab bar round theirs to 40): the radius on the frame is what clipped the scene, the tab bar's bottom corners echoed it. */
.frame--play{border-radius:0;}
.frame--play .tabbar{border-radius:0;}
.frame--play{touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;cursor:pointer;}
.frame--play img{-webkit-user-drag:none;}

/* World layers (background + ground) share one box so the impact shake moves them together. */
.play-world{inset:0;overflow:hidden;will-change:transform;}
/* BG 3 (452:28) — 447 × 794 at -23,0. The track is image · mirror · image (1341 wide); it
   loops every 894 and drifts left slower than the ground (parallax). */
.play-world img.is-mirror{transform:scaleX(-1);}


/* Moving layer: obstacles (c50eec7f…) and the character (460:32, 141 × 119) are
   placed by game.js with transforms in Figma px × scale; sizes are set here / inline. */
.play-stage{inset:0;overflow:hidden;pointer-events:none;will-change:transform;}
.play-obstacle{left:0;top:0;object-fit:fill;will-change:transform;transform-origin:50% 50%;}

/* ORBY — Frame-gamecar (character sheet 456:30), ACTION POSES cut out of the sheet (sheet px):
     RUN  116 × 168 at 1066,746   eyes 89.5,83  feet 168   (the body box: physics, hitbox, rig pivot)
     IDLE 114 × 177 at 916,764    eyes 74,84    feet 171
     JUMP 110 × 130 at 1210,749   eyes 80.8,75
     LAND 185 × 139 at 1322,805   eyes 103.8,88 feet 128   (includes its sparks and floor glow)
   Every pose is drawn at the same scale (--orby: 0.72 design px per sheet px, so proportions stay the
   sheet's). Ground poses (IDLE, RUN, LAND) stand on the RUN feet line; all poses line up on the eyes
   horizontally, and JUMP on the RUN eye height (legs tucked above the ground line).
   Offsets from the RUN box: IDLE 15.5,-3 · JUMP 8.7,8 · LAND -14.3,40 · trail -37,109. */
.play-player{--orby:calc(0.72 * var(--u));left:0;top:0;width:calc(116 * var(--orby));height:calc(168 * var(--orby));transform-origin:0 0;will-change:transform;}
.play-player__rig{inset:0;transform-origin:50.4% 100%;will-change:transform;}
.play-orby,.play-orby-trail{opacity:0;transition:opacity .08s ease-out;}
/* The crash drawings cut in and out: cross-fading them would show two poses at once at the very frame
   the hit has to read clearly. game.js sets this while the Frame0023 sequence plays and on reset. */
.play-player__rig.is-instant .play-orby,.play-player__rig.is-instant .play-orby-trail{transition:none;}
.play-orby img,.play-orby-trail img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;}
.play-orby--run{left:calc(-4.4 * var(--u));top:calc(-2.13 * var(--u));width:calc(83.75 * var(--u));height:calc(121.25 * var(--u));}

.play-orby__part{inset:0;}
.play-orby--idle{left:calc(15.5 * var(--orby));top:calc(-3 * var(--orby));width:calc(114 * var(--orby));height:calc(177 * var(--orby));}
.play-orby--jump{left:calc(8.7 * var(--orby));top:calc(8 * var(--orby));width:calc(110 * var(--orby));height:calc(130 * var(--orby));}
.play-orby--land{left:calc(-14.3 * var(--orby));top:calc(40 * var(--orby));width:calc(185 * var(--orby));height:calc(139 * var(--orby));}
.play-orby-trail{left:calc(-37 * var(--orby));top:calc(109 * var(--orby));width:calc(37 * var(--orby));height:calc(55 * var(--orby));transform-origin:100% 50%;will-change:transform,opacity;}
/* Frame0023 (713:2) collision storyboard poses.
   The storyboard is drawn panel by panel with its own camera: measured on the robot's face plate, panel 1
   draws it 68 px wide, panel 3 80 px and panel 5 82 px, while the Frame-gamecar sheet draws it 55 px. So a
   single shared factor would make the crash poses grow — each panel gets its own factor instead, chosen so
   that every drawing renders the face plate (and with it the whole robot) at the sheet's size:
     panel 3 impact 0.50 · panel 4 dazed 0.52 · panel 5 fallen 0.49 · panel 6 power-down 0.50 design px per
   panel px, against the sheet poses' 0.72. Sizes below are therefore already in design px (var(--u)).
   Each pose is anchored on two measurements so nothing shifts between states: its own ground line (the
   panel's platform edge, sheet y 574) sits on the player box's feet at 121, and its face-plate centre keeps
   the RUN face's x (59) — the knock-back travel is animated by game.js, never baked into these offsets. */
.play-orby--impact{left:calc(17.25 * var(--u));top:calc(21.5 * var(--u));width:calc(66.5 * var(--u));height:calc(101 * var(--u));}
.play-orby--dazed{left:calc(10.65 * var(--u));top:calc(-11.6 * var(--u));width:calc(92.55 * var(--u));height:calc(131.55 * var(--u));}
.play-orby--fallen{left:calc(-4.7 * var(--u));top:calc(65.65 * var(--u));width:calc(114.15 * var(--u));height:calc(59.8 * var(--u));}
.play-orby--powerdown{left:calc(-13.75 * var(--u));top:calc(65.5 * var(--u));width:calc(109 * var(--u));height:calc(60 * var(--u));}
.play-player__rig[data-pose="idle"] .play-orby--idle,
.play-player__rig[data-pose="run"] .play-orby--run,
.play-player__rig[data-pose="jump"] .play-orby--jump,
.play-player__rig[data-pose="land"] .play-orby--land,
.play-player__rig[data-pose="impact"] .play-orby--impact,
.play-player__rig[data-pose="dazed"] .play-orby--dazed,
.play-player__rig[data-pose="fallen"] .play-orby--fallen,
.play-player__rig[data-pose="powerdown"] .play-orby--powerdown{opacity:1;}
/* Pose parts, each a masked copy of the pose's own image (sheet px in the pose box). Parts sit behind the
   body; the body leaves out only their outer parts, so the joints stay covered while they move.
     antenna   stalk and cube of every pose, pivots where the stalk meets the helmet
                 RUN 58,38 · IDLE 45,44 · JUMP 71,28 · LAND 104,26
     back leg  RUN boot and shin, pivots at the hip 48,140
     back arm  RUN hand and forearm, pivots at the shoulder 48,120
     front arm RUN hand and forearm, pivots at the shoulder 68,126 */
.play-orby__part{will-change:transform;}
.play-orby--idle > .play-orby__part--antenna{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 114 177' preserveAspectRatio='none'%3E%3Cpath d='M30 0 H100 V34 H56 L52 44 H36 L30 36 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 114 177' preserveAspectRatio='none'%3E%3Cpath d='M30 0 H100 V34 H56 L52 44 H36 L30 36 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;transform-origin:39.47% 24.86%;will-change:transform;}
.play-orby--jump > .play-orby__part--antenna{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 130' preserveAspectRatio='none'%3E%3Cpath d='M50 0 H110 V24 H84 L80 28 H62 L54 22 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 130' preserveAspectRatio='none'%3E%3Cpath d='M50 0 H110 V24 H84 L80 28 H62 L54 22 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;transform-origin:64.55% 21.54%;will-change:transform;}
.play-orby--land > .play-orby__part--antenna{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 185 139' preserveAspectRatio='none'%3E%3Cpath d='M88 0 H150 V30 H116 L112 24 H96 L90 18 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 185 139' preserveAspectRatio='none'%3E%3Cpath d='M88 0 H150 V30 H116 L112 24 H96 L90 18 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;transform-origin:56.22% 18.71%;will-change:transform;}
.play-orby--idle > .play-orby__part--body{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 114 177' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' d='M0 0H114V177H0Z M30 0 H100 V30 H56 L50 38 H36 L30 30 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 114 177' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' d='M0 0H114V177H0Z M30 0 H100 V30 H56 L50 38 H36 L30 30 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;}
.play-orby--jump > .play-orby__part--body{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 130' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' d='M0 0H110V130H0Z M50 0 H110 V19 H84 L80 23 H62 L54 17 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 130' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' d='M0 0H110V130H0Z M50 0 H110 V19 H84 L80 23 H62 L54 17 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;}
.play-orby--land > .play-orby__part--body{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 185 139' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' d='M0 0H185V139H0Z M88 0 H150 V26 H116 L112 20 H96 L90 14 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 185 139' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' d='M0 0H185V139H0Z M88 0 H150 V26 H116 L112 20 H96 L90 14 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;}


/* RUN — Frame0023's own running drawing (storyboard panel 2: the same pose as panel 1, without its
   speed lines), rigged so the stride is the drawing's own legs and not a second character.
   The drawing is partitioned: four bands hold the limbs (both arms, both legs), one polygon holds the
   antenna, and the body layer is everything else — the same five regions cut out of it, exactly, so no
   layer keeps a copy of a limb another layer is moving. The bands stop short of the torso, so only the
   limbs travel: the hips and shoulders stay where the drawing put them. That is what used to tear the run apart: the
   body's holes were drawn by hand and did not match the limbs, so a swinging leg left its old pixels
   standing in the body. Each limb turns around the joint the drawing puts it on, and the band it turns
   with is cut where the body covers the joint. Each moving layer is 1.5 px wider than the hole it
   fills, so the two mask edges overlap under the body instead of meeting on a visible hairline. Rendered at 0.625 design px per drawing px (the factor
   that makes this panel's face plate the size the sheet draws it), so RUN is exactly as big as every
   other state. */
.play-orby--run > .play-orby__part--antenna{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 134 194' preserveAspectRatio='none'%3E%3Cpath d='M46.36 54.64 L54.03 13.96 L74.91 -1.94 L123.6 -1.2 L124.47 36.86 L90.21 41.93 L65.98 61.98 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 134 194' preserveAspectRatio='none'%3E%3Cpath d='M46.36 54.64 L54.03 13.96 L74.91 -1.94 L123.6 -1.2 L124.47 36.86 L90.21 41.93 L65.98 61.98 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;transform-origin:43.28% 24.74%;will-change:transform;}
.play-orby--run > .play-orby__part--arm-back{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 134 194' preserveAspectRatio='none'%3E%3Cpath d='M-1.5 116.5 H47.5 V157.5 H-1.5 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 134 194' preserveAspectRatio='none'%3E%3Cpath d='M-1.5 116.5 H47.5 V157.5 H-1.5 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;transform-origin:34.33% 63.92%;will-change:transform;}
.play-orby--run > .play-orby__part--arm-front{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 134 194' preserveAspectRatio='none'%3E%3Cpath d='M98.5 128.5 H135.5 V161.5 H98.5 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 134 194' preserveAspectRatio='none'%3E%3Cpath d='M98.5 128.5 H135.5 V161.5 H98.5 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;transform-origin:74.63% 69.07%;will-change:transform;}
.play-orby--run > .play-orby__part--leg-back{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 134 194' preserveAspectRatio='none'%3E%3Cpath d='M-1.5 154.5 H47.5 V195.5 H-1.5 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 134 194' preserveAspectRatio='none'%3E%3Cpath d='M-1.5 154.5 H47.5 V195.5 H-1.5 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;transform-origin:31.34% 78.35%;will-change:transform;}
.play-orby--run > .play-orby__part--leg-front{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 134 194' preserveAspectRatio='none'%3E%3Cpath d='M56.5 154.5 H101.5 V195.5 H56.5 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 134 194' preserveAspectRatio='none'%3E%3Cpath d='M56.5 154.5 H101.5 V195.5 H56.5 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;transform-origin:53.73% 79.38%;will-change:transform;}
.play-orby--run > .play-orby__part--body{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 134 194' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' d='M0 0 H134 V194 H0 Z M48 53.5 L55.8 14.9 L75.4 0 L122 0 L122.5 36.5 L89.2 40.2 L66.9 60.2 Z M0 118 H46 V156 H0 Z M100 130 H134 V160 H100 Z M0 156 H46 V194 H0 Z M58 156 H100 V194 H58 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 134 194' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' d='M0 0 H134 V194 H0 Z M48 53.5 L55.8 14.9 L75.4 0 L122 0 L122.5 36.5 L89.2 40.2 L66.9 60.2 Z M0 118 H46 V156 H0 Z M100 130 H134 V160 H100 Z M0 156 H46 V194 H0 Z M58 156 H100 V194 H58 Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;}

/* Ground shadow — the JUMP pose's floor shadow from the sheet (106 × 25 sheet px), under ORBY on the ground
   line; game.js shrinks and fades it with height and hides it under IDLE / LAND, which carry their own. */

/* Landing sparks — the glowing pixel squares of the care sheet's LAND pose. */
.play-spark{left:0;top:0;width:calc(5 * var(--u));height:calc(5 * var(--u));margin:calc(-2.5 * var(--u)) 0 0 calc(-2.5 * var(--u));background:#e8e6ff;box-shadow:0 0 calc(4 * var(--u)) #c84dff,0 0 calc(8 * var(--u)) rgba(200,77,255,.6);will-change:transform,opacity;}

/* Frame0023 panel 3 — the flash where the robot meets the obstacle; game.js puts it at the contact
   point and fades it over the hit-stop. */
.play-burst{left:0;top:0;width:calc(37 * var(--u));height:calc(94.5 * var(--u));max-width:none;opacity:0;will-change:transform,opacity;}

/* Frame0023 panels 4 and 7 — the stars the knock-back throws off and the pixel squares the body
   dissolves into. game.js pools them as <img> of the sheet's own particles. */
.play-particle{left:0;top:0;max-width:none;opacity:0;will-change:transform,opacity;}

/* Frame0023 panel 8 «نمایش صفحه باخت» — the storyboard's title over the darkened scene. The panel gives
   it 74 % of the screen width, so 280 of 402, keeping its aspect (146 × 190). */
/* Frame_03_Gameplay-1/-2/-3 all sit the result card on a blurred gameplay screen, so the round's
   last frame — the Frame0023 title included — goes soft behind it once the card arrives. */
/* Milestone messages (game.js TOAST): pixel lettering drawn by game.js, in the upper-middle of the screen (from y 196,
   ~100 px under the timer's 62–96), above the top of the character's double jump (y ≈ 316) and far above every hazard. Never takes a tap. Each message has its own entrance, all on
   stepped timing so they move like the pixel art they are: pop in, hold, fade. */
.play-toast{left:calc(201 * var(--u));top:calc(196 * var(--u));translate:-50% 0;z-index:3;pointer-events:none;image-rendering:pixelated;opacity:0;transform-origin:50% 50%;}
.play-toast[data-kind="good"]{animation:toast-good 1.7s both;}
.play-toast[data-kind="wow"]{animation:toast-wow 2.1s both;}
.play-toast[data-kind="best"]{animation:toast-best 2.6s both;}
.play-toast[data-kind="record"]{animation:toast-record 2.3s both;}
@keyframes toast-good{
  0%{opacity:0;scale:.5;animation-timing-function:steps(3,end);}
  14%{opacity:1;scale:1.14;animation-timing-function:steps(2,end);}
  22%{opacity:1;scale:1;}
  78%{opacity:1;scale:1;translate:-50% 0;animation-timing-function:steps(4,end);}
  100%{opacity:0;scale:1;translate:-50% calc(-6 * var(--u));}}
@keyframes toast-wow{
  0%{opacity:0;scale:.3;rotate:0deg;animation-timing-function:steps(3,end);}
  12%{opacity:1;scale:1.32;rotate:-4deg;animation-timing-function:steps(2,end);}
  18%{scale:.94;rotate:3deg;animation-timing-function:steps(2,end);}
  24%{scale:1.06;rotate:-1.5deg;animation-timing-function:steps(2,end);}
  30%{opacity:1;scale:1;rotate:0deg;}
  80%{opacity:1;scale:1;translate:-50% 0;animation-timing-function:steps(5,end);}
  100%{opacity:0;scale:1.08;translate:-50% calc(-8 * var(--u));}}
@keyframes toast-best{
  0%{opacity:0;scale:.4;translate:-50% calc(10 * var(--u));animation-timing-function:steps(4,end);}
  12%{opacity:1;scale:1.24;translate:-50% 0;animation-timing-function:steps(2,end);}
  20%{scale:.96;animation-timing-function:steps(2,end);}
  27%{opacity:1;scale:1.03;}
  34%{scale:1;}
  82%{opacity:1;scale:1;translate:-50% 0;animation-timing-function:steps(5,end);}
  100%{opacity:0;scale:1.05;translate:-50% calc(-10 * var(--u));}}
@keyframes toast-record{
  0%{opacity:0;scale:.5;animation-timing-function:steps(3,end);}
  12%{opacity:1;scale:1.2;animation-timing-function:steps(2,end);}
  19%{opacity:1;scale:1;}
  25%{opacity:.35;}
  29%{opacity:1;}
  35%{opacity:.35;}
  39%{opacity:1;}
  80%{opacity:1;translate:-50% 0;animation-timing-function:steps(4,end);}
  100%{opacity:0;translate:-50% calc(-6 * var(--u));}}
@media (prefers-reduced-motion:reduce){
  .play-toast[data-kind]{animation:toast-calm 2s both;}
  @keyframes toast-calm{0%{opacity:0;}10%,80%{opacity:1;}100%{opacity:0;}}
}
/* Warning marker (game.js WARN): a pixel «!» at the right edge, blinking on stepped timing, announcing a tall obstacle,
   a pendulum or a rocket. Placed by transform; never takes a tap. */
.play-warn{left:0;top:0;width:calc(26 * var(--u));height:calc(30 * var(--u));pointer-events:none;z-index:2;animation:warn-blink .24s steps(2,jump-none) infinite;}
@keyframes warn-blink{from{opacity:1;}to{opacity:.35;}}
@media (prefers-reduced-motion:reduce){.play-warn{animation:none;}}


/* ---------------- 11b. Gameplay HUD & end of round (Black Friday) ----------------
   Night mode gameplay (1382:3795): the chances pill at 30,80; «SURVIVAL TIME» Montserrat
   ExtraBold 9 #fc4900 over the time, Montserrat ExtraBold 19 white, centred at y 78 / 89;
   «برای پریدن، صفحه رو لمس کن» on a 191 × 38 #151519 pill (radius 20). The world, the
   character and the obstacles above are the existing game art, untouched. */
.play-lives{left:calc(30 * var(--u));top:calc(80 * var(--u));z-index:3;pointer-events:none;}
.play-timer{left:0;top:calc(78 * var(--u));width:calc(402 * var(--u));height:calc(34 * var(--u));pointer-events:none;z-index:3;}
.play-timer__label{left:0;right:0;top:0;text-align:center;font:800 calc(9 * var(--u))/calc(11 * var(--u)) var(--mont);letter-spacing:.02em;color:var(--orange-deep);}
.play-timer__value{left:0;right:0;top:calc(11 * var(--u));text-align:center;font:800 calc(19 * var(--u))/calc(23 * var(--u)) var(--mont);color:#fff;font-variant-numeric:tabular-nums;text-shadow:0 calc(1 * var(--u)) calc(6 * var(--u)) rgba(0,0,0,.45);}
.play-hint{left:calc(105.5 * var(--u));top:calc(740 * var(--u));width:calc(191 * var(--u));height:calc(38 * var(--u));border-radius:calc(20 * var(--u));background:rgba(21,21,25,.92);box-shadow:inset 0 0 0 calc(1 * var(--u)) var(--line);pointer-events:none;}
.play-hint__text{left:0;right:0;top:calc(8 * var(--u));text-align:center;font-weight:700;font-size:calc(14 * var(--u));line-height:calc(22 * var(--u));color:var(--muted);}

/* The end of a round: the screen frosts over (#272727 50 %, 25 blur) and one card appears.
   The overlay stays click-through; only the card's button takes taps, so a tap anywhere else
   still restarts (game.js). */
.play-gameover{left:0;top:0;width:calc(402 * var(--u));height:calc(874 * var(--u));pointer-events:none;z-index:4;background:rgba(39,39,39,.5);-webkit-backdrop-filter:blur(calc(25 * var(--u)));backdrop-filter:blur(calc(25 * var(--u)));opacity:0;transition:opacity .45s ease-out;}
.play-gameover.is-shown{opacity:1;}
/* The Frame0023 GAME OVER title is not part of the Black Friday design. */
.play-gameover__title{display:none;}
@keyframes play-gameover-in{from{opacity:0;scale:.86;}to{opacity:1;scale:1;}}
/* Rectangle 29 — 362 × 218 at 20,328, #24242c, 1.5 #a9a7b3, radius 16 */
.play-result{left:calc(20 * var(--u));top:calc(328 * var(--u));width:calc(362 * var(--u));height:calc(218 * var(--u));pointer-events:auto;}
.play-result__card{inset:0;border-radius:calc(16 * var(--u));background:var(--surface-2);box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--line-3),0 calc(20 * var(--u)) calc(50 * var(--u)) rgba(0,0,0,.45);}
/* won: the stopwatch (74 × 67 at 164,346) · lost: the crying robot (92 × 68 at 155,345) */
.play-result__art{left:calc(135 * var(--u));top:calc(17 * var(--u));width:calc(92 * var(--u));height:calc(68 * var(--u));background:url('../assets/blackfriday/robot-sad.webp') center/contain no-repeat;}
.play-result[data-result="won"] .play-result__art{left:calc(144 * var(--u));top:calc(18 * var(--u));width:calc(74 * var(--u));height:calc(67 * var(--u));background-image:url('../assets/blackfriday/stopwatch.webp');}
.play-result__title{left:0;right:0;top:calc(88 * var(--u));text-align:center;font-weight:800;font-size:calc(24 * var(--u));line-height:calc(37 * var(--u));color:#fff;}
.play-result__text{left:0;right:0;top:calc(128 * var(--u));text-align:center;font-weight:600;font-size:calc(14 * var(--u));line-height:calc(22 * var(--u));color:#d8d8de;}
/* Frame 1261153396 — 327 × 44 at 37,484, #ff9000, radius 14; Black 22 white */
.play-result__btn{left:calc(17 * var(--u));top:calc(156 * var(--u));width:calc(327 * var(--u));height:calc(44 * var(--u));appearance:none;border:0;padding:0;border-radius:calc(14 * var(--u));background:var(--orange);cursor:pointer;transition:filter .15s ease,background-color .15s ease;}
.play-result__btn-text{left:0;right:0;top:calc(5 * var(--u));text-align:center;font-weight:900;font-size:calc(22 * var(--u));line-height:calc(34 * var(--u));color:#fff;}
.play-result__btn:active{scale:.985;background:var(--orange-down);}
@media (hover:hover){ .play-result__btn:hover{filter:brightness(1.07);} }
.play-result__btn:focus-visible{outline:calc(2 * var(--u)) solid var(--amber);outline-offset:calc(2 * var(--u));}
.play-gameover.is-shown .play-result{animation:play-gameover-in .45s .15s cubic-bezier(.2,1.2,.4,1) both;}
/* 1412:4326 — the day's chances are gone: the red panel (#2c191d 95 %, 1.5 #6b2833) covers the
   card's message; the card's button stays visible under it, because in this state it is the way
   to the invite pop-up. */
.play-banner{left:calc(19 * var(--u));top:calc(328 * var(--u));width:calc(364 * var(--u));height:calc(150 * var(--u));pointer-events:none;}
.play-banner__card{inset:0;border-radius:calc(16 * var(--u));background:rgba(44,25,29,.96);box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--red-line);}
.play-banner__title{left:0;right:0;top:calc(52 * var(--u));text-align:center;font-weight:800;font-size:calc(14 * var(--u));line-height:calc(22 * var(--u));color:var(--red);}
.play-banner__text{left:0;right:0;top:calc(76 * var(--u));text-align:center;font-weight:800;font-size:calc(12 * var(--u));line-height:calc(19 * var(--u));color:var(--red);}
.play-gameover.is-shown .play-banner{animation:play-gameover-in .45s .2s cubic-bezier(.2,1.2,.4,1) both;}
@media (prefers-reduced-motion:reduce){
  .play-gameover.is-shown .play-result,
  .play-gameover.is-shown .play-banner{animation:none;}
}

/* ---------------- 12. Home pop-ups (guide · invite · chest rewards) ---------------- */

/* The frosted sheet is the close target; the chest pop-ups use the taller sheet (from y 243). */
.dialog-overlay{cursor:pointer;}
.frame--landing:has(.dialog--tier.is-open,.dialog--tier.is-closing) .dialog-overlay{top:calc(243 * var(--u));}
.dialog-overlay.is-open{animation:sheet-up .34s cubic-bezier(.2,.9,.25,1) both;}
.dialog-overlay.is-closing{animation:rm-fade-out .18s ease-in both;}
.dialog{inset:0;z-index:31;pointer-events:none;outline:none;}
.dialog > *{pointer-events:auto;}
.dialog.is-open{animation:dlg-in .34s .04s cubic-bezier(.2,1.2,.4,1) both;}
.dialog.is-closing{animation:dlg-out .18s ease-in both;}
@keyframes dlg-in{from{opacity:0;translate:0 calc(24 * var(--u));}to{opacity:1;translate:0 0;}}
@keyframes dlg-out{from{opacity:1;}to{opacity:0;translate:0 calc(10 * var(--u));}}
/* Rectangle 29 — #24242c, 1.5 #a9a7b3, radius 16 */
.dialog__card{left:calc(20 * var(--u));width:calc(362 * var(--u));border-radius:calc(16 * var(--u));background:var(--surface-2);box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--line-3),0 calc(18 * var(--u)) calc(40 * var(--u)) rgba(0,0,0,.35);}
.dialog__close{left:calc(29 * var(--u));width:calc(34 * var(--u));height:calc(34 * var(--u));}

/* راهنمای بازی (1370:1186): card at 20,442; art 83 at 159,454; title ExtraBold 24 at y 534;
   text SemiBold 12, line 156 %, justified, 335 wide at 33,575, ending 15 above the card's bottom
   (Figma card 300 tall). The card grows with the text: it shares one grid cell with it (row 2
   starts at the card's top, y 442), so no line can fall outside its border. */
.dialog--guide{display:grid;grid-template-columns:100%;grid-template-rows:calc(442 * var(--u)) auto 1fr;}
.dialog--guide .dialog__card{position:relative;grid-area:2 / 1;justify-self:left;left:auto;margin-left:calc(20 * var(--u));min-height:calc(300 * var(--u));}
.dialog--guide .dialog__close{top:calc(450 * var(--u));}
.dialog__art{left:calc(159 * var(--u));top:calc(454 * var(--u));width:calc(83 * var(--u));height:calc(83 * var(--u));object-fit:contain;}
.guide__title{left:0;width:calc(402 * var(--u));top:calc(534 * var(--u));text-align:center;font-weight:800;font-size:calc(24 * var(--u));line-height:calc(37 * var(--u));color:#fff;}
.guide__text{left:calc(33 * var(--u));top:calc(575 * var(--u));width:calc(335 * var(--u));white-space:normal;text-align:justify;text-align-last:right;font-weight:600;font-size:calc(12 * var(--u));line-height:1.56;color:var(--text);}
.dialog--guide .guide__text{position:relative;grid-area:2 / 1;justify-self:left;align-self:start;left:auto;top:auto;margin:calc(133 * var(--u)) 0 calc(15 * var(--u)) calc(33 * var(--u));}
.dialog--guide.is-open .dialog__art{animation:chance-art .55s .1s cubic-bezier(.2,1.5,.4,1) both;}

/* افزایش شانس (1349:1608): card 362 × 218 at 20,442; heart 70 at 166,455 with its «+» badge;
   title ExtraBold 24 at y 532; line SemiBold 14 #d8d8de at y 575; link field 257 × 30 at 33,614;
   «کپی لینک» 70 × 30 at 296,614, #ff9000, radius 10. */
.dialog--chance .dialog__card{top:calc(442 * var(--u));height:calc(218 * var(--u));}
.dialog--chance .dialog__close{top:calc(451 * var(--u));}
.chance__art{left:calc(166 * var(--u));top:calc(455 * var(--u));width:calc(70 * var(--u));height:calc(74 * var(--u));}
.chance__art img{left:0;top:0;width:calc(70 * var(--u));height:calc(70 * var(--u));}
.chance__plus{left:calc(42 * var(--u));top:calc(50 * var(--u));min-width:calc(22 * var(--u));height:calc(18 * var(--u));padding:0 calc(3 * var(--u));border-radius:calc(9 * var(--u));background:#2a1d00;box-shadow:inset 0 0 0 calc(1 * var(--u)) var(--amber);text-align:center;font-weight:700;font-size:calc(12 * var(--u));line-height:calc(18 * var(--u));color:var(--amber);}
.chance__title{left:0;width:calc(402 * var(--u));top:calc(532 * var(--u));text-align:center;font-weight:800;font-size:calc(24 * var(--u));line-height:calc(37 * var(--u));color:#fff;}
.chance__sub{left:0;width:calc(402 * var(--u));top:calc(575 * var(--u));text-align:center;font-weight:600;font-size:calc(14 * var(--u));line-height:calc(22 * var(--u));color:#d8d8de;}
.chance__field{left:calc(33 * var(--u));top:calc(614 * var(--u));width:calc(257 * var(--u));height:calc(30 * var(--u));border-radius:calc(8 * var(--u));background:var(--surface);box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--line);}
.chance__link{left:calc(41 * var(--u));top:calc(619.5 * var(--u));width:calc(241 * var(--u));overflow:hidden;text-overflow:ellipsis;font:600 calc(12 * var(--u))/calc(19 * var(--u)) var(--inter);color:var(--slate);user-select:all;}
.chance__copy{left:calc(296 * var(--u));top:calc(614 * var(--u));width:calc(70 * var(--u));height:calc(30 * var(--u));border-radius:calc(10 * var(--u));background:var(--orange);transition:filter .15s ease,background-color .15s ease;}
.chance__copy-text{left:0;right:0;top:calc(4 * var(--u));text-align:center;font-weight:800;font-size:calc(14 * var(--u));line-height:calc(22 * var(--u));color:#fff;}
.chance__copy:active{scale:.95;background:var(--orange-down);}
.chance__copy.is-copied{animation:key-pop .45s cubic-bezier(.2,1.5,.4,1) both;}
.dialog--chance.is-open .chance__art{animation:chance-art .55s .1s cubic-bezier(.2,1.5,.4,1) both;}
@keyframes chance-art{0%{opacity:0;scale:.5;rotate:-12deg;}60%{opacity:1;scale:1.12;rotate:4deg;}100%{opacity:1;scale:1;rotate:0deg;}}

/* جایزه‌های صندوق … (1327:724): card 362 wide at 20,315 (282 tall in Figma); open chest 70 at
   299,330; close icon 26 at 32,330; title Black 20 right-aligned (right edge 295) at y 350; the
   terms 335 wide from y 407, ending 15 above the card's bottom. The card shares one grid cell
   with the terms (row 2 starts at its top, y 315), so its height follows them. */
.dialog--tier{display:grid;grid-template-columns:100%;grid-template-rows:calc(315 * var(--u)) auto 1fr;}
.dialog--tier .dialog__card{position:relative;grid-area:2 / 1;justify-self:left;left:auto;margin-left:calc(20 * var(--u));min-height:calc(282 * var(--u));}
.dialog--tier .dialog__close{left:calc(28 * var(--u));top:calc(326 * var(--u));}
.tier__art{left:calc(299 * var(--u));top:calc(330 * var(--u));width:calc(70 * var(--u));height:calc(70 * var(--u));object-fit:contain;}
.tier__title{right:calc(107 * var(--u));top:calc(350 * var(--u));font-weight:900;font-size:calc(20 * var(--u));line-height:calc(31 * var(--u));color:var(--text);}
.tier__list{position:relative;grid-area:2 / 1;justify-self:left;align-self:start;width:calc(335 * var(--u));margin:calc(92 * var(--u)) 0 calc(15 * var(--u)) calc(34 * var(--u));padding:0;list-style:none;}
.tier__list li{position:relative;padding-right:calc(16 * var(--u));margin-bottom:calc(8 * var(--u));white-space:normal;font-weight:700;font-size:calc(14 * var(--u));line-height:calc(23 * var(--u));color:var(--text);}
.tier__list li:last-child{margin-bottom:0;}
.tier__list li::before{content:'';position:absolute;right:0;top:calc(8 * var(--u));width:calc(7 * var(--u));height:calc(7 * var(--u));border-radius:50%;background:var(--tier-c);}
.tier__list .tier__range{font-weight:800;font-size:calc(16 * var(--u));color:var(--tier-c);}
.dialog--tier-bronze{--tier-c:var(--bronze);}
.dialog--tier-gold{--tier-c:var(--gold);}
.dialog--tier-diamond{--tier-c:var(--diamond);}
.dialog--tier.is-open .tier__art{animation:chance-art .55s .1s cubic-bezier(.2,1.5,.4,1) both;}

/* ---------------- 13. Vault (Page 1 — Box) ---------------- */

/* The back control (every inner screen): the Figma arrow-square at 20,76 — the frames draw no
   back button of their own, and the existing «بازگشت» stays. */
.vault-back{left:calc(20 * var(--u));top:calc(76 * var(--u));width:calc(36 * var(--u));height:calc(36 * var(--u));border-radius:calc(10 * var(--u));background:var(--surface);box-shadow:inset 0 0 0 calc(1 * var(--u)) var(--line);color:var(--muted);transition:color .15s ease,box-shadow .15s ease;z-index:2;}
.back-icon{inset:calc(9 * var(--u));background:currentColor;-webkit-mask:url('../assets/blackfriday/chevron.svg') center/contain no-repeat;mask:url('../assets/blackfriday/chevron.svg') center/contain no-repeat;rotate:90deg;}
@media (hover:hover){ .vault-back:hover{color:var(--orange);box-shadow:inset 0 0 0 calc(1 * var(--u)) var(--orange);} }
.vault-back:active{scale:.94;}

/* «صندوق جایزه‌های نامبرلند» ExtraBold 22, centred at y 77 — shown in both vault states. */
.vault-title{left:calc(60 * var(--u));width:calc(282 * var(--u));top:calc(77 * var(--u));text-align:center;font-weight:800;font-size:calc(22 * var(--u));line-height:calc(34 * var(--u));color:var(--text);}
.frame .vault-title[hidden]{display:block!important;}

/* Keys: three 115 × 54 tiles at 20 / 144 / 268, y 129 — bronze · gold · diamond. */
.vault-keys{left:calc(20 * var(--u));top:calc(129 * var(--u));width:calc(363 * var(--u));height:calc(54 * var(--u));}
.vault-keys__divider{display:none;}
.vault-key{top:0;width:calc(115 * var(--u));height:calc(54 * var(--u));display:flex;flex-direction:row-reverse;align-items:center;justify-content:center;gap:calc(4 * var(--u));border-radius:calc(16 * var(--u));background:var(--surface);box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--line);}
.vault-key > *{position:static;}
.vault-key--bronze{left:0;}
.vault-key--gold{left:calc(124 * var(--u));}
.vault-key--diamond{left:calc(248 * var(--u));}
.vault-key__icon{width:calc(45 * var(--u));height:calc(45 * var(--u));object-fit:contain;}
.vault-key__count{min-width:calc(30 * var(--u));text-align:center;font-weight:800;font-size:calc(34 * var(--u));line-height:calc(45 * var(--u));color:#fff;}
/* No key yet (1412:4369): the red line covers the key tiles. */
.vault-hint{left:calc(20 * var(--u));top:calc(129 * var(--u));width:calc(363 * var(--u));height:calc(54 * var(--u));z-index:1;}
.vault-hint__card{inset:0;border-radius:calc(16 * var(--u));background:rgba(44,25,29,.95);box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--red-line);}
.vault-hint__text{left:0;right:0;top:calc(16 * var(--u));text-align:center;font-weight:800;font-size:calc(12 * var(--u));line-height:calc(22 * var(--u));color:var(--red);}

/* Chest cards: 363 × 83 at 20,213 / 20,321 / 20,428, radius 16, 1.5 stroke in the tier colour
   over its dark tint; chest 70 at the right; texts right-aligned (right edge 257.5 in the card);
   «باز کردن» 61 × 32 at 15.5,25.5, radius 10, in the tier colour. */
.chest{left:calc(20 * var(--u));width:calc(363 * var(--u));height:calc(83 * var(--u));--c:var(--gold);--c-bg:var(--gold-bg);}
.chest--bronze{top:calc(213 * var(--u));--c:var(--bronze);--c-bg:var(--bronze-bg);}
.chest--gold{top:calc(321 * var(--u));}
.chest--diamond{top:calc(428 * var(--u));--c:var(--diamond);--c-bg:var(--diamond-bg);}
/* One solid stroke in the tier colour (no glow, no gradient). */
.chest__card{inset:0;border-radius:calc(16 * var(--u));background:var(--c-bg);border:calc(1.5 * var(--u)) solid var(--c);}
.chest__slot{display:none;}
.chest__name{right:calc(105.5 * var(--u));top:calc(12.5 * var(--u));font-weight:800;font-size:calc(14 * var(--u));line-height:calc(22 * var(--u));color:var(--c);}
.chest__desc{right:calc(105.5 * var(--u));top:calc(36.5 * var(--u));font-weight:600;font-size:calc(10 * var(--u));line-height:calc(16 * var(--u));color:var(--text);}
.chest__cost{right:calc(105.5 * var(--u));top:calc(54.5 * var(--u));font-weight:800;font-size:calc(10 * var(--u));line-height:calc(16 * var(--u));color:var(--c);}
.chest__open{left:calc(15.5 * var(--u));top:calc(25.5 * var(--u));width:calc(61 * var(--u));height:calc(32 * var(--u));border-radius:calc(10 * var(--u));background:var(--c);transition:filter .15s ease;}
.chest__open-text{left:0;right:0;top:calc(5 * var(--u));text-align:center;font-weight:700;font-size:calc(14 * var(--u));line-height:calc(22 * var(--u));color:var(--surface);}
.chest__open:active{scale:.94;filter:brightness(.9);}
@media (hover:hover){ .chest__open:hover{filter:brightness(1.1);} }
.chest__art{left:calc(277.5 * var(--u));top:calc(6.5 * var(--u));width:calc(70 * var(--u));height:calc(70 * var(--u));}
.chest__clip,.chest__clip img{inset:0;width:100%;height:100%;object-fit:contain;}

.frame--vault.is-entering :is(.vault-back,.vault-title,.vault-keys,.vault-hint,.chest){animation:vault-rise .42s cubic-bezier(.2,.8,.2,1) both;}
.frame--vault.is-entering .vault-title{animation-delay:.03s;}
.frame--vault.is-entering :is(.vault-keys,.vault-hint){animation-delay:.07s;}
.frame--vault.is-entering .chest--bronze{animation-delay:.12s;}
.frame--vault.is-entering .chest--gold{animation-delay:.17s;}
.frame--vault.is-entering .chest--diamond{animation-delay:.22s;}
@keyframes vault-rise{from{opacity:0;translate:0 calc(12 * var(--u));}to{opacity:1;translate:0 0;}}
/* A chest whose key the player holds breathes gently. */
.chest[data-available] .chest__art{animation:chest-idle 2.4s ease-in-out infinite;}
@keyframes chest-idle{0%,100%{translate:0 0;}50%{translate:0 calc(-2 * var(--u));}}
/* No key: the button shakes and the tier's key counter pulses. */
.chest.is-denied .chest__open{animation:chest-deny .42s cubic-bezier(.36,.07,.19,.97) both;}
@keyframes chest-deny{10%,90%{translate:calc(-1 * var(--u)) 0;}20%,80%{translate:calc(2 * var(--u)) 0;}30%,50%,70%{translate:calc(-3 * var(--u)) 0;}40%,60%{translate:calc(3 * var(--u)) 0;}}
.vault-key.is-denied .vault-key__icon,.vault-key.is-denied .vault-key__count{animation:key-pulse .5s ease-out both;}
@keyframes key-pulse{0%,100%{scale:1;}35%{scale:1.3;}}
.vault-key.is-changed .vault-key__count{animation:key-pop .45s cubic-bezier(.2,1.5,.4,1) both;}
@keyframes key-pop{0%{scale:1;}40%{scale:1.45;}100%{scale:1;}}
/* Spending a key: the chest wiggles before the window opens (and while the code is being made). */
.chest.is-opening .chest__art{animation:chest-wiggle .4s ease-in-out both;}
.chest.is-creating .chest__art{animation:chest-wiggle .6s ease-in-out infinite;}
@keyframes chest-wiggle{0%,100%{rotate:0deg;scale:1;}20%{rotate:-9deg;scale:1.08;}45%{rotate:8deg;scale:1.12;}70%{rotate:-5deg;scale:1.1;}}

/* ---------------- 14. Reward window (Opening the safe → Opened box) ---------------- */

.reward-modal{inset:0;z-index:40;outline:none;background:rgba(39,39,39,.5);-webkit-backdrop-filter:blur(calc(25 * var(--u)));backdrop-filter:blur(calc(25 * var(--u)));--c:var(--gold);--c-bg:var(--gold-bg);}
.reward-modal[data-tier="bronze"]{--c:var(--bronze);--c-bg:var(--bronze-bg);}
.reward-modal[data-tier="diamond"]{--c:var(--diamond);--c-bg:var(--diamond-bg);}
.reward-modal__confetti{left:0;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:3;}
/* The celebration pieces are made and moved by app.js; this is only how one piece looks. */
.rm-piece{position:absolute;left:0;top:0;background:linear-gradient(135deg,#ffd23f,#ff9d12 55%,#d9660c);will-change:transform,opacity;}
.rm-piece--b{background:linear-gradient(135deg,#ffb800,#e07a10);}
.rm-piece--c{background:linear-gradient(135deg,#ffe27a,#f5a01a 60%,#c8600a);}

/* Opening the safe (1412:4761): tier badge 126 × 30 at 138,201; «وقتِ باز کردن جایزه‌ته!» ExtraBold
   24 at y 245; «ببین این بار چی نصیبت شده» Bold 16 #96969e at y 287; the orange radial glow
   362 × 320 at 20,295; the chest 286 × 276.5 at 58,333.5; «در حال باز شدن صندوق…» Bold 16 #ff9000 at y 648. */
.reward-modal__opening{inset:0;pointer-events:none;}
.reward-modal__opening-badge{left:calc(201 * var(--u));top:calc(201 * var(--u));translate:-50% 0;height:calc(30 * var(--u));padding:0 calc(30 * var(--u));border-radius:calc(14 * var(--u));background:var(--c-bg);box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--c);font-weight:800;font-size:calc(11 * var(--u));line-height:calc(30 * var(--u));color:var(--c);}
.reward-modal__opening-title{left:0;width:calc(402 * var(--u));top:calc(245 * var(--u));text-align:center;font-weight:800;font-size:calc(24 * var(--u));line-height:calc(37 * var(--u));color:#f7f4ef;}
.reward-modal__opening-sub{left:0;width:calc(402 * var(--u));top:calc(287 * var(--u));text-align:center;font-weight:700;font-size:calc(16 * var(--u));line-height:calc(25 * var(--u));color:#96969e;}
.reward-modal__glow{left:calc(20 * var(--u));top:calc(295 * var(--u));width:calc(362 * var(--u));height:calc(320 * var(--u));background:radial-gradient(closest-side,color-mix(in srgb,var(--c) 34%,transparent),transparent);}
.reward-modal[data-tier="diamond"] .reward-modal__glow{background:radial-gradient(closest-side,rgba(255,144,0,.32),rgba(252,73,0,0));}
.reward-modal__chest{left:calc(58 * var(--u));top:calc(333.5 * var(--u));width:calc(286 * var(--u));height:calc(276.5 * var(--u));}
.reward-modal__clip,.reward-modal__clip img{inset:0;width:100%;height:100%;object-fit:contain;}
/* The provided gold-chest animation (src/skin.js plays its chest section, 2.25 → 3.1 s). The file is
   a full-screen 804 × 1748 render of this very screen, so it is laid over the whole frame at its
   own aspect and masked down to the chest: only the chest and its glow ever show. */
.reward-modal__video{inset:0;opacity:0;transition:opacity .12s linear;-webkit-mask:radial-gradient(ellipse calc(172 * var(--u)) calc(160 * var(--u)) at calc(201 * var(--u)) calc(472 * var(--u)),#000 70%,transparent 100%);mask:radial-gradient(ellipse calc(172 * var(--u)) calc(160 * var(--u)) at calc(201 * var(--u)) calc(472 * var(--u)),#000 70%,transparent 100%);}
.reward-modal__video video{left:0;top:0;width:calc(402 * var(--u));height:calc(874 * var(--u));object-fit:contain;}
.reward-modal[data-video="on"] .reward-modal__video{opacity:1;}
.reward-modal[data-video="on"] .reward-modal__chest{opacity:0;}
.reward-modal__opening-status{left:0;width:calc(402 * var(--u));top:calc(648 * var(--u));text-align:center;font-weight:700;font-size:calc(16 * var(--u));line-height:calc(25 * var(--u));color:var(--orange);animation:status-pulse 1.1s ease-in-out infinite;}
@keyframes status-pulse{0%,100%{opacity:1;}50%{opacity:.55;}}

/* Opened box (1412:4775): card 362 × 621 at 20,127, #24242c, 1.5 #a9a7b3, radius 16. */
.reward-modal__card{left:calc(20 * var(--u));top:calc(127 * var(--u));width:calc(362 * var(--u));height:calc(621 * var(--u));border-radius:calc(16 * var(--u));background:var(--surface-2);box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--line-3),0 calc(24 * var(--u)) calc(60 * var(--u)) rgba(0,0,0,.45);}
.reward-modal__close{left:calc(27 * var(--u));top:calc(134 * var(--u));width:calc(34 * var(--u));height:calc(34 * var(--u));z-index:4;}
/* the open chest 142 × 142 at 130,154 (confetti bursts from the slot) */
.reward-modal__slot,.reward-modal__chest-open,.reward-modal__flash{left:calc(130 * var(--u));top:calc(154 * var(--u));width:calc(142 * var(--u));height:calc(142 * var(--u));}
.reward-modal__slot{pointer-events:none;}
.reward-modal__chest-open{object-fit:contain;filter:drop-shadow(0 calc(10 * var(--u)) calc(24 * var(--u)) color-mix(in srgb,var(--c) 35%,transparent));}
.reward-modal__flash{border-radius:50%;background:radial-gradient(closest-side,rgba(255,236,190,.95),rgba(255,160,40,.5) 45%,transparent);opacity:0;pointer-events:none;}
.reward-modal__badge{left:calc(201 * var(--u));top:calc(322 * var(--u));translate:-50% 0;height:calc(30 * var(--u));padding:0 calc(20 * var(--u));border-radius:calc(14 * var(--u));background:var(--c-bg);box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--c);}
.reward-modal__badge-text{position:static;font-weight:800;font-size:calc(11 * var(--u));line-height:calc(30 * var(--u));color:var(--c);}
.reward-modal__title{left:calc(30 * var(--u));width:calc(342 * var(--u));top:calc(360 * var(--u));text-align:center;font-weight:700;font-size:calc(22 * var(--u));line-height:calc(37 * var(--u));color:#f7f4ef;}
/* «۵۰۰ / هزار تومان تخفیف» — Bold 64 #ffb800 at y 393, Bold 22 at y 449 (src/skin.js splits the code's own label) */
.reward-modal__amount{left:0;width:calc(402 * var(--u));top:calc(393 * var(--u));height:calc(90 * var(--u));text-align:center;}
.reward-modal__amount-num{left:0;right:0;top:0;text-align:center;font-weight:700;font-size:calc(58 * var(--u));line-height:calc(56 * var(--u));color:var(--amber);text-shadow:0 0 calc(24 * var(--u)) rgba(255,184,0,.3);}
.reward-modal__amount-unit{left:0;right:0;top:calc(56 * var(--u));text-align:center;font-weight:700;font-size:calc(22 * var(--u));line-height:calc(34 * var(--u));color:#f7f4ef;}
.reward-modal__desc{left:calc(44 * var(--u));width:calc(314 * var(--u));top:calc(489 * var(--u));text-align:center;white-space:normal;font-weight:700;font-size:calc(12 * var(--u));line-height:calc(20 * var(--u));color:var(--muted);}
.reward-modal:has(.reward-modal__amount[hidden]) .reward-modal__desc{top:calc(420 * var(--u));font-size:calc(15 * var(--u));line-height:calc(26 * var(--u));color:#f7f4ef;}
/* Deadline — 314 × 39 at 44,519, #2c191d, 1.5 #6b2833, radius 12; the time on a #110407 pill in #ef2f45 */
.reward-modal__deadline{left:calc(44 * var(--u));top:calc(519 * var(--u));width:calc(314 * var(--u));height:calc(39 * var(--u));border-radius:calc(12 * var(--u));background:var(--red-bg);box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--red-line);}
.reward-modal__deadline::before{content:'';position:absolute;right:calc(10 * var(--u));top:calc(12.5 * var(--u));width:calc(14 * var(--u));height:calc(14 * var(--u));background:var(--muted);-webkit-mask:url('../assets/blackfriday/clock.svg') center/contain no-repeat;mask:url('../assets/blackfriday/clock.svg') center/contain no-repeat;}
.reward-modal__deadline-text{right:calc(30 * var(--u));top:calc(11 * var(--u));font-weight:800;font-size:calc(11 * var(--u));line-height:calc(17 * var(--u));color:var(--text);}
.reward-modal__left{left:calc(8.5 * var(--u));top:calc(5.5 * var(--u));width:calc(115 * var(--u));height:calc(28 * var(--u));border-radius:calc(8 * var(--u));background:#110407;text-align:center;font-weight:800;font-size:calc(17 * var(--u));line-height:calc(28 * var(--u));color:var(--red);font-variant-numeric:tabular-nums;}
/* Code — 314 × 58 at 44,565, #0a0c10, 2 #36383f dashed, radius 16; code Montserrat Bold 18;
   «کپی کد» 77 × 34, #2d2f35, radius 10 */
.reward-modal__code-row{left:calc(44 * var(--u));top:calc(565 * var(--u));width:calc(314 * var(--u));height:calc(58 * var(--u));}
.reward-modal__code-label{display:none;}
.reward-modal__codebox{inset:0;border-radius:calc(16 * var(--u));background:#0a0c10;border:calc(2 * var(--u)) dashed #36383f;}
.reward-modal__code{left:calc(20 * var(--u));top:calc(16 * var(--u));max-width:calc(190 * var(--u));overflow:hidden;text-overflow:ellipsis;font:700 calc(18 * var(--u))/calc(26 * var(--u)) var(--mont);color:#eae9e4;letter-spacing:.02em;user-select:all;}
.reward-modal__copy{left:calc(216 * var(--u));top:calc(12 * var(--u));width:calc(77 * var(--u));height:calc(34 * var(--u));border-radius:calc(10 * var(--u));background:#2d2f35;transition:background-color .15s ease;}
.reward-modal__copy-text{left:0;right:0;top:calc(6 * var(--u));text-align:center;font-weight:700;font-size:calc(14 * var(--u));line-height:calc(22 * var(--u));color:var(--text);}
@media (hover:hover){ .reward-modal__copy:not(:disabled):hover{background:#3a3d45;} }
.reward-modal__copy.is-copied{animation:key-pop .45s cubic-bezier(.2,1.5,.4,1) both;background:#3b2a07;}
/* «استفاده از جایزه» — 314 × 44 at 44,635, #ff9000 → #fc4900, radius 14; Black 22 white */
.reward-modal__buy{left:calc(44 * var(--u));top:calc(635 * var(--u));width:calc(314 * var(--u));height:calc(44 * var(--u));border-radius:calc(14 * var(--u));background:linear-gradient(90deg,var(--orange),var(--orange-deep));box-shadow:0 calc(8 * var(--u)) calc(22 * var(--u)) rgba(252,73,0,.25);transition:filter .15s ease;}
.reward-modal__buy-text{left:0;right:0;top:calc(5 * var(--u));text-align:center;font-weight:900;font-size:calc(22 * var(--u));line-height:calc(34 * var(--u));color:#fff;}
.reward-modal__buy:not(:disabled):active{scale:.985;filter:brightness(.92);}
@media (hover:hover){ .reward-modal__buy:not(:disabled):hover{filter:brightness(1.07);} }
.reward-modal__list{left:calc(101 * var(--u));top:calc(693 * var(--u));width:calc(200 * var(--u));height:calc(30 * var(--u));}
.reward-modal__list-text{left:0;right:0;top:calc(4 * var(--u));text-align:center;font-weight:700;font-size:calc(14 * var(--u));line-height:calc(22 * var(--u));color:#b5b5bd;}
.reward-modal__list:hover .reward-modal__list-text{color:var(--orange);}
.reward-modal__expiry{left:0;width:calc(402 * var(--u));top:calc(724 * var(--u));text-align:center;font-weight:600;font-size:calc(9.5 * var(--u));line-height:calc(15 * var(--u));color:#77757f;}
/* An expired or used code (data-state="expired") */
.reward-modal[data-state="expired"] .reward-modal__deadline{background:#232327;box-shadow:inset 0 0 0 calc(1.5 * var(--u)) #3a3a42;}
.reward-modal[data-state="expired"] .reward-modal__left{color:#77757f;background:#18181b;}
.reward-modal[data-state="expired"] .reward-modal__code{color:#6b7280;text-decoration:line-through;user-select:none;}
.reward-modal[data-state="expired"] :is(.reward-modal__copy,.reward-modal__buy){filter:grayscale(1);opacity:.45;cursor:not-allowed;}
.reward-modal[data-state="expired"] .reward-modal__expiry{color:#f87171;}

/* The sequence: intro shows the opening screen (the chest shakes, or the gold film plays), open
   shows the card. app.js switches the phase; nothing here changes its timing. */
.reward-modal[data-phase]{animation:rm-fade .2s ease-out both;}
.reward-modal[data-phase="closing"]{animation:rm-fade-out .2s ease-in both;}
.reward-modal[data-phase="intro"] > :not(.reward-modal__opening){visibility:hidden;}
.reward-modal:not([data-phase="intro"]) .reward-modal__opening{animation:rm-fade-out .22s ease-in both;}
.reward-modal[data-phase="intro"] .reward-modal__opening > :not(.reward-modal__video){animation:rm-rise .3s cubic-bezier(.2,.8,.2,1) both;}
.reward-modal[data-phase="intro"] .reward-modal__chest{animation:rm-pop .32s cubic-bezier(.18,1.3,.4,1) both,rm-shake .55s .28s ease-in-out both;}
/* the code is still being created in the order service: the chest keeps shaking until it is confirmed */
.reward-modal[data-phase="intro"][data-waiting] .reward-modal__chest{animation:rm-pop .32s cubic-bezier(.18,1.3,.4,1) both,rm-shake .55s .28s ease-in-out infinite;}
.reward-modal[data-phase="open"] :is(.reward-modal__card,.reward-modal__close){animation:rm-pop .38s cubic-bezier(.18,1.3,.4,1) both;transform-origin:50% 40%;}
.reward-modal[data-phase="open"] .reward-modal__flash{animation:rm-flash .6s ease-out both;}
.reward-modal[data-phase="open"] .reward-modal__chest-open{animation:rm-lid .55s cubic-bezier(.2,1.45,.4,1) both;}
.reward-modal[data-phase="open"] .reward-modal__confetti{animation:rm-fade .6s ease-out both;}
.reward-modal[data-phase="open"] :is(.reward-modal__badge,.reward-modal__title,.reward-modal__amount,.reward-modal__desc,.reward-modal__deadline,.reward-modal__code-row,.reward-modal__buy,.reward-modal__list,.reward-modal__expiry){animation:rm-rise .4s cubic-bezier(.2,.8,.2,1) both;}
.reward-modal[data-phase="open"] .reward-modal__badge{animation-delay:.1s;}
.reward-modal[data-phase="open"] .reward-modal__title{animation-delay:.14s;}
.reward-modal[data-phase="open"] .reward-modal__amount{animation-delay:.18s;}
.reward-modal[data-phase="open"] .reward-modal__desc{animation-delay:.22s;}
.reward-modal[data-phase="open"] .reward-modal__deadline{animation-delay:.27s;}
.reward-modal[data-phase="open"] .reward-modal__code-row{animation-delay:.08s;}  /* the code first */
.reward-modal[data-phase="open"] .reward-modal__buy{animation-delay:.37s;}
.reward-modal[data-phase="open"] .reward-modal__list{animation-delay:.42s;}
.reward-modal[data-phase="open"] .reward-modal__expiry{animation-delay:.46s;}
@keyframes rm-fade{from{opacity:0;}to{opacity:1;}}
@keyframes rm-fade-out{from{opacity:1;}to{opacity:0;}}
@keyframes rm-pop{from{opacity:0;scale:.86;}to{opacity:1;scale:1;}}
@keyframes rm-shake{0%,100%{rotate:0deg;scale:1;}15%{rotate:-4deg;}30%{rotate:4deg;scale:1.03;}45%{rotate:-6deg;}60%{rotate:6deg;scale:1.06;}75%{rotate:-7deg;scale:1.08;}90%{rotate:3deg;scale:1.1;}}
@keyframes rm-lid{0%{opacity:0;scale:.55;translate:0 calc(6 * var(--u));}60%{opacity:1;scale:1.14;translate:0 calc(-3 * var(--u));}100%{opacity:1;scale:1;translate:0 0;}}
@keyframes rm-flash{0%{opacity:0;scale:.3;}25%{opacity:1;}100%{opacity:0;scale:1.9;}}
@keyframes rm-rise{from{opacity:0;translate:0 calc(10 * var(--u));}to{opacity:1;translate:0 0;}}
@media (prefers-reduced-motion:reduce){
  .reward-modal *,.reward-modal{animation-duration:.01ms!important;animation-delay:0s!important;}
  .reward-modal__video{display:none;}
}

/* ---------------- 15. FAQ (Page 1 — FAQ) ---------------- */

.faq-title,.codes-title,.top-title{left:calc(60 * var(--u));width:calc(282 * var(--u));top:calc(77 * var(--u));text-align:center;font-weight:800;font-size:calc(22 * var(--u));line-height:calc(34 * var(--u));color:var(--text);pointer-events:none;}
/* Questions from y 130, 362 wide at x 20, 12 apart; the list scrolls above the navigation. */
.faq-list{left:0;top:calc(130 * var(--u));width:calc(402 * var(--u));bottom:calc(70 * var(--u));padding:0 calc(20 * var(--u)) calc(20 * var(--u));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
.faq-list::-webkit-scrollbar{display:none;}
/* One question: a 52 header row, then the answer row that grows from 0 to its content (0fr → 1fr). */
.faq-item{position:relative;display:grid;grid-template-rows:calc(52 * var(--u)) 0fr;margin-bottom:calc(12 * var(--u));transition:grid-template-rows .32s cubic-bezier(.2,.8,.2,1),scale .12s ease-out;}
.faq-item.is-open{grid-template-rows:calc(52 * var(--u)) 1fr;}
.faq-item:has(.faq-item__head:active){scale:.985;}
/* closed: #151519, 1 #a9a7b3, radius 14 · open: #191000 90 % → #2e2412 95 %, 1.5 #ff9000, radius 15 */
.faq-item__card{inset:0;border-radius:calc(14 * var(--u));background:var(--surface);box-shadow:inset 0 0 0 calc(1 * var(--u)) var(--line-3);transition:background-color .25s ease,box-shadow .25s ease;}
.faq-item.is-open .faq-item__card{border-radius:calc(15 * var(--u));background:linear-gradient(to bottom,rgba(25,16,0,.9),rgba(46,36,18,.95));box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--orange);}
.faq-item__divider{left:calc(14 * var(--u));right:calc(14 * var(--u));top:calc(44 * var(--u));height:calc(1.5 * var(--u));border-radius:calc(1 * var(--u));background:var(--orange);opacity:0;scale:.6 1;transform-origin:100% 50%;transition:opacity .25s ease,scale .32s cubic-bezier(.2,.8,.2,1);}
.faq-item.is-open .faq-item__divider{opacity:1;scale:1 1;}
.faq-item__head{left:0;top:0;width:100%;height:calc(52 * var(--u));border-radius:calc(14 * var(--u));}
.faq-item__head[aria-disabled]{cursor:default;}
.faq-item__dot{right:calc(14 * var(--u));top:calc(23 * var(--u));width:calc(6 * var(--u));height:calc(6 * var(--u));border-radius:50%;background:#64646e;transition:background-color .25s ease,translate .3s cubic-bezier(.2,.8,.2,1);}
.faq-item.is-open .faq-item__dot{background:var(--orange);translate:0 calc(-4 * var(--u));}
.faq-item__q{right:calc(26 * var(--u));top:calc(15 * var(--u));max-width:calc(304 * var(--u));overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:calc(13 * var(--u));line-height:calc(22 * var(--u));color:#e2e8f0;transition:color .25s ease,translate .3s cubic-bezier(.2,.8,.2,1);}
.faq-item.is-open .faq-item__q{color:#fff;translate:0 calc(-4 * var(--u));}
.faq-item__arrow{left:calc(12 * var(--u));top:calc(17 * var(--u));width:calc(18 * var(--u));height:calc(18 * var(--u));background:var(--muted);-webkit-mask:url('../assets/blackfriday/chevron.svg') center/contain no-repeat;mask:url('../assets/blackfriday/chevron.svg') center/contain no-repeat;transition:rotate .32s cubic-bezier(.2,.8,.2,1),background-color .25s ease,translate .3s cubic-bezier(.2,.8,.2,1);}
.faq-item.is-open .faq-item__arrow{rotate:180deg;background:#fff;translate:0 calc(-4 * var(--u));}
/* Answer — Medium 12.5 #a9a7b3, justified, 322 wide; 14 inside the card. */
.faq-item__panel{position:relative;grid-row:2;min-height:0;overflow:hidden;}
.faq-item__inner{position:relative;padding:0 calc(14 * var(--u)) calc(14 * var(--u));}
.faq-item__a{position:relative;white-space:normal;text-align:justify;text-align-last:right;font-weight:500;font-size:calc(12.5 * var(--u));line-height:calc(19 * var(--u));color:var(--muted);opacity:0;translate:0 calc(-4 * var(--u));transition:opacity .2s ease,translate .3s cubic-bezier(.2,.8,.2,1);}
.faq-item.is-open .faq-item__a{opacity:1;translate:0 0;transition-delay:.06s;}
.frame--faq.is-entering :is(.faq-back,.faq-title,.faq-item){animation:vault-rise .42s cubic-bezier(.2,.8,.2,1) both;}
.frame--faq.is-entering .faq-title{animation-delay:.03s;}
.frame--faq.is-entering .faq-item:nth-child(1){animation-delay:.07s;}
.frame--faq.is-entering .faq-item:nth-child(2){animation-delay:.11s;}
.frame--faq.is-entering .faq-item:nth-child(3){animation-delay:.15s;}
.frame--faq.is-entering .faq-item:nth-child(4){animation-delay:.19s;}

/* ---------------- 16. Coupons (Page 1 — List of Prizes) ---------------- */

/* The shared deadline banner is replaced by each card's own countdown. */
.codes-deadline{display:none!important;}
.codes-list{left:0;top:calc(130 * var(--u));width:calc(402 * var(--u));bottom:calc(70 * var(--u));padding:0 calc(20 * var(--u)) calc(24 * var(--u));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;}
.codes-list::-webkit-scrollbar{display:none;}
.codes-empty{left:0;width:calc(402 * var(--u));top:calc(425 * var(--u));text-align:center;font-weight:800;font-size:calc(20 * var(--u));line-height:calc(31 * var(--u));color:var(--text);}
/* One code — 362 wide, #24242c, 1.5 #a9a7b3, radius 16 (1464:532). A grid: the chest icon on the
   right of the two title lines; then the details line, the countdown (48), the code (38) and the
   shop button (35), 8 apart. */
.coupon{position:relative;display:grid;grid-template-columns:calc(40 * var(--u)) 1fr;grid-template-rows:auto auto auto calc(56 * var(--u)) calc(46 * var(--u)) calc(43 * var(--u));column-gap:calc(8 * var(--u));row-gap:0;margin-bottom:calc(10 * var(--u));padding:calc(14 * var(--u)) calc(15 * var(--u)) calc(15 * var(--u));border-radius:calc(16 * var(--u));background:var(--surface-2);box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--line-3);--c:var(--gold);}
.coupon[data-tier="bronze"]{--c:var(--bronze);}
.coupon[data-tier="diamond"]{--c:var(--diamond);}
.coupon > *{position:relative;}
.coupon__card,.coupon__badge{display:none;}
.coupon__medal{grid-column:1;grid-row:1 / 3;width:calc(40 * var(--u));height:calc(40 * var(--u));object-fit:contain;}
.coupon__tier{grid-column:2;grid-row:1;font-weight:800;font-size:calc(14 * var(--u));line-height:calc(22 * var(--u));color:var(--c);}
.coupon__title{grid-column:2;grid-row:2;white-space:normal;font-weight:800;font-size:calc(10 * var(--u));line-height:calc(16 * var(--u));color:var(--text);}
.coupon__meta{grid-column:1 / -1;grid-row:3;margin-top:calc(6 * var(--u));white-space:normal;font-weight:600;font-size:calc(9.5 * var(--u));line-height:calc(15 * var(--u));color:var(--muted);}
.coupon__meta > span{position:static;white-space:normal;}
/* The live card's time left is shown by the countdown blocks; the line keeps the code's terms. */
.coupon--active .coupon__date{display:none;}
.coupon--active .coupon__percent:not(:empty)::before{content:"تخفیف: ";}
.coupon--active .coupon__meta:has(.coupon__percent:empty):has(.coupon__min:empty){display:none;}
/* The countdown — 333 × 48, #151519, 2 #36383f, radius 14 */
.coupon__clock{grid-column:1 / -1;grid-row:4;margin-top:calc(8 * var(--u));height:calc(48 * var(--u));display:flex;align-items:center;justify-content:space-between;padding:0 calc(14 * var(--u)) 0 calc(15 * var(--u));border-radius:calc(14 * var(--u));background:var(--surface);box-shadow:inset 0 0 0 calc(2 * var(--u)) #36383f;}
.coupon__clock > *,.coupon__clock * {position:static;}
.coupon__clock-label{display:flex;flex-direction:column;font-weight:800;font-size:calc(10 * var(--u));line-height:calc(16 * var(--u));color:var(--red);}
.coupon__clock-label small{font-weight:500;font-size:calc(9 * var(--u));line-height:calc(14 * var(--u));color:var(--muted);}
.coupon__clock-digits{display:flex;align-items:flex-start;gap:calc(6 * var(--u));}
.coupon__clock-digits span{display:flex;flex-direction:column;align-items:center;}
.coupon__clock-digits b{min-width:calc(22 * var(--u));text-align:center;font-weight:800;font-size:calc(18 * var(--u));line-height:calc(24 * var(--u));color:var(--red);font-variant-numeric:tabular-nums;}
.coupon__clock-digits i{font-style:normal;font-weight:800;font-size:calc(8 * var(--u));line-height:calc(10 * var(--u));color:var(--muted);}
.coupon__clock-digits em{font-style:normal;font-weight:800;font-size:calc(18 * var(--u));line-height:calc(22 * var(--u));color:var(--red-line);}
/* The code — 333 × 38, #0a0c10, 2 #36383f, radius 14; Montserrat Bold 14; «کپی کد» 65 × 26 #2d2f35 */
.coupon__codebox{grid-column:1 / -1;grid-row:5;margin-top:calc(8 * var(--u));border-radius:calc(14 * var(--u));background:#0a0c10;box-shadow:inset 0 0 0 calc(2 * var(--u)) #36383f;}
.coupon__code{grid-column:1 / -1;grid-row:5;margin-top:calc(8 * var(--u));justify-self:end;align-self:center;margin-left:calc(12 * var(--u));max-width:calc(220 * var(--u));overflow:hidden;text-overflow:ellipsis;font:700 calc(14 * var(--u))/calc(20 * var(--u)) var(--mont);color:#eae9e4;user-select:all;}
.coupon__copy{grid-column:1 / -1;grid-row:5;margin-top:calc(8 * var(--u));justify-self:start;align-self:center;margin-right:calc(6 * var(--u));width:calc(65 * var(--u));height:calc(26 * var(--u));border-radius:calc(10 * var(--u));background:#2d2f35;transition:background-color .15s ease;}
.coupon__copy-text{position:static;display:flex;align-items:center;justify-content:center;gap:calc(3 * var(--u));font-weight:700;font-size:calc(13 * var(--u));line-height:calc(26 * var(--u));color:var(--text);}
@media (hover:hover){ .coupon__copy:not(:disabled):hover{background:#3a3d45;} }
.coupon__copy.is-copied{animation:key-pop .45s cubic-bezier(.2,1.5,.4,1) both;background:#3b2a07;}
/* «ورود به نامبرلند و خرید با تخفیف» — 333 × 35, #ff9000, radius 14; ExtraBold 18 white */
.coupon__buy{grid-column:1 / -1;grid-row:6;margin-top:calc(8 * var(--u));height:calc(35 * var(--u));border-radius:calc(14 * var(--u));background:var(--orange);transition:filter .15s ease,background-color .15s ease;}
.coupon__buy-text{left:0;right:0;top:calc(3 * var(--u));text-align:center;font-weight:800;font-size:calc(18 * var(--u));line-height:calc(29 * var(--u));color:#fff;}
.coupon__buy:not(:disabled):active{scale:.985;background:var(--orange-down);}
@media (hover:hover){ .coupon__buy:not(:disabled):hover{filter:brightness(1.07);} }
.coupon .emoji-inline{display:inline-block;position:static;width:calc(10 * var(--u));height:calc(10 * var(--u));}
/* Spent (1464:502): «منقضی شد» in red at the top-left, the countdown at zero, the code row red with
   «مهلت استفاده به اتمام رسید», everything under a 40 % black veil. */
.coupon--expired::after{content:'';position:absolute;inset:0;border-radius:inherit;background:rgba(4,4,4,.4);pointer-events:none;}
.coupon__badge-text{grid-column:2;grid-row:1;justify-self:end;display:flex;align-items:center;gap:calc(3 * var(--u));font-weight:800;font-size:calc(10 * var(--u));line-height:calc(22 * var(--u));color:var(--red);}
.coupon__badge-text img{position:static;}
.coupon--expired .coupon__clock-digits b{color:#6b2833;}
.coupon--expired .coupon__codebox{background:var(--red-bg);box-shadow:inset 0 0 0 calc(2 * var(--u)) var(--red-line);}
.coupon--expired .coupon__code{display:none;}
.coupon__hidden{grid-column:1 / -1;grid-row:5;margin-top:calc(8 * var(--u));justify-self:end;align-self:center;margin-left:calc(12 * var(--u));}
.coupon__hidden-text{position:static;font-weight:800;font-size:calc(14 * var(--u));line-height:calc(22 * var(--u));color:var(--red);}
.coupon--expired .coupon__copy{background:var(--red-line);cursor:not-allowed;}
.coupon--expired .coupon__buy{background:var(--orange-down);opacity:.75;cursor:not-allowed;}
.coupon--expired .coupon__buy-text{color:rgba(255,255,255,.55);}

.frame--codes.is-entering :is(.codes-back,.codes-title,.coupon){animation:vault-rise .42s cubic-bezier(.2,.8,.2,1) both;}
.frame--codes.is-entering .coupon:nth-child(1){animation-delay:.08s;}
.frame--codes.is-entering .coupon:nth-child(2){animation-delay:.13s;}
.frame--codes.is-entering .coupon:nth-child(3){animation-delay:.18s;}
.frame--codes.is-entering .coupon:nth-child(n+4){animation-delay:.23s;}
/* A code that expires while the screen is open fades into its expired card. */
.coupon.is-expiring{animation:coupon-expire .5s ease both;}
@keyframes coupon-expire{from{opacity:.3;scale:.98;}to{opacity:1;scale:1;}}

/* ---------------- 17. Leaderboard (Page 1 — Top Picks) ---------------- */

.top-sub{left:0;width:calc(402 * var(--u));top:calc(113 * var(--u));text-align:center;font-weight:600;font-size:calc(12 * var(--u));line-height:calc(19 * var(--u));color:var(--muted);}
/* Everything between the title and «بازی کن و رکوردت رو بشکن» scrolls. */
.top-scroll{left:0;top:calc(138 * var(--u));width:calc(402 * var(--u));bottom:calc(150 * var(--u));padding:0 calc(20 * var(--u)) calc(16 * var(--u));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;-webkit-mask:linear-gradient(to bottom,#000 calc(100% - 18 * var(--u)),transparent);mask:linear-gradient(to bottom,#000 calc(100% - 18 * var(--u)),transparent);}
.top-scroll::-webkit-scrollbar{display:none;}
.top-scroll > *{position:relative;}
/* 1434:18 — the podium 362 × 210; names SemiBold 12 #f8f3ea and times Medium 10 #ffbb6d under each step */
.podium{width:calc(362 * var(--u));height:calc(250 * var(--u));}
.podium__art{left:0;top:0;width:calc(362 * var(--u));height:calc(210 * var(--u));object-fit:contain;}
.podium__spot{top:calc(210 * var(--u));width:calc(100 * var(--u));display:flex;flex-direction:column;align-items:center;}
.podium__spot > span{position:static;max-width:100%;overflow:hidden;text-overflow:ellipsis;}
.podium__spot--2{left:calc(27 * var(--u));}
.podium__spot--1{left:calc(130.5 * var(--u));}
.podium__spot--3{left:calc(234.5 * var(--u));}
.podium__name{font-weight:600;font-size:calc(12 * var(--u));line-height:calc(19 * var(--u));color:#f8f3ea;}
.podium__name[dir="ltr"]{font-family:var(--yekan);letter-spacing:.01em;}
.podium__time{font-weight:500;font-size:calc(10 * var(--u));line-height:calc(16 * var(--u));color:#ffbb6d;}
.top-rule{display:block;height:calc(1.5 * var(--u));margin:calc(6 * var(--u)) calc(10 * var(--u)) calc(12 * var(--u));background:var(--line);}
/* 1434:48 — 362 × 104, #311c00 80 %, 1.5 #ff9000, radius 16 */
.top-me{height:calc(104 * var(--u));margin-bottom:calc(14 * var(--u));}
.top-me__card{inset:0;border-radius:calc(16 * var(--u));background:rgba(49,28,0,.8);box-shadow:inset 0 0 0 calc(1.5 * var(--u)) var(--orange),0 0 calc(30 * var(--u)) rgba(255,144,0,.12);}
.top-me__avatar{right:calc(13 * var(--u));top:calc(11 * var(--u));width:calc(39 * var(--u));height:calc(37 * var(--u));border-radius:calc(12 * var(--u));background:var(--surface);}
.top-me__avatar-text{right:calc(13 * var(--u));top:calc(21 * var(--u));width:calc(39 * var(--u));text-align:center;font-weight:800;font-size:calc(11 * var(--u));line-height:calc(17 * var(--u));color:var(--muted);}
.top-me__heading{right:calc(59 * var(--u));top:calc(12 * var(--u));font-weight:700;font-size:calc(12 * var(--u));line-height:calc(18 * var(--u));color:#f5efe8;}
.top-me__phone{right:calc(59 * var(--u));top:calc(32 * var(--u));font:400 calc(11 * var(--u))/calc(16 * var(--u)) var(--yekan);color:#97969c;}
.top-me__rank{left:calc(14 * var(--u));top:calc(14 * var(--u));font-weight:700;font-size:calc(16 * var(--u));line-height:calc(26 * var(--u));color:var(--orange-deep);}
.top-me__rule{left:calc(14 * var(--u));right:calc(14 * var(--u));top:calc(57 * var(--u));height:calc(1.5 * var(--u));background:var(--orange);opacity:.55;}
.top-me__label{right:calc(14 * var(--u));top:calc(71 * var(--u));font-weight:400;font-size:calc(11 * var(--u));line-height:calc(17 * var(--u));color:#aaa5a0;}
.top-me__best{left:calc(14 * var(--u));top:calc(66 * var(--u));font-weight:700;font-size:calc(17 * var(--u));line-height:calc(26 * var(--u));color:var(--text);}
.top-me__best.is-new{animation:key-pop .5s .3s cubic-bezier(.2,1.5,.4,1) both;color:var(--amber);}
/* The campaign-end grand prizes — «Page 1 — Top Picks» (edit/2cdb9c32…png): the trophy over its light rays,
   «۳ جایزه برای ۳ نفر برتر» in white with «۳ نفر برتر» in gold, then the three account tiles by rank
   (1st on the right, RTL). Logos keep their own colours and square ratio. */
.grand{display:block;margin-bottom:calc(16 * var(--u));padding-bottom:calc(14 * var(--u));overflow:hidden;border-radius:calc(16 * var(--u));background:#100d08;border:calc(1.5 * var(--u)) solid var(--line);}
.grand *{position:static;}
.grand__hero{display:block;width:100%;height:auto;-webkit-mask:linear-gradient(to bottom,#000 72%,transparent);mask:linear-gradient(to bottom,#000 72%,transparent);}
.grand__title{display:block;margin:calc(-16 * var(--u)) calc(8 * var(--u)) 0;text-align:center;font-weight:900;font-size:calc(25 * var(--u));line-height:calc(38 * var(--u));color:var(--text);}
.grand__accent{color:#ffd042;}
.grand__date{display:block;margin-top:calc(2 * var(--u));text-align:center;font-weight:600;font-size:calc(10 * var(--u));line-height:calc(16 * var(--u));color:var(--muted);}
.grand__list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:calc(10 * var(--u));margin:calc(14 * var(--u)) 0 0;padding:0 calc(12 * var(--u));list-style:none;}
.grand__item{display:flex;flex-direction:column;align-items:center;gap:calc(5 * var(--u));text-align:center;}
.grand__logo{display:block;width:100%;height:auto;aspect-ratio:1 / 1;object-fit:contain;}
.grand__rank{display:flex;align-items:center;gap:calc(3 * var(--u));margin-top:calc(2 * var(--u));font-weight:700;font-size:calc(11 * var(--u));line-height:calc(17 * var(--u));color:var(--muted);}
.grand__rank img{width:calc(14 * var(--u));height:calc(14 * var(--u));}
.grand__prize{font-family:var(--inter);font-weight:700;font-size:calc(10.5 * var(--u));line-height:calc(15 * var(--u));color:var(--orange);white-space:nowrap;}
/* «جدول قهرمانان» Bold 17 · «بر اساس بهترین زمان بقا» Regular 9 */
.top-table-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:calc(10 * var(--u));}
.top-table-head > *{position:static;}
.top-table-title{font-weight:700;font-size:calc(17 * var(--u));line-height:calc(26 * var(--u));color:#f3efea;}
.top-table-note{font-weight:400;font-size:calc(9 * var(--u));line-height:calc(14 * var(--u));color:#8d898b;}
/* Ranked rows (1434:122) — 362 × 46, #24242c, radius 12, 12 apart: the rank (Bold 17 #ffb800),
   name and phone, the key won, the time. The first three stand on the podium instead. */
.top-list{position:relative;margin:0;padding:0;list-style:none;counter-reset:rank 3;}
.top-row{position:relative;height:calc(46 * var(--u));margin-bottom:calc(12 * var(--u));border-radius:calc(12 * var(--u));background:var(--surface-2);counter-increment:rank;}
.top-row[data-rank="1"],.top-row[data-rank="2"],.top-row[data-rank="3"]{display:none;}
.top-row::before{content:counter(rank,persian);position:absolute;right:calc(14 * var(--u));top:calc(10 * var(--u));min-width:calc(14 * var(--u));text-align:center;font-weight:700;font-size:calc(17 * var(--u));line-height:calc(26 * var(--u));color:var(--amber);}
.top-row__card,.top-row__medal,.top-row__label{display:none;}
.top-row__name{right:calc(40 * var(--u));top:calc(5 * var(--u));display:flex;flex-direction:column;align-items:flex-start;}
.top-row__name > *{position:static;}
.top-row__nick{font-weight:700;font-size:calc(12 * var(--u));line-height:calc(19 * var(--u));color:#f0ebe5;}
.top-row__nick:empty{display:none;}
.top-row__phone{font:400 calc(10 * var(--u))/calc(16 * var(--u)) var(--yekan);color:var(--muted);}
.top-row__nick:empty + .top-row__phone{font-size:calc(12 * var(--u));line-height:calc(36 * var(--u));color:#f0ebe5;font-weight:700;}
/* The key won: the Figma key glyph in the tier colour (the word stays for screen readers). */
.top-row__key{left:calc(150 * var(--u));top:calc(15 * var(--u));width:calc(16 * var(--u));height:calc(16 * var(--u));overflow:hidden;font-size:0;color:transparent;}
.top-row__key::before{content:'';position:absolute;inset:0;background:#5d5b66;-webkit-mask:url('../assets/blackfriday/key-outline.svg') center/contain no-repeat;mask:url('../assets/blackfriday/key-outline.svg') center/contain no-repeat;}
.top-row__key:has(.top-row__tier[data-tier="bronze"])::before{background:var(--bronze);}
.top-row__key:has(.top-row__tier[data-tier="gold"])::before{background:var(--gold);}
.top-row__key:has(.top-row__tier[data-tier="diamond"])::before{background:var(--diamond);}
.top-row__key > *{display:none;}
.top-row__time{left:calc(19 * var(--u));top:calc(10 * var(--u));font-weight:700;font-size:calc(16 * var(--u));line-height:calc(26 * var(--u));color:#ebe7e0;}
.top-empty{position:relative;padding:calc(20 * var(--u)) 0;text-align:center;white-space:normal;font-weight:600;font-size:calc(14 * var(--u));line-height:calc(22 * var(--u));color:var(--muted);}
/* «بازی کن و رکوردت رو بشکن» — 362 × 52, 18 above the navigation; Black 24 */
.top-cta{left:calc(20 * var(--u));top:auto;bottom:calc(88 * var(--u));width:calc(362 * var(--u));height:calc(52 * var(--u));}
.top-cta .cta__text{font-size:calc(24 * var(--u));line-height:calc(37 * var(--u));}
.frame--top.is-entering :is(.top-back,.top-title,.top-sub,.podium,.top-me,.grand,.top-cta){animation:vault-rise .42s cubic-bezier(.2,.8,.2,1) both;}
.frame--top.is-entering .podium{animation-delay:.05s;}
.frame--top.is-entering .top-me{animation-delay:.1s;}
.frame--top.is-entering .grand{animation-delay:.14s;}
.frame--top.is-entering .top-cta{animation-delay:.18s;}

/* ================= Gameplay (carried over unchanged from the previous stylesheet) ================= */
/* ---------------- Gameplay readability + the 30-second RUSH phase ----------------
   The backdrop is dimmed and desaturated so the character, the obstacles and the ground line they
   stand on are the brightest things on screen; obstacles and ORBY get a soft outline glow.
   game.js sets data-phase="rush" and --rush (0 → 1 over the 60 s after the 30 s mark) on the screen:
   from 30.0 s the screen edges glow amber, faint speed streaks
   run through the sky and the timer lights up. Nothing here touches the play band. */
.frame--play{--rush:0;}
.play-obstacle{filter:drop-shadow(0 0 calc(4 * var(--u)) rgba(255,176,72,.8));}
/* a soft halo instead of a filter: the character's limbs animate every frame, and a filter would re-render them all */
.play-player::before{content:"";position:absolute;inset:-10% -24%;border-radius:50%;pointer-events:none;background:radial-gradient(closest-side,rgba(70,200,255,.3),rgba(70,200,255,0));}

.frame--play[data-phase="rush"] .play-world::after{content:"";position:absolute;z-index:1;inset:0;pointer-events:none;
  background:radial-gradient(ellipse 85% 70% at 50% 45%,transparent 55%,rgba(255,96,32,.55) 100%);
  opacity:calc(.35 + var(--rush) * .45);animation:play-rush-in 1.3s ease-out;}
.play-rush-lines{display:none;z-index:1;left:0;top:calc(90 * var(--u));width:calc(100% + 200 * var(--u));height:calc(420 * var(--u));pointer-events:none;
  background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(26 * var(--u)),rgba(255,255,255,.07) calc(26 * var(--u)),rgba(255,255,255,.07) calc(27 * var(--u)),transparent calc(27 * var(--u)),transparent calc(61 * var(--u)),rgba(255,255,255,.05) calc(61 * var(--u)),rgba(255,255,255,.05) calc(62 * var(--u)));
  -webkit-mask:repeating-linear-gradient(to right,#000 0,#000 calc(60 * var(--u)),transparent calc(60 * var(--u)),transparent calc(140 * var(--u)));
  mask:repeating-linear-gradient(to right,#000 0,#000 calc(60 * var(--u)),transparent calc(60 * var(--u)),transparent calc(140 * var(--u)));
  -webkit-mask-size:calc(200 * var(--u)) 100%;mask-size:calc(200 * var(--u)) 100%;
  opacity:calc(.5 + var(--rush) * .5);will-change:transform;}
/* game.js moves the lines by the world's distance (PARALLAX.rush), so they run as fast as the game does */
.frame--play[data-phase="rush"] .play-rush-lines{display:block;}

@keyframes play-rush-in{0%{opacity:1;}100%{opacity:calc(.35 + var(--rush) * .45);}}

.frame--play[data-phase="rush"] .play-timer__label{color:#ffb547;}
.frame--play[data-phase="rush"] .play-timer__label::after{content:" · RUSH";}
.frame--play[data-phase="rush"] .play-timer__value{color:#ffd58a;
  text-shadow:0 0 calc((6 + var(--rush) * 8) * var(--u)) rgba(255,140,40,.85);
  animation:play-rush-pop .7s cubic-bezier(.2,1.4,.4,1);}
@keyframes play-rush-pop{0%{transform:scale(1);}35%{transform:scale(1.28);}100%{transform:scale(1);}}
@media (prefers-reduced-motion:reduce){
  .play-rush-lines{visibility:hidden;}
  .frame--play[data-phase="rush"] .play-world::after,.frame--play[data-phase="rush"] .play-timer__value{animation:none;}
}

/* ---------------- Environment layers ----------------
   Far and mid layers are made by game.js (SVG silhouettes and brick walls) between the sky image and the
   ground; motes and streaks run above everything in the world layer. All of it is pointer-transparent
   decoration, well below the obstacles and the character in contrast. */
.env{inset:0;pointer-events:none;}
.env--far{opacity:.85;}
.env--mid{opacity:.82;}
/* near plane: one strip, 402 wide tiles, bottom 6 px tucked under the ground line; dim so it never reads as an obstacle */
.env--near{inset:auto;left:0;top:calc(611 * var(--u));width:calc(804 * var(--u));height:calc(70 * var(--u));background-repeat:repeat-x;background-size:calc(402 * var(--u)) 100%;opacity:.62;will-change:transform;}
.env-group{left:0;top:0;width:0;height:0;will-change:transform;}
.env-part{position:absolute;display:block;}
.env-part svg{display:block;width:100%;height:100%;overflow:visible;}
.env-mote{position:absolute;left:0;top:0;width:calc(var(--sz) * var(--u));height:calc(var(--sz) * var(--u));background:var(--c);opacity:var(--o);will-change:transform;}
.env-streak{position:absolute;left:0;top:0;height:calc(1.5 * var(--u));width:calc(var(--len) * var(--u));opacity:var(--o);background:linear-gradient(to right,rgba(190,170,255,0),rgba(210,195,255,.9));will-change:transform;}
@media (prefers-reduced-motion:reduce){.env--fx{display:none;}}

/* ---------------- The running path: ground strip and pits ----------------
   One stone strip, drawn (not brick): a lit lip, dark strata, a few cracks and crystals. It is 402 wide and
   repeats every 402 while game.js scrolls it with the world. Pits are cut into it by separate elements. */
.play-track{left:0;top:calc(675 * var(--u));width:calc(402 * var(--u));height:calc(199 * var(--u));overflow:hidden;}
.play-track__ground{left:0;top:0;width:calc(1206 * var(--u));height:100%;background:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 402 199%22 preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3ClinearGradient id=%22b%22 x1=%220%22 y1=%220%22 x2=%220%22 y2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%233b2b8f%22/%3E%3Cstop offset=%22.14%22 stop-color=%22%232b1f6b%22/%3E%3Cstop offset=%22.45%22 stop-color=%22%231b1350%22/%3E%3Cstop offset=%221%22 stop-color=%22%23090720%22/%3E%3C/linearGradient%3E%3ClinearGradient id=%22t%22 x1=%220%22 y1=%220%22 x2=%220%22 y2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%23cdb4ff%22/%3E%3Cstop offset=%221%22 stop-color=%22%238d66ff%22/%3E%3C/linearGradient%3E%3ClinearGradient id=%22f%22 x1=%220%22 y1=%220%22 x2=%220%22 y2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%236541e0%22/%3E%3Cstop offset=%221%22 stop-color=%22%233a24a2%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width=%22402%22 height=%22199%22 fill=%22url(%23b)%22/%3E%3Cg fill=%22%238a66ff%22 fill-opacity=%22.07%22%3E%3Cpath d=%22M0 22 L60 20 L130 24 L220 21 L310 25 L402 22 V36 L330 38 L240 35 L150 39 L70 36 L0 38Z%22/%3E%3Cpath d=%22M0 48 L90 46 L170 50 L260 47 L350 50 L402 48 V64 L320 66 L230 63 L140 67 L50 64 L0 66Z%22/%3E%3Cpath d=%22M0 78 L70 76 L160 80 L250 77 L340 80 L402 78 V96 L300 98 L200 95 L100 99 L0 96Z%22/%3E%3Cpath d=%22M0 112 L120 110 L210 114 L300 111 L402 114 V132 L280 134 L180 131 L80 135 L0 132Z%22/%3E%3C/g%3E%3Cg fill=%22%23000%22 fill-opacity=%22.14%22%3E%3Cpath d=%22M0 36 L70 36 L150 39 L240 35 L330 38 L402 36 V40 L0 40Z%22/%3E%3Cpath d=%22M0 64 L50 64 L140 67 L230 63 L320 66 L402 64 V68 L0 68Z%22/%3E%3Cpath d=%22M0 96 L100 99 L200 95 L300 98 L402 96 V101 L0 101Z%22/%3E%3C/g%3E%3Crect width=%22402%22 height=%225%22 fill=%22url(%23t)%22/%3E%3Crect width=%22402%22 height=%221.4%22 fill=%22%23f1e8ff%22/%3E%3Crect y=%225%22 width=%22402%22 height=%228%22 fill=%22url(%23f)%22/%3E%3Cpath d=%22M0 13 H402 V18 L392 15 L378 19 L360 14 L340 18 L318 14 L296 19 L270 14 L248 18 L226 14 L204 19 L180 14 L158 18 L136 14 L112 19 L88 14 L64 18 L40 14 L18 19 L0 15Z%22 fill=%22%23241a68%22/%3E%3Cpath d=%22M0 13.4 H402%22 stroke=%22%239b7bff%22 stroke-opacity=%22.45%22 stroke-width=%221%22/%3E%3Cg stroke=%22%2302010b%22 stroke-opacity=%22.5%22 stroke-width=%221.3%22 fill=%22none%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M58 15 L62 36 L56 56 L61 84%22/%3E%3Cpath d=%22M172 15 L168 32 L175 62 L170 96 L176 128%22/%3E%3Cpath d=%22M296 15 L300 42 L293 74%22/%3E%3Cpath d=%22M362 15 L358 28 L364 48 L360 70%22/%3E%3C/g%3E%3Cg stroke=%22%238a66ff%22 stroke-opacity=%22.16%22 stroke-width=%221%22 fill=%22none%22%3E%3Cpath d=%22M0 34 H92 M114 34 H262 M284 34 H402%22/%3E%3Cpath d=%22M0 62 H44 M72 62 H204 M228 62 H344 M366 62 H402%22/%3E%3Cpath d=%22M0 94 H134 M154 94 H314 M334 94 H402%22/%3E%3Cpath d=%22M0 130 H64 M88 130 H240 M266 130 H402%22/%3E%3C/g%3E%3Cg%3E%3Cpolygon points=%2272,12 74.5,7 77,12%22 fill=%22%233fb6ff%22 opacity=%22.9%22/%3E%3Cpolygon points=%22150,12 152.5,8 155,12%22 fill=%22%23e0489a%22 opacity=%22.85%22/%3E%3Cpolygon points=%22262,12 264.5,7.5 267,12%22 fill=%22%233fb6ff%22 opacity=%22.9%22/%3E%3Cpolygon points=%22341,12 343.5,8 346,12%22 fill=%22%23e0489a%22 opacity=%22.85%22/%3E%3C/g%3E%3Cg opacity=%22.5%22%3E%3Cpolygon points=%22120,199 124,180 128,199%22 fill=%22%233fb6ff%22/%3E%3Cpolygon points=%22126,199 129,188 133,199%22 fill=%22%238f7bff%22/%3E%3Cpolygon points=%22300,199 305,176 310,199%22 fill=%22%23e0489a%22/%3E%3Cpolygon points=%2228,199 31,188 35,199%22 fill=%22%233fb6ff%22/%3E%3C/g%3E%3Cg fill=%22%23d9c8ff%22 opacity=%22.4%22%3E%3Crect x=%2244%22 y=%221.6%22 width=%2226%22 height=%221.2%22/%3E%3Crect x=%22190%22 y=%221.6%22 width=%2240%22 height=%221.2%22/%3E%3Crect x=%22318%22 y=%221.6%22 width=%2222%22 height=%221.2%22/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0/calc(402 * var(--u)) 100%;will-change:transform;}
.play-pits{inset:0;pointer-events:none;}
/* A pit (game.js sets its width and x). Layered so it reads as the ground ending, not a hole punched in a picture:
   a dark shaft that gets darker with depth, two cliff faces with their own rock layers and a faint pink rim light,
   a soft shadow laid on the ground either side (the warning), lit lips at the edge, roots and crystals in the dark.
   The pit's box (width, collision) is untouched; everything below hangs off it. */
.pit{left:0;top:calc(675 * var(--u));height:calc(199 * var(--u));will-change:transform;overflow:visible;}
.pit__void{inset:0;background:
  radial-gradient(ellipse 60% 22% at 50% 100%,rgba(140,80,255,.3),transparent 70%),
  repeating-linear-gradient(to bottom,rgba(130,100,255,.07) 0 1px,transparent 1px calc(23 * var(--u))),
  linear-gradient(to right,rgba(110,80,230,.3),rgba(110,80,230,0) 18%,rgba(110,80,230,0) 82%,rgba(110,80,230,.24)),
  linear-gradient(to bottom,#150e38 0%,#090620 45%,#030211 100%);}
.pit__void::before{content:"";position:absolute;left:0;right:0;top:0;height:calc(30 * var(--u));background:linear-gradient(to bottom,rgba(0,0,0,.62),transparent);}
.pit__void::after{content:"";position:absolute;left:8%;right:8%;top:calc(52 * var(--u));height:calc(70 * var(--u));background:radial-gradient(ellipse 50% 50% at 50% 50%,rgba(120,90,230,.16),transparent 70%);}
.pit__wall{position:absolute;top:0;bottom:0;width:calc(12 * var(--u));background:
  repeating-linear-gradient(to bottom,rgba(255,255,255,.09) 0 1px,transparent 1px calc(17 * var(--u))),
  linear-gradient(to bottom,#3d2c96 0%,#1c1352 42%,#07051b 100%);}
.pit__wall--l{left:0;clip-path:polygon(0 0,100% 0,100% 8%,72% 18%,100% 30%,66% 46%,94% 60%,60% 76%,84% 100%,0 100%);box-shadow:inset -1.5px 0 0 rgba(224,72,154,.4);}
.pit__wall--r{right:0;clip-path:polygon(0 0,100% 0,100% 100%,16% 100%,40% 76%,6% 60%,34% 46%,0 30%,28% 18%,0 8%);box-shadow:inset 1.5px 0 0 rgba(224,72,154,.4);}
.pit__apron{position:absolute;top:0;width:calc(30 * var(--u));height:calc(17 * var(--u));pointer-events:none;}
.pit__apron--l{right:100%;background:linear-gradient(to left,rgba(3,1,14,.55),rgba(3,1,14,0));}
.pit__apron--r{left:100%;background:linear-gradient(to right,rgba(3,1,14,.55),rgba(3,1,14,0));}
.pit__lip{position:absolute;top:calc(-1 * var(--u));width:calc(13 * var(--u));height:calc(16 * var(--u));background:linear-gradient(to bottom,#dcc8ff 0,#8d66ff 2px,#5636cc 6px,#3a24a2 100%);}
.pit__lip--l{left:calc(-4 * var(--u));clip-path:polygon(0 0,100% 0,100% 100%,55% 80%,0 46%);}
.pit__lip--r{right:calc(-4 * var(--u));clip-path:polygon(0 0,100% 0,100% 46%,45% 80%,0 100%);}
.pit__spike{position:absolute;top:calc(15 * var(--u));width:calc(9 * var(--u));height:calc(22 * var(--u));background:linear-gradient(to bottom,#241a66,#0a0724);clip-path:polygon(0 0,100% 0,50% 100%);}
.pit__root{position:absolute;top:calc(15 * var(--u));width:1.4px;height:calc(30 * var(--u));background:linear-gradient(to bottom,rgba(150,120,255,.5),rgba(150,120,255,0));}
.pit__crystal{position:absolute;bottom:calc(6 * var(--u));width:calc(6 * var(--u));height:calc(15 * var(--u));background:linear-gradient(to top,#3a86ff,#8fe3ff);opacity:.5;clip-path:polygon(50% 0,100% 100%,0 100%);}

/* ---------------- Sky (generated by game.js; there is no background image) ----------------
   Fills the whole world layer at any size. A vertical gradient in the game's purples, a horizon glow, a planet with
   the pink rim the design uses, and layers that game.js draws as tiles (stars, two cloud bands) and slides at
   their own slow speeds. Everything is low contrast next to the obstacles and the character. */
.play-sky{inset:0;overflow:hidden;background:
  radial-gradient(ellipse 100% 34% at 50% 79%,rgba(150,95,255,.3),transparent 72%),
  radial-gradient(ellipse 55% 26% at 88% 13%,rgba(120,80,255,.2),transparent 70%),
  linear-gradient(to bottom,#090823 0%,#110d3a 28%,#1b1455 55%,#2a1f74 77%,#251b68 100%);}
.sky__planet{right:calc(-52 * var(--u));top:calc(64 * var(--u));width:calc(200 * var(--u));height:calc(200 * var(--u));border-radius:50%;
  background:radial-gradient(circle at 32% 34%,#3a2a96 0%,#26196c 58%,#170f4a 100%);box-shadow:inset calc(4 * var(--u)) 0 0 rgba(224,72,154,.3),0 0 calc(40 * var(--u)) rgba(120,80,255,.12);opacity:.6;}
.sky__moon{left:calc(300 * var(--u));top:calc(150 * var(--u));width:calc(34 * var(--u));height:calc(34 * var(--u));border-radius:50%;background:radial-gradient(circle at 35% 35%,#2f2382,#1a1250);opacity:.7;}
.sky__layer{left:0;top:0;background-repeat:repeat-x;background-position:0 0;will-change:transform;}
.sky__haze{left:0;right:0;top:calc(500 * var(--u));height:calc(176 * var(--u));background:linear-gradient(to bottom,rgba(150,95,255,0),rgba(150,95,255,.16) 60%,rgba(170,110,255,.3));}

/* ---------------- Progression: stage pulse, warmer horizon, crumbling ground ---------------- */
/* Each new stage: one soft golden pulse at the screen edges (never over the play band), and a horizon that warms a little more. */
.env--pulse{opacity:0;background:radial-gradient(ellipse 88% 72% at 50% 48%,transparent 60%,rgba(255,176,64,.5) 100%);}
.env--pulse.is-on{animation:stage-pulse 1.2s ease-out;}
@keyframes stage-pulse{0%{opacity:0;}18%{opacity:1;}100%{opacity:0;}}
.sky__haze{opacity:calc(1 + var(--stage,0) * .5);}
.sky__haze::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(255,150,80,0),rgba(255,150,80,calc(var(--stage,0) * .16)));}
/* Crumbling ground (a pit that is ground until it opens): cracks first, then the ground falls away with a little dust. */
.pit__crack{position:absolute;left:0;right:0;top:calc(-1 * var(--u));height:calc(19 * var(--u));display:none;pointer-events:none;
  background:
    linear-gradient(90deg,transparent 0 10%,rgba(2,1,11,.9) 10% calc(10% + 2.6px),transparent calc(10% + 2.6px) 33%,rgba(2,1,11,.9) 33% calc(33% + 2.6px),transparent calc(33% + 2.6px) 58%,rgba(2,1,11,.9) 58% calc(58% + 2.6px),transparent calc(58% + 2.6px) 82%,rgba(2,1,11,.9) 82% calc(82% + 2.6px),transparent calc(82% + 2.6px)),
    linear-gradient(90deg,transparent 0 10%,rgba(255,150,190,.9) 10% calc(10% + 1px),transparent calc(10% + 1px) 33%,rgba(255,150,190,.9) 33% calc(33% + 1px),transparent calc(33% + 1px) 58%,rgba(255,150,190,.9) 58% calc(58% + 1px),transparent calc(58% + 1px) 82%,rgba(255,150,190,.9) 82% calc(82% + 1px),transparent calc(82% + 1px)),
    linear-gradient(to bottom,rgba(255,110,150,.7),rgba(255,110,150,0) 55%);
  box-shadow:0 0 calc(8 * var(--u)) rgba(255,110,150,.55);
  animation:crack-pulse .4s ease-in-out infinite alternate;}
.pit__dust{position:absolute;top:calc(4 * var(--u));width:calc(5 * var(--u));height:calc(5 * var(--u));background:#c9b6ff;opacity:0;pointer-events:none;}
.pit.is-cracked .pit__void,.pit.is-cracked .pit__wall,.pit.is-cracked .pit__apron,.pit.is-cracked .pit__lip,.pit.is-cracked .pit__spike,.pit.is-cracked .pit__root,.pit.is-cracked .pit__crystal{visibility:hidden;}
.pit.is-cracked .pit__crack{display:block;}
.pit.is-opening .pit__void,.pit.is-opening .pit__wall{animation:pit-open .3s ease-out backwards;}
.pit.is-opening .pit__dust{animation:pit-dust .55s ease-out both;}
@keyframes pit-open{from{clip-path:inset(0 0 100% 0);}to{clip-path:inset(0);}}
@keyframes pit-dust{0%{opacity:.9;transform:translateY(0);}100%{opacity:0;transform:translateY(calc(52 * var(--u)));}}
@keyframes crack-pulse{from{opacity:.55;}to{opacity:1;}}

/* ---------------- Ambient sky critters (decoration that makes the world feel inhabited; never collidable) ---------------- */
.env--crit{opacity:.85;}
.env-crit{position:absolute;left:0;top:0;will-change:transform;}
.env-crit svg{display:block;width:100%;height:100%;}

/* ---------------- Global STOP (src/control.js): every CSS animation holds its frame; a small badge says so ---------------- */
html[data-control="stop"] *,html[data-control="stop"] *::before,html[data-control="stop"] *::after{animation-play-state:paused !important;}
html[data-control="stop"] body::after{content:"STOP";position:fixed;z-index:2147483647;top:max(12px, env(safe-area-inset-top));left:50%;transform:translateX(-50%);
  padding:4px 14px;border-radius:999px;background:rgba(8,9,14,.82);color:#fff;font:700 13px/1.4 Inter,system-ui,sans-serif;letter-spacing:.12em;pointer-events:none;}



/* ---------------- Responsive fit (phones of every height) ----------------
   app.js measures the screen: --u fills the phone's width (and never lets the 804 px above the
   navigation outgrow the screen), --app-h is its height, and --play-lift (Figma px) is how far the
   game world is raised so the running path sits a fixed distance above the navigation.
   The game screen is exactly one screen tall; the other screens fill the screen. */
.frame--play{height:var(--app-h,100dvh);}
.play-world,.play-stage{top:calc(var(--play-lift,0) * -1 * var(--u));}
.play-track{height:calc(520 * var(--u));}
.play-track__ground{background-size:calc(402 * var(--u)) calc(199 * var(--u));background-color:#090720;}
.play-hint{top:calc((740 - var(--play-lift,0)) * var(--u));}
.play-gameover{height:100%;}
/* iPhone home indicator: the navigation keeps its 70 px and grows a strip under it. */
.frame .tabbar{top:calc(var(--app-h,100dvh) - 70 * var(--u) - env(safe-area-inset-bottom,0px));height:calc(70 * var(--u) + env(safe-area-inset-bottom,0px));}

/* Full screen on every phone. The game screen uses its own unit (app.js --u-play: always the
   phone's full width). When a phone is too short to show the design at full width, the other
   screens are centred on the page's background and the navigation still reaches both edges. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;}
.frame--play{--u:var(--u-play,calc(100vw / 402));}
.frame .tabbar::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:calc((100% - 100vw) / 2);right:calc((100% - 100vw) / 2);background:var(--nav);box-shadow:inset 0 calc(1 * var(--u)) 0 #414149;pointer-events:none;}

/* While a round runs, the game has the whole screen: the navigation slides away and comes back
   when the round ends (or before it starts). */
.frame--play .tabbar{transition:translate .25s ease,opacity .25s ease;}
.frame--play[data-state="playing"] .tabbar{translate:0 110%;opacity:0;pointer-events:none;}
/* «برای پریدن، صفحه رو لمس کن» only until the first tap of each round. */
.play-hint{transition:opacity .2s ease;}
.frame--play[data-tapped] .play-hint,.frame--play[data-state="over"] .play-hint{opacity:0;}
/* WOW / Very Good / New record: just under the timer, clear of the running path and the jumps. */
.play-toast{top:calc(122 * var(--u));}

/* Tablet & desktop: the phone composition at 1:1, centred, lifted off a faint amber glow. */
@media (min-width:500px){
  body{background:radial-gradient(70% 45% at 50% 0%,rgba(255,120,0,.09),transparent 70%),radial-gradient(50% 40% at 50% 100%,rgba(252,73,0,.06),transparent 70%),var(--bg);background-attachment:fixed;}
  .frame{box-shadow:0 0 0 1px #1c1c21,0 30px 90px rgba(0,0,0,.65);}
  .frame--play{box-shadow:none;}
}

/* Reduced motion: the entrance and pop-up animations become instant; the game is unaffected. */
@media (prefers-reduced-motion:reduce){
  .frame.is-entering *,.dialog,.dialog *,.dialog-overlay,.frame--login .overlay,.frame--login .modal,.otp-card,.frame--otp *{animation-duration:.01ms!important;animation-delay:0s!important;}
  .reward-modal__opening-status{animation:none;}
}

/* ================= Black Friday gameplay art =================
   Figma «Urban Orange — Connected City + 6 Parallax Layers» (day) and «Urban Orange — NIGHT —
   3 Sections / 6 Layers»: three connected 402-wide sections looping every 1206 px, six layers —
   01 sky 0.05× · 02 far skyline 0.15× · 03 mid city 0.35× · 04 stores 0.65× · 05 flying cars
   (independent) · 06 ground 1.00×. Placed as the gameplay frames place them (1370:1691 / 1382:3795):
   the city 65 px up at 70 % with a 2.5 blur (baked into the images), the sharp runway in front, the
   runner standing on y 639 — which is the engine's ground line, 675, so city −29 and ground +32.5.
   src/skin.js moves the layers from the game's own scroll; nothing here touches the game's logic.
   The previous generated sky and buildings are hidden; physics, obstacles and pits are unchanged. */
.frame--play .play-sky,.frame--play .env{display:none;}
.frame--play .play-track__ground{background:none;}
.bf-city{inset:0;pointer-events:none;overflow:hidden;}
.bf-city *{position:absolute;}
.bf-sky{left:0;right:0;top:calc(-29 * var(--u));height:calc(1400 * var(--u));}
.bf-sky--day{background:linear-gradient(to bottom,#a69c91 0,#edd0ac calc(874 * var(--u)),#edd0ac);}
.bf-sky--night{background:linear-gradient(to bottom,#111923 0,#29313b calc(874 * var(--u)),#29313b);opacity:0;}
.bf-set{inset:0;}
/* Day → night is driven by the game clock in skin.js (15 s → 40 s): each NIGHT layer fades in over its
   own span — sky first, the street last — so these start hidden and are never animated by CSS. */
.bf-set--night > *{opacity:0;}
/* the dusk: a warm glow on the horizon, strongest in the middle of the change */
.bf-dusk{left:0;right:0;top:calc(-29 * var(--u));height:calc(874 * var(--u));opacity:0;pointer-events:none;
  background:linear-gradient(to bottom,rgba(40,30,70,0) 0,rgba(120,70,110,.28) 38%,rgba(255,128,48,.5) 66%,rgba(255,150,70,.18) 78%,rgba(255,150,70,0) 86%);}
/* a layer is two 1206-wide tiles; skin.js translates it by its own offset, modulo 1206 */
.bf-layer{left:0;width:calc(2412 * var(--u));background-repeat:repeat-x;background-position:0 0;will-change:transform;}
.bf-layer--clouds{top:calc(61 * var(--u));height:calc(136 * var(--u));background-size:calc(1206 * var(--u)) 100%;}
.bf-layer--far{top:calc(233 * var(--u));height:calc(406 * var(--u));background-size:calc(1206 * var(--u)) 100%;}
.bf-layer--mid{top:calc(173 * var(--u));height:calc(472 * var(--u));background-size:calc(1206 * var(--u)) 100%;}
.bf-layer--stores{top:calc(379 * var(--u));height:calc(263 * var(--u));background-size:calc(1206 * var(--u)) 100%;}
.bf-set--day .bf-layer--clouds{background-image:url('../assets/blackfriday/game/city-day-clouds.webp');}
.bf-set--day .bf-layer--far{background-image:url('../assets/blackfriday/game/city-day-far.webp');}
.bf-set--day .bf-layer--mid{background-image:url('../assets/blackfriday/game/city-day-mid.webp');}
.bf-set--day .bf-layer--stores{background-image:url('../assets/blackfriday/game/city-day-stores.webp');}
.bf-set--night .bf-layer--clouds{background-image:url('../assets/blackfriday/game/city-night-clouds.webp');}
.bf-set--night .bf-layer--far{background-image:url('../assets/blackfriday/game/city-night-far.webp');}
.bf-set--night .bf-layer--mid{background-image:url('../assets/blackfriday/game/city-night-mid.webp');}
.bf-set--night .bf-layer--stores{background-image:url('../assets/blackfriday/game/city-night-stores.webp');}
/* 05 — the four Figma flying cars, each crossing on its own lane, speed and direction; the lane
   heights and sizes are the Figma ones (y 239 · 290 · 196 · 265, −29). Paused with the game. */
.bf-car{left:0;height:auto;will-change:transform;animation:bf-fly-right var(--dur) linear var(--delay) infinite;}
.bf-car img{position:static;display:block;width:100%;height:auto;animation:bf-hover 2.4s ease-in-out infinite alternate;}
.bf-car--1{top:calc(210 * var(--u));width:calc(70 * var(--u));--dur:19s;--delay:-6s;}
.bf-car--2{top:calc(261.4 * var(--u));width:calc(42 * var(--u));--dur:27s;--delay:-17s;animation-name:bf-fly-left;}
.bf-car--3{top:calc(167.4 * var(--u));width:calc(59.5 * var(--u));--dur:15s;--delay:-2s;}
.bf-car--4{top:calc(236.2 * var(--u));width:calc(56 * var(--u));--dur:23s;--delay:-12s;animation-name:bf-fly-left;}
.bf-car--2 img,.bf-car--4 img{transform:scaleX(-1);}
.bf-car--2 img{animation-duration:3.1s;}
.bf-car--3 img{animation-duration:1.9s;}
@keyframes bf-fly-right{from{transform:translate3d(calc(-90 * var(--u)),0,0);}to{transform:translate3d(calc(492 * var(--u)),0,0);}}
@keyframes bf-fly-left{from{transform:translate3d(calc(492 * var(--u)),0,0);}to{transform:translate3d(calc(-90 * var(--u)),0,0);}}
@keyframes bf-hover{from{translate:0 calc(-1.5 * var(--u));}to{translate:0 calc(1.5 * var(--u));}}
/* the city at 70 % over the frame's black (the gameplay frames' opacity), above the city and below the runway */
.bf-dim{left:0;right:0;top:calc(-29 * var(--u));height:calc(1400 * var(--u));background:rgba(4,4,4,.3);}
/* 06 — the runway: Figma's seamless «Matched Source» ground (sidewalk, orange line, brick wall),
   its walking line on the engine's ground line, extended downwards for tall screens */
.bf-layer--ground{top:calc(644.5 * var(--u));height:calc(482 * var(--u));background:#2b2c31 url('../assets/blackfriday/game/ground.webp') 0 0/calc(1206 * var(--u)) 100% repeat-x;}
@media (prefers-reduced-motion:reduce){ .bf-car,.bf-car img{animation:none;} .bf-car--1{transform:translate3d(calc(70 * var(--u)),0,0);} .bf-car--3{transform:translate3d(calc(270 * var(--u)),0,0);} .bf-car--2,.bf-car--4{display:none;} }


/* The runner — Figma «Urban Runner — Walk Jump Hit Defeat — 18 Frames». One sprite of 17 frames
   (6 × 3), each the player's box −45…145 × −15…125 design px, every frame fitted so the robot's body
   fills the engine's own body box of that pose (game.js BODY — the hitbox is those numbers, not the
   image). skin.js picks the frame from the pose game.js sets and the stride phase it computes. */
.play-orby,.play-orby-trail{display:none;}
/* The body box: the sprite frame (-45…145 × -15…125), scaled around the feet (46 % 96 %) for squash
   and stretch. Inside it: frame a, frame b blended over it, and the ghost of the pose being left. */
.play-runner-body{left:calc(-45 * var(--u));top:calc(-15 * var(--u));width:calc(190 * var(--u));height:calc(140 * var(--u));transform-origin:46.04% 96.09%;will-change:transform;pointer-events:none;}
.play-runner{inset:0;background:url('../assets/blackfriday/game/runner.webp') 0 0/600% 400% no-repeat;pointer-events:none;}
/* the antenna: same frame, its own layer, rotated around its base by the game's spring (skin.js) */
.play-runner--antenna{background-image:url('../assets/blackfriday/game/runner-antenna.webp');will-change:transform;}
/* Ground contact shadow: under the feet (42.5, 119.5 in the box), held on the ground while the body
   rises (skin.js counter-moves it by the height), smaller and lighter the higher the jump. */
.play-shadow{left:calc(18.5 * var(--u));top:calc(115.5 * var(--u));width:calc(48 * var(--u));height:calc(9 * var(--u));border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.5),rgba(0,0,0,0));transform-origin:50% 50%;will-change:transform,opacity;pointer-events:none;}
/* Landing dust: four puffs kicked back from the feet when the robot touches down */
.play-dust{left:calc(30 * var(--u));top:calc(112 * var(--u));width:0;height:0;pointer-events:none;}
.play-dust i{position:absolute;left:0;top:0;width:calc(9 * var(--u));height:calc(9 * var(--u));border-radius:50%;background:radial-gradient(closest-side,rgba(205,200,195,.75),rgba(205,200,195,0));opacity:0;}
.play-dust.is-on i{animation:dust-puff .5s cubic-bezier(.2,.7,.3,1) both;}
.play-dust.is-on i:nth-child(1){--dx:-22;--dy:-8;}
.play-dust.is-on i:nth-child(2){--dx:-12;--dy:-13;animation-delay:.02s;}
.play-dust.is-on i:nth-child(3){--dx:16;--dy:-9;animation-delay:.03s;}
.play-dust.is-on i:nth-child(4){--dx:28;--dy:-4;animation-delay:.05s;}
@keyframes dust-puff{0%{opacity:.85;transform:translate(0,0) scale(.5);}100%{opacity:0;transform:translate(calc(var(--dx) * 1px * var(--ui-scale,1) - 26px),calc(var(--dy) * 1px)) scale(1.8);}}
@media (prefers-reduced-motion:reduce){.play-dust{display:none;}}

/* Obstacles — the Figma street props, each drawn into an existing obstacle's box. The engine still
   measures every hitbox from the original obstacle images (game.js opaqueBounds), so collisions are
   exactly what they were; only what is painted in the box changes. */
.play-obstacle{filter:drop-shadow(0 calc(2 * var(--u)) calc(2 * var(--u)) rgba(0,0,0,.45));}
.play-obstacle:is([data-node="440:19"],[data-node="440:20"],[data-node="440:24"],[data-node="442:25"],[data-node="440:21"],[data-node="440:22"],[data-node="440:23"],[data-node="440:21T"],[data-node="440:23T"],[data-node="x-pulse"],[data-node="x-hopper"],[data-node="x-skitter"],[data-node="x-swooper"]){object-position:-99999px 0;background:center/100% 100% no-repeat;}
.play-obstacle[data-node="440:19"]{background-image:url('../assets/blackfriday/game/ob-440-19.webp');}
.play-obstacle[data-node="440:20"]{background-image:url('../assets/blackfriday/game/ob-440-20.webp');}
.play-obstacle[data-node="440:24"]{background-image:url('../assets/blackfriday/game/ob-440-24.webp');}
.play-obstacle[data-node="442:25"]{background-image:url('../assets/blackfriday/game/ob-442-25.webp');}
.play-obstacle[data-node="440:21"]{background-image:url('../assets/blackfriday/game/ob-440-21.webp');}
.play-obstacle[data-node="440:22"]{background-image:url('../assets/blackfriday/game/ob-440-22.webp');}
.play-obstacle[data-node="440:23"]{background-image:url('../assets/blackfriday/game/ob-440-23.webp');}
.play-obstacle[data-node="440:21T"]{background-image:url('../assets/blackfriday/game/ob-440-21t.webp');}
.play-obstacle[data-node="440:23T"]{background-image:url('../assets/blackfriday/game/ob-440-23t.webp');}
.play-obstacle[data-node="x-pulse"]{background-image:url('../assets/blackfriday/game/ob-x-pulse.webp');}
.play-obstacle[data-node="x-hopper"]{background-image:url('../assets/blackfriday/game/ob-x-hopper.webp');}
.play-obstacle[data-node="x-skitter"]{background-image:url('../assets/blackfriday/game/ob-x-skitter.webp');}
.play-obstacle[data-node="x-swooper"]{background-image:url('../assets/blackfriday/game/ob-x-swooper.webp');}
/* No Figma counterpart (drone, pendulum, rocket, mine, bomb) and the shards: same shapes, in the orange palette */
.play-obstacle:is([data-node="x-drone"],[data-node="x-pendulum"],[data-node="x-rocket"],[data-node="x-mine"],[data-node="x-bomb"]),.play-particle{filter:hue-rotate(150deg) saturate(1.25) brightness(1.05) drop-shadow(0 calc(2 * var(--u)) calc(2 * var(--u)) rgba(0,0,0,.45));}

/* Pits — Figma «07-Pit S/M/L»: the opening cuts the whole runway (from the sidewalk's top edge,
   28 px above the ground line) with jagged broken edges; the gap itself is unchanged. */
.pit__void{top:calc(-30 * var(--u));background:linear-gradient(to bottom,#0b0f15 0,#05070a 55%,#020203 100%);}
.pit__void::before{height:calc(26 * var(--u));background:linear-gradient(to bottom,rgba(0,0,0,.7),transparent);}
.pit__void::after,.pit__spike,.pit__root,.pit__crystal,.pit__apron{display:none;}
.pit__wall{top:calc(-30 * var(--u));width:calc(6 * var(--u));background:#7c6a57;box-shadow:none;}
.pit__wall--l{clip-path:polygon(0 0,100% 0,60% 9%,100% 17%,45% 30%,85% 44%,40% 58%,80% 74%,35% 88%,70% 100%,0 100%);}
.pit__wall--r{clip-path:polygon(0 0,100% 0,100% 100%,30% 100%,65% 88%,20% 74%,60% 58%,15% 44%,55% 30%,0 17%,40% 9%);}
.pit__lip{top:calc(-31 * var(--u));width:calc(8 * var(--u));height:calc(10 * var(--u));background:linear-gradient(to bottom,#8a8a8f,#5b5c61);}
.pit__lip--l{left:calc(-3 * var(--u));}
.pit__lip--r{right:calc(-3 * var(--u));}
.pit__crack{top:calc(-30 * var(--u));height:calc(34 * var(--u));filter:grayscale(1) brightness(.75);}
.pit__dust{background:#9b9ba3;}

/* RUSH (30 s +) keeps its cue — the screen edges glow amber — but lighter, so the NIGHT city stays
   the Figma night and not a brown haze; the old cyan halo behind the character becomes a faint warm
   glow; the pixel toasts (WOW / New record) take the orange palette. */
.frame--play[data-phase="rush"] .play-world::after{background:radial-gradient(ellipse 92% 78% at 50% 42%,transparent 62%,rgba(255,120,30,.42) 100%);opacity:calc(.25 + var(--rush) * .25);}
.play-player::before{background:radial-gradient(closest-side,rgba(255,170,80,.16),rgba(255,170,80,0));}
.play-toast{filter:grayscale(1) sepia(1) saturate(5) hue-rotate(-12deg) brightness(1.05) drop-shadow(0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(0,0,0,.5));}

/* The round's result is the server's: while it is being recorded the button waits. */
.play-result__btn:disabled{background:var(--orange-down);cursor:progress;}
.play-result[data-waiting] .play-result__title{animation:status-pulse 1.1s ease-in-out infinite;}

/* A tier whose codes the server has run out of: the key is kept, the card says so plainly. */
.chest[data-soldout] .chest__open{background:#3a3a42;}
.chest[data-soldout] .chest__open-text{color:#a9a7b3;}
.chest[data-soldout]::after{content:"فعلاً کدی برای این صندوق نیست — کلیدت محفوظ است";position:absolute;left:calc(12 * var(--u));right:calc(12 * var(--u));bottom:calc(-9 * var(--u));height:calc(18 * var(--u));border-radius:calc(9 * var(--u));background:var(--red-bg);box-shadow:inset 0 0 0 calc(1 * var(--u)) var(--red-line);text-align:center;font-weight:700;font-size:calc(9 * var(--u));line-height:calc(18 * var(--u));color:var(--red);white-space:nowrap;z-index:2;}

/* The live running rig (skin.js): one canvas the size of a sprite frame; while it runs the sprite is hidden. */
.play-runner-rig{position:absolute;inset:0;width:100%;height:100%;visibility:hidden;pointer-events:none;}
.play-runner-body.is-rig .play-runner{visibility:hidden;}
.play-runner-body.is-rig .play-runner-rig{visibility:visible;}

/* ---------------- Shared action button (2026-11-14) ----------------
   Every filled action button on the landing page and its pop-ups — the start CTA, sign-in and OTP
   submit, «بازی مجدد» / «دریافت جایزه», «کپی لینک», the vault's «باز کردن», «استفاده از جایزه» and the
   coupon buttons — uses one solid fill and one label style. Sizes, positions and states (pressed,
   disabled, expired, sold out) stay with each button's own rules above, which are more specific. */
:is(.cta,.login-submit,.otp-submit,.play-result__btn,.chance__copy,.chest__open,.reward-modal__buy,.coupon__buy){background:var(--btn-fill);background-image:none;}
:is(.cta__text,.login-submit__text,.otp-submit__text,.play-result__btn-text,.chance__copy-text,.chest__open-text,.reward-modal__buy-text,.coupon__buy-text){font-family:var(--yekan);font-weight:var(--btn-weight);color:var(--btn-text);}
.chest__open:active{filter:none;background:var(--btn-fill-down);}

/* Content-sized mobile sheets and full-width short-screen layout. */
.frame--landing{min-height:calc(874 * var(--u));padding-bottom:calc(85 * var(--u) + env(safe-area-inset-bottom,0px));}
.frame--landing .dialog-overlay{position:fixed!important;inset:0!important;width:100%;height:100%;border-radius:0;z-index:30;}
.frame--landing .dialog{position:fixed;inset:auto 0 0;margin:auto;width:min(100%,calc(402 * var(--u)));max-height:calc(var(--app-h,100dvh) - env(safe-area-inset-top,0px) - 16px);height:auto;display:flex;flex-direction:column;gap:12px;padding:0 20px calc(24px + env(safe-area-inset-bottom,0px));box-sizing:border-box;background:#24242c;border-radius:24px 24px 0 0;overflow-y:auto;overscroll-behavior:contain;pointer-events:auto;z-index:31;animation:none;transform:translateY(100%);transition:transform .18s ease;}
.frame--landing .dialog.is-open{transform:translateY(0);}
.frame--landing .dialog.is-closing{transform:translateY(100%);pointer-events:auto;}
.frame--landing .dialog>*{position:static;inset:auto;margin:0;grid-area:auto;align-self:auto;justify-self:auto;max-width:100%;}
.frame--landing .dialog .dialog__card,.frame--landing .dialog .chance__field{display:none;}
.frame--landing .dialog .sheet-header{flex-shrink:0;height:32px;touch-action:none;cursor:grab;}
.sheet-header::before{content:'';display:block;width:42px;height:5px;margin:12px auto;background:#777;border-radius:4px;}
.frame--landing .dialog .dialog__close{position:absolute;top:30px;left:14px;width:34px;height:34px;}
.frame--landing .dialog :is(.dialog__art,.tier__art,.chance__art){align-self:center;width:80px;height:80px;flex-shrink:0;}
.frame--landing .dialog :is(h2,p,ul){width:auto;white-space:normal;}
.frame--landing .dialog .chance__link{overflow-wrap:anywhere;padding:12px;background:#16161c;border-radius:10px;}
.frame--landing .dialog .chance__copy{position:relative;width:100%;height:48px;flex-shrink:0;}
.frame--landing .dialog .chance__copy-text{position:static;}
.play-gameover{-webkit-backdrop-filter:none;backdrop-filter:none;}
.play-burst{width:calc(24 * var(--u));height:calc(24 * var(--u));object-position:-9999px;background:radial-gradient(circle,rgba(255,180,65,.65),rgba(255,160,40,.15) 45%,transparent 72%);border-radius:50%;filter:none;}
.ready-hint{position:absolute;top:35%;left:0;width:100%;text-align:center;font-weight:800;font-size:calc(19 * var(--u));z-index:3;pointer-events:none;}
.frame--play:not([data-state="ready"]) .ready-hint{display:none;}
@media(prefers-reduced-motion:reduce){.frame--landing .dialog{transition:none;}}
.frame--landing .tabbar{position:fixed;top:auto;bottom:0;left:50%;translate:none;width:calc(402 * var(--u));z-index:20;}
.frame--play[data-state="ready"] .play-hint{visibility:hidden;}
.frame--landing .dialog .sheet-header{position:sticky;top:0;background:#24242c;z-index:1;}

/* Stable Android composition, keeping the artwork's original colors. */
html{color-scheme:dark;}
body{background-color:#040404;}
html[data-platform="android"] .frame--play :is(.play-player__rig,.play-obstacle,.play-particle,.play-toast){filter:none!important;}
html[data-platform="android"] .frame--play :is(.play-world,.play-stage){transform:none!important;}
html[data-platform="android"] .play-gameover{background:rgba(4,4,4,.72);transition:none;}
html[data-platform="android"] .play-gameover.is-shown .play-result{animation:none;}
.frame--play{padding-top:env(safe-area-inset-top,0px);box-sizing:border-box;}

.start-countdown{position:absolute;left:0;top:32%;width:100%;text-align:center;font-family:var(--yekan);font-weight:900;font-size:calc(96 * var(--u));line-height:1.3;color:#ffab27;z-index:5;pointer-events:none;}
.frame--play:not([data-state="countdown"]) .start-countdown{display:none;}
.frame--play[data-state="countdown"] .play-hint{visibility:hidden;}

.start-countdown.is-loading{font-size:calc(18 * var(--u));}
.user__phone{width:calc(57 * var(--u));overflow:hidden;text-overflow:ellipsis;direction:ltr;white-space:nowrap;}

.start-countdown.is-pixel{font-size:0;height:calc(132 * var(--u));background-position:center;background-repeat:no-repeat;background-size:auto 100%;image-rendering:pixelated;}

/* Chrome Android can highlight the entire tappable game surface on a jump. */
.frame--play,.frame--play *{-webkit-tap-highlight-color:transparent;}
.frame--play img{-webkit-user-drag:none;}

/* Let the whole leaderboard scroll, including its final action above the fixed navigation. */
.frame--top{height:auto;min-height:var(--app-h,100dvh);overflow:visible;padding-bottom:calc(94 * var(--u) + env(safe-area-inset-bottom,0px));}
.frame--top .top-scroll{position:relative;left:auto;top:auto;bottom:auto;margin-top:calc(138 * var(--u));width:100%;box-sizing:border-box;overflow:visible;overscroll-behavior:auto;-webkit-mask:none;mask:none;}
.frame--top .top-list{counter-reset:rank 0;}
.frame--top .top-row[data-rank]{display:block;}
.frame--top .top-cta{position:relative;left:auto;top:auto;bottom:auto;margin:calc(20 * var(--u)) auto 0;}


