
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --i0: #000000;
  --p0: #ffffff;
  --tint: #e6e6e6;
  --muted: #3a3a3a;
  --ink: var(--i0);
  --paper: var(--p0);
  --bw: 2px;
  --wrap: min(100% - 2 * var(--gutter), 1200px);
  --gutter: 20px;
  --header-h: 64px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gutter: 40px; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --i0: #ffffff; --p0: #000000; --tint: #1c1c1c; --muted: #c8c8c8; color-scheme: dark; }
}
:root[data-theme="dark"] { --i0: #ffffff; --p0: #000000; --tint: #1c1c1c; --muted: #c8c8c8; color-scheme: dark; }

.hero-band { --ink: #ffffff; --paper: #000000; --tint: #1c1c1c; --muted: #c8c8c8; }
.cta { --ink: var(--p0); --paper: var(--i0); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--p0); color: var(--i0);
  font-family: "Vazirmatn", "Vazir", Tahoma, sans-serif; font-size: 17px; line-height: 1.95; font-weight: 400;
  letter-spacing: 0; overflow-wrap: anywhere; min-height: 100vh; min-height: 100dvh;
}
::selection { background: var(--i0); color: var(--p0); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1.5; }
p { margin: 0 0 var(--space-4); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.skip-link { position: absolute; inset-inline-start: var(--space-4); top: -100px; background: var(--i0); color: var(--p0); padding: var(--space-2) var(--space-4); z-index: 20; }
.skip-link:focus { top: var(--space-2); }
.wrap { width: var(--wrap); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--p0); border-bottom: var(--bw) solid var(--i0); }
.site-header .wrap { min-height: var(--header-h); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); padding-block: var(--space-2); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 900; font-size: 24px; line-height: 1.4; text-decoration: none; }
.brand::before { content: ""; width: 34px; height: 34px; background: currentColor; -webkit-mask: url("../icons/gamepad.svg") center / contain no-repeat; mask: url("../icons/gamepad.svg") center / contain no-repeat; flex: none; }
.main-nav { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-4); text-decoration: none; font-size: 16px; font-weight: 800; border: var(--bw) solid transparent; }
.main-nav a[aria-current="page"] { background: var(--i0); color: var(--p0); }
.header-actions { margin-inline-start: auto; display: flex; gap: var(--space-2); align-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 8px var(--space-5); border: var(--bw) solid var(--ink); background: var(--ink); color: var(--paper); font: inherit; font-size: 16px; font-weight: 800; line-height: 1.6; text-decoration: none; cursor: pointer; transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn-sm { padding: 6px var(--space-4); font-size: 15px; }
.ico { display: inline-block; width: 20px; height: 20px; flex: none; background: currentColor; }
.ico-telegram { -webkit-mask: url("../icons/telegram.svg") center / contain no-repeat; mask: url("../icons/telegram.svg") center / contain no-repeat; }
.ico-theme { -webkit-mask: url("../icons/theme.svg") center / contain no-repeat; mask: url("../icons/theme.svg") center / contain no-repeat; }
.icon-btn { min-width: 44px; min-height: 44px; border: var(--bw) solid var(--i0); background: var(--p0); color: var(--i0); font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.btn:active, .icon-btn:active { transform: translate(2px, 2px); box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--paper), 3px 3px 0 var(--bw) var(--ink); }
  .btn:hover:active { transform: translate(0, 0); box-shadow: none; }
  .main-nav a:hover { border-color: var(--i0); }
  .icon-btn:hover { background: var(--i0); color: var(--p0); }
}

main { display: block; }
.section { padding-block: var(--space-6); }
@media (min-width: 900px) { .section { padding-block: var(--space-8); } }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-6); padding-bottom: var(--space-3); border-bottom: var(--bw) solid var(--i0); }
.section-title { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.4; }
.section-link { font-weight: 800; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; min-height: 44px; display: inline-flex; align-items: center; }
h1.section-title { margin-bottom: var(--space-5); }

