/* ============================================================
   سليمان SI — أكاديمية الذكاء الفائق
   هوية تعليمية كلاسيكية: ورق لفّاف · كحلي أوكسفورد · عنّابي · ذهبي عتيق
   ============================================================ */

:root {
  --parchment: #F5EFE1;
  --parchment-2: #EFE7D3;
  --cream: #FDFAF1;
  --ink: #22303F;
  --navy: #16324F;
  --navy-deep: #0E2237;
  --burgundy: #6B2130;
  --green: #3F6B4F;
  --blue: #4E7A9B;
  --gold: #B08D2F;
  --gold-soft: #C9AE62;
  --gold-pale: #E4D3A1;
  --hairline: #D8C9A2;
  --serif-ar: "Amiri", "Noto Naskh Arabic", serif;
  --body-ar: "Noto Naskh Arabic", "Amiri", serif;
  --latin: "Cormorant Garamond", "Amiri", serif;
  --shadow-card: 0 1px 2px rgba(34, 48, 63, .06), 0 10px 28px -14px rgba(34, 48, 63, .25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-ar);
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(1100px 500px at 85% -50px, rgba(176, 141, 47, .07), transparent 60%),
    radial-gradient(900px 420px at 8% 12%, rgba(22, 50, 79, .05), transparent 60%);
  line-height: 1.9;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.latin { font-family: var(--latin); letter-spacing: .04em; }

/* ---------- شريط الافتخار ---------- */
.topbar {
  background: var(--navy-deep);
  color: var(--gold-pale);
  text-align: center;
  font-size: 13.5px;
  padding: 7px 14px;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(201, 174, 98, .45);
}
.topbar__motto { font-family: var(--serif-ar); font-weight: 700; }
.topbar__sep { display: inline-block; width: 22px; height: 1px; background: var(--gold-soft); margin: 0 12px; vertical-align: middle; }
.topbar__latin { font-family: var(--latin); font-size: 11.5px; letter-spacing: .22em; opacity: .85; }

/* ---------- الترويسة ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 225, .96);
  backdrop-filter: blur(6px);
  border-bottom: 3px double var(--gold);
}
.header__inner {
  max-width: 1180px;
  margin-inline: auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand__crest { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--hairline); background: var(--cream); }
.brand__text { display: flex; flex-direction: column; line-height: 1.35; }
.brand__name { font-family: var(--serif-ar); font-size: 26px; color: var(--navy); font-weight: 700; }
.brand__si {
  font-family: var(--latin);
  color: var(--gold);
  font-size: 21px;
  letter-spacing: .06em;
  border: 1.5px solid var(--gold);
  border-radius: 4px;
  padding: 0 7px;
  margin-inline-start: 3px;
  vertical-align: 3px;
}
.brand__sub { font-size: 13.5px; color: var(--burgundy); letter-spacing: .03em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  padding: 8px 13px;
  border-radius: 4px;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s, background .18s;
}
.nav__link:hover { color: var(--navy); background: rgba(176, 141, 47, .1); border-bottom-color: var(--gold); }
.nav__link--cta {
  color: var(--cream);
  background: var(--navy);
  border: 1px solid var(--navy-deep);
  box-shadow: inset 0 0 0 1px rgba(201, 174, 98, .55);
}
.nav__link--cta:hover { background: var(--navy-deep); color: var(--gold-pale); border-bottom-color: transparent; }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 9px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- البطل ---------- */
.hero { padding: 46px 18px 56px; }
.hero__frame {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  background:
    linear-gradient(0deg, rgba(255, 253, 246, .55), rgba(255, 253, 246, .55)),
    radial-gradient(600px 300px at 50% 0%, rgba(176, 141, 47, .08), transparent 70%);
  border: 1px solid var(--gold-soft);
  outline: 4px double var(--gold);
  outline-offset: 7px;
  padding: 52px 34px 44px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.hero__corners i {
  position: absolute;
  width: 26px; height: 26px;
  border: 2.5px solid var(--gold);
}
.hero__corners i:nth-child(1) { top: 9px; right: 9px; border-left: 0; border-bottom: 0; }
.hero__corners i:nth-child(2) { top: 9px; left: 9px; border-right: 0; border-bottom: 0; }
.hero__corners i:nth-child(3) { bottom: 9px; right: 9px; border-left: 0; border-top: 0; }
.hero__corners i:nth-child(4) { bottom: 9px; left: 9px; border-right: 0; border-top: 0; }

.hero__crest { width: 148px; height: 148px; margin: 0 auto 14px; border-radius: 50%; filter: drop-shadow(0 6px 16px rgba(14, 34, 55, .22)); }
.hero__name {
  font-family: var(--serif-ar);
  font-size: clamp(44px, 7.5vw, 66px);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}
.hero__si {
  font-family: var(--latin);
  font-size: .72em;
  color: var(--gold);
  letter-spacing: .08em;
  border: 3px solid var(--gold);
  border-radius: 8px;
  padding: 0 16px;
  display: inline-block;
  vertical-align: 10px;
}
.rule { display: flex; align-items: center; gap: 12px; max-width: 430px; margin: 12px auto; }
.rule span { flex: 1; height: 1px; background: linear-gradient(to left, transparent, var(--gold-soft), transparent); }
.rule i { width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.rule--dark span { background: linear-gradient(to left, transparent, var(--gold), transparent); }

.hero__tagline {
  font-family: var(--serif-ar);
  font-size: clamp(22px, 3.6vw, 30px);
  color: var(--burgundy);
  font-weight: 700;
  margin-top: 4px;
}
.hero__lead { max-width: 640px; margin: 14px auto 0; font-size: 17.5px; color: var(--ink); }
.hero__lead strong { color: var(--navy); }
.hero__motto {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--serif-ar);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--gold);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 7px 26px;
}
.hero__actions { margin-top: 24px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 11px 30px;
  border-radius: 4px;
  transition: transform .16s, box-shadow .16s, background .16s, color .16s;
}
.btn--primary {
  background: var(--navy);
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(201, 174, 98, .65), 0 8px 20px -10px rgba(14, 34, 55, .55);
}
.btn--primary:hover { background: var(--navy-deep); color: var(--gold-pale); transform: translateY(-1px); }
.btn--ghost {
  color: var(--burgundy);
  border: 1.5px solid var(--burgundy);
  background: transparent;
}
.btn--ghost:hover { background: var(--burgundy); color: var(--cream); transform: translateY(-1px); }
.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 8px 22px -10px rgba(176, 141, 47, .7);
}
.btn--gold:hover { background: var(--gold-soft); transform: translateY(-1px); }

