/* =========================================================
   Tickcess — Game Studio
   Mobile-first. Tokens live in :root.
   ========================================================= */

@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Armenian glyphs only — downloaded only on pages that contain Armenian text */
@font-face {
  font-family: "Noto Sans Armenian";
  src: url("fonts/noto-sans-armenian.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}

:root {
  /* Color */
  --bg: #0b0d17;
  --bg-raised: #10132a;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f5fb;
  --text-muted: #a3a8c3;          /* 8:1 on --bg */
  --accent: #e11d2e;              /* brand red (from logo) – button fill, 4.7:1 w/ white */
  --accent-hover: #f0283a;
  --accent-rgb: 255 59 63;
  --accent-bright-rgb: 255 77 90;
  --depth-rgb: 109 74 255;
  --accent-bright: #ff4d5a;       /* red for text/lines on dark – 6:1 */
  --accent-glow: rgb(var(--accent-rgb) / 0.35);
  --depth-glow: rgb(var(--depth-rgb) / 0.22); /* cool counter-glow for depth */
  --warm: #ffb547;                /* "Available Now" */
  --warm-ink: #241500;
  --focus: #7dd3fc;

  /* Type */
  --font-display: "Unbounded", "Noto Sans Armenian", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing (8px system) */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 40px; --s-6: 48px; --s-8: 64px; --s-9: 72px;
  --s-12: 96px; --s-15: 120px;

  /* Shape & motion */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1200px;
  --gutter: var(--s-2);
  --section-y: var(--s-9);
  --nav-h: 64px;
}

@media (min-width: 768px) {
  :root { --gutter: var(--s-4); --nav-h: 76px; }
}
@media (min-width: 1024px) {
  :root { --section-y: var(--s-15); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--s-2)); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.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;
}
.skip-link {
  position: fixed; top: var(--s-1); left: var(--s-1); z-index: 200;
  padding: var(--s-1) var(--s-2); background: var(--text); color: var(--bg);
  border-radius: var(--radius-sm); font-weight: 600;
  transform: translateY(-150%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.text-accent { color: var(--accent-bright); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-1);
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-2);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--accent-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1);
  min-height: 48px; padding: 0 var(--s-3);
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .25s;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px var(--accent-glow); }
.btn--primary:hover { transform: translateY(-2px); background: var(--accent-hover); box-shadow: 0 16px 36px -12px rgb(var(--accent-rgb) / .55); }
.btn--ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { transform: translateY(-2px); background: var(--surface-hover); border-color: rgba(255, 255, 255, .32); }
.btn--sm { min-height: 44px; padding: 0 var(--s-2); font-size: .875rem; }

.link-arrow { display: inline-flex; align-items: center; gap: var(--s-1); font-weight: 600; color: var(--text); }
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.nav.is-scrolled {
  background: rgba(11, 13, 23, .72);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: var(--s-3); }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 34px; height: 32px; }
.logo__word { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .14em; }
.nav__links { display: none; margin-left: auto; gap: var(--s-1); }
.nav__links a {
  padding: var(--s-1) var(--s-2); border-radius: 999px;
  font-size: .925rem; font-weight: 500; color: var(--text-muted);
  transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--text); background: var(--surface-hover); }
