/* ============================================================
   BOZPOINT 2027 | Game Universe Design System
   Deep Black × Amber — Mobile First / RTL / HUD & Glass
   فونت: آینده (Ayandeh) — سلف‌هاست، بدون هیچ درخواست خارجی
   ============================================================ */

/* ---------- ۰) فونت آینده ---------- */
@font-face {
    font-family: "Ayandeh";
    src: url("../fonts/Ayandeh-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Ayandeh";
    src: url("../fonts/Ayandeh-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Ayandeh";
    src: url("../fonts/Ayandeh-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Ayandeh";
    src: url("../fonts/Ayandeh-Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ---------- ۱) توکن‌های دیزاین ---------- */
:root {
    /* مشکی عمیق با ته‌مایهٔ گرم */
    --bg-0:   #070503;
    --bg-1:   #0b0806;
    --bg-2:   #120e09;
    --bg-3:   #191309;

    /* سیستم کهربایی/نارنجی */
    --amber:      #ffb100;
    --amber-hi:   #ffca4d;
    --orange:     #ff8a00;
    --ember:      #ff5e00;
    --amber-deep: #b87400;

    /* متن */
    --text:  #f7f1e4;
    --muted: #a89a82;
    --faint: #8d7d5f;
    --cream: #f2e2c0;

    /* خطوط و شیشه */
    --line:        rgba(255, 177, 0, .16);
    --line-soft:   rgba(255, 224, 160, .09);
    --glass:       linear-gradient(180deg, rgba(255, 240, 214, .05), rgba(255, 240, 214, .015));
    --glass-strong: linear-gradient(180deg, rgba(255, 240, 214, .08), rgba(255, 240, 214, .03));

    --radius:    18px;
    --radius-lg: 26px;

    --shadow:        0 18px 44px rgba(0, 0, 0, .55);
    --glow-amber:    0 0 24px rgba(255, 138, 0, .25);
    --glow-amber-lg: 0 0 48px rgba(255, 138, 0, .30);

    --header-h: 64px;

    --font-display: "Ayandeh", "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
    --font:         "Ayandeh", "Vazirmatn", "Segoe UI", "Noto Naskh Arabic", Tahoma, sans-serif;
    --font-hud:     ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

    --ease-out: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- ۲) ریست و پایه ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font);
    font-weight: 400;
    background: var(--bg-1);
    color: var(--text);
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    /* ستاره‌های غبار کهربایی */
    background-image:
        radial-gradient(1px 1px at 18% 26%, rgba(255, 177, 0, .35) 0, transparent 0),
        radial-gradient(1px 1px at 72% 62%, rgba(255, 138, 0, .28) 0, transparent 0),
        radial-gradient(1px 1px at 44% 84%, rgba(255, 236, 200, .16) 0, transparent 0),
        radial-gradient(1.5px 1.5px at 86% 14%, rgba(255, 177, 0, .22) 0, transparent 0);
    background-repeat: repeat;
    background-size: 420px 420px;
}

/* لایهٔ اسکن‌لاین CRT — خیلی ظریف */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(255, 244, 224, .02) 0 1px, transparent 1px 3px);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 900; }

::selection { background: var(--amber); color: #201300; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #2b2113; border-radius: 8px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: #403017; }

.skip-link {
    position: fixed;
    top: -80px;
    inset-inline-start: 16px;
    z-index: 100;
    background: var(--amber);
    color: #201300;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 12px;
    transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- ۳) نوار XP (پیشرفت اسکرول) ---------- */
.xp-bar {
    position: fixed;
    top: 0;
    inset-inline: 0;
    height: 3px;
    z-index: 80;
    background: rgba(255, 177, 0, .08);
}
.xp-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--orange), var(--amber-hi));
    box-shadow: 0 0 12px rgba(255, 138, 0, .65);
}

/* ---------- ۴) ابزارهای عمومی ---------- */
.container { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 12vw, 96px); }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.section-head { text-align: center; max-width: 660px; margin: 0 auto clamp(32px, 7vw, 52px); }

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--amber);
    font-family: var(--font-hud);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .22em;
    margin-bottom: 14px;
}
.section-kicker::before,
.section-kicker::after {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--amber));
}
.section-kicker::after { background: linear-gradient(90deg, var(--amber), transparent); }

