/* =========================================================
   Gau Mitra - Cow welcome overlay
   Auto-segregated from the original Gau Mitra stylesheet.
========================================================= */

/* =========================================================
   Transparent Spiritual Glassmorphism Cow Welcome Background
   Paste at bottom of your CSS file
========================================================= */

.gm-cow-page-lock {
    overflow: hidden;
}

/* Full transparent glass overlay */
.gm-simple-cow-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    overflow: hidden;

    /* transparent over website */
    background:
        radial-gradient(circle at 18% 18%, rgba(250, 204, 21, 0.20), transparent 28rem),
        radial-gradient(circle at 82% 20%, rgba(249, 115, 22, 0.18), transparent 30rem),
        radial-gradient(circle at 50% 85%, rgba(22, 163, 74, 0.16), transparent 28rem),
        rgba(255, 248, 232, 0.16);

    backdrop-filter: blur(10px) saturate(1.25);
    -webkit-backdrop-filter: blur(10px) saturate(1.25);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.85s ease, visibility 0.85s ease;
}

.gm-simple-cow-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gm-simple-cow-overlay.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Spiritual light particles */
.gm-simple-cow-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.78) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(250, 204, 21, 0.35) 0 1px, transparent 2px);
    background-size: 95px 95px, 145px 145px;
    opacity: 0.42;
    animation: gmSpiritualParticles 8s linear infinite;
    pointer-events: none;
}

/* Soft divine glow border */
.gm-simple-cow-overlay::after {
    content: "";
    position: absolute;
    inset: 26px;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow:
        inset 0 0 45px rgba(255, 255, 255, 0.18),
        0 0 60px rgba(250, 204, 21, 0.16);
    pointer-events: none;
}

/* Main scene */
.gm-simple-cow-scene {
    position: relative;
    width: min(1120px, 94vw);
    height: min(680px, 86vh);
    display: grid;
    place-items: center;
    perspective: 1500px;
    transform-style: preserve-3d;

    /* glass card container */
    border-radius: 46px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.30), rgba(255, 248, 232, 0.12)),
        radial-gradient(circle at 50% 35%, rgba(250, 204, 21, 0.18), transparent 24rem);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow:
        0 40px 120px rgba(91, 16, 32, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    overflow: hidden;
}

/* Remove heavy old ground and make it glass/transparent */
.gm-simple-ground {
    position: absolute;
    left: -8vw;
    right: -8vw;
    bottom: -22vh;
    height: 42vh;
    border-radius: 50% 50% 0 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.34), transparent 35%),
        linear-gradient(180deg, rgba(74, 222, 128, 0.22), rgba(22, 101, 52, 0.24));
    box-shadow: inset 0 24px 55px rgba(255, 255, 255, 0.18);
}

/* Spiritual Om watermark */
.gm-simple-om {
    position: absolute;
    top: 5%;
    left: 5%;
    z-index: 1;
    font-family: 'Noto Sans Devanagari', serif;
    font-size: clamp(100px, 14vw, 230px);
    font-weight: 900;
    line-height: 1;
    color: rgba(91, 16, 32, 0.08);
    text-shadow: 0 20px 60px rgba(250, 204, 21, 0.20);
    animation: gmSimpleFloat 4s ease-in-out infinite;
}

/* Sun glow */
.gm-simple-sun {
    position: absolute;
    top: 54px;
    right: 74px;
    z-index: 1;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 32%, #fffbd1 0%, #facc15 45%, #f97316 100%);
    box-shadow:
        0 0 60px rgba(250, 204, 21, 0.58),
        0 0 130px rgba(249, 115, 22, 0.30);
    opacity: 0.88;
    animation: gmSimpleSun 3s ease-in-out infinite;
}

/* Glass message box */
.gm-simple-message {
    position: absolute;
    top: 72px;
    left: 50%;
    z-index: 8;
    width: min(780px, 88vw);
    transform: translateX(-50%);
    text-align: center;
    padding: 28px 30px;
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 248, 232, 0.28));
    border: 1px solid rgba(255, 255, 255, 0.56);
    box-shadow:
        0 24px 70px rgba(91, 16, 32, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    animation: gmSimpleMessageIn 1s ease 0.65s both;
}

.gm-simple-message span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 9px 18px;
    border-radius: 999px;
    color: #c2410c;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(249, 115, 22, 0.20);
    box-shadow: 0 14px 34px rgba(120, 53, 15, 0.10);
    font-size: 15px;
    font-weight: 900;
}

