/* static/css/style.css — a Mauritanian night in the desert */

:root {
  --night: #120d2b;
  --night-2: #1d1545;
  --night-3: #2a1f5c;
  --sand: #f4b860;
  --sand-2: #e89a3c;
  --sand-deep: #b86b2a;
  --cream: #fff4e0;
  --green: #00a95c; /* flag */
  --gold: #ffd23f; /* flag */
  --red: #d01c1f; /* flag */
  --text: #fff8ec;
  --muted: #c9bfe8;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --radius: 28px;
  --font: "Baloo Bhaijaan 2", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
.icon { width: 1em; height: 1em; flex: none; vertical-align: -0.14em; }
.ico { display: inline-flex; line-height: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--night);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[dir="rtl"] body { letter-spacing: 0; }

/* ---------- header ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(18, 13, 43, 0.9), rgba(18, 13, 43, 0));
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: 0.5px; }
.brand-glass { width: 38px; height: 38px; }
.brand-glass .glass { fill: rgba(255, 255, 255, 0.18); stroke: #fff; stroke-width: 2; }
.brand-glass .tea { fill: var(--sand-2); }
.brand-glass .foam { fill: var(--cream); }
.brand-glass .mint { fill: var(--green); }
.brand-glass .steam path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; opacity: 0.7; animation: steam 2.4s ease-in-out infinite; }
.brand-glass .steam path:nth-child(2) { animation-delay: 0.4s; }
.brand-glass .steam path:nth-child(3) { animation-delay: 0.8s; }
@keyframes steam { 0%, 100% { transform: translateY(2px); opacity: 0; } 50% { transform: translateY(-3px); opacity: 0.8; } }

.nav-links { display: flex; gap: 22px; }
.nav-links a { text-decoration: none; font-weight: 600; opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.nav-links a:hover { opacity: 1; color: var(--sand); }
.lang {
  display: flex;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 3px;
}
.lang a { padding: 2px 11px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: background 0.25s, color 0.25s; }
.lang a:hover { color: var(--sand); }
.lang a[aria-current="page"] { background: var(--sand); color: var(--night); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px clamp(16px, 5vw, 64px) 34vh;
  background: radial-gradient(ellipse at 70% 10%, #3b2a7a 0%, var(--night-2) 38%, var(--night) 75%);
  overflow: hidden;
  isolation: isolate;
}
.sky { position: absolute; inset: 0; z-index: -1; }
.stars span {
  position: absolute;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #fff;
  opacity: 0.8;
  animation: twinkle var(--d) ease-in-out infinite;
  animation-delay: var(--delay);
}
@keyframes twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }
.shooting-star {
  position: absolute;
  top: 12%;
  left: 80%;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, #fff, transparent);
  transform: rotate(-20deg);
  opacity: 0;
  animation: shoot 7s ease-in 3s infinite;
}
@keyframes shoot {
  0% { opacity: 0; transform: translate(0, 0) rotate(-20deg); }
  3% { opacity: 1; }
  10% { opacity: 0; transform: translate(-420px, 150px) rotate(-20deg); }
  100% { opacity: 0; transform: translate(-420px, 150px) rotate(-20deg); }
}
.moon {
  position: absolute;
  top: 16%;
  right: 12%;
  width: clamp(80px, 12vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle at 35% 35%, #fffbe8, #ffe9a8 55%, #f7cd6b);
  box-shadow: 0 0 60px 20px rgba(255, 226, 150, 0.35), 0 0 140px 60px rgba(255, 210, 120, 0.12);
  transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.moon::after { /* craters */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 40%, rgba(214, 170, 90, 0.35) 0 9%, transparent 10%),
    radial-gradient(circle at 40% 68%, rgba(214, 170, 90, 0.28) 0 7%, transparent 8%),
    radial-gradient(circle at 70% 70%, rgba(214, 170, 90, 0.22) 0 5%, transparent 6%);
}
.moon:hover { transform: scale(1.06) rotate(-8deg); }
[dir="rtl"] .moon { right: auto; left: 12%; }