.section-title {
    font-size: clamp(1.7rem, 6.4vw, 2.6rem);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -.01em;
    text-wrap: balance;
}
.section-sub { color: var(--muted); margin-top: 12px; font-size: 1rem; }

/* ---------- ۵) دکمه‌ها ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
    min-height: 52px;
    padding: 12px 28px;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out),
                background-color .18s ease, border-color .18s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.985); }

.btn--primary {
    background: linear-gradient(165deg, var(--amber-hi) 0%, var(--orange) 62%, var(--ember) 100%);
    color: #201300;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .38),
        inset 0 -2px 0 rgba(122, 62, 0, .35),
        0 10px 26px rgba(255, 122, 0, .30),
        0 3px 8px rgba(0, 0, 0, .45);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .22);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .42),
        inset 0 -2px 0 rgba(122, 62, 0, .35),
        0 16px 34px rgba(255, 122, 0, .42),
        0 4px 10px rgba(0, 0, 0, .45);
}
.btn--primary:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 6px rgba(90, 45, 0, .4), 0 4px 12px rgba(255, 122, 0, .25);
}

.btn--ghost {
    color: var(--amber-hi);
    border-color: rgba(255, 177, 0, .38);
    background: rgba(255, 177, 0, .06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.btn--ghost:hover {
    background: rgba(255, 177, 0, .13);
    border-color: rgba(255, 177, 0, .65);
    transform: translateY(-2px);
    box-shadow: var(--glow-amber);
}

.btn--lg { padding: 15px 34px; font-size: 1.08rem; border-radius: 18px; min-height: 58px; }
.btn--sm { min-height: 44px; padding: 8px 20px; font-size: .92rem; border-radius: 13px; }

/* ---------- ۶) اجزای HUD ---------- */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber-hi);
    box-shadow: 0 0 0 0 rgba(255, 202, 77, .5);
    animation: livePulse 2s ease infinite;
}
@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 202, 77, .45); }
    70%  { box-shadow: 0 0 0 9px rgba(255, 202, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 202, 77, 0); }
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-hud);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--faint);
    border: 1px solid var(--line-soft);
    background: rgba(255, 240, 214, .03);
    padding: 4px 12px;
    border-radius: 999px;
}

/* ---------- ۷) هدر ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(18, 13, 8, .98) 0%, rgba(10, 7, 4, .96) 100%);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease;
    isolation: isolate;
}
.site-header.scrolled {
    border-bottom-color: rgba(255, 177, 0, .18);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 1.22rem; }
.brand-mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(255, 138, 0, .35));
    transition: transform .3s var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-edition {
    font-family: var(--font-hud);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--amber);
    border: 1px solid rgba(255, 177, 0, .4);
    background: rgba(255, 177, 0, .07);
    padding: 2px 7px;
    border-radius: 7px;
    transform: translateY(-1px);
}

.site-nav {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 14px;
    z-index: 49;
    background: linear-gradient(180deg, #1c150c 0%, #110c07 100%);
    border: 1px solid rgba(255, 177, 0, .22);
    border-radius: var(--radius);
    box-shadow: var(--shadow), var(--glow-amber);
    padding: 12px;
    display: none;
    transform: translateZ(0);
}
.site-nav.open { display: block; animation: menuIn .2s var(--ease-out); }
@keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }

.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-list a {
    display: block;
    padding: 13px 16px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 700;
    font-size: 1rem;
    transition: color .15s ease, background-color .15s ease, padding-inline-start .15s ease;
}
.nav-list a:hover, .nav-list a.active {
    color: var(--amber-hi);
    background: rgba(255, 177, 0, .08);
    padding-inline-start: 20px;
}
.nav-cta { width: 100%; margin-top: 10px; }

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    border: 1px solid rgba(255, 177, 0, .3);
    background: rgba(255, 177, 0, .05);
    -webkit-tap-highlight-color: transparent;
}
.nav-toggle span { width: 20px; height: 2px; border-radius: 1px; background: var(--amber-hi); transition: transform .22s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- ۸) هیرو سینمایی ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 92vh;
    min-height: 92svh;
    padding-block: 48px 72px;
    overflow: hidden;
    background:
        radial-gradient(900px 480px at 85% -10%, rgba(255, 138, 0, .13), transparent 68%),
        radial-gradient(700px 420px at 0% 110%, rgba(255, 177, 0, .09), transparent 70%),
        var(--bg-1);
}

/* گرید ظریف + ماسک شعاعی */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 177, 0, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 177, 0, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(720px 520px at 78% 8%, #000 20%, transparent 74%);
    mask-image: radial-gradient(720px 520px at 78% 8%, #000 20%, transparent 74%);
    pointer-events: none;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; }
.orb-a {
    width: min(70vw, 480px);
    height: min(70vw, 480px);
    top: -14%;
    inset-inline-end: -16%;
    background: radial-gradient(circle, rgba(255, 138, 0, .17), transparent 66%);
}
.orb-b {
    width: min(80vw, 540px);
    height: min(80vw, 540px);
    bottom: -24%;
    inset-inline-start: -20%;
    background: radial-gradient(circle, rgba(255, 177, 0, .10), transparent 66%);
}
.hero-watermark {
    position: absolute;
    bottom: 1.5%;
    left: 50%;
    transform: translateX(-50%);
    direction: ltr;
    white-space: nowrap;
    font-family: var(--font-hud);
    font-size: clamp(3.2rem, 15vw, 11rem);
    font-weight: 700;
    letter-spacing: .06em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 177, 0, .12);
    opacity: .6;
    user-select: none;
}
@supports not (-webkit-text-stroke: 1px black) {
    .hero-watermark { color: rgba(255, 177, 0, .05); }
}

