/* Fablewings "heavenly" theme layer: golden light, clouds, sparkles and butterflies.
   Loaded on every page. Decoration only: pointer-events none, honours reduced motion. */
:root { --hv-gold: #e8b64c; --hv-gold-2: #ffd98a; --hv-rose: #f6c9d6; --hv-ivory: #fff8ea; --hv-violet: #2a1f4f; }

/* Fixed decorative layer (gold dust canvas + butterflies) */
#heaven-fx { position: fixed; inset: 0; pointer-events: none; z-index: 7; overflow: hidden; }
#heaven-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hv-fly { position: absolute; left: 0; top: 0; width: 46px; height: 46px; will-change: transform; filter: drop-shadow(0 0 8px rgba(255, 210, 120, .75)); opacity: .95; }
.hv-fly i { display: block; width: 100%; height: 100%; background: center / contain no-repeat; animation: hv-flap .32s ease-in-out infinite alternate; transform-origin: 50% 50%; }
@keyframes hv-flap { from { transform: scaleX(1); } to { transform: scaleX(.28); } }

/* Soft heavenly page wash behind content */
body.hv { background-image:
  radial-gradient(1200px 600px at 85% -10%, rgba(255, 214, 138, .35), transparent 60%),
  radial-gradient(900px 520px at -10% 20%, rgba(246, 201, 214, .28), transparent 60%),
  radial-gradient(1000px 700px at 50% 110%, rgba(180, 200, 255, .20), transparent 60%);
  background-attachment: fixed; }
body.hv.hv-sky { background-image: linear-gradient(rgba(255, 250, 238, .55), rgba(255, 250, 238, .55)), url("/img/heaven-sky-bg.webp"); background-size: cover; background-attachment: fixed; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.hv.hv-sky { background-image: linear-gradient(rgba(19, 16, 34, .86), rgba(19, 16, 34, .86)), url("/img/heaven-sky-bg.webp"); } }

/* Hero: light rays, drifting clouds, floating deva */
.hero.pic.hv-hero { isolation: isolate; }
.hv-hero .hv-rays { position: absolute; inset: -40% -20% auto auto; width: 120%; aspect-ratio: 1; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: .55;
  background: repeating-conic-gradient(from 0deg at 78% 18%, rgba(255, 226, 150, .0) 0deg 7deg, rgba(255, 226, 150, .22) 9deg 11deg, rgba(255, 226, 150, 0) 13deg 20deg);
  -webkit-mask-image: radial-gradient(closest-side at 78% 18%, #000 20%, transparent 75%); mask-image: radial-gradient(closest-side at 78% 18%, #000 20%, transparent 75%);
  animation: hv-rays 40s linear infinite; transform-origin: 78% 18%; }
@keyframes hv-rays { to { transform: rotate(360deg); } }
.hv-hero .hv-clouds { position: absolute; left: 0; right: 0; bottom: -2px; height: 34%; z-index: 1; pointer-events: none; opacity: .9;
  background: url("/img/heaven-clouds-band.webp") 0 100% / auto 100% repeat-x; animation: hv-clouds 90s linear infinite;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%); mask-image: linear-gradient(180deg, transparent, #000 55%); }
@keyframes hv-clouds { to { background-position: -1536px 100%; } }
.hv-hero .hv-deva { position: absolute; right: 4%; top: 10%; width: min(24vw, 300px); z-index: 1; pointer-events: none; filter: drop-shadow(0 0 30px rgba(255, 220, 140, .55)); animation: hv-float 9s ease-in-out infinite; }
@keyframes hv-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-18px) rotate(1.5deg); } }
.hv-hero h1 em { background: linear-gradient(100deg, #f7c86a 0%, #fff3cf 35%, #e8a93a 55%, #ffe7a8 80%, #f7c86a 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: hv-shimmer 6s ease-in-out infinite; filter: drop-shadow(0 0 14px rgba(255, 210, 120, .45)); }
@keyframes hv-shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Golden touches across the site */
.hv .sec-head h2::after, .hv-gold-rule { background: linear-gradient(90deg, transparent, var(--hv-gold), transparent) !important; height: 2px !important; width: 72px !important; box-shadow: 0 0 10px rgba(232, 182, 76, .6); }
.hv .book-card:hover .cover, .hv .mood-book:hover img, .hv .grid a:hover img { box-shadow: 0 0 0 2px rgba(255, 217, 138, .8), 0 12px 34px rgba(232, 182, 76, .45); }
.hv .cover, .hv .mood-book img { transition: box-shadow .35s ease, transform .35s ease; }
.hv-band { height: clamp(90px, 12vw, 170px); margin: 10px 0; max-width: 100%; background: url("/img/heaven-clouds-band.webp") center / cover; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); opacity: .9; }

@media (max-width: 820px) {
  .hv-hero .hv-deva { width: 34vw; top: 4%; right: 2%; opacity: .9; }
  .hv-hero .hv-rays { opacity: .4; }
  .hv-fly { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-hero .hv-rays, .hv-hero .hv-clouds, .hv-hero .hv-deva, .hv-hero h1 em, .hv-fly i { animation: none !important; }
  .hv-fly { display: none; }
}

/* Heavenly home hero: bright golden art, so ink text on a soft ivory veil */
body .hero.pic.heaven { background: #fdf3df; color: #2a1f4f; }
body .hero.pic.heaven .hero-art { object-position: 70% 40%; }
body .hero.pic.heaven::after { background: linear-gradient(90deg, rgba(255, 249, 236, .93) 0%, rgba(255, 247, 232, .82) 30%, rgba(255, 245, 228, .35) 52%, rgba(255, 245, 228, 0) 66%), linear-gradient(0deg, var(--bg) 0%, transparent 14%) !important; }
body .hero.pic.heaven h1 { color: #2a1f4f !important; text-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 0 30px rgba(255, 240, 200, .9) !important; }
body[data-zone] .hero.pic.heaven h1 em, body .hero.pic.heaven h1 em { text-shadow: none !important; -webkit-text-fill-color: transparent !important; background: linear-gradient(100deg, #8f520a 0%, #c47f17 30%, #e0a43a 50%, #b06c10 70%, #8f520a 100%) !important; -webkit-background-clip: text !important; background-clip: text !important; background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #b8741a; animation: hv-shimmer 6s ease-in-out infinite; filter: drop-shadow(0 1px 0 rgba(255,255,255,.6)); }
body .hero.pic.heaven p { color: #4a3f63 !important; font-weight: 600; }
body .hero.pic.heaven .proto { border-color: #b8741a; color: #8a5a12; background: rgba(255, 248, 230, .7); }
body .hero.pic.heaven .btn.ghost:not(.kidsbtn) { background: rgba(255, 252, 244, .75); border: 1.5px solid #c99a45; color: #3b2d63; backdrop-filter: blur(4px); }
body .hero.pic.heaven .btn.gold { background: linear-gradient(135deg, #c98a1e, #e8b64c 50%, #b8741a); color: #fff; box-shadow: 0 10px 26px rgba(201, 138, 30, .45), inset 0 1px 0 rgba(255, 255, 255, .45); text-shadow: 0 1px 2px rgba(120, 70, 0, .5); }
body .hero.pic.heaven .hv-deva { display: none; }
body .hero.pic.heaven .hv-rays { opacity: .35; }
@media (max-width: 820px) {
  body .hero.pic.heaven { background: transparent; }
  body .hero.pic.heaven::after { display: none; }
  body .hero.pic.heaven h1 { text-shadow: none !important; }
  body .hero.pic.heaven .hero-art { height: 112vw; max-height: 620px; object-position: 50% 40%; }
}

/* Floating deva and lotus ornaments placed by heaven.js */
.hv-ornament { position: relative; height: 0; pointer-events: none; }
.hv-ornament img { position: absolute; right: max(2%, 10px); top: -60px; width: clamp(90px, 13vw, 180px); filter: drop-shadow(0 0 24px rgba(255, 215, 130, .6)); animation: hv-float 9s ease-in-out infinite; }
.hv-ornament.left img { right: auto; left: max(2%, 10px); width: clamp(60px, 7vw, 100px); top: -30px; animation-duration: 7s; }
@media (max-width: 820px) { .hv-ornament img { width: 80px; top: -40px; } .hv-ornament.left img { width: 54px; } }
@media (prefers-reduced-motion: reduce) { .hv-ornament img { animation: none; } }

/* Home "New on Fablewings" cards: golden halo edge */
.hv .newcol { box-shadow: 0 0 0 1px rgba(232, 182, 76, .55), 0 14px 40px rgba(201, 138, 30, .22), inset 0 1px 0 rgba(255, 230, 170, .25); }
.hv .newcol:hover { box-shadow: 0 0 0 1.5px rgba(255, 217, 138, .9), 0 18px 50px rgba(232, 182, 76, .4), inset 0 1px 0 rgba(255, 230, 170, .35); }
