/* ASDA 2 REMAKE public site, look "Night" (owner, 2026-10-25): the open maps full bleed under a navy fade, the
   game's zone caption (a cream name between gold hairlines that end in diamonds) as the one ornament, gold buttons.
   Arabic RTL is the default; offsets are logical and the side fade flips with [dir]. One dark look, by choice. */
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('/assets/fonts/ibm-plex-sans-arabic-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('/assets/fonts/ibm-plex-sans-arabic-600.woff2') format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('/assets/fonts/ibm-plex-sans-arabic-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --g: 20px;
  --bg: #050c24; --bg-2: #0a1534; --card: #0c1a40;
  --line: rgba(150, 180, 255, .14); --line-2: rgba(150, 180, 255, .26);
  --text: #eef3ff; --text-2: #b0bddd; --text-3: #8393bb;
  --primary: #f6c445; --primary-hi: #ffd35c; --on-primary: #221700;
  --primary-glow: 0 10px 30px -12px rgba(246, 196, 69, .6), inset 0 1px 0 rgba(255, 255, 255, .5);
  --ghost-bg: rgba(255, 255, 255, .07); --ghost-bg-hi: rgba(255, 255, 255, .13); --ghost-line: rgba(255, 255, 255, .3);
  --accent: #6cc0ff; --ok: #8fd84a; --bad: #ff9184;
  --cap: #f3e2b4; --cap-line: #d4b060; --cap-shadow: 0 2px 12px rgba(0, 0, 0, .55);
  --field: #071029; --field-line: rgba(150, 180, 255, .24);
  --header-bg: rgba(5, 12, 36, .84);
  --shot-ring: 0 0 0 1px rgba(150, 180, 255, .22), 0 24px 50px -24px rgba(0, 0, 0, .8);
  --backdrop: rgba(2, 6, 20, .66);
  --toast-bg: #0d1c4a; --toast-line: rgba(255, 255, 255, .2);
  --shade: 5, 12, 36;   /* --bg as r, g, b for the hero's fades */
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.3; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1200px; margin-inline: auto; padding-left: max(var(--g), env(safe-area-inset-left, 0px)); padding-right: max(var(--g), env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.phone { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease), opacity 160ms;
}
.btn:active { transform: scale(.97); }
.btn:disabled { cursor: progress; opacity: .72; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--primary-glow); }
.btn-ghost { background: var(--ghost-bg); border-color: var(--ghost-line); color: var(--text); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--text-2); font-weight: 500; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:not(:disabled):hover { background: var(--primary-hi); }
  .btn-ghost:hover { background: var(--ghost-bg-hi); }
  .link:not(:disabled):hover, .nav a:hover, .foot nav a:hover { color: var(--text); }
}

