/* Hanuman Ji page — full 3D / 8D animation shrine */

.hanuman-8d {
    --mx: 0;
    --my: 0;
    --hn-tilt-x: 0deg;
    --hn-tilt-y: 0deg;
    --nm-tilt-x: 0deg;
    --nm-tilt-y: 0deg;
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    overflow-y: visible;
    background: #04050b;
    perspective: 1400px;
}

html:has(.hanuman-8d) {
    scroll-behavior: smooth;
}

.hanuman-8d,
.hanuman-8d * {
    -webkit-tap-highlight-color: transparent;
}

.hanuman-8d__void {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    transform-style: preserve-3d;
}

.hanuman-8d__nebula {
    position: absolute;
    border-radius: 50%;
    animation: h8dDrift 18s ease-in-out infinite;
}

.hanuman-8d__nebula--1 {
    width: 28rem;
    height: 18rem;
    left: -6%;
    top: 8%;
    background: radial-gradient(circle, rgba(232, 184, 48, 0.22), transparent 72%);
}

.hanuman-8d__nebula--2 {
    width: 24rem;
    height: 24rem;
    right: -8%;
    top: 28%;
    background: radial-gradient(circle, rgba(108, 77, 255, 0.3), transparent 70%);
    animation-delay: -4s;
}

.hanuman-8d__nebula--3 {
    width: 32rem;
    height: 16rem;
    left: 30%;
    bottom: 6%;
    background: radial-gradient(circle, rgba(37, 184, 245, 0.18), transparent 70%);
    animation-delay: -8s;
}

.hanuman-8d__motes {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    inset: 0;
}

.hanuman-8d__motes li {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    left: calc(8% + (var(--n) * 7%));
    top: calc(8% + (var(--n) * 6.5%));
    background: #e8b830;
    box-shadow:
        -4px 0 8px rgba(37, 184, 245, 0.45),
        4px 0 8px rgba(232, 184, 48, 0.55);
    opacity: 0.35;
    animation: h8dMote 9s ease-in-out infinite;
    animation-delay: calc(var(--n) * -0.4s);
}

.hanuman-8d__motes li:nth-child(3n) { background: #6c4dff; }
.hanuman-8d__motes li:nth-child(4n) { background: #25b8f5; }

/* Hero — animation only */
.hanuman-hero-8d {
    position: relative;
    z-index: 1;
    height: min(78vh, 38rem);
    min-height: 26rem;
    margin: 0.6rem auto 0;
    max-width: 92rem;
    overflow: hidden;
    border-radius: 1.3rem;
    perspective: 1200px;
    transform-style: preserve-3d;
    pointer-events: none;
    contain: layout paint;
}

.hanuman-hero-8d__world {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform-style: preserve-3d;
    transform-origin: 50% 48%;
}

.hanuman-hero-8d__tunnel {
    position: absolute;
    left: 50%;
    top: 52%;
    border: 1px solid rgba(232, 184, 48, 0.22);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(72deg);
    box-shadow:
        -10px 0 18px rgba(37, 184, 245, 0.12),
        10px 0 18px rgba(232, 184, 48, 0.16);
    animation: h8dTunnel 10s linear infinite;
}

.hanuman-hero-8d__tunnel--1 { width: 8rem; height: 8rem; animation-duration: 7s; }
.hanuman-hero-8d__tunnel--2 { width: 14rem; height: 14rem; animation-duration: 9s; animation-direction: reverse; }
.hanuman-hero-8d__tunnel--3 { width: 22rem; height: 22rem; animation-duration: 12s; }
.hanuman-hero-8d__tunnel--4 { width: 32rem; height: 32rem; animation-duration: 16s; animation-direction: reverse; border-color: rgba(108, 77, 255, 0.22); }
.hanuman-hero-8d__tunnel--5 { width: 44rem; height: 44rem; animation-duration: 22s; border-style: dotted; }

.hanuman-hero-8d__floor {
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 4%;
    height: 5.5rem;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(232, 184, 48, 0.35), transparent 72%);
    filter: blur(8px);
    transform: rotateX(78deg) translateZ(-40px);
}

.hanuman-hero-8d__glow {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 16rem;
    height: 16rem;
    margin: -8rem 0 0 -8rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 184, 48, 0.5) 0%, rgba(108, 77, 255, 0.22) 42%, transparent 70%);
    animation: h8dPulse 4.6s ease-in-out infinite;
}