.nav__ecom {
  display: none;
  font-size: .85rem; font-weight: 600; color: var(--text-muted);
  padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 999px;
  transition: color .2s, border-color .2s;
}
.nav__ecom { gap: 6px; align-items: center; }
.nav__ecom:hover { color: var(--text); border-color: rgba(255, 255, 255, .35); }
.nav__toggle {
  margin-left: auto; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); cursor: pointer;
}

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__ecom { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* Mobile overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(11, 13, 23, .96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--s-8) var(--s-3);
  opacity: 0; transition: opacity .25s;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; gap: var(--s-1); }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700; padding: var(--s-1) 0;
  transform: translateY(12px); opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease), color .2s;
}
.mobile-menu.is-open nav a { transform: none; opacity: 1; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .04s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .08s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .12s; }
.mobile-menu nav a:hover { color: var(--accent-bright); }
.mobile-menu .mobile-menu__ecom { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; color: var(--text-muted); margin-top: var(--s-3); }
.mobile-menu__close {
  position: absolute; top: 10px; right: var(--gutter);
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--border); cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + var(--s-5)) 0 var(--s-9);
}
.hero__glow {
  position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 70% 45%, var(--accent-glow), transparent 70%),
    radial-gradient(35% 30% at 25% 70%, var(--depth-glow), transparent 70%),
    radial-gradient(30% 25% at 85% 85%, rgba(255, 181, 71, .08), transparent 70%);
  animation: glow-drift 18s ease-in-out infinite alternate paused;
}
@keyframes glow-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.02); }
}
.hero::after { /* subtle grain-free vignette to seat the hero */
  content: ""; position: absolute; inset: auto 0 0; height: 160px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero__inner { display: grid; gap: var(--s-6); align-items: center; }
.hero__copy { max-width: 620px; }
.hero__title { text-wrap: balance; font-size: clamp(2.5rem, 9vw, 4.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.hero__title .text-accent { display: block; }
.hero__sub { margin-top: var(--s-3); font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--text-muted); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }

.collage { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1 / 1; margin-inline: auto; }
.collage__item { position: absolute; transition: transform .6s var(--ease); }
.collage__item img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transform: rotate(var(--r, 0deg));
  animation: float 7s ease-in-out infinite paused;
  animation-delay: var(--delay, 0s);
}
.collage__item--main    { width: 64%; left: 18%; top: 12%; --r: -3deg; }
.collage__item--main img { border: 1px solid var(--border-strong); }
.collage__item--balloon { width: 38%; left: 0;   bottom: 2%; --r: 6deg; --delay: -2s; z-index: 2; }
.collage__item--card1   { width: 25%; right: 0;  top: 0;     --r: 10deg; --delay: -4s; }
.collage__item--card1 img, .collage__item--card2 img { border-radius: 8px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); }
.collage__item--card2   { width: 23%; right: 4%; bottom: 0;  --r: -8deg; --delay: -1s; z-index: 2; }
@keyframes float {
  0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); }
  50%      { transform: rotate(var(--r, 0deg)) translateY(-10px); }
}

.hero__scroll {
  position: absolute; left: 50%; bottom: var(--s-3); transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px;
  display: none;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--text-muted);
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: var(--s-8); }
  .collage { max-width: 540px; }
  .hero__scroll { display: block; }
}

/* ---------- Sections ---------- */
.section { position: relative; isolation: isolate; padding: var(--section-y) 0; overflow-x: clip; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(16, 19, 42, .55) 30%, rgba(16, 19, 42, .55) 70%, transparent); }
.section__glow { position: absolute; z-index: -1; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; pointer-events: none; }
.section__glow--left  { left: -20vw; top: 10%; background: radial-gradient(closest-side, rgb(var(--accent-rgb) / .12), transparent); }
.section__glow--right { right: -20vw; top: 0;  background: radial-gradient(closest-side, var(--depth-glow), transparent); }
.section__head { max-width: 640px; margin-bottom: var(--s-6); }
.section__title { font-size: clamp(2rem, 5vw, 3.25rem); }
.section__sub { margin-top: var(--s-2); color: var(--text-muted); font-size: 1.075rem; }

/* ---------- Badges & tags ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 5px 12px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .02em;
  background: var(--surface-hover); color: var(--text-muted); border: 1px solid var(--border);
}
.badge--live { background: var(--warm); color: var(--warm-ink); border-color: transparent; }
.badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.tags li {
  font-size: .8rem; font-weight: 500; color: var(--text-muted);
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border);
}

/* ---------- Game cards ---------- */
.game-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgb(var(--accent-bright-rgb) / .45);
  box-shadow: 0 0 0 1px rgb(var(--accent-bright-rgb) / .15), 0 30px 70px -30px rgb(var(--accent-rgb) / .45);
}
.game-card__media { display: block; overflow: hidden; aspect-ratio: 1 / 1; background: var(--bg-raised); }
.game-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.game-card:hover .game-card__media img { transform: scale(1.05); }
.game-card__body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-3); flex: 1; }
.game-card__title { font-size: 1.35rem; }
.game-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole featured card clickable */
.game-card__desc { color: var(--text-muted); }
.game-card .store-row, .game-card .link-arrow, .game-card .notify { position: relative; z-index: 1; }

