/* =====================================================================
   ابر طراحان آتی — «شهر ابری» (لایه بصری امضادار) · ۱۴۰۵/۰۸/۲۳
   بعد از style.css / motion.css / controls.css لینک می‌شود.
   - html.lite        حالت سبک: همه چیز ایستا و کامل (بدون حلقه، بدون WebGL)
   - html[data-sky]   فاز آسمان تهران: dawn | day | dusk | night  (night = تم تیره کامل)
   - html.pl          Preloader بار اول (۱٫۲ ثانیه، بدون JS هم خودش محو می‌شود)
   فهرست و زمان‌بندی‌ها: MOTION.md («شهر ابری»)
   ===================================================================== */

:root {
  --brand-ink: var(--brand);       /* رنگ متن/لینک برند (در شب روشن‌تر) */
  --surface-alt: #fff;
  --w-spring: cubic-bezier(.34, 1.56, .64, 1);
  --w-out: cubic-bezier(.22, 1, .36, 1);
  --glass: rgba(255, 255, 255, .78);
  --glass-line: rgba(255, 255, 255, .7);
}

/* ---------------------------------------------------------------------
   ۱. شب شهر ابری — تم تیره کامل (نه وارونه‌سازی)
   --------------------------------------------------------------------- */
[data-sky="night"] {
  color-scheme: dark;
  --bg: #081130; --card: #0f1a3f; --surface-alt: #0c163a;
  --ink: #e6ebff; --ink-2: #a9b4d8; --ink-3: #7c88b0; --line: #223062;
  --brand: #3a5cff; --brand-700: #2c4ae0; --brand-50: #15214d; --brand-100: #283a7a; --brand-500: #6f8cff;
  --brand-ink: #a8baff;
  --ok: #4ade9a; --ok-bg: #0d2c22; --warn: #ffc46b; --warn-bg: #33240a; --err: #ff6b5e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 22px rgba(0, 0, 0, .35);
  --shadow-lg: 0 14px 44px rgba(0, 0, 0, .45);
  --glass: rgba(15, 26, 63, .72); --glass-line: rgba(140, 165, 255, .22);
}
[data-sky="night"] body { background: var(--bg); }
[data-sky="night"] .section-head .kicker, [data-sky="night"] .service .go, [data-sky="night"] .service .from b,
[data-sky="night"] .qc-result b, [data-sky="night"] .live-range b, [data-sky="night"] .track-code, [data-sky="night"] .why-ask,
[data-sky="night"] .nav a:hover, [data-sky="night"] .nav a.active, [data-sky="night"] .nav a.m-spy, [data-sky="night"] .stepper .st.on,
[data-sky="night"] .service .ic, [data-sky="night"] .why .ic, [data-sky="night"] .type-card .ic, [data-sky="night"] .factor b,
[data-sky="night"] .faq summary::after, [data-sky="night"] .quick-card h3 svg, [data-sky="night"] .btn-outline, [data-sky="night"] .btn-ghost:hover { color: var(--brand-ink); }
:where([data-sky="night"]) a { color: var(--brand-ink); }
[data-sky="night"] .type-card.active .ic { color: #fff; }
[data-sky="night"] .q-why { color: #c9d4ff; }
[data-sky="night"] .section-alt { background: var(--surface-alt); }
[data-sky="night"] .header { background: rgba(8, 17, 48, .86); }
[data-sky="night"] .demo-ribbon { background: #2a1d05; color: #ffcf7a; }
[data-sky="night"] :is(.menu-btn, .mobile-nav, .qc-type, .filter, .faq details, .type-card, .opt, .phone-card, .tab.active, .m-tab-ind, .btn-outline) { background: var(--card); }
[data-sky="night"] :is(.input, .select, .textarea, .ui-select-btn, .ui-select-list, .ui-search, .ui-file, .check .ui-box, .opt .box) { background: #0b1538; color: var(--ink); }
[data-sky="night"] .input:focus, [data-sky="night"] .textarea:focus { background: #0b1538; }
[data-sky="night"] .ui-drop { background: linear-gradient(180deg, #0f1a3f, #15214d); border-color: #34478c; }
[data-sky="night"] .ui-drop-ic { background: var(--card); }
[data-sky="night"] .ai-box { background: linear-gradient(180deg, var(--brand-50), var(--card)); }
[data-sky="night"] .disclaimer { color: #ffd99a; }
[data-sky="night"] .ui-hit { background: #5a4300; box-shadow: 0 0 0 1px #8a6a10; }
[data-sky="night"] .toast { background: #1d2a5e; color: #fff; }
[data-sky="night"] .m-mbar { background: rgba(8, 17, 48, .94); }
[data-sky="night"] .menu-btn { color: var(--ink); }
[data-sky="night"] .brand img { filter: brightness(0) invert(1); }
[data-sky="night"] .chip { background: #0b1538; }

/* ---------------------------------------------------------------------
   ۲. Preloader بار اول — ابرها جمع می‌شوند و نشان لوگو شکل می‌گیرد
   --------------------------------------------------------------------- */
html.pl::before, html.pl::after { content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
html.pl::before {
  background:
    radial-gradient(closest-side, #fff 60%, transparent) 18% 30% / 280px 150px no-repeat,
    radial-gradient(closest-side, #fff 60%, transparent) 82% 62% / 320px 170px no-repeat,
    radial-gradient(closest-side, #fff 60%, transparent) 30% 78% / 260px 140px no-repeat,
    radial-gradient(closest-side, #fff 60%, transparent) 72% 22% / 240px 130px no-repeat,
    radial-gradient(900px 500px at 50% 50%, #2f5cff, #002db0 55%, #001a6e);
  animation: pl-sky 1.2s cubic-bezier(.65, 0, .35, 1) forwards;
}
html.pl::after {
  background: url("../assets/logo-mark.png") center / 120px auto no-repeat;
  animation: pl-logo 1.2s var(--w-out) forwards;
}
@keyframes pl-sky {
  0% { background-position: -10% 20%, 110% 70%, 5% 100%, 95% 0%, 0 0; opacity: 1; }
  55% { background-position: 46% 48%, 54% 52%, 48% 54%, 52% 46%, 0 0; opacity: 1; }
  100% { background-position: 46% 48%, 54% 52%, 48% 54%, 52% 46%, 0 0; opacity: 0; }
}
@keyframes pl-logo { 0%, 35% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.04); } 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12); } }
@media (max-width: 640px) { html.pl::after { background-size: 96px auto; } }

/* ---------------------------------------------------------------------
   ۳. Hero چندلایه (آسمان فاز · ابر WebGL · ستاره · خورشید/ماه · کاشی · شهر · ذرات)
   --------------------------------------------------------------------- */
.world-hero { --px: 0; --py: 0; isolation: isolate; }
.sky-layers { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky-layers > * { position: absolute; }
.sky-grad { inset: -20px; transition: opacity 1.2s ease; background:
  radial-gradient(900px 400px at 85% -10%, rgba(47, 92, 255, .55), transparent 60%),
  radial-gradient(700px 500px at 0% 110%, rgba(255, 176, 32, .18), transparent 60%),
  linear-gradient(135deg, #001a6e 0%, #002db0 55%, #1f4bff 100%); }
[data-sky="dawn"] .sky-grad { background: radial-gradient(700px 360px at 12% 92%, rgba(255, 190, 150, .55), transparent 65%), linear-gradient(180deg, #14267a 0%, #2f3fae 45%, #8a5fb0 78%, #e79a8f 100%); }
[data-sky="dusk"] .sky-grad { background: radial-gradient(760px 380px at 14% 96%, rgba(255, 160, 80, .6), transparent 62%), linear-gradient(180deg, #111a5c 0%, #3b2c8c 46%, #a2487e 80%, #f07f56 100%); }
[data-sky="night"] .sky-grad { background: radial-gradient(800px 420px at 80% 0%, rgba(58, 92, 255, .28), transparent 60%), linear-gradient(180deg, #030820 0%, #071440 55%, #10215f 100%); }
.sky-gl { inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; translate: calc(var(--px) * -8px) calc(var(--py) * -5px); }
.sky-gl.on { opacity: 1; }
.sky-stars { inset: 0; opacity: 0; transition: opacity 1.5s ease; translate: calc(var(--px) * -4px) calc(var(--py) * -3px); }
.sky-stars i { position: absolute; top: 0; left: 0; width: 1px; height: 1px; border-radius: 50%; }
.sky-stars i:nth-child(2) { animation: tw 3.2s ease-in-out infinite; }
@keyframes tw { 50% { opacity: .2; } }
[data-sky="night"] .sky-stars { opacity: 1; }
[data-sky="dusk"] .sky-stars { opacity: .35; }
[data-sky="dawn"] .sky-stars { opacity: .15; }
.sky-sun { width: 110px; height: 110px; left: 9%; top: 12%; translate: calc(var(--px) * -12px) calc(var(--py) * -8px); transition: top 1.4s var(--w-out), left 1.4s var(--w-out); }
.sky-sun i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 240, 200, .55) 0 18%, rgba(255, 210, 122, .18) 40%, transparent 70%); }
[data-sky="dawn"] .sky-sun { top: 64%; left: 7%; }
[data-sky="dawn"] .sky-sun i { background: radial-gradient(circle, #ffe1c4 0 22%, rgba(255, 170, 140, .45) 42%, transparent 70%); }
[data-sky="dusk"] .sky-sun { top: 60%; left: 6%; width: 150px; height: 150px; }
[data-sky="dusk"] .sky-sun i { background: radial-gradient(circle, #ffd27a 0 20%, rgba(255, 140, 70, .5) 40%, transparent 70%); }
[data-sky="night"] .sky-sun { width: 64px; height: 64px; top: 7%; left: 5%; }
@media (max-width: 999px) { .sky-sun, [data-sky] .sky-sun { top: 2.5%; left: 4%; width: 70px; height: 70px; } [data-sky="night"] .sky-sun { width: 40px; height: 40px; top: 3%; } }
[data-sky="night"] .sky-sun i { background: transparent; box-shadow: inset -14px 8px 0 0 #f4f1d8, 0 0 40px rgba(244, 241, 216, .25); }
.sky-tile { inset: 0; background-image: var(--tile); background-size: 72px; opacity: .05;
  -webkit-mask-image: radial-gradient(70% 60% at 20% 40%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 20% 40%, #000, transparent 75%); }
.sky-city { left: 0; right: 0; bottom: clamp(26px, 4vw, 60px); width: 100%; height: clamp(70px, 8vw, 118px); -webkit-mask-image: linear-gradient(90deg, #000 0 24%, rgba(0,0,0,.35) 40% 60%, #000 76%); mask-image: linear-gradient(90deg, #000 0 24%, rgba(0,0,0,.35) 40% 60%, #000 76%); translate: calc(var(--px) * -6px) 0; }
.sky-city .sl-b { fill: rgba(255, 255, 255, .09); }
.sky-city .sl-c { fill: rgba(255, 255, 255, .1); }
.sky-city .w { fill: rgba(255, 255, 255, .12); }
.sky-city .w.on { fill: rgba(255, 255, 255, .2); }
[data-sky="dusk"] .sky-city .sl-b { fill: rgba(30, 18, 70, .55); }
[data-sky="dusk"] .sky-city .w.on { fill: #ffd27a; }
[data-sky="night"] .sky-city .sl-b { fill: #0a1648; }
[data-sky="night"] .sky-city .sl-c { fill: rgba(120, 140, 220, .12); }
[data-sky="night"] .sky-city .w { fill: rgba(255, 210, 122, .14); }
[data-sky="night"] .sky-city .w.on { fill: #ffd27a; filter: drop-shadow(0 0 3px rgba(255, 200, 100, .8)); }
.sky-parts { inset: 0; translate: calc(var(--px) * -40px) calc(var(--py) * -22px); }
.sky-parts i { position: absolute; left: var(--x); bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: rgba(255, 255, 255, .7); box-shadow: 0 0 8px rgba(255, 255, 255, .8); animation: part var(--d) linear var(--dl) infinite; opacity: 0; }
[data-sky="night"] .sky-parts i, [data-sky="dusk"] .sky-parts i { background: #ffd27a; box-shadow: 0 0 8px #ffb020; }
@keyframes part { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .8; } 85% { opacity: .6; } 100% { transform: translateY(-62vh) translateX(30px); opacity: 0; } }
[data-sky="night"] .hero-stats div, [data-sky="dusk"] .hero-stats div { background: rgba(8, 17, 60, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* لایه‌های motion.js و تصویر Hero در عمق‌های مختلف */
.world-hero .m-clouds.l1 { translate: calc(var(--px) * -14px) calc(var(--py) * -6px); }
.world-hero .m-clouds.l2 { translate: calc(var(--px) * -22px) calc(var(--py) * -10px); }
.world-hero .m-clouds.l3 { translate: calc(var(--px) * -32px) calc(var(--py) * -14px); }
.world-hero .hero-art img { translate: calc(var(--px) * -18px) calc(var(--py) * -12px); }
[data-sky="night"] .world-hero .m-clouds { opacity: .05 !important; }
.world-hero.sky-off .sky-layers *, html.fx-hidden .sky-layers * { animation-play-state: paused !important; }
.world-hero .m-divider path:last-child { fill: var(--bg); transition: fill .8s; }
[data-sky="night"] .world-hero .m-divider path:last-child { fill: var(--bg); }

/* امضای خوشنویسی‌گونه — کل نوشته با هم کشیده می‌شود */
.sig { height: 44px; margin: -6px 0 4px; }
.sig svg { height: 100%; width: auto; overflow: visible; }
.sig-t { font: 800 34px "Vazirmatn", Tahoma, sans-serif; direction: rtl; text-anchor: start; fill: transparent; stroke: #ffd27a; stroke-width: .9; stroke-dasharray: 260; stroke-dashoffset: 260;
  animation: sig-draw 1.5s cubic-bezier(.6, 0, .3, 1) .25s forwards, sig-fill .6s ease 1.45s forwards; }
.sig-f { fill: none; stroke: url(#sigG); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: sig-draw 1s var(--w-out) 1.1s forwards; }
.sig-dot { fill: #ffd27a; opacity: 0; animation: sig-fill .3s ease 1.9s forwards; }
@keyframes sig-draw { to { stroke-dashoffset: 0; } }
@keyframes sig-fill { to { fill: #ffd27a; opacity: 1; } }
.sig.done .sig-t, .sig.done .sig-f, .sig.done .sig-dot { animation: none; stroke-dashoffset: 0; opacity: 1; }
.sig.done .sig-t { fill: #ffd27a; }
.sig.done .sig-f { stroke-dashoffset: 0; }
@media (max-width: 640px) { .sig { height: 34px; } }

/* ---------------------------------------------------------------------
   ۴. هدر: دکمه جست‌وجو و روز/شب
   --------------------------------------------------------------------- */
.hx { display: flex; gap: 6px; align-items: center; margin-inline-start: auto; }
.nav + .hx { margin-inline-start: 0; }
.hx-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; padding: 0; transition: color .2s, border-color .2s, transform .3s var(--w-spring); }
.hx-btn:hover { color: var(--brand-ink); border-color: var(--brand-100); }
.hx-btn:active { transform: scale(.9); }
.hx-btn svg { width: 21px; height: 21px; }
.hx-sky > span { grid-area: 1 / 1; display: grid; transition: transform .5s var(--w-spring), opacity .3s; }
.hx-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-sky="night"] .hx-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-sky="night"] .hx-moon { opacity: 1; transform: none; }
.hx-sky { display: grid; }
@media (max-width: 999px) { .header .menu-btn { margin-inline-start: 0; } }
@media (max-width: 380px) { .hx-btn, .header .menu-btn { width: 40px; height: 40px; } .header .container { gap: 10px; } }

/* ---------------------------------------------------------------------
   ۵. محله‌ها: رنگ بخش‌ها با اسکرول، لبه ابری، کلمات غول‌پیکر، grain، شفق
   --------------------------------------------------------------------- */
main { display: block; background-color: var(--bg); transition: background-color .9s ease; }
main[data-tone="services"] { background-color: #f1f5ff; }
main[data-tone="process"] { background-color: #f5f3ff; }
main[data-tone="voices"] { background-color: #fff7ee; }
main[data-tone="faq"] { background-color: #f0f8f6; }
[data-sky="night"] main { background-color: var(--bg); }
[data-sky="night"] main[data-tone="services"] { background-color: #08133a; }
[data-sky="night"] main[data-tone="process"] { background-color: #0d1038; }
[data-sky="night"] main[data-tone="voices"] { background-color: #140f30; }
[data-sky="night"] main[data-tone="faq"] { background-color: #071a2e; }
.section, .quick-band { background: transparent; }
.section-alt { position: relative; background: var(--surface-alt); }
.cloud-edge { position: absolute; left: 0; right: 0; height: 44px; overflow: hidden; pointer-events: none; z-index: 0; }
.cloud-edge.top { bottom: 100%; margin-bottom: -1px; }
.cloud-edge.bot { top: 100%; margin-top: -1px; transform: scaleY(-1); }
.ce-track { position: absolute; inset: 0; width: 200%; display: flex; animation: ce-drift 90s linear infinite; }
.cloud-edge.bot .ce-track { animation-direction: reverse; animation-duration: 120s; }
.ce-track svg { width: 50%; height: 100%; flex: none; fill: var(--surface-alt); transition: fill .9s; }
@keyframes ce-drift { to { transform: translateX(50%); } }
.section-alt > .container { position: relative; z-index: 1; }

.giant { position: absolute; inset: 18px 0 auto; overflow: hidden; pointer-events: none; z-index: 0; height: clamp(90px, 13vw, 190px); }
.giant-track { display: flex; width: max-content; animation: giant 60s linear infinite; }
.giant-track span { flex: none; white-space: nowrap; font-size: clamp(76px, 12vw, 176px); font-weight: 900; line-height: 1.1; padding-inline-end: .3em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(0, 45, 176, .13); }
[data-sky="night"] .giant-track span { -webkit-text-stroke-color: rgba(168, 186, 255, .13); }
@keyframes giant { to { transform: translateX(50%); } }
#process { position: relative; overflow: hidden; }
#process > .container { position: relative; z-index: 1; }

.fx-grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
[data-sky="night"] .fx-grain { mix-blend-mode: screen; opacity: .03; }

/* شفق (aurora) — گرادیان مش آرام در بخش‌های تیره */
.aurora { position: relative; isolation: isolate; overflow: hidden; }
.aurora::before { content: ""; position: absolute; inset: -30%; z-index: -1; pointer-events: none; filter: blur(60px); opacity: .55;
  background: radial-gradient(35% 30% at 25% 30%, #2f5cff, transparent 70%), radial-gradient(30% 28% at 70% 60%, #7c3aed, transparent 70%), radial-gradient(28% 26% at 60% 20%, rgba(255, 176, 32, .55), transparent 70%);
  animation: aurora 26s ease-in-out infinite alternate; }
@keyframes aurora { 50% { transform: translate(6%, 4%) rotate(8deg) scale(1.08); } 100% { transform: translate(-5%, -3%) rotate(-6deg) scale(1.02); } }

/* برآورد سریع: شیشه سنجیده + کاشی ظریف */
.quick-band .quick-card { position: relative; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); border: 1px solid var(--glass-line); overflow: hidden; }
.quick-band .quick-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--tile); background-size: 64px; opacity: .05; filter: invert(1); -webkit-mask-image: linear-gradient(110deg, #000, transparent 45%); mask-image: linear-gradient(110deg, #000, transparent 45%); }
[data-sky="night"] .quick-band .quick-card::before { filter: none; opacity: .06; }
.quick-band .quick-card > * { position: relative; }

/* ---------------------------------------------------------------------
   ۶. تیتر جنبشی (کلمه‌به‌کلمه، وزن ۳۰۰←۹۰۰، درخشش کلمه کلیدی)
   --------------------------------------------------------------------- */
.kin .kw { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .06em .12em; margin: 0 -.06em -.12em; }
.kin .kw-i { display: inline-block; transform: translateY(105%); font-weight: 300;
  transition: transform .7s var(--w-out) calc(var(--i) * 70ms), font-weight 1.1s var(--w-out) calc(var(--i) * 70ms + 120ms); }
.kin.kin-in .kw-i { transform: none; font-weight: 900; }
.kin em { --shine-mid: #2f5cff; font-style: normal; background: linear-gradient(100deg, var(--brand-ink) 20%, var(--shine-mid) 40%, var(--accent) 50%, var(--shine-mid) 60%, var(--brand-ink) 80%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.kin.kin-in em { animation: shine 5s ease-in-out 1.2s infinite; }
.kin em .kw-i { background: inherit; -webkit-background-clip: text; background-clip: text; }
@keyframes shine { 0%, 60% { background-position: 100% 0; } 100% { background-position: -150% 0; } }
.fcity-cta h2.kin em, .sc-copy h2.kin em { --brand-ink: #ffd27a; --shine-mid: #fff1c9; }
[data-sky="night"] .kin em { --shine-mid: #dfe6ff; }

/* ---------------------------------------------------------------------
   ۷. کرسر سفارشی
   --------------------------------------------------------------------- */
html.cur-on, html.cur-on a, html.cur-on button, html.cur-on summary, html.cur-on label, html.cur-on [role=button] { cursor: none; }
html.cur-on input, html.cur-on textarea, html.cur-on [contenteditable] { cursor: auto; }
.cur-dot, .cur-ring { position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none; opacity: 0; transition: opacity .25s; }
html.cur-in .cur-dot, html.cur-in .cur-ring { opacity: 1; }
html.cur-text .cur-dot, html.cur-text .cur-ring { opacity: 0; }
.cur-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #ffb020; box-shadow: 0 0 10px 2px rgba(255, 176, 32, .7); }
.cur-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
.cur-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(47, 92, 255, .55); background: rgba(47, 92, 255, .04); transition: transform .35s var(--w-spring), background .25s, border-color .25s; }
.cur-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--w-spring); }
html.cur-press .cur-ring::before { transform: scale(1.5); background: rgba(255, 176, 32, .12); border-color: rgba(255, 176, 32, .8); }
html.cur-view .cur-ring::before { transform: scale(2); background: rgba(0, 45, 176, .82); border-color: transparent; }
html.cur-view .cur-ring span { opacity: 1; transform: scale(.5); }
html.cur-view .cur-dot { opacity: 0; }
html.cur-down .cur-ring::before { transform: scale(.8); }
.cur-sp { position: fixed; z-index: 9999; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; pointer-events: none; background: #ffd27a; box-shadow: 0 0 8px #ffb020; animation: spark .7s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }

/* ---------------------------------------------------------------------
   ۸. کارت‌های هولوگرافیک خدمات
   --------------------------------------------------------------------- */
.holo-grid { perspective: 1000px; }
.service.holo { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%; --sx: -999px; --sy: -999px; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--w-out), box-shadow .3s, border-color .3s; }
.service.holo:hover { transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(10px); transition: transform .12s linear, box-shadow .3s; }
/* حاشیه: spotlight شعاعی (همیشه، دنبال موس) + فویل هولوگرافیک در hover */
@property --fa { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.service.holo::before { opacity: 1; padding: 1.5px;
  background: radial-gradient(220px circle at var(--sx) var(--sy), rgba(47, 92, 255, .85), transparent 70%); }
@media (hover: hover) {
  .service.holo:hover::before { background: conic-gradient(from var(--fa), #ff7ad9, #ffd27a, #7affd4, #7aa8ff, #c47aff, #ff7ad9); animation: foil 3s linear infinite; }
}
@keyframes foil { to { --fa: 360deg; } }
.holo-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .55), transparent 45%), linear-gradient(115deg, transparent 30%, rgba(255, 122, 217, .12) 45%, rgba(122, 255, 212, .12) 55%, transparent 70%); mix-blend-mode: soft-light; }
.service.holo:hover .holo-glare { opacity: 1; }
.pop-scene { position: absolute; top: -26px; left: 14px; width: 88px; height: 74px; pointer-events: none; z-index: 3; opacity: 0;
  transform: translateZ(50px) translateY(16px) scale(.4) rotate(-8deg); transition: transform .5s var(--w-spring), opacity .25s; filter: drop-shadow(0 10px 14px rgba(0, 20, 90, .25)); }
.pop-scene svg { width: 100%; height: 100%; }
@media (hover: hover) { .service.holo:hover .pop-scene { opacity: 1; transform: translateZ(50px) translateY(-6px) scale(1) rotate(0deg); } }
.service.holo .ic { transform: translateZ(24px); }

/* ---------------------------------------------------------------------
   ۹. odometer
   --------------------------------------------------------------------- */
.odo { white-space: nowrap; }
.odo .odo-in, .odo .odo-in span { font-size: inherit; color: inherit; opacity: 1; }
.odo-in { display: inline; -webkit-user-select: none; user-select: none; }
.odo-n { unicode-bidi: isolate; display: inline-block; }
.odo-d { display: inline-block; height: 1.3em; line-height: 1.3em; overflow: hidden; vertical-align: -.32em; }
.odo-s { display: flex; flex-direction: column; transform: translateY(calc(var(--v) * -1.3em)); transition: transform 1s cubic-bezier(.2, 1.15, .35, 1) calc(var(--i) * 40ms); }
.odo-s span { height: 1.3em; text-align: center; }

/* ---------------------------------------------------------------------
   ۱۰. نوار پیشرفت: هواپیمای کاغذی
   --------------------------------------------------------------------- */
.pp { --p: 0; position: fixed; top: 0; left: 0; right: 0; height: 26px; z-index: 80; pointer-events: none; overflow: hidden; }
.pp-bar { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(270deg, var(--accent), #ff7a59 50%, #2f5cff); transform-origin: right; transform: scaleX(var(--p)); box-shadow: 0 0 10px rgba(255, 176, 32, .6); }
.pp-rail { position: absolute; top: 0; right: 0; width: calc(100% - 28px); height: 26px; transform: translateX(calc(var(--p) * -100%)); }
.pp-plane { position: absolute; right: -10px; top: -2px; width: 24px; height: 24px; transform: scaleX(-1) rotate(8deg); animation: pp-bob 1.6s ease-in-out infinite; }
.pp-plane svg { width: 100%; height: 100%; }
@keyframes pp-bob { 50% { transform: scaleX(-1) rotate(-4deg) translateY(2px); } }
.pp-native .pp-bar { animation: pp-bar linear both; animation-timeline: scroll(root); }
.pp-native .pp-rail { animation: pp-rail linear both; animation-timeline: scroll(root); }
@keyframes pp-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pp-rail { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (max-width: 640px) { .pp-plane { width: 20px; height: 20px; } }

/* ---------------------------------------------------------------------
   ۱۱. دکمه‌ها: فشار فنری + درخشش دوره‌ای CTA اصلی
   --------------------------------------------------------------------- */
.btn { transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .45s var(--w-spring), translate .35s var(--w-out); }
.btn:not([disabled]):active { transform: scale(.94); transition-duration: .1s; }
.hero .btn-accent::after, .fcity-cta .btn-accent::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%); transform: translateX(-120%); animation: cta-shine 6s ease-in-out 2.5s infinite; }
@keyframes cta-shine { 0%, 82% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ---------------------------------------------------------------------
   ۱۲. اعوجاج مایع روی نقش کاور محصول
   --------------------------------------------------------------------- */
.product.liq .m-pattern { filter: url(#fx-liquid); }
.product .cover { background-size: 140% 140% !important; transition: background-position .8s var(--w-out); }

/* ---------------------------------------------------------------------
   ۱۳. جاده‌ی پرواز مراحل همکاری
   --------------------------------------------------------------------- */
.steps.fp { position: relative; isolation: isolate; }
.steps.fp .step::before { display: none; }
.steps.fp .step { position: relative; transition: border-color .4s, box-shadow .4s, transform .5s var(--w-spring); }
.st-dot { position: relative; z-index: 3; display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--card); color: var(--ink-3); border: 2px solid var(--line); box-shadow: 0 0 0 5px var(--card); transition: background .4s, color .4s, border-color .4s, transform .5s var(--w-spring); }
.st-ic svg { width: 24px; height: 24px; display: block; }
.st-dot b { position: absolute; top: -6px; left: -6px; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: var(--line); color: var(--ink-2); transition: background .4s, color .4s; }
.step.lit { border-color: var(--brand-100); box-shadow: var(--shadow-lg); }
.step.lit .st-dot { background: var(--brand); color: #fff; border-color: var(--brand); transform: scale(1.08); }
.step.lit .st-dot b { background: var(--accent); color: #2b1a00; }
.step.lit .st-ic { animation: st-ic .6s var(--w-spring); }
@keyframes st-ic { 40% { transform: scale(1.3) rotate(-10deg); } }
.fp-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 2; pointer-events: none; }
.fp-base { fill: none; stroke: var(--brand-100); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; }
.fp-draw { fill: none; stroke: var(--brand-500); stroke-width: 3.5; stroke-linecap: round; transition: stroke-dashoffset .18s linear; filter: drop-shadow(0 2px 6px rgba(47, 92, 255, .35)); }
.fp-measure { display: none; }
.fp-plane { transition: transform .18s linear; }
.steps.fp-end .fp-plane, html.lite .fp-plane { opacity: 0; transition: opacity .4s; }
.steps.fp .step h4, .steps.fp .step p { position: relative; z-index: 3; }
@media (max-width: 999px) {
  .steps.fp { grid-template-columns: 1fr; gap: 14px; padding-inline-start: 64px; }
  .steps.fp .step { text-align: start; padding: 16px 18px; min-height: 76px; }
  .steps.fp .st-dot { position: absolute; right: -64px; top: 12px; margin: 0; width: 46px; height: 46px; box-shadow: 0 0 0 5px var(--bg); }
  .steps.fp .st-ic svg { width: 21px; height: 21px; }
}

/* ---------------------------------------------------------------------
   ۱۴. فوتر «شب شهر» + کلیدهای نمایش + reveal
   --------------------------------------------------------------------- */
.footer { position: relative; padding-top: 0; overflow: hidden; background: linear-gradient(180deg, #050c2c, var(--brand-900) 40%); }
.fcity { position: relative; padding: 56px 0 0; margin-bottom: 40px; isolation: isolate; }
.fcity::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1px 1px at 12% 20%, #fff, transparent), radial-gradient(1px 1px at 32% 60%, #fff, transparent), radial-gradient(1.5px 1.5px at 58% 18%, #ffd27a, transparent), radial-gradient(1px 1px at 78% 42%, #fff, transparent), radial-gradient(1px 1px at 90% 12%, #fff, transparent), radial-gradient(1px 1px at 45% 35%, #fff, transparent); }
.fcity-cta { text-align: center; color: #fff; }
.fcity-cta h2 { font-size: clamp(34px, 6vw, 68px); font-weight: 900; margin: 0 0 6px; line-height: 1.3; }
.fcity-cta p { color: #c3cdf0; max-width: 520px; margin: 0 auto; }
.fcity-cta .hero-actions { justify-content: center; }
.footer .fcity-cta .btn { display: inline-flex; padding: 0 22px; }
.footer .fcity-cta .btn-accent { color: #2b1a00; }
.footer .fcity-cta .btn-light { color: #fff; }
.fcity-sl { display: block; width: 100%; height: clamp(90px, 10vw, 140px); margin-top: 28px; }
.fcity-sl .sl-b { fill: #13205a; }
.fcity-sl .sl-c { fill: #0d1a4d; }
.fcity-sl .w { fill: rgba(255, 210, 122, .12); transition: fill .5s, filter .5s; pointer-events: all; }
.fcity-sl .w.on { fill: rgba(255, 210, 122, .45); }
.fcity-sl .w.lit, .fcity-sl .w:hover { fill: #ffd27a; filter: drop-shadow(0 0 4px #ffb020); transition-duration: .08s; }
.footer > .container { position: relative; }
.fx-switches { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.fx-sw { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: #c3cdf0; user-select: none; }
.fx-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fx-sw i { width: 38px; height: 22px; border-radius: 11px; background: rgba(255, 255, 255, .16); position: relative; transition: background .25s; flex: none; }
.fx-sw i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .35s var(--w-spring); }
.fx-sw input:checked + i { background: var(--accent); }
.fx-sw input:checked + i::after { transform: translateX(-16px); }
.fx-sw input:focus-visible + i { outline: 3px solid var(--brand-500); outline-offset: 2px; }
.fx-ach { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #c3cdf0; font-size: 13px; border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.fx-ach svg { width: 16px; height: 16px; color: var(--accent); }
.fx-ach:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.footer .bottom { margin-top: 18px; }
/* reveal: فوتر از زیر محتوا آشکار می‌شود (فقط دسکتاپ و فوتر کوتاه‌تر از صفحه) */
html.fx-reveal main { position: relative; z-index: 1; box-shadow: 0 30px 60px rgba(0, 10, 50, .25); }
html.fx-reveal .footer { position: sticky; bottom: 0; z-index: 0; }

/* ---------------------------------------------------------------------
   ۱۵. نقشه تصویرسازی‌شده
   --------------------------------------------------------------------- */
.map-box.map-ill { display: block; padding: 0; min-height: 0; background: #eaf2ff; position: relative; }
.map-ill svg { display: block; width: 100%; height: 320px; }
.mp-land { fill: #eaf1fb; }
.mp-park { fill: #cfeedd; }
.mp-st path { stroke: #fff; stroke-width: 10; fill: none; }
.mp-av { fill: none; stroke: #ffd98a; stroke-width: 18; stroke-linecap: round; }
.mp-lbl { font: 700 13px "Vazirmatn", Tahoma, sans-serif; fill: #6b5a2a; direction: rtl; }
.mp-lbl.sm { font-size: 11px; fill: #5b6b8a; }
.mp-sq { fill: #fff; stroke: #ffd98a; stroke-width: 8; }
.mp-metro circle { fill: #e2483d; } .mp-metro text { font: 800 12px "Vazirmatn", Tahoma; fill: #fff; }
.mp-compass circle { fill: rgba(255, 255, 255, .8); stroke: #c8d4f0; } .mp-compass path { fill: var(--brand); } .mp-compass text { font: 700 10px "Vazirmatn", Tahoma; fill: #5b6b8a; }
.mp-drop path { fill: var(--brand); } .mp-shadow { fill: rgba(0, 20, 80, .2); }
.mp-pulse { fill: none; stroke: var(--brand-500); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: mp-pulse 2s ease-out infinite; }
.mp-drop { animation: mp-drop 2.4s var(--w-spring) infinite; }
@keyframes mp-pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(3); opacity: 0; } }
@keyframes mp-drop { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-12px); } 90% { transform: translateY(0) scaleY(.92); } }
.mp-tag rect { fill: var(--brand-900); } .mp-tag text { font: 800 13px "Vazirmatn", Tahoma; fill: #fff; direction: rtl; }
.mp-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; background: var(--card); border-top: 1px solid var(--line); }
.mp-bar .chip { margin-inline-end: auto; }
[data-sky="night"] .mp-land { fill: #0d1a44; } [data-sky="night"] .mp-park { fill: #0f3a3a; } [data-sky="night"] .mp-st path { stroke: #1a2a62; }
[data-sky="night"] .mp-av { stroke: #5a4a1a; } [data-sky="night"] .mp-lbl { fill: #ffd98a; } [data-sky="night"] .mp-lbl.sm { fill: #8fa0cc; } [data-sky="night"] .mp-sq { fill: #0d1a44; stroke: #5a4a1a; }
@media (max-width: 640px) { .map-ill svg { height: 260px; } }

/* ---------------------------------------------------------------------
   حالت سبک: زیبا و ایستا، نه خالی
   --------------------------------------------------------------------- */
html.lite *, html.lite *::before, html.lite *::after { animation: none !important; } /* مثل reduced-motion: حالت پایه همیشه دیدنی است */
html.lite .sky-parts, html.lite .cur-dot, html.lite .cur-ring, html.lite .pop-scene, html.lite .holo-glare { display: none !important; }
html.lite .sig .sig-t, html.lite .sig .sig-f, html.lite .sig .sig-dot { animation: none !important; stroke-dashoffset: 0; opacity: 1; fill: #ffd27a; }
html.lite .sig .sig-f { fill: none; }
html.lite .kin .kw-i { transform: none; font-weight: 900; transition: none; }
html.lite .service.holo { transform: none !important; }
html.lite .service.holo::before { background: linear-gradient(135deg, var(--brand-500), var(--accent), var(--brand)); opacity: 0; }
html.lite .service.holo:hover::before { opacity: 1; }
html.lite .pp-plane { animation: none; }
html.lite .fx-grain { display: none; }
html.lite .odo-s { transition: none; }
html.lite::before, html.lite::after { content: none !important; }
@media (prefers-reduced-motion: reduce) {
  html.pl::before, html.pl::after { content: none !important; }
  .kin .kw-i { transform: none !important; font-weight: 900 !important; }
  .sig .sig-t { fill: #ffd27a; stroke-dashoffset: 0; } .sig .sig-f { stroke-dashoffset: 0; } .sig .sig-dot { opacity: 1; }
}

/* =====================================================================
   فاز ۳ — روایت با اسکرول
   ===================================================================== */
/* ---------- ویترین گیمستان ---------- */
.showcase { background: linear-gradient(180deg, #050c2c, #0b1a4a 55%, #0a1440); color: #e6ebff; }
.showcase .kicker { color: var(--accent); font-weight: 800; font-size: 14px; }
.showcase h2 { font-size: clamp(24px, 3.6vw, 36px); font-weight: 900; margin: 6px 0 10px; color: #fff; }
.showcase p { color: #b9c5ea; }
.sc-grid { display: grid; gap: 32px; align-items: start; position: relative; z-index: 1; }
@media (min-width: 1000px) { .sc-grid { grid-template-columns: 340px 1fr; gap: 56px; } .sc-stage { position: sticky; top: 110px; } }
.sc-stage { display: grid; place-items: center; padding: 10px 0 40px; }
.sc-phone { --ry: -14deg; --rx: 6deg; position: relative; width: 280px; height: 570px; perspective: 1300px; }
.ph-body { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(var(--ry)) rotateX(var(--rx)); transition: transform .25s linear; }
.ph-front, .ph-back { position: absolute; inset: 0; border-radius: 46px; }
.ph-back { transform: translateZ(-16px); background: linear-gradient(135deg, #2a3a86, #10194a); box-shadow: 0 40px 70px rgba(0, 0, 0, .45); }
.ph-front { background: linear-gradient(145deg, #3b4fa8, #131d55 40%, #0a1035); padding: 11px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18), inset 0 0 0 4px #0a1035; }
.ph-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #0b1a4a; }
.ph-slide { position: absolute; inset: 0; opacity: 0; animation: ph-cycle 12s linear infinite; animation-delay: calc(var(--k) * 3s); }
.ph-slide:first-child { opacity: 1; }
.ph-slide svg { width: 100%; height: 100%; display: block; }
@keyframes ph-cycle { 0% { opacity: 0; transform: scale(1.04); } 3%, 25% { opacity: 1; transform: none; } 28%, 100% { opacity: 0; } }
.ph-notch { position: absolute; top: 19px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #050a24; }
.ph-front::after { content: ""; position: absolute; inset: 11px; border-radius: 36px; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, .16), transparent 32%); }
.ph-label { position: absolute; bottom: -34px; left: 0; right: 0; text-align: center; font-size: 12px; color: #9db2ff; }
.sc-off .ph-slide, html.lite .ph-slide { animation-play-state: paused; }
html.lite .ph-body { transform: rotateY(-12deg) rotateX(4deg); }
@media (max-width: 999px) { .sc-phone { width: 220px; height: 448px; } .ph-front, .ph-back { border-radius: 38px; } .ph-screen { border-radius: 29px; } .ph-notch { width: 66px; margin-left: -33px; height: 18px; top: 17px; } }

.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; perspective: 900px; }
@media (max-width: 640px) { .games { grid-template-columns: repeat(2, 1fr); } }
.game-card { position: relative; height: 104px; border: 0; padding: 0; background: none; cursor: pointer; color: inherit; font: inherit; }
.gc-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s var(--w-spring); }
.gc-f, .gc-b { position: absolute; inset: 0; border-radius: 16px; -webkit-backface-visibility: hidden; backface-visibility: hidden; display: grid; place-items: center; align-content: center; gap: 6px; padding: 10px; border: 1px solid rgba(160, 180, 255, .2); }
.gc-f { background: linear-gradient(160deg, rgba(47, 92, 255, .32), rgba(255, 255, 255, .04)); }
.gc-f svg { width: 32px; height: 32px; color: var(--accent); }
.gc-f b { font-size: 15px; color: #fff; }
.gc-b { transform: rotateY(180deg); background: linear-gradient(160deg, #ffb020, #ff8a3d); color: #2b1a00; font-size: 13px; font-weight: 700; line-height: 1.7; text-align: center; }
.game-card.flip .gc-in { transform: rotateY(180deg); }
@media (hover: hover) { .game-card:hover .gc-in { transform: rotateY(180deg); } }
.game-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 16px; }

/* ---------- دوز ابری ---------- */
.duz { background: rgba(255, 255, 255, .06); border: 1px solid rgba(160, 180, 255, .22); border-radius: 22px; padding: 18px; margin-bottom: 22px; max-width: 420px; position: relative; }
.duz-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.duz-head b { color: #fff; }
.duz-st { font-size: 13px; color: #ffd27a; font-weight: 700; }
.duz-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 264px; max-width: 100%; margin: 0 auto; position: relative; }
.duz-c { aspect-ratio: 1; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .1); cursor: pointer; padding: 10px; display: grid; place-items: center; transition: background .2s, transform .3s var(--w-spring); }
.duz-c:not(:disabled):hover { background: rgba(255, 255, 255, .18); transform: scale(1.04); }
.duz-c svg { width: 100%; height: 100%; animation: duz-in .45s var(--w-spring); }
@keyframes duz-in { from { transform: scale(0) rotate(-30deg); } }
.duz-c.win { background: rgba(255, 176, 32, .35); animation: duz-win .8s ease-in-out 2; }
@keyframes duz-win { 50% { transform: scale(1.08); } }
.duz-c:disabled { cursor: default; }
.duz-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; color: #b9c5ea; gap: 10px; }
.duz-foot b { color: #fff; }
.showcase .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.duz.won { box-shadow: 0 0 0 2px var(--accent), 0 20px 50px rgba(255, 176, 32, .25); }
@media (max-width: 640px) { .duz-board { width: 240px; } }

/* ---------- Bento زنده ---------- */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(4, 1fr); } }
.bt-stats, .bento .why, .bt-team { grid-column: span 2; }
.bt { position: relative; min-height: 160px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.bt::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--tile); background-size: 56px; opacity: .035; filter: invert(1); -webkit-mask-image: radial-gradient(80% 80% at 0% 100%, #000, transparent 70%); mask-image: radial-gradient(80% 80% at 0% 100%, #000, transparent 70%); }
[data-sky="night"] .bt::after { filter: none; }
.bento .why { flex-direction: row; min-height: 0; }
.bt-k { font-size: 13px; font-weight: 800; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; position: relative; }
.bt-k .chip { font-size: 11px; padding: 0 8px; }
.bt-sub { font-size: 12px; color: var(--ink-2); position: relative; }
.bt b { font-size: 18px; }
.bt-clock { align-items: center; text-align: center; }
.ck { width: 84px; height: 84px; margin: 2px auto; }
.ck-f { fill: var(--brand-50); stroke: var(--brand-100); stroke-width: 2; }
.ck-t { stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.ck-h { stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; }
.ck-m { stroke: var(--brand-ink); stroke-width: 3; stroke-linecap: round; }
.ck-s { stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; }
.ck-c { fill: var(--accent); }
.ck-d { font-size: 20px; font-weight: 900; direction: ltr; }
.ck-o { font-size: 12px; font-weight: 700; color: var(--warn); }
.ck-o.open { color: var(--ok); }
.bt-sky { color: #fff; border: 0; justify-content: flex-end; background: linear-gradient(180deg, #1f4bff, #7fb2ff); }
.bt-sky .bt-k, .bt-sky .bt-sub { color: rgba(255, 255, 255, .9); }
.bt-sky b { position: relative; font-size: 20px; }
.bt-sky[data-p="dawn"] { background: linear-gradient(180deg, #2f3fae, #e79a8f); }
.bt-sky[data-p="dusk"] { background: linear-gradient(180deg, #3b2c8c, #f07f56); }
.bt-sky[data-p="night"] { background: linear-gradient(180deg, #030820, #13246a); }
.bs-scene { position: absolute; inset: 0; }
.bs-sun { position: absolute; top: 16px; left: 18px; width: 40px; height: 40px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 30px #ffb020; }
.bt-sky[data-p="night"] .bs-sun { background: transparent; box-shadow: inset -10px 6px 0 0 #f4f1d8; width: 34px; height: 34px; }
.bs-c { position: absolute; height: 22px; border-radius: 20px; background: rgba(255, 255, 255, .85); animation: bs-c 14s ease-in-out infinite alternate; }
.bs-c::before { content: ""; position: absolute; width: 60%; height: 150%; left: 18%; bottom: 30%; border-radius: 50%; background: inherit; }
.bs-c.c1 { width: 64px; top: 34px; left: 44px; } .bs-c.c2 { width: 48px; top: 64px; left: 96px; opacity: .7; animation-duration: 18s; }
.bt-sky[data-p="night"] .bs-c { background: rgba(160, 180, 255, .18); }
@keyframes bs-c { to { transform: translateX(28px); } }
.bt-stats { justify-content: space-between; background: linear-gradient(135deg, var(--brand), var(--brand-500)); color: #fff; border: 0; }
.bt-stats .bt-k { color: rgba(255, 255, 255, .88); }
.bt-stats .bt-k .chip { background: rgba(255, 255, 255, .15); color: #fff; border: 0; }
.bst { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; position: relative; }
.bst b { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 900; line-height: 1.3; }
.bst span { font-size: 12px; opacity: .88; }
.avs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; position: relative; }
.avs figure { margin: 0; text-align: center; animation: av-bob 4s ease-in-out infinite; animation-delay: var(--d); }
.avs svg { width: 56px; height: 56px; display: block; margin: 0 auto 2px; transition: transform .4s var(--w-spring); }
.avs figure:hover svg { transform: translateY(-6px) rotate(-6deg); }
.avs figcaption { font-size: 11px; color: var(--ink-2); }
@keyframes av-bob { 50% { transform: translateY(-3px); } }
.bt-game { background: linear-gradient(180deg, #7fb2ff, #c9dcff); border: 0; }
.bt-game .bt-k { color: #0b1a4a; } .bt-game .bt-sub { color: #0b1a4a; font-weight: 700; }
.bt-game .bt-sub a { color: #002db0; font-weight: 800; text-decoration: underline; }
.pop-f { position: relative; flex: 1; min-height: 70px; }
.pop-c { position: absolute; width: 44px; height: 26px; border: 0; padding: 0; cursor: pointer; border-radius: 20px; background: #fff; box-shadow: 0 4px 10px rgba(0, 30, 120, .15);
  left: calc(2% + var(--i) * 17%); top: 12px; animation: pop-bob 3s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); transition: transform .3s var(--w-spring), opacity .3s; }
.pop-c:nth-child(even) { top: 36px; }
.pop-c::before { content: ""; position: absolute; width: 24px; height: 24px; border-radius: 50%; background: inherit; left: 8px; top: -11px; }
.pop-c.pp { transform: scale(1.6); opacity: 0; pointer-events: none; }
@keyframes pop-bob { 50% { translate: 0 -6px; } }
.bt-wip .wip-bar { height: 10px; border-radius: 6px; background: var(--brand-50); overflow: hidden; margin: 6px 0 2px; position: relative; }
.bt-wip .wip-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #ff7a59); transform-origin: right; transform: scaleX(.02); transition: transform 1.6s var(--w-out) .2s; }
.bt-wip.go .wip-bar i, html.lite .bt-wip .wip-bar i { transform: scaleX(var(--w)); }

/* ---------- صدای مشتری‌ها (چت) ---------- */
.chat-wall { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .chat-wall { grid-template-columns: repeat(3, 1fr); } }
.chat { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.chat-h { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--brand-50); }
.chat-h b { font-size: 14px; display: block; line-height: 1.5; }
.chat-h small { font-size: 11px; color: var(--ink-2); }
.chat-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #ff7a59); color: #2b1a00; font-weight: 900; flex: none; }
.chat-b { padding: 14px; display: grid; gap: 10px; min-height: 200px; align-content: start; }
.msg { max-width: 78%; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .3s, transform .4s var(--w-spring); }
.msg.shown { opacity: 1; transform: none; }
.msg.in { justify-self: start; }
.msg.out { justify-self: end; }
.msg p { margin: 0; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.8; display: none; }
.msg.in p { background: var(--bg); border-start-start-radius: 6px; }
.msg.out p { background: var(--brand); color: #fff; border-start-end-radius: 6px; }
.msg.said p { display: block; animation: msg-in .35s var(--w-out); }
.msg.said .typing { display: none; }
@keyframes msg-in { from { opacity: 0; transform: translateY(4px); } }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 18px; background: var(--bg); }
.msg.out .typing { background: var(--brand-50); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.sample-note { text-align: center; font-size: 12px; color: var(--ink-3); margin: 14px 0 0; }
@media (max-width: 640px) { .msg { max-width: 86%; } }
html.lite .msg { opacity: 1; transform: none; }
html.lite .msg p { display: block; } html.lite .msg .typing { display: none; }

/* =====================================================================
   فاز ۴ — ویزارد برآورد به‌عنوان تجربه‌ی بازی
   ===================================================================== */
@media (max-width: 480px) { .qc-result { flex-wrap: wrap; row-gap: 4px; } .qc-result > div:last-child { text-align: start !important; } }
.wz-aside { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1000px) {
  .wz-aside { position: sticky; top: 92px; }
  .wz-aside .side-summary { position: static; }
}
@media (max-width: 999px) {
  .wz-aside { display: contents; }
  .island-card { order: -1; }
}
.island-card { padding: 14px 16px 12px; overflow: hidden; position: relative; background: linear-gradient(180deg, #dbe8ff, var(--card) 70%); }
[data-sky="night"] .island-card { background: linear-gradient(180deg, #132061, var(--card) 70%); }
.island-card[data-wx="fog"] { background: linear-gradient(180deg, #e6eaf2, var(--card) 70%); }
[data-sky="night"] .island-card[data-wx="fog"] { background: linear-gradient(180deg, #1b2440, var(--card) 70%); }
.isl-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.isl-n { font-size: 12px; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0 10px; }
.isl-stage { margin: 0 -8px; }
.isl { display: block; width: 100%; height: auto; max-height: 230px; overflow: visible; }
.isl .bld { transform-box: fill-box; transform-origin: 50% 100%; }
.isl .bld.nb { animation: bld-in .7s var(--w-spring) both; }
@keyframes bld-in { 0% { transform: scale(0) translateY(-20px); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
.isl .bob { animation: isl-bob 2.6s ease-in-out infinite; }
@keyframes isl-bob { 50% { transform: translateY(-3px); } }
.isl .smoke circle { animation: smoke 3s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.isl .smoke circle + circle { animation-delay: 1.2s; }
@keyframes smoke { 0% { transform: translateY(4px) scale(.6); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-14px) scale(1.4); opacity: 0; } }
.isl .glow { animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .4; } }
.isl .blink { animation: blink 1.2s infinite; }
.isl-cloud { animation: isl-float 6s ease-in-out infinite; }
@keyframes isl-float { 50% { transform: translateY(3px); } }
.isl .wx-c { animation: wx-drift 9s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -2s); }
@keyframes wx-drift { to { transform: translateX(14px); } }
.isl .wx-fog { animation: fog 7s ease-in-out infinite alternate; }
.island-card .wx-fog { filter: blur(8px); }
[data-sky="night"] .island-card .wx-fog { fill: #3a4a7a; opacity: .4; }
@keyframes fog { to { opacity: .35; } }
.isl-wx { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--brand-50); margin-top: 4px; }
.isl-wx-ic { font-size: 22px; line-height: 1.2; }
.isl-wx b { font-size: 13px; display: block; }
.isl-wx small { font-size: 12px; color: var(--ink-2); line-height: 1.7; display: block; }
.island-card.isl-think .isl { animation: think 1s ease-in-out infinite; }
@keyframes think { 50% { opacity: .65; } }
.side-summary .meter { margin-top: 4px; }
.isl-fly { position: fixed; z-index: 120; pointer-events: none; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: #2b1a00; font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 20px rgba(255, 176, 32, .45); }
@media (max-width: 999px) {
  .island-card { padding: 10px 14px; }
  .isl { max-height: 150px; }
  .isl-wx { padding: 8px 10px; }
}

/* صفحه نتیجه: blueprint + کارت PNG */
.bp { perspective: 1200px; margin: 0 0 18px; }
.bp-sheet { transform-origin: top center; background-color: #0a2a8a; color: #dbe6ff; border-radius: 18px; padding: 16px; position: relative; overflow: hidden;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 20px 20px;
  transform: rotateX(-88deg) scaleY(.4); opacity: 0; transition: transform .9s var(--w-spring) .5s, opacity .3s .5s; }
.bp.open .bp-sheet { transform: none; opacity: 1; }
.bp.now .bp-sheet { transition: none; }
.bp-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; border-bottom: 1px dashed rgba(255, 255, 255, .3); padding-bottom: 6px; }
.bp-grid { display: grid; gap: 10px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bp-grid { grid-template-columns: 1.3fr 1fr; } }
.bp .isl { max-height: 200px; }
.bp .isl * { fill: none !important; stroke: #cfe0ff !important; stroke-width: .9 !important; animation: none !important; }
.bp .isl text { fill: #cfe0ff !important; stroke: none !important; }
.bp-list { list-style: none; margin: 0; padding: 0; font-size: 13px; display: grid; gap: 4px; }
.bp-list li { display: flex; gap: 8px; align-items: center; }
.bp-list i { width: 14px; height: 1px; background: #ffd27a; flex: none; }
.bp-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; }
.bp-actions small { color: var(--ink-2); font-size: 12px; }
.cparty { position: absolute; left: 50%; top: 50%; pointer-events: none; z-index: 3; }
.cparty i { position: absolute; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.cparty i::before { content: ""; position: absolute; width: 55%; height: 120%; left: 20%; bottom: 35%; border-radius: 50%; background: inherit; }
.result-hero { position: relative; overflow: visible; }
html.lite .isl .bld.nb, html.lite .bp-sheet { animation: none; transition: none; }

/* =====================================================================
   فاز ۵ — شخصیت، بازی‌وارسازی و غافلگیری
   ===================================================================== */
/* ---------- ابرک ---------- */
.mascot { --lean: 0deg; position: fixed; left: 0; bottom: 96px; z-index: 58; width: 68px; transform: translateX(-120%); transition: transform .6s var(--w-spring); }
.mascot.in.peek { transform: translateX(-42%) rotate(10deg); }
.mascot.in:hover, .mascot.in.out, .mascot.in:focus-within { transform: translateX(12px) rotate(0deg); }
.mk-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; rotate: var(--lean); transition: rotate .3s var(--w-out); }
.mk-btn svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 6px 10px rgba(0, 30, 120, .22)); animation: mk-bob 3.6s ease-in-out infinite; }
@keyframes mk-bob { 50% { transform: translateY(-4px); } }
.mk-body { fill: #fff; stroke: #9db2ff; stroke-width: 3; }
.mk-eye { fill: #0b1a4a; transform-box: fill-box; transform-origin: center; animation: mk-blink 5s infinite; }
@keyframes mk-blink { 0%, 94%, 100% { transform: none; } 97% { transform: scaleY(.1); } }
.mk-closed path { fill: none; stroke: #0b1a4a; stroke-width: 2.6; stroke-linecap: round; }
.mk-closed, .mk-drop, .mk-z, .m-joy, .m-sad, .m-o { opacity: 0; }
.mk-cheek { fill: #ffb3c7; opacity: .7; }
.mk-mouth { fill: none; stroke: #0b1a4a; stroke-width: 2.6; stroke-linecap: round; transition: opacity .2s; }
.m-joy { fill: #ff7a8a; stroke-width: 2; }
.mk-drop { fill: #7aa8ff; }
.mk-z text { font: 900 14px Vazirmatn, Tahoma, sans-serif; fill: #7d9bff; }
.mascot.sleep .mk-eyes, .mascot.sleep .m-smile { opacity: 0; }
.mascot.sleep .mk-closed, .mascot.sleep .m-o, .mascot.sleep .mk-z { opacity: 1; }
.mascot.sleep .mk-z text { animation: mk-z 2.4s ease-in-out infinite; }
.mascot.sleep .mk-z text + text { animation-delay: .8s; }
@keyframes mk-z { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
.mascot.sad .m-smile, .mascot.joy .m-smile { opacity: 0; }
.mascot.sad .m-sad, .mascot.sad .mk-drop { opacity: 1; }
.mascot.sad .mk-body { fill: #e6edff; }
.mascot.sad .mk-drop { animation: mk-drop 1.2s ease-in infinite; }
@keyframes mk-drop { from { transform: translateY(-4px); } to { transform: translateY(14px); opacity: 0; } }
.mascot.joy .m-joy { opacity: 1; }
.mascot.joy .mk-btn svg { animation: mk-jump .7s var(--w-spring) 2; }
@keyframes mk-jump { 30% { transform: translateY(-26px) scale(1.05, .95); } 60% { transform: translateY(0) scale(1.08, .9); } }
.mk-bub { position: absolute; bottom: calc(100% + 6px); left: 8px; width: max-content; max-width: min(240px, calc(100vw - 40px)); padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.8;
  opacity: 0; transform: translateY(8px) scale(.9); transform-origin: bottom left; pointer-events: none; transition: opacity .25s, transform .35s var(--w-spring); }
.mascot.talk .mk-bub { opacity: 1; transform: none; }
.mk-x { position: absolute; top: -6px; right: -8px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: 14px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s; padding: 0; }
.mascot:hover .mk-x, .mascot:focus-within .mk-x, .mascot.out .mk-x { opacity: 1; }
@media (max-width: 767px) { .mascot { width: 54px; bottom: 160px; } .mascot.in.peek { transform: translateX(-56%) rotate(10deg); } }
html.pal-open .mascot, html.sheet-open .mascot { opacity: 0; pointer-events: none; }

/* ---------- دستاوردها ---------- */
.ach-toast { position: fixed; top: 16px; left: 50%; z-index: 9000; width: 300px; max-width: calc(100% - 32px); display: flex; gap: 12px; align-items: center; padding: 12px 14px;
  border-radius: 18px; color: #fff; background: linear-gradient(135deg, #1a1f6e, #002db0); box-shadow: 0 18px 40px rgba(0, 20, 90, .35), inset 0 0 0 1.5px rgba(255, 210, 122, .55);
  transform: translate(-50%, -140%) scale(.9); transition: transform .5s var(--w-spring); }
.ach-toast.on { transform: translate(-50%, 0) scale(1); }
.ach-toast .ach-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(circle, #ffd27a, #ffb020); color: #5a3a00; animation: ach-spin 1s var(--w-spring); }
.ach-toast .ach-ic svg { width: 26px; height: 26px; }
@keyframes ach-spin { from { transform: rotate(-180deg) scale(0); } }
.ach-toast small { display: block; font-size: 11px; color: #ffd27a; font-weight: 800; }
.ach-toast b { display: block; font-size: 15px; }
.ach-toast span:not(.ach-ic) { font-size: 12px; color: #c9d6ff; }
.ach-panel { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 16px; }
.sheet-back { display: none; }
.ach-back, .pal-back, .sheet-back { position: absolute; inset: 0; background: rgba(5, 12, 44, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ach-box { position: relative; width: 420px; max-width: 100%; max-height: 80vh; overflow: auto; background: var(--card); color: var(--ink); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-lg); animation: m-hero-in .35s var(--w-out); }
.ach-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ach-h span { font-size: 13px; color: var(--ink-2); margin-inline-start: auto; }
.ach-x { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 18px; }
.ach-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ach-box li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--bg); opacity: .55; filter: grayscale(1); }
.ach-box li.on { opacity: 1; filter: none; }
.ach-box li .ach-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #ffd27a; color: #5a3a00; flex: none; }
.ach-box li .ach-ic svg { width: 20px; height: 20px; }
.ach-box li b { display: block; font-size: 14px; } .ach-box li small { font-size: 12px; color: var(--ink-2); }
.ach-box p { font-size: 12px; color: var(--ink-3); margin: 10px 0 0; }
.candy-rain { position: fixed; inset: 0; z-index: 8000; pointer-events: none; overflow: hidden; }
.candy-rain i { position: absolute; top: 0; width: 44px; height: 22px; }
.candy-rain svg { width: 100%; height: 100%; }

/* حالت پیکسلی رترو (کد کونامی) */
html.pixel { --radius: 0px; --radius-sm: 0px; }
html.pixel *, html.pixel *::before, html.pixel *::after { border-radius: 0 !important; transition-timing-function: steps(3) !important; }
html.pixel :is(.card, .btn, .bt, .quick-card, .chat, .duz, .faq details, .hx-btn, .filter, .qc-type, .opt, .type-card) { box-shadow: 4px 4px 0 #0b1a4a !important; border: 2px solid #0b1a4a !important; }
html.pixel img { image-rendering: pixelated; filter: saturate(1.4) contrast(1.15); }
html.pixel body { -webkit-font-smoothing: none; letter-spacing: .02em; }
html.pixel body::after { content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px); }
html.pixel .sky-gl { image-rendering: pixelated; }

/* ---------- پالت فرمان ---------- */
.pal { position: fixed; inset: 0; z-index: 9600; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; }
.pal[hidden] { display: none; }
.pal .pal-back { opacity: 0; transition: opacity .18s; }
.pal-box { position: relative; width: 560px; max-width: 100%; border-radius: 22px; overflow: hidden; color: var(--ink);
  background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); border: 1px solid var(--glass-line); box-shadow: 0 30px 80px rgba(0, 10, 50, .35);
  opacity: 0; transform: translateY(-10px) scale(.97); transition: opacity .18s, transform .3s var(--w-spring); }
.pal.on .pal-back { opacity: 1; } .pal.on .pal-box { opacity: 1; transform: none; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pal-in svg { width: 22px; height: 22px; color: var(--brand-ink); flex: none; }
.pal-in input { flex: 1; border: 0; background: transparent; font-size: 16px; outline: none; min-width: 0; color: var(--ink); }
.pal-in kbd { font: 600 11px/1 inherit; padding: 5px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink-2); }
.pal-list { list-style: none; margin: 0; padding: 6px; max-height: min(52vh, 420px); overflow: auto; }
.pal-list li[data-i] { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 600; }
.pal-list li.on { background: var(--brand); color: #fff; }
.pal-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-ink); flex: none; }
.pal-list li.on .pal-ic { background: rgba(255, 255, 255, .18); color: #fff; }
.pal-ic svg { width: 17px; height: 17px; }
.pal-g { font-size: 11px; font-weight: 800; color: var(--ink-3); padding: 8px 10px 2px; }
.pal-none { padding: 18px; text-align: center; color: var(--ink-2); font-size: 14px; }
.pal-foot { display: flex; gap: 14px; justify-content: center; padding: 8px; font-size: 11px; color: var(--ink-3); border-top: 1px solid var(--line); }
@media (max-width: 640px) { .pal { padding-top: 10vh; } .pal-foot { display: none; } }

/* =====================================================================
   فاز ۶ — انتقال صفحه‌ها و موبایل
   ===================================================================== */
/* View Transitions چندسندی: پرده‌ی ابری + لوگوی مشترک (fallback: همان محو motion.css / بدون انتقال) */
.header .brand img { view-transition-name: brand; }
::view-transition-group(brand) { animation-duration: .5s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
::view-transition-old(root) { animation: vt-out .4s ease both; }
::view-transition-new(root) { animation: vt-cloud .7s cubic-bezier(.65, 0, .35, 1) both;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 70'%3E%3Cpath d='M22 62h56a17 17 0 0 0 2.6-33.8A23 23 0 0 0 36.3 20 20 20 0 0 0 22 62z'/%3E%3C/svg%3E") center / 0 0 no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 70'%3E%3Cpath d='M22 62h56a17 17 0 0 0 2.6-33.8A23 23 0 0 0 36.3 20 20 20 0 0 0 22 62z'/%3E%3C/svg%3E") center / 0 0 no-repeat; }
@keyframes vt-out { to { opacity: 0; transform: scale(.97); filter: blur(3px); } }
@keyframes vt-cloud { 0% { -webkit-mask-size: 0 0; mask-size: 0 0; } 100% { -webkit-mask-size: 520vmax 364vmax; mask-size: 520vmax 364vmax; } }
html.lite::view-transition-old(root), html.lite::view-transition-new(root) { animation: none; -webkit-mask: none; mask: none; }

/* منوی موبایل: bottom-sheet فنری */
@media (max-width: 999px) {
  html.fx-sheet .mobile-nav { display: block; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 95; max-height: 78vh; overflow: auto; border-radius: 24px 24px 0 0; border: 0;
    padding: 6px 20px calc(18px + env(safe-area-inset-bottom)); background: var(--card); box-shadow: 0 -20px 50px rgba(0, 10, 50, .25);
    transform: translateY(105%); visibility: hidden; transition: transform .55s var(--w-spring), visibility 0s .55s; }
  html.fx-sheet .mobile-nav.open { transform: none; visibility: visible; transition: transform .55s var(--w-spring), visibility 0s; }
  .sheet-grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 6px auto 8px; }
  .sheet-back { display: block; position: fixed; z-index: 94; opacity: 0; pointer-events: none; transition: opacity .3s; }
  html.sheet-open .sheet-back { opacity: 1; pointer-events: auto; }
  html.sheet-open body { overflow: hidden; }
  html.fx-sheet .mobile-nav a { border-radius: 12px; padding: 13px 10px; }
  html.fx-sheet .mobile-nav a:not(.btn):active { background: var(--brand-50); }
}
.m-mbar.m-on.fx-hide { transform: translateY(110%); }

/* ---------- پشتیبانی: ردیاب پرواز ---------- */
.flt { --to: 0%; margin: 16px 0 6px; }
.flt-track { position: relative; height: 34px; margin: 0 14px; }
.flt-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2.5px dashed var(--brand-100); }
.flt-done { position: absolute; right: 0; top: calc(50% - 1.5px); height: 3px; width: 0; background: linear-gradient(270deg, var(--brand), var(--accent)); border-radius: 2px; transition: width 1.2s var(--w-out) .2s; }
.flt-plane { position: absolute; top: 3px; right: 0; width: 28px; height: 28px; margin-right: -14px; transform: scaleX(-1) rotate(6deg); transition: right 1.2s var(--w-out) .2s; animation: pp-bob 1.6s ease-in-out infinite; }
.flt-plane svg { width: 100%; height: 100%; }
.flt.go .flt-done { width: var(--to); } .flt.go .flt-plane { right: var(--to); }
.flt.now .flt-done, .flt.now .flt-plane { transition: none; }
.flt-st { list-style: none; display: flex; justify-content: space-between; margin: 4px 0 0; padding: 0; }
.flt-st li { display: grid; justify-items: center; gap: 2px; font-size: 12px; color: var(--ink-3); font-weight: 700; width: 56px; }
.flt-st li i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); }
.flt-st li.done { color: var(--ink-2); } .flt-st li.done i { background: var(--brand); border-color: var(--brand); }
.flt-st li.on { color: var(--brand-ink); } .flt-st li.on i { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 176, 32, .25); }
.flt-off { position: absolute; width: 30px; height: 30px; left: 50%; top: 0; pointer-events: none; animation: flt-off 1.6s cubic-bezier(.5, 0, .8, .4) .5s both; }
.flt-off svg { width: 100%; height: 100%; }
.success-box .ok-ic { position: relative; }
@keyframes flt-off { 0% { transform: translate(-50%, 0) scale(.4); opacity: 0; } 20% { opacity: 1; transform: translate(-50%, -10px) scale(1); } 100% { transform: translate(-260px, -160px) rotate(-20deg) scale(.6); opacity: 0; } }
/* تب شکایت: آرام و گرم */
#tab-complaint { --brand-50: #fff4e6; border-radius: 16px; }
.card:has(#tab-complaint:not([hidden])) { background: linear-gradient(180deg, #fffaf3, var(--card) 40%); border-color: #f5e1c4; }
[data-sky="night"] .card:has(#tab-complaint:not([hidden])) { background: linear-gradient(180deg, #1d1726, var(--card) 40%); border-color: #3a2e3a; }
#tab-complaint .btn-primary { background: #b4541f; box-shadow: 0 6px 18px rgba(180, 84, 31, .25); }
#tab-complaint .btn-primary:hover { background: #9a4416; }
.calm-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #fff1de; color: #7a3e00; margin: -6px 0 18px; font-size: 14px; }
.calm-note svg { width: 22px; height: 22px; flex: none; color: #d0682a; margin-top: 3px; }
.calm-note p { margin: 0; line-height: 1.9; }
[data-sky="night"] .calm-note { background: #2a1d14; color: #ffd8b0; }

/* ---------- ۴۰۴: ابر گمشده ---------- */
.lost-hero { position: relative; overflow: hidden; color: #fff; padding: 48px 0 72px; background: radial-gradient(800px 400px at 80% 0%, rgba(47, 92, 255, .5), transparent 60%), linear-gradient(160deg, #001a6e, #002db0 60%, #1f4bff); }
[data-sky="night"] .lost-hero { background: linear-gradient(180deg, #030820, #0b1a4a); }
.lost-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1000px) { .lost-grid { grid-template-columns: .9fr 1.1fr; } }
.lost-copy .kicker { color: var(--accent); font-weight: 800; }
.lost-copy h1 { font-size: clamp(26px, 4.4vw, 42px); font-weight: 900; margin: 6px 0 10px; }
.lost-copy h1 em { font-style: normal; color: var(--accent); }
.lost-copy p { color: #d6e0ff; }
.lost-links { font-size: 14px; margin-top: 18px; } .lost-links a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.lost-game { position: relative; border-radius: 24px; overflow: hidden; min-height: 360px; background: linear-gradient(180deg, #5d8bff, #b9d0ff); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 30px 60px rgba(0, 10, 60, .35); }
.lg-hud { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; font-size: 13px; background: rgba(0, 20, 90, .35); }
.lg-hud b { font-size: 16px; }
.lg-field { position: absolute; inset: 44px 0 0; overflow: hidden; }
.lg-c { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; animation: lg-fly var(--dur) linear forwards; }
.lg-c.ltr { left: -140px; } .lg-c.rtl { right: -140px; animation-name: lg-fly-r; }
.lg-c svg { width: 100%; height: auto; display: block; }
.lg-c.lost { z-index: 2; filter: drop-shadow(0 6px 10px rgba(0, 20, 90, .3)); }
.lg-c.lost svg { animation: mk-bob 1s ease-in-out infinite; }
.lg-c.got { animation-play-state: paused; } .lg-c.got svg { animation: lg-got .4s ease-out forwards; }
.lg-c.nope svg { animation: shake .3s; }
@keyframes lg-fly { to { transform: translateX(calc(100cqw + 280px)); } }
@keyframes lg-fly-r { to { transform: translateX(calc(-100cqw - 280px)); } }
.lg-field { container-type: inline-size; }
@keyframes lg-got { to { transform: scale(1.8); opacity: 0; } }
.lg-over { position: absolute; inset: 44px 0 0; z-index: 4; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; padding: 20px; background: rgba(0, 26, 110, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.lg-over[hidden] { display: none; }
.lg-over b { font-size: 22px; } .lg-over p { margin: 0 0 8px; color: #d6e0ff; }
.lg-over .hero-actions { margin-top: 6px; justify-content: center; }
html.lite .lg-c.ltr { animation: lg-fly var(--dur) linear forwards !important; } html.lite .lg-c.rtl { animation: lg-fly-r var(--dur) linear forwards !important; } /* بازی تعاملی است؛ در حالت سبک هم کار می‌کند */
html.lite .mk-btn svg { animation: none; }

/* =====================================================================
   تصاویر GPT (GPT-SuperSite-Assets.md) — js/fx/assets.js
   جایگاه‌ها: [data-asset]؛ وقتی فایل هست ‎.as-on‎ می‌گیرند و SVG جایگزین پنهان می‌شود.
   html.as-<key> برای جایگاه‌هایی که فقط با تصویر واقعی ظاهر می‌شوند.
   ===================================================================== */
[data-asset].as-on > svg { display: none; }
.as-img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Hero: ابرهای دور/نزدیک (تکرارشونده) به‌جای ابرهای SVG + اشیای شناور */
.sky-cf, .sky-cn, .sky-floaters { display: none; }
html.as-clouds-far .sky-cf { display: block; left: -1600px; right: 0; bottom: 22%; height: 375px; opacity: .5;
  background: var(--a-clouds-far) repeat-x 0 100% / 1600px auto; animation: cl-drift 200s linear infinite; translate: calc(var(--px) * -12px) calc(var(--py) * -6px); }
html.as-clouds-near .sky-cn { display: block; left: -1000px; right: 0; bottom: -20px; height: 274px;
  background: var(--a-clouds-near) repeat-x 0 100% / 1000px auto; animation: cl-drift 140s linear infinite reverse; translate: calc(var(--px) * -30px) calc(var(--py) * -12px); }
@keyframes cl-drift { to { transform: translateX(1000px); } }
html.as-clouds-near .hero-stats div { background: rgba(0, 26, 110, .38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html.as-clouds-far .sky-cf { animation-name: cl-drift-far; } @keyframes cl-drift-far { to { transform: translateX(1600px); } }
html.as-clouds-near .world-hero .m-clouds { display: none; }
html.as-clouds-near .world-hero .m-divider path:first-child { opacity: 0; }
[data-sky="night"] .sky-cf, [data-sky="night"] .sky-cn { filter: brightness(.42) saturate(1.3) hue-rotate(8deg); }
[data-sky="dusk"] .sky-cf, [data-sky="dusk"] .sky-cn { filter: sepia(.35) saturate(1.4) hue-rotate(-18deg) brightness(.92); }
[data-sky="dawn"] .sky-cf, [data-sky="dawn"] .sky-cn { filter: sepia(.25) saturate(1.3) hue-rotate(-30deg); }
@media (max-width: 999px) {
  html.as-clouds-far .sky-cf { left: -900px; height: 211px; background-size: 900px auto; animation-name: cl-drift-m; }
  html.as-clouds-near .sky-cn { left: -800px; height: 219px; background-size: 800px auto; animation-name: cl-drift-m2; }
  @keyframes cl-drift-m { to { transform: translateX(900px); } } @keyframes cl-drift-m2 { to { transform: translateX(800px); } }
}
html.as-floater-1 .sky-floaters { display: block; position: absolute; inset: 0; }
.sky-fl { position: absolute; width: 54px; height: 54px; opacity: 0; filter: drop-shadow(0 8px 12px rgba(0, 10, 60, .3)); }
.sky-fl.as-on { opacity: .95; animation: fl-bob 7s ease-in-out infinite; }
.sky-fl.f1 { left: 46%; top: 18%; translate: calc(var(--px) * -46px) calc(var(--py) * -26px); }
.sky-fl.f3 { left: 6%; top: 62%; width: 44px; height: 44px; animation-delay: -2s; translate: calc(var(--px) * -54px) calc(var(--py) * -30px); }
.sky-fl.f4 { left: 40%; top: 72%; width: 40px; height: 40px; animation-delay: -4s; translate: calc(var(--px) * -38px) calc(var(--py) * -20px); }
.sky-fl.f6 { right: 4%; top: 8%; width: 46px; height: 46px; animation-delay: -5.5s; translate: calc(var(--px) * -60px) calc(var(--py) * -34px); }
@keyframes fl-bob { 50% { transform: translateY(-12px) rotate(8deg); } }
@media (max-width: 999px) { .sky-floaters { display: none !important; } }
.world-hero .hero-art img { max-width: 340px; }
@media (min-width: 1000px) { .world-hero .hero-art img { max-width: 600px; } }

/* شهر: نوار پایین بخش تماس + سیلوئت فوتر */
.city-strip { display: none; }
html.as-city-skyline-day .city-strip { display: block; height: clamp(110px, 17vw, 240px); margin: 36px auto -64px; max-width: 1200px; position: relative; z-index: 1;
  background: var(--a-city-day) center bottom / contain no-repeat; }
[data-sky="night"] .city-strip { display: none !important; } /* شب: شهر فقط در فوتر (تکرار نشود) */
.fcity-art { display: none; }
html.as-city-skyline-night .fcity-sl { display: none; }
html.as-city-skyline-night .fcity-art { display: block; position: relative; height: clamp(120px, 18vw, 250px); max-width: 1100px; margin: 26px auto 0;
  background: var(--a-city-night) center bottom / contain no-repeat; }
.fcity-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; mix-blend-mode: screen;
  background: radial-gradient(140px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 210, 122, .55), transparent 70%);
  -webkit-mask: var(--a-city-night) center bottom / contain no-repeat; mask: var(--a-city-night) center bottom / contain no-repeat; }
.fcity-art.lit .fcity-glow { opacity: 1; }

/* View Transition: پرده ابری واقعی (cloud-curtain) از سمت راست */
html.as-cloud-curtain::view-transition-new(root) { -webkit-mask: var(--a-curtain) right center / 0 auto no-repeat; mask: var(--a-curtain) right center / 0 auto no-repeat; animation: vt-curtain .75s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes vt-curtain { to { -webkit-mask-size: 420vmax auto; mask-size: 420vmax auto; } }

/* ابرک */
.mk-img { display: none; width: 100%; height: auto; }
.mascot.as-art .mk-btn svg { display: none; }
.mascot.as-art .mk-img[data-st="idle"] { display: block; animation: mk-bob 3.6s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(0, 30, 120, .22)); }
.mascot.as-art.wave .mk-img[data-st="idle"], .mascot.as-art.in.peek:not(.out):not(:hover) .mk-img[data-st="idle"], .mascot.as-art.talk .mk-img[data-st="idle"],
.mascot.as-art.joy .mk-img[data-st="idle"], .mascot.as-art.sad .mk-img[data-st="idle"], .mascot.as-art.sleep .mk-img[data-st="idle"], .mascot.as-art.think .mk-img[data-st="idle"] { display: none; }
.mascot.as-art.wave .mk-img[data-st="wave"] { display: block; }
.mascot.as-art.in.peek:not(.out):not(:hover):not(.wave) .mk-img[data-st="peek"] { display: block; }
.mascot.as-art.talk:not(.joy):not(.sad):not(.sleep) .mk-img[data-st="talk"] { display: block; }
.mascot.as-art.think:not(.joy):not(.sad) .mk-img[data-st="think"] { display: block; }
.mascot.as-art.talk.think .mk-img[data-st="talk"] { display: none; }
.mascot.as-art.joy .mk-img[data-st="joy"] { display: block; animation: mk-jump .7s var(--w-spring) 2; }
.mascot.as-art.sad .mk-img[data-st="sad"] { display: block; }
.mascot.as-art.sleep .mk-img[data-st="sleep"] { display: block; }
.mascot.as-art { width: 84px; }
@media (max-width: 767px) { .mascot.as-art { width: 64px; } }
.mascot.as-art.in.peek { transform: translateX(-20%) rotate(0deg); }
@media (max-width: 767px) { .mascot.as-art.in.peek { transform: translateX(-34%); } }

/* نوار پیشرفت: ابرک سوار هواپیما */
.pp-plane.as-on { width: 46px; height: 46px; top: -6px; right: -16px; }
.pp { height: 46px; }
.pp-rail { height: 46px; width: calc(100% - 40px); }

/* کارت خدمات، مراحل، بازی‌ها، دوز */
.pop-scene.as-on { width: 104px; height: 104px; top: -52px; left: 8px; }
.st-ic.as-on { display: block; width: 46px; height: 46px; margin-top: -2px; }
.step .st-dot:has(.st-ic.as-on) { background: var(--card); }
.step.lit .st-dot:has(.st-ic.as-on) { background: radial-gradient(circle, #fff 55%, var(--brand-50)); border-color: var(--accent); }
.step.lit .st-dot:has(.st-ic.as-on) .st-ic { animation: st-ic .6s var(--w-spring); }
.gc-ic { display: block; width: 32px; height: 32px; color: var(--accent); }
.gc-ic svg { width: 100%; height: 100%; }
.gc-ic.as-on { width: 56px; height: 56px; }
.duz-img { width: 100%; height: 100%; object-fit: contain; animation: duz-in .45s var(--w-spring); }
.product .cover.gs-cover { background: url("../assets/img/world/gamestan-cover.webp") center / cover !important; }
html:not(.as-gamestan-cover) .product .cover.gs-cover { background: linear-gradient(135deg, #002db0, #2f5cff) !important; }
.product .cover.gs-cover { text-shadow: 0 2px 12px rgba(0, 10, 60, .7); justify-items: start; padding-inline-start: 7%; }
html.as-gamestan-cover .product .cover.gs-cover .m-pattern { display: none; }

/* جزیره */
.isl-wx-ic img { width: 34px; height: 34px; object-fit: contain; display: block; }
.isl.isl-art { max-height: 250px; }
.bp .isl image { filter: grayscale(1) brightness(2.4) contrast(.7); opacity: .7; mix-blend-mode: screen; }
@media (max-width: 999px) { .isl.isl-art { max-height: 170px; } }

/* تیم، نقشه، نشان‌ها، آب‌نبات، ۴۰۴، پشتیبانی */
.avs .av { display: block; width: 56px; height: 56px; margin: 0 auto 2px; transition: transform .4s var(--w-spring); }
.avs .av svg { width: 100%; height: 100%; margin: 0; }
.avs .av.as-on { width: 64px; height: 64px; }
.avs figure:hover .av { transform: translateY(-6px) rotate(-6deg); }
.map-box.map-ill { display: flex; flex-direction: column; }
.map-art.as-on { background: linear-gradient(180deg, #dbe8ff, #f4f8ff); }
[data-sky="night"] .map-box.map-ill { background: var(--card); }
.map-art.as-on .as-img { height: 320px; object-fit: contain; }
[data-sky="night"] .map-art.as-on { background: linear-gradient(180deg, #0d1a44, #13246a); }
@media (max-width: 640px) { .map-art.as-on .as-img { height: 260px; } }
.ach-ic.as-on { background: none !important; }
.ach-toast .ach-ic.as-on { width: 54px; height: 54px; }
.ach-box li .ach-ic.as-on { width: 44px; height: 44px; }
.candy-rain i img { width: 100%; height: 100%; object-fit: contain; }
.candy-rain i:has(img) { width: 48px; height: 48px; }
.lg-c.art img { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 10px rgba(0, 20, 90, .25)); }
.lg-c.art.lost img { animation: mk-bob 1s ease-in-out infinite; filter: drop-shadow(0 0 14px rgba(255, 200, 60, .85)); }
.lost-scene { display: none; }
.lost-scene.as-on { display: block; width: min(300px, 70%); margin: -10px 0 4px; }
.lost-scene.as-on .as-img { height: auto; }
.sup-hub { width: 150px; height: 112px; margin: -6px auto 8px; }
.sup-hub.as-on { width: 190px; height: 190px; margin: -12px auto 0; }
.flt-plane.as-on { width: 46px; height: 30px; margin-right: -23px; top: 2px; transform: none; }
.flt-off.as-on { width: 54px; height: 40px; }
html.lite .sky-cf, html.lite .sky-cn { animation: none; }
