/* مكتبة ورد — clean professional UI system (redesign v2, 2026-11-28). Loaded after styles.css. */
:root {
  --w-cream: #FDEEF3; --w-lav: #F6CADA; --w-pink: #F5BDD1; --w-sky: #B8E1F5;
  --w-mint: #C4E9D7; --w-butter: #F5E7A8; --w-purple: #145B59;
  --w-ink: #23403F; --w-muted: #6B5560;
  --w-line: #F0D3DD; --w-card: #fff;
  --w-lav-soft: #FCEAF1; --w-pink-soft: #FCE8F0; --w-sky-soft: #E3F3FB; --w-mint-soft: #E4F5EC; --w-butter-soft: #FBF3CE;
  --w-shadow: 0 1px 2px rgba(20,91,89,.08), 0 6px 18px rgba(20,91,89,.08);
  --w-shadow-hover: 0 2px 4px rgba(20,91,89,.1), 0 10px 24px rgba(20,91,89,.14);
  --w-r: 16px;
  --cream: #FDEEF3; --ink: #23403F; --ink-muted: #6B5560; --teal: #145B59; --teal-light: #E2F3F2; --rose: #B5517A;
  --radius-xl: 20px; --radius-lg: 16px; --radius-md: 12px;
}
html { overflow-x: clip; }
body { font-family: "Tajawal", system-ui, sans-serif; color: var(--w-ink); background: var(--w-cream); }
.bg-decor, .orb { display: none !important; }
h1, h2, h3, h4, .brand-title, .world-title, .adv-v { font-family: "Almarai", "Tajawal", sans-serif; color: var(--w-purple); letter-spacing: 0; }
img { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }

