@charset "utf-8";
/* Fasty DNS - site styles. Brand: signal green #C7F000 on #07080A. */
@font-face {
  font-family: Vazirmatn;
  font-weight: 100 900;
  font-display: swap;
  src: url("vazirmatn.woff2") format("woff2");
}

:root {
  --bg: #07080a;
  --bg-2: #0c0e12;
  --bg-3: #12151b;
  --line: #1c2028;
  --line-2: #2a303b;
  --fg: #edeff2;
  --muted: #9aa1ac;
  --dim: #6b7280;
  --signal: #c7f000;
  --signal-ink: #07080a;
  --signal-soft: rgba(199, 240, 0, 0.1);
  --signal-line: rgba(199, 240, 0, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --mono: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--mono); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
/* The keyboard's first stop: past the header to the page itself. Out of
   sight until it has focus. */
.skip {
  position: absolute; top: 8px; inset-inline-start: 8px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--signal); color: var(--signal-ink); font-weight: 700;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 8, 10, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 32px; height: 32px; }
.brand b { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; direction: ltr; }
.brand small {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  color: var(--muted); direction: ltr; margin-inline-start: 2px;
}
.nav { display: none; gap: 4px; margin-inline-start: auto; }
.nav a {
  text-decoration: none; color: var(--muted); font-size: 15px;
  padding: 6px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--fg); background: var(--bg-3); }
.top .btn { margin-inline-start: auto; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .top .btn { margin-inline-start: 8px; }
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 12px;
  font: inherit; font-size: 15px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--signal); color: var(--signal-ink); }
.btn-primary:hover { background: #d4ff1a; }
.btn-ghost { border-color: var(--line-2); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); background: var(--bg-3); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(199, 240, 0, 0.13), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 60% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 60% 20%, #000 30%, transparent 75%);
  opacity: 0.55;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) {
  .hero { padding: 88px 0 72px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--signal);
  background: var(--signal-soft); border: 1px solid var(--signal-line);
  padding: 4px 12px; border-radius: 999px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 0 rgba(199, 240, 0, 0.6); animation: ping 2.4s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(199, 240, 0, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(199, 240, 0, 0); }
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.05rem, 6.2vw, 3.55rem);
  font-weight: 900; letter-spacing: -0.01em;
}
.hero h1 em { font-style: normal; color: var(--signal); white-space: nowrap; }
.lead { margin-top: 18px; font-size: clamp(1rem, 2.3vw, 1.15rem); color: var(--muted); max-width: 40em; }
.lead strong { color: var(--fg); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.devices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.devices span {
  font-size: 13px; color: var(--muted); border: 1px solid var(--line-2);
  padding: 3px 11px; border-radius: 999px; direction: ltr;
}
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 34px; max-width: 520px;
}
.stats div { border-inline-start: 2px solid var(--signal); padding-inline-start: 12px; }
.stats b { display: block; font-size: clamp(1.35rem, 4vw, 1.75rem); font-weight: 800; line-height: 1.3; }
.stats span { font-size: 13px; color: var(--muted); }

/* the route card in the hero */
.route {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line-2); border-radius: 20px; padding: 22px;
  box-shadow: 0 30px 80px -40px rgba(199, 240, 0, 0.25);
}
.route-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.route-head h2 { font-size: 15px; font-weight: 700; }
.route-head .mono { font-size: 12px; color: var(--dim); }
.hops { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
/* The icons sit at the top of their rows, always 10px down, so their centres
   are at a known height whatever the text beside them wraps to. Each row
   then draws the line from its top to its icon and from its icon to its
   bottom: the chain joins icon to icon at any width. A fixed-length line
   between rows used to stop short wherever a row's text took two lines. */
.hop {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  position: relative; padding: 10px 0;
}
.hop + .hop::before, .hop:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: 21px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--signal) 0 5px, transparent 5px 10px);
  background-size: 2px 10px; animation: flow 0.8s linear infinite;
}
.hop + .hop::before { top: 0; height: 32px; }
.hop:not(:last-child)::after { top: 32px; bottom: 0; }
@keyframes flow { to { background-position: 0 10px; } }
.hop-ico {
  position: relative; z-index: 1;
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-3); border: 1px solid var(--line-2); color: var(--fg);
}
.hop-ico svg { width: 22px; height: 22px; }
.hop.is-fasty .hop-ico { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.hop-text { padding-top: 1px; min-width: 0; }
.hop b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; font-weight: 700; line-height: 1.5; }
/* Only the line under the title: a plain `.hop span` also caught the icon's
   own <span> and made it a block, so the icon sat at the top of its box. */