.hanuman-hero-8d__rays {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 26rem;
    height: 26rem;
    margin: -13rem 0 0 -13rem;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, transparent 0 14deg, rgba(232, 184, 48, 0.16) 14deg 17deg);
    mask-image: radial-gradient(circle, transparent 22%, #000 40%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle, transparent 22%, #000 40%, transparent 72%);
    animation: h8dSpinFlat 28s linear infinite;
}

.hanuman-hero-8d__ring {
    position: absolute;
    left: 50%;
    top: 48%;
    border-radius: 50%;
    border: 1.5px solid rgba(244, 214, 138, 0.45);
    transform: translate(-50%, -50%) rotateX(66deg);
    animation: h8dSpinTilt 18s linear infinite;
}

.hanuman-hero-8d__ring--a { width: 13rem; height: 13rem; }
.hanuman-hero-8d__ring--b { width: 17.5rem; height: 17.5rem; border-style: dashed; border-color: rgba(108, 77, 255, 0.45); animation-duration: 24s; animation-direction: reverse; }
.hanuman-hero-8d__ring--c { width: 22rem; height: 22rem; border-style: dotted; animation-duration: 32s; }
.hanuman-hero-8d__ring--d { width: 9.2rem; height: 9.2rem; border-color: rgba(37, 184, 245, 0.4); animation-duration: 11s; animation-direction: reverse; }

.hanuman-hero-8d__helix {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 1.2rem;
    height: 18rem;
    margin: -9rem 0 0 -0.6rem;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, rgba(232, 184, 48, 0.35), transparent);
    filter: blur(0.4px);
    transform-origin: 50% 50%;
    animation: h8dHelix 6s linear infinite;
    opacity: 0.55;
    z-index: 1;
}

.hanuman-hero-8d__helix--l { animation-delay: 0s; box-shadow: -8px 0 16px rgba(37, 184, 245, 0.28); }
.hanuman-hero-8d__helix--r { animation-delay: -3s; box-shadow: 8px 0 16px rgba(232, 184, 48, 0.28); }

.hanuman-hero-8d__orbs {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    inset: 0;
}

.hanuman-hero-8d__orbs li {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #e8b830;
    box-shadow:
        -6px 0 10px rgba(37, 184, 245, 0.7),
        6px 0 10px rgba(232, 184, 48, 0.8);
    animation: h8dOrb 11s linear infinite;
    animation-duration: calc(8s + var(--o) * 0.7s);
    --orb: calc(6.2rem + var(--o) * 0.55rem);
}