.hero-grid { position: relative; display: grid; gap: 34px; align-items: center; width: 100%; }

/* وضعیت سرور */
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
    font-family: var(--font-hud);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--amber-hi);
    background: rgba(255, 177, 0, .06);
    border: 1px solid rgba(255, 177, 0, .3);
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
    box-shadow: inset 0 0 18px rgba(255, 138, 0, .07), 0 0 22px rgba(255, 138, 0, .08);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
}
.status-text { color: var(--text); }
.status-sep { color: var(--amber-deep); }
.status-season { color: var(--faint); }

.hero-title {
    font-size: clamp(2.55rem, 11.5vw, 4.9rem);
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: -.01em;
    margin-bottom: 18px;
    text-wrap: balance;
}
.hero-title .accent {
    background: linear-gradient(100deg, #ffd257 0%, var(--orange) 48%, var(--ember) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    z-index: 1;
    filter: drop-shadow(0 0 26px rgba(255, 138, 0, .38));
    animation: shine 6.5s linear infinite;
}
@keyframes shine { to { background-position: -200% center; } }
.hero-title .accent::after {
    content: "";
    position: absolute;
    inset-inline: 2px;
    bottom: 4px;
    height: 12px;
    background: rgba(255, 138, 0, .22);
    border-radius: 8px;
    z-index: -1;
}

.hero-sub {
    color: var(--muted);
    font-size: clamp(1.02rem, 3.4vw, 1.2rem);
    max-width: 470px;
    margin-bottom: 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-actions .btn { flex: 1 1 auto; }

.hero-alt-links { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.hero-alt-links a { color: var(--amber-hi); font-weight: 700; transition: color .15s ease; }
.hero-alt-links a:hover { color: #ffd257; text-decoration: underline; text-underline-offset: 4px; }

.hero-note { display: flex; align-items: center; gap: 8px; color: var(--amber); font-size: .9rem; font-weight: 700; }
.hero-note svg { width: 18px; height: 18px; flex-shrink: 0; }

/* صحنهٔ ماسکات */
.hero-visual { position: relative; display: flex; justify-content: center; }
.mascot-scene { position: relative; width: min(320px, 82vw); }
.mascot {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .5));
    animation: mascotFloat 5.2s ease-in-out infinite;
}
@keyframes mascotFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.mascot-ring { transform-origin: 140px 140px; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.goat-eyes { transform-box: fill-box; transform-origin: center; animation: blink 5.8s ease infinite; }
@keyframes blink {
    0%, 93.5%, 100% { transform: scaleY(1); }
    96% { transform: scaleY(.08); }
}

.mascot-coin { transform-box: fill-box; transform-origin: center; animation: coinBob 3.4s ease-in-out infinite; }
@keyframes coinBob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(8deg); } }

.sparkle { transform-box: fill-box; transform-origin: center; opacity: .85; }
.sparkle.s1 { animation: twinkle 2.6s ease-in-out infinite; }
.sparkle.s2 { animation: twinkle 3.4s ease-in-out infinite .8s; }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.8) rotate(0deg); } 50% { opacity: 1; transform: scale(1.12) rotate(24deg); } }