.game-card--featured { margin-bottom: var(--s-3); }
.game-card--featured .game-card__title { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
.game-card--featured .game-card__desc { font-size: 1.075rem; max-width: 46ch; }
.game-card--featured .link-arrow { margin-top: var(--s-1); }

@media (min-width: 768px) {
  .game-card--featured { flex-direction: row; align-items: stretch; }
  .game-card--featured .game-card__media { flex: 0 0 46%; aspect-ratio: auto; min-height: 420px; }
  .game-card--featured .game-card__body { padding: var(--s-6); justify-content: center; gap: var(--s-3); }
}

.games-grid { display: grid; gap: var(--s-3); }
@media (min-width: 768px) { .games-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .games-grid { grid-template-columns: repeat(3, 1fr); } }
.games-grid .game-card__media { aspect-ratio: 16 / 10; }
.game-card__media--light { background: #fff; }

/* Coming soon */
.game-card__media--teaser { position: relative; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 50%, rgb(var(--depth-rgb) / .18), var(--bg-raised)); }
.game-card__media--teaser img { width: 34%; height: auto; object-fit: contain; filter: brightness(.4) contrast(1.2); }
.game-card--soon:hover .game-card__media--teaser img { transform: scale(1.05); }
.teaser-mark {
  position: absolute; font-family: var(--font-display); font-size: 3.5rem; font-weight: 800;
  color: rgba(255, 255, 255, .85); text-shadow: 0 0 30px rgb(var(--depth-rgb) / .8);
}

/* Official store badges (Apple SVG + Google PNG, same 40px visual height per guidelines) */
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-link { display: inline-block; border-radius: 8px; transition: transform .2s var(--ease), opacity .2s; }
.store-link img { height: 40px; width: auto; }
.store-link:hover { transform: translateY(-2px); }
.store-row--lg .store-link img { height: 48px; }

/* Notify form */
.notify { display: grid; gap: var(--s-1); margin-top: auto; }
.notify input {
  min-height: 48px; width: 100%; padding: 0 var(--s-2);
  background: rgba(0, 0, 0, .25); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
.notify input::placeholder { color: #7d82a0; }
.notify input:focus-visible { outline-offset: 1px; border-color: transparent; }
.notify input[aria-invalid="true"] { border-color: var(--accent-bright); }
.notify__msg { font-size: .875rem; color: var(--text-muted); min-height: 1.4em; }
.notify__msg.is-error { color: var(--accent-bright); }
@media (min-width: 480px) {
  .notify { grid-template-columns: 1fr auto; }
  .notify__msg { grid-column: 1 / -1; }
}

/* ---------- About ---------- */
.about { display: grid; gap: var(--s-6); align-items: start; }
.about__story p:not(.eyebrow) { color: var(--text-muted); font-size: 1.075rem; margin-top: var(--s-2); max-width: 50ch; }
.about__story .section__title { margin-bottom: var(--s-1); }
.pillars { display: grid; gap: var(--s-2); }
.pillar {
  padding: var(--s-3); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: border-color .3s, background-color .3s;
}
.pillar:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.pillar__icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s-2);
  border-radius: 12px; color: var(--accent-bright);
  background: rgb(var(--accent-rgb) / .1); border: 1px solid rgb(var(--accent-bright-rgb) / .22);
}
.pillar h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.pillar p { margin-top: 4px; color: var(--text-muted); font-size: .925rem; }
@media (min-width: 560px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .about { grid-template-columns: 1fr 1.1fr; gap: var(--s-12); } }

.stats {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--s-8);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--border); gap: 1px;
}
.stat { background: var(--bg); padding: var(--s-3); display: flex; flex-direction: column-reverse; gap: 4px; }
.stat dd { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.65rem); line-height: 1.15; }
.stat dt { color: var(--text-muted); font-size: .875rem; }
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: var(--s-4); }
}

