/* style.css - Janmashtami Festival Web App Styling */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Great+Vibes&family=Outfit:wght@400;500;600;700;800&family=Rozha+One&display=swap');

:root {
  --bg-dark: #070e1f;
  --bg-gradient: radial-gradient(circle at 50% 20%, #152243 0%, #0c152b 50%, #060b17 100%);
  --gold-primary: #f5b82e;
  --gold-light: #ffe57f;
  --gold-dark: #b87b00;
  --gold-glow: 0 0 20px rgba(245, 184, 46, 0.45);
  --peacock-blue: #00cec9;
  --peacock-indigo: #0984e3;
  --krishna-blue: #4da3ff;
  --marigold-orange: #ff793f;
  --marigold-yellow: #ffb142;
  --lotus-pink: #ff6b8b;
  --butter-cream: #fffdf5;
  --card-bg: rgba(18, 30, 58, 0.65);
  --card-border: rgba(245, 184, 46, 0.25);
  --glass-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  --text-main: #f5f6fa;
  --text-muted: #a4b0be;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Falling Petals */
.ambient-petals-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.ambient-petal {
  position: absolute;
  top: -40px;
  opacity: 0.75;
  animation: fallPetal linear infinite;
}

@keyframes fallPetal {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 0.85;
  }
  50% {
    transform: translateY(50vh) rotate(180deg) translateX(30px) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translateY(105vh) rotate(360deg) translateX(-30px) scale(0.8);
    opacity: 0;
  }
}

/* App Shell */
.app-root {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 20px;
}

/* Festive Header Navbar */
.festive-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8px 14px;
  border-bottom: 1px solid rgba(245, 184, 46, 0.2);
  margin-bottom: 12px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-bell-btn {
  background: linear-gradient(135deg, #f5b82e, #b87b00);
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(245, 184, 46, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.quick-bell-btn:hover {
  transform: scale(1.1) rotate(-8deg);
  box-shadow: 0 0 16px rgba(255, 230, 100, 0.6);
}

.bell-glow-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: #ff4757;
  border-radius: 50%;
  box-shadow: 0 0 6px #ff4757;
}

.title-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Cinzel', serif;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff 0%, #ffeaa7 40%, #f5b82e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--gold-light);
  opacity: 0.85;
  letter-spacing: 0.5px;
}

.sound-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  color: var(--gold-light);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.sound-toggle-btn:hover {
  background: rgba(245, 184, 46, 0.18);
  border-color: var(--gold-primary);
}

.sound-muted {
  opacity: 0.6;
}

/* Nav Tabs */
.nav-tabs-wrapper {
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.nav-tabs {
  display: flex;
  gap: 8px;
  min-width: max-content;
  background: rgba(10, 18, 38, 0.7);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.nav-tab-btn:hover {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.05);
}

.tab-active {
  background: linear-gradient(135deg, rgba(245, 184, 46, 0.25), rgba(9, 132, 227, 0.25)) !important;
  color: #ffffff !important;
  border: 1px solid var(--gold-primary);
  box-shadow: 0 4px 15px rgba(245, 184, 46, 0.2);
}

.tab-icon {
  font-size: 1.2rem;
}

/* Main Viewport */
.main-content-viewport {
  flex: 1;
}

/* ==========================================================================
   1. JHULA UTSAV STYLES
   ========================================================================== */
.jhula-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 16px 12px 24px;
  box-shadow: var(--glass-glow);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.temple-arch {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
  z-index: 5;
}

.toran-garland {
  display: flex;
  gap: 8px;
  font-size: 1.3rem;
  opacity: 0.9;
}

.hanging-bell {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s;
}

.hanging-bell:hover {
  transform: scale(1.15) rotate(12deg);
}

.bell-chain {
  width: 2px;
  height: 25px;
  background: linear-gradient(to bottom, #d4af37, #f39c12);
}

.bell-body {
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 5px rgba(245, 184, 46, 0.5));
}

.jhula-stage {
  width: 100%;
  height: 380px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 10px;
}

.jhula-structure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.05s linear;
}

.jhula-chain {
  position: absolute;
  top: 0;
  width: 4px;
  height: 140px;
  background: linear-gradient(to bottom, #f5b82e 0%, #b87b00 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 8px rgba(245, 184, 46, 0.4);
}

.chain-left {
  left: 20px;
}

.chain-right {
  right: 20px;
}

.chain-flower {
  font-size: 1rem;
  margin-bottom: -6px;
}

.jhula-cradle {
  margin-top: 130px;
  width: 280px;
  background: linear-gradient(135deg, #4b1228 0%, #7d1d3f 50%, #2e0816 100%);
  border: 3px solid var(--gold-primary);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 184, 46, 0.3);
  position: relative;
}

.cradle-canopy {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.5px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(245, 184, 46, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cradle-bed {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 8px 0;
}

.velvet-cushion {
  width: 24px;
  height: 60px;
  background: #a41d48;
  border: 2px solid var(--gold-light);
  border-radius: 12px;
  position: absolute;
}

.cushion-left { left: 8px; }
.cushion-right { right: 8px; }

.krishna-avatar-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.krishna-svg {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.krishna-garland {
  font-size: 1.1rem;
  margin-top: -10px;
}

.cradle-base {
  margin-top: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 4px;
  text-align: center;
}

.base-petals {
  font-size: 1.2rem;
}

/* Aarti Diya Interactive */
.interactive-aarti-diya {
  position: absolute;
  pointer-events: none;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 150px;
}

.diya-glow {
  position: absolute;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(255, 150, 0, 0.6) 0%, rgba(255, 200, 0, 0) 70%);
  border-radius: 50%;
  animation: pulseDiya 0.8s infinite alternate;
}

.diya-flame {
  font-size: 2rem;
  z-index: 2;
  filter: drop-shadow(0 0 10px #ff9f1a);
}

.diya-plate {
  background: linear-gradient(135deg, #f5b82e, #b87b00);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--gold-light);
  font-size: 1.3rem;
  display: flex;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.aarti-instruction-pill {
  background: rgba(0, 0, 0, 0.75);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  margin-top: 6px;
  border: 1px solid var(--gold-dark);
}

.aarti-divine-halo {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, rgba(255, 165, 0, 0.15) 60%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.6);
  pointer-events: none;
  margin-top: 130px;
}

@keyframes pulseDiya {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* Floating offering particles */
.floating-offering-particle {
  position: absolute;
  font-size: 1.8rem;
  pointer-events: none;
  animation: floatOff 2.2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  z-index: 15;
}

@keyframes floatOff {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.6);
  }
  100% {
    opacity: 0;
    transform: translate(var(--vx), var(--vy)) rotate(var(--rot)) scale(1.4);
  }
}

/* Blessing Banner */
.blessing-banner {
  background: linear-gradient(135deg, rgba(245, 184, 46, 0.25), rgba(255, 107, 139, 0.25));
  border: 1px solid var(--gold-primary);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  margin: 10px 0 16px;
  animation: fadeInPop 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 184, 46, 0.2);
}

@keyframes fadeInPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Offerings Panel */
.offerings-panel {
  width: 100%;
  margin-top: 8px;
}

.offerings-title {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.offerings-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.offering-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px 10px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.offering-btn:hover {
  background: rgba(245, 184, 46, 0.15);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 184, 46, 0.2);
}

.btn-icon {
  font-size: 1.6rem;
}

.btn-label {
  font-weight: 700;
  font-size: 0.85rem;
}

.btn-sub {
  font-size: 0.72rem;
  color: var(--gold-light);
  opacity: 0.85;
}

.active-seva {
  background: linear-gradient(135deg, rgba(255, 150, 0, 0.35), rgba(245, 184, 46, 0.35)) !important;
  border-color: #ff9f1a !important;
  box-shadow: 0 0 15px rgba(255, 159, 26, 0.4);
}

.push-swing-btn {
  background: linear-gradient(135deg, rgba(9, 132, 227, 0.2), rgba(0, 206, 201, 0.2));
  border-color: var(--peacock-blue);
}

/* ==========================================================================
   2. MATKI PHOD (DAHI HANDI) STYLES
   ========================================================================== */
.matkiphod-container {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--glass-glow);
  backdrop-filter: blur(12px);
}

.game-stats-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.stat-badge {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 184, 46, 0.2);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #172b53 0%, #0d162d 80%);
  border: 2px solid rgba(245, 184, 46, 0.3);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
  user-select: none;
  touch-action: none;
}

.canvas-wrapper canvas {
  display: block;
  width: 100%;
  cursor: crosshair;
}

.drag-hint-pulse {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
  animation: pulseHint 1.5s infinite alternate;
}

@keyframes pulseHint {
  0% { transform: translateX(-50%) translateY(0); opacity: 0.8; }
  100% { transform: translateX(-50%) translateY(-6px); opacity: 1; }
}

.floating-shout {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: #ffe57f;
  text-shadow: 0 0 10px #f5b82e, 0 2px 4px #000;
  pointer-events: none;
  animation: shoutPop 1.2s forwards ease-out;
  z-index: 10;
  white-space: nowrap;
}

@keyframes shoutPop {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  25% { transform: translate(-50%, -60%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -90%) scale(1); opacity: 0; }
}

.butter-splatter {
  position: absolute;
  font-size: 3rem;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
  animation: splatFade 2s forwards;
  z-index: 8;
}

@keyframes splatFade {
  0% { opacity: 1; }
  70% { opacity: 0.8; }
  100% { opacity: 0; transform: scale(0.6); }
}

.game-over-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 21, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  animation: fadeInPop 0.3s ease;
}

.game-over-card {
  background: linear-gradient(135deg, #18274a, #0b1429);
  border: 2px solid var(--gold-primary);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.game-over-card h2 {
  font-family: 'Cinzel', serif;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.game-over-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.final-stats {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.final-stats strong {
  color: var(--gold-light);
}

.restart-btn {
  background: linear-gradient(135deg, #f5b82e, #b87b00);
  border: 1px solid var(--gold-light);
  color: #0b1429;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 184, 46, 0.4);
  transition: transform 0.2s;
}

.restart-btn:hover {
  transform: scale(1.05);
}

.matki-powerups-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 14px;
  border: 1px solid rgba(245, 184, 46, 0.15);
}

.powerups-label {
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 700;
}

.powerup-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s;
}

.powerup-btn:not(:disabled):hover {
  background: rgba(245, 184, 46, 0.2);
  border-color: var(--gold-primary);
}

.powerup-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.active-power {
  background: linear-gradient(135deg, rgba(245, 184, 46, 0.3), rgba(255, 159, 26, 0.3)) !important;
  border-color: var(--gold-primary) !important;
}

/* ==========================================================================
   3. BANSURI STUDIO STYLES
   ========================================================================== */
.bansuri-container {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--glass-glow);
  backdrop-filter: blur(12px);
}

.bansuri-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(245, 184, 46, 0.2);
}

.bansuri-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.bansuri-title-area h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold-light);
}

.bansuri-title-area p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tanpura-toggle-btn {
  background: rgba(245, 184, 46, 0.1);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
}

.tanpura-active {
  background: linear-gradient(135deg, #f5b82e, #b87b00);
  color: #0b1429;
  box-shadow: 0 0 18px rgba(245, 184, 46, 0.5);
}

.flute-stage {
  position: relative;
  padding: 40px 10px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.floating-flute-note {
  position: absolute;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 1.3rem;
  pointer-events: none;
  animation: noteFloat 1.4s forwards cubic-bezier(0.1, 0.8, 0.2, 1);
  z-index: 10;
}

@keyframes noteFloat {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  20% { transform: translateY(-20px) scale(1.2); opacity: 1; }
  100% { transform: translateY(-80px) scale(1); opacity: 0; }
}

.wooden-bansuri-body {
  width: 100%;
  max-width: 800px;
  height: 80px;
  background: linear-gradient(180deg, #d4a373 0%, #b07d50 40%, #85542a 100%);
  border: 3px solid #633917;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 2px 6px rgba(255, 255, 255, 0.3);
}

.flute-embouchure {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mor-pankh-tag {
  font-size: 2rem;
  margin-top: -24px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.blow-hole {
  width: 22px;
  height: 22px;
  background: #2b1406;
  border-radius: 50%;
  border: 2px solid #e09f67;
  box-shadow: inset 0 3px 6px #000;
}

.flute-golden-thread {
  width: 6px;
  height: 74px;
  background: repeating-linear-gradient(45deg, #ffd700, #ffd700 3px, #b87b00 3px, #b87b00 6px);
  border-radius: 2px;
}

.flute-holes-grid {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: center;
  padding: 0 10px;
}

.flute-finger-hole {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.flute-finger-hole:hover {
  transform: translateY(-4px) scale(1.1);
}

.hole-inner {
  width: 44px;
  height: 44px;
  background: #261205;
  border-radius: 50%;
  border: 3px solid #e09f67;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 3px 8px #000, 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.15s;
}

.hole-swara {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--gold-light);
}

.hole-key-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 8px;
}

.hole-active .hole-inner {
  background: radial-gradient(circle, #f5b82e 0%, #b87b00 100%);
  transform: scale(1.18);
  box-shadow: 0 0 20px #f5b82e;
}

.hole-active .hole-swara {
  color: #0b1429;
}

.practice-highlight .hole-inner {
  border-color: #00cec9;
  box-shadow: 0 0 16px #00cec9;
  animation: practicePulse 0.8s infinite alternate;
}

@keyframes practicePulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.flute-tail {
  display: flex;
  align-items: center;
  gap: 6px;
}

.silk-tassel {
  font-size: 1.6rem;
  margin-top: 15px;
}

.practice-target-banner {
  margin-top: 24px;
  background: rgba(0, 206, 201, 0.15);
  border: 1px solid var(--peacock-blue);
  padding: 8px 18px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.target-swara-badge {
  background: var(--peacock-blue);
  color: #06111f;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 1.1rem;
}

.practice-score-tag {
  margin-left: auto;
  font-weight: 800;
  color: var(--gold-light);
}

/* Song Library Section */
.song-library-section {
  margin-top: 20px;
}

.library-title {
  font-family: 'Cinzel', serif;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.songs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.song-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.song-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.song-card-header strong {
  font-size: 0.95rem;
  color: #ffffff;
}

.raag-tag {
  font-size: 0.72rem;
  background: rgba(245, 184, 46, 0.15);
  color: var(--gold-light);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(245, 184, 46, 0.3);
}

.song-notes-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 0;
}

.mini-note {
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--text-muted);
}

.mini-active {
  background: var(--gold-primary);
  color: #0b1429;
  font-weight: 800;
  transform: scale(1.15);
}

.song-action-buttons {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.song-play-btn, .song-practice-btn {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.song-play-btn {
  background: rgba(245, 184, 46, 0.2);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
}

.song-play-btn:hover:not(:disabled) {
  background: var(--gold-primary);
  color: #0b1429;
}

.song-practice-btn {
  background: rgba(0, 206, 201, 0.2);
  border: 1px solid var(--peacock-blue);
  color: #81ecec;
}

.song-practice-btn:hover {
  background: var(--peacock-blue);
  color: #0b1429;
}

/* ==========================================================================
   4. SHRINGAR & MATKI ART STUDIO
   ========================================================================== */
.shringar-container {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--glass-glow);
  backdrop-filter: blur(12px);
}

.shringar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(245, 184, 46, 0.2);
  margin-bottom: 16px;
}

.shringar-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shringar-icon {
  font-size: 2rem;
}

.shringar-title h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold-light);
}

.shringar-title p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.theme-selectors {
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.theme-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-active {
  background: var(--gold-primary);
  color: #0b1429;
  border-color: var(--gold-light);
}

.shringar-workspace-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}

.shringar-tools-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tool-section {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(245, 184, 46, 0.15);
  border-radius: 14px;
  padding: 12px;
}

.section-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.pot-styles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.pot-chip {
  padding: 8px 6px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s;
}

.pot-chip:hover {
  transform: scale(1.04);
}

.pot-chip-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px #000;
}

.chip-active {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}

.stickers-palette-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.sticker-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.15s;
}

.sticker-btn:hover {
  background: rgba(245, 184, 46, 0.2);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.stk-emoji {
  font-size: 1.4rem;
}

.stk-name {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.inscription-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--gold-light);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
  outline: none;
}

.inscription-input:focus {
  border-color: var(--gold-primary);
}

.adjust-buttons-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.adjust-buttons-row button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 6px;
  border-radius: 8px;
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 600;
}

.adjust-buttons-row button:hover {
  background: rgba(245, 184, 46, 0.2);
}

.clear-btn {
  background: rgba(235, 77, 75, 0.2);
  border: 1px solid #eb4d4b;
  color: #ff7675;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

/* Shringar Canvas Visual Area */
.shringar-canvas-wrapper {
  position: relative;
  min-height: 420px;
  border-radius: 20px;
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.7);
}

.bg-theme-yamuna {
  background: radial-gradient(circle at 50% 20%, #15294a 0%, #091325 70%, #030811 100%);
}

.bg-theme-vrindavan {
  background: radial-gradient(circle at 50% 30%, #14402a 0%, #092115 70%, #04110b 100%);
}

.bg-theme-sanctum {
  background: radial-gradient(circle at 50% 30%, #4a2815 0%, #281409 70%, #120703 100%);
}

.decorated-matki-stage {
  position: relative;
  width: 280px;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.matki-graphic-body {
  width: 200px;
  height: 230px;
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  border: 4px solid #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 25px rgba(0, 0, 0, 0.4);
}

.matki-butter-overflow {
  width: 120px;
  height: 36px;
  background: #ffffff;
  border-radius: 50%;
  margin-top: -18px;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.dripping-makhan {
  font-size: 0.65rem;
  font-weight: 800;
  color: #b87b00;
}

.matki-custom-inscription {
  margin-top: 50px;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #ffffff;
  text-shadow: 0 0 8px #000, 0 2px 4px #000;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.5);
}

.matki-waist-garland {
  position: absolute;
  bottom: 30px;
  font-size: 1.1rem;
}

.placed-sticker {
  position: absolute;
  cursor: grab;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placed-sticker:active {
  cursor: grabbing;
}

.sticker-emoji {
  font-size: 2.2rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.sticker-selected {
  outline: 2px dashed #00cec9;
  border-radius: 8px;
  background: rgba(0, 206, 201, 0.15);
}

.sticker-delete-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ff4757;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-instruction-tag {
  position: absolute;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--gold-light);
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 12px;
  pointer-events: none;
}

/* ==========================================================================
   5. GREETINGS & SHLOKAS STYLES
   ========================================================================== */
.greetings-container {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--glass-glow);
  backdrop-filter: blur(12px);
}

.greetings-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(245, 184, 46, 0.2);
  margin-bottom: 16px;
}

.greetings-icon {
  font-size: 2rem;
}

.greetings-header h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold-light);
}

.greetings-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.greetings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.shlokas-selector-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-sub-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--gold-light);
}

.shloka-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shloka-tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.shloka-tab-btn:hover {
  color: var(--gold-light);
}

.shloka-display-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 184, 46, 0.25);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sanskrit-text {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--gold-light);
  line-height: 1.5;
  font-weight: 700;
  white-space: pre-line;
}

