/* ==========================================================================
   Ashram Helper Adventure - Kid-Friendly Styling (Ages 5-10)
   Simple, playful, warm, and highly engaging visual design system
   ========================================================================== */

:root {
    --primary-orange: #ff781f;
    --primary-orange-hover: #fa5c00;
    --turmeric-gold: #ffbe1a;
    --gold-glow: rgba(255, 190, 26, 0.6);
    --sandstone-bg: #fffbf0;
    --wood-rudraksha: #8b3a12;
    --wood-rudraksha-light: #b45309;
    --water-blue: #38bdf8;
    --water-blue-deep: #0284c7;
    --water-blue-glow: rgba(56, 189, 248, 0.5);
    --marigold-pink: #f43f5e;
    
    --font-fun: 'Fredoka One', 'Nunito', cursive, sans-serif;
    --font-reading: 'Nunito', 'Outfit', sans-serif;
    
    --shadow-pop: 0 12px 28px rgba(74, 30, 4, 0.28);
    --shadow-btn: 0 8px 0 #c2410c, 0 15px 25px rgba(234, 88, 12, 0.4);
    --shadow-btn-pressed: 0 2px 0 #c2410c, 0 6px 12px rgba(234, 88, 12, 0.3);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #1a0f07;
    font-family: var(--font-reading);
    color: #431407;
}

#game-app {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #0f0804;
}

/* ==========================================================================
   Minimal Top Navigation Bar
   ========================================================================== */

#top-nav {
    position: relative;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    background: linear-gradient(180deg, rgba(38, 19, 7, 0.95) 0%, rgba(38, 19, 7, 0.8) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 3px solid var(--turmeric-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-height: 64px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.om-symbol {
    font-size: 2.2rem;
    color: var(--turmeric-gold);
    text-shadow: 0 0 12px var(--gold-glow);
    animation: omPulse 3s ease-in-out infinite alternate;
}

@keyframes omPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(255, 190, 26, 0.4)); }
    100% { transform: scale(1.08); filter: drop-shadow(0 0 12px rgba(255, 190, 26, 0.8)); }
}

.app-title {
    font-family: var(--font-fun);
    font-size: 1.5rem;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 3 Big Water Drops Indicator */
.visual-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 18px;
    border-radius: 9999px;
    border: 2px solid rgba(255, 190, 26, 0.4);
}

.progress-drop {
    font-size: 1.8rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.progress-drop.cleaned {
    transform: scale(1.25) rotate(15deg);
    filter: drop-shadow(0 0 12px #facc15);
}

.controls-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 190, 26, 0.5);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
    transform: scale(1.08);
    background: rgba(255, 190, 26, 0.3);
    border-color: var(--turmeric-gold);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn.active {
    background: var(--primary-orange);
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 120, 31, 0.7);
}

/* ==========================================================================
   Scene Viewport & Common Backgrounds
   ========================================================================== */

#scene-viewport {
    position: relative;
    flex: 1;
    width: 100%;
    height: calc(100vh - 64px);
    overflow: hidden;
}

.scene {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.scene-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 1;
}

.warm-sunlight-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 25%, rgba(255, 215, 0, 0.25) 0%, rgba(20, 10, 4, 0.65) 100%);
    pointer-events: none;
}

/* ==========================================================================
   Kid Modal & Cards (Popups for Screens 1, 2, 4)
   ========================================================================== */