/* Header: part of the picture over the hero, glass once the page scrolls. */
.top { position: fixed; inset: 0 0 auto; z-index: 20; padding-top: env(safe-area-inset-top, 0px); transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.top.solid { background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: .08em; direction: ltr; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; color: var(--text-2); font-weight: 500; font-size: 15px; transition: color 160ms; }
.top-end { margin-inline-start: auto; display: flex; align-items: center; gap: 20px; }
.top-end .link { min-height: 44px; }
.top:not(.solid) .nav a, .top:not(.solid) .link { color: rgba(255, 255, 255, .86); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

/* Zone caption: the game's zone title. */
.zc { display: flex; align-items: center; gap: 14px; direction: ltr; margin: 0; color: var(--cap); font-weight: 600; }
.zc span { white-space: nowrap; text-shadow: var(--cap-shadow); }
.zc i { flex: 1; min-width: 20px; height: 1px; position: relative; }
.zc i:first-child { background: linear-gradient(to right, transparent, var(--cap-line)); }
.zc i:last-child { background: linear-gradient(to left, transparent, var(--cap-line)); }
.zc i::after { content: ""; position: absolute; top: 50%; width: 6px; height: 6px; background: var(--cap-line); transform: translateY(-50%) rotate(45deg); }
.zc i:first-child::after { right: -3px; }
.zc i:last-child::after { left: -3px; }

/* Hero: full-bleed views of the open maps that change like the loading screen, each named like a zone. */
.hero { position: relative; isolation: isolate; min-height: clamp(660px, 58vw, 940px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -2; background: var(--bg-2); }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1400ms ease; }
.hero-art .map.on { opacity: 1; animation: drift 9s var(--ease) both; }
@keyframes drift { from { transform: scale(1.06); } to { transform: none; } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to bottom, rgba(var(--shade), .7) 0, rgba(var(--shade), 0) 20%),
  linear-gradient(to top, var(--bg) 0, rgba(var(--shade), .9) 20%, rgba(var(--shade), .35) 52%, rgba(var(--shade), 0) 74%); }
.hero-shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(var(--shade), .72), rgba(var(--shade), 0) 58%); }
[dir="ltr"] .hero-shade::after { background: linear-gradient(to right, rgba(var(--shade), .72), rgba(var(--shade), 0) 58%); }
.hero-in { width: 100%; padding-block: 132px 76px; }
.hero-copy { display: grid; gap: 18px; justify-items: start; max-width: 620px; }
.logo { width: clamp(240px, 30vw, 420px); height: auto; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .4)); }
.hero h1 { font-size: clamp(30px, 3.5vw, 48px); font-weight: 700; }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: #c9d4f0; max-width: 32em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.req { font-size: 14px; color: var(--text-3); }
.zone-now { position: absolute; inset-inline-end: max(32px, env(safe-area-inset-right, 0px)); bottom: 56px; width: min(340px, 30vw); font-size: 17px; }

/* World */
.world { padding-block: 64px 32px; }
.sec-head { display: grid; gap: 10px; margin-bottom: 40px; max-width: 720px; }
.sec-head h2 { font-size: clamp(26px, 2.7vw, 38px); font-weight: 700; }
.sec-head p { color: var(--text-2); font-size: 17px; }
.maps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; }
.maps figure { margin: 0; display: grid; gap: 14px; }
.shot { aspect-ratio: 16 / 9; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shot-ring); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.maps .zc { font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .maps li:hover .shot img { transform: scale(1.045); } }

