/* صراع المعلومات — the website. «بيت الحكمة»: a night sky over a library,
   gold, walnut and parchment, the game's own fonts (Reem Kufi for titles,
   Noto Naskh Arabic for text and every number). Built by tools/legal/build_site.py. */

:root {
  --night: #070e17;
  --bg: #0c1622;
  --bg-2: #111d2b;
  --walnut: #1e140c;
  --walnut-2: #2a1c11;
  --walnut-3: #3b2a1c;
  --gold: #e2b54a;
  --gold-hi: #f6d27a;
  --gold-deep: #a97b22;
  --gold-line: rgba(226, 181, 74, .45);
  --gold-faint: rgba(226, 181, 74, .14);
  --parchment: #f3e6c8;
  --ink: #3b2414;
  --text: #f6ead0;
  --muted: #cdbb96;
  --turquoise: #1f7f7f;
  --seal: #8e2430;
  --play: #2fa35a;
  --choice: #4f86d9;
  --closest: #d9772b;
  --order: #2fa58f;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --kufi: 'Reem Kufi', 'Noto Naskh Arabic', serif;
  --naskh: 'Noto Naskh Arabic', serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--naskh);
  font-size: 18px;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-hi); text-decoration: none; }
a:hover { color: #fff3cf; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- the sky: stars, a gold glow and the eight-point-star lattice ------------- */
.sky {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(226, 181, 74, .16), transparent 60%),
    radial-gradient(900px 600px at 0% 30%, rgba(31, 127, 127, .14), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--bg) 45%, #0a1420 100%);
}
.sky::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 42%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 12%, #ffe9b0aa 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 33%, #fff7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 81% 9%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 46%, #ffe9b088 50%, transparent 51%),
    radial-gradient(1px 1px at 7% 63%, #fff5 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 37% 76%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 71% 68%, #fff5 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 94% 84%, #ffe9b077 50%, transparent 51%);
  animation: twinkle 7s ease-in-out infinite alternate;
}
.sky::after {
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: url("../img/pattern.svg");
  background-size: 120px 120px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }

/* --- header -------------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.top.scrolled {
  background: rgba(8, 14, 22, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--gold-faint);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.top .wrap { display: flex; align-items: center; gap: 22px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); flex-shrink: 0; }
.brand img { width: 46px; height: 46px; filter: drop-shadow(0 4px 12px rgba(226, 181, 74, .35)); }
.brand span { font-family: var(--kufi); font-size: 23px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a {
  color: var(--muted); font-size: 17px; padding: 8px 14px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--gold-faint); }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--gold-line);
  color: var(--gold); border-radius: 12px; width: 46px; height: 42px; cursor: pointer; font-size: 22px; }

/* --- buttons ------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--kufi); font-weight: 700; font-size: 19px; line-height: 1;
  padding: 15px 26px; border-radius: 16px; cursor: pointer; border: 0;
  transition: transform .18s, box-shadow .25s, filter .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-gold {
  color: var(--ink);
  background: linear-gradient(180deg, #f8dc8c 0%, var(--gold) 55%, #c99a35 100%);
  box-shadow: 0 6px 0 #8a6418, 0 14px 30px rgba(226, 181, 74, .28);
}
.btn-gold:hover { color: var(--ink); filter: brightness(1.06); transform: translateY(-2px); }
.btn-ghost { color: var(--gold-hi); background: rgba(226, 181, 74, .07); border: 1.5px solid var(--gold-line); }
.btn-ghost:hover { color: #fff3cf; background: rgba(226, 181, 74, .14); }
.btn-sm { font-size: 16px; padding: 11px 18px; border-radius: 13px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 22px;
  border-radius: 16px; border: 1.5px solid var(--gold-line); background: rgba(10, 16, 24, .7);
  color: var(--text); min-width: 220px; position: relative;
}
.store svg { width: 30px; height: 30px; flex-shrink: 0; }
.store small { display: block; color: var(--muted); font-size: 14px; line-height: 1.2; }
.store b { display: block; font-family: system-ui, sans-serif; font-size: 19px; line-height: 1.3; direction: ltr; text-align: right; }
.store .soon {
  position: absolute; top: -11px; inset-inline-start: 14px; font-family: var(--kufi); font-size: 13px;
  background: var(--seal); color: #fff; padding: 2px 10px; border-radius: 999px; line-height: 1.6;
}

/* --- hero ------------------------------------------------------------------------ */
.hero { padding: 40px 0 70px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--gold-line); background: rgba(226, 181, 74, .08); color: var(--gold-hi);
  font-size: 16px; font-weight: 700;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--play); box-shadow: 0 0 0 4px rgba(47, 163, 90, .25); }