.kid-modal {
    position: relative;
    z-index: 20;
    width: 90%;
    max-width: 520px;
    background: rgba(255, 253, 245, 0.96);
    border: 4px solid var(--turmeric-gold);
    border-radius: 36px;
    padding: 36px 32px;
    text-align: center;
    box-shadow: var(--shadow-pop), 0 0 50px rgba(255, 190, 26, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.animate-pop {
    animation: modalPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalPopIn {
    0% { transform: scale(0.7) translateY(40px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.guruji-avatar-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 6px solid var(--turmeric-gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    background: #ffedd5;
}

.guruji-kid-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-wave-hand, .avatar-namaste-badge {
    position: absolute;
    bottom: -6px;
    right: -8px;
    font-size: 2.2rem;
    background: #ffffff;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    animation: handWave 1.6s ease-in-out infinite alternate;
}

@keyframes handWave {
    0% { transform: rotate(-10deg) scale(1); }
    100% { transform: rotate(18deg) scale(1.15); }
}

.kid-title {
    font-family: var(--font-fun);
    font-size: 2.2rem;
    color: #7c2d12;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}

.kid-task-instruction {
    font-family: var(--font-fun);
    font-size: 1.6rem;
    color: var(--primary-orange);
    margin-top: -10px;
    letter-spacing: 0.5px;
}

/* Name Input Box */
.name-input-box {
    width: 100%;
    max-width: 380px;
}

.kid-text-input {
    width: 100%;
    padding: 16px 24px;
    border-radius: 9999px;
    border: 3px solid #fdba74;
    background: #ffffff;
    font-family: var(--font-fun);
    font-size: 1.5rem;
    color: #431407;
    text-align: center;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.08);
    outline: none;
    transition: all 0.25s ease;
}

.kid-text-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 5px rgba(255, 120, 31, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.kid-text-input::placeholder {
    color: #fca5a5;
    font-family: var(--font-reading);
    font-weight: 700;
}

/* Big Kid Friendly Button */
.kid-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    cursor: pointer;
    font-family: var(--font-fun);
    font-size: 1.7rem;
    color: #ffffff;
    border-radius: 9999px;
    padding: 18px 48px;
    text-decoration: none;
    transition: all 0.15s ease;
    user-select: none;
}

.primary-kid-btn {
    background: linear-gradient(180deg, #ff8c26 0%, #ea580c 100%);
    box-shadow: var(--shadow-btn);
    border: 2px solid #fed7aa;
}

.primary-kid-btn:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(180deg, #ffa043 0%, #f97316 100%);
}

.primary-kid-btn:active {
    transform: translateY(6px);
    box-shadow: var(--shadow-btn-pressed);
}

.pulse-glow {
    animation: btnPulse 2s infinite ease-in-out;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: var(--shadow-btn), 0 0 10px rgba(255, 120, 31, 0.4); }
    50% { box-shadow: var(--shadow-btn), 0 0 26px rgba(255, 120, 31, 0.8); }
}

/* ==========================================================================
   Screen 2 Visual Demonstration
   ========================================================================== */

.visual-demo-container {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
    margin: 8px 0;
}

.demo-card {
    flex: 1;
    background: #fff7ed;
    border: 2px solid #fed7aa;
    border-radius: 20px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.demo-icon-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 2rem;
}

.demo-anim-cloth {
    animation: wipeDemo 1.8s ease-in-out infinite;
}

@keyframes wipeDemo {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(12px, -6px) rotate(12deg); }
}

.demo-anim-bead {
    animation: beadDemo 1.8s ease-in-out infinite;
}

@keyframes beadDemo {
    0%, 100% { transform: scale(1); }
    50% { transform: translate(14px, 0) scale(1.2); }
}

.demo-anim-arrow {
    color: var(--primary-orange);
    font-weight: 900;
}

.demo-caption {
    font-family: var(--font-fun);
    font-size: 1.1rem;
    color: #9a3412;
}

/* ==========================================================================
   Screen 3: Gameplay Screen & Stage
   ========================================================================== */

#scene-gameplay {
    position: relative;
    width: 100%;
    height: 100%;
}

#water-canvas, #fx-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

#interactive-stage {
    position: absolute;
    inset: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Guruji Mascot Feedback Bubble (Top-Left) */
.guruji-mascot-card {
    position: absolute;
    top: 14px;
    left: 20px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.94);
    border: 3px solid var(--turmeric-gold);
    border-radius: 9999px;
    padding: 6px 18px 6px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.guruji-mascot-card.nod {
    animation: mascotHappy 0.6s ease;
}

@keyframes mascotHappy {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.1); }
}

.mascot-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--primary-orange);
    object-fit: cover;
}

.mascot-bubble {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-fun);
    font-size: 1.25rem;
    color: #7c2d12;
}

#mascot-emoji {
    font-size: 1.5rem;
}

/* ==========================================================================
   Task B: Sacred Japamala Garland (U/C Shaped Curve)
   ========================================================================== */

#mala-garland-container {
    position: absolute;
    top: 6%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 660px;
    height: 220px;
    z-index: 15;
    pointer-events: auto;
}

#garland-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.garland-guru-tassel {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.knot-symbol {
    font-size: 2.2rem;
    color: var(--turmeric-gold);
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.8), 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1;
}

