/* app.gamesup.org — GamesUP app landing page */
@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal.woff2") format("woff2"); font-weight: 100 650; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-ExtraBold.woff2") format("woff2"); font-weight: 651 849; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-Black.woff2") format("woff2"); font-weight: 850 900; font-display: swap; }

:root {
  --deep: #0B1028; --navy: #141B3C; --navy-2: #1E2756;
  --gold: #F5B41A; --gold-2: #FFE08A; --gold-d: #C98A00; --coral: #FF5A5F; --teal: #2EC4B6; --mint: #7FF5E8; --purple: #8E5BD8;
  --ink: #fff; --ink-2: rgba(255,255,255,.74); --ink-3: rgba(255,255,255,.5);
  --line: rgba(255,255,255,.12); --glass: rgba(255,255,255,.05); --glass-2: rgba(255,255,255,.09);
  --r: 22px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 500 17px/1.7 "Tajawal", "Segoe UI", Tahoma, sans-serif; overflow-x: hidden;
  background: var(--deep) url("pattern.svg") repeat; background-size: 220px;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 600px at 85% -10%, rgba(142,91,216,.35), transparent 60%),
              radial-gradient(800px 600px at 0% 35%, rgba(46,196,182,.14), transparent 60%),
              linear-gradient(180deg, rgba(11,16,40,.55), rgba(11,16,40,.92) 40%, var(--deep)); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); }
h1, h2, h3 { line-height: 1.25; margin: 0; }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--gold); color: var(--deep); padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(12px); background: rgba(11,16,40,.72); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; direction: ltr; }
.brand img { border-radius: 11px; }
.brand b { font-weight: 900; font-size: 22px; letter-spacing: .3px; }
.brand b span { color: var(--gold); }
.top-nav { display: flex; align-items: center; gap: 18px; }
.top-nav > a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 700; }
.top-nav > a:not(.btn):hover { color: var(--ink); }
@media (max-width: 720px) { .top-nav > a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 14px; font: 800 16px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; border: 0; }
.btn.sm { padding: 9px 14px; font-size: 14px; border-radius: 12px; }
.btn.ghost { color: var(--ink); background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line); }
.btn.gold { color: #3A2400; background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-d)); box-shadow: 0 4px 0 #8F6100; }

/* store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 196px; padding: 10px 20px 10px 22px; border-radius: 16px; color: #fff; text-decoration: none;
  background: #05070f; border: 1px solid rgba(255,255,255,.28); transition: transform .15s, box-shadow .15s, border-color .15s; }
.store .ic { width: 32px; height: 32px; }
.store span { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.store small { font-size: 12px; font-weight: 700; opacity: .8; }
.store b { font-size: 21px; font-weight: 900; direction: ltr; text-align: end; white-space: nowrap; }
.store small { white-space: nowrap; }
a.store:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 10px 26px rgba(0,0,0,.45); }
.store.mine { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,180,26,.25), 0 12px 30px rgba(245,180,26,.18); order: -1; }
.store.soon { opacity: .55; cursor: default; }

/* hero */
.hero { padding: 54px 0 30px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: rgba(245,180,26,.12); border: 1px solid rgba(245,180,26,.35); color: var(--gold-2); font-weight: 800; font-size: 15px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 74px); font-weight: 900; letter-spacing: -.5px; }
.hero h1 em, .sec-h em { font-style: normal; color: var(--gold); text-shadow: 0 6px 30px rgba(245,180,26,.25); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); margin: 18px 0 0; max-width: 560px; }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-weight: 700; font-size: 15px; color: var(--ink-2); }
.chips .ic { color: var(--teal); }
.alt-play { margin: 18px 0 0; color: var(--ink-3); font-size: 15px; }

