/* Oasis of Hope — oasis.nerafix.tech
   Identity taken from the game: Lalezar (headings) + Cairo (text), desert palette,
   chunky game buttons and parchment panels. */

/* ---------- fonts (same files the game ships) ---------- */
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(/assets/fonts/cairo-arabic-f8c8bb.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: "Cairo"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(/assets/fonts/cairo-latin-c4b7a0.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-weight: 400; font-display: swap;
  src: url(/assets/fonts/lalezar-arabic-9d71d3.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: "Lalezar"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/lalezar-latin-364283.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; }

/* ---------- tokens ---------- */
:root {
  --night: #1b0d05;
  --night-2: #2a140a;
  --bark: #120803;
  --earth: #3a1d0d;
  --ink: #2f170a;
  --ink-soft: #6b4a30;
  --sand: #f6e6c8;
  --sand-2: #efd5a8;
  --parch: #fcf3e1;
  --cream: #fff5e4;
  --cream-soft: rgba(255, 245, 228, .78);
  --sun: #ffb23e;
  --sun-2: #f07f22;
  --ember: #c9561b;
  --water: #27b8c4;
  --green: #4cbb34;
  --green-2: #2f8f1f;
  --line-dark: rgba(255, 214, 160, .16);
  --line-sand: #e3c391;
  --r: 24px;
  --hdr: 72px;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body {
  margin: 0; background: var(--night); color: var(--cream);
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 1.0625rem; line-height: 1.8; overflow-x: hidden;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
.lang-en { line-height: 1.65; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--sun); color: var(--ink); padding: 8px 16px; border-radius: 10px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: calc(860px + var(--gut) * 2); }
.ic { width: 22px; height: 22px; flex: none; }

/* ---------- type ---------- */
.h1, .h2, .h3, .hero__tag, .story__cap h3, .feat h3, .char h3, .nf__code, .doc__sec h2 {
  font-family: "Lalezar", "Cairo", sans-serif; font-weight: 400; line-height: 1.2;
}
.h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.6rem); text-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.h2 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem); text-shadow: 0 4px 0 rgba(0, 0, 0, .28); }
.h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); }
.lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); color: var(--cream-soft); max-width: 40em; }
.eyebrow {
  display: inline-block; font-weight: 800; font-size: .9rem; color: var(--sun);
  background: rgba(255, 178, 62, .12); border: 1px solid rgba(255, 178, 62, .35);
  padding: .1em .9em; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- buttons ---------- */
.btn {
  --b1: #6fd64d; --b2: #3aa82a; --b3: #22701a;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 800; font-size: 1.06rem; line-height: 1.2; text-decoration: none; color: #fff;
  padding: .85em 1.5em; border: 0; border-radius: 16px;
  background: linear-gradient(180deg, var(--b1), var(--b2));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -4px 0 rgba(0, 0, 0, .16), 0 5px 0 var(--b3), 0 12px 24px rgba(0, 0, 0, .3);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .22);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), filter .15s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .16), 0 1px 0 var(--b3), 0 6px 14px rgba(0, 0, 0, .3); }