.hop-text > span { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; }
.hop .tag {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px;
  color: var(--signal); background: var(--signal-soft); border: 1px solid var(--signal-line);
  white-space: nowrap; line-height: 1.6;
}
.route-foot {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2);
  display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted);
}
.route-foot svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--muted); }

/* --------------------------------------------------------------- sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.sec-head { max-width: 46em; margin-bottom: 36px; }
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--signal);
  direction: ltr; display: inline-block; margin-bottom: 10px;
}
.sec-head h2 { font-size: clamp(1.6rem, 4.2vw, 2.35rem); font-weight: 850; }
.sec-head p { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }

/* features */
.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.feature-ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--signal-soft); color: var(--signal); border: 1px solid var(--signal-line);
}
.feature-ico svg { width: 21px; height: 21px; }
.feature h2, .feature h3 { font-size: 1.1rem; font-weight: 800; margin-top: 16px; }
.feature p { color: var(--muted); margin-top: 6px; font-size: 15px; line-height: 1.85; }

/* plans */
.plan-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .plan-grid { grid-template-columns: repeat(4, 1fr); } }
.plan-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.plan-card.best { border-color: var(--signal-line); background: linear-gradient(180deg, var(--signal-soft), var(--bg-2) 55%); }
.plan-flag {
  position: absolute; top: -11px; inset-inline-start: 18px; padding: 2px 10px;
  border-radius: 999px; background: var(--signal); color: var(--signal-ink);
  font-size: 12.5px; font-weight: 800;
}
.plan-card h2 { font-size: 1.2rem; font-weight: 850; }
.plan-days { color: var(--dim); font-size: 14px; margin-top: 2px; }
.plan-price { margin-top: 16px; color: var(--muted); font-size: 15px; }
.plan-price b { color: var(--fg); font-size: 1.9rem; font-weight: 850; letter-spacing: -0.01em; }
.plan-per { color: var(--muted); font-size: 14px; margin-top: 4px; min-height: 1.6em; }
.plan-save {
  display: inline-block; margin-inline-start: 4px; padding: 0 8px; border-radius: 999px;
  background: var(--signal-soft); color: var(--signal); border: 1px solid var(--signal-line);
  font-size: 12.5px; font-weight: 700;
}
.plan-list { list-style: none; margin: 18px 0 20px; padding: 0; display: grid; gap: 8px; flex: 1; }
.plan-list li { position: relative; padding-inline-start: 22px; color: var(--fg); font-size: 14.5px; }
.plan-list li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: 0.55em; width: 10px; height: 6px;
  border-inline-start: 2px solid var(--signal); border-bottom: 2px solid var(--signal);
  transform: rotate(-45deg);
}
.plan-card .btn { width: 100%; justify-content: center; }
.plan-note { margin-top: 18px; color: var(--muted); font-size: 14.5px; line-height: 1.9; }
.plan-note a, .plan-ways a { color: var(--fg); }
.plan-ways { margin-top: 14px; }
@media (min-width: 980px) { .plan-ways { grid-template-columns: 1fr 1fr; } }

