:root {
  --ink: #1A1A1A;
  --paper: #FFF8EC;
  --white: #FFFFFF;
  --muted: #4A4640;
  --divider: #D9D1C3;
  --sun: #FFD23F;
  --coral: #FF5A3C;
  --teal: #22B8A0;
  --lilac: #B8A4FF;
  --line: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --display: "Lalezar", "Arial Black", sans-serif;
  --body: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: var(--line);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 2px solid var(--ink);
}

.nav { display: flex; gap: 6px; }

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 2px solid transparent;
}

.nav a:hover { border-color: var(--ink); }

.nav a.studio {
  color: var(--muted);
  font-weight: 700;
  padding-inline-end: 12px;
  margin-inline-end: 4px;
  border-inline-end: 2px solid var(--divider);
  border-radius: 0;
}

.nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--sun);
  border-bottom: var(--line);
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 80px;
}

.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.22em;
  background: var(--ink);
  color: var(--sun);
  padding: 4px 12px;
  border-radius: 6px;
}

.title {
  margin: 10px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 116px);
  line-height: 0.95;
  color: var(--white);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--ink);
}

.lede {
  max-width: 30em;
  margin: 22px 0 28px;
  font-size: 19px;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: min(300px, 70vw);
  aspect-ratio: 1;
  border-radius: 22%;
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(4deg);
}

.confetti {
  position: absolute;
  border: 3px solid var(--ink);
  pointer-events: none;
}

.c1 { width: 44px; height: 18px; background: var(--coral); border-radius: 5px; top: 30px; left: 46%; transform: rotate(28deg); }
.c2 { width: 26px; height: 26px; background: var(--teal); border-radius: 50%; bottom: 36px; left: 8%; }
.c3 { width: 30px; height: 30px; background: var(--lilac); border-radius: 7px; top: 58px; right: 5%; transform: rotate(18deg); }
.c4 { width: 14px; height: 14px; background: var(--ink); border-radius: 50%; bottom: 60px; right: 40%; }
.c5 { width: 48px; height: 18px; background: var(--lilac); border-radius: 5px; bottom: 28px; right: 10%; transform: rotate(-24deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  padding: 14px 24px 12px;
  border: var(--line);
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.08s, box-shadow 0.08s;
}

.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn.alt { background: var(--white); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */

section { padding: 72px 0 8px; }

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 48px);
  line-height: 1.05;
  margin: 0 0 8px;
}

.sub {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 36em;
}

/* ---------- Screenshots ---------- */

.shots {
  display: flex;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
  padding: 4px 20px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
}

.shots img {
  flex: 1 1 0;
  min-width: 170px;
  max-width: 240px;
  width: 0;
  height: auto;
  border: var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.card {
  background: var(--white);
  border: var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px 24px;
}

.card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  margin: 0 0 6px;
}

.card p { margin: 0; }

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.steps .card { position: relative; padding-top: 44px; }

.badge {
  position: absolute;
  top: -20px;
  inset-inline-start: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  padding-top: 3px;
  background: var(--sun);
  border: var(--line);
  border-radius: 50%;
}

.steps .card:nth-child(1) { background: #E4F7F3; }
.steps .card:nth-child(2) { background: #F1EDFF; }
.steps .card:nth-child(3) { background: #FFE9E4; }

/* Ways to play */

.ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ways .card { color: var(--ink); }
.ways .teal { background: var(--teal); }
.ways .lilac { background: var(--lilac); }
.ways .coral { background: var(--coral); }

/* Decks */

.decks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 16px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}

.chip .free {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--teal);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 999px;
  border: 2px solid var(--ink);
}

.chip.act { background: var(--coral); color: var(--white); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.fact {
  text-align: center;
  padding: 18px 12px;
  border: var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.fact b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
}

.fact span { font-size: 14px; color: var(--muted); }

/* ---------- Download / QR ---------- */

.qr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 8px;
}

.qr-card {
  width: 176px;
  padding: 14px 14px 12px;
  background: var(--white);
  border: var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: center;
}

.qr-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
}

.qr-card b {
  display: block;
  margin-top: 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1;
}