.hanuman-hero-8d__orbs li:nth-child(odd) { background: #6c4dff; }
.hanuman-hero-8d__orbs li:nth-child(3n) { background: #25b8f5; }

.hanuman-hero-8d__sparks {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.hanuman-hero-8d__sparks li {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 7px;
    height: 7px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: #f4d68a;
    box-shadow: 0 0 12px 4px rgba(232, 184, 48, 0.75);
    animation: h8dSpark 13s linear infinite;
    animation-duration: calc(9s + var(--s) * 0.55s);
    --spark: calc(8.4rem + var(--s) * 0.42rem);
}

.hanuman-hero-8d__mantra-orbit {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.hanuman-hero-8d__mantra-orbit li {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 0;
    height: 0;
    animation: h8dSpinFlat 28s linear infinite;
}

.hanuman-hero-8d__mantra-orbit li:nth-child(1) { animation-delay: 0s; }
.hanuman-hero-8d__mantra-orbit li:nth-child(2) { animation-delay: -7s; }
.hanuman-hero-8d__mantra-orbit li:nth-child(3) { animation-delay: -14s; }
.hanuman-hero-8d__mantra-orbit li:nth-child(4) { animation-delay: -21s; }

.hanuman-hero-8d__mantra-orbit span {
    position: absolute;
    left: 0;
    top: -10.6rem;
    font-family: "Noto Sans Devanagari", Sora, sans-serif;
    font-size: 0.82rem;
    color: #f4d68a;
    text-shadow: 0 0 14px rgba(232, 184, 48, 0.7);
    white-space: nowrap;
    animation: h8dOrbitUnspin 28s linear infinite;
}

.hanuman-hero-8d__mantra-orbit li:nth-child(1) span { animation-delay: 0s; }
.hanuman-hero-8d__mantra-orbit li:nth-child(2) span { animation-delay: -7s; }
.hanuman-hero-8d__mantra-orbit li:nth-child(3) span { animation-delay: -14s; }
.hanuman-hero-8d__mantra-orbit li:nth-child(4) span { animation-delay: -21s; }

.hanuman-hero-8d__mantra-orbit li.is-wide span {
    top: -11.6rem;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    font-size: 0.76rem;
}

.hanuman-hero-8d__japa {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.hanuman-hero-8d__japa li {
    position: absolute;
    left: calc(6% + (var(--j) * 4.8%));
    bottom: -8%;
    font-family: "Noto Sans Devanagari", Sora, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(244, 214, 138, 0.55);
    text-shadow: 0 0 10px rgba(232, 184, 48, 0.4);
    animation: h8dJapaRise 9s linear infinite;
    animation-duration: calc(7s + var(--j) * 0.28s);
    animation-delay: calc(var(--j) * -0.45s);
}

.hanuman-hero-8d__japa li:nth-child(odd) { color: rgba(255, 214, 140, 0.7); }
.hanuman-hero-8d__japa li:nth-child(3n) { color: rgba(180, 210, 255, 0.55); }

.hanuman-hero-8d__float {
    position: absolute;
    z-index: 4;
    margin: 0;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(232, 184, 48, 0.28);
    background: rgba(8, 10, 18, 0.72);
    font-family: "Noto Sans Devanagari", Sora, sans-serif;
    font-size: 0.72rem;
    color: #f4d68a;
    animation: h8dFloatName 5.8s ease-in-out infinite;
    pointer-events: none;
}

.hanuman-hero-8d__float--1 { left: 4%; top: 22%; }
.hanuman-hero-8d__float--2 { right: 5%; top: 20%; animation-delay: -1.1s; }
.hanuman-hero-8d__float--3 { left: 6%; bottom: 24%; animation-delay: -2.2s; }
.hanuman-hero-8d__float--4 { right: 6%; bottom: 22%; animation-delay: -3.1s; }
.hanuman-hero-8d__float--5 { left: 18%; top: 38%; animation-delay: -1.8s; }
.hanuman-hero-8d__float--6 { right: 16%; top: 40%; animation-delay: -2.8s; }

.hanuman-hero-8d__ribbon {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    font-family: "Noto Sans Devanagari", Sora, sans-serif;
    font-size: 0.84rem;
    letter-spacing: 0.16em;
    color: rgba(244, 214, 138, 0.72);
    white-space: nowrap;
    pointer-events: none;
    z-index: 6;
}

.hanuman-hero-8d__ribbon-track {
    display: flex;
    width: max-content;
    flex-shrink: 0;
    animation: h8dRibbonLTR 32s linear infinite;
}

.hanuman-hero-8d__ribbon-track span {
    flex: 0 0 auto;
    min-width: 92rem;
    box-sizing: border-box;
    padding-right: 3.5rem;
}

.hanuman-hero-8d__ribbon--1 {
    top: 1.1rem;
}

.hanuman-hero-8d__ribbon--2 {
    bottom: 1.1rem;
    color: rgba(244, 196, 120, 0.78);
}

.hanuman-hero-8d__ribbon--3 {
    display: none;
}

.hanuman-hero-8d__core {
    position: absolute;
    left: 50%;
    top: 48%;
    z-index: 5;
    width: 11.5rem;
    height: 11.5rem;
    margin: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e8b830;
    box-shadow:
        0 0 0 8px #04050b,
        -18px 0 36px rgba(37, 184, 245, 0.35),
        18px 0 36px rgba(232, 184, 48, 0.45),
        0 24px 40px rgba(0, 0, 0, 0.55);
    animation: h8dCore 7s ease-in-out infinite;
}

.hanuman-hero-8d__core img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: drop-shadow(-8px 0 10px rgba(37, 184, 245, 0.35)) drop-shadow(8px 0 10px rgba(232, 184, 48, 0.4));
}

.hanuman-hero-8d__core-spin {
    position: absolute;
    inset: -18%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 70%, rgba(244, 214, 138, 0.55) 85%, transparent 100%);
    animation: h8dSpinFlat 3.2s linear infinite;
}

.hanuman-8d .hanuman-trust {
    position: relative;
    z-index: 1;
    background: transparent;
    overflow: visible;
    --ht-bg: transparent;
    --ht-panel: transparent;
    --ht-line: rgba(232, 184, 48, 0.22);
    --ht-text-dim: #f4d68a;
}

.hanuman-8d .tech-status-pill {
    color: #f4d68a;
    border-color: rgba(232, 184, 48, 0.35);
}

.hanuman-8d .section-heading,
.hanuman-8d .section-copy {
    color: #f4d68a;
}

.hanuman-8d .section-copy {
    color: rgba(244, 214, 138, 0.78);
}

.hanuman-8d .hanuman-trust__grid {
    background-image:
        linear-gradient(rgba(232, 184, 48, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 184, 245, 0.06) 1px, transparent 1px);
}

.hanuman-8d .hanuman-trust__emblem-wrap {
    transform: translateZ(24px);
    animation: h8dFloatCard 6.5s ease-in-out infinite;
}

.hanuman-8d .hanuman-trust__terminal-col {
    perspective: 1400px;
    transform-style: preserve-3d;
}

.hanuman-8d .hanuman-trust__terminal {
    background: linear-gradient(165deg, rgba(232, 184, 48, 0.12), rgba(108, 77, 255, 0.08) 46%, rgba(4, 5, 11, 0.18));
    border: 1px solid rgba(232, 184, 48, 0.38);
    border-radius: 1.15rem;
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(4deg) translateZ(20px);
    transform-style: preserve-3d;
    box-shadow:
        -18px 0 36px rgba(37, 184, 245, 0.22),
        18px 0 36px rgba(232, 184, 48, 0.28),
        inset 0 0 48px rgba(232, 184, 48, 0.05);
    animation: chalisaCardIdle 12s ease-in-out infinite;
}

.hanuman-8d .hanuman-trust__terminal-bar {
    background: linear-gradient(180deg, rgba(232, 184, 48, 0.12), transparent);
    border-bottom-color: rgba(232, 184, 48, 0.22);
}

.hanuman-8d .hanuman-trust__terminal-body {
    perspective: none;
    transform-style: flat;
    background: rgba(4, 5, 11, 0.48);
    padding: 22px 2rem 36px 1.6rem;
}

.hanuman-8d .hanuman-trust__terminal-body::before {
    background: linear-gradient(to bottom, rgba(4, 5, 11, 0.9), transparent);
}

.hanuman-8d .hanuman-trust__terminal-body::after {
    background: linear-gradient(to top, rgba(4, 5, 11, 0.92), transparent);
}

.hanuman-8d .chalisa-track {
    transform-style: flat;
}

.hanuman-8d .chalisa-doha,
.hanuman-8d .chalisa-stanza {
    transform: none;
    font-weight: 600;
    font-size: 1.08rem;
    line-height: 2.1;
    color: #fff8e6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.hanuman-8d .chalisa-stanza {
    border-left-color: rgba(232, 184, 48, 0.75);
}

@keyframes chalisaCardIdle {
    0%, 100% { transform: rotateY(-5deg) rotateX(4deg) translateZ(20px); }
    50% { transform: rotateY(-3deg) rotateX(5deg) translateZ(26px); }
}

/* 108 names — Jyotirlinga japamala */
.nama-108 {
    position: relative;
    z-index: 1;
    padding: 1.4rem 0 3.4rem;
    scroll-margin-top: 6.5rem;
    content-visibility: auto;
    contain-intrinsic-size: 1px 36rem;
}

.nama-108__stage {
    position: relative;
    height: 34rem;
    max-width: 72rem;
    margin: 0 auto;
    overflow: hidden;
    perspective: 1200px;
    pointer-events: none;
}

.nama-108__sky {
    position: absolute;
    left: 50%;
    top: 8%;
    width: 26rem;
    height: 16rem;
    margin-left: -13rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 184, 48, 0.22), rgba(108, 77, 255, 0.12) 50%, transparent 70%);
    animation: h8dDrift 8s ease-in-out infinite;
}

.nama-108__floor {
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 7%;
    height: 4.2rem;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(232, 184, 48, 0.32), transparent 72%);
    filter: blur(8px);
}