/* ---------- Support ---------- */
.support {
  max-width: 760px; margin-inline: auto; text-align: center;
  padding: var(--s-6) var(--s-3);
  background:
    radial-gradient(80% 60% at 50% 0%, rgb(var(--accent-rgb) / .12), transparent 70%),
    var(--bg-raised);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.support .eyebrow { justify-content: center; }
.support__lead { margin-top: var(--s-2); color: var(--text-muted); font-size: 1.075rem; }
.support__email {
  margin: var(--s-3) 0 var(--s-2);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 3.5vw, 1.35rem);
  user-select: all; word-break: break-all;
}
.faq { margin-top: var(--s-6); text-align: left; }
.faq__title { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--s-2); }
.faq__item { border-top: 1px solid var(--border); }
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-2);
  padding: var(--s-2) 0; min-height: 56px;
  font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: 0 0 auto; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq__item summary:hover { color: var(--accent-bright); }
.faq__answer { padding: 0 0 var(--s-3); color: var(--text-muted); }
.faq__answer a, .prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-bright); text-underline-offset: 3px; }
.faq__answer a:hover, .prose a:hover { color: var(--accent-bright); }
@media (min-width: 768px) { .support { padding: var(--s-8) var(--s-8); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: var(--s-8) 0 var(--s-4); }
.footer__inner { display: grid; gap: var(--s-4); }
.footer__brand p { color: var(--text-muted); font-size: .875rem; margin-top: var(--s-1); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); }
.footer__links a { color: var(--text-muted); font-size: .925rem; padding: 4px 0; transition: color .2s; }
.footer__links a:hover { color: var(--text); }
.socials { display: flex; gap: var(--s-1); }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid var(--border); color: var(--text-muted);
  transition: color .2s, border-color .2s, background-color .2s;
}
.socials a:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-hover); }
.footer__legal { margin-top: var(--s-6); padding-top: var(--s-3); border-top: 1px solid var(--border); }
.footer__legal p { color: var(--text-muted); font-size: .825rem; }
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: 1fr auto auto; align-items: center; gap: var(--s-6); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1100px, 100% - var(--s-4)); max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible;
}
.lightbox::backdrop { background: rgba(5, 6, 12, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.lightbox__frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox__close {
  position: absolute; top: -56px; right: 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; background: var(--surface-hover); border: 1px solid var(--border-strong); cursor: pointer;
}

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Cards keep their own hover transform once revealed */
.js .game-card.reveal.is-visible { transition: opacity .8s var(--ease), transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.js .game-card.reveal.is-visible:hover { transform: translateY(-4px); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .collage__item { transform: none !important; }
  .collage__item img { transform: rotate(var(--r, 0deg)); }
}

/* Ambient animations start only after load (keeps first paint & main thread quiet) */
.is-loaded .hero__glow,
.is-loaded .collage__item img { animation-play-state: running; }

/* =========================================================
   Subpages (game page, card guide, legal)
   ========================================================= */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + var(--s-8)) 0 var(--s-8); }
.page-hero .hero__glow { animation: none; }
.back-link { display: flex; width: fit-content; align-items: center; gap: var(--s-1); color: var(--text-muted); font-size: .925rem; font-weight: 500; margin-bottom: var(--s-4); }
.back-link:hover { color: var(--text); }
.page-title { font-size: clamp(2.25rem, 7vw, 4.25rem); font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.page-title small { display: block; font-size: .5em; color: var(--text-muted); font-weight: 600; letter-spacing: -0.01em; margin-top: var(--s-1); }
.page-lead { margin-top: var(--s-3); color: var(--text-muted); font-size: clamp(1.05rem, 2.2vw, 1.2rem); max-width: 52ch; }

/* Game page hero */
.game-hero { display: grid; gap: var(--s-6); align-items: center; }
.game-hero__art { max-width: 420px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow), 0 0 80px -20px var(--accent-glow); }
.game-hero .tags { margin-top: var(--s-3); }
.game-hero .store-row { margin-top: var(--s-4); }
.game-hero .hero__actions { margin-top: var(--s-3); }
@media (min-width: 900px) {
  .game-hero { grid-template-columns: 1.2fr 1fr; gap: var(--s-8); }
  .game-hero__art { justify-self: end; width: 100%; }
}

/* Screenshot gallery (scroll-snap, keyboard scrollable) */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 640px); gap: var(--s-2);
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-2);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent;
}
.gallery figure { scroll-snap-align: start; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-raised); }
.gallery img { width: 100%; height: auto; aspect-ratio: 1400 / 646; object-fit: cover; }
.gallery:focus-visible { outline-offset: 6px; }
.gallery-hint { color: var(--text-muted); font-size: .85rem; margin-top: var(--s-1); }