.art { position: relative; background-color: var(--tint); background-repeat: repeat; border-bottom: var(--bw) solid var(--ink); overflow: hidden; }
.art::before { content: ""; position: absolute; inset: 50% auto auto 50%; width: 64px; height: 64px; translate: -50% -50%; background: var(--paper); border: var(--bw) solid var(--ink); }
.art::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 36px; height: 36px; translate: -50% -50%; background: var(--ink); -webkit-mask: url("../icons/gamepad.svg") center / contain no-repeat; mask: url("../icons/gamepad.svg") center / contain no-repeat; }
.art-0 { background-image: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0); background-size: 24px 24px; }
.art-1 { background-image: repeating-linear-gradient(135deg, var(--ink) 0 6px, transparent 6px 18px); }
.art-2 { background-image: radial-gradient(var(--ink) 3px, transparent 3.5px); background-size: 18px 18px; }
.art-3 { background-image: linear-gradient(var(--ink) 2px, transparent 2px), linear-gradient(90deg, var(--ink) 2px, transparent 2px); background-size: 28px 28px; }
.art-4 { background-image: repeating-linear-gradient(0deg, var(--ink) 0 4px, transparent 4px 12px); }
.art-5 { background-image: repeating-linear-gradient(45deg, var(--ink) 0 3px, transparent 3px 14px), repeating-linear-gradient(-45deg, var(--ink) 0 3px, transparent 3px 14px); }

.hero-band { background: var(--paper); color: var(--ink); border-bottom: var(--bw) solid var(--ink); }
.hero { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.25fr 1fr; gap: var(--space-8); } }
.hero h1 { font-size: clamp(32px, 5.6vw, 64px); line-height: 1.45; margin-block: var(--space-4) var(--space-4); text-wrap: balance; }
.hero p { color: var(--muted); font-size: 18px; max-width: 56ch; }
.hero .cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background-color: var(--tint); border: var(--bw) solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.hero .art { border: var(--bw) solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.hero .art::before { width: 96px; height: 96px; }
.hero .art::after { width: 56px; height: 56px; }
@media (prefers-reduced-motion: no-preference) {
  .hero .cover, .hero .art { animation: tile-in 640ms steps(9, end) backwards; }
  @keyframes tile-in { from { clip-path: inset(0 -12px 100% -12px); } }
}

.grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: var(--bw) solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.card .cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background-color: var(--tint); border-bottom: var(--bw) solid var(--ink); }
.card .body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4) var(--space-4) var(--space-5); flex: 1; }
.card h3 { font-size: 20px; line-height: 1.7; font-weight: 800; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:focus-within { outline: 3px solid var(--ink); outline-offset: 4px; }
.card h3 a:focus-visible { outline: none; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .card { transition: transform 360ms var(--ease-out), box-shadow 360ms var(--ease-out); }
  .card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
  .card:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
}

.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
.row { position: relative; display: grid; grid-template-columns: 1fr; background: var(--p0); border: var(--bw) solid var(--i0); box-shadow: 6px 6px 0 var(--i0); }
@media (min-width: 720px) { .row { grid-template-columns: 260px 1fr; } }
.row .cover { width: 100%; height: 100%; min-height: 150px; aspect-ratio: 16 / 10; object-fit: cover; background-color: var(--tint); border-bottom: var(--bw) solid var(--i0); }
@media (min-width: 720px) { .row .cover { aspect-ratio: auto; border-bottom: 0; border-inline-end: var(--bw) solid var(--i0); } }
.row > div { padding: var(--space-4) var(--space-5); align-self: center; }
.row h3 { font-size: 22px; line-height: 1.7; font-weight: 800; }
.row h3 a { text-decoration: none; }
.row h3 a::after { content: ""; position: absolute; inset: 0; }
.row:focus-within { outline: 3px solid var(--i0); outline-offset: 4px; }
.row h3 a:focus-visible { outline: none; }
.row p { color: var(--muted); font-size: 15px; margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .row { transition: transform 360ms var(--ease-out), box-shadow 360ms var(--ease-out); }
  .row:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--i0); }
  .row:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--i0); }
}

.meta { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; color: var(--muted); font-size: 14px; }
.badge { display: inline-block; padding: 0 var(--space-3); border: var(--bw) solid var(--ink); background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 800; line-height: 1.7; }
.tags .badge, .article .badge { background: var(--paper); color: var(--ink); }

.ad-slot { padding-block: var(--space-6); }
.ad-label { display: inline-block; padding: 0 var(--space-2); border: var(--bw) solid var(--i0); font-size: 12px; font-weight: 800; }
.ad-banner { display: grid; gap: var(--space-4); align-items: center; padding: var(--space-4); background: var(--p0); border: var(--bw) solid var(--i0); box-shadow: 6px 6px 0 var(--i0); text-decoration: none; }
@media (min-width: 720px) { .ad-banner { grid-template-columns: 1.4fr 1fr; padding: var(--space-5); } }
.ad-banner img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; background: var(--tint); border: var(--bw) solid var(--i0); }
.ad-banner strong { display: block; font-size: 22px; font-weight: 900; margin-block: var(--space-1); }
.ad-banner p { color: var(--muted); margin: 0; }

