/* ============ سراج عُمان — الهوية الجديدة (مشتركة بين كل الصفحات) ============ */

/* الشريط العلوي */
.appbar{position:relative;z-index:20;background:rgba(251,244,232,.96);border-bottom:2px solid var(--edge)}
.appbar .wrap{display:flex;align-items:center;gap:10px;min-height:58px;flex-wrap:wrap;padding-block:6px}
.logo{display:flex;align-items:center;gap:6px;text-decoration:none;color:var(--title);font-family:"Amiri";font-weight:700;font-size:25px;line-height:1.3;margin-inline-end:auto}
.logo svg{width:30px;height:38px}
/* روابط الشريط العلوي: نفس الشكل في كل الصفحات، بلا خط تحت الكتابة */
.menu{display:flex;gap:4px;flex-wrap:wrap}
.menu a{text-decoration:none;color:var(--ink);font-weight:600;font-size:15px;border-radius:999px;padding:2px 12px;white-space:nowrap}
.menu a.on{background:#C6ECF0}
.menu a:hover{background:#E3F4F5}
.menu a.on:hover{background:#C6ECF0}
.stars{display:inline-flex;align-items:center;gap:6px;background:#F7C9D6;border-radius:999px;padding:0 14px;font-family:"Amiri";font-weight:700;white-space:nowrap;box-shadow:inset 0 0 0 3px #FFF6EE;line-height:1.9}

/* الغلاف: لوحة مرسومة، والعنوان في السماء الفارغة */
/* الغلاف بعرض الصفحة كاملًا مثل لوحة المتابعة */
.cover-hero{display:flex;flex-direction:column;position:relative;margin:0;background:linear-gradient(#E3F4F5,#C9ECF0 60%);border-radius:0 0 46px 46px;overflow:hidden;text-align:center;box-shadow:var(--lift)}
@media (min-width:641px){ .cover-hero picture img{height:clamp(280px,30vw,560px);object-fit:cover;object-position:50% 85%} }
.cover-text{position:relative;z-index:2;padding:26px 16px 0}
.cover-hero picture{order:2;position:relative;z-index:1}
.cover-hero picture,.cover-hero picture img{display:block;width:100%}
.cover-hero picture img{height:auto;margin-top:clamp(-150px,-11vw,-40px);-webkit-mask-image:linear-gradient(transparent,#000 22%);mask-image:linear-gradient(transparent,#000 22%)}
.kicker{display:table;margin:0 auto 12px;background:rgba(255,253,248,.88);border-radius:999px;padding:0 16px;font-family:"Amiri";font-weight:700;font-size:16px;color:var(--title);line-height:1.9}
.cover-text h1{font-size:clamp(46px,11vw,92px);color:var(--title);line-height:1.45;text-shadow:0 3px 0 #fff,0 0 14px rgba(255,255,255,.8)}
.cta{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.btn.big{font-size:20px;padding:6px 28px;background:var(--gold);text-decoration:none}

/* ناصر ونورة */
.guides{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:end;gap:14px;margin:22px 0 6px}
.guides figure{margin:0;text-align:center;font-family:"Amiri";font-weight:700;color:var(--muted)}
.guides img{display:block;width:110px;height:130px;object-fit:cover;object-position:50% 20%;border-radius:60px 60px 18px 18px;box-shadow:inset 0 0 0 3px var(--edge),var(--lift);background:var(--paper)}
.guides figcaption{line-height:1.8}
.guides .bubble{margin-bottom:34px;border-radius:22px;text-align:center}

/* شريط المستوى */
.levelrow{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;margin:6px 0 4px}
.levelrow > span{font-family:"Amiri";font-weight:700;font-size:18px}

@media (max-width:640px){
  .cover-hero{background:linear-gradient(#E4F1F5,#CBE7F0)}
  .cover-hero picture img{margin-top:-40px;aspect-ratio:1/.8;object-fit:cover;object-position:50% 100%}
  .guides{gap:8px}
  .guides img{width:72px;height:88px}
  .guides .bubble{font-size:15px;margin-bottom:28px;padding:8px 10px}
  .logo{font-size:22px}
  .menu a{font-size:13.5px;padding:2px 7px}
}

/* صندوق استكشاف الأرض (صفحة سلطنة عُمان) */
.explore-box{margin-top:22px;text-align:center}
.explore-box .hint{margin:0 0 10px;color:var(--muted);font-size:15px}
.explore-box .guides{margin:14px 0 0}
.explore-box .bubble{text-align:start;min-height:4.6em}
.explore-box .bubble b{margin-inline-end:6px}

/* ===== الأيقونات والألعاب بالرسومات الجديدة ===== */
.sec .ic{width:38px;height:38px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px #FFFDF8;background:#FBF4E8}
.sec[aria-selected="true"] span{color:#FFFDF8}
.medal{overflow:hidden;padding:0;border:3px solid var(--c)}
.medal .ic{width:100%;height:100%;object-fit:cover}
.gcard .win{overflow:hidden;padding:0}
.gcard .win img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.gcard:hover .win img{transform:scale(1.06)}
.game-head{display:flex;align-items:center;gap:14px;margin:4px 0 8px}
.game-head img{flex:none;width:120px;aspect-ratio:5/4;object-fit:cover;border-radius:60px 60px 12px 12px;box-shadow:inset 0 0 0 2px var(--edge),var(--lift)}
.game-head h3{font-size:clamp(24px,5vw,30px)}
.screen.poster{position:relative;background-size:cover;background-position:center;place-items:end center;padding-bottom:12px}
.screen.poster .soon{background:rgba(255,253,248,.92);border-radius:999px;padding:0 16px;font-size:16px;line-height:2;box-shadow:var(--lift)}
.quiz-guide{grid-template-columns:auto minmax(0,1fr);margin:0 0 10px}
.quiz-guide .bubble{margin-bottom:30px}
/* صناديق "أين مكانها؟" بألوان التضاريس */
.bin[data-bin="m"]{background:linear-gradient(#FBEEF0,#F5E1E4);border-color:#E3C2C6}
.bin[data-bin="p"]{background:linear-gradient(#F1F8EA,#E3F1D7);border-color:#AED493}
.bin[data-bin="s"]{background:linear-gradient(#FDF6E7,#F8E9C8);border-color:#EFCF9E}
.bin .in span{background:#FFFDF8;border-radius:10px;padding:2px 8px;margin:2px auto;display:inline-block}
@media (max-width:640px){
  .sec .ic{width:30px;height:30px}
  .game-head img{width:84px}
  .quiz-guide img{width:72px;height:88px}
}
/* لعبة أين مكانها: صورة التضاريس في رأس كل صندوق */
.bin{padding-top:0;overflow:hidden}
.bin-pic{display:block;height:82px;margin:0 -8px 8px;background:url(../assets/img/game-cls.webp) no-repeat;background-size:300% auto;border-bottom:2px solid rgba(255,255,255,.7)}
.bin[data-bin="s"] .bin-pic{background-position:0% 60%}
.bin[data-bin="p"] .bin-pic{background-position:50% 60%}
.bin[data-bin="m"] .bin-pic{background-position:100% 60%}
/* دكان البيسة */
.shop-counter{display:flex;justify-content:center;margin:6px 0 14px}
.shop-counter .item{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:center;background:linear-gradient(#FFFDF8,#FBF3E6);border:2px solid var(--gold2);border-radius:60px 60px 18px 18px;padding:12px 26px;margin:0;box-shadow:var(--lift)}
.shop-counter .emo{font-size:48px;line-height:1}
.shop-counter .nm{font-family:"Amiri";font-size:26px;font-weight:700}
.shop-counter .tagp{background:var(--gold);border-radius:999px;padding:0 14px;font-weight:700;line-height:2}
.money{justify-content:center}
.tray{margin:14px auto 0;max-width:340px;text-align:center;background:linear-gradient(#E9CFA8,#DDBB8C);border-radius:18px 18px 60px 60px;padding:10px 16px 14px;box-shadow:inset 0 3px 0 rgba(255,255,255,.5),var(--lift)}
.tray .total{color:#5A4A52}
/* صندوق الكنز المرسوم */
.chest-img{display:block;width:min(240px,60vw);margin:0 auto;border-radius:50%;transform:scale(.4) rotate(-8deg);opacity:0;transition:transform .8s cubic-bezier(.3,1.6,.5,1),opacity .5s}
.chest.open .chest-img{transform:scale(1) rotate(0);opacity:1}
#tmap .spot .bg{fill:#FFF8EA}
/* الدكان: رسومات الأغراض والعملات */
.shop-counter img.emo{width:84px;height:84px;object-fit:cover;border-radius:50%;box-shadow:0 0 0 3px #FFFDF8,var(--lift)}
.coin{background:url(../assets/img/money-coin.webp) center/118% no-repeat;color:#6E5320;text-shadow:0 0 4px #FFF4D0,0 0 2px #FFF4D0;box-shadow:0 3px 0 #E7AE45,var(--lift);width:72px;height:72px}
.note{background:url(../assets/img/money-note.webp) center/cover no-repeat;color:#3F5E3A;text-shadow:0 0 4px #F1F8EA,0 0 2px #F1F8EA;min-width:104px;height:58px;box-shadow:0 3px 0 #9CCB95,var(--lift)}
/* لوّن: اختيار الرسمة بصور مصغّرة، واللوحة canvas */
.pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
.pagepick{border:0;background:var(--paper);border-radius:40px 40px 14px 14px;padding:6px 6px 4px;box-shadow:inset 0 0 0 2px var(--edge);display:flex;flex-direction:column;align-items:center;gap:2px;font-weight:700;font-size:14px;line-height:1.5}
.pagepick img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:34px 34px 8px 8px;background:#fff}
.pagepick[aria-pressed="true"]{box-shadow:inset 0 0 0 3px var(--palm);background:#F1F8EA}
.color-wrap canvas{display:block;width:100%;height:auto;border-radius:12px;cursor:crosshair;touch-action:manipulation}
@media (max-width:640px){ .pages{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px} .pagepick{font-size:12px;border-radius:30px 30px 10px 10px} .pagepick img{border-radius:26px 26px 6px 6px} }
/* متحف الآثار: قطع مرسومة */
.artchip{display:inline-flex;align-items:center;gap:8px;padding:4px 14px 4px 6px}
.artchip img,.case .in span img{width:40px;height:40px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px #FFFDF8}
.case .in span{display:flex;align-items:center;gap:6px;justify-content:center}
.case .in span img{width:30px;height:30px}
@media (max-width:640px){ .secnav[style*="repeat(6"] .sec{font-size:11.5px} .secnav[style*="repeat(6"] .sec .ic{width:26px;height:26px} }
/* اسم الطالب (أو «جوازي») في الشريط العلوي ← جواز المستكشف */
.me-chip{display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:var(--ink);font-weight:700;font-size:15px;background:#FFF8E6;border-radius:999px;padding:2px 12px 2px 4px;box-shadow:inset 0 0 0 2px #F1D9A5;white-space:nowrap;margin-inline-start:auto}
@media (max-width:640px){ .me-chip{font-size:13px;white-space:normal;line-height:1.35;padding-block:2px} }
/* مستوى الطالب المسجّل (يُحدَّد من صفه بدل الاختيار) */
.lvl-badge{display:inline-block;background:#E9F7F8;border-radius:999px;padding:3px 16px;font-weight:700;font-size:15px;box-shadow:inset 0 0 0 2px #BFE6EA}
.me-chip img{width:28px;height:28px;border-radius:50%;object-fit:cover;object-position:50% 18%}
.me-chip + .stars{margin-inline-start:8px}
/* الشعار بالخط المعتمد في الشريط العلوي */
.logo-img{display:block;height:40px;width:auto}
@media (max-width:640px){ .logo-img{height:32px} }

/* اسم الكتاب والقسم في الزاوية اليمنى، وزرّا العودة أسفل يسار الصورة */
.cover-hero{position:relative}
.kicker.corner{position:absolute;z-index:3;top:16px;right:18px;margin:0;display:flex;flex-direction:column;align-items:flex-start;text-align:right;border-radius:20px;padding:4px 18px;font-size:clamp(18px,2.6vw,24px);line-height:1.5;box-shadow:var(--lift)}
.kicker.corner small{font-size:.68em;color:var(--muted)}
.cover-hero .cover-text{padding-top:clamp(96px,12vw,110px)}
.cover-nav{position:absolute;z-index:3;left:16px;bottom:16px;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-start}
.cover-nav .btn{background:rgba(255,253,248,.92);text-decoration:none;font-size:15px;padding:3px 14px;box-shadow:var(--lift)}
@media (max-width:640px){
  .kicker.corner{top:10px;right:10px;padding:3px 12px}
  .cover-nav{left:10px;bottom:10px;gap:6px}
  .cover-nav .btn{font-size:13px;padding:2px 10px}
}
/* اسم الكتاب واسم القسم: مستطيلان متجاوران */
.corner-pills{position:absolute;z-index:3;top:16px;right:18px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-start;max-width:calc(100% - 36px)}
.corner-pills .kicker{display:block;margin:0;border-radius:14px;padding:2px 16px;font-size:clamp(15px,2.2vw,19px);line-height:1.8;box-shadow:var(--lift);color:var(--muted)}
.corner-pills .kicker.sec-name{color:var(--title);font-size:clamp(17px,2.6vw,22px)}
@media (max-width:640px){ .corner-pills{top:10px;right:10px;gap:6px} .corner-pills .kicker{padding:1px 10px;border-radius:12px} }
/* عناوين الصفحات بالخط المزخرف (نفس نمط شعار سراج عُمان) */
.logo-cal{margin:0;line-height:0}
.logo-cal img{display:block;height:auto;margin:4px auto 0;filter:drop-shadow(0 2px 0 #fff) drop-shadow(0 0 12px rgba(255,255,255,.9))}
.title-cal img{width:auto;max-width:min(620px,84vw);max-height:clamp(90px,15vw,170px)}
.vol-title.logo-cal img{width:min(640px,84vw)}

/* نبذة بأسلوب مقدمة الكتاب (عنوان عريض ثم فقرة) */
.about-bubble{text-align:start!important;line-height:1.95}
.about-bubble b{font-family:"Amiri";font-size:1.12em;color:var(--title)}

/* مشغّل الفيديو داخل بطاقة «شاهد»: بعرض البطاقة وبنفس القوس العلوي */
video.screen{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#FBF4E8;border-radius:60px 60px 18px 18px;padding:0}

/* قيمة الورقة النقدية في دكان البيسة: شارة فاتحة فوق رسمة الورقة */
.note{background-size:cover;background-position:center;min-width:128px;height:66px;border-radius:8px}
.note .nv{background:rgba(255,253,248,.92);color:var(--ink);text-shadow:none;border-radius:999px;padding:0 10px;font-size:15px;line-height:1.8}

/* ارتفاع واحد لأغلفة كل الصفحات (مثل غلاف الرئيسية): العنوان في السماء، والمنظر تحته */
@media (min-width:641px){
  .cover-hero .cover-text{padding-top:clamp(68px,7.5vw,80px)}
  .cover-hero .logo-cal img{width:auto;height:min(141px,16.2vw);max-width:86vw;max-height:none}
  .cover-hero picture img{height:clamp(230px,24vw,440px);margin-top:clamp(-70px,-4vw,-30px);object-fit:cover;object-position:50% 100%}
}
@media (max-width:640px){ .cover-hero picture img{aspect-ratio:1/.62} }
