/* Vex Games shared stylesheet — copied by generator/build.py into vex.games and every game site. */

/* ---------- self-hosted fonts (each file is only downloaded if the page uses its characters) ---------- */
@font-face { font-family: "Fredoka"; font-weight: 500 700; font-display: swap; src: url("../fonts/fredoka-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fredoka"; font-weight: 500 700; font-display: swap; src: url("../fonts/fredoka-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-weight: 600 800; font-display: swap; src: url("../fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 600 800; font-display: swap; src: url("../fonts/nunito-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Vazirmatn"; font-weight: 400 800; font-display: swap; src: url("../fonts/vazirmatn-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; font-weight: 400 800; font-display: swap; src: url("../fonts/vazirmatn-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Nastaliq Urdu"; font-weight: 400 700; font-display: swap; src: url("../fonts/nastaliq-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 400 700; font-display: swap; src: url("../fonts/devanagari.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: "Noto Sans Armenian"; font-weight: 400 700; font-display: swap; src: url("../fonts/armenian.woff2") format("woff2");
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17; }

:root {
  --bg: #140832;
  --bg-2: #1f0d4a;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f4efff;
  --muted: #c4b5fd;
  --purple: #8b5cf6;
  --purple-2: #a855f7;
  --gold: #ffc233;
  --gold-2: #ff9f1a;
  --radius: 20px;
  --system: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: var(--system);
  --font-head: "Fredoka", var(--system);
  --lh: 1.65;
  --lh-head: 1.2;
  --shadow: 0 20px 50px rgba(5, 0, 20, 0.45);
}
/* per-script fonts (the lang attribute on <html> picks the stack) */
:root:lang(ru) { --font-head: "Nunito", var(--system); }
:root:lang(fa), :root:lang(ar) { --font-body: "Vazirmatn", Tahoma, sans-serif; --font-head: var(--font-body); --lh: 1.9; --lh-head: 1.5; }
:root:lang(ur) { --font-body: "Noto Nastaliq Urdu", "Vazirmatn", Tahoma, sans-serif; --font-head: var(--font-body); --lh: 2.35; --lh-head: 1.9; }
:root:lang(hi) { --font-body: "Noto Sans Devanagari", var(--system); --font-head: var(--font-body); --lh: 1.8; --lh-head: 1.45; }
:root:lang(hy) { --font-body: "Noto Sans Armenian", var(--system); --font-head: var(--font-body); }
:root:lang(zh) { --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", var(--system); --font-head: var(--font-body); --lh: 1.8; --lh-head: 1.4; }
:root:lang(ja) { --font-body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", var(--system); --font-head: var(--font-body); --lh: 1.8; --lh-head: 1.4; }
:root:lang(ko) { --font-body: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", var(--system); --font-head: var(--font-body); --lh: 1.8; --lh-head: 1.4; word-break: keep-all; }
.latin { font-family: "Fredoka", var(--system); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: var(--lh);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(168, 85, 247, 0.35), transparent 60%),
    radial-gradient(700px 500px at -10% 20%, rgba(124, 58, 237, 0.3), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
  background-color: var(--bg);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: var(--lh-head); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h1 b, h2 b { color: var(--gold); font-weight: inherit; }
:root:lang(fa) h1, :root:lang(fa) h2, :root:lang(ar) h1, :root:lang(ar) h2 { font-weight: 800; }
:root:lang(ur) h1 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); }
[id] { scroll-margin-top: 96px; }
@media (max-width: 760px) { [id] { scroll-margin-top: 130px; } }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--gold); color: #1b0b3a; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 8, 50, 0.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; color: var(--text); font-family: "Fredoka", var(--font-body); font-weight: 700; font-size: 1.3rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img, .brand svg { width: 38px; height: 38px; border-radius: 10px; margin-inline-end: 10px; }
.brand .gold { color: var(--gold); margin-inline-start: 0.28em; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--text); padding: 8px 12px; border-radius: 10px; font-size: 0.97rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); text-decoration: none; }

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; gap: 6px 10px; padding-block: 10px; }
  .nav { order: 3; width: 100%; margin-inline-start: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 10px; font-size: 0.92rem; background: var(--surface); }
  }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 14px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #2a1300; box-shadow: 0 10px 24px rgba(255, 159, 26, 0.3); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.play-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 12px;
  padding: 9px 20px 9px 14px; min-width: 190px; transition: transform .15s ease;
}
[dir="rtl"] .play-badge { padding: 9px 14px 9px 20px; }
.play-badge:hover { text-decoration: none; transform: translateY(-2px); }
.play-badge svg { width: 30px; height: 30px; flex: none; }
.play-badge small { display: block; font-size: 0.7rem; letter-spacing: 0.5px; text-transform: uppercase; line-height: 1.2; }
[dir="rtl"] .play-badge small { text-transform: none; letter-spacing: 0; font-size: 0.78rem; }
.play-badge strong { display: block; font-size: 1.3rem; line-height: 1.15; font-family: var(--font-body); font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 100px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 194, 51, 0.12); color: var(--gold); border: 1px solid rgba(255, 194, 51, 0.3);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 18px;
}
[dir="rtl"] .eyebrow { text-transform: none; letter-spacing: 0; }
.hero h1 .gold, h2 .gold { color: var(--gold); }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art .board {
  width: min(420px, 100%); border-radius: 28px; box-shadow: var(--shadow), 0 0 80px rgba(168, 85, 247, 0.35);
  transform: rotate(-5deg);
}
.hero-art .float { position: absolute; width: 74px; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45)); animation: bob 4s ease-in-out infinite; }
.hero-art .f1 { top: -6%; inset-inline-end: 6%; }
.hero-art .f2 { bottom: -4%; inset-inline-start: 4%; animation-delay: -1.5s; }
.hero-art .f3 { bottom: 10%; inset-inline-end: -2%; width: 64px; animation-delay: -2.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .float { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
  .hero-art { order: -1; max-width: 290px; margin-inline: auto; }
  .hero-art .float { width: 58px; }
  .hero-art .f3 { width: 50px; }
  .hero-grid.text-first .hero-art { order: 0; }
}

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: rgba(255, 255, 255, 0.025); border-block: 1px solid rgba(255, 255, 255, 0.06); }
.section-head { max-width: 700px; margin-bottom: 36px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 8px 24px rgba(5, 0, 20, 0.25);
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(255, 194, 51, 0.2), rgba(168, 85, 247, 0.25)); border: 1px solid var(--border);
}
.icon svg { width: 28px; height: 28px; color: var(--gold); }
.icon img { width: 40px; height: 40px; object-fit: contain; }

