/* =============================================================================
   boot.css — شاشة التحميل: «هو يا مال» ما تتحمّل نص ونص
   قدها وقدود · هو يا مال (PBE فقط)

   صالح ٢٠٢٦-٠٩-٢٨: «نبي اللعبة ما تتحمّل نص ونص.. أول ما تطلع اللعبة يطلع شاشة لودنق على ما تتحمّل
   بقية العناصر.. وحتى شاشة اللودنق تكون حلوة وجذابة وغير مملة».

   الشاشة **هي أول لقطة من الفريج**: نفس السماء والسحب، والعنوان بنفس مكانه (نفس أصناف `.lb` من
   village.css)، وبدل زرّ «ابدأ اللعبة» **عقد لؤلؤ** يمتلي حبّة حبّة مع التحميل، وتحته جمل الغوص تتبدّل.
   لمّا يخلص: موجة لمعة على العقد، والستارة تذوب والبيوت والنخل تطلع من تحت (الفريج نفسه) ⇒ ولا قطع.
   المنطق في boot.js (سكربت عادي قبل الموديولات — يرسم من أول لحظة).
   الحركة transform/opacity بس.
   ========================================================================== */

.boot {
  position: fixed; inset: 0; z-index: 200; overflow: hidden;   /* فوق زرّ الكتم (٩٥) */
  container-type: size; direction: rtl;
  --vg-ar: 1.7768;
  background: #8ee1ff;
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  transition: opacity .65s ease;
}
.boot.is-out { opacity: 0; pointer-events: none; }
/* نفس سماء الفريج (village-data.js ‹skyStops›) — مختصرة */
.boot .vg-sky, .boot .bt-sky {
  background-image: linear-gradient(to bottom, #54cdfd 0%, #55cdfd 17%, #5ccffd 34%, #62d2fe 49%, #6ad6fd 55%, #7bddfd 62%, #8de4fc 66%, #93e7fc 68%, #93e7fc 100%);
}
.bt-sky { position: absolute; inset: 0; }

/* السحب ثابتة بمواضعها في الرسم (الفريج يكمل حركتها بعدين) — وتنزلق شوي عشان الشاشة حيّة */
.boot .vg-cloud { animation: bt-cloud 14s ease-in-out infinite alternate; }
@keyframes bt-cloud { from { transform: translateX(0); } to { transform: translateX(-2.2cqw); } }

/* العنوان يستنّى خطّه (وإلا يطلع بخطّ ثاني ويتبدّل قدّامك) */
.boot:not(.fonts-ok) .lb-mark, .boot:not(.fonts-ok) .lb-tag, .boot:not(.fonts-ok) .bt-msg { animation: none; opacity: 0; }
.boot .lb-logo, .boot .lb-mark-img { transition: opacity .4s ease; }
.boot .lb-logo:not(.ok), .boot .lb-mark-img:not(.ok) { opacity: 0; }   /* الشعار يطلع بعد ما يتحمّل (boot.js يحطّ .ok) */

/* ── عقد اللؤلؤ ── */
.bt-pearls {
  position: relative; flex: 0 0 auto;
  width: clamp(200px, 34cqw, 460px); aspect-ratio: 300 / 54;
  margin-top: clamp(10px, 4.6cqh, 48px);
}
.bt-pearls svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bt-pearls path { fill: none; stroke: #C99A5B; stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 1.5px 0 rgba(90, 55, 20, .35)); }
.bt-pearls i {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  width: 9.4%; aspect-ratio: 1; margin: -4.7% 0 0 -4.7%; border-radius: 50%;
  background: radial-gradient(circle at 33% 30%, #fff 0 10%, #fbf8f1 26%, #e6dfd1 62%, #c3b8a4 100%);
  box-shadow: 0 .18em .35em rgba(8, 70, 95, .28), inset 0 -.12em .2em rgba(120, 100, 70, .25);
  opacity: .32; transform: scale(.62);
  transition: opacity .35s ease, transform .5s cubic-bezier(.2, 1.7, .4, 1);
}
.bt-pearls i.on { opacity: 1; transform: none; }
/* لمعة تمرّ على الحبّة لحظة ما تنضاف */
.bt-pearls i::after {
  content: ''; position: absolute; inset: -30%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0 18%, rgba(255, 255, 255, 0) 60%);
  opacity: 0; transform: scale(.4);
}
.bt-pearls i.on::after { animation: bt-glint .7s ease-out both; }
@keyframes bt-glint { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5); } }
/* الحبّة الجاية تنبض (عشان ما يحسّ إنها واقفة) */
.bt-pearls i.next { animation: bt-next 1.1s ease-in-out infinite; }
@keyframes bt-next { 0%, 100% { opacity: .32; } 50% { opacity: .62; } }
/* خلص: موجة لمعة على العقد كامل */
.boot.is-done .bt-pearls i { animation: bt-wave .55s cubic-bezier(.3, 0, .3, 1) calc(var(--i) * 45ms) both; }
@keyframes bt-wave { 0% { transform: none; } 45% { transform: translateY(-18%) scale(1.18); } 100% { transform: none; } }