.transliteration-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
}

.meaning-box {
  background: rgba(245, 184, 46, 0.08);
  border-left: 3px solid var(--gold-primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.shloka-source-tag {
  font-size: 0.75rem;
  color: var(--gold-light);
  font-weight: 700;
  text-align: right;
}

.card-inputs-form {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-group label, .theme-picker-row label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.input-group input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-main);
  padding: 8px 10px;
  font-size: 0.85rem;
  outline: none;
}

.input-group input:focus {
  border-color: var(--gold-primary);
}

.theme-options {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.theme-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  cursor: pointer;
}

.theme-btn.active {
  background: var(--gold-primary);
  color: #0b1429;
  font-weight: 700;
}

/* Festive Card Graphic Preview */
.greeting-card-preview-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.festive-greeting-card {
  width: 100%;
  max-width: 400px;
  min-height: 440px;
  border-radius: 20px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  border: 2px solid var(--gold-light);
}

.theme-royal-gold {
  background: linear-gradient(135deg, #2b1d06 0%, #4a340b 50%, #170d02 100%);
  border-color: #ffd700;
}

.theme-peacock-indigo {
  background: linear-gradient(135deg, #071e3d 0%, #0d3b66 50%, #041021 100%);
  border-color: #00cec9;
}

.theme-vrindavan-emerald {
  background: linear-gradient(135deg, #0d3320 0%, #155234 50%, #051a0f 100%);
  border-color: #2ecc71;
}

.card-corner {
  position: absolute;
  font-size: 1.2rem;
}

.corner-tl { top: 8px; left: 8px; }
.corner-tr { top: 8px; right: 8px; }
.corner-bl { bottom: 8px; left: 8px; }
.corner-br { bottom: 8px; right: 8px; }

.card-top-crest {
  font-size: 1.8rem;
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.card-recipient {
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  color: #ffffff;
  margin-top: 4px;
}

.card-blessing-body {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-main);
  margin: 12px 0;
  padding: 0 8px;
}

.card-shloka-quote {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(245, 184, 46, 0.4);
  border-radius: 10px;
  padding: 8px 12px;
  width: 100%;
}

.quote-verse {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
}

.quote-source {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 10px;
}

.card-sender {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.card-sender span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.card-sender strong {
  font-family: 'Great Vibes', cursive;
  font-size: 1.4rem;
  color: var(--gold-light);
}

.card-diya {
  font-size: 1.8rem;
}

.copy-card-btn {
  background: linear-gradient(135deg, #f5b82e, #b87b00);
  border: 1px solid var(--gold-light);
  color: #0b1429;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(245, 184, 46, 0.35);
  transition: transform 0.2s;
}

.copy-card-btn:hover {
  transform: scale(1.05);
}

/* Festive Footer */
.festive-footer {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 184, 46, 0.15);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--gold-light);
}

.footer-quote {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Responsive Mobile Layout */
@media (max-width: 768px) {
  .app-root {
    padding: 0 10px 16px;
  }
  .brand-title {
    font-size: 1.3rem;
  }
  .jhula-stage {
    height: 350px;
  }
  .jhula-cradle {
    width: 240px;
  }
  .shringar-workspace-grid {
    grid-template-columns: 1fr;
  }
  .greetings-grid {
    grid-template-columns: 1fr;
  }
  .wooden-bansuri-body {
    height: 70px;
    padding: 0 10px;
  }
  .hole-inner {
    width: 32px;
    height: 32px;
  }
  .flute-holes-grid {
    gap: 6px;
  }
  .game-stats-header {
    grid-template-columns: repeat(2, 1fr);
  }
}