.btn .ic { width: 1.15em; height: 1.15em; }
.btn--sun { --b1: #ffc95c; --b2: #f28a1f; --b3: #a84a0c; }
.btn--ghost {
  background: rgba(255, 245, 228, .06); color: var(--cream); text-shadow: none;
  box-shadow: inset 0 0 0 2px rgba(255, 214, 160, .35), 0 4px 0 rgba(0, 0, 0, .35);
}
.btn--sm { font-size: .95rem; padding: .6em 1.1em; border-radius: 13px; }

/* ---------- store badges ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores--center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-width: 182px;
  padding: 9px 18px 9px 14px; border-radius: 14px; text-decoration: none; color: #fff;
  background: #0d0703; border: 1.5px solid rgba(255, 255, 255, .28);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}
[dir="rtl"] .store { padding: 9px 14px 9px 18px; }
a.store:hover { border-color: rgba(255, 255, 255, .6); }
.store__ic { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: .74rem; opacity: .82; font-weight: 600; }
.store b { font-family: "Cairo", sans-serif; font-weight: 800; font-size: 1.16rem; direction: ltr; text-align: start; white-space: nowrap; }
.store.is-soon { cursor: default; }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.hdr.is-solid, .menu-open .hdr {
  background: rgba(22, 10, 4, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-dark), 0 10px 30px rgba(0, 0, 0, .25);
}
.hdr__in { height: 100%; display: flex; align-items: center; gap: 22px; }
.hdr__logo img { height: 48px; width: auto; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
.hdr__nav { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.hdr__nav ul { display: flex; gap: 2px; }
.hdr__nav a { display: block; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: .98rem; text-decoration: none; color: var(--cream-soft); transition: color .2s, background .2s; }
.hdr__nav a:hover, .hdr__nav a[aria-current] { color: var(--cream); background: rgba(255, 245, 228, .08); }
.hdr__lang { border: 1px solid var(--line-dark); margin-inline-start: 6px; }
.hdr__menu { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: rgba(255, 245, 228, .08); align-items: center; justify-content: center; }
.hdr__menu .ic-close { display: none; }
.menu-open .hdr__menu .ic-open { display: none; }
.menu-open .hdr__menu .ic-close { display: block; }

/* ---------- dunes ---------- */
.dune { position: absolute; inset-inline: 0; bottom: -1px; width: 100%; height: clamp(46px, 7vw, 100px); color: var(--night); fill: currentColor; pointer-events: none; z-index: 2; }
.dune--top { bottom: auto; top: 1px; transform: translateY(-100%); color: var(--dune-c, var(--sand)); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: center; padding: calc(var(--hdr) + 32px) 0 clamp(90px, 10vw, 140px); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 72% 42%, rgba(255, 170, 70, .28), transparent 70%),
    linear-gradient(180deg, rgba(27, 13, 5, .55) 0, rgba(27, 13, 5, .25) 30%, rgba(27, 13, 5, .55) 72%, var(--night) 100%);
}
[dir="rtl"] .hero__bg::after {
  background:
    radial-gradient(ellipse 60% 55% at 28% 42%, rgba(255, 170, 70, .28), transparent 70%),
    linear-gradient(180deg, rgba(27, 13, 5, .55) 0, rgba(27, 13, 5, .25) 30%, rgba(27, 13, 5, .55) 72%, var(--night) 100%);
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__logo img { width: min(500px, 100%); filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .45)); margin-inline-start: -10px; }
.hero__tag { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); color: var(--sun); text-shadow: 0 3px 0 #5b2508, 0 8px 22px rgba(0, 0, 0, .45); margin-top: 6px; }
.hero__lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); color: var(--cream); max-width: 32em; margin: 12px 0 26px; text-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 22px; }
.hero__note { font-weight: 700; font-size: .95rem; color: var(--cream-soft); }
.hero__art { position: relative; height: clamp(480px, 46vw, 600px); }
.poster {
  position: absolute; inset-inline-end: 2%; top: 0; width: 56%; aspect-ratio: 1080 / 1600;
  border-radius: 28px; overflow: hidden; transform: rotate(4deg);
  box-shadow: 0 0 0 6px rgba(255, 236, 205, .9), 0 30px 60px rgba(0, 0, 0, .5);
}
[dir="rtl"] .poster { transform: rotate(-4deg); }
.poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.phone--hero { position: absolute; inset-inline-start: 6%; bottom: 0; width: 44%; transform: rotate(-3deg); }
[dir="rtl"] .phone--hero { transform: rotate(3deg); }
.hero__char { position: absolute; inset-inline-end: -4%; bottom: -6%; width: 40%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5)); }

