:root {
  --pink: #e79fb8;
  --pink-dark: #dd8fac;
  --pink-deep: #cf789b;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  font-family: "Baloo Bhaijaan 2", "Cairo", system-ui, sans-serif;
  background: var(--pink);
  color: var(--white);
  overflow-x: hidden;
}

/* ============ الشاشات ============ */
.screen {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hidden { display: none !important; }

/* صفحة العد قابلة للتمرير (عشان خريطة الباص تحتها) */
#countdown-screen { flex-direction: column; justify-content: flex-start; overflow-y: auto; overflow-x: hidden; }
.cd-content { min-height: 100dvh; justify-content: center; }
.cd-extra {
  position: relative; z-index: 3; width: 100%; max-width: 480px;
  margin: 0 auto; padding: 0 5vw 46px;
}
.scroll-hint {
  color: #fff; font-weight: 800; font-size: clamp(15px, 4.4vw, 19px);
  display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: .92;
  animation: bob 1.6s ease-in-out infinite;
}
.scroll-hint .chev { font-size: 26px; line-height: .6; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* شاشة الاحتفال (الألعاب النارية) */
#celebration {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--pink);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#fw { position: absolute; inset: 0; z-index: 2; }
.cel-content {
  position: relative;
  z-index: 3;
  text-align: center;
  animation: celPop .8s ease both;
}
.cel-emoji { font-size: clamp(70px, 22vw, 130px); line-height: 1; }
.cel-title {
  color: #fff;
  font-size: clamp(46px, 13vw, 90px);
  font-weight: 800;
  margin-top: 10px;
  text-shadow: 0 6px 22px rgba(150, 70, 100, .45);
}
@keyframes celPop {
  0%   { opacity: 0; transform: scale(.5); }
  60%  { transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}

/* انتقال نهاية العد التنازلي */
.fade-out { animation: fadeOut .7s ease forwards; }
.fade-in { animation: fadeIn .8s ease forwards; }
@keyframes fadeOut {
  to { opacity: 0; transform: scale(1.06); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ خلفية الأشعة الوردية (ثابتة تغطي الشاشة — خفيفة على الجوال) ============ */
.bg-swirl {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-conic-gradient(from 0deg at 50% 42%,
      var(--pink) 0deg 5deg,
      var(--pink-dark) 5deg 10deg);
  opacity: 0.5;
}

/* ============ النجوم اللامعة ============ */
.sparkle {
  position: absolute;
  z-index: 2;
  fill: var(--white);
  filter: drop-shadow(0 0 8px rgba(255,255,255,.35));
}
.sparkle-1 { width: 58px; top: 20%; left: 10%; }
.sparkle-2 { width: 46px; bottom: 10%; right: 12%; }

/* ============ محتوى العد التنازلي ============ */
.cd-content {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 100%;
  max-width: 100%;
  padding: 5vh 4vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 4vh, 40px);
}

.cd-marks {
  font-size: clamp(90px, 26vw, 170px);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -4px;
}
.cd-subtitle {
  font-size: clamp(22px, 6.5vw, 40px);
  font-weight: 700;
}
.cd-title {
  font-size: clamp(46px, 13vw, 90px);
  font-weight: 800;
}

/* ============ العداد ============ */
.timer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(3px, 1vw, 8px);
  direction: ltr;               /* الترتيب: يوم:ساعة:دقيقة:ثانية */
  width: 100%;
  max-width: 100%;
}
.unit { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.box {
  background: var(--white);
  color: var(--pink-deep);
  border-radius: 14px;
  width: clamp(50px, 15vw, 84px);
  height: clamp(46px, 13vw, 74px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(24px, 7vw, 42px);
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(160, 80, 110, .18);
}
.label {
  font-size: clamp(11px, 3vw, 15px);
  font-weight: 600;
  opacity: .9;
}
.colon {
  color: var(--white);
  font-size: clamp(22px, 6vw, 40px);
  font-weight: 800;
  line-height: clamp(46px, 13vw, 74px);
}

.hourglass {
  width: clamp(90px, 26vw, 150px);
  margin-top: 6px;
  filter: drop-shadow(0 6px 14px rgba(160, 80, 110, .2));
}

/* ============ صفحة الفعاليات ============ */
#event-screen { align-items: flex-start; }
.ev-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 480px;
  padding: 7vh 6vw 12vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ev-hero {
  text-align: center;
  font-size: clamp(34px, 10vw, 56px);
  font-weight: 800;
  margin-bottom: 6px;
}

.card {
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 24px;
  padding: 20px 20px 24px;
}
.card-title {
  font-size: clamp(24px, 7vw, 32px);
  font-weight: 800;
  margin-bottom: 16px;
}

.prizes { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.prizes li {
  background: rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: clamp(16px, 4.5vw, 20px);
  font-weight: 600;
}

/* بطاقة الجوائز (صورة حافة-لـ-حافة بدون إطار) */
.prize-card { padding: 0; overflow: hidden; background: transparent; border: none; }
.prize-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(150,70,100,.26);
}

/* حملة الباص */
.bus-card { text-align: center; }
.bus-sub {
  font-size: clamp(16px, 4.6vw, 21px);
  font-weight: 700;
  margin-bottom: 16px;
}
.bus-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
  margin: 0 auto 18px;
  box-shadow: 0 10px 26px rgba(150,70,100,.22);
}
.bus-how {
  font-size: clamp(15px, 4.2vw, 19px);
  font-weight: 700;
  margin-bottom: 14px;
  opacity: .95;
}
.steps { display: flex; flex-direction: column; gap: 12px; text-align: right; counter-reset: step; }
.step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.16);
  border-radius: 16px;
  padding: 14px 16px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--pink-deep);
  font-weight: 800;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.step-icon { flex: 0 0 auto; font-size: clamp(24px, 7vw, 32px); }
.step-text { font-size: clamp(15px, 4.3vw, 19px); font-weight: 700; line-height: 1.4; }

/* خريطة الباص المدمجة */
.map-status {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,.18); border-radius: 999px; padding: 9px 16px;
  font-weight: 700; font-size: clamp(14px, 4vw, 17px); margin-bottom: 14px;
}
.map-status .dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.map-status .on { background: #35d07f; box-shadow: 0 0 10px #35d07f; }
.map-status .off { background: #ffcf3f; }
#event-map, #cd-map {
  height: 320px; width: 100%; border-radius: 16px; overflow: hidden;
  background: #dcdcdc; box-shadow: 0 8px 20px rgba(150,70,100,.18);
}
.bus-marker { font-size: 32px; line-height: 1; text-align: center; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
.leaflet-container { font-family: inherit; }

.track-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: #fff;
  color: var(--pink-deep);
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 16px;
  padding: 15px 18px;
  font-family: inherit;
  font-size: clamp(16px, 4.6vw, 20px);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(150,70,100,.22);
  transition: transform .12s ease;
}
.track-btn:active { transform: scale(.97); }
/* الزر الثانوي (فتح بملء الشاشة) — شفاف بإطار */
.track-btn.ghost {
  background: rgba(255,255,255,.16);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  box-shadow: none;
}

.schedule { display: flex; flex-direction: column; gap: 12px; }
.sched-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 14px 16px;
}
.sched-day {
  background: var(--white);
  color: var(--pink-deep);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: clamp(16px, 4.5vw, 20px);
  white-space: nowrap;
  min-width: 74px;
  text-align: center;
}
.sched-info { display: flex; flex-direction: column; gap: 2px; }
.sched-time { font-size: clamp(16px, 4.5vw, 20px); font-weight: 700; }
.sched-place { font-size: clamp(14px, 4vw, 17px); font-weight: 600; opacity: .9; }

.social { display: flex; flex-direction: column; gap: 12px; }
.social-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.16);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 16px;
  padding: 12px 16px;
  color: var(--white);
  text-decoration: none;
  transition: transform .12s ease, background .2s ease;
}
.social-btn:active { transform: scale(.97); background: rgba(255,255,255,.28); }

.social-badge {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(160, 80, 110, .18);
}
.social-badge img { width: 34px; height: 34px; object-fit: contain; }

.social-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.social-name { font-size: clamp(17px, 4.6vw, 21px); font-weight: 800; }
.social-handle { font-size: clamp(13px, 3.8vw, 16px); font-weight: 600; opacity: .85; direction: ltr; text-align: right; }
.social-arrow { flex: 0 0 auto; font-size: 26px; font-weight: 800; opacity: .7; }

.tbd { opacity: .75; font-weight: 600; font-size: .85em; }