.hero-content { max-width: 880px; text-align: center; position: relative; z-index: 2; }
.kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 210, 63, 0.14);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
}
.hero-title {
  margin: 0;
  font-size: clamp(2.8rem, 9vw, 6.4rem);
  line-height: 1.02;
  font-weight: 800;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}
.hero-title > span { display: inline-block; margin: 0 0.12em; }
.wobble { color: var(--sand); animation: wobble 3.2s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes wobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-4px); } }
.hero-title > .flag-text {
  display: table; /* its own line, only as wide as the word */
  margin: 0.08em auto 0;
  position: relative;
  color: #19c46f;
  text-decoration: underline wavy var(--red) 0.07em;
  text-underline-offset: 0.2em;
  text-decoration-skip-ink: none;
}
.flag-text::after { /* the flag's crescent and star */
  content: "";
  position: absolute;
  top: 0.02em;
  inset-inline-end: -0.62em;
  width: 0.55em;
  height: 0.55em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd23f' d='M5 11a7 7 0 0 0 14 0 5.6 5.6 0 0 1-14 0z'/%3E%3Cpath fill='%23ffd23f' d='m12 4 1 2.8h2.9l-2.4 1.7.9 2.8L12 9.6l-2.4 1.7.9-2.8-2.4-1.7H11z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-sub { margin: 20px auto 30px; max-width: 620px; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.08rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.3, 1.8, 0.5, 1), box-shadow 0.2s, filter 0.2s;
}
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--sand-2)); color: var(--night); box-shadow: 0 8px 0 var(--sand-deep), 0 14px 30px rgba(232, 154, 60, 0.35); }
.btn-gold:hover { box-shadow: 0 11px 0 var(--sand-deep), 0 20px 40px rgba(232, 154, 60, 0.45); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); border: 1.5px solid rgba(255, 255, 255, 0.35); color: var(--text); }

/* dunes + caravan */
.desert { position: absolute; inset: auto 0 0 0; height: 36vh; min-height: 220px; z-index: 1; pointer-events: none; }
.dune { position: absolute; bottom: 0; width: 100%; height: 100%; }
.dune-back path { fill: #c97b38; }
.dune-mid path { fill: #e0913f; }
.dune-front path { fill: var(--sand); }
.caravan {
  position: absolute;
  bottom: 42%;
  display: flex;
  gap: 6px;
  font-size: clamp(34px, 4.4vw, 56px);
  color: #3a2110;
  opacity: 0.85;
  animation: caravan 38s linear infinite;
  pointer-events: auto;
  cursor: pointer;
}
.caravan .icon { display: inline-block; animation: step 0.9s ease-in-out infinite; }
.caravan .icon:nth-child(2) { animation-delay: 0.3s; }
.caravan .icon:nth-child(3) { animation-delay: 0.6s; }
.caravan.jump .icon { animation: jump 0.6s ease-out; }
@keyframes caravan { from { left: -12%; } to { left: 104%; } }
@keyframes step { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes jump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-38px) rotate(-12deg); } }