.qr-card small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.qr-card.ios { transform: rotate(-2deg); }
.qr-card.android { transform: rotate(2deg); }

/* FAQ */

.faq { display: grid; gap: 14px; }

details {
  background: var(--white);
  border: var(--line);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 18px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  padding-top: 3px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
}

details[open] summary::after { content: "\2212"; background: var(--teal); color: var(--white); }

details .answer {
  padding: 0 20px 18px;
  color: var(--muted);
}

details .answer p { margin: 0 0 10px; }
details .answer p:last-child { margin-bottom: 0; }

/* Contact */

.contact {
  position: relative;
  overflow: hidden;
  background: var(--teal);
  color: var(--white);
  border: var(--line);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--ink);
  padding: 40px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact h2 {
  color: var(--white);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink);
}

.contact p { margin: 0; max-width: 28em; }

.contact .btn { background: var(--sun); color: var(--ink); }

/* ---------- Privacy page ---------- */

.page-head {
  background: var(--lilac);
  border-bottom: var(--line);
  position: relative;
  overflow: hidden;
}

.page-head .wrap { padding-top: 56px; padding-bottom: 56px; position: relative; }

.page-head h1 {
  margin: 10px 0 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 84px);
  line-height: 1;
  color: var(--white);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--ink);
}

.page-head .kicker { background: var(--ink); color: var(--lilac); }

.updated { margin: 0; font-weight: 600; }

.summary-card {
  margin-top: 48px;
  background: var(--sun);
}

.summary-card ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}

.summary-card li { display: flex; gap: 10px; align-items: baseline; }

.summary-card li::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--coral);
  border: 2px solid var(--ink);
  border-radius: 3px;
  transform: rotate(45deg) translateY(1px);
}

.policy { max-width: 760px; padding-bottom: 20px; }

.policy h2 {
  font-size: 32px;
  margin: 44px 0 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.policy h2 .num {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 22px;
  padding-top: 3px;
  background: var(--white);
  border: var(--line);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
}

.policy p, .policy li { color: var(--muted); }
.policy ul { padding-inline-start: 22px; }
.policy li { margin-bottom: 6px; }
.policy strong { color: var(--ink); }

/* ---------- Footer ---------- */

footer {
  margin-top: 80px;
  background: var(--ink);
  color: var(--paper);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  padding-bottom: 26px;
  font-size: 15px;
}

footer nav { display: flex; gap: 18px; }
footer a { text-decoration: none; opacity: 0.85; }
footer a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Language switcher ---------- */

.topbar .right { display: flex; align-items: center; gap: 10px; }

.lang {
  display: flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.lang a {
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  padding: 6px 10px;
}

.lang a + a { border-inline-start: 2px solid var(--ink); }
.lang a:hover { background: var(--sun); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.lang a:lang(ar) { font-size: 15px; padding-top: 4px; padding-bottom: 5px; }

/* ---------- Right to left (Arabic) ---------- */

[dir="rtl"] .kicker,
[dir="rtl"] .chip .free { letter-spacing: 0; }
[dir="rtl"] .brand,
[dir="rtl"] .title { direction: ltr; }
[dir="rtl"] h2,
[dir="rtl"] .card h3,
[dir="rtl"] .page-head h1 { line-height: 1.35; }
[dir="rtl"] body { line-height: 1.8; }
[dir="rtl"] .hero-art img { transform: rotate(-4deg); }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- Narrow screens ---------- */

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 60px; gap: 28px; }
  .hero-art { justify-content: flex-start; }
  .hero-art img { width: 180px; }
  .steps, .ways { grid-template-columns: 1fr; gap: 30px; }
  .ways { gap: 18px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .summary-card ul { grid-template-columns: 1fr; }
  .contact { padding: 30px 24px; }
  .c2 { display: none; }
}

section[id] { scroll-margin-top: 64px; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand span { display: none; }
  .nav a { padding: 6px 11px; font-size: 14px; }
  .nav a.home { display: none; }
  .lang a { padding: 5px 8px; }
  section { padding-top: 56px; }
  .c1, .c3 { display: none; }
  .shots { padding: 4px 16px 16px; scroll-padding: 0 16px; gap: 16px; }
  .shots img { min-width: 62vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