.nama-108__aura {
    position: absolute;
    left: 50%;
    top: 44%;
    width: 18rem;
    height: 18rem;
    margin: -9rem 0 0 -9rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 184, 48, 0.18), rgba(108, 77, 255, 0.1) 42%, transparent 70%);
    animation: h8dPulse 7s ease-in-out infinite;
}

.nama-yantra {
    position: absolute;
    left: 50%;
    top: 54%;
    z-index: 1;
    width: 13.5rem;
    height: 13.5rem;
    margin: -6.75rem 0 0 -6.75rem;
    pointer-events: none;
}

.nama-yantra__ring {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    border: 1px dashed rgba(244, 214, 138, 0.28);
}

.nama-yantra__ring--a { animation: h8dSpinFlat 48s linear infinite; }
.nama-yantra__ring--b {
    inset: 18%;
    border-style: solid;
    border-color: rgba(108, 77, 255, 0.28);
    animation: h8dSpinFlat 36s linear infinite reverse;
}

.nama-yantra__tri {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    margin-left: -3.6rem;
    border-left: 3.6rem solid transparent;
    border-right: 3.6rem solid transparent;
    opacity: 0.55;
}

.nama-yantra__tri--up {
    margin-top: -4.4rem;
    border-bottom: 7.2rem solid rgba(232, 184, 48, 0.16);
    animation: namaYantra 6s ease-in-out infinite;
}