.split { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.6fr; gap: var(--s-8); } }
.split p { color: var(--text-muted); font-size: 1.075rem; }
.split p + p { margin-top: var(--s-2); }

.cta-band {
  display: grid; gap: var(--s-3); align-items: center;
  padding: var(--s-5) var(--s-3); border-radius: var(--radius-lg);
  background: radial-gradient(70% 120% at 0% 0%, rgb(var(--accent-rgb) / .16), transparent 60%), var(--bg-raised);
  border: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
.cta-band p { color: var(--text-muted); margin-top: var(--s-1); }
@media (min-width: 768px) { .cta-band { grid-template-columns: 1fr auto; padding: var(--s-6); } }

/* Booster card guide */
.tabs { display: flex; gap: var(--s-1); overflow-x: auto; padding: 4px 2px var(--s-1); margin-bottom: var(--s-4); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: var(--s-1); flex-shrink: 0;
  min-height: 44px; padding: 0 var(--s-2) 0 12px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
  font-weight: 600; font-size: .925rem; transition: color .2s, border-color .2s, background-color .2s;
}
.tab img { width: 20px; height: 30px; object-fit: contain; }
.tab:hover { color: var(--text); border-color: var(--border-strong); }
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tier-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
@media (min-width: 900px) { .tier-tiles { grid-template-columns: repeat(4, 1fr); } }
.tier-tile {
  text-align: left; cursor: pointer; padding: var(--s-3); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.tier-tile:hover { transform: translateY(-4px); border-color: var(--tier, var(--border-strong)); box-shadow: 0 20px 50px -24px var(--tier, transparent); }
.tier-tile img { width: 64px; height: 96px; object-fit: contain; margin-bottom: var(--s-2); }
.tier-tile b { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.tier-tile span { color: var(--text-muted); font-size: .875rem; }
.tier-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-1); margin-bottom: var(--s-3); }
.tier-head h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); display: flex; align-items: center; gap: 12px; }
.tier-head h2::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--tier); box-shadow: 0 0 16px var(--tier); }
.tier-head span { color: var(--text-muted); font-size: .9rem; }
.bcards { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.bcard {
  display: flex; gap: var(--s-2); align-items: center; padding: var(--s-2);
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: border-color .25s, background-color .25s;
}
.bcard:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.bcard img { width: 52px; height: 80px; object-fit: contain; flex-shrink: 0; }
.bcard h3 { font-family: var(--font-body); font-size: .975rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.bcard .power { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bcard .power em { font-style: normal; font-size: .8rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .07); white-space: nowrap; }
.bcard .chance { color: var(--text-muted); font-size: .8rem; margin-top: 6px; }

/* Legal pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin: var(--s-6) 0 var(--s-2); }
.prose h3 { font-family: var(--font-body); font-size: 1.05rem; letter-spacing: 0; margin: var(--s-3) 0 var(--s-1); }
.prose p, .prose li { color: var(--text-muted); }
.prose p + p { margin-top: var(--s-2); }
.prose ul { list-style: disc; padding-left: 1.25em; margin-top: var(--s-1); }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--text); }
.prose .updated { font-size: .9rem; }
.prose table { width: 100%; border-collapse: collapse; margin-top: var(--s-2); font-size: .925rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; z-index: -1; background: linear-gradient(to bottom, transparent, var(--bg)); }
@media (min-width: 900px) { .pillars--3 { grid-template-columns: repeat(3, 1fr); } }

/* =========================================================
   eCommerce division
   ========================================================= */
:root.theme-commerce {
  --accent: #2563eb;              /* 5.2:1 with white */
  --accent-hover: #1d4ed8;
  --accent-rgb: 59 130 246;
  --accent-bright: #60a5fa;       /* 7.4:1 on --bg */
  --accent-bright-rgb: 96 165 250;
  --depth-rgb: 34 211 238;
}

/* Armenian typography: wider glyphs, so slightly smaller display sizes and no negative tracking */
:lang(hy) h1, :lang(hy) h2, :lang(hy) h3 { letter-spacing: -0.01em; }
:lang(hy) .hero__title { font-size: clamp(2.1rem, 7.4vw, 4rem); line-height: 1.08; }
:lang(hy) .section__title { font-size: clamp(1.75rem, 4.4vw, 2.75rem); line-height: 1.15; }
:lang(hy) .eyebrow { letter-spacing: .08em; }

/* Language switch */
.lang-switch {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}
.lang-switch button {
  min-width: 40px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text-muted); font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  transition: background-color .2s, color .2s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.nav__tools { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.theme-commerce .nav__links { display: none; margin-left: auto; }
.theme-commerce .nav__toggle { display: grid; margin-left: 0; }
.theme-commerce .nav__ecom { display: none; }
@media (min-width: 768px) { .theme-commerce .nav__ecom { display: inline-flex; } }
@media (min-width: 1100px) {
  .theme-commerce .nav__links { display: flex; }
  .theme-commerce .nav__toggle { display: none; }
  .theme-commerce .nav__tools { margin-left: 0; }
}
.mobile-menu .lang-switch { margin-top: var(--s-4); align-self: flex-start; }

/* Hero visual: storefront + dashboard mock (decorative) */
.mock { position: relative; width: 100%; max-width: 520px; margin-inline: auto; aspect-ratio: 5 / 4; }
.mock__window {
  position: absolute; inset: 0 8% 12% 0; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, #151a33, #0f1328); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 90px -30px var(--accent-glow);
}
.mock__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.mock__bar span { margin-left: 12px; height: 14px; flex: 0 1 46%; border-radius: 7px; background: rgba(255,255,255,.07); }
.mock__body { padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__banner { grid-column: 1 / -1; height: 64px; border-radius: 12px; background: linear-gradient(110deg, rgb(var(--accent-rgb) / .55), rgb(var(--depth-rgb) / .35)); }
.mock__item { border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--border); padding: 8px; }
.mock__item b { display: block; aspect-ratio: 1; border-radius: 8px; margin-bottom: 8px; }
.mock__item:nth-child(2) b { background: linear-gradient(135deg, #f9a8d4, #c084fc); }
.mock__item:nth-child(3) b { background: linear-gradient(135deg, #fde68a, #fb923c); }
.mock__item:nth-child(4) b { background: linear-gradient(135deg, #a7f3d0, #22d3ee); }
.mock__item i { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.14); width: 80%; }
.mock__item i + i { margin-top: 6px; width: 45%; background: rgb(var(--accent-bright-rgb) / .6); }
.mock__card {
  position: absolute; border-radius: var(--radius); padding: 14px 16px;
  background: rgba(20, 25, 50, .92); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
}
.mock__chart { right: 0; bottom: 0; width: 52%; }
.mock__chart small, .mock__toast small { display: block; color: var(--text-muted); font-size: .7rem; font-weight: 600; letter-spacing: .04em; }
.mock__chart strong { display: block; font-family: var(--font-display); font-size: 1.35rem; margin: 2px 0 6px; }
.mock__chart svg { width: 100%; height: 44px; }
.mock__toast { left: 4%; bottom: 4%; display: flex; align-items: center; gap: 10px; }
.mock__toast .ok { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 197, 94, .16); color: #4ade80; flex: 0 0 auto; }
.mock__toast strong { font-size: .9rem; }
.mock__chart, .mock__toast { animation: float 7s ease-in-out infinite paused; }
.mock__toast { animation-delay: -3s; }
.is-loaded .mock__chart, .is-loaded .mock__toast { animation-play-state: running; }

/* Key numbers strip */
.kpis { margin-top: 0; }
.kpis .stat dd .unit { color: var(--accent-bright); }

/* Why us checklist */
.checks { margin-top: var(--s-4); display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.checks li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: rgb(var(--accent-rgb) / .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2360a5fa' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  border: 1px solid rgb(var(--accent-bright-rgb) / .3);
}

/* Process timeline */
.steps { display: grid; gap: var(--s-2); list-style: none; }
.step { position: relative; padding: var(--s-3); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent-bright); margin-bottom: var(--s-2); }
.step h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.step p { margin-top: 6px; color: var(--text-muted); font-size: .925rem; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .step::after {
    content: ""; position: absolute; top: 44px; right: calc(-1 * var(--s-2)); width: var(--s-2); height: 1px;
    background: linear-gradient(90deg, rgb(var(--accent-bright-rgb) / .5), transparent);
  }
  .step:last-child::after { display: none; }
}

/* Clients */
.clients { display: grid; gap: var(--s-3); max-width: 880px; margin-inline: auto; }
@media (min-width: 720px) { .clients { grid-template-columns: 1fr 1fr; } }
.client {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-1);
  padding: var(--s-6) var(--s-4) var(--s-5); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.client::before { content: ""; position: absolute; inset: -40% 10% auto; height: 70%; background: radial-gradient(closest-side, rgb(var(--accent-rgb) / .18), transparent); opacity: 0; transition: opacity .35s; }
.client:hover { transform: translateY(-4px); border-color: rgb(var(--accent-bright-rgb) / .45); box-shadow: 0 30px 70px -30px rgb(var(--accent-rgb) / .45); }
.client:hover::before { opacity: 1; }
.client .badge { margin-bottom: var(--s-3); align-self: center; position: relative; }
.client__mark { position: relative; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 4vw, 2.25rem); letter-spacing: .14em; }
.client__mark--serif { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: .3em; }
.client__name { position: relative; font-weight: 700; }
.client__domain { position: relative; color: var(--text-muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.client__visit { position: relative; margin-top: var(--s-3); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .875rem; color: var(--text-muted); transition: color .2s; }
.client:hover .client__visit { color: var(--accent-bright); }
.clients-note { text-align: center; color: var(--text-muted); margin-top: var(--s-5); font-size: .9rem; }

/* Contact */
.contact-lines { display: grid; gap: var(--s-1); justify-items: center; margin: var(--s-3) 0; }
.contact-lines a { font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 3.5vw, 1.3rem); }
.contact-lines a:hover { color: var(--accent-bright); }
.contact-note { margin-top: var(--s-2); color: var(--text-muted); font-size: .875rem; }

.faq--wide { max-width: 820px; margin-inline: auto; margin-top: 0; }
.faq--wide .faq__item summary { font-size: 1.02rem; }

/* Armenian refinements */
.nav__links a { white-space: nowrap; }
.theme-commerce .nav__links { gap: 2px; }
.theme-commerce .nav__links a { padding: 8px 12px; }
@media (min-width: 1100px) and (max-width: 1279px) { .theme-commerce .nav__links a { padding: 8px 9px; font-size: .875rem; } }
:lang(hy) .eyebrow, :lang(hy) .faq__title { text-transform: none; letter-spacing: .02em; font-size: .85rem; }
:lang(hy) .hero__title { font-size: clamp(2rem, 6.6vw, 3.5rem); }
@media (max-width: 480px) {
  .mock__card { padding: 10px 12px; }
  .mock__chart { width: 56%; }
  .mock__chart strong { font-size: 1.1rem; }
  .mock__chart svg { height: 32px; }
  .mock__toast { bottom: 2%; }
  .mock__toast strong { font-size: .8rem; }
}
.client__mark--wide { font-size: clamp(1.35rem, 3.4vw, 1.75rem); letter-spacing: .1em; white-space: nowrap; }
.client__mark { min-height: 3rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.clients { max-width: 1120px; }
@media (min-width: 1024px) { .clients { grid-template-columns: repeat(3, 1fr); } .client { padding-inline: var(--s-3); } }
.client .badge { text-align: center; }
@media (min-width: 720px) and (max-width: 1023px) { .client:last-child:nth-child(odd) { grid-column: 1 / -1; } }