/* چیپ‌های HUD دور ماسکات */
.hud-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-hud);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--amber-hi);
    background: linear-gradient(180deg, rgba(26, 20, 11, .92), rgba(14, 10, 6, .92));
    border: 1px solid rgba(255, 177, 0, .35);
    padding: 7px 13px;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .5), 0 0 16px rgba(255, 138, 0, .12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    white-space: nowrap;
}
.hud-chip svg { width: 13px; height: 13px; }
.hud-chip--top   { top: 6%; inset-inline-end: 0; animation: chipFloat 4.2s ease-in-out infinite; }
.hud-chip--end   { top: 44%; inset-inline-end: -4%; animation: chipFloat 4.2s ease-in-out infinite .7s; direction: rtl; font-family: var(--font); font-size: .76rem; letter-spacing: 0; }
.hud-chip--start { bottom: 13%; inset-inline-start: -2%; animation: chipFloat 4.2s ease-in-out infinite 1.3s; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- ۹) تیکر / فید بازی ---------- */
.ticker {
    position: relative;
    overflow: hidden;
    padding-block: 14px;
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    border-block: 1px solid var(--line-soft);
}
.ticker::before, .ticker::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 72px;
    z-index: 1;
    pointer-events: none;
}
.ticker::before { inset-inline-start: 0; background: linear-gradient(to left, var(--bg-1), transparent); }
.ticker::after  { inset-inline-end: 0;  background: linear-gradient(to right, var(--bg-1), transparent); }

.ticker-track { display: flex; width: max-content; animation: tickerMove 30s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; gap: 30px; padding-inline-end: 30px; }
.ticker-item { color: var(--cream); font-size: .95rem; font-weight: 700; white-space: nowrap; letter-spacing: .01em; }
.ticker-sep {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
    opacity: .55;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(255, 177, 0, .5);
}
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- ۱۰) آمار زندهٔ سرور ---------- */
.stats-section { background: radial-gradient(640px 300px at 50% 0%, rgba(255, 138, 0, .07), transparent 72%), var(--bg-1); }

.server-panel {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 5vw, 34px);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.server-panel::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 177, 0, .55), transparent);
}

.server-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px dashed var(--line-soft);
}
.server-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-hud);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--amber-hi);
}
.server-title { font-size: 1.08rem; font-weight: 900; margin-inline-end: auto; }
.server-tag {
    font-family: var(--font-hud);
    font-size: .68rem;
    letter-spacing: .14em;
    color: var(--faint);
    border: 1px solid var(--line-soft);
    padding: 4px 10px;
    border-radius: 8px;
}

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.stat {
    position: relative;
    text-align: center;
    background: rgba(255, 240, 214, .025);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 22px 12px 26px;
    transition: border-color .2s ease, transform .2s var(--ease-out), box-shadow .2s ease;
}
.stat:hover {
    border-color: rgba(255, 177, 0, .45);
    transform: translateY(-3px);
    box-shadow: var(--glow-amber);
}
.stat-icon {
    font-size: 1.7rem;
    display: block;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 12px rgba(255, 138, 0, .3));
}
.stat-value {
    direction: ltr;
    unicode-bidi: isolate;
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 5.6vw, 2.15rem);
    font-weight: 900;
    color: var(--amber-hi);
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
    text-shadow: 0 0 26px rgba(255, 138, 0, .4);
}
.stat-label { color: var(--muted); font-size: .9rem; margin-top: 2px; }

.stat-bar {
    display: block;
    height: 3px;
    margin-top: 14px;
    border-radius: 3px;
    background: rgba(255, 240, 214, .07);
    overflow: hidden;
}
.stat-bar i {
    display: block;
    height: 100%;
    width: var(--w, 60%);
    border-radius: 3px;
    background: linear-gradient(90deg, var(--orange), var(--amber-hi));
    box-shadow: 0 0 8px rgba(255, 138, 0, .5);
}
.js .server-panel:not(.is-visible) .stat-bar i { width: 0; transition: none; }
.js .server-panel.is-visible .stat-bar i { transition: width 1.1s var(--ease-out) .35s; }