.article { max-width: 720px; margin-inline: auto; }
.article h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.5; margin-block: var(--space-4); text-wrap: balance; }
.article .cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-block: var(--space-5); border: var(--bw) solid var(--i0); box-shadow: 8px 8px 0 var(--i0); }
.article p, .article li { font-size: 18px; line-height: 2.1; }
.article blockquote { margin: var(--space-6) 0; padding: var(--space-4) var(--space-5); border-inline-start: 8px solid var(--i0); background: var(--tint); font-weight: 700; }
.article blockquote p:last-child { margin: 0; }
.article h2 { font-size: 28px; margin: var(--space-7) 0 var(--space-3); }
.article h3 { font-size: 22px; margin: var(--space-6) 0 var(--space-2); }
.article ul, .article ol { padding-inline-start: var(--space-6); margin: 0 0 var(--space-4); }
.article figure { margin: var(--space-6) 0; }
.article figure img { width: 100%; height: auto; border: var(--bw) solid var(--i0); }
.article a { text-decoration-thickness: 2px; text-underline-offset: 4px; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-4); margin-top: var(--space-7); }
.state { grid-column: 1 / -1; padding: var(--space-7) var(--space-5); text-align: center; color: var(--muted); border: var(--bw) dashed var(--ink); }
.state-title { font-size: 22px; font-weight: 900; color: var(--ink); margin-bottom: var(--space-2); }
.state p:last-child { margin-bottom: 0; }
.skeleton { background: var(--tint); min-height: 160px; }
@media (prefers-reduced-motion: no-preference) {
  .skeleton { animation: pulse 1100ms ease-in-out infinite alternate; }
  @keyframes pulse { from { opacity: .45; } to { opacity: 1; } }
}

.cta { background: var(--paper); color: var(--ink); border-block: var(--bw) solid var(--i0); }
.cta-inner { display: grid; gap: var(--space-6); padding-block: var(--space-7); align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; gap: var(--space-8); padding-block: var(--space-8); } }
.cta h2 { font-size: clamp(28px, 4.6vw, 48px); line-height: 1.5; margin-bottom: var(--space-3); text-wrap: balance; }
.cta p { margin: 0; font-size: 18px; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.btn-invert { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ghost-invert { background: var(--paper); color: var(--ink); border-color: var(--ink); }

.site-footer { background: var(--p0); padding-block: var(--space-7) var(--space-6); font-size: 16px; }
.footer-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr 1fr; }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } .footer-grid > :first-child { grid-column: auto; } }
.footer-grid p { margin-bottom: var(--space-2); }
.footer-grid .brand { font-size: 28px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer-list a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; text-decoration: none; }
.footer-list a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.legal { margin-top: var(--space-5); padding-top: var(--space-4); border-top: var(--bw) solid var(--i0); color: var(--muted); font-size: 14px; }

.contact-list { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: var(--space-5); max-width: 560px; }
.contact-list a { display: flex; min-height: 64px; align-items: center; padding: var(--space-3) var(--space-5); border: var(--bw) solid var(--i0); box-shadow: 6px 6px 0 var(--i0); font-size: 18px; font-weight: 800; text-decoration: none; transition: transform 360ms var(--ease-out), box-shadow 360ms var(--ease-out); }
.contact-list a:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--i0); }
@media (hover: hover) and (pointer: fine) { .contact-list a:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--i0); } }

.ad-slot:has(> .wrap > [hidden]) { display: none; }

html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after { transition: background-color 600ms ease, color 600ms ease, border-color 600ms ease, fill 600ms ease !important; }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

