/* --- GLOBAL SETTINGS --- */
:root {
    --primary-orange: #d35400;
    --secondary-yellow: #ffcc00;
    --text-dark: #5a2d0c;
    --bg-gradient: radial-gradient(circle at center, #fffbd5 0%, #ffde9e 100%);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Mukta', sans-serif;
    background: var(--bg-gradient);
    height: 100dvh; /* Dynamic Height for Mobile */
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Top-Bottom spacing */
    overflow: hidden; /* No scrollbar */
    color: var(--text-dark);
}

/* --- MARQUEE (SCROLLING TEXT) --- */
.marquee-container {
    background: rgba(211, 84, 0, 0.1);
    color: var(--primary-orange);
    width: 100%;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex-shrink: 0; /* Don't shrink */
}

.marquee-content {
    display: inline-block;
    padding-left: 100%; /* Start from outside */
}

/* Top: Left to Right */
.marquee-top .marquee-content {
    animation: scrollLeftToRight 20s linear infinite;
}

/* Bottom: Right to Left */
.marquee-bottom .marquee-content {
    animation: scrollRightToLeft 20s linear infinite;
}

@keyframes scrollLeftToRight {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0%); } 
    /* Logic: Parent padding pushes it out, we translate back to view */
}

@keyframes scrollRightToLeft {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* --- MAIN CONTENT AREA --- */
.main-container {
    flex-grow: 1;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly; /* Even spacing for all elements */
    padding: 10px 0;
}

/* Maharaj Image - Responsive Size */
.guru-image-container {
    height: 12vh; /* Responsive height based on screen */
    width: 12vh;
    max-height: 140px;
    max-width: 140px;
    position: relative;
}

.guru-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-yellow);
    box-shadow: 0 5px 15px rgba(90, 45, 12, 0.2);
}

/* Main Title */
h1 {
    font-family: 'Rozha One', serif;
    font-size: clamp(2rem, 5vh, 3.5rem); /* Auto resize text */
    margin: 0;
    color: var(--primary-orange);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Stats Box */
.stats-box {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 248, 225, 0.5);
    padding: 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 204, 0, 0.3);
    width: 100%;
    box-shadow: inset 0 0 20px rgba(255, 204, 0, 0.1);
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-divider {
    width: 1px;
    background: rgba(211, 84, 0, 0.2);
    margin: 0 10px;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #8d6e63;
    font-weight: 700;
}

.stat-value {
    font-size: clamp(1.5rem, 4vh, 2.2rem);
    font-weight: 800;
    color: var(--primary-orange);
    font-family: 'Rozha One', serif;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* SMOOTH POP ANIMATION (Better than rolling) */
.pop-anim {
    transform: scale(1.3);
    color: #ff5722;
}

/* Button Wrapper */
.button-wrapper {
    position: relative;
    /* Responsive Button Size: Never too big, never too small */
    width: min(220px, 45vw);
    height: min(220px, 45vw);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main Jap Button */
#japButton {
    background: linear-gradient(135deg, #ff9933 0%, #ff6a00 100%);
    color: white;
    border: none;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    font-size: clamp(1.2rem, 3vh, 1.8rem);
    font-weight: bold;
    font-family: 'Rozha One', serif;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(211, 84, 0, 0.3), 
                inset 0 4px 20px rgba(255, 255, 255, 0.4);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    outline: none;
}

#japButton:active {
    transform: scale(0.95);
}

.om-symbol {
    font-size: 200%;
    margin-bottom: 5px;
}

/* Flying Text Logic */
.flying-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-orange);
    font-family: 'Rozha One', serif;
    font-size: 2rem;
    font-weight: bold;
    pointer-events: none;
    opacity: 0;
    text-shadow: 0 5px 15px rgba(255, 255, 255, 0.8);
    z-index: 5;
}

.fly-animate {
    animation: flySmooth 1s ease-out forwards;
}

@keyframes flySmooth {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    20% { opacity: 1; transform: translate(-50%, -100px) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -300px) scale(1.5); }
}