/* features.css — القمر ثلاثي الأبعاد، بطاقة المشاركة، قمر ليلة الميلاد. يعتمد رموز ألوان المظاهر القائمة. */

.moon3d[hidden], .moon3d-hint[hidden], .birth-result[hidden], .share-sheet[hidden],
.share-frame img[hidden], .share-wait[hidden], .share-primary[hidden] { display: none; }

/* ---------- القمر ثلاثي الأبعاد في الرئيسية ---------- */
.moon3d-link { display: inline-block; position: relative; }
.moon3d { display: none; width: 250px; height: 250px; max-width: 100%;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 26px rgba(239, 211, 215, .32)); }
.moon3d canvas { display: block; width: 100% !important; height: 100% !important;
  touch-action: pan-y; cursor: grab; }
.moon3d canvas:active { cursor: grabbing; }
.home-moon.is-3d .moon3d { display: block; }
.home-moon.is-3d #homeMoon { display: none; }
#view-home:not([hidden]) .is-3d .moon3d { view-transition-name: moon; }
.moon3d-hint { font-size: .85rem; opacity: .75; }
@media (max-width: 480px) { .moon3d { width: 200px; height: 200px; } }

/* ---------- زر البطاقة ---------- */
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 24px; margin: 28px auto 0;
  font: inherit; font-size: 1rem; font-weight: 600;
  color: var(--tab-fg); background-color: var(--glass-fill);
  background-image: linear-gradient(180deg, var(--glass-shine) 0%, transparent 55%);
  border: 1px solid var(--glass-edge); border-radius: 999px; cursor: pointer;
  box-shadow: 0 6px 20px var(--glass-shadow);
  transition: transform .2s ease, background-color .2s ease;
}
.share-btn:hover { transform: translateY(-2px); background-color: var(--lens-fill); }
.share-btn:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 3px; }

/* ---------- قمر ليلة الميلاد ---------- */
.birth-moon {
  max-width: 500px; margin: 64px auto 20px; padding: 32px 28px;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
}
.birth-moon h2 { margin: 0 0 6px; font-size: 1.45rem; color: var(--accent-color); text-shadow: var(--text-shadow); text-wrap: balance; }
.birth-lede { margin: 0 0 18px; opacity: .85; }
.birth-field { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.birth-label { font-weight: 600; }
.birth-pick {
  flex: 0 1 260px; min-width: 0; min-height: 44px; padding: 10px 14px 10px 38px;
  font: inherit; font-size: 1rem; text-align: right; color: var(--secondary-color);
  background-color: var(--glass-fill); border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E9AAF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 12px center; background-size: 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.birth-pick:not(.has-value) { opacity: .8; }
.birth-pick:hover { background-color: var(--lens-fill); }
.birth-pick:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }

/* عجلة التاريخ: ثلاث عجلات (يوم، شهر، سنة) بشريط تحديد واحد، على نمط عجلة القارئ */
.bdw-labels, .bdw-cols { display: flex; gap: 4px; direction: rtl; }
.bdw-labels span { flex: 1 1 0; text-align: center; font-size: .8rem; opacity: .7; padding-bottom: 4px; }
.bdw-col { flex: 1 1 0; min-width: 0; }
.bdw-labels span:nth-child(2), .bdw-month { flex-grow: 1.5; }
.bdw .qpw-list { padding-inline: 2px; }
.bdw .qpw-item { font-variant-numeric: tabular-nums; }
.birth-result { display: grid; justify-items: center; gap: 12px; margin-top: 22px; }
.birth-result img { width: 160px; height: 160px; object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(239, 211, 215, .3)); }
.birth-info p { margin: 0 0 6px; line-height: 1.8; }
.birth-phase { font-size: 1.4rem; font-weight: 700; color: var(--accent-color); }
.birth-count { font-weight: 600; }
.birth-info .share-btn { margin-top: 14px; }