@media (max-width: 639px) {
  body { font-size: 16px; }

  .site-header .brand { order: 1; font-size: 22px; }
  .header-actions { order: 2; margin-inline-start: auto; }
  .main-nav { order: 3; width: 100%; }
  .main-nav a { flex: 1 1 auto; justify-content: center; }
  .btn { width: 100%; }
  .header-actions .btn { width: auto; padding-inline: var(--space-3); }
  .hide-sm { display: none; }
  .hero h1 { margin-block: var(--space-3); }
  .hero .cover, .hero .art { box-shadow: 6px 6px 0 var(--ink); aspect-ratio: 16 / 10; }

  .grid { gap: var(--space-4); }
  .grid .card { display: grid; grid-template-columns: 112px 1fr; box-shadow: 4px 4px 0 var(--ink); }
  .grid .card .cover { height: 100%; min-height: 112px; aspect-ratio: auto; border-bottom: 0; border-inline-end: var(--bw) solid var(--ink); }
  .grid .card .art::before { width: 48px; height: 48px; }
  .grid .card .art::after { width: 28px; height: 28px; }
  .grid .card .body { padding: var(--space-3); gap: var(--space-1); }
  .grid .card h3 { font-size: 16px; line-height: 1.8; }
  .grid .card p { display: none; }

  .rows { gap: var(--space-4); }
  .row { grid-template-columns: 112px 1fr; box-shadow: 4px 4px 0 var(--i0); }
  .row .cover { height: 100%; min-height: 112px; aspect-ratio: auto; border-bottom: 0; border-inline-end: var(--bw) solid var(--i0); }
  .row .art::before { width: 48px; height: 48px; }
  .row .art::after { width: 28px; height: 28px; }
  .row > div { padding: var(--space-3); align-self: center; }
  .row h3 { font-size: 16px; line-height: 1.8; }
  .row p { display: none; }
  .row .meta { font-size: 12.5px; gap: var(--space-1) var(--space-2); }
  .row .badge { font-size: 12px; }
  .cta-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; scroll-behavior: auto !important; }
  .card:hover, .card:active, .row:hover, .row:active, .btn:hover, .btn:active, .contact-list a:hover, .contact-list a:active { transform: none !important; }
}
.ldr-layer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.ldr { position: fixed; display: grid; place-items: center; border-radius: 50%; background: var(--p0); color: var(--i0); box-shadow: 0 0 0 var(--bw) var(--i0); transition: opacity 200ms ease; }
.ldr.is-off, .ldr.is-out { opacity: 0; }
.ldr-svg { position: absolute; inset: 4px; inline-size: calc(100% - 8px); block-size: calc(100% - 8px); }
.ldr-bg { stroke: var(--tint); }
.ldr-fg { stroke: var(--i0); transition: stroke-dashoffset 180ms linear; }
.ldr-pct { position: relative; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ldr.is-spin .ldr-svg { animation: ldr-turn 900ms linear infinite; }
@keyframes ldr-turn { to { transform: rotate(360deg); } }
img[data-src]:not([src]) { background: var(--tint); min-block-size: 80px; }
img.ld-in { animation: ldr-in 260ms ease; }
@keyframes ldr-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ldr.is-spin .ldr-svg, img.ld-in { animation: none; } .ldr-fg { transition: none; } }
.emo { display: inline-block; block-size: calc(1em * var(--z, 1.4)); inline-size: auto; vertical-align: calc(-0.28em * var(--z, 1.4)); margin-inline: 0.08em; }
.dt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hl { padding-inline: 0.15em; border-radius: 0.2em; }
code.cp, .cp-block { font-family: ui-monospace, Menlo, Consolas, monospace; cursor: copy; }
code.cp { padding: 0.05em 0.4em; background: var(--tint); border: var(--bw) solid var(--i0); border-radius: 0.3em; direction: ltr; unicode-bidi: isolate; }
code.cp:hover, code.cp:focus-visible { background: var(--i0); color: var(--p0); }
.cp-block { display: block; margin: 1.2em 0; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--tint); border: var(--bw) solid var(--i0); border-radius: 12px; direction: ltr; text-align: left; }
.spoiler { cursor: pointer; border-radius: 0.2em; background: var(--i0); color: transparent; transition: background 220ms ease, color 220ms ease; }
.spoiler.is-open { background: transparent; color: inherit; cursor: auto; }
.spoiler a, .spoiler strong, .spoiler em, .spoiler span { color: inherit; }
.mb-media { margin: 1.4em auto; max-inline-size: 100%; }
.mb-media[data-pos="right"] { margin-inline-start: 0; margin-inline-end: auto; }
.mb-media[data-pos="left"] { margin-inline-start: auto; margin-inline-end: 0; }
.mb-media img, .mb-media video { display: block; inline-size: 100%; block-size: auto; max-inline-size: 100%; }
.mb-media figcaption { margin-top: 8px; font-size: 0.9em; color: var(--muted); text-align: center; }
.mb-btn-row { margin: 1.4em 0; }
blockquote cite { display: block; margin-top: 8px; font-style: normal; font-size: 0.9em; color: var(--muted); }
blockquote cite::before { content: "— "; }
.mb-toast { position: fixed; inset-inline: 0; inset-block-end: 88px; margin-inline: auto; inline-size: max-content; max-inline-size: 90vw; padding: 10px 18px; background: var(--i0); color: var(--p0); border-radius: 99px; font-weight: 700; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; z-index: 95; }
.mb-toast.is-on { opacity: 1; transform: none; }
.mb-hidden-ta { position: fixed; inset-block-start: -100px; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .spoiler, .mb-toast { transition: none; } }