/* ---------- ۱۱) ماژول‌ها (امکانات) ---------- */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.module-card {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    padding: 24px 22px;
    transition: transform .3s var(--ease-out), border-color .3s ease, box-shadow .3s ease;
    overflow: hidden;
}
.module-card::after {
    content: "";
    position: absolute;
    inset-inline-end: -40px;
    top: -40px;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(255, 138, 0, .18), transparent 70%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.module-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 177, 0, .5);
    box-shadow: var(--shadow), var(--glow-amber);
}
.module-card:hover::after { opacity: 1; }

/* گوشه‌های HUD — با هاور روشن می‌شوند */
.corners {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
    background:
        linear-gradient(var(--amber), var(--amber)) left 10px top 10px / 16px 2px no-repeat,
        linear-gradient(var(--amber), var(--amber)) left 10px top 10px / 2px 16px no-repeat,
        linear-gradient(var(--amber), var(--amber)) right 10px top 10px / 16px 2px no-repeat,
        linear-gradient(var(--amber), var(--amber)) right 10px top 10px / 2px 16px no-repeat,
        linear-gradient(var(--amber), var(--amber)) left 10px bottom 10px / 16px 2px no-repeat,
        linear-gradient(var(--amber), var(--amber)) left 10px bottom 10px / 2px 16px no-repeat,
        linear-gradient(var(--amber), var(--amber)) right 10px bottom 10px / 16px 2px no-repeat,
        linear-gradient(var(--amber), var(--amber)) right 10px bottom 10px / 2px 16px no-repeat;
}
.module-card:hover .corners,
.module-card:focus-within .corners { opacity: .75; }

.module-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.module-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    font-size: 1.65rem;
    border-radius: 16px;
    background: rgba(255, 177, 0, .09);
    border: 1px solid rgba(255, 177, 0, .28);
    box-shadow: inset 0 0 16px rgba(255, 138, 0, .08), 0 0 14px rgba(255, 138, 0, .12);
    transition: transform .3s var(--ease-out);
}
.module-card:hover .module-icon { transform: scale(1.06) rotate(-4deg); }
.module-code {
    font-family: var(--font-hud);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--faint);
    border: 1px solid var(--line-soft);
    padding: 4px 9px;
    border-radius: 8px;
    background: rgba(255, 240, 214, .02);
}

.module-title { font-size: 1.16rem; font-weight: 900; margin-bottom: 8px; }
.module-text { color: var(--muted); font-size: .96rem; line-height: 1.85; }

.module-power {
    display: block;
    height: 3px;
    margin-top: 18px;
    border-radius: 3px;
    background: rgba(255, 240, 214, .06);
    overflow: hidden;
}
.module-power i {
    display: block;
    height: 100%;
    width: var(--w, 70%);
    border-radius: 3px;
    background: linear-gradient(90deg, var(--ember), var(--amber));
    box-shadow: 0 0 10px rgba(255, 138, 0, .45);
    transform-origin: inline-start;
}

.mid-cta { text-align: center; margin-top: clamp(28px, 6vw, 40px); }

/* ---------- ۱۲) ماموریت‌ها (شروع بازی) ---------- */
.start-section {
    background:
        radial-gradient(760px 400px at 90% 0%, rgba(255, 138, 0, .06), transparent 70%),
        var(--bg-0);
    border-block: 1px solid var(--line-soft);
}

.missions { display: grid; gap: 14px; position: relative; }

/* خط تایم‌لاین (موبایل) — سمت راست در RTL */
.missions::before {
    content: "";
    position: absolute;
    top: 26px;
    bottom: 26px;
    inset-inline-start: 21px;
    width: 2px;
    background: linear-gradient(180deg, rgba(255, 177, 0, .55), rgba(255, 177, 0, .05));
    border-radius: 2px;
}

.mission {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    padding: 20px;
    padding-inline-start: 66px;
    transition: transform .3s var(--ease-out), border-color .3s ease, box-shadow .3s ease;
}
.mission:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 177, 0, .45);
    box-shadow: var(--glow-amber);
}

.mission-icon {
    position: absolute;
    inset-inline-start: 1px;
    top: 19px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--amber-hi);
    background: var(--bg-2);
    border: 1px solid rgba(255, 177, 0, .45);
    border-radius: 13px;
    box-shadow: 0 0 16px rgba(255, 138, 0, .28);
    z-index: 1;
}
.mission-icon svg { width: 21px; height: 21px; }

