/* go2game.ir — static landing page. Palette from the game (docs/ART_BRIEF.md). */

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/vazirmatn-arabic-wght-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/vazirmatn-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lalezar';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/lalezar-arabic-400-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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: 'Lalezar';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/lalezar-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #14213d;
  --navy-2: #1a2f56;
  --navy-3: #22396a;
  --lapis: #2457a0;
  --turquoise: #2bb3a3;
  --turquoise-light: #5fd3c4;
  --gold: #d9a93f;
  --gold-light: #f7de94;
  --terracotta: #b5562d;
  --plaster: #f2e6c9;
  --adobe: #d9b98a;
  --sand: #e8d29c;
  --ink: #f6efdc;
  --ink-soft: #cdd6e6;
  --ink-dark: #2a2418;
  --ink-dark-soft: #5a4d36;
  --radius: 18px;
  --font: 'Vazirmatn', Tahoma, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Lalezar', 'Vazirmatn', Tahoma, serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--turquoise-light); text-underline-offset: 3px; }
a:hover { color: var(--gold-light); }

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

h1, h2, h3 { margin: 0; line-height: 1.35; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50;
  background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: absolute; inset-inline: 0; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 4px 10px rgb(0 0 0 / .35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-latin { font-family: var(--font-display); font-size: 1.55rem; letter-spacing: .01em; color: var(--ink); text-shadow: 0 2px 8px rgb(0 0 0 / .4); }
.brand-latin b, .footer-brand b { color: var(--gold); font-weight: 400; }
.brand-fa { font-size: .78rem; font-weight: 600; color: var(--sand); text-shadow: 0 1px 6px rgb(0 0 0 / .5); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 6px 12px; border-radius: 999px; text-shadow: 0 1px 6px rgb(0 0 0 / .5);
}
.site-nav a:hover { background: rgb(20 33 61 / .55); color: var(--gold-light); }
.site-nav .lang-link { border: 1.5px solid rgb(246 239 220 / .55); font-family: var(--font); letter-spacing: .04em; padding: 3px 11px; }

@media (max-width: 719px) {
  .site-nav a:not(.lang-link) { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 900px);
  display: flex; align-items: center;
  padding: calc(96px + env(safe-area-inset-top)) 0 64px;
  overflow: hidden;
}
.hero-art, .hero-art img {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
}
.hero-art img { object-fit: cover; object-position: 72% 50%; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to left, rgb(20 33 61 / 0) 30%, rgb(20 33 61 / .35) 55%, rgb(20 33 61 / .82) 100%),
    linear-gradient(to bottom, rgb(20 33 61 / .55) 0, rgb(20 33 61 / 0) 22%, rgb(20 33 61 / 0) 75%, var(--navy) 100%);
}
.hero-inner { display: flex; flex-direction: column; align-items: flex-start; }
/* RTL: put the text block on the left half, over the open sea; the island stays visible on the right. */
.hero-inner > * { max-width: 560px; width: 100%; }
@media (min-width: 700px) {
  .hero-inner { align-items: flex-end; }
}

.eyebrow {
  display: inline-block; width: auto !important;
  font-weight: 700; font-size: .9rem; color: var(--gold-light);
  letter-spacing: .02em; margin-bottom: 6px; text-shadow: 0 1px 8px rgb(0 0 0 / .6);
}
.eyebrow-dark { color: #96421f; text-shadow: none; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  line-height: 1.2;
  color: var(--ink);
  text-shadow: 0 3px 18px rgb(10 18 36 / .7);
}
.hero h1 .accent { color: var(--gold-light); display: inline-block; }

.lede { margin-top: 12px; font-size: clamp(1.02rem, 2.6vw, 1.18rem); color: var(--ink); text-shadow: 0 1px 10px rgb(10 18 36 / .85); }
.lede strong { color: var(--gold-light); font-weight: 700; }

.featured {
  margin-top: 22px;
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px;
  background: rgb(20 33 61 / .78);
  border: 1px solid rgb(217 169 63 / .45);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgb(5 10 25 / .45), inset 0 1px 0 rgb(255 255 255 / .06);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.featured-icon { width: 80px; height: 80px; flex: none; border-radius: 18px; box-shadow: 0 6px 16px rgb(0 0 0 / .4); }
.featured-kicker { font-size: .8rem; font-weight: 700; color: var(--turquoise-light); }
.featured-title { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-light); line-height: 1.25; }
.featured-text { margin-top: 2px; color: var(--ink-soft); font-size: .98rem; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips li {
  font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  background: rgb(43 179 163 / .16); color: #bff0e8; border: 1px solid rgb(43 179 163 / .45);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cta-center { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 26px; border-radius: 14px;
  font-family: var(--font); font-weight: 800; font-size: 1.1rem; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn svg { width: 22px; height: 22px; }
.btn-primary {
  color: var(--navy);
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, #c18f2a);
  box-shadow: 0 10px 24px rgb(217 169 63 / .35), inset 0 -3px 0 rgb(120 80 10 / .35);
}
.btn-primary:hover { color: var(--navy); transform: translateY(-2px); box-shadow: 0 14px 30px rgb(217 169 63 / .45), inset 0 -3px 0 rgb(120 80 10 / .35); }
.btn-ghost { color: var(--ink); border: 1.5px solid rgb(246 239 220 / .6); background: rgb(20 33 61 / .45); }
.btn-ghost:hover { color: var(--gold-light); border-color: var(--gold-light); }
.btn-sm { min-height: 44px; font-size: 1rem; padding: 8px 20px; }

@media (min-width: 700px) and (max-width: 1023px) {
  /* Tablets: the island sits behind the text, so dim the picture evenly. */
  .hero-art img { object-position: 80% 50%; }
  .hero::before {
    background:
      linear-gradient(to left, rgb(20 33 61 / .25), rgb(20 33 61 / .7) 70%),
      linear-gradient(to bottom, rgb(20 33 61 / .5) 0, rgb(20 33 61 / .1) 25%, rgb(20 33 61 / .1) 75%, var(--navy) 100%);
  }
}

@media (max-width: 699px) {
  /* Phones: the tall picture sits at the bottom at full width, so the island and the boat show below the
     buttons; above it the hero takes the sky's own colour. */
  .hero { align-items: flex-start; min-height: 0; padding-bottom: 98vw; background: #023f82; }
  .hero-art img { top: auto; bottom: 0; height: auto; aspect-ratio: 940 / 1672; object-fit: cover; }
  .hero::before {
    background: linear-gradient(to bottom, rgb(20 33 61 / .55) 0, rgb(20 33 61 / .35) 40%, rgb(20 33 61 / 0) calc(100% - 70vw), rgb(20 33 61 / 0) calc(100% - 22vw), var(--navy) 100%);
  }
  .featured { padding: 14px; gap: 12px; }
  .featured-icon { width: 64px; height: 64px; border-radius: 15px; }
  .cta-row .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-title { font-family: var(--font-display); font-size: clamp(1.9rem, 5.5vw, 2.7rem); line-height: 1.3; }
.section-lede { margin-top: 12px; max-width: 760px; font-size: 1.05rem; }

/* Intro: a warm plaster band, like the game's panels. */
.intro {
  color: var(--ink-dark);
  background:
    radial-gradient(1200px 400px at 85% 0, rgb(255 255 255 / .45), transparent 70%),
    linear-gradient(180deg, var(--plaster), #ead9b4);
  position: relative;
}
.intro::before {
  /* thin tile border in turquoise and lapis */
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--turquoise) 0 18px, var(--lapis) 18px 24px, var(--gold) 24px 30px, var(--lapis) 30px 36px);
}
.intro .section-title { color: var(--navy); }
.intro .section-lede { color: var(--ink-dark-soft); }

.features {
  margin-top: 36px;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.card {
  background: rgb(255 252 244 / .75);
  border: 1px solid rgb(181 86 45 / .2);
  border-radius: var(--radius);
  padding: 18px 20px 22px;
  box-shadow: 0 8px 22px rgb(90 60 20 / .1);
}
.card img { width: 132px; height: 132px; margin: -6px auto 6px; filter: drop-shadow(0 8px 10px rgb(80 50 10 / .25)); }
.card h3 { font-family: var(--font-display); font-size: 1.45rem; color: var(--lapis); }
.card p { margin-top: 6px; color: var(--ink-dark-soft); font-size: .98rem; }

/* Showcase: the two painted scenes. */
.showcase { background: linear-gradient(180deg, var(--navy) 0, var(--navy-2) 100%); }
.show {
  display: grid; gap: 22px; align-items: center;
  grid-template-columns: 1fr;
}
.show + .show { margin-top: 40px; }
.show img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid rgb(217 169 63 / .4);
  box-shadow: 0 20px 44px rgb(0 0 0 / .4);
}
.show-text h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 4.4vw, 2.1rem); color: var(--gold-light); }
.show-text p { margin-top: 8px; color: var(--ink-soft); font-size: 1.04rem; }
@media (min-width: 860px) {
  .show { grid-template-columns: 1.1fr 1fr; gap: 44px; }
  .show-flip img { order: 2; }
}

.fair {
  margin-top: 48px;
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.fair li {
  padding: 14px 16px; border-radius: 14px;
  background: rgb(36 87 160 / .22); border: 1px solid rgb(95 211 196 / .25);
  color: var(--ink-soft); font-size: .95rem;
}
.fair strong { display: block; color: var(--turquoise-light); font-weight: 800; }

/* How to play */
.play { background: var(--navy-2); }
.play .section-title { text-align: center; }
.steps {
  margin-top: 32px;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  counter-reset: none;
}
.step {
  position: relative; padding: 22px 20px 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--navy-3), var(--navy));
  border: 1px solid rgb(36 87 160 / .7);
}
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1;
  color: var(--navy); background: var(--turquoise); margin-bottom: 10px;
}
.step h3 { font-weight: 800; font-size: 1.15rem; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.step p { margin-top: 6px; color: var(--ink-soft); font-size: .97rem; }
.step a { font-weight: 700; }
.badge {
  font-size: .75rem; font-weight: 800; padding: 1px 10px; border-radius: 999px;
  background: #9f4824; color: #fff4e6;
}
.play .cta-row { margin-top: 32px; }

/* More games */
.soon { background: var(--navy); }
.soon .section-lede { color: var(--ink-soft); }
.soon-grid {
  margin-top: 28px; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.soon-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: var(--radius);
  border: 1.5px dashed rgb(205 214 230 / .35);
  background: rgb(26 47 86 / .5);
}
.soon-card img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.soon-card h3 { font-weight: 800; font-size: 1.08rem; }
.soon-card p { color: var(--ink-soft); font-size: .92rem; }
.soon-live { border-style: solid; border-color: rgb(217 169 63 / .55); }
.soon-mark {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; flex: none;
  font-family: var(--font-display); font-size: 1.8rem; color: rgb(205 214 230 / .55);
  background: repeating-linear-gradient(135deg, rgb(36 87 160 / .25) 0 8px, rgb(36 87 160 / .1) 8px 16px);
  border: 1px solid rgb(205 214 230 / .2);
}

/* English */
.en { background: var(--navy-2); border-top: 1px solid rgb(36 87 160 / .6); }
.en .section-title { font-size: clamp(1.5rem, 4vw, 2rem); }
.en p { margin-top: 12px; max-width: 760px; color: var(--ink-soft); line-height: 1.7; }
.en strong { color: var(--ink); }

/* Footer */
.site-footer { background: #0e1830; padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); font-size: .92rem; color: var(--ink-soft); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-brand span { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--gold-light); }
.copy { width: 100%; color: rgb(205 214 230 / .75); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn-primary:hover { transform: none; }
}
.nowrap { white-space: nowrap; }