/* ---------- marquee ---------- */
.marquee { background: var(--sand); color: var(--night); overflow: hidden; border-block: 4px solid var(--night); transform: rotate(-1.4deg); margin: -18px -10px 0; position: relative; z-index: 3; }
.marquee-track { display: flex; gap: 38px; width: max-content; padding: 10px 0; font-weight: 800; font-size: 1.15rem; animation: marquee 40s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- sections ---------- */
.section { padding: clamp(70px, 10vw, 120px) clamp(16px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head h2 { margin: 0; font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.05; font-weight: 800; }
.section-sub { color: var(--muted); font-size: 1.15rem; margin: 14px 0 0; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- featured game ---------- */
.featured {
  --accent: #e11d48;
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 40px;
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 55%),
    linear-gradient(160deg, #1a1030, #0b0716);
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: clip; /* not "hidden": that would stop the phone from being sticky */
}
.featured::before { /* red tape, like the game's intro */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 60px, #0b0716 60px 70px);
}

/* the mini phone */
.phone {
  position: relative;
  width: 100%;
  max-width: 230px;
  aspect-ratio: 9 / 18.5;
  margin: 0 auto;
  border-radius: 36px;
  background: #0b0b0f;
  padding: 9px;
  box-shadow: 0 0 0 2px #2c2c34, 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 80px color-mix(in srgb, var(--accent) 30%, transparent);
  transform: rotate(-4deg);
  transition: transform 0.5s cubic-bezier(0.3, 1.4, 0.5, 1);
}
/* the phone stays in view while you read the (long) game details */
.featured > .phone { position: sticky; top: 110px; align-self: start; }
.phone:hover { transform: rotate(0deg) scale(1.02); }
[dir="rtl"] .phone { transform: rotate(4deg); }
.phone-screen { position: relative; height: 100%; border-radius: 28px; overflow: hidden; background: #ece5dd; display: flex; flex-direction: column; }
.phone-notch { position: absolute; top: 7px; left: 50%; width: 70px; height: 18px; transform: translateX(-50%); background: #0b0b0f; border-radius: 12px; z-index: 3; }
.phone-head { display: flex; align-items: center; gap: 8px; padding: 30px 11px 8px; background: #075e54; color: #fff; }
.phone-avatar { width: 28px; height: 28px; font-size: 0.85rem; border-radius: 50%; background: linear-gradient(135deg, #9ca3af, #4b5563); display: grid; place-items: center; font-weight: 800; }
.phone-name { font-weight: 700; line-height: 1.1; font-size: 0.9rem; }
.phone-status { font-size: 0.68rem; opacity: 0.85; min-height: 1em; }
.phone-chat { flex: 1; padding: 10px 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden; }
.bubble {
  max-width: 82%;
  padding: 6px 9px;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.3;
  color: #111b21;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
  animation: pop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
.bubble.them { align-self: flex-start; border-top-left-radius: 3px; }
.bubble.me { align-self: flex-end; background: #dcf8c6; border-top-right-radius: 3px; }
.bubble.unknown { align-self: flex-start; background: #1f1f23; color: #ff4d6d; font-weight: 700; border-top-left-radius: 3px; }
[dir="rtl"] .bubble { text-align: right; }
.bubble.old { animation: none; }
.bubble small { display: block; text-align: end; font-size: 0.62rem; color: #667781; margin-top: 1px; }
.day-pill { align-self: center; padding: 2px 10px; border-radius: 8px; background: #e1f3fb; color: #54656f; font-size: 0.66rem; margin: 4px 0; }
.bubble.typing { display: flex; gap: 4px; padding: 11px 13px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa5ad; animation: dot 1s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: 0.15s; }
.bubble.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.9); } }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-4px); opacity: 1; } }

.game-info { min-width: 0; }
.badge-new {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent), 0 0 24px var(--accent); } }
.game-title {
  margin: 10px 0 0;
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.95;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  color: #fff;
}
.game-title .glitch { position: relative; display: inline-block; }
.game-title .glitch::before,
.game-title .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.game-title .glitch::before { color: #00fff0; transform: translate(-2px, 0); clip-path: inset(0 0 60% 0); animation: glitch 3s infinite steps(1); mix-blend-mode: screen; }
.game-title .glitch::after { color: var(--accent); transform: translate(2px, 0); clip-path: inset(55% 0 0 0); animation: glitch 2.4s infinite reverse steps(1); mix-blend-mode: screen; }
@keyframes glitch {
  0%, 88%, 100% { transform: translate(0); opacity: 0; }
  90% { transform: translate(-4px, 2px); opacity: 1; }
  93% { transform: translate(3px, -2px); opacity: 1; }
  96% { transform: translate(-2px, 0); opacity: 1; }
}
.game-title-ar { display: block; font-size: 0.42em; letter-spacing: 0; text-transform: none; color: var(--accent); margin-top: 6px; }
.game-tagline { font-size: 1.3rem; font-weight: 700; margin: 16px 0 8px; color: var(--cream); }
.game-desc { color: var(--muted); font-size: 1.05rem; margin: 0 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); font-weight: 600; font-size: 0.9rem; }
.stats { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.stat { flex: 1 1 90px; text-align: center; padding: 10px 8px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.stat b { display: block; font-size: 1.9rem; line-height: 1; color: var(--accent); }
.stat span { font-size: 0.9rem; color: var(--muted); }

.downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.btn-download { background: linear-gradient(135deg, #34d399, var(--green)); color: #03170d; box-shadow: 0 8px 0 #03703d, 0 16px 34px rgba(0, 169, 92, 0.35); font-size: 1.15rem; padding: 14px 28px; }
.btn-download:hover { box-shadow: 0 11px 0 #03703d, 0 22px 44px rgba(0, 169, 92, 0.45); }
.btn-download.disabled { filter: grayscale(0.8) brightness(0.8); cursor: not-allowed; }
.btn-download svg { width: 22px; height: 22px; }
.apk-info { font-size: 0.9rem; color: var(--muted); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 14px;
  background: #000;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  position: relative;
  opacity: 0.8;
}
.store svg { width: 24px; height: 24px; fill: #fff; flex: none; }
.store small { display: block; font-size: 0.7rem; opacity: 0.8; line-height: 1; }
.store b { display: block; font-size: 1.05rem; line-height: 1.15; }
.store .soon-sticker {
  position: absolute;
  top: -10px;
  inset-inline-end: -10px;
  padding: 1px 8px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--night);
  font-size: 0.72rem;
  font-weight: 800;
  transform: rotate(8deg);
}
a.store[href]:not([href=""]) { opacity: 1; }

.media { margin-top: 28px; display: grid; gap: 16px; }
.media h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1rem; color: var(--muted); font-weight: 700; }
.trailer { width: 100%; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.12); background: #000; }
.shots { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shots button { flex: 0 0 auto; padding: 0; border: 0; background: none; cursor: zoom-in; scroll-snap-align: start; border-radius: 16px; overflow: hidden; transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); }
.shots button:hover { transform: translateY(-6px) rotate(-1.5deg); }
.shots img { height: 230px; width: auto; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.14); }

/* ---------- coming soon ---------- */
.soon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 40px; }
.soon {
  --c: #f59e0b;
  position: relative;
  padding: 26px 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, color-mix(in srgb, var(--c) 22%, #1a1438), #120d2b);
  border: 1.5px dashed color-mix(in srgb, var(--c) 60%, transparent);
  text-align: center;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.soon:hover { transform: translateY(-8px) rotate(-1deg); }
.soon-icon { display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 30px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); font-size: 56px; filter: blur(6px); transition: filter 0.5s; animation: float 4s ease-in-out infinite; }
.soon:hover .soon-icon { filter: blur(0); }
@keyframes float { 50% { transform: translateY(-8px); } }
.soon h3 { margin: 10px 0 4px; font-size: 1.4rem; }
.soon p { margin: 0 0 14px; color: var(--muted); }
.soon-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: var(--c); color: #120d2b; font-weight: 800; font-size: 0.85rem; }
.soon-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: 0.85rem; opacity: 0.7; }

/* ---------- install ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  padding: 30px 24px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1.5px solid var(--card-border);
  counter-increment: step;
  transition: transform 0.3s, background 0.3s;
}
.step:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.09); }
.step::before {
  content: counter(step);
  position: absolute;
  top: -18px;
  inset-inline-start: 22px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sand);
  color: var(--night);
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 5px 0 var(--sand-deep);
}
.step-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: rgba(244, 184, 96, 0.14); color: var(--sand); font-size: 34px; margin: 6px 0 10px; }
.step h3 { margin: 0 0 6px; font-size: 1.3rem; }
.step p { margin: 0; color: var(--muted); }
.install-note { text-align: center; margin-top: 30px; color: var(--muted); }

/* ---------- studio ---------- */
.studio-card {
  padding: clamp(28px, 5vw, 56px);
  border-radius: 40px;
  background:
    radial-gradient(circle at 90% 0%, rgba(0, 169, 92, 0.3), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(244, 184, 96, 0.22), transparent 45%),
    var(--night-2);
  border: 1.5px solid var(--card-border);
}
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.value { padding: 20px; border-radius: 22px; background: rgba(0, 0, 0, 0.18); text-align: center; }
.value-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: rgba(255, 255, 255, 0.08); color: var(--sand); font-size: 32px; }
.value h3 { margin: 6px 0 4px; font-size: 1.25rem; }
.value p { margin: 0; color: var(--muted); }

/* ---------- footer ---------- */
.footer {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: 50px 20px 60px;
  background: var(--sand);
  color: var(--night);
  font-weight: 700;
  border-top: 6px solid var(--green);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: var(--night); color: var(--sand); text-decoration: none; }
.footer-copy { display: inline-flex; align-items: center; gap: 6px; opacity: 0.75; font-weight: 600; }
.footer-langs a { font-weight: 700; }

/* ---------- small buttons, arrows ---------- */
.btn-small { padding: 8px 18px; font-size: 0.98rem; margin-top: 18px; }
.icon.rot { transform: rotate(-90deg); }
[dir="rtl"] .icon.rot { transform: rotate(90deg); }

/* ---------- fiction notice ---------- */
.fiction {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto 36px;
  padding: 20px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 210, 63, 0.18), rgba(244, 184, 96, 0.08));
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(255, 210, 63, 0.08), 0 14px 40px rgba(0, 0, 0, 0.35);
}
.fiction-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--gold);
  color: var(--night);
  font-size: 32px;
}
.fiction strong { display: block; font-size: 1.35rem; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
[dir="rtl"] .fiction strong { letter-spacing: 0; }
.fiction p { margin: 4px 0 0; font-size: 1.08rem; color: var(--cream); font-weight: 600; }
.game-page .fiction { margin-bottom: 24px; }
.footer-fiction { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(18, 13, 43, 0.12); font-size: 0.95rem; }
@media (max-width: 820px) {
  .fiction { flex-direction: column; align-items: center; text-align: center; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 20px; background: var(--card); border: 1.5px solid var(--card-border); padding: 4px 22px; transition: background 0.25s; }
.faq details[open] { background: rgba(255, 255, 255, 0.09); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 800; font-size: 1.15rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sand); font-size: 1.5rem; line-height: 1; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- game page ---------- */
.game-page { padding-top: 110px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; color: var(--muted); font-weight: 600; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--sand); }
.crumbs [aria-current] { color: var(--text); }
.story h2, .features h2, .media h2 { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; margin: 26px 0 8px; }
.story p { color: var(--muted); margin: 0 0 12px; font-size: 1.05rem; }
.features ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.features li { position: relative; padding-inline-start: 26px; color: var(--cream); }
.features li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 0.55em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }
.media h2 { font-size: 1rem; color: var(--muted); margin: 0 0 8px; }

/* ---------- 404 ---------- */
.not-found { min-height: 100svh; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at 50% 0%, #3b2a7a, var(--night) 70%); }
.not-found h1 { font-size: clamp(2.2rem, 7vw, 4rem); margin: 0; }

/* ---------- lightbox + confetti ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(8, 5, 20, 0.92); padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); animation: pop 0.3s both; }
.lightbox-close { position: absolute; top: 18px; inset-inline-end: 18px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.15); font-size: 1.4rem; cursor: pointer; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .nav { gap: 12px; }
  /* smaller moon, tucked into the top corner so it never covers the title */
  .moon { top: 74px; right: 16px; width: 58px; }
  [dir="rtl"] .moon { left: 16px; right: auto; }
  .hero { padding-top: 150px; }
  .nav-links { display: none; }
  .featured { grid-template-columns: 1fr; }
  .featured > .phone { position: relative; top: 0; }
  .phone { max-width: 200px; }
  .game-info { text-align: center; }
  .chips, .downloads, .stores { justify-content: center; }
  .shots img { height: 190px; }
}

/* ---------- respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .caravan { left: 40%; }
}

/* ---------- Criminel: the noir "crime scene" card (same look as its own website) ---------- */
.noir {
  --n-red: #dc2626;
  --n-red-hi: #ef4444;
  --n-tape: #f5c518;
  --n-paper: #e9e1cf;
  --n-ink: #1b1712;
  --n-type: "Special Elite", "Courier New", monospace;
  --n-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  position: relative;
  margin: 10px 0 28px;
  color: #e7e5e4;
}
[dir="rtl"] .noir { --n-type: "Baloo Bhaijaan 2", sans-serif; }
.noir-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 28px;
  background: #07070a;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(220, 38, 38, 0.25), 0 0 90px rgba(220, 38, 38, 0.12);
}
.noir-bg, .noir-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.noir-bg { z-index: -3; }
.noir-bg img { object-fit: cover; object-position: 50% 45%; filter: brightness(0.75); animation: noir-zoom 30s ease-in-out infinite alternate; }
@keyframes noir-zoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.noir-scene::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(7, 7, 10, 0.92) 0%, rgba(7, 7, 10, 0.7) 50%, rgba(7, 7, 10, 0.35) 100%),
              linear-gradient(180deg, rgba(7, 7, 10, 0.2), rgba(7, 7, 10, 0.75));
}
[dir="rtl"] .noir-scene::before {
  background: linear-gradient(-90deg, rgba(7, 7, 10, 0.92) 0%, rgba(7, 7, 10, 0.7) 50%, rgba(7, 7, 10, 0.35) 100%),
              linear-gradient(180deg, rgba(7, 7, 10, 0.2), rgba(7, 7, 10, 0.75));
}
/* flashlight: follows the pointer, wanders on its own on phones (app.js) */
.noir-light {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle 280px at var(--fx, 70%) var(--fy, 40%), rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0.6) 100%);
}
.noir-grain {
  position: absolute; inset: -50%; z-index: 5; pointer-events: none; opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noir-grain 0.9s steps(6) infinite;
}
@keyframes noir-grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* police tape above and below */
.noir-tape {
  position: relative; z-index: 6; overflow: hidden; white-space: nowrap; direction: ltr;
  background: var(--n-tape); color: #111; border-block: 3px solid #111;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font: 700 15px/1 var(--n-mono); letter-spacing: 3px; padding: 10px 0;
  margin: 0 -14px -16px; transform: rotate(-1.6deg);
}
.noir-tape:last-child { margin: -16px -14px 0; transform: rotate(1.2deg); }
[dir="rtl"] .noir-tape { direction: rtl; font: 800 16px/1 "Baloo Bhaijaan 2", sans-serif; letter-spacing: 0; }
.noir-tape-run { display: inline-block; animation: noir-tape 45s linear infinite; }
[dir="rtl"] .noir-tape-run { animation-name: noir-tape-rtl; }
.noir-tape:last-child .noir-tape-run { animation-direction: reverse; }
@keyframes noir-tape { to { transform: translateX(-50%); } }
@keyframes noir-tape-rtl { to { transform: translateX(50%); } }