/* ---------- phone frame ---------- */
.phone {
  aspect-ratio: 9 / 19.4; border-radius: clamp(26px, 3.2vw, 40px); padding: clamp(7px, .8vw, 10px);
  background: linear-gradient(150deg, #4a2c17, #170a04 60%);
  box-shadow: inset 0 0 0 2px rgba(255, 214, 160, .22), 0 28px 60px rgba(0, 0, 0, .5);
}
.phone__screen { position: relative; height: 100%; border-radius: clamp(20px, 2.6vw, 31px); overflow: hidden; background: #0c0603; }
.phone__screen > img, .phone__screen > video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- sections ---------- */
.sec { position: relative; padding-block: clamp(72px, 9vw, 130px); }
.sec__head { margin-bottom: clamp(34px, 4vw, 56px); }
.sec__head .lead { margin-top: 12px; }
.sec__head--row { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.sec--night { background: radial-gradient(ellipse 90% 60% at 50% 0, var(--night-2), var(--night) 70%); --dune-c: var(--night); }
.sec--sand { background: var(--sand); color: var(--ink); --dune-c: var(--sand); }
.sec--sand .lead { color: var(--ink-soft); }
.sec--sand .eyebrow { color: #b6540d; background: rgba(240, 127, 34, .12); border-color: rgba(182, 84, 13, .3); }
.sec--sand .h2 { color: var(--ink); text-shadow: 0 3px 0 rgba(255, 255, 255, .55); }
.sec--ember { background: radial-gradient(ellipse 70% 70% at 25% 45%, #63210c, transparent 70%), linear-gradient(180deg, #2a0f06, #160703); --dune-c: #2a0f06; }
[dir="rtl"] .sec--ember { background: radial-gradient(ellipse 70% 70% at 75% 45%, #63210c, transparent 70%), linear-gradient(180deg, #2a0f06, #160703); }
.sec--dusk { background: linear-gradient(180deg, #160703, #2f160c 55%, var(--night)); }
.sec--sunset { background: radial-gradient(ellipse 80% 90% at 50% 100%, #fff0b8 0, transparent 55%), linear-gradient(180deg, #f6b04b, #ec7a26 70%, #d65a1c); color: #2a1206; --dune-c: #f6b04b; }

/* ---------- story ---------- */
.story__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); counter-reset: s; }
.story__card { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: #0c0603; box-shadow: 0 0 0 1px var(--line-dark), 0 24px 50px rgba(0, 0, 0, .4); }
.story__card .clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(16, 7, 2, .92)); }
.story__cap { position: absolute; inset: auto 0 0; z-index: 1; padding: 22px; }
.story__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 900; margin-bottom: 8px; box-shadow: 0 3px 0 #a84a0c; }
.story__cap h3 { font-size: 1.7rem; color: var(--sun); }
.story__cap p { font-weight: 600; color: var(--cream); margin-top: 2px; }
.chapters { margin-top: clamp(40px, 5vw, 64px); text-align: center; }
.chapters h3 { font-weight: 800; font-size: 1.15rem; color: var(--cream-soft); margin-bottom: 16px; }
.chapters ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chapters li { display: flex; flex-direction: column; align-items: center; padding: 10px 18px; border-radius: 16px; background: linear-gradient(180deg, #4a2713, #331a0c); box-shadow: inset 0 0 0 1px rgba(255, 214, 160, .18), 0 4px 0 #1c0d05; line-height: 1.35; }
.chapters li span { font-size: .8rem; font-weight: 700; color: var(--sun); }
.chapters li b { font-weight: 800; }

/* ---------- gameplay ---------- */
.res ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(34px, 4vw, 52px); }
.res li { display: flex; align-items: center; gap: 8px; padding: 6px 16px 6px 8px; border-radius: 999px; background: #fff8ea; box-shadow: inset 0 0 0 2px var(--line-sand), 0 4px 0 #e2bf8c; font-weight: 800; color: var(--ink); }
[dir="rtl"] .res li { padding: 6px 8px 6px 16px; }
.res img { width: 40px; height: 40px; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.feat { background: var(--parch); border-radius: var(--r); padding: 18px 22px 24px; box-shadow: inset 0 0 0 2px var(--line-sand), 0 7px 0 #e0b885, 0 20px 30px rgba(120, 70, 20, .12); }
.feat__art { margin: -6px -6px 6px; aspect-ratio: 1 / .86; display: grid; place-items: center; border-radius: 18px; background: radial-gradient(circle at 50% 60%, #ffe6b8, transparent 70%); }
.feat__art img { width: 92%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(80, 40, 10, .25)); }
.feat h3 { font-size: 1.55rem; color: var(--ink); }
.feat p { color: var(--ink-soft); margin-top: 4px; }
.rooms { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: center; margin-top: clamp(56px, 7vw, 96px); }
.phone--sm { width: 100%; max-width: 260px; }
.rooms__txt p { color: var(--ink-soft); margin-top: 10px; max-width: 34em; }
.rooms__txt h4 { margin-top: 26px; font-weight: 800; font-size: 1.05rem; }
.regions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; counter-reset: r; }
.regions li { counter-increment: r; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff8ea; box-shadow: inset 0 0 0 2px var(--line-sand); font-weight: 700; }
[dir="rtl"] .regions li { padding: 6px 6px 6px 14px; }
.regions li::before { content: counter(r); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--water); color: #fff; font-weight: 900; font-size: .9rem; }
.loop { margin-top: clamp(56px, 7vw, 96px); }
.loop > h3 { text-align: center; color: var(--ink); margin-bottom: 22px; }
.loop ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.loop li { background: #fff8ea; border-radius: 20px; padding: 20px; box-shadow: inset 0 0 0 2px var(--line-sand); }
.loop__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 1.7rem; background: linear-gradient(180deg, #ffd88a, #ffb23e); box-shadow: 0 4px 0 #c97a1c; margin-bottom: 12px; }
.loop li h3 { font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.loop p { color: var(--ink-soft); font-size: .98rem; margin-top: 2px; }

/* ---------- defend ---------- */
.defend__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.defend__media { position: relative; max-width: 300px; width: 100%; justify-self: center; }
.defend__media .phone { box-shadow: inset 0 0 0 2px rgba(255, 140, 80, .3), 0 0 80px rgba(255, 90, 30, .25), 0 30px 60px rgba(0, 0, 0, .6); }
.defend__sprite { position: absolute; width: 46%; inset-inline-end: -22%; bottom: 6%; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .55)); transform: rotate(-8deg); }
.defend__txt .lead { margin-top: 12px; }
.ticks { display: grid; gap: 12px; margin-top: 24px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.ticks .ic { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--sun); color: var(--ink); margin-top: 2px; }
.quote { display: grid; grid-template-columns: 76px 1fr; gap: 4px 16px; align-items: center; margin-top: 32px; padding: 16px 20px; border-radius: 20px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px rgba(255, 160, 100, .2); }
.quote__face { grid-row: span 2; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: #3fa796; box-shadow: 0 0 0 3px rgba(255, 245, 228, .5); }
.quote blockquote p { font-weight: 600; }
.quote figcaption { font-size: .9rem; color: var(--sun); font-weight: 800; }

/* ---------- gate ---------- */
.gate__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.gate__txt .lead { margin-top: 12px; }
.clip--wide { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); box-shadow: 0 0 0 5px rgba(255, 220, 170, .14), 0 30px 60px rgba(0, 0, 0, .5); background: #0c0603; }

/* ---------- characters ---------- */
.chars__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.char { position: relative; border-radius: 28px; overflow: hidden; background: radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--c) 62%, transparent), transparent 68%), linear-gradient(180deg, #2c160b, #1d0e06); box-shadow: inset 0 0 0 1px var(--line-dark), 0 20px 40px rgba(0, 0, 0, .35); display: flex; flex-direction: column; }
.char__art { height: clamp(240px, 24vw, 310px); display: flex; align-items: flex-end; justify-content: center; padding-top: 18px; }
.char__art img { max-height: 100%; width: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
.char__body { padding: 16px 20px 22px; background: linear-gradient(180deg, rgba(20, 9, 3, .2), rgba(20, 9, 3, .75)); flex: 1; }
.char h3 { font-size: 1.8rem; }
.char__role { display: inline-block; align-self: flex-start; font-weight: 800; font-size: .85rem; padding: 0 .8em; border-radius: 999px; background: var(--c); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.char blockquote { margin-top: 12px; color: var(--cream-soft); font-size: .97rem; }
.char blockquote p::before { content: "“"; color: var(--c); font-weight: 900; margin-inline-end: 2px; }
[dir="rtl"] .char blockquote p::before { content: "«"; }

/* ---------- screenshots rail ---------- */
.rail-btns { display: flex; gap: 10px; }
.rbtn { width: 50px; height: 50px; border: 0; border-radius: 14px; display: grid; place-items: center; background: #fff8ea; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-sand), 0 4px 0 #e0b885; }
.rbtn:disabled { opacity: .45; cursor: default; }
.rbtn:not(:disabled):active { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--line-sand), 0 1px 0 #e0b885; }
[dir="ltr"] .rbtn--prev svg, [dir="rtl"] .rbtn:not(.rbtn--prev) svg { transform: scaleX(-1); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(210px, 22vw, 270px); gap: clamp(16px, 2.4vw, 30px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: 6px max(var(--gut), calc((100vw - var(--wrap)) / 2)) 26px;
  scroll-padding-inline: max(var(--gut), calc((100vw - var(--wrap)) / 2));
}
.rail::-webkit-scrollbar { display: none; }
.shot { scroll-snap-align: start; }
.shot p { text-align: center; font-weight: 800; margin-top: 14px; color: var(--ink); }
.screens .phone { box-shadow: inset 0 0 0 2px rgba(255, 214, 160, .22), 0 22px 40px rgba(100, 50, 10, .28); }

/* ---------- trailer ---------- */
.trailer__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.trailer__txt .lead { margin-top: 12px; }
.trailer__media { justify-self: center; width: 100%; max-width: 320px; }
.trailer__play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border: 0; background: radial-gradient(circle, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55)); color: #fff; font-weight: 800; font-size: 1.05rem;
}
.trailer__play .ic { width: 84px; height: 84px; padding: 22px 20px 22px 26px; border-radius: 50%; background: linear-gradient(180deg, #ffc95c, #f28a1f); box-shadow: 0 6px 0 #a84a0c, 0 18px 40px rgba(0, 0, 0, .5); transition: transform .2s var(--ease); }
.trailer__play:hover .ic { transform: scale(1.06); }
.trailer__play span { text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.trailer.is-playing .trailer__play { display: none; }
#trailer-video::cue { font-family: "Cairo", sans-serif; font-weight: 700; font-size: 1rem; background: rgba(0, 0, 0, .6); }

/* ---------- download ---------- */
.cta__in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta__icon { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .7), 0 20px 40px rgba(120, 40, 0, .35); margin-bottom: 22px; }
.cta .h2 { color: #2a1206; text-shadow: 0 3px 0 rgba(255, 235, 200, .6); }
.cta .lead { color: #4a2410; margin: 12px auto 28px; }
.cta__age { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 800; color: #3d1a08; }
.cta__age .ic { width: 20px; height: 20px; }

/* ---------- FAQ ---------- */
.faq .h2 { text-align: center; margin-bottom: 30px; }
.faq__list { display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: rgba(255, 245, 228, .045); box-shadow: inset 0 0 0 1px var(--line-dark); }
.faq details[open] { background: rgba(255, 245, 228, .07); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 800; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 178, 62, .14); color: var(--sun); font-size: 1.3rem; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p, .faq details > ul { padding: 0 22px 18px; color: var(--cream-soft); }
.faq details > p + p { margin-top: -8px; }
.faq details a { color: var(--sun); }
.faq__more { text-align: center; margin-top: 30px; }

/* ---------- footer ---------- */
.ftr { position: relative; background: var(--bark); padding: 56px 0 28px; margin-top: clamp(46px, 7vw, 100px); }
.ftr .dune { bottom: auto; top: 1px; transform: translateY(-100%); color: var(--bark); }
.ftr__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line-dark); }
.ftr__brand img { width: 170px; }
.ftr__brand p { color: var(--cream-soft); margin: 12px 0 14px; max-width: 26em; }
.ftr__mail { display: inline-flex; align-items: center; gap: 8px; color: var(--sun); font-weight: 700; text-decoration: none; direction: ltr; }
.ftr h2 { font-size: 1rem; font-weight: 800; color: var(--sun); margin-bottom: 12px; }
.ftr li a { display: inline-block; padding: 4px 0; text-decoration: none; color: var(--cream-soft); }
.ftr li a:hover { color: var(--cream); }
.ftr__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; font-size: .92rem; color: rgba(255, 245, 228, .6); }
.ftr__bar a { color: var(--cream); }

/* ---------- inner pages ---------- */
.band { position: relative; padding: calc(var(--hdr) + 54px) 0 clamp(90px, 10vw, 130px); isolation: isolate; overflow: hidden; }
.band__bg { position: absolute; inset: 0; z-index: -1; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 13, 5, .5), rgba(27, 13, 5, .75) 70%, var(--night)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .92rem; font-weight: 700; color: var(--cream-soft); margin-bottom: 10px; }
.crumbs a { color: var(--sun); text-decoration: none; }
.band__sub { margin-top: 10px; color: var(--cream-soft); font-size: 1.08rem; max-width: 40em; }
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 40px; }
.doc__toc { position: sticky; top: calc(var(--hdr) + 20px); }
.doc__toc h2 { font-size: .95rem; font-weight: 800; color: var(--sun); margin-bottom: 8px; }
.doc__toc ol { counter-reset: t; display: grid; gap: 2px; }
.doc__toc li { counter-increment: t; }
.doc__toc a { display: flex; gap: 8px; padding: 6px 10px; border-radius: 10px; text-decoration: none; color: var(--cream-soft); font-size: .95rem; font-weight: 600; line-height: 1.45; }
.doc__toc a::before { content: counter(t) "."; color: var(--sun); font-weight: 800; }
.doc__toc a:hover, .doc__toc a.is-active { background: rgba(255, 245, 228, .07); color: var(--cream); }
.doc__body { background: var(--parch); color: var(--ink); border-radius: 28px; padding: clamp(22px, 4vw, 52px); box-shadow: inset 0 0 0 2px var(--line-sand), 0 8px 0 #c9a06c, 0 30px 60px rgba(0, 0, 0, .35); }
.doc__sec + .doc__sec { margin-top: 34px; padding-top: 30px; border-top: 2px dashed #ead2a8; }
.doc__sec h2 { font-size: clamp(1.5rem, 1.25rem + .8vw, 1.9rem); color: #7a3410; margin-bottom: 10px; }
.doc__sec p + p, .doc__sec ul + p, .doc__sec p + ul { margin-top: 12px; }
.doc__sec ul { display: grid; gap: 8px; }
.doc__sec li { position: relative; padding-inline-start: 26px; }
.doc__sec li::before { content: ""; position: absolute; inset-inline-start: 6px; top: .72em; width: 9px; height: 9px; border-radius: 3px; background: var(--sun-2); transform: rotate(45deg); }
.lang-en .doc__sec li::before { top: .6em; }
.doc__sec a, .support a:not(.btn) { color: #b04a0b; font-weight: 700; text-underline-offset: 3px; }
.doc__sec strong { color: #4a1f07; }
.callout { background: #fff6dc; border-radius: 16px; padding: 16px 20px; border-inline-start: 6px solid var(--sun); font-size: 1.08rem; }
.others { margin-top: 40px; padding-top: 26px; border-top: 2px solid #ead2a8; }
.others h2 { font-size: 1rem; font-weight: 800; color: var(--ink-soft); margin-bottom: 12px; }
.others ul { display: flex; flex-wrap: wrap; gap: 10px; }
.others a { display: inline-block; padding: 8px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 2px var(--line-sand); text-decoration: none; font-weight: 800; color: var(--ink); }
.support .others { border-color: var(--line-dark); }
.support .others h2 { color: var(--cream-soft); }
.support .others a { background: rgba(255, 245, 228, .06); color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-dark); }

/* support */
.support { padding-bottom: 40px; }
.mailcard { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: start; padding: clamp(22px, 4vw, 40px); border-radius: 28px; background: var(--parch); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-sand), 0 8px 0 #c9a06c, 0 30px 60px rgba(0, 0, 0, .35); }
.mailcard__face { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: 50% 6%; background: radial-gradient(circle, #ffc9a8, #ef8a5b); box-shadow: 0 0 0 5px #fff, 0 10px 20px rgba(120, 60, 20, .25); }
.mailcard .h3 { color: #7a3410; }
.mailcard__addr { font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); font-weight: 900; margin: 2px 0 14px; direction: ltr; text-align: start; }
.mailcard__addr a { text-decoration: none; }
.mailcard .ticks { margin: 12px 0 24px; }
.mailcard .ticks li { font-weight: 600; }
.mailcard .ticks .ic { background: #ffd27a; }
.faq--page { margin-top: clamp(50px, 6vw, 80px); }
.faq--page .h2 { text-align: start; }

/* 404 */
.nf { min-height: 80vh; display: grid; place-items: center; padding: calc(var(--hdr) + 40px) 0 60px; text-align: center; }
.nf__in { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nf__sprite { width: 170px; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .5)); }
.nf__code { font-size: 5rem; line-height: 1; color: var(--sun); }
.nf__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 16px; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hdr__nav ul a { padding: 8px 9px; }
  .chars__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --hdr: 64px; }
  .hdr__logo img { height: 42px; }
  .hdr__menu { display: inline-flex; }
  .hdr__cta { margin-inline-start: auto; }
  .hdr__nav {
    position: fixed; inset: var(--hdr) 0 auto; margin: 0; flex-direction: column; align-items: stretch; gap: 6px;
    padding: 14px var(--gut) 22px; background: #170a04; box-shadow: 0 30px 40px rgba(0, 0, 0, .45); border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-open .hdr__nav { opacity: 1; visibility: visible; transform: none; }
  .hdr__nav ul { flex-direction: column; }
  .hdr__nav a { font-size: 1.1rem; padding: 12px 14px; }
  .hdr__lang { margin: 6px 0 0; text-align: center; }

  .hero { min-height: 0; padding-top: calc(var(--hdr) + 28px); }
  .hero__bg picture img { object-position: 50% 20%; }
  .hero__in { grid-template-columns: 1fr; text-align: center; }
  .hero__logo img { margin-inline: auto; width: min(420px, 92%); }
  .hero__lead { margin-inline: auto; }
  .hero .stores, .hero__actions { justify-content: center; }
  .hero__art { display: none; }

  .story__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78vw, 320px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); padding-bottom: 6px; }
  .story__grid::-webkit-scrollbar { display: none; }
  .story__card { scroll-snap-align: center; aspect-ratio: 9 / 14; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rooms, .defend__in, .gate__in, .trailer__in { grid-template-columns: 1fr; }
  .rooms { justify-items: center; text-align: center; }
  .rooms__txt p { margin-inline: auto; }
  .regions { justify-content: center; }
  .defend__media { max-width: 280px; }
  .gate__media { order: -1; }
  .trailer__media { order: -1; max-width: 300px; }
  .ftr__in { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
  .doc { grid-template-columns: 1fr; }
  .doc__toc { position: static; background: rgba(255, 245, 228, .045); border-radius: 18px; padding: 16px; box-shadow: inset 0 0 0 1px var(--line-dark); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hdr__cta { display: none; }
  .hdr__menu { margin-inline-start: auto; }
  .feats { grid-template-columns: 1fr; gap: 14px; }
  .feat { display: grid; grid-template-columns: 112px 1fr; gap: 0 14px; align-items: center; padding: 12px 16px 12px 12px; }
  [dir="rtl"] .feat { padding: 12px 12px 12px 16px; }
  .feat__art { grid-row: span 2; margin: 0; aspect-ratio: 1; }
  .feat__art img { width: 100%; }
  .feat h3 { font-size: 1.3rem; align-self: end; }
  .feat p { font-size: .95rem; line-height: 1.6; align-self: start; }
  .store { padding: 8px 12px; gap: 8px; }
  .store b { font-size: 1.02rem; }
  .store__ic { width: 24px; height: 24px; }
  .chars__grid { grid-template-columns: 1fr; }
  .char { flex-direction: row; align-items: stretch; }
  .char__art { width: 40%; height: auto; min-height: 210px; flex: none; padding-top: 12px; }
  .char__art img { max-height: 230px; }
  .char__body { display: flex; flex-direction: column; justify-content: center; background: none; padding: 16px 16px 16px 4px; }
  [dir="rtl"] .char__body { padding: 16px 4px 16px 16px; }
  .loop ul { grid-template-columns: 1fr; }
  .loop li { display: grid; grid-template-columns: 52px 1fr; gap: 0 14px; align-items: center; }
  .loop__ic { grid-row: span 2; margin: 0; }
  .sec__head--row { align-items: flex-start; flex-direction: column; }
  .rail-btns { display: none; }
  .rail { grid-auto-columns: 62vw; }
  .mailcard { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .mailcard .ticks li { text-align: start; }
  .mailcard__addr { text-align: center; }
  .ftr__in { grid-template-columns: 1fr; }
  .ftr__bar { flex-direction: column; }
  .store { min-width: 0; flex: 1 1 150px; }
  .defend__sprite { inset-inline-end: -14%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
