/*
 * البيت بترتيب التطبيق المرجعي (Darb.mountHub) — الشاشة 100vw × 56.25vw.
 * ورق دافي، أبواب بالصور، لوحة بيضا فيها نور، وكروت. من غير grid/gap ومن غير blur، والتحديد حلقة حبر + دهبي.
 */
.dn-hub { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; color: #2A1C55; direction: rtl;
  background: radial-gradient(40% 40% at 85% 0%, rgba(255, 200, 61, .32), rgba(255, 200, 61, 0) 70%), radial-gradient(35% 40% at 5% 70%, rgba(186, 160, 255, .25), rgba(186, 160, 255, 0) 70%), #FCEBD3; }

/* فوق: التحية والنجوم + الصلاة + للكبار */
.hb-top { position: absolute; left: 3.4vw; right: 3.4vw; top: 1.6vw; height: 4.4vw; }
.hb-hi { position: absolute; right: 0; top: 0; display: flex; align-items: center; padding: .4vw .6vw .4vw 1.4vw; border-radius: 3vw; background: #fff; box-shadow: 0 .3vw 0 rgba(42, 28, 85, .12); cursor: pointer; }
.hb-hi > b { margin: 0 .9vw 0 1.2vw; font-size: 2vw; font-weight: 900; white-space: nowrap; }
.hb-hi em { font-style: normal; color: #EC4B68; }
.hb-st { padding: .25vw 1vw .35vw; border-radius: 2vw; background: #FFF3C4; font-size: 1.45vw; font-weight: 800; white-space: nowrap; }
/* لقب الطفل حسب نجومه (C.TITLES) جوه نفس الكبسولة */
.hb-st .hb-rank { font-style: normal; color: #6A48D6; }
/* جنب «للكبار» على الشمال (مش في النص): التحية + النجوم + لقب الطفل بقوا أطول */
.hb-pray { position: absolute; left: 11vw; top: .5vw; display: flex; align-items: center; padding: .4vw 1.4vw .55vw; border-radius: 3vw; background: #fff; font-size: 1.5vw; font-weight: 800; white-space: nowrap;
  box-shadow: 0 .3vw 0 rgba(42, 28, 85, .12); }
.hb-pray .cres { display: block; width: 1.6vw; height: 1.6vw; border-radius: 50%; margin-left: .6vw; box-shadow: inset -.4vw -.1vw 0 0 #E09A12; }
.hb-par { position: absolute; left: 0; top: .5vw; display: flex; align-items: center; padding: .4vw 1.2vw .5vw; border-radius: 3vw; background: #fff; font-size: 1.4vw; font-weight: 700; cursor: pointer;
  box-shadow: 0 .3vw 0 rgba(42, 28, 85, .12); overflow: hidden; }
.hb-par svg { width: 1.5vw; height: 1.5vw; margin-left: .5vw; }
/* مراجعة UX (U4): أيقونة القفل متلوّنة للخلفيات الغامقة (كريمي)، فكانت مش باينة على الزرار الأبيض */
.hb-par svg path { stroke: #2A1C55; }
.hb-par svg rect { fill: #2A1C55; }
.hb-par svg circle { fill: #FFC83D; }
.hb-par .h-hold { position: absolute; left: .8vw; right: .8vw; bottom: .3vw; height: .4vw; border-radius: .3vw; background: #FFC83D; transform: scaleX(0); transform-origin: 100% 50%; }

/* الأبواب */
.hb-doors { position: absolute; left: 2.6vw; right: 2.6vw; top: 7vw; height: 11.6vw; display: flex; justify-content: space-between; }
.hb-d { position: relative; width: 12.4vw; padding: .5vw .5vw .6vw; border-radius: 1.6vw; text-align: center; cursor: pointer; box-shadow: 0 .35vw 0 rgba(42, 28, 85, .12);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.hb-di { display: block; height: 7.6vw; border-radius: 1.1vw; background: center / cover no-repeat; }
.hb-d b { display: block; margin-top: .45vw; font-size: 1.55vw; font-weight: 900; line-height: 1.25; white-space: nowrap; }
.hb-d.on { box-shadow: 0 0 0 .3vw #6A48D6, 0 .35vw 0 rgba(42, 28, 85, .12); }
.hb-d.foc { transform: translateY(-.5vw) scale(1.06); box-shadow: 0 0 0 .3vw #2A1C55, 0 0 0 .6vw #FFC83D; z-index: 2; }
.hb-d.locked { opacity: .55; }
.hb-d.nudge { animation: dn-shake .4s var(--e-out); }

/* اللوحة */
.hb-panel { position: absolute; left: 2.6vw; right: 2.6vw; top: 20.4vw; bottom: 1.6vw; border-radius: 2.6vw; background: #FFFCF6; box-shadow: 0 .4vw 0 rgba(42, 28, 85, .1); overflow: hidden; }
.hb-panel.swap .hb-head, .hb-panel.swap .hb-row { animation: hb-in .4s cubic-bezier(.34, 1.56, .64, 1); }
.hb-guide { position: absolute; z-index: 3; right: 1.6vw; top: .9vw; width: 5.6vw; }
.hb-guide img { display: block; width: 100%; animation: hb-bob 2.6s ease-in-out infinite alternate; }
.hb-bub { position: absolute; top: .8vw; right: 6.2vw; width: 18vw; padding: .5vw 1vw .65vw; border-radius: 1.2vw; background: #FFF3C4; font-size: 1.35vw; font-weight: 800; line-height: 1.4; }
.hb-bub.pop { animation: hb-pop .4s cubic-bezier(.34, 1.56, .64, 1); }
.hb-head { position: absolute; left: 0; right: 0; top: .9vw; text-align: center; }
.hb-head h2 { display: inline-block; margin: 0; padding: .1vw 2.2vw .6vw; font-size: 2.6vw; font-weight: 900; line-height: 1.3; transform: rotate(-1.2deg);
  background: center / 100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath d='M7 33 C22 17 62 15 110 15 C170 12 232 9 287 16 C297 18 299 26 292 30 C299 36 294 45 281 47 C220 53 150 50 90 53 C50 54 20 55 8 48 C1 44 2 38 7 33 Z' fill='%23BBD7FF'/%3E%3C/svg%3E"); }
.hb-head h2 em { font-style: normal; color: #EC4B68; }
.hb-head p { margin: .2vw 0 0; font-size: 1.35vw; color: #5B4E87; }

/* الصف الفرعي (مسارات «نتعلّم») والكروت: صفوف بتتزحلق */
.hb-sub { position: absolute; left: 1.4vw; right: 1.4vw; top: 7.4vw; height: 5.6vw; overflow: hidden; }
/* مراجعة UX (U3): الكارت المتحدد بيكبر 1.04 وعليه حلقة .6vw، فالصف ليه هامش داخلي 1vw يمين وشمال وتحت عشان الحلقة ما تتقصّش
   (المحتوى نفسه في نفس المكان: left/right/bottom اتنقص منهم نفس الهامش) */
.hb-row { position: absolute; left: .4vw; right: .4vw; top: 7.2vw; bottom: .4vw; overflow: hidden; padding: .9vw 1vw .8vw; }
.hb-panel.sub .hb-row { top: 13vw; }
.hb-track { display: flex; height: 100%; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.hb-t { flex: none; width: 11.6vw; height: 4.9vw; margin: .35vw 0 0 .9vw; padding: .3vw .6vw; border-radius: 1.2vw; background: #EEF2FF; text-align: center; line-height: 1.2; cursor: pointer; }
.hb-t .em { display: block; font-size: 1.6vw; font-weight: 900; }
.hb-t b { display: block; font-size: 1.15vw; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-t small { display: block; font-size: 1.1vw; color: #5B4E87; }
.hb-t.foc { background: #FFA41B; color: #fff; box-shadow: 0 0 0 .25vw #2A1C55; }
.hb-t.foc small { color: #fff; }

.hb-c { position: relative; flex: none; width: 18.6vw; height: 100%; margin-left: 1.2vw; border-radius: 1.6vw; background: #fff; box-shadow: 0 .4vw 0 rgba(42, 28, 85, .14); overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.hb-c.foc { transform: translateY(-.4vw) scale(1.04); box-shadow: 0 0 0 .3vw #2A1C55, 0 0 0 .6vw #FFC83D; z-index: 2; }
.hb-c.press { animation: hb-press .3s ease; }
.hb-pic { position: relative; display: block; flex: 1 1 auto; min-height: 0; background: #F3ECFF center / cover no-repeat; }
.hb-pic.hb-pc { background-color: #FFF1D6; background-size: contain; background-origin: content-box; padding: .6vw; }
.hb-pic.hb-q:after { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: linear-gradient(180deg, rgba(42, 28, 85, 0) 35%, rgba(42, 28, 85, .45) 100%); }
.hb-ttl { position: absolute; z-index: 1; left: .4vw; right: .4vw; bottom: .3vw; text-align: center; font-size: 2.5vw; font-weight: 900; color: #FFE27A; line-height: 1.2; /* حدّ غامق بظلال صلبة متراصة بدل text-stroke + paint-order (Chromium قبل 123 على webOS/Tizen بيرسم الحد فوق الحرف) */
  text-shadow: .14vw 0 0 #3A1F6E, -.14vw 0 0 #3A1F6E, 0 .14vw 0 #3A1F6E, 0 -.14vw 0 #3A1F6E, .1vw .1vw 0 #3A1F6E, -.1vw .1vw 0 #3A1F6E, .1vw -.1vw 0 #3A1F6E, -.1vw -.1vw 0 #3A1F6E, 0 .3vw 0 #3A1F6E; }
.hb-tag, .hb-dur { position: absolute; z-index: 1; top: .5vw; padding: .1vw .7vw .25vw; border-radius: .8vw; font-size: 1.1vw; font-weight: 900; }
.hb-tag { left: .5vw; background: #fff; color: #6A48D6; }
.hb-dur { right: .5vw; background: #2A1C55; color: #FFE27A; }
.hb-lk { position: absolute; z-index: 1; left: 50%; top: 50%; width: 3.6vw; height: 3.6vw; margin: -1.8vw 0 0 -1.8vw; padding: .7vw; border-radius: 50%; background: rgba(42, 28, 85, .6); }
.hb-lk svg { width: 100%; height: 100%; }
.hb-m { position: relative; display: block; flex: none; padding: .5vw .9vw .7vw; }
.hb-m small { display: block; font-size: 1.1vw; font-weight: 800; color: #6A48D6; line-height: 1.3; }
.hb-m > b { display: block; font-size: 1.45vw; font-weight: 900; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hb-m .hb-sx { display: block; font-size: 1vw; color: #5B4E87; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }
.hb-m .hb-pr { display: inline-block; vertical-align: middle; width: 8vw; height: .6vw; margin: .4vw 0 .3vw; border-radius: .4vw; background: #EEE7F7; overflow: hidden; }
.hb-m .hb-pr i { display: block; height: 100%; background: #FFB43A; border-radius: .4vw; }
.hb-m em { font-style: normal; font-size: 1.1vw; font-weight: 800; color: #5B4E87; margin-right: .4vw; }
.hb-go { position: absolute; left: .8vw; top: -1.5vw; z-index: 2; padding: .25vw .9vw .4vw; border-radius: 1.2vw; background: #EC4B68; color: #fff; font-size: 1.05vw; font-weight: 900; box-shadow: 0 .25vw 0 #B92E49; }
.hb-go.y { background: #FFB21E; color: #2A1C55; box-shadow: 0 .25vw 0 #C98100; }
.hb-go.d { background: #2A1C55; box-shadow: 0 .25vw 0 #120B2E; }
.hb-go.ok { background: #2E9B62; box-shadow: 0 .25vw 0 #1C6B41; }
.hb-c.main { width: 24vw; }
.hb-c.main .hb-m > b { font-size: 1.9vw; }

@keyframes hb-in { from { opacity: 0; transform: translateY(1.2vw); } }
@keyframes hb-pop { from { opacity: 0; transform: scale(.7); } }
@keyframes hb-bob { from { transform: translateY(-.3vw) rotate(-3deg); } to { transform: translateY(.3vw) rotate(3deg); } }
@keyframes hb-press { 50% { transform: scale(.95); } }
