/* =========================================================
   MAMALI GAMES - استایل اصلی (تم مشکی / بنفش / آبی نئونی)
   ========================================================= */
:root {
    --bg: #07060d;
    --bg-2: #0e0c1a;
    --surface: #141126;
    --surface-2: #1b1733;
    --border: rgba(160, 120, 255, .18);
    --text: #ece9ff;
    --muted: #9c97bd;
    --purple: #a855f7;
    --purple-2: #7c3aed;
    --blue: #22d3ee;
    --blue-2: #3b82f6;
    --pink: #f472b6;
    --green: #34d399;
    --red: #f87171;
    --grad: linear-gradient(135deg, var(--purple-2), var(--blue-2) 60%, var(--blue));
    --glow-p: 0 0 24px rgba(168, 85, 247, .45);
    --glow-b: 0 0 24px rgba(34, 211, 238, .4);
    --radius: 18px;
    --shadow: 0 18px 40px rgba(0, 0, 0, .45);
    --font: Vazirmatn, Tahoma, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--purple); }
h1, h2, h3 { line-height: 1.4; margin: 0 0 .6em; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.d-block { display: block; }

.bg-glow {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(700px 400px at 85% -5%, rgba(124, 58, 237, .28), transparent 60%),
        radial-gradient(600px 400px at 5% 30%, rgba(34, 211, 238, .14), transparent 60%),
        radial-gradient(800px 500px at 50% 110%, rgba(168, 85, 247, .16), transparent 60%);
}

.container { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(7, 6, 13, .78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { border-radius: 12px; box-shadow: var(--glow-p); }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong {
    font-size: 1.25rem; letter-spacing: 1px; font-weight: 900;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-text small { color: var(--muted); font-size: .78rem; }

.header-search { margin-inline-start: auto; display: flex; width: min(380px, 100%); position: relative; }
.header-search input, .hero-search input {
    width: 100%; background: var(--surface); border: 1px solid var(--border); color: var(--text);
    border-radius: 999px; padding: 10px 18px 10px 48px; font: inherit; outline: none; transition: border .2s, box-shadow .2s;
}
.header-search input:focus, .hero-search input:focus { border-color: var(--purple); box-shadow: var(--glow-p); }
.header-search button {
    position: absolute; left: 5px; top: 50%; transform: translateY(-50%);
    border: 0; background: var(--grad); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: .95rem;
}

.menu-toggle { display: none; background: transparent; border: 1px solid var(--border); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.main-nav { border-top: 1px solid rgba(255, 255, 255, .04); }
.nav-inner { display: flex; gap: 4px; overflow-x: auto; padding: 6px 0; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.main-nav a {
    color: var(--muted); white-space: nowrap; padding: 8px 14px; border-radius: 10px; font-size: .92rem; transition: all .2s;
}
.main-nav a:hover { color: var(--text); background: var(--surface); }
.main-nav a.active { color: #fff; background: linear-gradient(135deg, rgba(124, 58, 237, .5), rgba(59, 130, 246, .35)); box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .5); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border-radius: 12px; font: inherit; font-weight: 700; font-size: .92rem;
    border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
    white-space: nowrap; color: var(--text);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(124, 58, 237, .35); }
.btn-primary:hover { color: #fff; box-shadow: var(--glow-p), var(--glow-b); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--purple); box-shadow: var(--glow-p); }
.btn-danger { background: rgba(248, 113, 113, .12); color: var(--red); border-color: rgba(248, 113, 113, .4); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-disabled { background: rgba(255, 255, 255, .04); color: var(--muted); border-color: rgba(255, 255, 255, .08); cursor: not-allowed; }
.btn-disabled:hover { transform: none; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 6px 12px; font-size: .82rem; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero-kicker { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(168, 85, 247, .12); border: 1px solid rgba(168, 85, 247, .35); color: #d8b4fe; font-size: .88rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 900; line-height: 1.35; overflow-wrap: anywhere; text-wrap: balance; margin-bottom: 16px; text-shadow: 0 0 30px rgba(168, 85, 247, .35); }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 560px; }
.hero-search { display: flex; gap: 10px; margin: 26px 0; max-width: 560px; }
.hero-search input { padding: 14px 20px; }
.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 20px; text-align: center; min-width: 100px; }
.hero-stats strong { display: block; font-size: 1.5rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { color: var(--muted); font-size: .85rem; }
.hero-feature { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow), var(--glow-p); border: 1px solid var(--border); display: block; }
.hero-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hero-feature:hover img { transform: scale(1.06); }
.hero-feature-info { position: absolute; inset: auto 0 0 0; padding: 22px; background: linear-gradient(transparent, rgba(7, 6, 13, .95)); display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.hero-feature-info strong { font-size: 1.4rem; }
.hero-feature-info small { color: var(--muted); }
.hero-feature-info .badge { align-self: flex-start; }

/* ---------- Sections ---------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.section-head h2 { font-size: 1.45rem; display: flex; align-items: center; gap: 10px; margin: 0; }
.neon-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 14px var(--purple); display: inline-block; }
.neon-dot.blue { background: var(--blue); box-shadow: 0 0 14px var(--blue); }
.link-more { font-size: .92rem; }

.page-hero { padding: 40px 0 10px; }
.page-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 4px; }
.page-hero p { color: var(--muted); margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .85rem; margin-bottom: 10px; }

/* ---------- Categories ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-tile {
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
    display: flex; flex-direction: column; gap: 4px; color: var(--text);
    position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.category-tile::after { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .3s; z-index: 0; }
.category-tile > * { position: relative; z-index: 1; }
.category-tile:hover { transform: translateY(-4px); border-color: var(--purple); box-shadow: var(--glow-p); color: #fff; }
.category-tile:hover::after { opacity: .18; }
.cat-icon { font-size: 1.8rem; }
.category-tile small { color: var(--muted); }

.category-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pill { padding: 7px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .88rem; transition: all .2s; }
.pill:hover { color: var(--text); border-color: var(--purple); }
.pill.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow-p); }

/* ---------- Toolbar / Search panel ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.toolbar input[type="search"] { flex: 1; min-width: 200px; }
.sort-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
input, select, textarea {
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    border-radius: 12px; padding: 10px 14px; font: inherit; outline: none; transition: border .2s, box-shadow .2s; max-width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(168, 85, 247, .2); }
select option { background: var(--bg-2); }
.search-panel {
    display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 26px;
}
.search-panel .field { display: flex; flex-direction: column; gap: 6px; }
.search-panel .field.grow { flex: 1; min-width: 220px; }
.search-panel label { font-size: .85rem; color: var(--muted); }
.search-panel input, .search-panel select { background: var(--bg-2); }

/* ---------- Game cards ---------- */
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.game-card {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column; box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
    transition: transform .3s, box-shadow .3s, border-color .3s;
    animation: fadeUp .5s ease both;
}
.game-card:hover { transform: translateY(-6px); border-color: rgba(168, 85, 247, .6); box-shadow: var(--shadow), var(--glow-p); }
.card-cover { position: relative; aspect-ratio: 16/10; overflow: hidden; display: block; background: var(--bg-2); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .5s; }
.game-card:hover .card-cover img { transform: scale(1.08); filter: saturate(1.2); }
.card-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(7, 6, 13, .7)); }
.card-badges { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; z-index: 2; }
.card-badges.static { position: static; margin-bottom: 10px; }
.card-platform { position: absolute; bottom: 10px; left: 10px; z-index: 2; font-size: .75rem; padding: 3px 10px; border-radius: 999px; background: rgba(7, 6, 13, .75); border: 1px solid rgba(34, 211, 238, .5); color: var(--blue); }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; color: #fff; }
.badge-new { background: linear-gradient(135deg, #06b6d4, #3b82f6); box-shadow: 0 0 12px rgba(34, 211, 238, .5); }
.badge-hot { background: linear-gradient(135deg, #ec4899, #a855f7); box-shadow: 0 0 12px rgba(236, 72, 153, .5); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 1.05rem; margin: 0; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--blue); }
.card-desc { color: var(--muted); font-size: .86rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--muted); }
.card-meta span { margin-left: 4px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 6px; }
.card-actions .btn { padding: 9px 10px; font-size: .86rem; }

/* ---------- Game page ---------- */
.game-hero { position: relative; padding: 48px 0; overflow: hidden; }
.game-hero::before { content: ""; position: absolute; inset: -40px; background-image: var(--cover); background-size: cover; background-position: center; filter: blur(40px) brightness(.35); z-index: -1; transform: scale(1.1); }
.game-hero-inner { display: grid; grid-template-columns: 420px 1fr; gap: 40px; align-items: start; }
.game-cover { border-radius: 22px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow), var(--glow-p); aspect-ratio: 4/3; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-info h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 900; }
.lead { color: #cfcae8; font-size: 1.05rem; }
.spec-list { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.spec-list li { background: rgba(20, 17, 38, .8); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; }
.spec-list span { color: var(--muted); font-size: .8rem; }
.game-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.notice { width: 100%; color: #fcd34d; font-size: .9rem; margin: 4px 0 0; }
.content-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.content-box h2 { display: flex; gap: 10px; align-items: center; font-size: 1.3rem; }
.game-description { color: #d6d2ee; white-space: normal; word-wrap: break-word; }

/* ---------- CTA / Empty ---------- */
.cta-box {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px;
    border-radius: 24px; border: 1px solid rgba(168, 85, 247, .4);
    background: linear-gradient(135deg, rgba(124, 58, 237, .25), rgba(34, 211, 238, .12)); box-shadow: var(--glow-p);
}
.cta-box h2 { margin-bottom: 4px; }
.cta-box p { color: var(--muted); margin: 0; }
.empty-state { text-align: center; padding: 50px 20px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }
.empty-state h1 { color: var(--text); font-size: 1.6rem; }
.empty-state .btn { margin-top: 10px; }
.error-page { padding: 80px 0; }

/* ---------- Alerts / toast ---------- */
.alert { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; border: 1px solid; animation: fadeUp .35s ease both; }
.alert-success { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .4); color: #a7f3d0; }
.alert-error { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .4); color: #fecaca; }
.alert-info { background: rgba(34, 211, 238, .1); border-color: rgba(34, 211, 238, .4); color: #a5f3fc; }
.alert-close { background: none; border: 0; color: inherit; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); z-index: 100;
    background: var(--surface-2); border: 1px solid var(--purple); color: var(--text); padding: 12px 22px; border-radius: 14px;
    box-shadow: var(--shadow), var(--glow-p); transition: transform .35s ease; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 50px; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(124, 58, 237, .08)); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; padding: 44px 0 30px; }
.footer-col h3 { font-size: 1rem; color: #fff; position: relative; padding-bottom: 8px; }
.footer-col h3::after { content: ""; position: absolute; right: 0; bottom: 0; width: 34px; height: 2px; background: var(--grad); border-radius: 2px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-col a { color: var(--muted); font-size: .9rem; }
.footer-col a:hover { color: var(--blue); }
.footer-col p { color: var(--muted); font-size: .9rem; }
.footer-about .brand { margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .05); padding: 16px 0; text-align: center; color: var(--muted); font-size: .85rem; }

.back-to-top {
    position: fixed; bottom: 22px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: var(--grad); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: var(--glow-p);
    opacity: 0; pointer-events: none; transform: translateY(20px); transition: all .3s; z-index: 60;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}


/* ===== MAMALI GAMES VISUAL REFRESH ===== */
:root {
  --bg:#070914; --bg-2:#0c1020; --surface:#10172a; --surface-2:#151d35;
  --border:rgba(139,156,255,.17); --text:#f4f6ff; --muted:#9aa8c7;
  --purple:#a66cff; --purple-2:#7547ef; --blue:#35d8f5; --blue-2:#4777ff;
  --pink:#ff66c4; --green:#45edb5; --grad:linear-gradient(120deg,#9c5cff 0%,#5967ff 52%,#29e5d2 100%);
  --glow-p:0 0 32px rgba(143,83,255,.28); --glow-b:0 0 30px rgba(45,215,245,.2);
  --radius:22px; --shadow:0 24px 70px rgba(0,0,0,.38);
}
body {
  background-color:var(--bg);
  background-image:radial-gradient(ellipse at 10% 0%,rgba(109,61,255,.13),transparent 38%),
                   radial-gradient(ellipse at 95% 25%,rgba(32,213,228,.09),transparent 34%);
}
.bg-glow { opacity:.65; }
.site-header { background:rgba(7,9,20,.86); border-bottom-color:rgba(139,156,255,.15); }
.brand img { border-radius:15px; background:#0d1224; border:1px solid rgba(119,144,255,.28); }
.brand-text strong { letter-spacing:1.2px; }
.nav-inner { gap:7px; padding-block:10px; }
.main-nav a { border:1px solid transparent; }
.main-nav a.active { border-color:rgba(128,109,255,.32); }
.hero { padding:clamp(38px,6vw,84px) 0 42px; position:relative; }
.hero-inner { gap:clamp(24px,5vw,64px); }
.hero-content { position:relative; z-index:1; }
.hero-kicker { background:rgba(139,91,255,.12); border-color:rgba(157,112,255,.25); color:#d7c4ff; }
.hero h1 { line-height:1.32; letter-spacing:-.6px; }
.hero p { line-height:2.05; }
.hero-search input,.header-search input { background:rgba(17,23,43,.92); border-color:rgba(142,158,255,.18); }
.hero-search .btn { min-width:112px; }
.hero-stats div { min-width:112px; background:linear-gradient(145deg,rgba(22,29,54,.9),rgba(12,16,31,.9)); border-color:rgba(138,154,255,.16); box-shadow:inset 0 1px rgba(255,255,255,.03); }
.hero-stats strong { font-size:1.65rem; }
.hero-feature { border-radius:28px; box-shadow:0 30px 80px rgba(0,0,0,.4),0 0 0 1px rgba(139,156,255,.12); }
.hero-art { min-height:400px; position:relative; display:grid; place-items:center; isolation:isolate; overflow:hidden; border-radius:32px; border:1px solid rgba(134,153,255,.2); background:radial-gradient(circle at 50% 45%,rgba(95,73,219,.24),transparent 38%),linear-gradient(145deg,rgba(18,24,48,.96),rgba(8,18,31,.96)); box-shadow:0 32px 90px rgba(0,0,0,.35),inset 0 1px rgba(255,255,255,.06); }
.hero-art:before { content:""; position:absolute; inset:0; opacity:.22; background-image:linear-gradient(rgba(130,151,255,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(130,151,255,.16) 1px,transparent 1px); background-size:38px 38px; mask-image:linear-gradient(to bottom,black,transparent); }
.hero-art-orbit { position:absolute; width:min(72%,340px); aspect-ratio:1; border:1px solid rgba(109,151,255,.4); border-radius:50%; transform:rotate(-24deg) scaleY(.48); box-shadow:0 0 34px rgba(72,104,255,.12); }
.orbit-one { animation:mgOrbit 16s linear infinite; }
.orbit-two { width:min(86%,410px); border-color:rgba(42,223,221,.24); transform:rotate(34deg) scaleY(.48); animation:mgOrbit 22s linear infinite reverse; }
.hero-art-core { width:190px; height:190px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; border-radius:40px; border:1px solid rgba(153,143,255,.42); background:linear-gradient(145deg,rgba(34,40,82,.9),rgba(10,18,38,.94)); box-shadow:0 0 70px rgba(106,76,255,.25),inset 0 1px rgba(255,255,255,.1); transform:rotate(-5deg); }
.hero-art-core img { width:100px; height:100px; filter:drop-shadow(0 0 22px rgba(105,113,255,.4)); }
.hero-art-label { font:800 10px/1.3 Arial,sans-serif; letter-spacing:1.6px; color:#a7eefa; }
.floating-chip { position:absolute; display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:14px; color:#e8edff; font-size:.8rem; font-weight:800; background:rgba(13,20,42,.9); border:1px solid rgba(133,153,255,.25); box-shadow:0 12px 32px rgba(0,0,0,.28); backdrop-filter:blur(12px); }
.chip-top { top:14%; right:9%; transform:rotate(5deg); }
.chip-bottom { bottom:18%; left:8%; transform:rotate(-5deg); }
.hero-art-caption { position:absolute; bottom:22px; color:#aab8d7; font-size:.92rem; }
@keyframes mgOrbit { to { transform:rotate(336deg) scaleY(.48); } }
.section { padding-block:clamp(26px,4vw,48px); }
.section-head { margin-bottom:26px; }
.section-head h2 { font-size:clamp(1.2rem,2.5vw,1.6rem); }
.neon-dot { flex:0 0 auto; }
.category-grid { gap:14px; }
.category-tile { min-height:142px; padding:22px; border-radius:20px; background:linear-gradient(145deg,rgba(22,29,55,.9),rgba(12,16,31,.95)); box-shadow:inset 0 1px rgba(255,255,255,.035); }
.cat-icon { width:48px; height:48px; display:grid; place-items:center; border-radius:15px; background:rgba(127,99,255,.13); border:1px solid rgba(143,121,255,.18); }
.category-tile strong { margin-top:5px; font-size:1.02rem; }
.games-grid { gap:20px; }
.game-card { overflow:hidden; border-radius:22px; background:linear-gradient(150deg,rgba(20,27,51,.98),rgba(11,15,29,.98)); border:1px solid rgba(134,153,255,.16); box-shadow:0 14px 38px rgba(0,0,0,.2); transition:transform .25s,border-color .25s,box-shadow .25s; }
.game-card:hover { transform:translateY(-6px); border-color:rgba(139,111,255,.5); box-shadow:0 24px 48px rgba(0,0,0,.32),0 0 28px rgba(105,81,255,.12); }
.card-cover { background:#0d1327; }
.card-cover img { transition:transform .55s; }
.game-card:hover .card-cover img { transform:scale(1.04); }
.card-body { padding:18px; }
.card-title { font-size:1.08rem; }
.card-desc { line-height:1.9; }
.card-meta { gap:10px; }
.card-meta li { border:1px solid rgba(134,153,255,.11); background:rgba(255,255,255,.025); border-radius:9px; padding:3px 8px; }
.card-actions .btn { border-radius:11px; }
.cta-box { border-radius:26px; border:1px solid rgba(123,143,255,.22); background:radial-gradient(ellipse at 0% 0%,rgba(127,73,255,.18),transparent 48%),linear-gradient(135deg,#151c38,#0d1427); padding:clamp(22px,4vw,40px); box-shadow:var(--shadow); }
.empty-state { border:1px dashed rgba(139,156,255,.24); border-radius:22px; background:rgba(16,23,43,.55); padding:36px 20px; }
.site-footer { margin-top:45px; border-top:1px solid rgba(139,156,255,.14); background:rgba(6,8,17,.65); }
.site-footer img { background:#0d1224; border:1px solid rgba(119,144,255,.25); border-radius:14px; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:2px solid #45dff0; outline-offset:3px; }
@media (max-width:900px) {
  .hero-inner { grid-template-columns:1fr; }
  .hero-art { min-height:330px; }
  .hero-content { max-width:760px; }
}
@media (max-width:600px) {
  .container { width:min(100% - 24px,1240px); }
  .hero { padding-top:30px; }
  .hero h1 { font-size:clamp(1.65rem,6.8vw,2.15rem); line-height:1.5; letter-spacing:-.35px; max-width:100%; }
  .hero-content, .hero-inner { min-width:0; }
  .hero p { font-size:.98rem; line-height:2; }
  .hero-kicker { font-size:.8rem; white-space:normal; max-width:100%; }
  .hero-search { gap:7px; }
  .hero-search input { min-width:0; padding-inline:14px; }
  .hero-search .btn { min-width:auto; padding-inline:15px; }
  .hero-stats { gap:8px; }
  .hero-stats div { flex:1; min-width:0; padding:10px 8px; }
  .hero-art { min-height:285px; border-radius:24px; }
  .hero-art-core { width:150px; height:150px; border-radius:32px; }
  .hero-art-core img { width:78px; height:78px; }
  .floating-chip { font-size:.7rem; padding:8px 10px; }
  .chip-top { right:5%; top:12%; }
  .chip-bottom { left:4%; bottom:17%; }
  .hero-art-caption { font-size:.78rem; bottom:14px; }
  .category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .category-tile { min-height:125px; padding:15px; }
  .games-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
  .card-body { padding:12px; }
  .card-title { font-size:.95rem; }
  .card-desc { font-size:.82rem; }
  .card-actions { gap:6px; }
  .card-actions .btn { padding:7px 9px; font-size:.78rem; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.01ms !important; }
}

/* Desktop + mobile layout stability patch */
.hero-inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.hero-content { min-width: 0; }
.hero h1 { overflow-wrap: normal; word-break: normal; text-wrap: pretty; }
.hero p { overflow-wrap: break-word; }
.hero-search { min-width: 0; }
.hero-search input { min-width: 0; }
.hero-art-core img { object-fit: contain; }
@media (min-width: 901px) { .hero-content { max-width: 100%; } .hero h1 { font-size: clamp(2rem, 3.3vw, 3.1rem); } }
@media (max-width: 900px) { .hero-inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .hero h1 { font-size: clamp(1.55rem, 6.2vw, 2rem); line-height: 1.45; } .hero-search { display: grid; grid-template-columns: minmax(0, 1fr); } .hero-search .btn { width: 100%; } }

/* فرم لینک‌های دانلود و دیدگاه‌ها */
.download-options{padding:18px;border:1px solid var(--border);border-radius:18px;background:rgba(124,58,237,.06)}.download-link-row{display:grid;grid-template-columns:80px 1fr 2fr;gap:10px;align-items:center;margin:12px 0}.download-link-row input,.comment-form input,.comment-form textarea,.comment-admin-actions textarea{width:100%;padding:12px;border-radius:12px;border:1px solid var(--border);background:rgba(10,13,30,.8);color:var(--text);font:inherit}.comment-form{display:grid;gap:14px;margin-top:22px}.comment-form label,.comment-admin-actions label{display:grid;gap:7px}.public-comment,.comment-admin-card{padding:18px;margin:14px 0;border:1px solid var(--border);border-radius:16px;background:rgba(255,255,255,.025)}.public-comment small{margin-right:12px;color:var(--muted)}.admin-reply{margin-top:12px;padding:12px;border-right:3px solid #8b5cf6;background:rgba(124,58,237,.1);border-radius:10px}.comment-admin-head p{color:var(--muted);margin:5px 0}.comment-admin-actions{display:grid;grid-template-columns:1fr auto auto auto;gap:10px;align-items:end}.btn-danger{background:#9f1239;color:#fff;border:0;border-radius:10px;padding:10px 16px}@media(max-width:650px){.download-link-row{grid-template-columns:1fr}.comment-admin-actions{grid-template-columns:1fr}.download-link-row strong{margin-top:8px}}