.noir-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(30px, 5vw, 70px); align-items: center; }
.noir-info { min-width: 0; max-width: 620px; }
.noir-kicker { font: 700 13px/1.4 var(--n-mono); letter-spacing: 4px; color: var(--n-red-hi); margin: 0 0 14px; }
[dir="rtl"] .noir-kicker { font: 800 16px/1.4 "Baloo Bhaijaan 2", sans-serif; letter-spacing: 0; }
.noir-kicker::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--n-red-hi); border-radius: 50%; margin-inline-end: 10px; vertical-align: 1px; animation: noir-rec 1.4s infinite; }
@keyframes noir-rec { 50% { opacity: 0.15; } }
.noir-title { margin: 0; line-height: 0.9; }
.noir-glitch {
  position: relative; display: inline-block; direction: ltr;
  font: 700 clamp(52px, 9vw, 112px)/0.95 var(--n-mono); letter-spacing: clamp(3px, 1vw, 12px);
  color: #f5f5f4; text-shadow: 0 0 40px rgba(220, 38, 38, 0.3);
}
.noir-glitch::before, .noir-glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.noir-glitch::before { color: rgba(255, 0, 60, 0.8); clip-path: inset(0 0 60% 0); animation: noir-glitch-a 4s infinite steps(1); }
.noir-glitch::after { color: rgba(0, 220, 255, 0.55); clip-path: inset(55% 0 0 0); animation: noir-glitch-b 4s infinite steps(1); }
@keyframes noir-glitch-a { 0%, 86%, 100% { transform: none; opacity: 0; } 87% { transform: translate(-6px, -2px); opacity: 1; } 90% { transform: translate(5px, 1px); opacity: 1; } 93% { transform: translate(-2px, 0); opacity: 1; } 95% { opacity: 0; } }
@keyframes noir-glitch-b { 0%, 87%, 100% { transform: none; opacity: 0; } 88% { transform: translate(6px, 2px); opacity: 1; } 91% { transform: translate(-4px, -1px); opacity: 1; } 94% { opacity: 0; } }
.noir-ar { display: block; font: 800 clamp(22px, 3vw, 30px)/1.4 "Baloo Bhaijaan 2", sans-serif; color: var(--n-red-hi); margin-top: 8px; letter-spacing: 0; }
.noir-hook { font: 400 clamp(20px, 2.6vw, 28px)/1.3 var(--n-type); color: #fff; margin: 18px 0 10px; min-height: 1.3em; }
[dir="rtl"] .noir-hook { font-weight: 800; }
.noir-hook.typing::after { content: "▌"; color: var(--n-red-hi); animation: noir-rec 0.8s infinite; margin-inline-start: 2px; }
.noir-desc { color: #d6d3d1; font-size: 1.02rem; margin: 0 0 22px; }

/* a corner of the case file */
.noir-file {
  position: relative; background: var(--n-paper); color: var(--n-ink); border-radius: 4px;
  padding: 16px 20px 6px; margin: 0 0 22px; transform: rotate(-0.8deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(120, 90, 40, 0.25);
  background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(27, 23, 18, 0.07) 27px 28px);
}
[dir="rtl"] .noir-file { transform: rotate(0.8deg); }
.noir-file dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 18px; }
.noir-file div { padding: 6px 0 10px; border-bottom: 1px dashed rgba(27, 23, 18, 0.3); }
.noir-file dt { font: 700 10px/1.2 var(--n-mono); letter-spacing: 1.5px; text-transform: uppercase; color: #7c6f5a; margin-bottom: 4px; }
[dir="rtl"] .noir-file dt { font: 700 13px/1.2 "Baloo Bhaijaan 2", sans-serif; letter-spacing: 0; }
.noir-file dd { margin: 0; font: 400 16px/1.3 var(--n-type); }
[dir="rtl"] .noir-file dd { font-weight: 700; }
.noir-stamp {
  position: absolute; top: -16px; inset-inline-end: 14px; z-index: 1;
  border: 3px solid #b91c1c; color: #b91c1c; background: rgba(233, 225, 207, 0.9);
  padding: 4px 12px; border-radius: 5px; transform: rotate(-7deg);
  font: 700 15px/1 var(--n-mono); letter-spacing: 3px;
}
[dir="rtl"] .noir-stamp { font: 800 17px/1.2 "Baloo Bhaijaan 2", sans-serif; letter-spacing: 0; }

.noir-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 0; margin: 0 0 26px; }
.noir-stats li { display: flex; align-items: baseline; gap: 8px; }
.noir-stats b { font: 700 34px/1 var(--n-mono); color: #fff; }
.noir-stats span { color: #a8a29e; font-size: 0.95rem; }

.noir-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.noir-btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 14px 24px; border-radius: 999px; font-weight: 800; font-size: 1.05rem; line-height: 1.15;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.noir-btn .icon { width: 22px; height: 22px; }
.noir-btn small { display: block; font-size: 0.72rem; font-weight: 600; opacity: 0.85; direction: ltr; text-align: start; }
.noir-btn-red { background: var(--n-red); color: #fff; box-shadow: 0 10px 40px rgba(220, 38, 38, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.noir-btn-red:hover { background: #ea2c2c; transform: translateY(-2px); box-shadow: 0 16px 50px rgba(220, 38, 38, 0.55); }
.noir-btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.05); }
.noir-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.noir-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: #a8a29e; font-weight: 700; text-decoration: none; border-bottom: 1px dashed rgba(168, 162, 158, 0.5); }
.noir-link:hover { color: #fff; }

/* the teaser in a phone */
.noir-phone { margin: 0; text-align: center; }
.noir-phone video {
  display: block; width: min(280px, 70vw); height: auto; max-height: none; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 34px; border: 9px solid #18181b; background: #000;
  box-shadow: 0 0 0 2px #2a2a31, 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 100px rgba(220, 38, 38, 0.22);
  transform: rotate(3deg); transition: transform 0.4s;
}
[dir="rtl"] .noir-phone video { transform: rotate(-3deg); }
.noir-phone video:hover, .noir-phone video:focus { transform: none; }
.noir-phone figcaption { margin-top: 16px; font: 700 12px/1.3 var(--n-mono); letter-spacing: 2px; color: #a8a29e; text-transform: uppercase; }
[dir="rtl"] .noir-phone figcaption { font: 700 15px/1.3 "Baloo Bhaijaan 2", sans-serif; letter-spacing: 0; }

/* the game's own page: story + features under the card */
.noir-more { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.noir-more h2 { font: 700 22px/1.2 var(--n-mono); letter-spacing: 2px; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
[dir="rtl"] .noir-more h2 { font: 800 26px/1.3 "Baloo Bhaijaan 2", sans-serif; letter-spacing: 0; }
.noir-more h2::after { content: ""; display: block; width: 50px; height: 3px; background: var(--n-red); margin-top: 10px; }
.noir-story p { color: #d6d3d1; margin: 0 0 12px; }
.noir-features ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.noir-features li { position: relative; padding-inline-start: 26px; color: #d6d3d1; }
.noir-features li::before { content: "✕"; position: absolute; inset-inline-start: 0; color: var(--n-red-hi); font-weight: 800; }

@media (max-width: 860px) {
  .noir-grid { grid-template-columns: 1fr; }
  .noir-info { max-width: none; }
  .noir-phone { order: 2; }
  .noir-more { grid-template-columns: 1fr; gap: 26px; }
  .noir-scene::before { background: linear-gradient(180deg, rgba(7, 7, 10, 0.55), rgba(7, 7, 10, 0.88) 45%, rgba(7, 7, 10, 0.95)); }
}
@media (max-width: 520px) {
  .noir-actions .noir-btn { width: 100%; justify-content: center; }
  .noir-tape { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .noir *, .noir *::before, .noir *::after { animation: none !important; }
}

/* decorations (marquee, shooting stars, caravan, tapes) must never make the page scroll sideways */
html { overflow-x: clip; }
