/* ورطة زول — موقع اللعبة */
:root {
  --sand: #f6e3bd;
  --sand-2: #efd29b;
  --clay: #c8643b;
  --clay-dark: #9e4724;
  --green: #3fa34d;
  --green-dark: #2b7a37;
  --yellow: #f7c948;
  --yellow-dark: #d9a520;
  --teal: #1f7a7a;
  --ink: #3b2414;
  --ink-soft: #6b4a33;
  --card: #fffaf0;
  --line: rgba(59, 36, 20, .12);
  --radius: 22px;
  --shadow: 0 10px 30px rgba(59, 36, 20, .12);
  --head: "Baloo Bhaijaan 2", "Vazirmatn", system-ui, sans-serif;
  --body: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.85;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--clay-dark); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 227, 189, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.brand b { font-family: var(--head); font-size: 26px; line-height: 1; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px;
  padding: 6px 12px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--sand-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--head); font-size: 22px; font-weight: 700;
  text-decoration: none; color: #fff;
  background: var(--green);
  padding: 12px 30px 14px; border-radius: 20px;
  box-shadow: inset 0 -6px 0 var(--green-dark), 0 8px 18px rgba(43, 122, 55, .25);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); }
.btn.yellow { background: var(--yellow); color: var(--ink); box-shadow: inset 0 -6px 0 var(--yellow-dark), 0 8px 18px rgba(217, 165, 32, .25); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 -5px 0 var(--sand-2), 0 6px 14px rgba(59, 36, 20, .1); }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn small { display: block; font-family: var(--body); font-size: 12px; font-weight: 500; opacity: .85; line-height: 1.2; }
.btn .two { text-align: start; line-height: 1.15; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: 55% -10% -10%;
  background: var(--sand-2); border-radius: 50% 50% 0 0;
  z-index: -1;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero h1 {
  font-family: var(--head); font-size: clamp(64px, 11vw, 120px);
  line-height: .95; margin: 0 0 12px; color: var(--ink);
  text-shadow: 0 4px 0 var(--yellow);
}
.tag {
  display: inline-block; background: var(--clay); color: #fff;
  font-family: var(--head); font-size: clamp(20px, 3vw, 28px); font-weight: 700;
  padding: 4px 22px 6px; border-radius: 14px; transform: rotate(-2deg);
  box-shadow: inset 0 -4px 0 var(--clay-dark);
}
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 34em; margin: 22px 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.phone {
  justify-self: center; width: min(320px, 80vw); aspect-ratio: 9 / 16;
  border-radius: 38px; padding: 10px; background: var(--ink);
  box-shadow: 0 30px 60px rgba(59, 36, 20, .35);
  transform: rotate(3deg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 29px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--card); }
.h2 {
  font-family: var(--head); font-size: clamp(34px, 5vw, 48px); line-height: 1.15;
  margin: 0 0 8px; text-align: center;
}
.sub { text-align: center; color: var(--ink-soft); margin: 0 auto 40px; max-width: 40em; }

.story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.char {
  background: var(--sand); border-radius: var(--radius); padding: 22px;
  border: 2px solid var(--line);
}
.char h3 { font-family: var(--head); font-size: 26px; margin: 0 0 4px; }
.char p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.char .emoji { font-size: 34px; line-height: 1; margin-bottom: 8px; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.game {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.game img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%; width: 100%; }
.game div { padding: 14px 18px 18px; }
.game h3 { font-family: var(--head); font-size: 24px; margin: 0; line-height: 1.3; }
.game .time { font-size: 13px; font-weight: 700; color: var(--teal); }
.game p { margin: 6px 0 0; font-size: 15px; color: var(--ink-soft); line-height: 1.7; }

.more { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  background: var(--card); border: 2px solid var(--line); border-radius: 999px;
  padding: 6px 16px; font-weight: 600; font-size: 15px;
}

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat { text-align: center; padding: 20px 14px; }
.feat .ic {
  width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 22px;
  display: grid; place-items: center; font-size: 36px;
  background: var(--yellow); box-shadow: inset 0 -5px 0 var(--yellow-dark);
}
.feat h3 { font-family: var(--head); font-size: 22px; margin: 0 0 4px; }
.feat p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.shots {
  display: flex; gap: 18px; overflow-x: auto; padding: 6px 4px 18px;
  scroll-snap-type: x mandatory;
}
.shots img {
  width: 230px; flex: none; border-radius: 22px; scroll-snap-align: center;
  box-shadow: var(--shadow); aspect-ratio: 9 / 16; object-fit: cover;
}

.download { text-align: center; }
.download .box {
  background: var(--clay); color: #fff; border-radius: 32px; padding: 48px 24px;
  box-shadow: inset 0 -10px 0 var(--clay-dark);
}
.download .h2 { color: #fff; }
.download p { color: #fde9d9; margin: 0 auto 26px; max-width: 36em; }
.download .cta { justify-content: center; }

/* ---------- legal pages ---------- */
.doc { padding: 48px 0 72px; }
.doc .paper {
  background: var(--card); border-radius: 28px; padding: clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow); max-width: 860px; margin-inline: auto;
}
.doc h1 { font-family: var(--head); font-size: clamp(36px, 6vw, 52px); margin: 0; line-height: 1.2; }
.doc .date { color: var(--ink-soft); font-size: 14px; margin: 4px 0 28px; }
.doc h2 { font-family: var(--head); font-size: 28px; margin: 36px 0 6px; color: var(--clay-dark); }
.doc ul { padding-inline-start: 22px; }
.doc li { margin: 4px 0; }
.doc .note {
  background: var(--sand); border-radius: 16px; padding: 14px 18px;
  border-inline-start: 5px solid var(--yellow);
}
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }
.doc th { background: var(--sand); }
.lang-switch { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.lang-switch a { font-size: 14px; font-weight: 600; text-decoration: none; padding: 4px 14px; border-radius: 999px; background: var(--sand); color: var(--ink); }
.en { direction: ltr; text-align: left; font-family: "Segoe UI", system-ui, sans-serif; }
.en h2 { font-family: "Segoe UI", system-ui, sans-serif; font-weight: 700; font-size: 22px; }
hr.split { border: 0; border-top: 2px dashed var(--line); margin: 56px 0 40px; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: #f1dfc4; padding: 36px 0; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer a { color: #fff; text-decoration: none; margin-inline-end: 18px; }
footer a:hover { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .cta { justify-content: center; }
  .story { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top .wrap { flex-direction: column; gap: 4px; padding: 8px 0; }
  .nav a { padding: 4px 10px; font-size: 14px; }
  .features { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .btn { font-size: 20px; padding: 10px 22px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