/* ---------- header ---------- */
.topbar { background: rgba(255,249,240,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--w-line); box-shadow: none; }
.brand-btn { background: #fff; border: 1px solid var(--w-line); border-radius: 14px; box-shadow: var(--w-shadow); }
.child-pill { background: #fff; border: 1px solid var(--w-line); box-shadow: var(--w-shadow); border-radius: 14px; }
.lvl-chip { background: var(--w-lav-soft); color: var(--w-purple); border-radius: 999px; font-weight: 800; }
.star-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--w-butter-soft); color: #6B5200; border-radius: 999px; font-weight: 800; }
.star-chip svg { width: 15px; height: 15px; }
.mom-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--w-purple) !important; color: #fff !important; border-radius: 12px; border: 0; box-shadow: var(--w-shadow); font-weight: 800; transition: transform .15s ease, box-shadow .15s ease; }
.mom-btn .btn-ic { width: 20px; height: 20px; display: inline-flex; } .mom-btn .btn-ic svg { width: 100%; height: 100%; stroke: #fff; }
.mom-btn:hover { transform: translateY(-1px); box-shadow: var(--w-shadow-hover); }

/* ---------- navigation ---------- */
.nav-card { background: #fff; border: 1px solid var(--w-line); border-radius: var(--w-r); box-shadow: var(--w-shadow); padding: 8px; }
.nav-item { font-family: "Tajawal", sans-serif; font-weight: 700; color: var(--w-ink); border-radius: 12px; gap: 10px; transition: background .15s ease, transform .15s ease; }
.nav-item .nav-ic { width: 30px; height: 30px; display: inline-flex; flex-shrink: 0; }
.nav-item .nav-ic svg, .mob-tab svg { width: 100%; height: 100%; display: block; }
.nav-item:hover { background: var(--w-lav-soft); }
.nav-item.is-active { background: var(--w-purple); color: #fff; box-shadow: var(--w-shadow); }
.mobile-tabbar { background: rgba(255,255,255,.97); border-top: 1px solid var(--w-line); box-shadow: 0 -4px 16px rgba(20,91,89,.08); }
.mob-tab { font-family: "Tajawal", sans-serif; font-weight: 700; color: var(--w-muted); border-radius: 12px; }
.mob-tab span:first-child { width: 26px; height: 26px; display: block; font-size: 0; }
.mob-tab.is-active { background: var(--w-lav-soft); color: var(--w-purple); }

/* ---------- buttons ---------- */
.btn-primary, .btn-teal, .btn-gold, .btn-outline, .btn-ghost, .btn-danger, .btn-danger-outline, .q-big-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Almarai", "Tajawal", sans-serif; font-weight: 700; border-radius: 12px; min-height: 44px; padding: 8px 18px;
  border: 1px solid transparent; box-shadow: none; transition: transform .12s ease, box-shadow .15s ease, background .15s ease; cursor: pointer; line-height: 1.2;
}
.btn-primary svg, .btn-teal svg, .btn-gold svg, .btn-outline svg, .q-big-btn svg, .m-listen-btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--w-purple); color: #fff; }
.btn-teal { background: var(--w-lav); color: #0F3F3D; }
.btn-gold { background: var(--w-butter); color: #5B4310; }
.btn-outline { background: #fff; color: var(--w-purple); border-color: var(--w-lav); }
.btn-ghost { background: transparent; color: var(--w-purple); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: .92rem; }
.btn-lg { min-height: 50px; font-size: 1.05rem; }
.btn-primary:hover, .btn-teal:hover, .btn-gold:hover, .btn-outline:hover { transform: translateY(-1px); box-shadow: var(--w-shadow-hover); }
.btn-primary:active, .btn-teal:active, .btn-gold:active, .btn-outline:active, .world-card:active { transform: translateY(1px); box-shadow: none; }
.btn-rec-live { background: #F7C7C0; color: #7A2E22; animation: wPulse 1.2s ease-in-out infinite; }
@keyframes wPulse { 50% { opacity: .75; } }
button:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--w-purple); outline-offset: 2px; }

/* ---------- generic cards ---------- */
.parchment-card, .game-card, .mini-store-card, .achievements-box, .q-focus-card, .q-quiz-card, .q-win-box, .m-scroll-card, .letter-spotlight, .sub-preview-box, .pwa-tip-box {
  background: #fff; border: 1px solid var(--w-line); border-radius: var(--w-r); box-shadow: var(--w-shadow);
}
.main-stage { gap: 16px; }
.section-head h2, .quran-map-hero h2 { font-size: 1.5rem; margin: 0; }
.section-sub, .card-desc { color: var(--w-muted); }
.sec-head { background: #fff; border: 1px solid var(--w-line); border-radius: var(--w-r); box-shadow: var(--w-shadow); padding: 16px 18px; border-inline-start: 6px solid var(--w-lav); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-head.tone-mint { border-inline-start-color: var(--w-mint); } .sec-head.tone-sky { border-inline-start-color: var(--w-sky); } .sec-head.tone-butter { border-inline-start-color: var(--w-butter); }
.sec-head.tone-pink { border-inline-start-color: var(--w-pink); } .sec-head.tone-lavender { border-inline-start-color: var(--w-lav); } .sec-head.tone-coral { border-inline-start-color: var(--w-pink); }
.quran-progress-pill, .surah-meta-pill, .source-chip, .game-badge, .m-source-badge, .q-mini-pill {
  display: inline-flex; align-items: center; gap: 6px; background: var(--w-lav-soft); color: var(--w-purple); border: 0; border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: .82rem;
}
.h-ic { display: inline-flex; width: 26px; height: 26px; vertical-align: middle; margin-inline-end: 8px; } .h-ic svg { width: 100%; height: 100%; }

/* ---------- home: hero ---------- */
.hero-banner { position: relative; display: block; background: var(--w-lav-soft); border: 1px solid var(--w-line); border-radius: 20px; padding: 22px 24px; box-shadow: var(--w-shadow); overflow: hidden; }
.hero-banner::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: var(--w-pink-soft); z-index: 0; }
.hero-banner::before { content: ""; position: absolute; inset-inline-end: 90px; bottom: -50px; width: 120px; height: 120px; border-radius: 50%; background: var(--w-sky-soft); z-index: 0; }
.hero-copy { position: relative; z-index: 1; max-width: 640px; }
.hero-copy h1 { font-size: clamp(1.45rem, 3.6vw, 2.2rem); line-height: 1.3; margin: 8px 0 6px; }
.hero-tagline { font-size: clamp(.98rem, 2.2vw, 1.12rem); font-weight: 600; color: var(--w-muted); margin: 0 0 14px; }
.hero-kicker { display: inline-block; background: #fff; color: var(--w-purple); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: .8rem; border: 1px solid var(--w-line); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- home: adventure dashboard ---------- */
.adventure { background: #fff; border: 1px solid var(--w-line); border-radius: var(--w-r); padding: 16px; box-shadow: var(--w-shadow); margin-top: 14px; }
.adventure-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.adventure-head h2 { margin: 0; font-size: 1.15rem; }
.adventure-level { background: var(--w-butter-soft); color: #6B5200; font-weight: 800; border-radius: 999px; padding: 3px 12px; font-size: .85rem; }
.adventure-track { position: relative; margin: 12px 0; height: 24px; background: var(--w-lav-soft); border-radius: 999px; overflow: hidden; }
.adventure-fill { height: 100%; min-width: 6%; border-radius: 999px; background: var(--w-pink); transition: width .5s ease; }
.adventure-note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .78rem; color: var(--w-purple); }
.adv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.adv-stat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; text-align: start; flex-wrap: wrap; }
.adv-ic { width: 34px; height: 34px; background: rgba(255,255,255,.75); border-radius: 10px; padding: 4px; } .adv-ic svg { width: 100%; height: 100%; }
.adv-stat { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ic v" "ic k"; column-gap: 10px; row-gap: 0; align-items: center; }
.adv-ic { grid-area: ic; } .adv-v { grid-area: v; font-size: 1.1rem; font-weight: 800; line-height: 1.2; } .adv-k { grid-area: k; font-size: .76rem; font-weight: 700; color: var(--w-muted); }
.tone-butter { background: var(--w-butter-soft); } .tone-lavender { background: var(--w-lav-soft); } .tone-mint { background: var(--w-mint-soft); } .tone-sky { background: var(--w-sky-soft); } .tone-pink { background: var(--w-pink-soft); } .tone-coral { background: var(--w-pink-soft); }

/* ---------- home: six destination cards ---------- */
.worlds-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.world-card {
  all: unset; box-sizing: border-box; display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; align-items: center; cursor: pointer; min-height: 112px;
  background: #fff; border: 1px solid var(--w-line); border-radius: var(--w-r); padding: 14px; box-shadow: var(--w-shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.world-card:hover { transform: translateY(-2px); box-shadow: var(--w-shadow-hover); border-color: var(--w-lav); }
.world-card:focus-visible { outline: 3px solid var(--w-purple); outline-offset: 2px; }
.world-ic { width: 56px; height: 56px; border-radius: 16px; padding: 10px; background: var(--w-lav-soft); }
.world-ic svg { width: 100%; height: 100%; }
.world-card.tone-mint .world-ic { background: var(--w-mint-soft); } .world-card.tone-sky .world-ic { background: var(--w-sky-soft); } .world-card.tone-pink .world-ic { background: var(--w-pink-soft); }
.world-card.tone-lavender .world-ic { background: var(--w-lav-soft); } .world-card.tone-butter .world-ic { background: var(--w-butter-soft); } .world-card.tone-coral .world-ic { background: var(--w-pink-soft); }
.world-card, .world-card * { background-image: none; }
.world-card.tone-mint, .world-card.tone-sky, .world-card.tone-pink, .world-card.tone-lavender, .world-card.tone-butter, .world-card.tone-coral { background-color: #fff; }
.world-body { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 0; background: none !important; text-align: start; min-width: 0; }
.world-pill-title { font-size: 1.02rem; font-weight: 800; line-height: 1.3; color: var(--w-purple); font-family: "Almarai", "Tajawal", sans-serif; }
.world-desc { font-size: .82rem; font-weight: 500; color: var(--w-muted); line-height: 1.45; }
.world-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: 6px; }
.world-count { font-size: .76rem; font-weight: 800; color: var(--w-purple); background: var(--w-lav-soft); padding: 2px 10px; border-radius: 999px; }
.world-go { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--w-purple); color: #fff; }
.soon-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.soon-chip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px dashed var(--w-lav); border-radius: 999px; padding: 6px 12px; font-weight: 700; color: var(--w-purple); font-size: .85rem; min-height: 36px; }
.soon-chip:hover { background: var(--w-lav-soft); }
.soon-chip-tag { background: var(--w-butter); color: #5B4310; border-radius: 999px; padding: 1px 8px; font-size: .7rem; font-weight: 800; }

/* ---------- home: Quran + challenge panels (mint / lavender / cream, geometric) ---------- */
.featured-bottom-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-top: 14px; }
.quran-featured-banner { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--w-line); padding: 18px; color: var(--w-purple); box-shadow: var(--w-shadow);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%2366518A' stroke-opacity='.09' stroke-width='1.6'%3E%3Cpath d='M36 4l8 18 18-8-8 18 18 8-18 8 8 18-18-8-8 18-8-18-18 8 8-18-18-8 18-8-8-18 18 8z'/%3E%3Ccircle cx='36' cy='36' r='9'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--w-mint-soft) 0, var(--w-lav-soft) 70%, var(--w-cream) 100%); }
.quran-featured-banner h3 { font-size: 1.35rem; margin: 4px 0; } .quran-featured-banner p { color: var(--w-muted); margin: 0 0 8px; font-size: .92rem; }
.qf-kicker { display: inline-block; background: #fff; border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: .76rem; border: 1px solid var(--w-line); }
.qf-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mini-stones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mini-stone { display: inline-flex; align-items: center; gap: 6px; font-family: "Tajawal", sans-serif; font-weight: 700; background: #fff; color: var(--w-purple); border: 1px solid var(--w-line); border-radius: 999px; padding: 6px 12px; min-height: 40px; cursor: pointer; transition: transform .12s ease, background .15s ease; font-size: .88rem; }
.mini-stone svg { width: 18px; height: 18px; }
.mini-stone:hover { background: var(--w-lav-soft); transform: translateY(-1px); } .mini-stone.is-mem { background: var(--w-mint-soft); border-color: var(--w-mint); }
.challenge-featured-card { border-radius: 20px; border: 1px solid var(--w-line); background: var(--w-butter-soft); box-shadow: var(--w-shadow); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.cf-head h3 { margin: 0; font-size: 1.2rem; } .cf-row { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 800; margin-bottom: 4px; color: var(--w-purple); }
.progress-bar-track { background: #fff; border-radius: 999px; height: 12px; overflow: hidden; }
.progress-bar-fill { background: var(--w-pink); height: 100%; border-radius: 999px; transition: width .5s ease; }

/* ---------- Quran map ---------- */
.stepping-map { gap: 10px; }
.surah-stone { background: #fff; border: 1px solid var(--w-line); border-radius: var(--w-r); box-shadow: var(--w-shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.surah-stone:hover { transform: translateY(-2px); box-shadow: var(--w-shadow-hover); border-color: var(--w-lav); }
.surah-stone.is-memorized { background: var(--w-mint-soft); border-color: var(--w-mint); }
.surah-stone.is-next { border-color: var(--w-purple); box-shadow: 0 0 0 2px var(--w-lav); }
.stone-step-num { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; border-radius: 50%; background: var(--w-lav-soft); color: var(--w-purple); font-weight: 800; }
.stone-step-num svg { width: 20px; height: 20px; }
.stone-name { font-family: "Almarai", "Tajawal", sans-serif; color: var(--w-purple); font-weight: 800; }
.stone-status { color: var(--w-muted); font-weight: 700; font-size: .8rem; }
.basmalah-banner { background: var(--w-lav-soft); border-radius: 14px; border: 1px solid var(--w-line); }

/* ---------- games ---------- */
.game-card { padding: 16px; display: flex; flex-direction: column; gap: 8px; transition: transform .15s ease, box-shadow .15s ease; }
.game-card:hover { transform: translateY(-2px); box-shadow: var(--w-shadow-hover); }
.game-head { display: flex; align-items: center; gap: 12px; }
.game-emoji { width: 52px; height: 52px; border-radius: 16px; padding: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--w-lav-soft) !important; }
.game-card:nth-child(4n+2) .game-emoji { background: var(--w-sky-soft) !important; } .game-card:nth-child(4n+3) .game-emoji { background: var(--w-mint-soft) !important; } .game-card:nth-child(4n) .game-emoji { background: var(--w-pink-soft) !important; }
.game-emoji svg { width: 100%; height: 100%; }
.game-card h3 { font-size: 1.05rem; margin: 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* ---------- letters ---------- */
.letters-grid { gap: 8px; }
.letter-tile { background: #fff; border: 1px solid var(--w-line); border-radius: 14px; box-shadow: none; transition: transform .12s ease, background .15s ease, border-color .15s ease; }
.letter-tile:hover { background: var(--w-lav-soft); transform: translateY(-1px); }
.letter-tile.is-active { background: var(--w-purple); border-color: var(--w-purple); } .letter-tile.is-active .letter-tile-ch, .letter-tile.is-active .letter-tile-name { color: #fff; }
.letter-tile-ch { font-family: "Almarai", "Tajawal", sans-serif; color: var(--w-purple); }
.letter-spotlight { padding: 16px; }
.letter-giant-box { background: var(--w-sky-soft); border-radius: 16px; border: 0; box-shadow: none; }
.letter-giant-char { color: var(--w-purple); font-family: "Almarai", "Tajawal", sans-serif; }
.harakat-row { gap: 8px; }
.haraka-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--w-lav); border-radius: 12px; color: var(--w-purple); font-weight: 800; min-height: 44px; transition: background .15s ease, transform .12s ease; }
.haraka-btn:hover { background: var(--w-lav-soft); } .haraka-btn:active { transform: translateY(1px); }
.haraka-btn svg { width: 20px; height: 20px; }

/* ---------- tracer ---------- */
.lt-meadow { background: #fff !important; border: 1px solid var(--w-line) !important; border-radius: var(--w-r) !important; box-shadow: var(--w-shadow) !important; padding: 14px; }
.lt-meadow-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.lt-head-copy h3 { font-size: 1.15rem; margin: 0; } .lt-head-copy p { margin: 2px 0 0; color: var(--w-muted); font-size: .9rem; }
.lt-stage-wrap { background: var(--w-lav-soft) !important; border: 0 !important; border-radius: 14px; }
.lt-round-btn { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--w-lav-soft) !important; color: var(--w-purple) !important; border: 1px solid var(--w-lav) !important; box-shadow: none !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lt-round-btn svg { width: 100%; height: 100%; }
.lt-round-btn:hover { background: var(--w-lav) !important; } .lt-round-btn:active { transform: translateY(1px); }
.lt-win-overlay { background: var(--w-mint-soft) !important; border: 1px solid var(--w-mint) !important; border-radius: 14px !important; box-shadow: none !important; }
.lt-win-pill { color: var(--w-purple) !important; }

/* ---------- adhkar / stories / printables / challenges ---------- */
.cards-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dhikr-arabic { background: var(--w-cream); border: 1px solid var(--w-line); border-radius: 14px; color: var(--w-ink); }
.practice-tip { background: var(--w-mint-soft); border-radius: 12px; border: 0; color: var(--w-ink); }
.seg-tabs { display: inline-flex; gap: 4px; background: var(--w-lav-soft); padding: 4px; border-radius: 14px; border: 0; }
.seg-tab { border-radius: 10px; font-weight: 800; color: var(--w-purple); background: transparent; border: 0; min-height: 40px; padding: 6px 14px; cursor: pointer; }
.seg-tab.is-active { background: var(--w-purple); color: #fff; box-shadow: none; }
.book-card-top { display: flex; gap: 12px; }
.book-cover { border-radius: 10px; border: 1px solid var(--w-line); box-shadow: none; }
.lvl-chip, .game-badge { font-size: .78rem; }

/* ---------- sidebar (journey) ---------- */
.parchment-card { padding: 14px; }
.parchment-head h2 { font-size: 1.05rem; margin: 0; }
.goal-row { background: var(--w-cream); border: 1px solid var(--w-line); border-radius: 12px; }
.goal-check { border: 1.5px solid var(--w-lav); background: #fff; color: #fff; border-radius: 50%; }
.goal-row.is-done .goal-check, .goal-check:not(:empty) { background: var(--w-purple); border-color: var(--w-purple); }
.badge-coin { background: var(--w-lav-soft); border: 1px solid var(--w-line); border-radius: 50%; box-shadow: none; padding: 6px; filter: grayscale(.9); opacity: .6; }
.badge-coin.is-unlocked { filter: none; opacity: 1; background: var(--w-butter-soft); border-color: var(--w-butter); }
.badge-coin svg { width: 100%; height: 100%; }
.chest-banner { display: flex; align-items: center; gap: 10px; background: var(--w-purple); color: #fff; border: 0; border-radius: 14px; box-shadow: var(--w-shadow); padding: 10px 12px; cursor: pointer; transition: transform .12s ease; }
.chest-banner:hover { transform: translateY(-1px); } .chest-banner:active { transform: translateY(1px); }
.chest-icon { width: 38px; height: 38px; background: rgba(255,255,255,.9); border-radius: 12px; padding: 6px; display: inline-flex; flex-shrink: 0; } .chest-icon svg { width: 100%; height: 100%; }
.mini-store-card { background: var(--w-pink-soft); padding: 12px; }
.progress-ring, .ring-track { stroke: var(--w-lav-soft); } .ring-fill { stroke: var(--w-purple); }

/* ---------- modals ---------- */
.modal-backdrop { background: rgba(35,64,63,.45); backdrop-filter: blur(3px); }
.modal-card { background: var(--w-cream); border: 1px solid var(--w-line); border-radius: 20px; box-shadow: 0 20px 50px rgba(35,64,63,.25); }
.modal-close { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: #fff; border: 1px solid var(--w-line); color: var(--w-purple); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.modal-close svg { width: 100%; height: 100%; } .modal-close:hover { background: var(--w-lav-soft); }
.qstudio-tabs { display: flex; gap: 4px; background: var(--w-lav-soft); padding: 4px; border-radius: 14px; }
.qtab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; border-radius: 10px; background: transparent; border: 0; color: var(--w-purple); font-weight: 800; padding: 8px 4px; min-height: 52px; cursor: pointer; font-size: .85rem; transition: background .15s ease; }
.qtab.is-active { background: #fff; box-shadow: var(--w-shadow); }
.qtab-ico { width: 22px; height: 22px; display: inline-flex; } .qtab-ico svg { width: 100%; height: 100%; }
.reciter-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--w-line); color: var(--w-purple); font-weight: 800; padding: 6px 14px; min-height: 40px; cursor: pointer; }
.reciter-pill .btn-ic { width: 18px; height: 18px; display: inline-flex; } .reciter-pill .btn-ic svg { width: 100%; height: 100%; }
.reciter-pill.is-active { background: var(--w-purple); color: #fff; border-color: var(--w-purple); } .reciter-pill.is-active svg { stroke: #fff; }
.q-ayah-dot { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--w-lav); color: var(--w-purple); font-weight: 800; cursor: pointer; }
.q-ayah-dot.is-current { background: var(--w-purple); color: #fff; border-color: var(--w-purple); } .q-ayah-dot.is-done { background: var(--w-mint); border-color: var(--w-mint); color: var(--w-ink); }
.q-focus-card { padding: 16px; } .q-focus-ayah { font-size: 1.5rem; line-height: 2; text-align: center; color: var(--w-ink); }
.q-focus-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.q-big-btn { flex: 1 1 140px; }
.q-rep-stars { display: inline-flex; gap: 4px; } .rep-star { width: 24px; height: 24px; display: inline-flex; opacity: .35; filter: grayscale(1); } .rep-star.is-filled { opacity: 1; filter: none; } .rep-star svg { width: 100%; height: 100%; }
.q-status-line { background: var(--w-sky-soft); border-radius: 12px; padding: 8px 12px; color: var(--w-ink); font-weight: 600; text-align: center; }
.q-turn-banner { background: var(--w-butter-soft); border-radius: 14px; border: 0; }
.q-quiz-opt, .m-choice-card { background: #fff; border: 1px solid var(--w-lav); border-radius: 14px; color: var(--w-ink); font-weight: 700; min-height: 52px; cursor: pointer; transition: background .15s ease, transform .12s ease, border-color .15s ease; box-shadow: none; }
.q-quiz-opt:hover:not(:disabled), .m-choice-card:hover:not(:disabled) { background: var(--w-lav-soft); transform: translateY(-1px); }
.q-quiz-opt.is-correct, .m-choice-card.is-correct, .m-choice-card.is-right { background: var(--w-mint-soft); border-color: #7CCBA2; color: #1F5A3F; }
.q-quiz-opt.is-wrong, .m-choice-card.is-wrong { background: #FDE9E4; border-color: #EDA595; color: #7A2E22; }
.m-choice-ico { width: 24px; height: 24px; display: inline-flex; } .m-choice-ico svg { width: 100%; height: 100%; }
.m-gem, .q-win-trophy { display: inline-flex; width: 26px; height: 26px; } .q-win-trophy { width: 64px; height: 64px; margin: 0 auto; } .m-gem svg, .q-win-trophy svg { width: 100%; height: 100%; }
.m-top-banner { background: var(--w-lav-soft); border-radius: 14px; border: 0; }
.m-top-title strong { display: inline-flex; align-items: center; gap: 6px; } .m-top-title svg { width: 22px; height: 22px; }
.q-quiz-result { font-weight: 800; color: var(--w-purple); }
.soon-emoji { width: 64px; height: 64px; border-radius: 18px; background: var(--w-lav-soft); padding: 14px; margin: 0 auto 8px; } .soon-emoji svg { width: 100%; height: 100%; }
.soon-pill { background: var(--w-butter); color: #5B4310; border-radius: 999px; padding: 3px 12px; font-weight: 800; font-size: .82rem; }

/* mom modal */
.mom-header { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; padding: 12px 14px 12px 46px; background: var(--w-lav-soft); border-radius: 16px; }
.mom-icon { width: 46px; height: 46px; border-radius: 14px; background: #fff; padding: 9px; display: inline-flex; flex-shrink: 0; } .mom-icon svg { width: 100%; height: 100%; }
.mom-header h2 { margin: 0; font-size: 1.2rem; } .mom-header .modal-lead { margin: 2px 0 0; color: var(--w-muted); font-size: .88rem; }
.mom-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.mom-stat { border: 0 !important; border-radius: 14px !important; padding: 12px 8px; text-align: center; box-shadow: none; }
.mom-stat:nth-child(4n+1) { background: var(--w-pink-soft) !important; } .mom-stat:nth-child(4n+2) { background: var(--w-sky-soft) !important; }
.mom-stat:nth-child(4n+3) { background: var(--w-mint-soft) !important; } .mom-stat:nth-child(4n) { background: var(--w-butter-soft) !important; }
.mom-stat strong { color: var(--w-purple) !important; font-family: "Almarai", "Tajawal", sans-serif; }
.mom-details { background: #fff !important; border: 1px solid var(--w-line) !important; border-radius: 16px !important; }
.mom-chip { background: var(--w-lav-soft) !important; border: 0 !important; color: var(--w-purple); }
.avatar-opt { border-radius: 50%; border: 2px solid var(--w-line); } .avatar-opt.is-selected, .avatar-opt[aria-pressed="true"] { border-color: var(--w-purple); box-shadow: 0 0 0 3px var(--w-lav); }
.text-input { border: 1px solid var(--w-lav); border-radius: 12px; background: #fff; min-height: 44px; }
.text-input:focus { outline: 3px solid var(--w-lav); border-color: var(--w-purple); }

/* trust footer */
.trust-inner { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; }
.trust-item { display: inline-flex; align-items: center; gap: 6px; color: var(--w-muted); font-weight: 700; font-size: .86rem; }
.t-ic { width: 18px; height: 18px; display: inline-flex; } .t-ic svg { width: 100%; height: 100%; }

/* toast + confetti */
.toast { background: var(--w-purple); color: #fff; border-radius: 14px; box-shadow: var(--w-shadow-hover); font-weight: 700; }
.confetti-piece { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: wConfetti 1.9s ease-in forwards; opacity: 0; }
.confetti-piece.is-round { border-radius: 50%; width: 10px; height: 10px; }
.confetti-piece.is-star::before { content: "★"; font-size: 18px; line-height: 1; }
@keyframes wConfetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), 105vh) rotate(var(--rot)); } }
.confetti-static { position: absolute; top: 30%; left: 50%; transform: translateX(-50%); font-size: 3rem; color: var(--w-butter); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .worlds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-bottom-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .worlds-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .world-card { min-height: 0; padding: 12px; grid-template-columns: 48px 1fr; }
  .world-ic { width: 48px; height: 48px; padding: 9px; }
  .world-desc { display: none; }
  .hero-banner { padding: 16px; border-radius: 18px; }
  .hero-actions .btn-primary, .hero-actions .btn-outline { flex: 1 1 calc(50% - 6px); padding: 8px 10px; }
  .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-2col { grid-template-columns: minmax(0, 1fr); }
  .mom-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head h2, .quran-map-hero h2 { font-size: 1.25rem; }
  .q-focus-ayah { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.world-pill-title { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; position: static !important; transform: none !important; display: block; text-align: start; }
.world-body, .world-desc, .world-meta { position: static !important; }
.hero-banner { padding-block: 18px; } .hero-copy h1 { margin: 6px 0 4px; }
.h-ic { width: 40px; height: 40px; padding: 7px; border-radius: 12px; background: var(--w-lav-soft); margin-inline-end: 10px; vertical-align: middle; }
.cards-2col > *:nth-child(4n+2) .h-ic { background: var(--w-sky-soft); } .cards-2col > *:nth-child(4n+3) .h-ic { background: var(--w-mint-soft); } .cards-2col > *:nth-child(4n) .h-ic { background: var(--w-butter-soft); }
.section-head, .quran-map-hero { border-inline-end: 0 !important; border-inline-start: 6px solid var(--w-lav); }
.world-ic { width: 60px; height: 60px; padding: 8px; } .world-card { grid-template-columns: 60px 1fr; }
.game-emoji { width: 56px; height: 56px; padding: 8px; }
.section-head, .quran-map-hero, .sec-head { border-inline-start: 1px solid var(--w-line) !important; border-top: 4px solid var(--w-lav); }
.sec-head.tone-mint { border-top-color: var(--w-mint); } .sec-head.tone-sky { border-top-color: var(--w-sky); } .sec-head.tone-butter { border-top-color: var(--w-butter); } .sec-head.tone-pink, .sec-head.tone-coral { border-top-color: var(--w-pink); }
.sec-head.tone-butter { background: var(--w-butter-soft); } .sec-head.tone-mint { background: var(--w-mint-soft); } .sec-head.tone-sky { background: var(--w-sky-soft); } .sec-head.tone-pink { background: var(--w-pink-soft); } .sec-head.tone-lavender { background: var(--w-lav-soft); } .sec-head.tone-coral { background: var(--w-pink-soft); }
.quran-featured-banner h3, .quran-featured-banner h3 * { color: var(--w-purple) !important; }
.challenge-featured-card h3 { color: var(--w-purple) !important; }
.parchment-head h2, .ach-head h3, .ach-head h2, .achievements-box h3 { color: var(--w-purple) !important; font-family: "Almarai", "Tajawal", sans-serif; }
.section-head:not(.sec-head) { border: 0 !important; background: none; box-shadow: none; padding: 4px 2px; }
.badges-grid { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.badge-coin { width: 100% !important; height: auto !important; aspect-ratio: 1; min-width: 0; max-width: 54px; margin-inline: auto; padding: 6px; display: flex; align-items: center; justify-content: center; }
.badge-coin > span { display: block; width: 100%; height: 100%; }
.achievements-box { padding: 12px; }
.challenge-featured-card { gap: 8px; } .challenge-featured-card .card-desc { margin: 0; }
.welcome-art { max-height: 120px; overflow: hidden; border-radius: 14px; margin-bottom: 10px; } .welcome-art img { width: 100%; height: 120px; object-fit: cover; object-position: center 30%; }
.main-stage { padding-bottom: 8px; }
@media (max-width: 900px) { .main-stage, .app-shell { padding-bottom: 88px; } }
/* icon polish: larger sticker-style icons */
.nav-item .nav-ic { width: 34px; height: 34px; }
.mob-tab span:first-child { width: 32px; height: 32px; }
.mob-tab { gap: 2px; padding-top: 6px; }
.adv-ic { width: 44px; height: 44px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(20,91,89,.12); }
.star-chip svg { width: 18px; height: 18px; }
.rep-star { width: 28px; height: 28px; }
.badge-coin { padding: 7px; }
.chest-icon svg, .world-ic svg, .game-emoji svg, .h-ic svg { filter: none; }
.mobile-tabbar { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
/* v2 large symbols */
.adv-ic { width: 60px; height: 60px; padding: 4px; background: transparent; box-shadow: none; border-radius: 0; }
.mob-tab span:first-child { width: 40px; height: 40px; }
.mob-tab { font-size: .72rem; gap: 0; padding: 4px 2px 3px; }
.mob-tab.is-active { background: var(--w-lav-soft); box-shadow: inset 0 -3px 0 var(--w-purple); }
.nav-item .nav-ic { width: 38px; height: 38px; }

/* v11: original (A) pastel palette restored; 3D icon plumbing + alignment kept */
img.i3d { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.nav-item .nav-ic img, .mob-tab img, .world-ic img, .adv-ic img { width: 100%; height: 100%; }
.adv-ic img, .world-ic img { filter: drop-shadow(0 3px 4px rgba(20,91,89,.22)); }
#headerStars { display: inline-flex; align-items: center; gap: 4px; } #headerStars img, .star-chip img { width: 22px; height: 22px; flex: none; }
.stone-step-num img, .mini-stone img { width: 24px; height: 24px; }
button img.i3d { width: 24px; height: 24px; flex: none; }
button .world-ic img.i3d, button .adv-ic img.i3d, button .nav-ic img.i3d, .mob-tab span img.i3d, .nav-item span img.i3d, .world-ic img.i3d, .adv-ic img.i3d { width: 100%; height: 100%; }
.adv-ic { width: 64px; height: 64px; padding: 0; flex: 0 0 64px; }
.world-ic { width: 76px; height: 76px; padding: 8px; border-radius: 20px; }
.world-card { grid-template-columns: 76px 1fr; }
.mob-tab span:first-child { width: 42px; height: 42px; }
@media (max-width: 480px) { .mob-tab span:first-child { width: 38px; height: 38px; } .adv-ic { width: 56px; height: 56px; flex-basis: 56px; } .world-ic { width: 66px; height: 66px; } .world-card { grid-template-columns: 66px 1fr; } }
.mom-btn .i3d { width: 24px; height: 24px; }
.mom-header .i3d { width: 40px; height: 40px; }
.qtab .i3d, .q-big-btn .i3d, .reciter-pill .i3d { width: 24px; height: 24px; vertical-align: middle; }
/* stat alignment: number + "من N" grouped, vertically centered */
.adv-stat { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 10px; }
.adv-txt { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; flex: 1; text-align: start; }
.adv-v { display: flex; align-items: baseline; gap: 4px; direction: rtl; unicode-bidi: isolate; white-space: nowrap; font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.adv-v bdi, .mom-stat strong bdi { font-size: 1.2em; line-height: 1; font-weight: 800; min-width: .55em; text-align: center; display: inline-block; }
.adv-v small, .mom-stat strong small { font-size: .5em; font-weight: 700; white-space: nowrap; }
.adv-k { font-size: .9rem; font-weight: 700; line-height: 1.25; }
@media (max-width: 480px) { .adv-v { font-size: 1.5rem; } }
.mom-stat strong { display: flex; align-items: baseline; justify-content: center; gap: 4px; direction: rtl; unicode-bidi: isolate; font-size: 1.45rem; line-height: 1.15; }
.hero-art { display: none; }
.adv-v bdi, .mom-stat strong bdi { font-size: 1.45em; }
.adv-v { align-items: center; } .mom-stat strong { align-items: center; }
body { background: linear-gradient(180deg, #FCECEF 0%, #FAD6E2 55%, #F7CCDB 100%) fixed; }
.topbar { background: rgba(253,238,243,.94); }
.hero-banner { background: #FFFBF2; }
.hero-copy h1 { color: #145B59; }

/* garden reward card (stars-derived, no deduction) */
.garden-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--w-line); border-radius: var(--w-r); padding: 12px; box-shadow: var(--w-shadow); margin-top: 14px; }
.garden-img { width: 100%; height: auto; aspect-ratio: 756 / 300; object-fit: cover; border-radius: 14px; display: block; background: #CDE9F8; box-shadow: inset 0 0 0 1px rgba(20,91,89,.12); }
.garden-body { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 0 4px 2px; }
.garden-body h2 { margin: 0; font-size: 1.15rem; }
.garden-stage { background: var(--w-butter-soft); color: #6B5200; font-weight: 800; border-radius: 999px; padding: 3px 12px; font-size: .85rem; white-space: nowrap; }
.garden-track { grid-column: 1 / -1; height: 14px; background: var(--w-pink-soft); border-radius: 999px; overflow: hidden; }
.garden-fill { height: 100%; min-width: 4%; background: var(--w-purple); border-radius: 999px; transition: width .5s ease; }
.garden-note { grid-column: 1 / -1; margin: 0; color: var(--w-muted); font-weight: 700; font-size: .9rem; }
@media (min-width: 900px) { .garden-card { flex-direction: row; align-items: center; } .garden-img { width: 46%; flex: none; } .garden-body { flex: 1; } }

/* letter tracer completion celebration */
.lt-win-overlay { position: relative; overflow: hidden; }
.lt-win-pill { font-size: 1.25rem !important; }
.lt-burst { position: absolute; inset: 0; pointer-events: none; }
.lt-burst span { position: absolute; left: 50%; top: 45%; font-size: 1.6rem; opacity: 0; animation: ltBurst 1.4s ease-out forwards; animation-delay: calc(var(--k) * 60ms); }
@keyframes ltBurst { 0% { opacity: 0; transform: translate(-50%, 0) scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + (var(--k) - 3.5) * 36px), -90px) scale(1.2) rotate(40deg); } }
@media (prefers-reduced-motion: reduce) { .lt-burst span { animation: none; } }

.q-status-line.is-cheer { background: var(--w-mint-soft); color: #145B59; border: 1px solid var(--w-mint); font-weight: 800; }

/* === home restyle: reference hero + category banners (real DOM text over art) === */
.hero-banner { position: relative; aspect-ratio: 4 / 3; background: #FCE8EF url(assets/ui/hero-scene.webp) center / cover no-repeat; border: 0; border-radius: 22px; padding: 0; overflow: hidden; box-shadow: var(--w-shadow); }
.hero-banner::before, .hero-banner::after { display: none; }
.hero-sign { position: absolute; left: 36%; width: 54%; top: 9%; height: 38%; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-sign h1 { margin: 0; color: #145B59; font-size: clamp(1.05rem, 5.2vw, 1.5rem); line-height: 1.3; }
.hero-tagline { position: absolute; left: 6%; right: 6%; top: 74%; height: 14%; margin: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: #8A3A62; font-size: clamp(.78rem, 3.4vw, 1rem); font-weight: 800; }
.hero-actions { display: flex; gap: 10px; margin: 12px 0 0; }
.hero-actions .hero-btn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 18px; font-weight: 800; font-size: 1rem; }
.hero-actions .btn-primary { background: #1D7A76; color: #fff; border: 0; box-shadow: 0 4px 0 #0F4745; }
.hero-actions .btn-outline { background: #fff; color: #145B59; border: 2px solid #F4B6CE; box-shadow: 0 4px 0 #F0C4D6; }
.hero-actions .hero-btn img { width: 28px; height: auto; }
.hero-kicker-line { margin: 8px 0 0; text-align: center; color: var(--w-muted); font-weight: 700; font-size: .82rem; }
.world-banner { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: block; width: 100%; aspect-ratio: 3.2 / 1; border-radius: 22px; background-size: cover; background-position: center; box-shadow: var(--w-shadow); overflow: hidden; margin-bottom: 0; }
.world-banner:focus-visible { outline: 3px solid #145B59; outline-offset: 2px; }
.wb-title { position: absolute; left: 12%; right: 12%; top: 5%; text-align: center; font-family: "Almarai", "Tajawal", sans-serif; font-weight: 800; color: #145B59; font-size: clamp(1rem, 4.6vw, 1.3rem); line-height: 1.25; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.wb-pill { position: absolute; left: 17%; right: 17%; top: 49%; height: 32%; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.wb-count { flex: 1; text-align: center; color: #6B4A12; font-weight: 800; font-size: clamp(.78rem, 3.3vw, .95rem); }
.wb-go { width: 26px; height: 26px; border-radius: 50%; background: #F59A23; color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 0 #C97410; flex: none; }
.wb-go svg { width: 16px; height: 16px; }
.wb-desc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.worlds-grid { align-items: stretch; }
@media (min-width: 900px) {
  .hero-banner { aspect-ratio: 16 / 6.2; }
  .hero-sign { left: 40%; width: 40%; top: 8%; height: 40%; }
  .hero-sign h1 { font-size: 2rem; }
  .hero-tagline { top: 76%; left: 18%; right: 18%; }
  .world-banner { aspect-ratio: 4.6 / 1; }
}

/* mom corner header (reference art, real DOM text) */
.mom-header { position: relative; aspect-ratio: 4.2 / 1; background: #FADCEA url(assets/ui/mom-header.webp) center / cover no-repeat; border-radius: 18px; padding: 0 !important; margin: 0 0 12px; overflow: hidden; display: block; }
.mom-head-copy { display: contents; }
.mom-header h2 { position: absolute; left: 46%; width: 46%; top: 9%; height: 40%; display: flex; align-items: center; justify-content: center; text-align: center; margin: 0; color: #145B59; font-size: clamp(.82rem, 3.8vw, 1.15rem); line-height: 1.1; }
.mom-header .modal-lead { position: absolute; left: 51%; width: 36%; top: 56%; height: 36%; display: flex; align-items: center; justify-content: center; text-align: center; margin: 0; color: #8A3A62; font-size: clamp(.58rem, 2.6vw, .8rem); line-height: 1.2; font-weight: 700; }
.modal-mom .modal-close { z-index: 5; }
.mom-stat { display: flex !important; align-items: center; gap: 8px; text-align: start !important; padding: 10px 12px !important; box-shadow: 0 3px 0 rgba(20,91,89,.08) !important; }
.mom-stat-ic { width: 44px; height: 44px; object-fit: contain; flex: none; }
.mom-stat-tx { display: flex; flex-direction: column; min-width: 0; }
.mom-stat-tx strong { justify-content: flex-start !important; font-size: 1.3rem !important; }
.mom-row-head { align-items: center; }
.mom-row-ic { width: 34px; height: 34px; object-fit: contain; flex: none; }
.mom-row-head > span { background: var(--w-mint-soft); color: #145B59; border-radius: 999px; padding: 3px 12px; font-weight: 800; }
/* category banners: less crop, more title room; matching cards */
.world-banner { aspect-ratio: 4 / 1; }
.wb-title { top: 8%; font-size: clamp(.95rem, 4.1vw, 1.2rem); line-height: 1.1; }
.wb-pill { top: 50%; height: 34%; }
.world-card { border-radius: 22px; min-height: 88px; background: linear-gradient(135deg, #EAF8FF, #fff) !important; box-shadow: var(--w-shadow); }
@media (min-width: 900px) { .world-banner { aspect-ratio: 4.6 / 1; } }

/* ===== Reference-faithful home (AL) ===== */
.site-header, header.app-header { border-bottom: 0 !important; background: transparent !important; box-shadow: none !important; }
.brand-btn, .child-pill { border: 0; border-radius: 20px; box-shadow: 0 4px 14px rgba(232,120,160,.18); }
.brand-emblem img { width: 52px; height: 38px; object-fit: contain; }
.brand-title { font-size: 1.35rem; font-weight: 800; color: #145B59; }
.mom-btn { border-radius: 20px; background: linear-gradient(180deg,#1D8A84,#145B59) !important; min-height: 48px; font-family: "Almarai","Tajawal",sans-serif; }
.child-pill .avatar-sm { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px #F6C6D8; }
.child-greet { font-weight: 800; color: #145B59; }
.star-chip { background: #FFF2CC; padding: 2px 10px 2px 4px; }
.hero-sign { left: 35%; width: 55%; top: 8%; height: 56%; }
.hero-sign h1 { display: flex; flex-direction: column; align-items: center; line-height: 1.05; font-size: 1rem; font-weight: 800; color: #145B59; }
.hs-1 { font-size: clamp(.95rem, 4.4vw, 1.3rem); }
.hs-2 { font-size: clamp(1.5rem, 7.4vw, 2.2rem); }
.hs-3 { font-size: clamp(1.5rem, 7.4vw, 2.2rem); color: #C23A74; }
.hero-tagline { top: 80%; left: 14%; right: 14%; height: 11%; background: #F9C3D7; border-radius: 999px; box-shadow: 0 2px 0 #E9A5BE; font-size: clamp(.72rem, 3.3vw, .95rem); }
.hero-actions { margin-top: 16px; gap: 12px; }
.hero-actions .hero-btn { min-height: 64px; border-radius: 26px; font-size: 1.12rem; font-family: "Almarai","Tajawal",sans-serif; }
.hero-actions .btn-primary { background: linear-gradient(180deg,#22968F,#157069); box-shadow: 0 4px 0 #0F4745; }
.hero-actions .btn-outline { border: 0; box-shadow: 0 4px 14px rgba(232,120,160,.2); }
.hero-actions .hero-btn img { width: 44px; height: auto; }
.adventure { border: 0; border-radius: 26px; padding: 18px 16px 16px; margin-top: 18px; box-shadow: 0 6px 20px rgba(232,120,160,.18); }
.adventure-head { flex-wrap: nowrap; }
.adventure-head h2 { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; color: #145B59; }
.rf-map { width: 58px; height: auto; }
.adventure-level { display: inline-flex; align-items: center; gap: 6px; background: #FEEF9A; color: #6B4A12; font-size: .95rem; padding: 4px 14px 4px 10px; }
.adventure-track { height: 36px; background: #FBE1EC; margin: 14px 0; }
.adventure-fill { background: linear-gradient(180deg,#FB9CC0,#F47FAA); }
.adventure-note { font-size: .86rem; color: #145B59; }
.adv-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.adv-stat { position: relative; border-radius: 22px; padding: 0 12px; min-height: 116px; overflow: hidden; flex-direction: row-reverse; justify-content: space-between; gap: 4px; }
.adv-stat.rf-star { background: #FCEEBF; } .adv-stat.rf-trophy { background: #F7DDEA; } .adv-stat.rf-quran { background: #E9FBE3; } .adv-stat.rf-blocks { background: #E3ECFB; }
.rf-ic { width: 50%; max-width: 100px; height: auto; flex: none; align-self: center; }
.adv-stat .adv-txt { align-items: center; text-align: center; flex: 1; gap: 0; }
.rf-num { font-family: "Almarai",sans-serif; font-size: 2.1rem; font-weight: 800; color: #145B59; line-height: 1.1; }
.rf-of { font-size: .95rem; font-weight: 800; color: #145B59; } .rf-of bdi { font-size: 1.7rem; font-family: "Almarai",sans-serif; }
.adv-stat .adv-k { font-size: 1rem; font-weight: 800; color: #145B59; text-align: center; }
.explore-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(180deg,#FFF6FA,#FCE7F0); border-radius: 26px; padding: 16px 18px; box-shadow: 0 6px 20px rgba(232,120,160,.16); margin: 18px 0 14px; }
.explore-card img { width: 84px; height: auto; flex: none; }
.explore-card h2 { margin: 0 0 4px; font-size: 1.5rem; font-weight: 800; color: #145B59; }
.explore-card p { margin: 0; color: #6B6B7B; font-size: .95rem; line-height: 1.5; }
.worlds-grid { gap: 14px; }
.mobile-tabbar { border-radius: 28px 28px 0 0; border-top: 0; box-shadow: 0 -6px 22px rgba(232,120,160,.2); }
.mob-tab { font-family: "Almarai","Tajawal",sans-serif; font-weight: 700; color: #145B59; font-size: .8rem; }
.mob-tab.is-active { background: #FCE4EE; color: #145B59; box-shadow: inset 0 -3px 0 #E8679A; border-radius: 18px; }
@media (max-width: 600px) {
  .hero-banner { margin-inline: calc(var(--bleed, 12px) * -1); border-radius: 0 0 26px 26px; aspect-ratio: 1.78 / 1; }
  .star-chip { font-size: .85rem; }
}
.adventure-head h2 { font-size: 1.3rem; white-space: nowrap; } .rf-map { width: 48px; }
.adventure-level { white-space: nowrap; font-size: .85rem; }
.hero-actions .hero-btn { font-size: .98rem; gap: 6px; padding-inline: 8px; white-space: nowrap; }
.hs-2, .hs-3 { font-size: clamp(1.3rem, 6.2vw, 1.9rem); } .hero-sign { left: 36%; width: 50%; }
.topbar { border-bottom: 0 !important; background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; }
.topbar { background: rgba(253,236,243,.94) !important; backdrop-filter: blur(8px) !important; }
/* AP: ref order + sign bounds + glossy buttons */
.hero-sign { left: 41%; width: 38%; top: 13%; height: 48%; }
.hero-sign h1 { line-height: 1.12; gap: 0; }
.hs-1 { font-size: clamp(.8rem, 3.7vw, 1.05rem); } .hs-2, .hs-3 { font-size: clamp(1.15rem, 5.4vw, 1.6rem); }
.adv-stat { flex-direction: row; justify-content: flex-start; padding: 0 10px; min-height: 108px; }
.rf-ic { width: 40%; max-width: 84px; }
.adv-stat .adv-txt { flex: 1; min-width: 0; }
.rf-num { font-size: 1.9rem; } .rf-of { font-size: .85rem; white-space: nowrap; } .rf-of bdi { font-size: 1.5rem; }
.adv-stat .adv-k { font-size: .9rem; line-height: 1.25; white-space: nowrap; }
.hero-actions .btn-primary { background: linear-gradient(180deg,#00ad99,#017a75); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,70,66,.25), 0 5px 0 #00605c, 0 8px 14px rgba(0,96,92,.3); }
.hero-actions .btn-outline { background: linear-gradient(180deg,#fff,#fdf3f6); box-shadow: inset 0 2px 0 #fff, 0 5px 0 #f3d3df, 0 8px 14px rgba(232,120,160,.2); }
.hero-actions .hero-btn img { width: auto; height: 52px; margin-inline: -4px; }
.hero-actions .btn-outline img { height: 38px; }
.brand-btn { padding: 6px 14px 6px 10px; gap: 8px; } .brand-emblem img { width: 56px; height: 41px; }
.child-pill { padding: 6px 10px; }
/* AQ */
.rf-ic { width: 84px; max-width: none; flex: none; margin-inline-start: -6px; }
.adv-stat { padding-inline: 8px 0; }
.hero-actions .hero-btn { font-size: .92rem; } .hero-actions .btn-outline img { height: 32px; }
.brand-title { font-size: 1.1rem; } .brand-emblem img { width: 46px; height: 34px; }
.brand-btn { padding: 6px 10px 6px 8px; } .child-pill .avatar-sm { width: 40px; height: 40px; }
.child-pill { padding: 5px 8px; } .mom-btn { padding: 6px 12px; min-height: 44px; font-size: .9rem; }
/* AR */
.rf-ic { width: 76px; margin-inline-start: -8px; } .adv-stat .adv-k { font-size: .84rem; }
.hero-actions .btn-outline { padding-inline: 4px; } .hero-actions .btn-outline img { height: 30px; margin-inline: -2px; }
.hero-actions .hero-btn { font-size: .88rem; }
/* AS: proportional to reference at 390 */
@media (max-width: 600px) {
  .hero-banner { aspect-ratio: 2.08 / 1; margin-top: 4px; }
  .hero-sign { top: 5%; height: 62%; left: 41%; width: 38%; }
  .hero-tagline { top: 84%; height: 13%; }
  .hero-actions { margin-top: 12px; gap: 10px; }
  .hero-actions .hero-btn { min-height: 52px; border-radius: 22px; }
  .hero-actions .hero-btn img { height: 44px; } .hero-actions .btn-outline img { height: 28px; }
  .adventure { padding: 12px; margin-top: 14px; border-radius: 22px; }
  .adventure-head h2 { font-size: 1.15rem; } .rf-map { width: 40px; }
  .adventure-track { height: 28px; margin: 10px 0; }
  .adv-grid { gap: 10px; }
  .adv-stat { min-height: 70px; border-radius: 18px; padding-inline: 8px 0; }
  .rf-ic { width: 62px; margin-inline-start: -6px; }
  .rf-num { font-size: 1.5rem; } .rf-of { font-size: .72rem; } .rf-of bdi { font-size: 1.25rem; }
  .adv-stat .adv-k { font-size: .78rem; line-height: 1.2; }
  .explore-card { padding: 10px 14px; margin: 14px 0 12px; border-radius: 22px; }
  .explore-card img { width: 58px; } .explore-card h2 { font-size: 1.2rem; margin-bottom: 2px; } .explore-card p { font-size: .8rem; line-height: 1.4; }
}
/* AT */
.hs-1 { font-size: clamp(.9rem, 4.2vw, 1.2rem); } .hs-2, .hs-3 { font-size: clamp(1.3rem, 6.3vw, 1.85rem); }
.hero-sign { top: 3%; left: 40%; width: 40%; height: 66%; }
.hero-actions .btn-primary { flex: 1.2 1 0; } .hero-actions .btn-outline { white-space: nowrap; }
@media (max-width:600px){ .rf-ic { width: 72px; } .adv-stat { min-height: 76px; } .hero-actions .hero-btn { font-size: .98rem; } }
/* AU */
.hs-3 { color: #145B59; }
.hero-actions .btn-outline { font-size: .9rem; padding-inline: 6px; gap: 2px; justify-content: center; }
.hero-actions .btn-outline img { height: 26px; width: 40px; object-fit: contain; flex: none; margin: 0; }
.hero-actions .btn-primary { flex: 1.1 1 0; }
/* AV: vertical geometry to reference */
.hs-3 { color: #C23A74; }
.hero-sign { top: 0%; height: 60%; } .hero-sign h1 { line-height: .98; }
.hs-1 { margin-bottom: 1px; }
.hero-actions .btn-primary img.rocket, .hero-actions .btn-primary img { -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); }
.hero-actions .btn-outline img { width: 44px; height: 30px; }
@media (max-width: 600px) {
  .topbar-inner { padding: 5px 12px !important; min-height: 0 !important; }
  .brand-btn, .child-pill { min-height: 48px; padding-block: 3px; } .mom-btn { min-height: 40px; }
  .brand-emblem img { width: 64px; height: 47px; margin-block: -4px; }
  .child-pill .avatar-sm { width: 42px; height: 42px; }
  .hero-banner { margin-top: 0; aspect-ratio: 2.08 / 1; }
  .hero-actions { margin-top: 17px; } .hero-actions .hero-btn { min-height: 48px; }
  .adventure { margin-top: 17px; padding: 8px 12px 10px; }
  .adventure-head h2 { font-size: 1.05rem; } .rf-map { width: 36px; }
  .adventure-track { height: 24px; margin: 6px 0; } .adv-grid { gap: 8px; }
  .adv-stat { min-height: 66px; } .rf-ic { width: 66px; }
  .explore-card { margin: 10px 0 10px; padding: 6px 12px; } .explore-card img { width: 50px; }
  .explore-card h2 { font-size: 1.1rem; } .explore-card p { font-size: .74rem; }
  .worlds-grid { gap: 10px; }
}
/* AW */
.hero-actions .btn-outline img { width: 62px; height: 42px; }
.brand-emblem img { width: 72px !important; height: 53px !important; margin-block: -6px !important; }
@media (max-width: 600px) {
  .hero-banner { margin-top: -12px; }
  .hero-actions { margin-top: 2px; } .adventure { margin-top: 1px; padding: 12px 12px 14px; }
  .adventure-track { height: 28px; margin: 10px 0; } .adv-grid { gap: 10px; } .adv-stat { min-height: 72px; }
  .explore-card { margin-top: -6px; }
}
/* AX desktop worlds */
@media (min-width: 601px) { .worlds-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; align-items: stretch; } .world-banner { aspect-ratio: 3.2 / 1 !important; min-height: 0; } .wb-title { font-size: 1.15rem; } }
/* AY desktop tagline covers baked pill */
@media (min-width: 601px) { .hero-tagline { top: 82.5%; height: 22%; left: 14.5%; right: 14.5%; background: #F9C3D7; align-items: flex-start; padding-top: 2.2%; border-radius: 999px; box-shadow: 0 2px 0 #E9A5BE; } }

/* tracer hint: reserve 3 lines on phones so the canvas does not jump when the hint wraps */
@media (max-width:520px){#ltHintText{min-height:4.2em;line-height:1.4}}
