/* Win Zone & ShootPlus subscription flow (Version B) — mobile first, Arabic first. */
/* Layout: one narrow mobile column on the Winzone night-stadium palette. Hero (offer) -> form card -> trust -> games -> legal. */
:root {
  --bg: #08090d;        /* Winzone background */
  --card: #13151c;
  --line: #262a36;
  --ink: #ffffff;
  --muted: #a9afbf;
  --mint: #2ee6a6;      /* Winzone accent */
  --mint-ink: #04120c;
  --gold: #ffcc4d;
  --err: #ff6b7f;
  --field: #ffffff;
  --field-ink: #0d0f14;
  --font: "Readex Pro", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 15px; line-height: 1.55; -webkit-tap-highlight-color: transparent;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
button, input, select { font: inherit; color: inherit; }
svg { display: block; }
.wrap { max-width: 440px; margin: 0 auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* header */
.hdr { display: grid; grid-template-columns: 40px 1fr 64px; align-items: center; height: 64px; }
.menu { width: 28px; height: 20px; padding: 0; border: 0; background: none; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; }
.menu span { height: 3px; border-radius: 2px; background: var(--ink); }
.logos { justify-self: center; display: flex; align-items: center; gap: 12px; direction: ltr; }
.logo { color: var(--ink); }
.logo svg { width: 74px; height: 35px; }
.logo-sep { width: 1px; height: 30px; background: var(--line); }
.logo-sp { width: 58px; height: 40px; object-fit: contain; }
.lang { justify-self: end; position: relative; }
.lang select { appearance: none; -webkit-appearance: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 26px 4px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.lang svg { position: absolute; right: 10px; top: 50%; width: 9px; height: 6px; transform: translateY(-50%); pointer-events: none; }
[dir="rtl"] .lang select { padding: 4px 12px 4px 26px; }
[dir="rtl"] .lang svg { right: auto; left: 10px; }

/* hero */
.hero { position: relative; text-align: center; padding-block: 6px 18px; overflow: hidden; }
.pitch { position: absolute; inset: -10px -40px auto; height: 260px; opacity: .13; pointer-events: none; color: var(--mint); }
.pitch svg { width: 100%; height: 100%; }
.badge { position: relative; display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: #1a1300;
  font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.badge svg { width: 15px; height: 15px; }
.hero h1 { position: relative; margin: 12px 0 0; font-size: 27px; line-height: 1.3; font-weight: 700; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--mint); }
.prize { position: relative; margin: 14px auto 0; display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 16px; border: 1px solid #3a3218; border-radius: 12px; background: linear-gradient(180deg, #1d1a10, #13151c); }
.prize small { color: var(--muted); font-size: 13px; }
.prize b { color: var(--gold); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* form card */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px 16px; }
.prog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.prog i { height: 4px; border-radius: 4px; background: var(--line); transition: background-color .3s; }
.prog i.on { background: var(--mint); }
.label { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; font-weight: 600; font-size: 15px; }
.label span { color: var(--muted); font-weight: 400; font-size: 12px; }
.field { position: relative; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 12px;
  background: var(--field); color: var(--field-ink); border: 2px solid transparent; border-radius: 12px; direction: ltr; }
.field:focus-within { border-color: var(--mint); }
.field.bad { border-color: var(--err); }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--field-ink);
  font-size: 19px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.field input::placeholder { color: #a3a8b4; font-weight: 400; letter-spacing: .04em; }
.sep { width: 1px; align-self: stretch; margin: 12px 0; background: #d9dce3; }
.pre-fixed { font-weight: 700; font-size: 17px; color: var(--field-ink); font-variant-numeric: tabular-nums; }
.ok { width: 22px; height: 22px; flex: none; color: #11a36f; }
.lock { width: 20px; height: 20px; flex: none; color: var(--field-ink); }
.dest { margin: 8px 0 0; font-size: 13px; color: var(--mint); }
.dest b { color: var(--ink); }

.cta { margin-top: 12px; width: 100%; height: 56px; border: 0; border-radius: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--mint); color: var(--mint-ink); font-weight: 700; font-size: 18px;
  box-shadow: 0 6px 22px rgba(46,230,166,.28); transition: opacity .2s, transform .1s; }
.cta:active { transform: scale(.985); }
.cta svg { width: 20px; height: 20px; }
[dir="rtl"] .cta svg { transform: scaleX(-1); }
.cta:disabled { opacity: .45; box-shadow: none; cursor: default; }
.cta.busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(4,18,12,.35); border-top-color: var(--mint-ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta:focus-visible, .link:focus-visible, .lang select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.price { margin: 10px 0 0; text-align: center; font-size: 12px; line-height: 1.6; color: var(--muted); }
.price b { color: var(--ink); font-weight: 600; }
.sent { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.sent b { color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.row { display: flex; justify-content: center; gap: 14px; margin-top: 12px; font-size: 13px; }
.link { border: 0; background: none; padding: 0; color: var(--mint); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link:disabled { color: var(--muted); text-decoration: none; cursor: default; }

/* trust */
.trust { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trust li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; line-height: 1.35; color: var(--muted); }
.trust svg { width: 22px; height: 22px; color: var(--mint); }

/* sections */
h2 { margin: 30px 0 12px; font-size: 19px; font-weight: 700; }
.games { display: grid; gap: 10px; }
.game { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.game .ic { width: 44px; height: 44px; border-radius: 12px; background: #0f241c; color: var(--mint); display: grid; place-items: center; }
.game .ic svg { width: 24px; height: 24px; }
.game h3 { margin: 0; font-size: 15px; font-weight: 600; }
.game p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 12px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mint); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.legal { margin: 26px 0 96px; padding: 14px; border-radius: 12px; background: #0d0f15; color: var(--muted); font-size: 12px; line-height: 1.7; }
.legal p { margin: 0; }
.legal b { color: var(--ink); font-weight: 600; }
.legal p + p { margin-top: 6px; }

/* sticky CTA when the form is off screen */
.sticky { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, rgba(8,9,13,0), var(--bg) 35%); transform: translateY(110%); transition: transform .25s; }
.sticky.show { transform: none; }
.sticky .cta { max-width: 440px; margin: 0 auto; }

/* success */
.success { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: grid; place-items: center; text-align: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
#confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.s-in { position: relative; max-width: 360px; }
.trophy { width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: #1d1a10; color: var(--gold); }
.trophy svg { width: 52px; height: 52px; }
.s-in h1 { margin: 0; font-size: 26px; font-weight: 700; }
.s-in .s-sub { margin: 8px 0 0; color: var(--muted); }
.count { display: inline-block; min-width: 1.4em; color: var(--mint); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.s-in .cta { margin-top: 16px; text-decoration: none; }

/* toast: API / form messages, top of the screen, tap to dismiss */
.toast { position: fixed; z-index: 40; top: max(12px, env(safe-area-inset-top, 0px)); left: 50%;
  width: min(408px, calc(100% - 32px)); transform: translate(-50%, -16px);
  padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); border-inline-start: 4px solid var(--err);
  background: var(--card); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.45);
  font-size: 14px; line-height: 1.5; text-align: start; cursor: pointer;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s, visibility .2s; }
.toast.show { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.toast.success { border-inline-start-color: var(--mint); }

[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