.hero-art { position: relative; height: 600px; }
.phone { position: relative; margin: 0; border-radius: 42px; padding: 10px; background: linear-gradient(160deg, #2b3266, #11163a); box-shadow: 0 0 0 2px rgba(255,255,255,.08) inset, 0 30px 70px rgba(0,0,0,.6); }
.phone img { width: 100%; height: auto; border-radius: 32px; aspect-ratio: 390 / 844; object-fit: cover; }
.hero-art .phone.main { position: absolute; width: 280px; inset-inline-start: 50%; transform: translateX(10%) rotate(-3deg); top: 0; z-index: 3; }
.hero-art .phone.side { position: absolute; width: 230px; inset-inline-start: 4%; top: 70px; transform: rotate(6deg); z-index: 2; opacity: .95; }
.hero-art .card { position: absolute; width: 150px; border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.hero-art .c1 { inset-inline-end: 2%; top: 380px; transform: rotate(-14deg); z-index: 4; }
.hero-art .c2 { inset-inline-end: 64%; top: 6px; width: 120px; transform: rotate(12deg); z-index: 1; opacity: .9; }
.hero-art .c3 { inset-inline-end: 72%; top: 420px; width: 130px; transform: rotate(10deg); z-index: 4; }
@media (max-width: 900px) {
  .hero { padding-top: 34px; }
  .hero-in { grid-template-columns: 1fr; gap: 10px; }
  .hero-art { height: 520px; max-width: 460px; width: 100%; margin: 20px auto 0; }
  .hero-art .phone.main { width: 230px; transform: translateX(-50%) rotate(-3deg); inset-inline-start: auto; left: 54%; }
  .hero-art .phone.side { width: 190px; left: 2%; inset-inline-start: auto; top: 60px; }
  .hero-art .card { width: 110px; }
  .hero-art .c1 { right: auto; left: 72%; top: 330px; }
  .hero-art .c2 { display: none; }
  .hero-art .c3 { right: auto; left: 0; top: 360px; width: 96px; }
}
@media (max-width: 420px) { .store { min-width: 0; flex: 1 1 150px; padding: 10px 14px; gap: 10px; } .store .ic { width: 26px; height: 26px; } .store b { font-size: 17px; } .hero-art { height: 460px; } .hero-art .phone.main { width: 205px; } .hero-art .phone.side { width: 160px; } }

/* sections */
.sec { padding: 64px 0 10px; }
.sec-h { font-size: clamp(30px, 4.2vw, 46px); font-weight: 900; text-align: center; }
.sec-sub { text-align: center; color: var(--ink-3); margin: 8px 0 0; }

.games { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 34px; }
.game { display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg, rgba(30,39,86,.85), rgba(20,27,60,.85)); border: 1px solid rgba(245,180,26,.2); border-radius: var(--r); padding: 14px; transition: transform .2s, border-color .2s; }
.game:hover { transform: translateY(-4px); border-color: rgba(245,180,26,.55); }
.game img { border-radius: 14px; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 12px 28px rgba(0,0,0,.45); }
.game h3 { font-size: 21px; font-weight: 900; color: var(--gold-2); }
.game .pl { display: flex; align-items: center; gap: 6px; margin: 2px 0 6px; color: var(--teal); font-weight: 800; font-size: 14px; }
.game p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
@media (max-width: 1080px) { .games { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .games { grid-template-columns: 1fr; }
  .game { flex-direction: row; align-items: flex-start; }
  .game img { width: 104px; flex: none; }
}

.shots { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px max(16px, (100% - 1160px) / 2) 26px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.shot { flex: 0 0 230px; margin: 0; scroll-snap-align: center; }
.shot .phone { border-radius: 36px; padding: 8px; }
.shot .phone img { border-radius: 28px; }
.shot figcaption { margin-top: 12px; text-align: center; color: var(--ink-2); font-weight: 700; font-size: 15px; line-height: 1.5; }
.shots:focus-visible { outline-offset: -4px; }

.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.feat { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.feat .fi { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(245,180,26,.25), rgba(142,91,216,.25)); color: var(--gold-2); margin-bottom: 12px; }
.feat .fi .ic { width: 26px; height: 26px; }
.feat h3 { font-size: 19px; font-weight: 900; }
.feat p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
@media (max-width: 980px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feats { gap: 10px; } .feat { padding: 14px; } .feat .fi { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 8px; } .feat h3 { font-size: 16px; } .feat p { font-size: 13.5px; line-height: 1.55; } }

.how { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.how li { position: relative; padding: 22px 20px 20px; border-radius: var(--r); background: linear-gradient(180deg, rgba(30,39,86,.8), rgba(20,27,60,.8)); border: 1px solid var(--line); }
.how b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: #3A2400; font-size: 22px; font-weight: 900; margin-bottom: 12px; }
.how h3 { font-size: 20px; font-weight: 900; }
.how p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 34px; border-radius: 30px;
  background: radial-gradient(600px 300px at 90% 0%, rgba(245,180,26,.25), transparent 70%), linear-gradient(135deg, #2a1f63, #141B3C 70%); border: 1px solid rgba(245,180,26,.35); box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.cta h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 900; }
.cta p { margin: 6px 0 0; color: var(--ink-2); font-size: 18px; }
.cta .stores { margin-top: 20px; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 700; font-size: 14px; }
.qr img { background: #fff; padding: 8px; border-radius: 16px; width: 150px; height: 150px; }
@media (max-width: 720px) { .qr { display: none; } .cta { padding: 24px; } }

.faq { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 18px; padding: 12px 0; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 900; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; color: var(--ink-2); }

.foot { margin-top: 70px; padding: 34px 0 110px; border-top: 1px solid var(--line); background: rgba(5,7,15,.6); }
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.soc { display: flex; gap: 12px; }
.soc a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--glass-2); color: var(--ink); }
.soc a:hover { background: var(--gold); color: var(--deep); }
.soc .ic { width: 22px; height: 22px; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.links a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 15px; }
.links a:hover { color: var(--gold-2); }
.copy { color: var(--ink-3); font-size: 13px; margin: 0; max-width: 640px; }

/* sticky download bar (phones) */
.dlbar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px;
  background: rgba(20,27,60,.96); border: 1px solid rgba(245,180,26,.45); box-shadow: 0 14px 40px rgba(0,0,0,.55); transform: translateY(140%); transition: transform .3s; }
.dlbar.on { transform: none; }
.dlbar img { border-radius: 10px; }
.dlbar span { display: flex; flex-direction: column; flex: 1; line-height: 1.25; }
.dlbar small { color: var(--ink-3); font-size: 12.5px; }
@media (min-width: 901px) { .dlbar { display: none !important; } }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rv { opacity: 1; transform: none; } * { transition: none !important; animation: none !important; } }