/* ---------- نافذة البطاقة ---------- */
html.sheet-open, html.sheet-open body { overflow: hidden; }
.share-sheet {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
           max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(5, 8, 20, .72); direction: rtl;
}
.share-panel {
  width: 100%; max-width: 400px; max-height: 100%; overflow: auto;
  padding: 20px; border-radius: 24px; text-align: center;
  background: var(--bg-color); color: var(--secondary-color);
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.share-panel h2 { margin: 0 0 14px; font-size: 1.2rem; color: var(--accent-color); }
.share-frame { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--bg-color); }
.share-frame img { width: 100%; height: 100%; display: block; }
.share-wait { position: absolute; inset: 0; display: grid; place-items: center; color: #EFD3D7; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.share-primary, .share-secondary {
  min-height: 44px; padding: 10px 20px; border-radius: 999px; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.share-primary { background: var(--tab-active-bg); color: var(--tab-active-fg); border: 1px solid var(--tab-active-bg); }
.share-secondary { background: transparent; color: var(--secondary-color); border: 1px solid var(--line); }
a.share-secondary:not([href]) { opacity: .4; pointer-events: none; }
.share-primary:focus-visible, .share-secondary:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }
.share-status { min-height: 1.2em; margin: 10px 0 0; font-size: .9rem; }

/* البورغندي: نص التبويب المحدد كان داكنًا فوق خلفية التبويب الداكنة؛ نجعله فاتحًا ليُقرأ */
[data-theme="burgundy"] .nav-link.active, [data-theme="burgundy"] .nav-link[aria-current="page"] { color: #FFE9EE; }

/* شبكة أمان: لا شيء يوسّع الصفحة أفقيًا، فلا يصغّر متصفح الجوال الصفحة ثم يكبّرها.
   clip لا يجعل body حاوية تمرير (بخلاف hidden)، فيبقى تمرير الصفحة كما هو */
@supports (overflow: clip) {
  html { overflow-x: hidden; }
  body { overflow-x: clip !important; }
}

/* خط النظام (SF Arabic على أجهزة أبل) بدل Segoe/Tahoma غير الموجودين على الآيفون، ودعم حجم النص الذي يختاره
   الزائر في إعدادات جهازه (Dynamic Type): typography.md › Supporting Dynamic Type */
body { font-family: system-ui, -apple-system, "SF Arabic", "Segoe UI", Tahoma, "Geeza Pro", sans-serif; }
@supports (font: -apple-system-body) {
  html { font: -apple-system-body; }
  body { font-family: system-ui, -apple-system, "SF Arabic", sans-serif; }
}
/* أسماء التبويبات لا تكبر مع حجم النص (تبقى أيقونات الشريط واضحة ولا يتجاوز عرضه الشاشة) */
@media (max-width: 640px) { .nav-link { font-size: min(.8125rem, 14px); } }

/* الأوراق المنبثقة على الجوال (sheets.js): مقبض أعلى الورقة، وبطاقة المشاركة تصعد من أسفل الشاشة كأوراق iOS */
.sheet-grabber { display: none; }
@media (max-width: 640px) {
  .sheet-grabber { display: block; width: 36px; height: 5px; border-radius: 3px; margin: 2px auto 6px;
    background: currentColor; opacity: .3; }
  .sheet-grabber, .qpw-head, .share-panel > h2 { touch-action: none; }
  .share-sheet { place-items: end center; }
  .share-panel { border-radius: 28px; padding-top: 8px; }
}

/* ---------- الشمس خلف القمر في النهار (home.js › placeSun) ---------- */
.moon-sun { display: none; pointer-events: none; }
[data-theme="light"] .home-moon.is-3d .moon-sun {
  display: block; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 150%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) translate(var(--sun-x, 0px), var(--sun-y, 0px));
  opacity: var(--sun-o, 0);
  /* قرص الشمس صغير في المركز، ووهجها يمتد حولها فيبقى ظاهرًا حول القمر حين تكون خلفه */
  background: radial-gradient(circle, #FFFDF2 0 6.5%, rgba(255, 246, 205, .95) 9%,
              rgba(255, 232, 160, .6) 17%, rgba(255, 220, 130, .28) 32%, rgba(255, 214, 120, .1) 48%, rgba(255, 214, 120, 0) 68%);
  transition: opacity .6s ease, transform .6s ease;
}
.moon3d-link { isolation: isolate; }
.home-moon.is-3d .moon3d { position: relative; }
.home-moon.is-3d .moon3d canvas { position: relative; z-index: 1; }
/* إطار الضوء خلف القمر في المحاق، في كل المظاهر: يبدأ من حافة القرص (٨٤٫٨٪ من عرض المشهد) ويتلاشى للخارج */
.moon-corona { display: none; pointer-events: none; }
.home-moon.is-3d .moon-corona, #view-age .moon-link.is-3d .moon-corona {
  display: block; position: absolute; z-index: 0; left: 50%; top: 50%;
  width: 180%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle closest-side, transparent 0 46.2%,
              rgba(255, 252, 240, .98) 47.3%, rgba(255, 238, 200, .7) 49.5%, rgba(255, 224, 170, .32) 55%,
              rgba(255, 214, 150, .12) 66%, rgba(255, 214, 150, 0) 82%);
  opacity: var(--corona-o, 0); transition: opacity .6s ease;
}
@media (prefers-reduced-motion: reduce) { .moon-corona { transition: none !important; } }
@media (prefers-reduced-motion: reduce) { .moon-sun { transition: none !important; } }