.saffron-tassel {
    width: 12px;
    height: 38px;
    background: linear-gradient(180deg, #ea580c 0%, #f97316 60%, #facc15 100%);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-top: -2px;
}

#bead-slots-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Glowing Bead Slot Targets */
.bead-slot {
    position: absolute;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(254, 243, 199, 0.6) 70%, rgba(251, 191, 36, 0.4) 100%);
    border: 3.5px dashed #f59e0b;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6), inset 0 0 12px rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 16;
}

.slot-target-glow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(250, 204, 21, 0.7);
    filter: blur(4px);
    animation: slotPulse 1.8s ease-in-out infinite alternate;
}

@keyframes slotPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 1; }
}

.bead-slot.slot-hover-target {
    transform: translate(-50%, -50%) scale(1.22);
    border-color: #ffffff;
    border-style: solid;
    box-shadow: 0 0 32px #facc15, 0 0 15px #f97316;
    background: radial-gradient(circle, #fef08a 0%, #fde047 100%);
}

.bead-slot.filled {
    border-style: solid;
    border-color: #d97706;
    background: transparent;
    box-shadow: none;
}

.bead-slot.filled .slot-target-glow {
    display: none;
}

/* ==========================================================================
   Task A: Cleaning Cloth (Draggable & Tap Target)
   ========================================================================== */

#cleaning-cloth {
    position: absolute;
    bottom: 24px;
    left: 20%;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: grab;
    touch-action: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: clothFloat 2.6s ease-in-out infinite;
}

@keyframes clothFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

#cleaning-cloth:hover {
    transform: scale(1.12);
}

#cleaning-cloth.dragging {
    cursor: grabbing;
    animation: none;
    transform: scale(1.18);
    z-index: 100;
}

#cleaning-cloth.selected {
    transform: scale(1.2);
    animation: clothPulseSelect 1s infinite alternate;
}

@keyframes clothPulseSelect {
    0% { filter: drop-shadow(0 0 8px #facc15); }
    100% { filter: drop-shadow(0 0 20px #f97316); }
}

.cloth-graphic {
    position: relative;
    width: 84px;
    height: 74px;
    background: linear-gradient(135deg, #fef08a 0%, #facc15 50%, #eab308 100%);
    border-radius: 18px;
    border: 3.5px solid #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 2px 6px rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cloth-icon {
    font-size: 2.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.cloth-sheen {
    position: absolute;
    top: 6px;
    left: 10px;
    width: 28px;
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 9999px;
    transform: rotate(-15deg);
}

.cloth-callout {
    margin-top: 6px;
    font-family: var(--font-fun);
    font-size: 1.15rem;
    color: #ffffff;
    background: #ea580c;
    border: 2px solid #ffffff;
    padding: 3px 14px;
    border-radius: 9999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* Puddle Tap Target Zones */
#puddles-tap-zones {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.puddle-tap-zone {
    position: absolute;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    z-index: 12;
}

/* ==========================================================================
   7 Loose Prayer Beads (Realistic 3D Polished Wooden Rudraksha)
   ========================================================================== */

#loose-beads-container {
    position: absolute;
    inset: 0;
    pointer-events: auto;
}

.kid-prayer-bead {
    position: absolute;
    width: 58px;
    height: 58px;
    cursor: grab;
    touch-action: none;
    z-index: 25;
    transition: transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kid-prayer-bead:hover {
    transform: scale(1.15);
}

.kid-prayer-bead.dragging {
    cursor: grabbing;
    transform: scale(1.22);
    z-index: 100;
}

.kid-prayer-bead.selected {
    transform: scale(1.25);
    filter: drop-shadow(0 0 16px #facc15);
}

/* Realistic 3D Rudraksha Prayer Bead Sphere */
.bead-sphere {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #b45309 0%, #854d0e 30%, #78350f 65%, #451a03 100%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45), inset 0 2px 6px rgba(255, 215, 0, 0.5);
    border: 1.5px solid #d97706;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Carved natural grooves / ridges across rudraksha bead */
.bead-sphere::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border-left: 2px solid rgba(254, 240, 138, 0.3);
    border-right: 2px solid rgba(40, 15, 4, 0.6);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
}

.bead-sphere::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 8px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    top: 8px;
    left: 12px;
    transform: rotate(-30deg);
}

.bead-center-hole {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1c0a00;
    box-shadow: inset 0 0 3px #000000, 0 0 3px rgba(254, 215, 170, 0.4);
    z-index: 2;
}

.kid-prayer-bead.snapped {
    pointer-events: none;
    z-index: 18;
}

/* ==========================================================================
   Guide Hand & Completion Banner
   ========================================================================== */

#guide-hand {
    position: absolute;
    z-index: 90;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translate(-50%, -50%);
}

#guide-hand.hidden {
    display: none;
}

.hand-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
    animation: handTap 1.2s ease-in-out infinite;
}

@keyframes handTap {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(12px) scale(1.2); }
}

.hand-ring {
    position: absolute;
    bottom: -6px;
    left: 10px;
    width: 32px;
    height: 18px;
    border: 3px solid #facc15;
    border-radius: 50%;
    animation: handRipple 1.2s ease-out infinite;
}

@keyframes handRipple {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

#task-completed-banner {
    position: absolute;
    top: 36%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #facc15 0%, #ea580c 100%);
    border: 4px solid #ffffff;
    border-radius: 9999px;
    padding: 16px 42px;
    color: #ffffff;
    font-family: var(--font-fun);
    font-size: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
    z-index: 80;
    animation: bannerPop 2.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#task-completed-banner.hidden {
    display: none;
}

@keyframes bannerPop {
    0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
    20% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
    80% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.8) translateY(-40px); opacity: 0; }
}