.mission-num {
    position: absolute;
    top: 8px;
    inset-inline-end: 14px;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 177, 0, .26);
    pointer-events: none;
}
@supports not (-webkit-text-stroke: 1px black) {
    .mission-num { color: rgba(255, 177, 0, .16); }
}

.mission-title { font-size: 1.1rem; font-weight: 900; margin-bottom: 6px; }
.mission-text { color: var(--muted); font-size: .95rem; }
.start-cta { text-align: center; margin-top: clamp(28px, 6vw, 40px); }

/* ---------- ۱۳) اینتل (سوالات متداول) ---------- */
.faq-section { background: var(--bg-1); }

.faq-list { display: grid; gap: 12px; max-width: 740px; margin-inline: auto; }

.intel-item {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 4px 20px;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.intel-item:hover { border-color: rgba(255, 177, 0, .35); }
.intel-item[open] {
    border-color: rgba(255, 177, 0, .5);
    box-shadow: var(--glow-amber);
    background: var(--glass-strong);
}

.intel-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 18px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.04rem;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}
.intel-q::-webkit-details-marker { display: none; }

/* نشان + که با باز شدن × می‌شود */
.intel-sign { position: relative; width: 22px; height: 22px; flex-shrink: 0; transition: transform .3s var(--ease-out); }
.intel-sign::before, .intel-sign::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--amber);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 138, 0, .5);
}
.intel-sign::before { width: 14px; height: 2.5px; transform: translate(-50%, -50%); }
.intel-sign::after  { width: 2.5px; height: 14px; transform: translate(-50%, -50%); }
.intel-item[open] .intel-sign { transform: rotate(45deg); }

.intel-a {
    color: var(--muted);
    font-size: .96rem;
    padding-bottom: 20px;
    padding-inline-end: 34px;
    line-height: 1.95;
}

/* ---------- ۱۴) دروازهٔ ورود (CTA نهایی) ---------- */
.enter-section { padding-block: clamp(64px, 12vw, 104px); background: var(--bg-0); }

.enter-panel {
    position: relative;
    text-align: center;
    background:
        radial-gradient(560px 260px at 50% 115%, rgba(255, 138, 0, .16), transparent 70%),
        linear-gradient(180deg, #161009, #0d0a06);
    border: 1px solid rgba(255, 177, 0, .3);
    border-radius: var(--radius-lg);
    padding: clamp(44px, 9vw, 72px) 24px;
    overflow: hidden;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 224, 160, .08);
}

/* حلقه‌های پورتال */
.enter-rings { position: absolute; inset: 0; pointer-events: none; }
.enter-rings::before, .enter-rings::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -34%;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 177, 0, .22);
}
.enter-rings::before { width: 420px; height: 420px; animation: ringPulse 5s ease-in-out infinite; }
.enter-rings::after  { width: 640px; height: 640px; border-color: rgba(255, 177, 0, .12); animation: ringPulse 5s ease-in-out infinite 1.2s; }
@keyframes ringPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

.enter-kicker {
    position: relative;
    font-family: var(--font-hud);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .3em;
    color: var(--amber);
    margin-bottom: 14px;
}
.enter-title {
    position: relative;
    font-size: clamp(1.7rem, 6.4vw, 2.6rem);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 12px;
    text-wrap: balance;
}
.enter-text { position: relative; color: var(--muted); margin-bottom: 28px; }
.enter-panel .btn--primary { position: relative; min-width: min(320px, 100%); }

.enter-alt { position: relative; margin-top: 20px; color: var(--muted); font-size: .95rem; }
.enter-alt a { color: var(--amber-hi); font-weight: 700; }
.enter-alt a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- ۱۵) Sticky Dock (فقط موبایل) ---------- */
.sticky-dock { display: none; }

@media (max-width: 767px) {
    .sticky-dock {
        display: flex;
        position: fixed;
        inset-inline: 12px;
        bottom: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        z-index: 60;
        padding: 10px;
        background: linear-gradient(180deg, rgba(24, 18, 10, .95), rgba(12, 9, 5, .95));
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        border: 1px solid rgba(255, 177, 0, .3);
        border-radius: 20px;
        box-shadow: 0 -4px 30px rgba(0, 0, 0, .5), 0 0 24px rgba(255, 138, 0, .12);
        transform: translateY(150%);
        opacity: 0;
        pointer-events: none;
        transition: transform .3s var(--ease-out), opacity .3s ease;
    }
    .sticky-dock.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .sticky-dock .btn { width: 100%; min-height: 50px; }

    /* فضای امن پایین صفحه تا Dock محتوا/فوتر را نپوشاند */
    .site-footer { padding-bottom: 96px; }
}