/* ---------- قمر شاشة «عمر القمر»: بلا بطاقة، مقصوص دائريًا كما في الرئيسية ---------- */
#view-age .moon-container {
  background: none !important; border: 0 !important; box-shadow: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  padding: 8px 0 !important; transform: none !important;
}
#view-age .moon-link.is-3d { isolation: isolate; }
#view-age .moon-link.is-3d img {
  position: relative; z-index: 1; border-radius: 0; object-fit: contain; filter: drop-shadow(0 0 26px rgba(239, 211, 215, .3));
}

/* ---------- المظهر النهاري: سماء زرقاء في الأعلى تتدرج إلى برتقالي الغروب في الأسفل (كسماء اللعبة) ----------
   طبقة ثابتة بحجم الشاشة خلف المحتوى، فيبقى الأزرق أعلى الشاشة والغروب أسفلها مهما مرّر الزائر */
body[data-theme="light"] {
  --body-gradient-start: #5E9FE3; --body-gradient-end: #FFAD72;
  background: #FFAD72;
}
body[data-theme="light"]::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #5E9FE3 0%, #9DC8F2 36%, #F3DCC7 70%, #FFAD72 100%);
}

/* ---------- عدسة شريط التبويبات (nav-lens.js، متصفحات Chromium فقط) ---------- */
.nav-container.has-lens { overflow: visible; }
@media (min-width: 641px) { .nav-container.has-lens { position: relative; } }   /* على الجوال يبقى ثابتًا أسفل الشاشة */
.nav-lens {
  position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none; border-radius: 999px;
  transform-origin: 50% 50%; will-change: transform;
  transition: transform .34s cubic-bezier(.2, .9, .22, 1.08);
}
.nav-lens.is-drag { transition: transform .12s cubic-bezier(.2, .9, .3, 1.2); }   /* تتبع الإصبع، وتنتفخ بسرعة حين يبدأ السحب */
.nav-lens.no-anim { transition: none; }
.nav-lens-refr, .nav-lens-tint { position: absolute; inset: 0; border-radius: inherit; }
.nav-lens-tint {
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px rgba(0, 0, 0, .14);
}
[data-theme="light"] .nav-lens-tint, [data-theme="sakura"] .nav-lens-tint { background: rgba(255, 255, 255, .22); }
/* العدسة تحل محل خلفية التبويب المحدد */
.nav-container.has-lens .nav-link.active, .nav-container.has-lens .nav-link[aria-current="page"] { background: transparent !important; box-shadow: none !important; }
.nav-container.has-lens .nav-link { touch-action: none; -webkit-user-drag: none; user-select: none; }
@media (prefers-reduced-motion: reduce) { .nav-lens, .nav-lens.is-drag { transition: none; } }

/* انتقال الشاشات (View Transitions) يجمّد الشريط في صورة ويمزجها، فتظهر العدسة مكررة أو قافزة.
   مع العدسة: يُعرض الشريط حيًّا مباشرة بلا مزج، وتنزلق العدسة بحركتها الخاصة */
.nav-container.has-lens .nav-link[aria-current="page"] { view-transition-name: none; }
html:has(.nav-container.has-lens)::view-transition-old(tabbar) { display: none; }
html:has(.nav-container.has-lens)::view-transition-new(tabbar) { animation: none; }