.nama-yantra__tri--down {
    margin-top: -2.8rem;
    border-bottom: none;
    border-top: 7.2rem solid rgba(37, 184, 245, 0.12);
    animation: namaYantra 6s ease-in-out infinite reverse;
}

.nama-pancha {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 50%;
    top: 54%;
    z-index: 3;
    width: 0;
    height: 0;
    animation: h8dSpinFlat 28s linear infinite;
}

.nama-pancha li {
    position: absolute;
    left: 0;
    top: 0;
    width: 1.6rem;
    margin: -0.5rem 0 0 -0.8rem;
    font-family: "Noto Sans Devanagari", Sora, sans-serif;
    font-size: 0.82rem;
    color: #f4d68a;
    text-align: center;
    text-shadow: 0 0 10px rgba(232, 184, 48, 0.6);
    transform: rotate(calc(var(--p) * 60deg)) translateY(-6.4rem);
}

.nama-mala {
    --mala-sx: 1.7;
    position: absolute;
    left: 50%;
    top: 64%;
    z-index: 2;
    width: 0;
    height: 0;
    transform: rotateX(62deg) scaleX(var(--mala-sx));
    animation: namaMalaTurn 96s linear infinite;
    transform-origin: 50% 50%;
    pointer-events: none;
}

.nama-mala__ring {
    position: absolute;
    left: -11.6rem;
    top: -11.6rem;
    width: 23.2rem;
    height: 23.2rem;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, #e8b830 0 0.9deg, transparent 0.9deg 3.333deg);
    -webkit-mask-image: radial-gradient(circle, transparent 47%, #000 48%, #000 50.5%, transparent 51.5%);
    mask-image: radial-gradient(circle, transparent 47%, #000 48%, #000 50.5%, transparent 51.5%);
}

.nama-mala__on {
    position: absolute;
    left: 0;
    top: 0;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff6d0, #e8b830 55%, #6c4dff);
    box-shadow:
        0 0 0 4px rgba(232, 184, 48, 0.18),
        0 0 18px rgba(232, 184, 48, 0.85);
    transform: translateY(-11.6rem) scaleX(0.62);
}

.nama-ganga {
    position: absolute;
    top: 8%;
    bottom: 18%;
    width: 8.8rem;
    overflow: hidden;
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
    z-index: 1;
}

.nama-ganga--l { left: 4%; }
.nama-ganga--r { right: 4%; }

.nama-ganga__track {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    animation: namaGanga 80s linear infinite;
}

.nama-ganga__track--rev {
    animation-direction: reverse;
    animation-duration: 92s;
}

.nama-ganga span {
    display: block;
    font-family: "Noto Sans Devanagari", Sora, sans-serif;
    font-size: 0.8rem;
    line-height: 1.3;
    color: rgba(244, 214, 138, 0.62);
    text-align: center;
    white-space: nowrap;
}

.nama-ganga--r span { color: rgba(180, 210, 255, 0.58); }

.nama-lingam {
    position: absolute;
    left: 50%;
    top: 52%;
    z-index: 4;
    width: 8.4rem;
    height: 14rem;
    margin: -7.2rem 0 0 -4.2rem;
    animation: namaLingamIdle 16s ease-in-out infinite;
    pointer-events: none;
}

.nama-lingam__jyoti {
    position: absolute;
    left: 50%;
    top: -4%;
    width: 1.6rem;
    height: 6.8rem;
    margin-left: -0.8rem;
    border-radius: 999px 999px 40% 40%;
    background: linear-gradient(180deg, rgba(255, 248, 220, 0.95) 0%, rgba(232, 184, 48, 0.9) 42%, rgba(255, 90, 20, 0.55) 100%);
    filter: blur(0.3px);
    box-shadow:
        0 0 18px rgba(255, 196, 80, 0.7),
        -12px 8px 24px rgba(37, 184, 245, 0.28),
        12px 8px 24px rgba(232, 184, 48, 0.4);
    animation: namaJyoti 3.4s ease-in-out infinite;
}

.nama-lingam__stone {
    position: absolute;
    left: 50%;
    top: 36%;
    width: 3.1rem;
    height: 5.6rem;
    margin-left: -1.55rem;
    border-radius: 48% 48% 44% 44% / 38% 38% 62% 62%;
    background:
        radial-gradient(circle at 34% 22%, rgba(255, 236, 180, 0.55), transparent 36%),
        linear-gradient(180deg, #6a5340 0%, #2a221c 48%, #120e0b 100%);
    box-shadow:
        inset 8px 0 12px rgba(255, 220, 140, 0.18),
        inset -10px 0 14px rgba(0, 0, 0, 0.45),
        0 10px 24px rgba(0, 0, 0, 0.45);
}

.nama-lingam__om {
    position: absolute;
    left: 50%;
    top: 48%;
    z-index: 2;
    transform: translate(-50%, -50%);
    font-size: 1.35rem;
    color: #f4d68a;
    text-shadow: 0 0 10px rgba(232, 184, 48, 0.8);
}

.nama-lingam__yoni {
    position: absolute;
    left: 50%;
    top: 70%;
    width: 7.2rem;
    height: 1.9rem;
    margin-left: -3.6rem;
    border-radius: 50%;
    border: 2px solid rgba(232, 184, 48, 0.55);
    background:
        radial-gradient(ellipse at 50% 30%, rgba(90, 60, 20, 0.95), rgba(18, 12, 8, 0.98));
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.4);
}

.nama-lingam__crescent {
    position: absolute;
    left: 50%;
    top: 14%;
    width: 1.6rem;
    height: 1.6rem;
    margin-left: 0.15rem;
    border-radius: 50%;
    box-shadow: -0.5rem 0 0 0 #f4d68a;
    transform: rotate(-22deg);
    animation: namaCrescent 5s ease-in-out infinite;
}

.nama-lingam__trishul {
    position: absolute;
    left: 50%;
    top: 2%;
    width: 3px;
    height: 2.6rem;
    margin-left: -1.5px;
    background: linear-gradient(180deg, #f4d68a, #c48a12);
    border-radius: 2px;
}

.nama-lingam__trishul::before,
.nama-lingam__trishul::after {
    content: "";
    position: absolute;
    top: 0;
    width: 4px;
    height: 1.35rem;
    background: #f4d68a;
    border-radius: 2px;
}

.nama-lingam__trishul::before { left: -8px; transform: rotate(-28deg); transform-origin: bottom center; }
.nama-lingam__trishul::after { right: -8px; transform: rotate(28deg); transform-origin: bottom center; }

.nama-smarana {
    position: absolute;
    left: 50%;
    top: 0.35rem;
    z-index: 5;
    margin: 0;
    transform: translateX(-50%);
    text-align: center;
    min-width: 14rem;
    padding: 0.4rem 1.1rem 0.5rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(8, 10, 22, 0.72), rgba(8, 10, 22, 0.28));
    border: 1px solid rgba(232, 184, 48, 0.18);
    backdrop-filter: blur(8px);
}

.nama-smarana__count {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    color: #e8b830;
}

.nama-smarana strong {
    display: block;
    font-family: "Noto Sans Devanagari", Sora, sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.2;
    color: #fff6d8;
    opacity: 0.35;
    transform: translateY(6px);
    transition: opacity 360ms ease, transform 360ms ease;
    text-shadow:
        -6px 0 14px rgba(37, 184, 245, 0.35),
        6px 0 14px rgba(232, 184, 48, 0.45);
}

.nama-smarana strong.is-in {
    opacity: 1;
    transform: translateY(0);
}

.nama-smarana em {
    display: block;
    margin-top: 0.28rem;
    font-style: normal;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    color: rgba(244, 214, 138, 0.7);
}

@keyframes namaMalaTurn {
    from { transform: rotateX(62deg) scaleX(var(--mala-sx)) rotate(0deg); }
    to { transform: rotateX(62deg) scaleX(var(--mala-sx)) rotate(360deg); }
}

@keyframes namaYantra {
    0%, 100% { transform: scale(0.96); opacity: 0.45; }
    50% { transform: scale(1.04); opacity: 0.7; }
}

@keyframes namaGanga {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@keyframes namaGangaX {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes namaJyoti {
    0%, 100% { opacity: 0.75; filter: blur(0.4px) brightness(1); }
    50% { opacity: 1; filter: blur(0.2px) brightness(1.2); }
}

@keyframes namaCrescent {
    0%, 100% { opacity: 0.8; transform: rotate(-22deg) translateY(0); }
    50% { opacity: 1; transform: rotate(-18deg) translateY(-3px); }
}

@keyframes h8dWorldIdle {
    0%, 100% { transform: rotateX(6deg) rotateY(-0.8deg); }
    50% { transform: rotateX(6.8deg) rotateY(0.8deg); }
}

@keyframes namaLingamIdle {
    0%, 100% { transform: rotateX(4deg) rotateY(-3deg); }
    50% { transform: rotateX(6deg) rotateY(3deg); }
}

@keyframes h8dDrift {
    0%, 100% { opacity: 0.55; transform: translate3d(0, 0, 0); }
    50% { opacity: 1; transform: translate3d(10px, -12px, 0); }
}

@keyframes h8dMote {
    0%, 100% { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0.15; }
    50% { transform: translate3d(12px, -28px, 40px) scale(1.15); opacity: 0.9; }
}

@keyframes h8dTunnel {
    from { transform: translate(-50%, -50%) rotateX(72deg) scale(0.55); opacity: 0.15; }
    50% { opacity: 0.85; }
    to { transform: translate(-50%, -50%) rotateX(72deg) scale(1.35); opacity: 0; }
}

@keyframes h8dPulse {
    0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(0.92); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes h8dSpinFlat {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes h8dSpinTilt {
    from { transform: translate(-50%, -50%) rotateX(66deg) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotateX(66deg) rotate(360deg); }
}

@keyframes h8dHelix {
    from { transform: rotateZ(0deg) rotateY(18deg); }
    to { transform: rotateZ(360deg) rotateY(18deg); }
}

@keyframes h8dOrb {
    from { transform: rotate(0deg) translateX(var(--orb, 8rem)) rotateX(18deg); }
    to { transform: rotate(360deg) translateX(var(--orb, 8rem)) rotateX(18deg); }
}

@keyframes h8dRibbonLTR {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@keyframes h8dSpark {
    from { transform: rotate(0deg) translateX(var(--spark, 9rem)); }
    to { transform: rotate(360deg) translateX(var(--spark, 9rem)); }
}

@keyframes h8dOrbitUnspin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes h8dJapaRise {
    0% { transform: translate3d(0, 20px, 0) scale(0.7); opacity: 0; }
    12% { opacity: 0.85; }
    100% { transform: translate3d(10px, -28rem, 40px) scale(0.4); opacity: 0; }
}

@keyframes h8dFloatName {
    0%, 100% { transform: translateY(0); opacity: 0.65; }
    50% { transform: translateY(-8px); opacity: 1; }
}

@keyframes h8dCore {
    0%, 100% { transform: translate3d(-50%, -50%, 60px) rotateX(6deg) rotateY(-4deg); }
    50% { transform: translate3d(-50%, calc(-50% - 8px), 78px) rotateX(12deg) rotateY(4deg); }
}

@keyframes h8dFloatCard {
    0%, 100% { transform: translate3d(0, 0, 24px); }
    50% { transform: translate3d(0, -8px, 36px); }
}

@keyframes h8dSpinY {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

@media (max-width: 991.98px) {
    .hanuman-hero-8d {
        height: 28rem;
        min-height: 22rem;
        margin-inline: 0.7rem;
    }

    .hanuman-hero-8d__core {
        width: 9.2rem;
        height: 9.2rem;
    }

    .hanuman-8d .hanuman-trust__terminal {
        transform: none;
        animation: none;
    }

    .nama-108__stage { height: 30rem; }
    .nama-mala { --mala-sx: 1.35; }
    .nama-pancha li { transform: rotate(calc(var(--p) * 60deg)) translateY(-5.2rem); }

    .nama-ganga {
        top: auto;
        bottom: 1.1rem;
        height: 2rem;
        width: auto;
        mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    }

    .nama-ganga--l {
        left: 4%;
        right: 4%;
    }

    .nama-ganga--r { display: none; }

    .nama-ganga__track {
        flex-direction: row;
        gap: 1.1rem;
        width: max-content;
        animation: namaGangaX 70s linear infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hanuman-8d *,
    .hanuman-8d *::before,
    .hanuman-8d *::after {
        animation: none !important;
        transition: none !important;
    }

    .nama-mala,
    .nama-ganga__track,
    .nama-pancha,
    .nama-yantra__ring {
        animation: none !important;
    }

    .nama-108__stage { height: auto; min-height: 22rem; }
    .nama-lingam { position: relative; left: auto; top: auto; margin: 2rem auto 0; }
}