/* platforms */
.platforms { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .platforms { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .platforms { grid-template-columns: repeat(5, 1fr); } }
.platform {
  display: flex; align-items: center; gap: 12px; min-height: 64px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.platform svg { width: 24px; height: 24px; fill: currentColor; color: var(--fg); flex-shrink: 0; }
.platform .ph {
  width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
  background: var(--bg-3); border: 1px solid var(--line-2);
  font-size: 12px; font-weight: 800; display: grid; place-items: center; color: var(--muted);
}
.platform b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.45; }
.platform span { display: block; font-size: 12px; color: var(--dim); direction: ltr; text-align: right; line-height: 1.4; }

/* games */
.games-tools { display: grid; gap: 14px; margin: 44px 0 20px; }
.search { position: relative; }
.search input {
  width: 100%; min-height: 50px; padding: 0 46px 0 16px;
  background: var(--bg-2); color: var(--fg); border: 1px solid var(--line-2);
  border-radius: 12px; font: inherit; font-size: 16px;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.search svg {
  position: absolute; inset-inline-start: 15px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; color: var(--dim); pointer-events: none;
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chip {
  flex-shrink: 0; font: inherit; font-size: 14px; color: var(--muted);
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 5px 14px; cursor: pointer; white-space: nowrap;
}
.chip:hover { color: var(--fg); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); font-weight: 700; }
.chip small { opacity: 0.7; margin-inline-start: 4px; }

.cat + .cat { margin-top: 34px; }
.cat-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.cat-head h3 { font-size: 1.15rem; font-weight: 800; }
.cat-head span { color: var(--dim); font-size: 14px; }
.games { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .games { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .games { grid-template-columns: repeat(4, 1fr); } }
.game {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 14px; min-height: 64px; display: flex; flex-direction: column; justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.game:hover { border-color: var(--signal-line); background: var(--bg-3); }
.game b { font-size: 15px; font-weight: 700; line-height: 1.5; }
.game span { font-size: 12.5px; color: var(--dim); direction: ltr; text-align: right; line-height: 1.45; }
.game i { font-style: normal; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.no-match {
  display: none; text-align: center; padding: 36px 16px; color: var(--muted);
  border: 1px dashed var(--line-2); border-radius: var(--radius);
}
.no-match.show { display: block; }
.note {
  margin-top: 28px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line); border-inline-start: 3px solid var(--signal);
  color: var(--muted); font-size: 14.5px;
}
.note b { color: var(--fg); }

/* beyond games */
.beyond { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .beyond { grid-template-columns: 1fr 1.1fr; gap: 48px; } }
.logos { display: flex; flex-wrap: wrap; gap: 10px; }
.logo-pill {
  display: inline-flex; align-items: center; gap: 9px; direction: ltr;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 14px; font-weight: 600;
}
.logo-pill svg { width: 18px; height: 18px; fill: currentColor; }

/* how it works */
.steps { display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; counter-increment: s;
}
.step::before {
  content: counter(s, persian); display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px; font-weight: 800;
  background: var(--signal); color: var(--signal-ink);
}
.step h3 { font-size: 1.08rem; font-weight: 800; margin-top: 14px; }
.step p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.split { margin-top: 14px; display: grid; gap: 14px; }
@media (min-width: 720px) { .split { grid-template-columns: 1fr 1fr; } }
.lane {
  border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line);
  display: flex; gap: 14px; align-items: flex-start;
}
.lane svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; }
.lane b { display: block; font-weight: 800; }
.lane p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.lane.via { background: var(--signal-soft); border-color: var(--signal-line); }
.lane.via svg { color: var(--signal); }
.lane.direct { background: var(--bg-2); }
.lane.direct svg { color: var(--muted); }

/* setup */
.setup { display: grid; gap: 28px; }
/* Grid columns may shrink below their content: the device tabs scroll
   sideways inside them, and must not push the page wider than a phone. */
.setup > *, .hero-grid > *, .beyond > *, .games-tools > * { min-width: 0; }
@media (min-width: 980px) { .setup { grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; } }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: t; }
.todo li {
  counter-increment: t; display: grid; grid-template-columns: 34px 1fr; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.todo li:last-child { border-bottom: 0; }
.todo li::before {
  content: counter(t, persian); width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
  border: 1px solid var(--signal-line); color: var(--signal); background: var(--signal-soft);
}
.todo b { display: block; font-weight: 800; }
.todo p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.todo a { color: var(--signal); text-decoration: none; font-weight: 600; }
.todo a:hover { text-decoration: underline; }

.dnsbox {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px; padding: 20px;
}
.dnsbox-label { font-size: 14px; color: var(--muted); }
.dns-ip {
  margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg); border: 1px solid var(--signal-line); border-radius: 12px; padding: 10px 10px 10px 16px;
}
.dns-ip code {
  font-family: var(--mono); font-size: clamp(1.25rem, 5vw, 1.6rem); font-weight: 700;
  color: var(--signal); direction: ltr; letter-spacing: 0.02em;
}
.warn {
  margin-top: 14px; display: flex; gap: 10px; font-size: 14px; color: var(--muted);
  background: rgba(255, 196, 0, 0.06); border: 1px solid rgba(255, 196, 0, 0.22);
  border-radius: 10px; padding: 10px 12px;
}
.warn svg { width: 18px; height: 18px; flex-shrink: 0; color: #ffc400; margin-top: 3px; }
.warn b { color: var(--fg); }

.tabs { margin-top: 20px; }
.tablist { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line-2); }
.tablist::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 8px 12px; cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--signal); border-bottom-color: var(--signal); }
.panel { padding: 16px 2px 2px; }
.panel h2 { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.js .panel[hidden] { display: none; }
.panel + .panel { border-top: 1px solid var(--line); }
.js .panel + .panel { border-top: 0; }
.path { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* The consoles' own menus are in English, so the path reads left to right. */
.path { direction: ltr; }
.path li {
  font-size: 13.5px; background: var(--bg-3); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 2px 9px; line-height: 1.8; unicode-bidi: isolate;
}
.path li[dir="rtl"] { color: var(--signal); border-color: var(--signal-line); }
.path li + li { position: relative; margin-left: 14px; }
.path li + li::before {
  content: "›"; position: absolute; left: -13px; top: 50%; transform: translateY(-52%);
  color: var(--dim); font-size: 15px;
}
.panel p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.panel p code { font-family: var(--mono); color: var(--fg); direction: ltr; unicode-bidi: isolate; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 18px;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700;
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--mono); font-size: 20px; color: var(--signal);
  transition: transform 0.2s ease; flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; font-size: 15px; }

/* final call */
.final { text-align: center; }
.final .box {
  position: relative; overflow: hidden; border-radius: 24px; padding: 48px 20px;
  background: var(--signal); color: var(--signal-ink);
}
.final .box::after {
  content: ""; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px;
  background: url("mark-signal.svg") center / contain no-repeat;
  filter: invert(1) brightness(0); opacity: 0.08;
}
.final h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 900; }
.final p { margin: 10px auto 0; max-width: 34em; font-weight: 500; opacity: 0.85; }
.final .cta-row { justify-content: center; }
.final .btn-primary { background: var(--signal-ink); color: var(--signal); }
.final .btn-primary:hover { background: #1a1d24; }
.final .btn-ghost { border-color: rgba(7, 8, 10, 0.35); color: var(--signal-ink); }
.final .btn-ghost:hover { background: rgba(7, 8, 10, 0.08); border-color: var(--signal-ink); }

/* contact page: the address takes two columns - the whole row on a tablet,
   beside the Telegram card on a desktop; links read as text */
@media (min-width: 640px) { .features.contact .feature.wide { grid-column: span 2; } }
.features.contact .feature p a { color: var(--fg); }

/* terms page: plain reading text */
.terms { max-width: 860px; }
.terms h2 { font-size: 1.15rem; font-weight: 800; margin: 28px 0 8px; }
.terms h2:first-child { margin-top: 0; }
.terms p, .terms li { color: var(--muted); font-size: 15px; line-height: 2; }
.terms ul { padding-inline-start: 20px; display: grid; gap: 6px; }
.terms a { color: var(--fg); }
.terms .updated { margin-top: 32px; font-size: 13px; color: var(--dim); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--dim); font-size: 14px; }
footer .wrap { display: grid; gap: 18px; }
@media (min-width: 720px) { footer .wrap { grid-template-columns: 1fr auto auto; align-items: center; } }
/* Enamad's seal: its own picture, white and all. Nothing around it, so a
   visitor whose connection cannot reach Enamad sees no empty box. */