/* ==========================================================================
   Screen 4: Final Celebration
   ========================================================================== */

#celebration-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.celebration-kid-modal {
    max-width: 540px;
    gap: 16px;
    padding: 38px 32px;
}

.celebration-guru-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 6px solid var(--turmeric-gold);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    background: #ffedd5;
}

.celebration-guru-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.celebration-garland-icon {
    position: absolute;
    bottom: -8px;
    right: -10px;
    font-size: 2.4rem;
    animation: garlandBounce 1.5s ease-in-out infinite alternate;
}

@keyframes garlandBounce {
    0% { transform: scale(1) rotate(-8deg); }
    100% { transform: scale(1.2) rotate(12deg); }
}

.kid-celebration-title {
    font-family: var(--font-fun);
    font-size: 2.5rem;
    color: #ea580c;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.9);
    line-height: 1.2;
}

.kid-celebration-subtitle {
    font-family: var(--font-fun);
    font-size: 1.8rem;
    color: #854d0e;
    margin-top: -6px;
}

.seva-badge-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    border: 3.5px solid #d97706;
    border-radius: 9999px;
    padding: 10px 28px;
    margin: 6px 0 10px;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
}

.seva-star-icon {
    font-size: 2.2rem;
    color: #eab308;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
    animation: starTwinkle 1.4s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.25) rotate(20deg); }
}

.seva-star-label {
    font-family: var(--font-fun);
    font-size: 1.5rem;
    color: #78350f;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Responsive Adaptations (Tablet & Mobile)
   ========================================================================== */

@media (max-width: 768px) {
    #top-nav {
        padding: 8px 14px;
        min-height: 56px;
    }

    .app-title {
        font-size: 1.2rem;
    }

    .visual-progress {
        padding: 4px 12px;
        gap: 10px;
    }

    .progress-drop {
        font-size: 1.4rem;
    }

    .kid-modal {
        padding: 24px 20px;
        border-radius: 28px;
        width: 92%;
    }

    .guruji-avatar-wrap {
        width: 100px;
        height: 100px;
    }

    .kid-title {
        font-size: 1.8rem;
    }

    .kid-btn {
        font-size: 1.4rem;
        padding: 14px 36px;
    }

    #mala-garland-container {
        width: 96%;
        height: 180px;
        top: 4%;
    }

    .bead-slot {
        width: 50px;
        height: 50px;
    }

    .kid-prayer-bead {
        width: 48px;
        height: 48px;
    }

    .bead-sphere {
        width: 44px;
        height: 44px;
    }

    .cloth-graphic {
        width: 70px;
        height: 60px;
    }

    .cloth-icon {
        font-size: 2.2rem;
    }

    .guruji-mascot-card {
        top: 8px;
        left: 10px;
        padding: 4px 12px 4px 6px;
    }

    .mascot-img {
        width: 40px;
        height: 40px;
    }

    .mascot-bubble {
        font-size: 1.05rem;
    }
}