/* ---------- زر المظهر بجانب شريط التبويبات (site.js › setupNav) ---------- */
.nav-dock { display: flex; align-items: stretch; justify-content: center; gap: 10px; margin: 8px auto 28px; max-width: 100%; }
.nav-dock .nav-container { margin: 0; }
.nav-dock .theme-toggle {
  position: relative !important; inset: auto !important; top: auto !important; left: auto !important;
  flex: none; width: 58px !important; height: 58px !important; align-self: center;   /* بارتفاع الشريط */
  border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem;
}
.nav-dock .theme-toggle:hover { transform: none; }
@media (max-width: 640px) {
  .nav-dock {
    position: fixed; z-index: 20; margin: 0;
    left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .nav-dock .nav-container { position: relative !important; inset: auto !important; flex: 1 1 auto; min-width: 0; }
  .nav-dock .theme-toggle { width: 70px !important; height: 70px !important; font-size: 1.55rem; }
}

/* زر المظهر يندمج بالشريط كقطرتي ماء ثم ينفصل (site.js › setupTheme › goo) */
@media (min-width: 641px) { .nav-dock { position: relative; } }   /* على الجوال يبقى ثابتًا أسفل الشاشة */
.nav-dock .nav-container, .nav-dock .theme-toggle { z-index: 1; }
.nav-dock .theme-toggle, .nav-dock .nav-container, .dock-goo > i {
  transition: transform .62s cubic-bezier(.3, 1.35, .45, 1);               /* الانفصال: تمطط ثم ارتداد */
}
.nav-dock.is-merging .theme-toggle, .nav-dock.is-merging .goo-btn {
  transform: translateX(var(--dock-dx, 0px));
  transition: transform .32s cubic-bezier(.55, 0, .75, .9);                /* الاقتراب: يتسارع كقطرة تنجذب */
}
.nav-dock.is-merging .nav-container, .nav-dock.is-merging .goo-nav {
  transform: translateX(var(--dock-nx, 0px));
  transition: transform .32s cubic-bezier(.55, 0, .75, .9);
}
.dock-goo { position: absolute; inset: -30px; z-index: 0; pointer-events: none; opacity: 0; filter: url(#dock-goo-f); }
.dock-goo > i { position: absolute; display: block; background: var(--glass-fill); margin: 30px 0 0 30px; }
/* أثناء الاندماج: الطبقة السائلة ترسم خلفية الشريط والزر معًا، فيظهر العنق بينهما */
.nav-dock.is-goo .dock-goo { opacity: .94; }
.nav-dock.is-goo .nav-container, .nav-dock.is-goo .theme-toggle {
  background-color: transparent !important; background-image: none !important; box-shadow: none !important;
  border-color: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .nav-dock .theme-toggle, .nav-dock .nav-container { transition: none !important; transform: none !important; }
}

/* ---------- مقبض زجاجي لشريطي التقدم والصوت (glass-sliders.js) ---------- */
.slider-lens {
  position: absolute; top: 0; left: 0; z-index: 2; width: 46px; height: 30px; border-radius: 999px;
  pointer-events: none; opacity: 0; scale: .45;
  transition: opacity .16s ease, scale .22s cubic-bezier(.3, 1.4, .5, 1);
}
.slider-lens.is-on { opacity: 1; scale: 1; }
.slider-lens-refr, .slider-lens-tint { position: absolute; inset: 0; border-radius: inherit; }
.slider-lens-tint { background: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 14px rgba(0, 0, 0, .22); }
[data-theme="light"] .slider-lens-tint, [data-theme="sakura"] .slider-lens-tint { background: rgba(255, 255, 255, .25); }
/* المقبض الأصلي يختفي ما دامت القطرة ظاهرة */
.qp-seek.is-lens::-webkit-slider-thumb, .qp-volume.is-lens::-webkit-slider-thumb { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .slider-lens { transition: opacity .1s; scale: 1; } }

/* انبثاق المظهر من الزر (site.js › swap): الصفحة كلها صورة واحدة، والجديدة تتسع دائرةً فوق القديمة */
html.theme-reveal .nav-container, html.theme-reveal .theme-toggle,
html.theme-reveal .nav-link[aria-current="page"], html.theme-reveal .moon3d,
html.theme-reveal #homeMoon, html.theme-reveal #moonImage { view-transition-name: none !important; }
html.theme-reveal::view-transition-old(root), html.theme-reveal::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-reveal::view-transition-old(root) { z-index: 0; }
html.theme-reveal::view-transition-new(root) { z-index: 1; }

/* ---------- نهاية شريطي التقدم والصوت: نصف قلب يكتمل عند السحب ----------
   الجزء الملوّن من الشريط يبدأ من اليمين، وينتهي بنصف قلب: حافته المستقيمة تلتصق بالجزء الملوّن وفصّه يتقدم أمامه؛
   عند الضغط أو السحب يكتمل القلب، وتعلوه العدسة الزجاجية في متصفحات Chromium */
.qp { --heart-half: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='3.5 7 17 14'%3E%3CclipPath id='c'%3E%3Crect x='0' y='0' width='12.9' height='24'/%3E%3C/clipPath%3E%3Cpath d='M12 20.5s-8-4.7-8-10.3A4.7 4.7 0 0 1 12 7.6a4.7 4.7 0 0 1 8 2.6c0 5.6-8 10.3-8 10.3z' fill='%23000' clip-path='url%28%23c%29'/%3E%3C/svg%3E"); --heart-full: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='3.5 7 17 14'%3E%3Cpath d='M12 20.5s-8-4.7-8-10.3A4.7 4.7 0 0 1 12 7.6a4.7 4.7 0 0 1 8 2.6c0 5.6-8 10.3-8 10.3z' fill='%23000'/%3E%3C/svg%3E"); }
/* نهاية الجزء الملوّن عند مركز المقبض تمامًا (لا عند نسبة من العرض كله)، فيلتصق نصف القلب بها بلا فراغ.
   background-image وحدها، لتبقى بقية خصائص الخلفية (مساحة اللمس ٤٤px) كما هي */
.qp-seek, .qp-volume {
  background-image: linear-gradient(to left, var(--qp-fg) calc(6px + (100% - 12px) * var(--pn, 0)), var(--qp-track) calc(6px + (100% - 12px) * var(--pn, 0))); }
.qp-seek::-webkit-slider-thumb, .qp-volume::-webkit-slider-thumb {
  /* قريب من سُمك الشريط (8px)، فلا يكاد يُرى أنه قلب إلا لمن دقّق */
  width: 12px; height: 10px; border: 0; border-radius: 0; box-shadow: none;
  background: var(--qp-fg);
  -webkit-mask: var(--heart-half) center / 100% 100% no-repeat; mask: var(--heart-half) center / 100% 100% no-repeat;
  transition: transform .2s cubic-bezier(.3, 1.5, .5, 1);
}
.qp-seek::-moz-range-thumb, .qp-volume::-moz-range-thumb {
  width: 12px; height: 10px; border: 0; border-radius: 0; box-shadow: none; background: var(--qp-fg);
  mask: var(--heart-half) center / 100% 100% no-repeat;
}
.qp-seek.is-held::-webkit-slider-thumb, .qp-volume.is-held::-webkit-slider-thumb {
  -webkit-mask-image: var(--heart-full); mask-image: var(--heart-full); transform: scale(1.12);
}
.qp-seek.is-held::-moz-range-thumb, .qp-volume.is-held::-moz-range-thumb { mask-image: var(--heart-full); }
/* مع العدسة: يختفي المقبض، ويظهر القلب المكتمل داخل القطرة الزجاجية واضحًا فوق انكسارها */
.slider-lens-heart { position: absolute; left: 50%; top: 50%; width: 17px; height: 14px; translate: -50% -50%;
  background: var(--qp-fg); -webkit-mask: var(--heart-full) center / 100% 100% no-repeat; mask: var(--heart-full) center / 100% 100% no-repeat; }

/* أثناء الانتقال بين الشاشات يلتقط كروم صورة للشريط والزر ليحرّكهما، فيرسم ضبابية الخلفية في مربع
   ويتجاهل استدارة الحواف (فتظهر زوايا حادة). نوقف الضبابية طوال الانتقال فقط؛ تبقى الخلفية شبه الشفافة */
html.vt-fwd .nav-container, html.vt-back .nav-container,
html.vt-fwd .theme-toggle, html.vt-back .theme-toggle,
html.vt-fwd .nav-lens-refr, html.vt-back .nav-lens-refr {
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}

/* القمر في الرئيسية يُضغط كرابط دون أن يكون رابطًا */
.moon3d-link { cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.moon3d-link:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 6px; border-radius: 50%; }
.moon3d-link:hover #homeMoon { transform: scale(1.05); }

/* ===== أداء: حجز الأماكن حتى لا تتزحزح الصفحة أثناء التحميل (CLS) ===== */
.home-moon .moon3d-link { display: grid; place-items: center; width: 250px; height: 250px; max-width: 100%; margin-inline: auto; }
@media (max-width: 480px) { .home-moon .moon3d-link { width: 200px; height: 200px; } }
.home-moon .moon3d-link > .moon3d, .home-moon .moon3d-link > #homeMoon { grid-area: 1 / 1; }
.moon3d-hint[hidden] { display: block; visibility: hidden; }
.qp.qp-pending { visibility: hidden; }
#view-home .ayah:empty { min-height: 1.6em; }
#ayahPlayer:empty { min-height: 347px; }
@media (max-width: 480px) { #ayahPlayer:empty { min-height: 335px; } }
@media (max-width: 380px) { #ayahPlayer:empty { min-height: 360px; } }