footer .trust a { display: inline-block; line-height: 0; }
footer .trust img { width: 88px; height: auto; display: block; border-radius: 10px; }
/* Our copy of the seal: hidden unless Enamad's own picture does not load,
   and then in its place (app.js). Enamad's code is never changed. */
footer .trust a.trust-spare { display: none; }
footer .trust.spare > a:first-of-type { display: none; }
footer .trust.spare a.trust-spare { display: inline-block; line-height: 0; }
/* Its picture is transparent: on white, as Enamad's own is, to be read on
   the dark footer. */
footer .trust-spare img { background: #fff; padding: 6px; box-sizing: border-box; height: auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer nav a { text-decoration: none; color: var(--muted); }
footer nav a:hover { color: var(--fg); }
footer p { margin-top: 8px; font-size: 13px; }

/* toast */
.toast {
  position: fixed; inset-inline: 0; bottom: 22px; margin: 0 auto; width: max-content; max-width: calc(100% - 32px);
  background: var(--fg); color: var(--bg); font-weight: 700; font-size: 14px;
  padding: 8px 16px; border-radius: 10px; opacity: 0; transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease; pointer-events: none; z-index: 40;
}
.toast.show { opacity: 1; transform: none; }

/* ------------------------------------------------------------- pages */
.nav a[aria-current="page"] { color: var(--fg); background: var(--bg-3); }
/* On a phone the pages are a row of their own under the header. */
.nav-mobile { border-top: 1px solid var(--line); }
.nav-mobile .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 6px; }
.nav-mobile .wrap::-webkit-scrollbar { display: none; }
.nav-mobile a {
  flex-shrink: 0; text-decoration: none; color: var(--muted); font-size: 14px;
  padding: 4px 12px; border-radius: 999px; border: 1px solid transparent;
}
.nav-mobile a[aria-current="page"] { color: var(--signal); border-color: var(--signal-line); background: var(--signal-soft); }
@media (min-width: 900px) { .nav-mobile { display: none; } }