/* game cards */
.game-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease; }
.game-card:hover { transform: translateY(-4px); border-color: rgba(255, 194, 51, 0.5); }
.game-card .cover { aspect-ratio: 1024 / 500; width: 100%; object-fit: cover; background: #2a1166; }
.game-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tag { font-size: 0.78rem; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.game-card .btn { margin-top: auto; align-self: flex-start; }
.coming-soon .cover-soon {
  aspect-ratio: 1024 / 500; display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 14px, transparent 14px 28px), linear-gradient(135deg, #2b1170, #4c1d95);
  font-family: var(--font-head); font-size: 3.4rem; color: rgba(255, 255, 255, 0.35);
}

/* features with art */
.feature-btn { width: 100%; max-width: 220px; margin-bottom: 14px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-inline-start: 30px; }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.45em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1300' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow); width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery figcaption { text-align: center; margin-top: 10px; font-weight: 600; color: var(--muted); }
.phone {
  width: min(300px, 80vw); margin-inline: auto; padding: 12px; border-radius: 38px;
  background: linear-gradient(160deg, #3b2a6b, #120726); border: 1px solid rgba(255,255,255,0.18); box-shadow: var(--shadow);
}
.phone img { border-radius: 28px; width: 100%; }
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { margin: 0; flex: none; width: 44px; height: 44px; }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* game pages */
.hero-logo { width: min(330px, 80%); margin-bottom: 8px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4)); }
@media (max-width: 860px) { .hero-logo { margin-inline: auto; } }
.mode-list { display: grid; gap: 16px; margin-top: 8px; }
.mode { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; }
.mode img { width: 150px; }
.mode h3 { margin-bottom: 4px; }
.mode p { margin: 0; color: var(--muted); }
@media (max-width: 480px) { .mode { grid-template-columns: 110px 1fr; gap: 12px; } .mode img { width: 110px; } }
.highlight {
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center; margin-top: 28px;
  padding: 18px 24px; border-radius: var(--radius); border: 1px solid rgba(255, 194, 51, 0.35);
  background: linear-gradient(90deg, rgba(255, 194, 51, 0.1), rgba(168, 85, 247, 0.12));
}
.highlight .check-list { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.cta { text-align: center; }
.cta .btn-row { justify-content: center; }
.cta img { width: 96px; margin: 0 auto 16px; border-radius: 22px; box-shadow: var(--shadow); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details[open] summary { margin-bottom: 8px; }
.faq details p:last-child { margin-bottom: 0; }

/* ---------- legal pages ---------- */
.page-hero { padding: 56px 0 18px; }
.page-hero p { color: var(--muted); }
.legal { max-width: 820px; padding-bottom: 72px; overflow-wrap: break-word; }
.legal code { overflow-wrap: anywhere; word-break: break-all; }
article.legal { overflow-x: clip; }
.legal h2 { font-size: 1.45rem; margin-top: 2.2em; padding-top: 0.4em; scroll-margin-top: 90px; }
.legal h3 { margin-top: 1.4em; }
.legal ul { padding-inline-start: 1.3em; }
.legal li { margin-bottom: 0.4em; }
.legal p, .legal li { color: #e6dcff; }
.legal .summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.legal .summary h2 { margin-top: 0; padding-top: 0; font-size: 1.2rem; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 24px; }
.toc ol { margin: 8px 0 0; padding-inline-start: 1.3em; columns: 2; column-gap: 32px; }
@media (max-width: 620px) { .toc ol { columns: 1; } }
.meta { color: var(--muted); font-size: 0.95rem; }
table.data { width: 100%; min-width: 560px; border-collapse: collapse; margin: 12px 0 20px; font-size: 0.95rem; }
table.data th, table.data td { border: 1px solid var(--border); padding: 10px 12px; text-align: start; vertical-align: top; }
table.data th { background: var(--surface-2); }
.table-wrap { overflow-x: auto; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 28px; background: rgba(10, 3, 28, 0.55); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h3 { font-size: 1rem; color: var(--gold); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--text); }
.site-footer p { color: var(--muted); }
.site-footer .brand + p { margin-top: 12px; }
.copyright { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.06); color: var(--muted); font-size: 0.88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound .big { font-family: "Fredoka", var(--font-body); font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--gold); margin: 0; }
.notfound img { width: 90px; margin: 0 auto 10px; }

/* ---------- language menu (works without JavaScript) ---------- */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 7px 12px; border-radius: 999px; font-size: 0.92rem; white-space: nowrap; line-height: 1.4;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: var(--surface-2); }
.lang-menu summary svg { width: 16px; height: 16px; flex: none; }
.lang-menu summary .chev { width: 12px; height: 12px; opacity: 0.7; }
.lang-menu[open] summary { background: var(--surface-2); }
.lang-menu ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; margin: 0; padding: 8px;
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 2px;
  background: #1d0c45; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
  max-height: min(70vh, 520px); overflow-y: auto;
}
.lang-menu li a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text); font-family: var(--system); font-size: 0.95rem; line-height: 1.5; }
.lang-menu li a:hover { background: var(--surface-2); text-decoration: none; }
.lang-menu li a[aria-current="true"] { background: rgba(255, 194, 51, 0.16); color: var(--gold); }
.lang-menu a:lang(fa), .lang-menu a:lang(ar), .lang-menu a:lang(ur) { font-family: "Vazirmatn", Tahoma, sans-serif; }
.lang-menu a:lang(hi) { font-family: "Noto Sans Devanagari", var(--system); }
.lang-menu a:lang(hy) { font-family: "Noto Sans Armenian", var(--system); }
@media (max-width: 760px) { .lang-menu { margin-inline-start: auto; } .lang-menu ul { grid-template-columns: repeat(2, minmax(120px, 1fr)); } }

/* ---------- extra legal / help components ---------- */
.prevail { background: rgba(255, 194, 51, 0.08); border: 1px solid rgba(255, 194, 51, 0.3); border-radius: 12px; padding: 10px 14px; font-size: 0.95rem; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.steps li { counter-increment: step; position: relative; padding: 12px 16px; padding-inline-start: 56px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #2a1300; line-height: 1;
}
.legal-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.legal-links a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 0.93rem; }
.legal-links a:hover { background: var(--surface-2); text-decoration: none; }
.legal-links a[aria-current="page"] { border-color: var(--gold); color: var(--gold); }
