* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #f5c76b;
    --gold-light: #ffe8a8;
    --gold-dark: #9a6417;
    --cream: #fff8e7;
    --dark: #090602;
    --brown: #2b1608;
}

body {
    min-height: 100vh;
    font-family: "Poppins", sans-serif;
    background: #090602;
    color: var(--cream);
}

.page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(173, 103, 18, 0.18),
            transparent 32%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(104, 52, 7, 0.3),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #080401 0%,
            #170b03 50%,
            #080401 100%
        );
}

/* Decorative background */
.page::before {
    content: "";
    position: absolute;
    inset: 25px;
    border: 1px solid rgba(245, 199, 107, 0.15);
    pointer-events: none;
}

.page::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(245, 199, 107, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.glow-one {
    width: 250px;
    height: 250px;
    background: rgba(255, 166, 0, 0.08);
    top: 5%;
    left: 10%;
}

.glow-two {
    width: 300px;
    height: 300px;
    background: rgba(255, 120, 0, 0.06);
    bottom: 5%;
    right: 8%;
}

/* Main content */
.content {
    position: relative;
    z-index: 2;
    width: min(92%, 720px);
    min-height: 90vh;
    padding: 55px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Logo */
.logo-mark {
    width: 58px;
    height: 58px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 22px;
    box-shadow:
        0 0 20px rgba(245, 199, 107, 0.12),
        inset 0 0 15px rgba(245, 199, 107, 0.08);
}

.eyebrow {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 5px;
    font-weight: 600;
    margin-bottom: 12px;
}

h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(52px, 10vw, 86px);
    line-height: 0.82;
    font-weight: 600;
    color: var(--cream);
}

h1 span {
    color: var(--gold);
}

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 230px;
    margin: 28px 0 15px;
}

.divider span {
    height: 1px;
    flex: 1;
    background: linear-gradient(
        to right,
        transparent,
        rgba(245, 199, 107, 0.7)
    );
}

.divider span:last-child {
    background: linear-gradient(
        to left,
        transparent,
        rgba(245, 199, 107, 0.7)
    );
}

.diya {
    color: var(--gold);
    font-size: 17px;
}

.occasion {
    color: var(--gold-light);
    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
    font-weight: 600;
}

.message {
    max-width: 480px;
    margin: 12px auto 0;
    color: rgba(255, 248, 231, 0.62);
    font-size: 13px;
    line-height: 1.8;
}

/* Lamp */
.vilakku-area {
    position: relative;
    height: 180px;
    width: 160px;
    margin: 20px 0 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.lamp {
    position: relative;
    width: 115px;
    height: 110px;
    margin-bottom: 8px;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.7));
}

.lamp-top {
    position: absolute;
    left: 25px;
    top: 5px;
    width: 65px;
    height: 15px;
    background: linear-gradient(
        90deg,
        #9a6417,
        #ffd978,
        #9a6417
    );
    border-radius: 50%;
}

.lamp-body {
    position: absolute;
    left: 37px;
    top: 15px;
    width: 42px;
    height: 55px;
    background: linear-gradient(
        90deg,
        #7e4c10,
        #f6c75e 45%,
        #9b6315
    );
    border-radius: 8px 8px 30px 30px;
}

.lamp-base {
    position: absolute;
    bottom: 0;
    left: 12px;
    width: 92px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(
        90deg,
        #70420d,
        #f2c257,
        #8b5710
    );
}

/* Flame */
.flame {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 27px;
    height: 45px;
    opacity: 0.35;
    transition: all 0.7s ease;
}

.flame::before {
    content: "";
    position: absolute;
    width: 25px;
    height: 40px;
    left: 1px;
    top: 5px;
    border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
    background: #ff9d00;
    transform: rotate(45deg);
    box-shadow:
        0 0 15px #ff9d00,
        0 0 35px #ff6500;
}

.flame span {
    position: absolute;
    z-index: 2;
    width: 11px;
    height: 22px;
    background: #fff8c9;
    border-radius: 50%;
    left: 8px;
    top: 17px;
}

.flame.lit {
    opacity: 1;
    transform: translateX(-50%) scale(1.18);
    animation: flicker 0.7s infinite alternate;
}

@keyframes flicker {
    from {
        transform: translateX(-50%) scale(1.12) rotate(-2deg);
    }

    to {
        transform: translateX(-50%) scale(1.2) rotate(2deg);
    }
}

/* Button */
.instruction {
    color: rgba(255, 248, 231, 0.58);
    font-size: 12px;
    line-height: 1.7;
    margin-top: -5px;
}

.instruction strong {
    color: var(--gold-light);
}

.grand-button {
    position: relative;
    margin-top: 20px;
    padding: 18px 30px;
    min-width: 310px;
    border: 1px solid rgba(255, 226, 151, 0.75);
    border-radius: 5px;
    background:
        linear-gradient(
            135deg,
            #7d480b,
            #c48924 45%,
            #8a510c
        );
    color: #fff8df;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow:
        0 0 0 4px rgba(245, 199, 107, 0.05),
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(245, 160, 30, 0.18);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.grand-button::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(255, 239, 184, 0.25);
    border-radius: 3px;
    pointer-events: none;
}

.grand-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 0 5px rgba(245, 199, 107, 0.07),
        0 12px 40px rgba(0, 0, 0, 0.6),
        0 0 35px rgba(245, 160, 30, 0.3);
}

.grand-button:active {
    transform: translateY(1px) scale(0.98);
}

.button-icon {
    color: #ffe8a8;
    margin: 0 9px;
}

.status {
    margin-top: 14px;
    color: rgba(255, 248, 231, 0.4);
    font-size: 10px;
    transition: all 0.4s ease;
}

.status.active {
    color: var(--gold-light);
}

/* Sparkles */
.sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffe9a6;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffc400;
    animation: sparkle 1.5s ease-out forwards;
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: scale(0) translate(0, 0);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(1.5) translate(
            var(--x),
            var(--y)
        );
    }
}

/* Footer */
footer {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    color: rgba(245, 199, 107, 0.35);
    font-size: 8px;
    letter-spacing: 2px;
}

footer i {
    color: rgba(245, 199, 107, 0.5);
}

/* Mobile */
@media (max-width: 600px) {
    .content {
        padding: 40px 18px 65px;
    }

    .page::before {
        inset: 12px;
    }

    h1 {
        font-size: 56px;
    }

    .message {
        font-size: 12px;
    }

    .grand-button {
        min-width: 280px;
        padding: 17px 20px;
        font-size: 12px;
    }

    footer {
        flex-direction: column;
        gap: 4px;
    }

    footer i {
        display: none;
    }
}