.page-head { position: relative; padding: 56px 0 8px; border-top: 0; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(520px 220px at 80% 0%, rgba(199, 240, 0, 0.12), transparent 70%);
}
.page-head h1 { font-size: clamp(1.9rem, 5.4vw, 3rem); font-weight: 900; }
section.tight { padding-top: 28px; padding-bottom: 28px; border-top: 0; }
.sub-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 14px; }
.sec-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: none; }
.sec-head-row > div { max-width: 46em; }
.steps code { font-family: var(--mono); color: var(--signal); direction: ltr; unicode-bidi: isolate; }
.steps + .cta-row { margin-top: 24px; }

/* ------------------------------------------------------- game tiles */
.featured { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .featured { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .featured { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line-2); text-decoration: none;
  background: radial-gradient(120% 80% at 70% 10%, color-mix(in srgb, var(--tile) 55%, transparent), transparent 60%),
              linear-gradient(160deg, color-mix(in srgb, var(--tile) 28%, var(--bg-2)), var(--bg));
  isolation: isolate;
}
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 0.4s ease;
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 38%, rgba(7, 8, 10, 0.55) 62%, rgba(7, 8, 10, 0.94));
}
.tile:hover img { transform: scale(1.05); }
.tile:hover { border-color: var(--signal-line); }
.tile:focus-visible { outline-offset: 2px; }
.tile-mark {
  position: absolute; inset: 14% 10% auto; z-index: -1; direction: ltr; text-align: center;
  font-size: clamp(1.1rem, 3.6vw, 1.6rem); font-weight: 900; letter-spacing: -0.02em;
  line-height: 1.15; color: color-mix(in srgb, var(--tile) 70%, #fff); text-transform: uppercase;
}
.tile-text { position: absolute; inset: auto 0 0; padding: 14px; display: grid; gap: 1px; }
.tile-text b { font-size: 1.05rem; font-weight: 800; line-height: 1.4; color: #fff; }
.tile-text span { font-size: 12.5px; color: #c9ced6; direction: ltr; text-align: right; }
.tile-text small {
  margin-top: 6px; justify-self: start; font-size: 11.5px; color: var(--signal);
  background: rgba(7, 8, 10, 0.6); border: 1px solid var(--signal-line);
  padding: 1px 8px; border-radius: 999px; direction: ltr; unicode-bidi: isolate;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ------------------------------------------------------------- blog */
.posts { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
.post-card:hover { border-color: var(--signal-line); }
.post-card-art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.post-card-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-art img { transform: scale(1.04); }
/* An article without a game of its own: the site's mark in its place. */
.post-card-mark {
  position: absolute; inset: 0; display: grid; place-items: center; direction: ltr;
  font-family: var(--mono); font-size: 2rem; font-weight: 800; letter-spacing: 0.3em;
  color: var(--signal);
  background:
    radial-gradient(70% 90% at 75% 10%, var(--signal-soft), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg-3);
}
.post-card-text { display: grid; gap: 6px; padding: 16px 18px 18px; }
.post-card-text b { font-size: 1.05rem; font-weight: 800; line-height: 1.65; }
.post-card-text > span {
  color: var(--muted); font-size: 14.5px; line-height: 1.85;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-text small { margin-top: 4px; color: var(--dim); font-size: 12.5px; }

/* an article */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 14px; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.post-head h1 { font-size: clamp(1.65rem, 4.6vw, 2.5rem); }
.post-head-row { display: grid; gap: 24px; }
.post-head-row > * { min-width: 0; }
.post-meta { margin-top: 14px; font-size: 14px; color: var(--dim); }
/* The game's cover beside the title on a wide screen; a phone goes
   straight to the text. */
.post-poster { display: none; }
@media (min-width: 900px) {
  .post-head-row { grid-template-columns: minmax(0, 1fr) 168px; align-items: end; }
  .post-poster { display: block; width: 168px; height: auto; border-radius: 14px; border: 1px solid var(--line-2); }
}
.post + section { border-top: 1px solid var(--line); }

.post-body { max-width: 760px; }
.post-body > :first-child { margin-top: 0; }
.post-body h2 { font-size: clamp(1.25rem, 3.2vw, 1.5rem); font-weight: 850; margin: 44px 0 12px; scroll-margin-top: 140px; }
.post-body h3 { font-size: 1.1rem; font-weight: 800; margin: 28px 0 8px; }
.post-body p, .post-body li { color: #c9ced6; font-size: 16.5px; line-height: 2.05; }
.post-body p + p { margin-top: 14px; }
.post-body ul, .post-body ol:not(.path) { padding-inline-start: 22px; margin: 12px 0; display: grid; gap: 6px; }
.post-body ol:not(.path) { list-style-type: persian; }
.post-body strong { color: var(--fg); }
.post-body a { color: var(--signal); text-underline-offset: 3px; }
.post-body code { font-family: var(--mono); color: var(--signal); direction: ltr; unicode-bidi: isolate; }
.post-body .path { margin: 10px 0 12px; }
/* A menu path keeps its own small type inside the article's text. */
.post-body .path li { font-size: 13.5px; line-height: 1.8; }
.post-body .path li:not([dir="rtl"]) { color: var(--fg); }
.post-body .note, .post-body .warn { margin: 20px 0; }
.post-body .note p, .post-body .warn span { font-size: 15px; color: var(--muted); }
.post-body .table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post-body th, .post-body td { padding: 10px 12px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.8; }
.post-body th { background: var(--bg-3); font-weight: 800; }
.post-body td { color: #c9ced6; }
.post-body tr:last-child td { border-bottom: 0; }
.toc {
  margin: 0 0 8px; padding: 16px 20px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line);
}
.toc b { font-size: 15px; }
.post-body .toc ol { margin: 8px 0 0; gap: 2px; }
.post-body .toc li { font-size: 15px; line-height: 1.9; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--signal); }
.post-cta {
  max-width: 760px; margin-top: 40px; padding: 22px; border-radius: var(--radius);
  background: var(--signal-soft); border: 1px solid var(--signal-line);
}
.post-cta b { font-size: 1.15rem; font-weight: 850; }
.post-cta p { margin-top: 6px; color: var(--muted); }
.post-cta .cta-row { margin-top: 16px; }

/* ------------------------------------------- cover grids and their tabs */
.seg {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px;
  background: var(--bg-2); border-radius: 14px;
}
.seg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg-tab {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--muted);
  background: none; border: 0; border-radius: 10px; cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.seg-tab svg { width: 20px; height: 20px; display: none; }
@media (min-width: 560px) { .seg-tab svg { display: block; } }
.seg-tab:hover { color: var(--fg); background: var(--bg-3); }
.seg-tab[aria-selected="true"], .seg-tab[aria-pressed="true"] { background: var(--signal); color: var(--signal-ink); }
[role="tabpanel"][hidden] { display: none; }

.covers {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: grid; gap: 20px 12px; grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (min-width: 640px) { .covers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .covers { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; } }
@media (min-width: 1040px) { .covers-all { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.cover { min-width: 0; }
.cover[hidden] { display: none; }
.cover a { display: block; text-decoration: none; }
/* A game with no picture: a field of its own colour, and its name. */
.cover-art {
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 12px;
  background: color-mix(in srgb, var(--tile) 20%, var(--bg-2));
}
.cover-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.cover:hover .cover-art img { transform: scale(1.05); }
.cover-art i {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 10px;
  direction: ltr; text-align: center; font-style: normal; font-weight: 900;
  font-size: clamp(0.85rem, 2.4vw, 1.05rem); line-height: 1.2; letter-spacing: -0.01em;
  text-transform: uppercase; overflow-wrap: anywhere;
  color: color-mix(in srgb, var(--tile) 60%, #fff);
}
.cover b {
  display: block; margin-top: 10px; font-size: 15px; font-weight: 700; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cover-en {
  display: block; font-size: 12.5px; color: var(--dim); direction: ltr; text-align: right;
  line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* The games page opens on its search box. */
.page-head + .tight .games-tools { margin-top: 4px; }
.fine { margin-top: 14px; font-size: 13px; color: var(--dim); }

/* ------------------------------------------------------- individual game */
.game-facts { display: grid; gap: 28px; align-items: start; }
@media (min-width: 760px) { .game-facts { grid-template-columns: 250px 1fr; } }
.game-art .cover-art { max-width: 250px; }
.facts { margin: 18px 0 0; display: grid; gap: 10px; }
.facts > div {
  display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: baseline;
  padding: 11px 14px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.facts dt { color: var(--dim); font-size: 13px; }
.facts dd { margin: 0; font-size: 14px; line-height: 1.7; }
.facts dd[dir="ltr"] { text-align: right; }
.game-steps { margin-top: 18px; }
.game-steps li { margin-bottom: 12px; }
.game-steps a { color: var(--signal); }
.post-game { margin: 8px 0 14px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.post-game a { color: var(--signal); }

/* ------------------------------------------------------------ route map */
/* The land is a picture of its own; the route lies over it, drawn to the
   same box. The glow sits where Fasty's servers are. */
.map {
  position: relative; aspect-ratio: 1000 / 456;
  background: radial-gradient(34% 62% at 59% 34%, rgba(199, 240, 0, 0.13), transparent 72%);
}
.map img, .map-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-route { overflow: visible; }
.map-arcs { filter: drop-shadow(0 0 5px rgba(199, 240, 0, 0.55)); }
.map-arcs path { fill: none; stroke: var(--signal); stroke-width: 1.3; opacity: 0.6; vector-effect: non-scaling-stroke; }
.map-arcs .map-first { stroke-width: 2.6; opacity: 1; }
/* A light that runs each line outward, from Iran on. */
.map-pulses path {
  fill: none; stroke: #f3ffc4; stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 6 94; stroke-dashoffset: 6; animation: travel 3.2s linear infinite;
}
.map-pulses .map-first { stroke-width: 3.4; animation-duration: 1.6s; }
@keyframes travel { to { stroke-dashoffset: -100; } }
.map-dots circle, .map-hub circle { fill: var(--signal); }
.map-hub.is-home circle { fill: var(--fg); }
.map-hub .map-ring {
  fill: none; stroke: var(--signal); stroke-width: 2;
  transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite;
}
.map-hub.is-home .map-ring { stroke: var(--fg); animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(0.8); opacity: 0.9; } to { transform: scale(3); opacity: 0; } }
.map-labels text {
  font-size: 17px; font-weight: 700; fill: var(--fg);
  paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round;
}
.map-names text { font-size: 18px; font-weight: 800; fill: var(--signal); }
.map-names text + text { fill: var(--fg); }
/* On a phone the names are too small to read: the list under the map says
   what each mark is. */
@media (max-width: 719px) { .map-labels { display: none; } }
.reach-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .reach-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.reach-list li { position: relative; padding-inline-start: 26px; }
.reach-list li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: 0.7em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--signal);
}
.reach-list li.is-home::before, .reach-list li.is-exit::before { inset-inline-start: 2px; top: 0.55em; width: 12px; height: 12px; }
.reach-list li.is-home::before { background: var(--fg); }
.reach-list b { display: block; font-weight: 800; }
.reach-list span { display: block; color: var(--muted); font-size: 14.5px; }

/* ------------------------------------------------------------ ping test */
.sec-head-row .cta-row { margin-top: 0; }
.ping { display: grid; gap: 14px; }
.ping > * { min-width: 0; }
@media (min-width: 980px) {
  .ping { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; }
  .ping-core { order: 2; }
  .ping-side { grid-auto-rows: 1fr; }
  .ping-side:last-child { order: 3; }
}
.ping-side { display: grid; gap: 14px; }
.ping-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
}
.ping-card h2 { font-size: 14.5px; font-weight: 700; color: var(--signal); }
.ping-big {
  margin-top: 6px; font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 850; line-height: 1.3;
  direction: ltr; text-align: right; font-variant-numeric: tabular-nums;
}
.ping-sub { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.ping-core { display: grid; justify-items: center; align-content: center; gap: 16px; padding: 14px 0; text-align: center; }
/* The game in a ring that fills as the test goes: --p is how far, in percent. */
.ping-ring {
  width: min(62vw, 250px); aspect-ratio: 1; border-radius: 50%; padding: 8px;
  background: conic-gradient(var(--signal) calc(var(--p, 0) * 1%), var(--line-2) 0);
}
.ping-ring img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; border-radius: 50%; border: 6px solid var(--bg); }
.ping-ring img.is-mark { object-fit: contain; padding: 22%; background: var(--bg-2); }
/* Whose line is being measured: the visitor's address and operator. */
.ping-who { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; }
.ping-who div { display: flex; align-items: baseline; gap: 8px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); font-size: 13px; }
.ping-who dt { color: var(--muted); }
.ping-who dd { margin: 0; font-weight: 800; color: var(--fg); unicode-bidi: isolate; }
.ping-who dd[dir="ltr"] { font-family: var(--mono); font-weight: 700; font-size: 12.5px; }
.ping[data-gate="out"] .ping-who div { border-color: #ff7a6b; }
.ping[data-gate="out"] .ping-status { color: #ff7a6b; }
.ping-status { min-height: 3.4em; max-width: 22em; color: var(--muted); font-size: 15px; }
.ping-core .btn[disabled] { opacity: 0.7; cursor: default; }
.ping-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.ping-duo span { display: block; font-size: 13px; color: var(--muted); }
.ping-duo b {
  display: block; font-size: clamp(1.4rem, 4vw, 1.75rem); font-weight: 850; line-height: 1.4;
  direction: ltr; text-align: right; font-variant-numeric: tabular-nums;
}
.ping-duo .is-fasty b { color: var(--signal); }
.ping-card.is-fasty { border-color: var(--signal-line); }
.ping-card.is-fasty .ping-big { color: var(--signal); }
/* The path's three legs, each with its own measured time. */
.ping-legs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: leg; }
.ping-legs li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); counter-increment: leg; }
.ping-legs li span::before { content: counter(leg, persian) "."; margin-inline-end: 6px; color: var(--dim); }
.ping-legs b { flex: none; color: var(--fg); font-size: 15px; font-weight: 800; direction: ltr; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ping-honest { margin-top: 18px; }
.ping-curve { width: 100%; height: 80px; margin-top: 8px; display: block; }
.ping-curve polyline { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.ping-tables { display: grid; gap: 32px; }
.ping-tables > * { min-width: 0; }
@media (min-width: 980px) { .ping-tables { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; } }
.ping-scroll { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius); }
.ping-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ping-table th, .ping-table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); line-height: 1.6; }
.ping-table tbody tr:last-child th, .ping-table tbody tr:last-child td { border-bottom: 0; }
.ping-table thead th { background: var(--bg-3); color: var(--muted); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.ping-table tbody th { font-weight: 700; }
.ping-table small { display: block; font-size: 12px; font-weight: 400; color: var(--dim); direction: ltr; text-align: right; }
.ping-table td { direction: ltr; text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ping-table td.good { color: var(--signal); }
.ping-table td.win { color: var(--signal); }
.ping-table td.mid { color: #ffc400; }
.ping-table td.bad { color: #ff7a6b; }
.ping-table td.none { color: var(--dim); font-weight: 400; direction: rtl; }