.hero h1 {
  font-family: var(--kufi); font-weight: 700; margin: 18px 0 10px;
  font-size: clamp(46px, 7vw, 88px); line-height: 1.15;
  background: linear-gradient(180deg, #fff3cf 0%, var(--gold-hi) 35%, var(--gold) 70%, #b98a2e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(226, 181, 74, .25));
}
.hero .lead { font-size: clamp(19px, 2.1vw, 22px); color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.hero .lead b { color: var(--text); }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 34px; }
.stat b { display: block; font-size: 34px; color: var(--gold-hi); line-height: 1.2; font-weight: 700; }
.stat span { color: var(--muted); font-size: 16px; }

/* the arch and the phone */
.stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.arch {
  position: absolute; inset: 10px 8% 0; border-radius: 50% 50% 22px 22px / 34% 34% 22px 22px;
  background:
    radial-gradient(70% 55% at 50% 30%, rgba(226, 181, 74, .22), transparent 70%),
    linear-gradient(180deg, rgba(42, 28, 17, .55), rgba(12, 22, 34, .2));
  border: 2px solid var(--gold-line);
  box-shadow: inset 0 0 0 10px rgba(10, 16, 24, .55), inset 0 0 0 12px var(--gold-faint), 0 30px 80px rgba(0, 0, 0, .5);
}
.arch::after {
  content: ""; position: absolute; inset: 22px; border-radius: inherit; border: 1px dashed rgba(226, 181, 74, .22);
}
.lantern { position: absolute; top: -12px; width: 46px; transform-origin: 50% 0; animation: sway 4.5s ease-in-out infinite; z-index: 2; }
.lantern.l1 { inset-inline-start: 14%; }
.lantern.l2 { inset-inline-end: 14%; animation-delay: -2.2s; }
.lantern svg { width: 46px; height: 120px; filter: drop-shadow(0 0 18px rgba(255, 196, 92, .55)); }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* An ordinary phone (owner: not an iPhone): a thin frame, the small camera
   in the frame ABOVE the screen, so nothing of the game is covered. */
.phone {
  position: relative; z-index: 1; width: 290px; border-radius: 38px; padding: 26px 10px 16px;
  background: linear-gradient(145deg, #2c2118, #0d0907);
  box-shadow: 0 0 0 2px #4a3725, 0 40px 80px rgba(0, 0, 0, .65), 0 0 60px rgba(226, 181, 74, .18);
}
.phone::before {
  content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%; background: #0b0f14;
  box-shadow: inset 0 0 0 2px #233042, 0 0 0 1px #000;
}
.phone::after {
  content: ""; position: absolute; top: 12px; left: calc(50% + 16px);
  width: 34px; height: 3px; border-radius: 3px; background: #050403; opacity: .8;
}
.screen { position: relative; width: 100%; aspect-ratio: 540 / 1065; border-radius: 22px; overflow: hidden; background: #000; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.screen img.on { opacity: 1; }
.float { position: absolute; z-index: 3; animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45)); }
.float.f1 { width: 104px; top: 90px; inset-inline-end: 2%; }
.float.f2 { width: 92px; bottom: 70px; inset-inline-start: 1%; animation-delay: -2.5s; }
.float.f3 { width: 64px; top: 46%; inset-inline-start: 6%; animation-delay: -1.2s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }

/* --- sections ------------------------------------------------------------------ */
section { padding: 90px 0; position: relative; }
.head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.kicker { color: var(--gold); font-family: var(--naskh); font-weight: 700; font-size: 17px; }
.head h2 { font-family: var(--kufi); font-weight: 700; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.3; margin: 6px 0 12px; color: var(--text); }
.head p { color: var(--muted); margin: 0; font-size: 19px; }
.divider { width: 240px; height: 24px; margin: 18px auto 0; background: url("../img/divider.svg") center / contain no-repeat; opacity: .9; }

/* manuscript frame: walnut, a gold hairline and an inner line */
.frame {
  position: relative; background: linear-gradient(180deg, rgba(42, 28, 17, .92), rgba(25, 17, 10, .94));
  border: 1.5px solid var(--gold-line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.frame::before {
  content: ""; position: absolute; inset: 7px; border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(226, 181, 74, .16); pointer-events: none;
}

/* modes */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mode { padding: 26px 22px 24px; transition: transform .25s, border-color .25s; }
.mode:hover { transform: translateY(-6px); border-color: var(--gold); }
.mode img { width: 84px; height: 84px; margin-bottom: 8px; }
.mode h3 { font-family: var(--kufi); font-weight: 700; color: var(--gold-hi); font-size: 24px; margin: 4px 0 6px; line-height: 1.4; }
.mode p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.85; }
.tag { position: absolute; top: 18px; inset-inline-end: 18px; font-size: 13px; font-weight: 700; padding: 2px 12px;
  border-radius: 999px; background: var(--seal); color: #fff; }
.mode.star { background: linear-gradient(180deg, rgba(122, 32, 30, .55), rgba(25, 17, 10, .94)); }

/* question types */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.qtype { padding: 26px; overflow: hidden; }
.qtype .pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; border-radius: 999px;
  color: #fff; font-family: var(--kufi); font-weight: 700; font-size: 16px; }
.qtype h3 { font-family: var(--kufi); font-weight: 700; font-size: 24px; margin: 14px 0 6px; color: var(--text); }
.qtype p { margin: 0 0 18px; color: var(--muted); font-size: 16.5px; }
.mock { background: var(--parchment); color: var(--ink); border-radius: 16px; padding: 14px; box-shadow: inset 0 0 0 2px rgba(59, 36, 20, .15); }
.mock .q { font-weight: 700; font-size: 16px; margin-bottom: 10px; line-height: 1.7; }
.opt { display: flex; align-items: center; gap: 10px; background: #fff8e8; border: 1.5px solid #d9c49a;
  border-radius: 12px; padding: 5px 10px; margin-top: 7px; font-size: 15.5px; }
.opt i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--parchment); font-size: 13px; flex-shrink: 0; }
.opt.right { background: #e3f3e6; border-color: #3f9a5f; }
.calc { background: #23303b; border-radius: 14px; padding: 12px; }
.calc .disp { background: #9fbf8f; color: #17240f; border-radius: 8px; padding: 6px 12px; text-align: left; direction: ltr;
  font-size: 30px; font-weight: 700; letter-spacing: .04em; box-shadow: inset 0 3px 8px rgba(0, 0, 0, .3); }
.calc .keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; direction: ltr; }
.calc .keys span { background: #3a4a57; color: #e8eef2; text-align: center; border-radius: 7px; padding: 4px 0; font-size: 15px; font-weight: 700; }
.calc .keys span.ok { background: var(--closest); }
.crt { background: #0e1a12; border: 3px solid #cfc6a8; border-radius: 14px; padding: 10px 12px; font-family: var(--kufi); }
.crt div { color: #6cf08f; text-shadow: 0 0 8px rgba(108, 240, 143, .55); border: 1px solid rgba(108, 240, 143, .35);
  border-radius: 6px; padding: 2px 10px; margin-top: 6px; display: flex; justify-content: space-between; font-size: 16px; }
.crt div b { color: #0e1a12; background: #6cf08f; border-radius: 4px; padding: 0 7px; font-family: var(--naskh); }
.timer { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 15px; }
.timer svg { width: 20px; height: 20px; }

/* invasion spotlight */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.spot .pair { display: flex; gap: 18px; justify-content: center; }
.spot .pair .shot:nth-child(2) { margin-top: 70px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.ticks li span { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px;
  background: rgba(226, 181, 74, .1); border: 1px solid var(--gold-line); }
.ticks b { display: block; color: var(--text); font-family: var(--kufi); font-weight: 700; font-size: 20px; line-height: 1.5; }
.ticks p { margin: 0; color: var(--muted); font-size: 16.5px; }
.spot h2 { font-family: var(--kufi); font-weight: 700; font-size: clamp(32px, 4.4vw, 50px); margin: 6px 0 10px; line-height: 1.3; }
.spot .intro { color: var(--muted); margin: 0; font-size: 19px; }

/* phone-shaped screenshots */
.shot { width: 230px; flex: 0 0 auto; border-radius: 30px; padding: 8px; background: linear-gradient(145deg, #2c2118, #0d0907);
  box-shadow: 0 0 0 1.5px #4a3725, 0 24px 50px rgba(0, 0, 0, .55); }
.shot img { border-radius: 23px; width: 100%; height: auto; aspect-ratio: 540 / 1065; object-fit: cover; }

/* gallery */
.gallery { position: relative; }
.rail { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 6px 30px;
  scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail figure { margin: 0; scroll-snap-align: center; text-align: center; }
.rail figcaption { margin-top: 12px; color: var(--muted); font-size: 16px; }
.rail figcaption b { display: block; color: var(--gold-hi); font-family: var(--kufi); font-size: 19px; }
.arrows { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.arrows button { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--gold-line); background: rgba(226, 181, 74, .07);
  color: var(--gold-hi); font-size: 22px; cursor: pointer; transition: background .2s; }
.arrows button:hover { background: rgba(226, 181, 74, .18); }

/* features: a bento of the game's worlds */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cell { padding: 26px; overflow: hidden; }
.cell h3 { font-family: var(--kufi); font-weight: 700; color: var(--gold-hi); font-size: 24px; margin: 0 0 6px; line-height: 1.4; }
.cell p { margin: 0; color: var(--muted); font-size: 16.5px; }
.c-city { grid-column: span 3; grid-row: span 2; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; }
.c-city .shot { width: 200px; margin-bottom: -60px; }
.c-pass { grid-column: span 3; background: linear-gradient(135deg, rgba(91, 35, 145, .55), rgba(25, 17, 10, .95)); }
.c-pass .ladder { display: flex; gap: 8px; margin-top: 16px; direction: ltr; justify-content: flex-end; }
.c-pass .ladder span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: #241536; border: 2px solid var(--gold-line); color: var(--gold-hi); }
.c-pass .ladder span.done { background: var(--gold); color: var(--ink); border-color: var(--gold-hi); }
.c-wheel { grid-column: span 3; }
.c-stickers, .c-levels, .c-board { grid-column: span 2; }
.c-wheel { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.c-wheel img { width: 86px; height: 86px; animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.c-stickers .row { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.c-stickers .row img { width: 48px; height: 48px; transition: transform .2s; }
.c-stickers .row img:hover { transform: scale(1.18) rotate(-6deg); }
.c-levels .steps { display: flex; align-items: flex-end; gap: 6px; margin-top: 14px; }
.c-levels .steps img { width: 46px; height: 46px; border-radius: 50%; background: #0c1622; border: 2px solid var(--gold-line); }
.c-levels .steps img:nth-child(2) { width: 52px; height: 52px; }
.c-levels .steps img:nth-child(3) { width: 58px; height: 58px; }
.c-levels .steps img:nth-child(4) { width: 64px; height: 64px; border-color: var(--gold); }
.c-shield { grid-column: span 6; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.board { margin-top: 14px; display: grid; gap: 7px; }
.board div { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; background: rgba(12, 22, 34, .6);
  border: 1px solid rgba(226, 181, 74, .18); border-radius: 12px; padding: 4px 12px; font-size: 16px; }
.board div i { font-style: normal; font-weight: 700; color: var(--gold-hi); }
.board div b { color: var(--gold); font-weight: 700; }
.shield-row { display: flex; gap: 8px; margin-top: 14px; align-items: center; color: var(--muted); font-size: 15px; }
.shield-row svg { width: 30px; height: 30px; }

/* faq */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 4px 24px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; font-family: var(--kufi); font-weight: 700; font-size: 20px; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 28px; line-height: 1; transition: transform .25s; font-family: var(--naskh); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* call to action */
.cta { text-align: center; padding: 56px 28px; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 80% at 50% 0%, rgba(226, 181, 74, .18), transparent 70%); }
.cta img.logo { width: 150px; margin: 0 auto 6px; filter: drop-shadow(0 10px 30px rgba(226, 181, 74, .35)); }
.cta h2 { font-family: var(--kufi); font-weight: 700; font-size: clamp(30px, 4vw, 46px); margin: 6px 0 8px; }
.cta p { color: var(--muted); margin: 0 auto 26px; max-width: 560px; }
.cta .ctas { justify-content: center; position: relative; z-index: 1; }

/* footer */
footer.site { border-top: 1px solid var(--gold-faint); padding: 44px 0 30px; margin-top: 30px; background: rgba(7, 12, 19, .7); }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
footer.site h4 { font-family: var(--kufi); color: var(--gold); margin: 0 0 10px; font-size: 18px; }
footer.site p, footer.site li { color: var(--muted); font-size: 15.5px; margin: 0; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer.site ul a { color: var(--muted); }
footer.site ul a:hover { color: var(--gold-hi); }
.copy { text-align: center; color: #8f8167; font-size: 14px; margin-top: 30px; }

/* legal pages */
.doc-hero { padding: 54px 0 20px; text-align: center; }
.doc-hero h1 { font-family: var(--kufi); font-weight: 700; color: var(--gold-hi); font-size: clamp(34px, 5vw, 52px); margin: 0; line-height: 1.3; }
.doc-hero p { color: var(--muted); margin: 6px 0 0; }
.doc { max-width: 860px; margin: 20px auto 40px; padding: 34px clamp(20px, 4vw, 44px); }
.doc h2 { font-family: var(--kufi); font-weight: 700; color: var(--gold); font-size: 25px; margin: 30px 0 6px; line-height: 1.5; }
.doc h2:first-child { margin-top: 0; }
.doc p { margin: 0 0 12px; }
.doc a { text-decoration: underline; text-underline-offset: 4px; }
.notfound { text-align: center; padding: 120px 0 60px; }
.notfound .big { font-family: var(--naskh); font-weight: 700; font-size: 110px; line-height: 1; color: var(--gold); opacity: .9; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* --- phones and tablets -------------------------------------------------------- */
@media (max-width: 1020px) {
  .modes { grid-template-columns: repeat(2, 1fr); }
  .types { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .c-city, .c-pass, .c-board, .c-shield, .c-wheel, .c-stickers, .c-levels { grid-column: span 2; grid-row: auto; }
  .c-city .shot { margin-bottom: 0; }
  .c-shield { grid-template-columns: 1fr; }
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
  footer.site .about { grid-column: span 2; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 76px; inset-inline: 0; flex-direction: column; padding: 14px 20px 20px;
    background: rgba(8, 14, 22, .96); border-bottom: 1px solid var(--gold-faint); }
  .nav.open { display: flex; }
  .menu-btn { display: block; }
  .top .cta-top { display: none; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .ctas, .stats { justify-content: center; }
  .stage { min-height: 600px; order: 2; }
  .spot { grid-template-columns: 1fr; }
  .spot .text { text-align: center; }
  .ticks { text-align: start; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  section { padding: 64px 0; }
  .modes { grid-template-columns: 1fr; }
  .c-city { grid-template-columns: 1fr; }
  .c-city .shot { margin-inline: auto; }
  .phone { width: 240px; margin-top: 40px; }
  .stage { min-height: 580px; }
  .arch { inset: 10px 0 0; }
  .lantern { top: -6px; width: 34px; }
  .lantern svg { width: 34px; height: 90px; }
  .lantern.l1 { inset-inline-start: 5%; }
  .lantern.l2 { inset-inline-end: 5%; }
  .float.f1 { width: 80px; top: 60px; }
  .float.f2 { width: 72px; }
  .float.f3 { display: none; }
  .spot .pair .shot { width: 160px; }
  .shot { width: 200px; }
  .store { min-width: 0; width: 100%; max-width: 320px; }
  footer.site .wrap { grid-template-columns: 1fr; }
  footer.site .about { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: #1d1308; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 10px; }
