/* vex.games studio stylesheet (blue / white / yellow). Game sites keep the shared site.css. */

/* ---------- 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 {
  --blue-900: #061547;
  --blue-800: #0a2160;
  --blue-700: #0f2f8f;
  --blue-600: #1d4ed8;
  --blue-500: #2f6bff;
  --blue-50: #eef3ff;
  --blue-100: #dde7ff;
  --yellow: #ffc21a;
  --yellow-2: #ffb000;
  --yellow-soft: #fff4cc;
  --ink: #0d1a3f;
  --muted: #475577;
  --line: #dfe6f5;
  --white: #fff;
  --radius: 22px;
  --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-sm: 0 2px 6px rgba(10, 33, 96, 0.06), 0 8px 24px rgba(10, 33, 96, 0.07);
  --shadow: 0 24px 60px rgba(10, 33, 96, 0.16);
}
: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; }

*, *::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(--ink); background: var(--white); min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); 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; color: var(--blue-900); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; }
h1 b, h2 b { color: var(--blue-600); font-weight: inherit; }
:root:lang(fa) h1, :root:lang(fa) h2, :root:lang(ar) h1, :root:lang(ar) h2 { font-weight: 800; letter-spacing: 0; }
:root:lang(ur) h1 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); }
p { margin: 0 0 1em; }
[id] { scroll-margin-top: 90px; }
@media (max-width: 960px) { [id] { scroll-margin-top: 124px; } }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--yellow); color: var(--blue-900); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 8px; }
.muted { color: var(--muted); }
bdi[dir="ltr"] { direction: ltr; unicode-bidi: isolate; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(10, 33, 96, 0.08); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: flex; align-items: center; color: var(--blue-900); font-family: "Fredoka", var(--font-body); font-weight: 700; font-size: 1.32rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; margin-inline-end: 10px; box-shadow: 0 6px 14px rgba(15, 47, 143, 0.25); }
.brand .gold { color: var(--blue-600); margin-inline-start: 0.28em; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink); padding: 8px 14px; border-radius: 999px; font-size: 0.97rem; font-weight: 600; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--blue-50); color: var(--blue-700); text-decoration: none; }
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; gap: 6px 10px; padding-block: 10px; min-height: 0; }
  .nav { order: 3; width: 100%; margin-inline-start: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav { gap: 6px 4px; flex-wrap: wrap; justify-content: center; overflow: visible; }
  .nav a { padding: 6px 8px; font-size: 0.88rem; background: var(--blue-50); }
}

/* ---------- language menu ---------- */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--white); color: var(--ink); padding: 7px 12px; border-radius: 999px; font-size: 0.92rem; white-space: nowrap; line-height: 1.4; font-weight: 600; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--blue-50); }
.lang-menu summary svg { width: 16px; height: 16px; flex: none; color: var(--blue-600); }
.lang-menu summary .chev { width: 12px; height: 12px; opacity: 0.7; }
.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: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); max-height: min(70vh, 520px); overflow-y: auto; }
.lang-menu li a { display: block; padding: 7px 10px; border-radius: 9px; color: var(--ink); font-family: var(--system); font-size: 0.95rem; line-height: 1.5; }
.lang-menu li a:hover { background: var(--blue-50); text-decoration: none; }
.lang-menu li a[aria-current="true"] { background: var(--yellow-soft); color: var(--blue-900); font-weight: 700; }
.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: 960px) { .lang-menu { margin-inline-start: auto; } .lang-menu ul { grid-template-columns: repeat(2, minmax(120px, 1fr)); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 14px; font-weight: 700; font-size: 1rem; border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; line-height: 1.3; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; border-radius: 16px; }
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn-yellow, .btn-gold { background: linear-gradient(180deg, #ffd23f, var(--yellow-2)); color: var(--blue-900); box-shadow: 0 10px 24px rgba(255, 176, 0, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.08); }
.btn-yellow:hover, .btn-gold:hover { box-shadow: 0 14px 30px rgba(255, 176, 0, 0.45); }
.btn-blue { background: linear-gradient(180deg, var(--blue-500), var(--blue-600)); color: var(--white); box-shadow: 0 10px 24px rgba(29, 78, 216, 0.3); }
.btn-glass { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: rgba(255, 255, 255, 0.35); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.18); }
.btn-ghost { background: var(--white); color: var(--blue-700); border-color: var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.play-badge { display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 12px; padding: 8px 20px 8px 14px; min-width: 180px; transition: transform .18s ease; }
[dir="rtl"] .play-badge { padding: 8px 14px 8px 20px; }
.play-badge:hover { text-decoration: none; transform: translateY(-2px); }
.play-badge svg { width: 28px; height: 28px; flex: none; }
.play-badge small { display: block; font-size: 0.68rem; 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.25rem; line-height: 1.15; font-family: var(--system); font-weight: 600; }

/* ---------- eyebrow ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow-2); box-shadow: 0 0 0 3px rgba(255, 194, 26, 0.3); }
[dir="rtl"] .eyebrow, :root:lang(zh) .eyebrow, :root:lang(ja) .eyebrow, :root:lang(ko) .eyebrow { text-transform: none; letter-spacing: 0; }

/* ---------- hero ---------- */
.s-hero { position: relative; overflow: hidden; color: #e8eeff; padding: clamp(56px, 8vw, 104px) 0 clamp(96px, 11vw, 150px);
  background: radial-gradient(900px 520px at 80% 10%, rgba(47, 107, 255, 0.55), transparent 62%), radial-gradient(700px 480px at 5% 100%, rgba(29, 78, 216, 0.5), transparent 60%), linear-gradient(160deg, var(--blue-700), var(--blue-800) 55%, var(--blue-900)); }
.s-hero h1 { color: var(--white); }
.s-hero h1 b { color: var(--yellow); }
.s-hero .eyebrow { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: rgba(255, 255, 255, 0.22); }
.s-hero .lead { font-size: 1.17rem; color: #d4defc; max-width: 580px; margin-bottom: 30px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.95rem; color: #e8eeff; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg, .ticks svg { width: 20px; height: 20px; flex: none; padding: 3px; border-radius: 50%; background: var(--yellow); fill: none; stroke: var(--blue-900); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-deco .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.hero-deco .b1 { width: 380px; height: 380px; background: #ffc21a; opacity: 0.16; top: -140px; inset-inline-start: 38%; }
.hero-deco .b2 { width: 420px; height: 420px; background: #2f6bff; bottom: -200px; inset-inline-end: -120px; }
.hero-deco .grid-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.2px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero-deco .ring { position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.1); }
.hero-deco .rg1 { width: 640px; height: 640px; top: -260px; inset-inline-end: -220px; }
.hero-deco .rg2 { width: 220px; height: 220px; bottom: 60px; inset-inline-start: -80px; border-color: rgba(255, 194, 26, 0.25); }
.hero-deco .rg3 { width: 560px; height: 560px; top: -280px; inset-inline-start: -200px; }
.hero-deco .rg4 { width: 420px; height: 420px; bottom: -220px; inset-inline-end: -120px; border-color: rgba(255, 194, 26, 0.3); }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-art { width: min(560px, 100%); height: auto; overflow: visible; }
.hero-art .ha-board, .hero-art .ha-cards, .hero-art .ha-die1, .hero-art .ha-die2, .hero-art .ha-bits { transform-box: fill-box; transform-origin: center; }
.hero-art .ha-die1 { animation: bob 5s ease-in-out infinite; }
.hero-art .ha-die2 { animation: bob 6s ease-in-out -2s infinite; }
.hero-art .ha-cards { animation: drift 7s ease-in-out -1s infinite; }
.hero-art .ha-bits { animation: drift 9s ease-in-out -3s infinite; }
.hero-art .ha-orbit { transform-box: fill-box; transform-origin: center; animation: spin 60s linear infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: clamp(40px, 6vw, 90px); }
.hero-wave path { fill: var(--white); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .s-hero .lead { margin-inline: auto; }
  .s-hero .btn-row, .hero-points { justify-content: center; }
  .hero-art { width: min(440px, 100%); }
}
@media (max-width: 480px) { .hero-art { width: 92%; } .s-hero .btn-lg { width: 100%; } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(56px, 8vw, 100px) 0; }
.section-tint { background: linear-gradient(180deg, #f5f8ff, #eef3ff); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.about-copy p { color: var(--muted); font-size: 1.06rem; }
.about-copy .brand-line { display: inline-block; margin: 6px 0 0; padding: 10px 16px; border-radius: 12px; background: var(--yellow-soft); color: var(--blue-900); font-weight: 600; font-size: 0.96rem; border-inline-start: 4px solid var(--yellow-2); }
.mv { display: grid; gap: 18px; }
.mv-card { position: relative; padding: 26px 26px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mv-card p { color: var(--muted); margin: 0; }
.mv-card h3 { margin-bottom: 6px; font-size: 1.25rem; }
.mv-vision { background: linear-gradient(150deg, var(--blue-700), var(--blue-800)); border-color: transparent; color: #d4defc; }
.mv-vision h3 { color: var(--white); }
.mv-vision p { color: #d4defc; }
.mv-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--blue-50); margin-bottom: 14px; }
.mv-vision .mv-icon { background: rgba(255, 255, 255, 0.1); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* duotone icons */
.duo { width: 34px; height: 34px; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.duo .s { fill: var(--blue-100); stroke: none; }
.duo .l { stroke: var(--blue-700); fill: none; }
.duo .a { fill: var(--yellow); stroke: none; }
.duo .al { stroke: var(--yellow-2); fill: none; stroke-width: 3.4; }
.duo .d { fill: var(--blue-700); stroke: none; }
.mv-vision .duo .s, .section-blue .duo .s, .svc-cta .duo .s { fill: rgba(255, 255, 255, 0.16); }
.mv-vision .duo .l, .section-blue .duo .l, .svc-cta .duo .l { stroke: var(--white); }
.section-blue .duo .d { fill: var(--white); }
.duo-wrap { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: var(--blue-50); margin-bottom: 18px; transition: transform .25s ease; }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc { position: relative; padding: 26px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.svc::after { content: ""; position: absolute; inset-inline: 24px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--blue-500), var(--yellow)); opacity: 0; transition: opacity .25s ease; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.svc:hover::after { opacity: 1; }
.svc:hover .duo-wrap { transform: scale(1.06) rotate(-3deg); }
.svc h3 { font-size: 1.1rem; margin-bottom: 8px; }
.svc p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.svc-cta { background: linear-gradient(150deg, var(--blue-600), var(--blue-800)); border-color: transparent; display: flex; flex-direction: column; align-items: flex-start; }
.svc-cta h3 { color: var(--white); }
.svc-cta p { color: #d4defc; margin-bottom: 18px; }
.svc-cta .duo-wrap { background: rgba(255, 255, 255, 0.12); }
.svc-cta .btn { margin-top: auto; }
@media (max-width: 1080px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* values (blue band) */
.section-blue { overflow: hidden; color: #d4defc; background: radial-gradient(700px 400px at 90% 0%, rgba(47, 107, 255, 0.5), transparent 60%), linear-gradient(160deg, var(--blue-800), var(--blue-900)); }
.section-blue .container { position: relative; }
.section-blue h2 { color: var(--white); }
.section-blue h2 b { color: var(--yellow); }
.section-blue .eyebrow { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: rgba(255, 255, 255, 0.22); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { padding: 28px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); transition: background-color .25s ease, transform .25s ease; }
.value:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-4px); }
.value h3 { color: var(--white); margin-bottom: 8px; }
.value p { margin: 0; font-size: 0.97rem; color: #d4defc; }
.value .duo-wrap { background: rgba(255, 255, 255, 0.1); }
@media (max-width: 1000px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }

/* process */
.steps-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps-line::before { content: ""; position: absolute; top: 28px; inset-inline: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--blue-100) 0 10px, transparent 10px 18px); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step .num { position: relative; display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue-100); color: var(--blue-700); font-family: "Fredoka", var(--system); font-size: 1.4rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.step:nth-child(4n) .num { background: var(--yellow); border-color: var(--yellow); color: var(--blue-900); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: 0.97rem; }
@media (max-width: 900px) {
  .steps-line { grid-template-columns: 1fr 1fr; gap: 32px 22px; }
  .steps-line::before { display: none; }
}
@media (max-width: 520px) {
  .steps-line { grid-template-columns: 1fr; gap: 14px; }
  .step { display: grid; grid-template-columns: 58px 1fr; column-gap: 16px; text-align: start; padding: 0; }
  .step .num { grid-row: span 2; margin: 0; }
}

/* games */
.game-feature { display: grid; grid-template-columns: 1.1fr 0.9fr; border-radius: 28px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.gf-media { display: block; background: var(--blue-800); }
.gf-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1024 / 500; transition: transform .5s ease; }
.game-feature:hover .gf-media img { transform: scale(1.03); }
.gf-body { padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 4px; }
.gf-title { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.gf-title img { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.gf-title h3 { font-size: 1.6rem; margin: 0; }
.gf-label { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--blue-900); background: var(--yellow-soft); border-radius: 999px; padding: 2px 10px; margin-bottom: 4px; }
.gf-body > p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { font-size: 0.8rem; font-weight: 600; padding: 3px 11px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-weight: 600; font-size: 0.95rem; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.gf-links { margin: 18px 0 0; font-size: 0.92rem; display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); }
@media (max-width: 900px) { .game-feature { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .ticks { grid-template-columns: 1fr; } }

.gf-role { margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: var(--blue-50); color: var(--ink) !important; font-size: 0.95rem; }
.gf-role strong { color: var(--blue-700); }
.projects { display: grid; gap: 24px; }
.teaser { display: flex; align-items: center; gap: 24px; padding: clamp(22px, 3vw, 32px); border-radius: 28px; background: rgba(255, 255, 255, 0.7); border: 2px dashed var(--blue-100); }
.teaser h3 { font-size: 1.35rem; margin: 6px 0 6px; }
.teaser p { margin: 0; color: var(--muted); max-width: 760px; }
.teaser-art { flex: none; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 26px; background: linear-gradient(150deg, var(--blue-600), var(--blue-800)); box-shadow: var(--shadow-sm); }
.teaser-art .duo { width: 52px; height: 52px; }
.teaser-art .duo .s { fill: rgba(255, 255, 255, 0.16); }
.teaser-art .duo .l { stroke: var(--white); }
.teaser-art .duo .d { fill: var(--white); }
.gf-label.soon { background: var(--blue-100); color: var(--blue-700); }
@media (max-width: 560px) { .teaser { flex-direction: column; align-items: flex-start; } }

/* about: facts */
.facts dl { margin: 6px 0 0; display: grid; gap: 0; }
.facts dl > div { display: grid; grid-template-columns: minmax(110px, 0.8fr) 1.2fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts dl > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.facts dd { margin: 0; color: var(--blue-900); font-weight: 600; font-size: 0.95rem; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card { position: relative; display: flex; flex-direction: column; padding: 28px 26px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.team-card::before { content: ""; position: absolute; inset-inline-start: 0; top: 26px; width: 4px; height: 44px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, var(--yellow), var(--blue-500)); }
[dir="rtl"] .team-card::before { border-radius: 4px 0 0 4px; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card:hover .duo-wrap { transform: scale(1.06) rotate(-3deg); }
.team-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.team-card p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.team-card .tags { margin: 6px 0 0; }
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .team-grid { grid-template-columns: 1fr; } }

/* technology */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1080px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tech-grid { grid-template-columns: 1fr; } }
.stack { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-top: 34px; }
.stack strong { color: var(--blue-900); }
.stack ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.stack li { padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-family: var(--system); font-weight: 700; font-size: 0.9rem; color: var(--blue-700); }

/* careers & partnerships */
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.join { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(26px, 3.5vw, 40px); border-radius: 28px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.join h3 { font-size: 1.45rem; }
.join p { color: var(--muted); }
.join > * { position: relative; }
.join .hero-deco { position: absolute; }
.join .btn-row { margin-top: auto; padding-top: 8px; }
.join .btn span { overflow-wrap: anywhere; }
.join-careers { color: #d4defc; border-color: transparent; background: radial-gradient(500px 300px at 100% 0%, rgba(255, 194, 26, 0.22), transparent 60%), linear-gradient(140deg, var(--blue-600), var(--blue-800)); box-shadow: var(--shadow); }
.join-careers h3 { color: var(--white); }
.join-careers p { color: #dbe4ff; }
.join-careers p a { color: var(--yellow); font-weight: 700; }
.join-careers .duo-wrap { background: rgba(255, 255, 255, 0.12); }
.join-careers .duo .s { fill: rgba(255, 255, 255, 0.16); }
.join-careers .duo .l { stroke: var(--white); }
.ticks.one { grid-template-columns: 1fr; font-weight: 600; color: var(--ink); }
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; } }

/* partnership band */
.biz { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(30px, 5vw, 56px); border-radius: 30px; color: #d4defc; background: radial-gradient(500px 300px at 100% 0%, rgba(255, 194, 26, 0.22), transparent 60%), linear-gradient(140deg, var(--blue-600), var(--blue-800)); box-shadow: var(--shadow); }
.biz .hero-deco .grid-dots { opacity: 0.6; }
.biz-copy { position: relative; max-width: 640px; }
.biz-copy h2 { color: var(--white); }
.biz-copy h2 b { color: var(--yellow); }
.biz-copy p { margin: 0; color: #dbe4ff; }
.biz .eyebrow { background: rgba(255, 255, 255, 0.12); color: var(--white); border-color: rgba(255, 255, 255, 0.25); }
.biz .btn-row { position: relative; }
.biz .btn svg { width: 20px; height: 20px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.c-card { padding: 26px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow-wrap: anywhere; }
.c-card strong { display: block; font-size: 1.05rem; color: var(--blue-900); margin-bottom: 4px; }
.c-card a { font-weight: 600; }
.icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; background: var(--blue-50); color: var(--blue-600); }
.icon svg { width: 24px; height: 24px; }
.c-card:nth-child(2) .icon { background: var(--yellow-soft); color: #8a5a00; }
.c-card:nth-child(3) .icon, .contact-list li:nth-child(3) .icon { background: #e3f4fc; color: #1a8bc4; }
@media (max-width: 1100px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .contact-grid { grid-template-columns: 1fr; } }

/* floating Telegram support button */
.tg-fab { --tg: #2aabee; --tg-2: #229ed9; position: fixed; z-index: 60; bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px)); right: max(20px, calc(env(safe-area-inset-right) + 12px));
  display: flex; align-items: center; gap: 12px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
[dir="rtl"] .tg-fab { right: auto; left: max(20px, calc(env(safe-area-inset-left) + 12px)); }
.tg-circle { flex: none; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(145deg, var(--tg), var(--tg-2));
  border: 3px solid var(--white); box-shadow: 0 10px 28px rgba(34, 158, 217, 0.42), 0 3px 8px rgba(10, 33, 96, 0.18); transition: transform .2s ease, box-shadow .2s ease; }
.tg-circle svg { width: 30px; height: 30px; margin-inline-start: -3px; }
[dir="rtl"] .tg-circle svg { margin-inline-start: 0; margin-inline-end: -3px; }
.tg-label { --tg-open: min(340px, calc(100vw - 112px)); display: block; max-width: 0; padding: 10px 0; opacity: 0; transform: scale(0.9); border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-600), #4b5bff 55%, #6d4bff); color: var(--white); font-weight: 700; font-size: 0.93rem; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 8px 22px rgba(29, 78, 216, 0.32); pointer-events: none;
  transform-origin: right center; transition: opacity .25s ease, transform .25s ease, max-width .35s ease, padding .35s ease;
  animation: tg-peek 4.6s ease .5s 1 both; }
[dir="rtl"] .tg-label { transform-origin: left center; }
.tg-fab:hover .tg-label, .tg-fab:focus-visible .tg-label { max-width: var(--tg-open); padding-inline: 18px; opacity: 1; transform: none; animation: none; }
.tg-fab:hover .tg-circle, .tg-fab:focus-visible .tg-circle { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 34px rgba(34, 158, 217, 0.5), 0 4px 10px rgba(10, 33, 96, 0.2); }
.tg-fab:active .tg-circle { transform: scale(0.94); transition-duration: .08s; }
.tg-fab:focus-visible { outline: none; }
.tg-fab:focus-visible .tg-circle { outline: 3px solid var(--yellow); outline-offset: 3px; }
@media (max-width: 720px) {
  .tg-circle { width: 56px; height: 56px; }
  .tg-circle svg { width: 27px; height: 27px; }
  .tg-label { padding-block: 9px; font-size: 0.88rem; }
}
@keyframes tg-peek {
  0% { max-width: 0; padding-inline: 0; opacity: 0; transform: scale(0.9); }
  8%, 86% { max-width: var(--tg-open); padding-inline: 18px; opacity: 1; transform: none; }
  100% { max-width: 0; padding-inline: 0; opacity: 0; transform: scale(0.9); }
}
@media print { .tg-fab { display: none; } }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 680px) { .grid-2 { grid-template-columns: 1fr; } }

/* legal entities */
.entity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 1000px; margin-inline: auto; }
.entity { position: relative; padding: 28px 28px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; overflow-wrap: anywhere; }
.entity::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--blue-600), var(--blue-500) 70%, var(--yellow) 70%); }
[dir="rtl"] .entity::before { background: linear-gradient(-90deg, var(--blue-600), var(--blue-500) 70%, var(--yellow) 70%); }
.entity-top { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.entity-cc { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-700); font-family: "Fredoka", var(--system); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.5px; }
.entity:nth-child(2) .entity-cc { background: var(--yellow-soft); border-color: #ffe08a; color: #8a5a00; }
.entity-country { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
[dir="rtl"] .entity-country, :root:lang(zh) .entity-country, :root:lang(ja) .entity-country, :root:lang(ko) .entity-country { text-transform: none; letter-spacing: 0; }
.entity h3 { margin: 2px 0 0; font-size: 1.3rem; font-family: "Fredoka", var(--system); }
.entity-alt { margin: 2px 0 0; color: var(--blue-700); font-weight: 600; font-family: "Noto Sans Armenian", var(--system); }
.entity dl { margin: 0; display: grid; }
.entity dl > div { display: grid; grid-template-columns: minmax(120px, 0.85fr) 1.15fr; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.entity dt { color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.entity dd { margin: 0; color: var(--blue-900); font-weight: 600; font-size: 0.95rem; }
@media (max-width: 860px) { .entity-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .entity { padding: 24px 20px 16px; } .entity dl > div { grid-template-columns: 1fr; gap: 2px; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); overflow-wrap: anywhere; }
.card-h { font-size: 1.35rem; }
.card .hint { margin: 18px 0 0; color: var(--muted); font-size: 0.95rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.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; color: var(--blue-900); }

/* ---------- inner pages (contact, privacy, terms) ---------- */
.page-hero { position: relative; padding: 64px 0 40px; background: linear-gradient(180deg, var(--blue-50), var(--white)); border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); }
.page-hero .legal { padding-bottom: 0; }
.legal { max-width: 820px; padding-bottom: 80px; 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.1em; padding-top: 0.4em; }
.legal h3 { margin-top: 1.4em; }
.legal ul { padding-inline-start: 1.3em; }
.legal li { margin-bottom: 0.4em; }
.legal p, .legal li { color: #2b3858; }
.legal .summary, .toc { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.legal .summary h2 { margin-top: 0; padding-top: 0; font-size: 1.2rem; }
.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; }
.prevail { background: var(--yellow-soft); border: 1px solid #ffe08a; border-radius: 12px; padding: 10px 14px; font-size: 0.95rem; }
.check-list { list-style: none; padding: 0 !important; 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.42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061547' 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; }
.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(--blue-50); border: 1px solid var(--blue-100); 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: var(--blue-600); color: var(--white); line-height: 1; }
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(--line); padding: 10px 12px; text-align: start; vertical-align: top; }
table.data th { background: var(--blue-50); }
.table-wrap { overflow-x: auto; }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.legal-links a { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-size: 0.93rem; }
.legal-links a[aria-current="page"] { border-color: var(--blue-600); color: var(--blue-700); }

/* ---------- footer ---------- */
.site-footer { padding: 56px 0 calc(112px + env(safe-area-inset-bottom)); background: var(--blue-900); color: #c5d1f5; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer .brand { color: var(--white); }
.site-footer .brand .gold { color: var(--yellow); }
.site-footer h3 { font-size: 0.95rem; color: var(--yellow); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.6px; }
[dir="rtl"] .site-footer h3 { text-transform: none; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #e6ecff; }
.site-footer a:hover { color: var(--yellow); }
.site-footer p { color: #b6c3ea; }
.site-footer .brand + p { margin-top: 14px; max-width: 340px; }
.copyright { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.88rem; }
@media (max-width: 900px) { .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(--blue-600); margin: 0; text-shadow: 6px 6px 0 var(--yellow); }
.notfound .lang-menu ul { border: 0; background: transparent; }

/* ---------- scroll reveal (only when JavaScript runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .hero-deco, .hero-visual, .hero-wave { display: none; } .s-hero, .section-blue, .biz, .site-footer { background: #fff; color: #000; } }