/* ── جمل الغوص ── */
.bt-msg {
  position: relative; margin: clamp(8px, 2.6cqh, 26px) 0 0; height: 1.6em; width: 90cqw;
  font-size: clamp(13px, 2.6cqh, 24px); font-weight: 800; color: #FFF7E6; text-align: center;
  text-shadow: 0 2px 10px rgba(5, 52, 70, .5);
}
.bt-msg span { position: absolute; inset: 0; opacity: 0; transform: translateY(35%); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .3, 1); }
.bt-msg span.on { opacity: 1; transform: none; }
.bt-msg span.off { opacity: 0; transform: translateY(-35%); }
.boot.is-done .bt-msg { opacity: 0; transition: opacity .3s ease; }

/* التلفون (عمودي): العنوان بالنصّ فوق */
.boot--phone .lb { padding-top: 19cqh; }
.boot--phone .lb-mark-img { height: auto; width: min(74cqw, 340px); }
.boot--phone .lb-tag { font-size: clamp(14px, 4.4cqw, 20px); }
.boot--phone .bt-pearls { width: 74cqw; margin-top: 7cqh; }
.boot--phone .bt-msg { font-size: clamp(13px, 4.1cqw, 18px); }

@media (prefers-reduced-motion: reduce) {
  .boot .vg-cloud, .bt-pearls i.next, .boot.is-done .bt-pearls i, .bt-pearls i.on::after { animation: none !important; }
}

/* ── صفحات بلا village.css (التلفون وصفحات المراجعة): نفس العنوان بأصنافه ── */
.bt-lb {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  padding-top: clamp(10px, 7cqh, 90px);
}
.bt-mark {
  margin: 0; line-height: 0;
  animation: bt-in .9s cubic-bezier(.2, 1, .3, 1) both;
}
/* ٩/١٠ الاسم = الشعار الجديد الأصلي (نفس .lb-mark-img بـvillage.css — هالصفحات بلاه) */
.bt-mark .lb-mark-img { display: block; height: clamp(56px, 19cqh, 190px); width: auto; filter: drop-shadow(0 6px 14px rgba(5, 52, 70, .28)); }
.bt-tag {
  margin: clamp(2px, .6cqh, 8px) 0 0; font-size: clamp(13px, 3cqh, 28px); font-weight: 800; color: #FFF7E6;
  text-shadow: 0 2px 10px rgba(5, 52, 70, .5);
  animation: bt-in .9s .15s cubic-bezier(.2, 1, .3, 1) both;
}
@keyframes bt-in { from { opacity: 0; transform: translateY(-18px) scale(.96); } to { opacity: 1; transform: none; } }
.boot:not(.fonts-ok) .bt-mark, .boot:not(.fonts-ok) .bt-tag { animation: none; opacity: 0; }
.bt-cloud { position: absolute; height: auto; animation: bt-cloud 14s ease-in-out infinite alternate; }
.boot--phone .bt-lb { padding-top: 19cqh; }
.boot--phone .bt-mark .lb-mark-img { height: auto; width: min(74cqw, 340px); }
.boot--phone .bt-tag { font-size: clamp(14px, 4.4cqw, 20px); }

/* ١١/١٠ صالح: «شيل الجملة الحين مؤقت ما نبيها» — شعار «معرفة.. أبعد من الدروب» مخفي بكل مكان (شاشات التحميل، شعار الدفتر،
   سجلّ الرحلة) من هالسطر بس. يرجع: احذف هالقاعدة. العناصر باقية بمكانها (‹.oym-slogan›) والتخطيط يلمّ نفسه بدونها */
.oym-slogan { display: none !important; }