.gm-simple-message h1 {
    margin: 0;
    color: #5b1020;
    font-size: clamp(42px, 5.5vw, 78px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.06em;
    text-shadow: 0 14px 32px rgba(91, 16, 32, 0.14);
}

.gm-simple-message p {
    margin: 14px 0 8px;
    color: #166534;
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
    font-size: clamp(23px, 3vw, 40px);
    font-weight: 900;
}

.gm-simple-message small {
    display: block;
    color: #7a3f18;
    font-size: clamp(15px, 1.6vw, 20px);
    font-weight: 800;
}

/* Cow image */
.gm-simple-cow-wrap {
    position: absolute;
    bottom: 82px;
    left: 50%;
    z-index: 9;
    width: min(430px, 78vw);
    height: min(430px, 78vw);
    display: grid;
    place-items: center;
    transform-style: preserve-3d;
    animation:
        gmSimpleCowCome 2s cubic-bezier(.18,.92,.28,1.12) both,
        gmSimpleCowExit 1.35s ease-in 4.2s forwards;
}

.gm-simple-cow-wrap img {
    position: relative;
    z-index: 4;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter:
        drop-shadow(0 34px 38px rgba(91, 16, 32, 0.30))
        drop-shadow(0 0 26px rgba(250, 204, 21, 0.34))
        saturate(1.14)
        contrast(1.05);
    transform-origin: center bottom;
    animation: gmSimpleCowLive 1.6s ease-in-out 2s infinite;
}

.gm-simple-cow-glow {
    position: absolute;
    inset: 8%;
    z-index: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(250, 204, 21, 0.46), transparent 62%),
        radial-gradient(circle, rgba(249, 115, 22, 0.22), transparent 74%);
    filter: blur(6px);
    animation: gmSimpleGlow 2.2s ease-in-out infinite;
}

.gm-simple-cow-shadow {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 2%;
    z-index: 0;
    height: 45px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(91, 16, 32, 0.28), transparent 68%);
    filter: blur(7px);
    transform: rotateX(66deg);
}

/* Skip button glass */
.gm-simple-skip-btn {
    position: fixed;
    top: 26px;
    right: 30px;
    z-index: 10005;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7f1d1d;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 14px 34px rgba(120, 53, 15, 0.15);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gm-simple-skip-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #9f1239, #f97316);
    transform: translateY(-2px);
}

/* Required animations */
@keyframes gmSimpleCowCome {
    0% {
        opacity: 0;
        transform: translate3d(-95vw, 100px, -700px) scale(0.26) rotateY(42deg);
    }
    45% {
        opacity: 1;
        transform: translate3d(-120px, 30px, -180px) scale(0.66) rotateY(18deg);
    }
    75% {
        opacity: 1;
        transform: translate3d(-50%, -8px, 90px) scale(1.08) rotateY(-7deg);
    }
    100% {
        opacity: 1;
        transform: translate3d(-50%, 0, 110px) scale(1) rotateY(0);
    }
}

@keyframes gmSimpleCowExit {
    0% {
        opacity: 1;
        transform: translate3d(-50%, 0, 110px) scale(1) rotateY(0);
    }
    100% {
        opacity: 0;
        transform: translate3d(90vw, 35px, -180px) scale(0.72) rotateY(-34deg);
    }
}

@keyframes gmSimpleCowLive {
    0%, 100% {
        transform: rotateZ(0deg) translateY(0);
    }
    35% {
        transform: rotateZ(-1.3deg) translateY(-5px);
    }
    70% {
        transform: rotateZ(1.1deg) translateY(-2px);
    }
}

@keyframes gmSimpleMessageIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(24px) scale(0.94);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes gmSimpleGlow {
    0%, 100% {
        transform: scale(0.96);
        opacity: 0.74;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes gmSimpleSun {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes gmSimpleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-14px) rotate(-3deg);
    }
}

@keyframes gmSpiritualParticles {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 95px 95px, 145px 145px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .gm-simple-cow-scene {
        width: 94vw;
        height: 86vh;
        border-radius: 30px;
    }

    .gm-simple-message {
        top: 72px;
        width: 88vw;
        padding: 22px 18px;
        border-radius: 26px;
    }

    .gm-simple-message h1 {
        font-size: 40px;
    }

    .gm-simple-message p {
        font-size: 25px;
    }

    .gm-simple-message small {
        font-size: 14px;
        padding: 0 8px;
    }

    .gm-simple-cow-wrap {
        bottom: 90px;
        width: min(335px, 82vw);
        height: min(335px, 82vw);
    }

    .gm-simple-sun {
        width: 76px;
        height: 76px;
        top: 64px;
        right: 24px;
    }

    .gm-simple-skip-btn {
        top: 18px;
        right: 16px;
        min-height: 38px;
        font-size: 12px;
    }
}