/* Start: three steps on a gold hairline with diamond stops, the zone caption's ornament laid out as a path. */
.start { padding-block: 88px 104px; }
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; position: relative; }
.journey::before { content: ""; position: absolute; top: 9px; inset-inline: 0; height: 1px; background: linear-gradient(to right, transparent, var(--cap-line) 8%, var(--cap-line) 92%, transparent); }
.journey li { position: relative; display: grid; gap: 10px; align-content: start; justify-items: start; padding-top: 40px; min-width: 0; }
.journey li::before { content: ""; position: absolute; top: 4px; inset-inline-start: 0; width: 11px; height: 11px; background: var(--bg); border: 1.5px solid var(--cap-line); transform: rotate(45deg); }
.journey li:first-child::before { background: var(--cap-line); }
.journey .n { font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: .04em; }
.journey h3 { font-size: 22px; font-weight: 700; }
.journey p { color: var(--text-2); max-width: 30em; }
.journey .btn { margin-top: 8px; }
.journey small { color: var(--text-3); font-size: 13px; }
.help { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 22px; max-width: 760px; }
.help summary { cursor: pointer; color: var(--text-2); font-weight: 500; list-style: none; display: inline-flex; gap: 10px; align-items: center; min-height: 44px; }
.help summary::-webkit-details-marker { display: none; }
.help summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 180ms var(--ease); flex: none; }
[dir="rtl"] .help summary::before { transform: rotate(135deg); }
.help[open] summary::before { transform: rotate(45deg); }
.help p { margin-top: 6px; color: var(--text-2); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px max(28px, env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; }
.foot .brand img { width: 28px; height: 28px; border-radius: 7px; }
.foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-inline-start: auto; }
.foot nav a, .foot nav .link { color: var(--text-2); text-decoration: none; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.foot small { color: var(--text-3); font-size: 13px; }

/* Rules, terms and privacy (/legal): one language shown at a time. */
.doc-page { padding-block: 124px 72px; }
.doc-page .updated { max-width: 760px; margin: 0 auto 36px; font-size: 14px; color: var(--text-3); }
.doc { max-width: 760px; margin: 0 auto 64px; line-height: 1.85; color: var(--text-2); }
.doc h2 { margin-bottom: 18px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; color: var(--text); }
.doc ol, .doc ul { display: grid; gap: 10px; margin: 0 0 18px; padding-inline-start: 24px; }
.doc li::marker { color: var(--cap-line); }
.doc p + p, .doc ul + p, .doc ol + p { margin-top: 10px; }
.doc b { color: var(--text); font-weight: 600; }
.doc bdi { white-space: nowrap; }
html[lang="ar"] .doc-page [lang="en"], html[lang="en"] .doc-page [lang="ar"] { display: none; }
/* The pay guide (/pay): its title, questions that open in place, and the safety note. */
.doc h1 { margin-bottom: 14px; font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; color: var(--text); }
.doc details { border-top: 1px solid var(--line); }
.doc details:last-of-type { border-bottom: 1px solid var(--line); }
.doc summary { cursor: pointer; list-style: none; position: relative; min-height: 52px; padding-block: 13px; padding-inline-start: 19px; color: var(--text); font-weight: 500; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::before { content: ""; position: absolute; top: calc(50% - 4px); inset-inline-start: 0; width: 7px; height: 7px; border-right: 1.5px solid var(--cap-line); border-bottom: 1.5px solid var(--cap-line); transform: rotate(-45deg); transition: transform 180ms var(--ease); }
.doc [dir="rtl"] summary::before { transform: rotate(135deg); }
.doc details[open] summary::before { transform: rotate(45deg); }
.doc details p { padding: 0 0 16px; padding-inline-start: 19px; }
.doc .note { margin-top: 18px; padding: 14px 18px; border-inline-start: 2px solid var(--cap-line); border-start-end-radius: 10px; border-end-end-radius: 10px; background: var(--ghost-bg); }

/* The account sheet: sign-up and password reset */
.sheet {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  padding: 34px 30px 28px; border: 1px solid var(--line-2); border-radius: 20px;
  background: var(--card); color: var(--text); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), overlay 200ms allow-discrete, display 200ms allow-discrete;
}
.sheet:not([open]) { opacity: 0; transform: scale(.96) translateY(8px); }
@starting-style { .sheet[open] { opacity: 0; transform: scale(.96) translateY(8px); } }
.sheet::backdrop { background: var(--backdrop); transition: opacity 200ms, overlay 200ms allow-discrete, display 200ms allow-discrete; }
.sheet:not([open])::backdrop { opacity: 0; }
@starting-style { .sheet[open]::backdrop { opacity: 0; } }
.sheet h2 { font-size: 26px; font-weight: 700; padding-inline-end: 36px; }
.sheet section { display: grid; gap: 10px; }
.sheet form { display: grid; gap: 16px; margin-top: 14px; }
.muted { color: var(--text-2); }
.muted b, .muted bdi { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.x { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); cursor: pointer; }
.x svg { width: 20px; height: 20px; }
.x:hover { background: var(--ghost-bg-hi); color: var(--text); }
.dots { display: flex; gap: 6px; margin-bottom: 18px; }
.dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--line-2); transition: background-color 200ms; }
.dots i.on { background: var(--primary); }
.field { display: grid; gap: 6px; }
.field > span:first-child { font-weight: 600; font-size: 15px; }
.field input { width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--field-line); background: var(--field); color: var(--text); font: 500 16px/1 var(--font); transition: border-color 160ms, box-shadow 160ms; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.field small { font-size: 13.5px; line-height: 1.5; color: var(--text-3); min-height: 1em; }
.field.bad input { border-color: var(--bad); }
.field.bad small { color: var(--bad); }
.pw { position: relative; display: block; direction: ltr; }
.pw input { padding-right: 84px; }
.pw-toggle { position: absolute; top: 6px; right: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.pw-toggle:hover { background: var(--ghost-bg-hi); }
.code { height: 66px !important; text-align: center; font-size: 30px !important; font-weight: 600 !important; letter-spacing: .45em; padding-left: .45em !important; font-variant-numeric: tabular-nums; }
.code::placeholder { color: var(--text-3); opacity: .5; }
.form-error { padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); font-size: 14.5px; line-height: 1.55; }
.row-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 4px; }
.row-links .link { min-height: 44px; }
.row-links .link:disabled { color: var(--text-3); cursor: default; font-variant-numeric: tabular-nums; }
.fine { margin-top: 6px; text-align: center; }
.fine .link { min-height: 44px; font-size: 15px; }
.done { justify-items: center; text-align: center; }
.done .btn { margin-top: 10px; }
.ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, transparent); margin-bottom: 6px; }
.ok svg { width: 32px; height: 32px; }
@media (min-width: 721px) { .sheet[data-mode="signup"] .done-close { display: none; } }   /* the download button closes it there */
/* Turnstile draws here only when it needs the player to tick it. */
.captcha { display: flex; justify-content: center; }
.captcha.ask { margin-top: 16px; }