/* ---------- ۱۶) فوتر ---------- */
.site-footer {
    background:
        radial-gradient(720px 300px at 50% 130%, rgba(255, 138, 0, .07), transparent 70%),
        #060402;
    border-top: 1px solid var(--line-soft);
    padding-top: clamp(40px, 8vw, 60px);
}
.footer-grid { display: grid; gap: 34px; padding-bottom: 40px; }

.footer-brand p { color: var(--muted); font-size: .95rem; margin-top: 14px; max-width: 360px; }
.footer-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.footer-col h3 { font-size: 1.02rem; font-weight: 900; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 4px; }
.footer-col a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: .95rem;
    padding-block: 6px;
    transition: color .15s ease, transform .15s ease;
}
.footer-col a:hover { color: var(--amber-hi); transform: translateX(-3px); }
.footer-col .ext { width: 14px; height: 14px; opacity: .55; }
.footer-link--main a { color: var(--amber-hi); font-weight: 800; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
    padding-block: 20px;
    border-top: 1px solid var(--line-soft);
    color: var(--faint);
    font-size: .86rem;
}

/* ---------- ۱۷) انیمیشن reveal ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(24px) scale(.992);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- ۱۸) ریسپانسیو ---------- */
@media (min-width: 640px) {
    .stats-grid { gap: 16px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (min-width: 768px) {
    :root { --header-h: 72px; }

    .site-nav, .site-nav.open {
        position: static;
        inset-inline: auto;
        display: flex;
        align-items: center;
        gap: 18px;
        background: none;
        border: 0;
        box-shadow: none;
        padding: 0;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    .nav-list { flex-direction: row; gap: 4px; }
    .nav-list a { padding: 9px 14px; }
    .nav-list a:hover, .nav-list a.active { padding-inline-start: 14px; }
    .nav-cta { width: auto; margin-top: 0; margin-inline-start: 6px; }
    .nav-toggle { display: none; }

    .hero { padding-block: 72px 96px; }
    .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 48px; }
    .hero-actions .btn { flex: 0 1 auto; }
    .mascot-scene { width: min(400px, 44vw); }

    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 900px) {
    /* ماموریت‌ها به‌صورت ستونی + فلش بین مراحل */
    .missions { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .missions::before { display: none; }

    .mission { padding: 26px 22px; text-align: center; }
    .mission-icon {
        position: static;
        margin: 0 auto 16px;
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }
    .mission-icon svg { width: 26px; height: 26px; }
    .mission-num { top: 12px; }

    .mission:not(:last-child)::after {
        content: "";
        position: absolute;
        inset-inline-end: -17px;
        top: 50%;
        width: 12px;
        height: 12px;
        border-inline-start: 3px solid var(--amber);
        border-bottom: 3px solid var(--amber);
        transform: translateY(-50%) rotate(45deg);
        opacity: .55;
        z-index: 1;
    }
}

@media (min-width: 1024px) {
    .features-grid { grid-template-columns: repeat(4, 1fr); }
    .mascot-scene { width: min(430px, 40vw); }
}

/* ---------- ۱۹) کاهش حرکت ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .ticker-track, .mascot, .mascot-ring, .mascot-coin, .goat-eyes,
    .sparkle, .hud-chip, .live-dot, .hero-title .accent,
    .enter-rings::before, .enter-rings::after { animation: none !important; }
    .js .server-panel:not(.is-visible) .stat-bar i { width: auto; }
    .btn, .module-card, .mission, .stat, .intel-item, .footer-col a, .brand-mark { transition: none; }
}

/* ============================================================
   BOZPOINT 2027 | آمار زنده — وضعیت اتصال API  (bozpoint.ir)
   ============================================================ */
.server-live {
    transition: opacity .35s ease;
}
.server-live.is-stale {
    opacity: .5;
}
.stat-value {
    font-variant-numeric: tabular-nums;
}