.hero__stats {
  margin: 30px auto 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  max-width: 640px;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}
.stat { text-align: center; flex: 1; }
.stat dt { font-family: var(--serif-ar); font-weight: 700; font-size: 24px; color: var(--navy); }
.stat dd { font-size: 13.5px; color: #5C6B79; margin-top: 2px; }
.stat--sep { flex: 0 0 1px; width: 1px; background: var(--hairline); margin: 4px 8px; }

/* ---------- الأقسام العامة ---------- */
.section { padding: 64px 18px; }
.section--tinted {
  background:
    linear-gradient(0deg, rgba(239, 231, 211, .75), rgba(239, 231, 211, .75)),
    radial-gradient(700px 300px at 90% 0%, rgba(176, 141, 47, .06), transparent 65%);
  border-top: 3px double var(--gold-soft);
  border-bottom: 3px double var(--gold-soft);
}
.section__head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section__kicker { color: var(--burgundy); font-weight: 600; font-size: 14.5px; letter-spacing: .05em; }
.section__title {
  font-family: var(--serif-ar);
  font-size: clamp(30px, 5vw, 42px);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.5;
  margin-top: 2px;
}
.section__sub { margin-top: 12px; color: #4A5866; font-size: 16.5px; }

/* ---------- مسطرة النمو ---------- */
.ruler { position: relative; max-width: 860px; margin: 0 auto 38px; padding: 0 8px; }
.ruler__line {
  position: absolute;
  top: 15px; right: 24px; left: 24px;
  height: 2px;
  background: linear-gradient(to left, var(--gold-pale), var(--gold), var(--gold-pale));
}
.ruler__ticks {
  position: relative;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.ruler__ticks li { text-align: center; }
.ruler__ticks b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  margin: 0 auto;
  background: var(--cream);
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-family: var(--serif-ar);
  color: var(--navy);
  font-size: 14.5px;
  box-shadow: 0 0 0 4px var(--parchment);
}
.ruler__ticks span { display: block; font-size: 12.5px; color: #6A7886; margin-top: 5px; }

/* ---------- كروت المراحل ---------- */
.stages__grid {
  max-width: 1240px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.stage {
  background: var(--cream);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(176, 141, 47, .35);
  pointer-events: none;
}
.stage__band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  color: var(--cream);
}
.stage__num { font-family: var(--latin); font-weight: 700; font-size: 15px; letter-spacing: .12em; }
.stage__label { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.stage--1 .stage__band { background: var(--blue); }
.stage--2 .stage__band { background: var(--green); }
.stage--3 .stage__band { background: var(--burgundy); }
.stage--4 .stage__band { background: var(--navy); }
.stage--5 .stage__band { background: #8A6A1C; }

.stage__frame {
  margin: 14px 14px 0;
  border: 1px solid var(--hairline);
  border-bottom: 0;
  border-radius: 160px 160px 0 0;
  overflow: hidden;
  background: var(--parchment-2);
}
.stage__img { width: 100%; transition: transform .5s ease; }
.stage:hover .stage__img { transform: scale(1.045); }

.stage__body { padding: 16px 17px 19px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.stage__name { font-family: var(--serif-ar); font-size: 27px; font-weight: 700; color: var(--navy); }
.stage--1 .stage__name { color: var(--blue); }
.stage--2 .stage__name { color: var(--green); }
.stage--3 .stage__name { color: var(--burgundy); }
.stage--5 .stage__name { color: #8A6A1C; }
.stage__ages {
  display: inline-block;
  align-self: center;
  margin: 7px auto 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--hairline);
  background: var(--parchment);
  border-radius: 999px;
  padding: 2px 14px;
}
.stage__desc { margin-top: 11px; font-size: 14.6px; line-height: 1.85; color: #3D4B59; text-align: start; }
.stage__desc strong { color: var(--burgundy); }
.stage__list {
  list-style: none;
  margin: 12px 0 14px;
  text-align: start;
  font-size: 13.8px;
  color: var(--ink);
}
.stage__list li { padding: 4px 0; display: flex; gap: 8px; align-items: baseline; }
.stage__list li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg) translateY(-1px);
}
.stage__cta {
  margin-top: auto;
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 10px;
  border: 1.5px dashed var(--gold);
  color: #8A6A1C;
  background: rgba(228, 211, 161, .22);
  border-radius: 4px;
  letter-spacing: .02em;
}

/* ---------- الأعمدة الثلاثة ---------- */
.pillars {
  max-width: 1080px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pillar {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-card);
  padding: 28px 24px 26px;
  text-align: center;
}
.pillar__cap {
  width: 84px; height: 84px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  color: var(--navy);
  background:
    radial-gradient(closest-side, rgba(176, 141, 47, .12), transparent);
}
.pillar__title { font-family: var(--serif-ar); font-size: 23px; color: var(--navy); font-weight: 700; }
.pillar__text { margin-top: 9px; font-size: 15px; color: #46545F; }

/* ---------- الأجنحة ---------- */
.wings__grid {
  max-width: 1080px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.wing {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  padding: 26px 22px 22px;
}
.wing::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(176, 141, 47, .3);
  pointer-events: none;
}
.wing__seal {
  position: absolute;
  top: -13px; left: 18px;
  background: var(--burgundy);
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 10px -4px rgba(107, 33, 48, .6);
  border: 1px solid #8A3241;
}
.wing__title { font-family: var(--serif-ar); font-size: 23px; color: var(--navy); font-weight: 700; text-align: center; }
.wing__text { margin-top: 8px; font-size: 14.8px; color: #46545F; text-align: center; }

/* ---------- عن الأكاديمية ---------- */
.about__inner { max-width: 800px; margin-inline: auto; text-align: center; }
.about__text { margin-top: 16px; font-size: 17px; color: #37454F; }
.about__text strong { color: var(--navy); }
.about__quote {
  margin-top: 26px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 10px;
}
.about__quote p { font-family: var(--serif-ar); font-size: 21px; color: var(--burgundy); font-weight: 700; }
.about__quote cite { display: block; margin-top: 5px; font-style: normal; font-size: 13.5px; color: #6A7886; }

/* ---------- نداء التواصل ---------- */
.cta {
  background:
    radial-gradient(560px 260px at 50% 115%, rgba(176, 141, 47, .18), transparent 70%),
    var(--navy-deep);
  color: var(--cream);
  text-align: center;
  padding: 58px 18px;
  border-top: 3px double var(--gold);
}
.cta__title { font-family: var(--serif-ar); font-size: clamp(30px, 5vw, 42px); font-weight: 700; color: var(--gold-pale); }
.cta__text { margin: 10px auto 22px; max-width: 560px; color: #C8D2DC; font-size: 16.5px; }

/* ---------- التذييل ---------- */
.footer { background: #0A1B2C; color: #B9C4CE; border-top: 1px solid rgba(201, 174, 98, .35); }
.footer__inner {
  max-width: 1080px;
  margin-inline: auto;
  padding: 34px 20px 26px;
  display: grid;
  gap: 22px;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: start;
}
.footer__brand { display: flex; gap: 12px; align-items: center; }
.footer__crest { width: 52px; height: 52px; border-radius: 50%; }
.footer__name { font-family: var(--serif-ar); font-size: 22px; font-weight: 700; color: var(--cream); }
.footer__name .latin { color: var(--gold-soft); }
.footer__tag { font-size: 13.5px; margin-top: 2px; }
.footer__nav { display: flex; flex-direction: column; gap: 7px; }
.footer__nav a { text-decoration: none; font-size: 14.5px; color: #B9C4CE; transition: color .15s; }
.footer__nav a:hover { color: var(--gold-pale); }
.footer__family { text-align: start; font-size: 14px; }
.footer__family a { color: var(--gold-soft); text-decoration: none; border-bottom: 1px dotted rgba(201, 174, 98, .5); }
.footer__copy { margin-top: 10px; font-size: 12.5px; color: #7C8B98; }

/* ---------- ظهور تدريجي ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stage__img { transition: none; }
}

/* ---------- استجابة ---------- */
@media (max-width: 1080px) {
  .stages__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .pillars, .wings__grid { grid-template-columns: 1fr; max-width: 520px; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__brand { justify-content: center; }
  .footer__nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 14px; }
  .footer__family { text-align: center; }
  .ruler { display: none; }
}
@media (max-width: 760px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%; right: 0; left: 0;
    background: var(--cream);
    border-bottom: 3px double var(--gold);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    box-shadow: 0 18px 30px -18px rgba(14, 34, 55, .4);
  }
  .nav.open { display: flex; }
  .nav__link { padding: 11px 14px; border-bottom: 1px solid var(--parchment-2); }
  .nav__link--cta { margin-top: 8px; text-align: center; }
  .burger { display: flex; }
  .header__inner { position: relative; }
  .brand__name { font-size: 22px; }
  .brand__sub { font-size: 12px; }
}
@media (max-width: 700px) {
  .stages__grid { grid-template-columns: 1fr; max-width: 420px; }
  .stage { max-width: 100%; }
  .hero { padding: 26px 12px 40px; }
  .hero__frame { padding: 36px 18px 30px; }
  .hero__stats { flex-wrap: wrap; gap: 12px; }
  .stat--sep { display: none; }
  .stat { flex: 1 1 40%; }
  .section { padding: 46px 16px; }
}

/* ============================================================
   عوالم المراحل — الشخصية ورقةٌ تُفتح على عالمٍ كامل
   ============================================================ */

/* --- كروت الرئيسية كبوابات --- */
a.stage { text-decoration: none; color: inherit; cursor: pointer; transition: transform .22s ease, box-shadow .22s ease; }
a.stage:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(34,48,63,.08), 0 24px 44px -18px rgba(34,48,63,.38); }
.stage__cta--enter { border: none; color: var(--cream); background: var(--navy); letter-spacing: .03em; }
.stage--1 .stage__cta--enter { background: var(--blue); }
.stage--2 .stage__cta--enter { background: var(--green); }
.stage--3 .stage__cta--enter { background: var(--burgundy); }
.stage--4 .stage__cta--enter { background: var(--navy); }
.stage--5 .stage__cta--enter { background: #8A6A1C; }
.stage:hover .stage__cta--enter { filter: brightness(1.1); }

/* --- متغيرات الثيم لكل عالم --- */
.theme-1 { --sa:#4E7A9B; --sa-deep:#3B6079; --sa-soft:#E3ECF2; --sa-ink:#2E4E63; }
.theme-2 { --sa:#3F6B4F; --sa-deep:#2F523C; --sa-soft:#E0EBE2; --sa-ink:#274433; }
.theme-3 { --sa:#6B2130; --sa-deep:#521825; --sa-soft:#F2E0E3; --sa-ink:#4A1723; }
.theme-4 { --sa:#16324F; --sa-deep:#0E2237; --sa-soft:#DCE4EC; --sa-ink:#0E2237; }
.theme-5 { --sa:#8A6A1C; --sa-deep:#6F5514; --sa-soft:#F0E7CC; --sa-ink:#5F4A12; }

/* --- بوابة العالم (الهيرو) --- */
.world-hero { padding: 34px 18px 10px; }
.world-crumb { max-width: 880px; margin: 0 auto 12px; font-size: 13.5px; color: #6A7886; }
.world-crumb a { color: var(--burgundy); text-decoration: none; border-bottom: 1px dotted rgba(107,33,48,.4); }
.world-crumb a:hover { color: var(--navy); }
.world-hero__frame {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  background-color: var(--cream);
  border: 1px solid var(--gold-soft);
  outline: 4px double var(--gold);
  outline-offset: 7px;
  padding: 44px 30px 40px;
  text-align: center;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.world-hero__corners i { position: absolute; width: 24px; height: 24px; border: 2.5px solid var(--gold); }
.world-hero__corners i:nth-child(1) { top: 9px; right: 9px; border-left: 0; border-bottom: 0; }
.world-hero__corners i:nth-child(2) { top: 9px; left: 9px; border-right: 0; border-bottom: 0; }
.world-hero__corners i:nth-child(3) { bottom: 9px; right: 9px; border-left: 0; border-top: 0; }
.world-hero__corners i:nth-child(4) { bottom: 9px; left: 9px; border-right: 0; border-top: 0; }
.world-hero__num {
  position: absolute; top: 4px; inset-inline-start: 20px;
  font-family: var(--latin); font-weight: 700;
  font-size: 96px; line-height: 1;
  color: var(--sa); opacity: .13; pointer-events: none;
}
/* نمط كل عالم — لكل فئة نمطها */
.theme-1 .world-hero__frame { background-image: radial-gradient(rgba(78,122,155,.18) 1.7px, transparent 1.9px); background-size: 22px 22px; }
.theme-2 .world-hero__frame { background-image: linear-gradient(rgba(63,107,79,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(63,107,79,.10) 1px, transparent 1px); background-size: 24px 24px; }
.theme-3 .world-hero__frame { background-image: radial-gradient(rgba(107,33,48,.13) 1.4px, transparent 1.7px), linear-gradient(rgba(107,33,48,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(107,33,48,.06) 1px, transparent 1px); background-size: 26px 26px; }
.theme-4 .world-hero__frame { background-image: repeating-linear-gradient(45deg, rgba(22,50,79,.07) 0 2px, transparent 2px 18px); }
.theme-5 .world-hero__frame {
  background-image:
    radial-gradient(circle at 20% 26%, rgba(138,106,28,.4) 1.6px, transparent 2.4px),
    radial-gradient(circle at 74% 16%, rgba(138,106,28,.32) 1.2px, transparent 2px),
    radial-gradient(circle at 46% 58%, rgba(138,106,28,.3) 1.3px, transparent 2.2px),
    radial-gradient(circle at 86% 60%, rgba(138,106,28,.34) 1.5px, transparent 2.3px),
    radial-gradient(circle at 28% 80%, rgba(138,106,28,.3) 1.2px, transparent 2px);
  background-size: 210px 210px;
}
.world-hero__portrait {
  width: 208px; margin: 4px auto 0;
  border: 1px solid var(--hairline);
  border-radius: 130px 130px 0 0;
  overflow: hidden;
  background: var(--parchment-2);
}
.world-hero__kicker { margin-top: 16px; color: var(--burgundy); font-weight: 700; font-size: 14.5px; }
.world-hero__title { font-family: var(--serif-ar); font-size: clamp(34px, 6vw, 52px); font-weight: 700; color: var(--sa-ink); line-height: 1.4; }
.world-hero__motto {
  display: inline-block; margin-top: 12px;
  font-family: var(--serif-ar); font-weight: 700; font-size: 17px;
  color: var(--sa-ink);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  padding: 6px 24px;
}
.world-hero__lead { max-width: 640px; margin: 14px auto 0; font-size: 16.5px; color: #3D4B59; }
.world-hero__actions { margin-top: 22px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn--stage { background: var(--sa); color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22), 0 8px 20px -10px rgba(14,34,55,.5); }
.btn--stage:hover { background: var(--sa-deep); color: var(--cream); transform: translateY(-1px); }

/* --- خريطة الرحلة على صفحات العوالم --- */
.world-path { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 30px 18px 8px; flex-wrap: wrap; }
.world-path__line { width: 34px; height: 2px; background: linear-gradient(to left, var(--gold-pale), var(--gold)); }
.world-path a {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--hairline);
  font-family: var(--serif-ar); font-weight: 700; font-size: 17px;
  color: #6A7886; text-decoration: none;
  transition: border-color .18s, color .18s, transform .18s;
}
.world-path a:hover { border-color: var(--gold); color: var(--navy); transform: translateY(-2px); }
.world-path a.is-here {
  background: var(--sa); border-color: var(--sa-deep); color: var(--cream);
  box-shadow: 0 0 0 4px var(--sa-soft), 0 8px 18px -8px rgba(14,34,55,.4);
}

/* --- غرف العالم --- */
.rooms__grid { max-width: 1080px; margin-inline: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.room {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-top: 4px solid var(--sa);
  box-shadow: var(--shadow-card);
  padding: 26px 20px 24px;
  text-align: center;
}
.room__seal {
  position: absolute; top: -12px; inset-inline-start: 16px;
  background: var(--sa-deep); color: var(--cream);
  font-size: 12px; font-weight: 700; padding: 2px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
}
.room__icon {
  width: 76px; height: 76px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--sa); border-radius: 50%;
  color: var(--sa);
  background: radial-gradient(closest-side, var(--sa-soft), transparent);
}
.room__title { font-family: var(--serif-ar); font-size: 21px; color: var(--navy); font-weight: 700; }
.room__text { margin-top: 8px; font-size: 14.4px; color: #46545F; text-align: start; }

/* --- جوار العالم: السابق/التالي --- */
.world-neighbor { max-width: 980px; margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.nb {
  display: flex; align-items: center; gap: 16px;
  background: var(--cream);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.nb:hover { transform: translateY(-3px); border-color: var(--gold-soft); box-shadow: 0 2px 4px rgba(34,48,63,.08), 0 20px 38px -18px rgba(34,48,63,.35); }
.nb__num { font-family: var(--latin); font-weight: 700; font-size: 40px; color: var(--gold); line-height: 1; }
.nb__body { flex: 1; }
.nb__kicker { display: block; font-size: 12.5px; font-weight: 700; color: var(--burgundy); letter-spacing: .04em; }
.nb__name { display: block; font-family: var(--serif-ar); font-size: 24px; font-weight: 700; color: var(--navy); margin-top: 2px; }
.nb__arrow { font-size: 22px; color: var(--gold); }
.nb--end {
  justify-content: center; text-align: center;
  border: 1.5px dashed var(--gold);
  background: rgba(228, 211, 161, .16);
  flex-direction: column; gap: 6px;
}
.nb--end .nb__name { color: #8A6A1C; }
.nb--end p { font-size: 14px; color: #6A7886; }

/* استجابة العوالم */
@media (max-width: 1000px) { .rooms__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .rooms__grid { grid-template-columns: 1fr; max-width: 460px; }
  .world-neighbor { grid-template-columns: 1fr; }
  .world-hero__frame { padding: 34px 18px 30px; }
  .world-hero__num { font-size: 64px; }
  .world-path__line { width: 14px; }
}