/* Toast: the game's navy notice pill */
.toast { position: fixed; left: 50%; bottom: max(28px, env(safe-area-inset-bottom, 0px)); z-index: 50; transform: translate(-50%, 14px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; background: var(--toast-bg); border: 1px solid var(--toast-line); color: #fff; font-weight: 500; font-size: 15px; white-space: nowrap;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6); transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .maps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
}
@media (max-width: 720px) {
  .desk, .desk-inline, .desk-block { display: none !important; }
  .phone:not([hidden]) { display: revert !important; }
  .ctas.phone { display: grid !important; width: 100%; justify-content: stretch; }
  .journey .btn.phone { display: inline-flex !important; }
  .top-in { height: 60px; gap: 16px; }
  .top-end { gap: 14px; }
  .top .brand span { display: none; }
  .top-end .btn { display: none; }   /* the hero carries the one call to create an account */
  html { scroll-padding-top: 68px; }
  .hero { min-height: max(680px, 100svh); }
  .hero-in { padding-block: 120px 40px; }
  .hero-shade { background:
    linear-gradient(to bottom, rgba(var(--shade), .6) 0, rgba(var(--shade), 0) 16%),
    linear-gradient(to top, var(--bg) 0, rgba(var(--shade), .92) 38%, rgba(var(--shade), .3) 62%, rgba(var(--shade), 0) 80%); }
  .hero-shade::after, .zone-now { display: none; }
  .hero-copy { gap: 14px; }
  .logo { width: min(270px, 74vw); }
  .ctas { width: 100%; margin-top: 6px; }
  .world { padding-block: 72px 16px; }
  .maps { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 80%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--g) * -1); padding: 6px var(--g) 12px; scrollbar-width: none; }
  .maps::-webkit-scrollbar { display: none; }
  .maps li { scroll-snap-align: center; }
  .start { padding-block: 64px 72px; }
  .journey { grid-template-columns: 1fr; gap: 30px; }
  .journey::before { top: 6px; bottom: 6px; inset-inline-start: 5px; inset-inline-end: auto; width: 1px; height: auto; background: linear-gradient(to bottom, var(--cap-line), var(--cap-line) 85%, transparent); }
  .journey li { padding-top: 0; padding-inline-start: 34px; }
  .foot nav { margin-inline-start: 0; width: 100%; }
  .doc-page { padding-block: 100px 48px; }
  .sheet { width: 100vw; max-width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; padding: 28px max(var(--g), env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(var(--g), env(safe-area-inset-left, 0px)); }
  .sheet:not([open]) { transform: translateY(24px); }
  @starting-style { .sheet[open] { transform: translateY(24px); } }
  .toast { white-space: normal; width: max-content; max-width: calc(100vw - 32px); text-align: center; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
