/* ==========================================================================
   उपेंद्र सिंह राठौड़ — ग्राम पंचायत रेडाणा
   Professional Campaign Design System (Mobile-First)
   ========================================================================== */

/* --- Fonts & CSS Variables --- */
:root {
  /* Authentic Rajasthani Heritage Palette */
  --color-maroon: #7B1113;        /* Deep Rajasthani Maroon */
  --color-maroon-dark: #5A0A0C;   /* Dark Maroon */
  --color-maroon-soft: #94171A;   /* Soft Maroon */
  --color-saffron: #C85000;       /* Traditional Kesariya Saffron */
  --color-saffron-soft: #E66A10;  /* Warm Saffron */
  --color-gold: #B8860B;          /* Heritage Gold */
  --color-gold-bg: #FCF6EC;       /* Subtle Warm Gold Tint */
  --color-green: #1B6636;         /* Forest / Agricultural Green */
  --color-whatsapp: #25D366;      /* WhatsApp Brand Green */
  --color-whatsapp-dark: #128C7E;
  
  /* Background & Surfaces */
  --color-bg-desktop: #EFECE6;    /* Desert Sand / Heritage Canvas */
  --color-bg-page: #FAF8F5;       /* Warm Natural Off-White */
  --color-card-bg: #FFFFFF;       /* Pure White for readability */
  --color-border: #E5DCD3;        /* Subtle divider tone */
  --color-border-warm: #D9CBC0;   /* Slightly deeper border */
  
  /* Text */
  --color-text-title: #1C1917;    /* High contrast deep charcoal */
  --color-text-body: #292524;     /* Crisp readable body */
  --color-text-muted: #57534E;    /* Secondary notes */
  --color-text-subtle: #78716C;   /* Fine print */

  /* Typography */
  --font-serif: 'Rozha One', 'Yatra One', 'Noto Sans Devanagari', serif;
  --font-sans: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Layout & Elevations */
  --max-width-mobile: 430px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  --shadow-subtle: 0 1px 4px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 3px 12px rgba(123, 17, 19, 0.07);
  --shadow-hover: 0 6px 20px rgba(123, 17, 19, 0.12);
  --shadow-wa: 0 4px 14px rgba(37, 211, 102, 0.35);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-bg-desktop);
  color: var(--color-text-body);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: var(--color-bg-desktop);
  background-image: radial-gradient(rgba(123, 17, 19, 0.035) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* --- Mobile-First Center Container --- */
.app-container {
  width: 100%;
  max-width: var(--max-width-mobile);
  min-height: 100vh;
  background-color: var(--color-bg-page);
  position: relative;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.08);
  border-left: 1px solid rgba(123, 17, 19, 0.08);
  border-right: 1px solid rgba(123, 17, 19, 0.08);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: calc(85px + var(--safe-bottom));
}

@media (min-width: 431px) {
  .app-container {
    margin: 16px 0 28px 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-warm);
  }
}

/* --- Minimalist Fast Loader --- */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--color-bg-page);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 24px;
}

#loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--color-maroon);
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: 0.3px;
}

.loader-sub {
  font-size: 0.95rem;
  color: var(--color-saffron);
  font-weight: 600;
  margin-bottom: 18px;
}

.loader-line-track {
  width: 140px;
  height: 3px;
  background: #EADBCE;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.loader-line-fill {
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-maroon), var(--color-saffron));
  border-radius: var(--radius-pill);
  animation: linePulse 1.2s infinite ease-in-out;
}

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

/* --- Header Section (Clean, NO Round Logo) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--color-border);
  padding: calc(10px + var(--safe-top)) 16px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-text-group {
  display: flex;
  flex-direction: column;
}

.header-candidate-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-maroon);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.header-village-tag {
  font-size: 0.8rem;
  color: var(--color-saffron);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.header-village-tag svg {
  flex-shrink: 0;
}

.header-date-badge {
  background: var(--color-maroon);
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Subtle Rajasthani Tricolor Divider */
.heritage-divider {
  height: 3px;
  background: linear-gradient(90deg, 
    var(--color-maroon) 0%, 
    var(--color-maroon) 40%, 
    var(--color-saffron) 40%, 
    var(--color-saffron) 75%, 
    var(--color-green) 75%, 
    var(--color-green) 100%
  );
  width: 100%;
}

/* --- Hero Section --- */
.hero-section {
  padding: 14px 14px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Full Authentic Poster Display (NO clipped text, NO artificial badges) */
.hero-poster-wrapper {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  background-color: #FAF5EE;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hero-intro-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-slogan-line {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-saffron);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-main-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.32;
  color: var(--color-maroon);
  font-weight: 700;
}

.hero-main-title span {
  color: var(--color-saffron);
}

.hero-bio {
  font-size: 0.95rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

.hero-bio strong {
  color: var(--color-maroon);
}

.hero-traditional-note {
  background: var(--color-gold-bg);
  border-left: 3px solid var(--color-saffron);
  padding: 10px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: #4B3B2B;
  line-height: 1.5;
  font-style: italic;
}

/* --- Action Buttons --- */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  border: none;
  font-family: var(--font-sans);
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #FFFFFF;
  box-shadow: var(--shadow-wa);
}

.btn-whatsapp:hover {
  background-color: #20BA5A;
}

.btn-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: #FFFFFF;
  flex-shrink: 0;
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--color-maroon);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
  background-color: var(--color-gold-bg);
  border-color: var(--color-saffron);
}

.btn-secondary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Section Formatting --- */
.section-block {
  padding: 20px 14px;
}

.section-head {
  text-align: center;
  margin-bottom: 16px;
}

.section-badge {
  display: inline-block;
  background: rgba(200, 80, 0, 0.08);
  color: var(--color-saffron);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  margin-bottom: 5px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-maroon);
  line-height: 1.28;
}

.section-subtext {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 4px;
  max-width: 360px;
  margin-inline: auto;
}

/* --- Village Vision Priority Cards --- */
.vision-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.priority-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.priority-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.priority-card.c-water::before { background: #2B7A78; }
.priority-card.c-road::before { background: var(--color-saffron); }
.priority-card.c-electric::before { background: #D9822B; }
.priority-card.c-welfare::before { background: var(--color-green); }

.priority-number {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-gold-bg);
  color: var(--color-maroon);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.priority-card-content {
  flex: 1;
}

.priority-tag-line {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-saffron);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.priority-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-maroon);
  line-height: 1.35;
  margin-bottom: 4px;
}

.priority-desc {
  font-size: 0.88rem;
  color: var(--color-text-body);
  line-height: 1.5;
}

/* Grounded Quote Strip */
.village-quote-banner {
  background: linear-gradient(135deg, var(--color-maroon), var(--color-maroon-dark));
  color: #FFFFFF;
  padding: 22px 18px;
  text-align: center;
  border-radius: var(--radius-md);
  margin: 12px 14px;
  box-shadow: var(--shadow-card);
}

.village-quote-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.45;
  color: #FFF2E0;
  margin-bottom: 8px;
}

.village-quote-sub {
  font-size: 0.88rem;
  color: #E2D7CC;
  line-height: 1.5;
}

.village-quote-name {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #F8D8A0;
  font-weight: 600;
}

/* --- Reels Campaign Posters Feed --- */
.reels-vertical-feed {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feed-poster-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.feed-card-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  background: #FCFBF9;
}

.feed-author-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-maroon);
  line-height: 1.2;
}

.feed-author-sub {
  font-size: 0.72rem;
  color: var(--color-saffron);
}

.feed-pill {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--color-gold-bg);
  color: #5A3E26;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}

.feed-img-holder {
  width: 100%;
  position: relative;
  background: #FAF7F2;
  cursor: pointer;
}

.feed-img {
  width: 100%;
  height: auto;
  display: block;
}

.feed-card-footer {
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.feed-caption {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-title);
  line-height: 1.4;
}

.feed-button-row {
  display: flex;
  gap: 8px;
}

.btn-feed-share {
  flex: 1;
  background: #EEF8F1;
  color: var(--color-whatsapp-dark);
  border: 1px solid rgba(37, 211, 102, 0.35);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.btn-feed-share:hover {
  background: var(--color-whatsapp);
  color: #FFFFFF;
}

.btn-feed-share svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn-feed-expand {
  background: var(--color-bg-page);
  color: var(--color-maroon);
  border: 1px solid var(--color-border);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

/* --- Candidate Message Appeal Card --- */
.appeal-box {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.appeal-box-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-maroon);
  text-align: center;
}

.appeal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.appeal-item {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-body);
}

.appeal-bullet {
  color: var(--color-saffron);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

/* --- WhatsApp Share Central Section --- */
.whatsapp-central-box {
  background: var(--color-card-bg);
  border: 1.5px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.central-head-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-maroon);
}

.central-subtext {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.message-preview-container {
  background: #FDFBF8;
  border: 1px dashed var(--color-border-warm);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: left;
}

.preview-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.preview-top-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-saffron);
  text-transform: uppercase;
}

.btn-cycle-message {
  background: none;
  border: none;
  color: var(--color-maroon);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}

.btn-cycle-message:hover {
  text-decoration: underline;
}

.preview-message-body {
  font-size: 0.88rem;
  color: var(--color-text-body);
  line-height: 1.55;
}

/* Support Pledge Banner */
.support-pledge-banner {
  background: var(--color-gold-bg);
  border: 1px solid #E4D5C5;
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-pledge-text {
  font-size: 0.9rem;
  color: #4A3A28;
  font-weight: 600;
}

.btn-pledge-support {
  background: var(--color-maroon);
  color: #FFFFFF;
  width: 100%;
  box-shadow: 0 3px 10px rgba(123, 17, 19, 0.25);
}

.btn-pledge-support:hover {
  background: var(--color-maroon-dark);
}

/* --- Clean Footer --- */
.site-footer {
  background: #201915;
  color: #D6CBC4;
  padding: 26px 16px 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #FFF2DF;
}

.footer-lineage {
  font-size: 0.86rem;
  color: #F8D8A0;
}

.footer-location {
  font-size: 0.82rem;
  color: #A89D94;
}

.footer-election-pill {
  display: inline-block;
  margin: 6px auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: #FFFFFF;
}

.footer-bottom-disclaimer {
  font-size: 0.72rem;
  color: #786E65;
  line-height: 1.45;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  margin-top: 6px;
}

/* --- Floating Bottom Bar Controls --- */
.floating-bar {
  position: fixed;
  bottom: calc(12px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: calc(var(--max-width-mobile) - 24px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.floating-bar > * {
  pointer-events: auto;
}

/* Subtle Music Pill */
.music-pill {
  background: rgba(32, 25, 21, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 5px 10px 5px 5px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.music-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-saffron);
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.music-toggle-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.music-meta {
  display: flex;
  flex-direction: column;
}

.music-title-text {
  font-size: 0.68rem;
  color: #D6CBC4;
  line-height: 1.1;
  white-space: nowrap;
}

.music-status-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: #F8D8A0;
  line-height: 1.2;
}

/* Floating WhatsApp Button */
.floating-wa-btn {
  background-color: var(--color-whatsapp);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 9px 16px 9px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.floating-wa-btn:active {
  transform: scale(0.96);
}

.floating-wa-btn svg {
  width: 20px;
  height: 20px;
  fill: #FFFFFF;
  flex-shrink: 0;
}

/* Autoplay notification banner */
.autoplay-tip {
  position: fixed;
  bottom: calc(72px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(32, 25, 21, 0.96);
  color: #FFF2DF;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 998;
  border: 1px solid var(--color-gold);
  cursor: pointer;
}

.autoplay-tip.hidden {
  display: none;
}

/* --- Lightbox Modal --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-inner {
  position: relative;
  max-width: 430px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-caption-text {
  color: #FFF2DF;
  font-size: 0.88rem;
  margin-top: 8px;
  text-align: center;
}

.lightbox-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Floating "Vote & Support" Flying Watermark Overlay --- */
.flying-watermark-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
  user-select: none;
}

.flying-bird-watermark {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(123, 17, 19, 0.15); /* Light translucent watermark */
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
  pointer-events: none;
  will-change: transform;
}

.flying-bird-watermark .bird-svg {
  width: 32px;
  height: 20px;
  fill: currentColor;
  transform-origin: center center;
  animation: birdWingBeat 1.2s infinite ease-in-out alternate;
  flex-shrink: 0;
}

@keyframes birdWingBeat {
  0% {
    transform: scaleY(1) rotate(0deg);
  }
  50% {
    transform: scaleY(0.68) translateY(2px) rotate(-3deg);
  }
  100% {
    transform: scaleY(1.08) translateY(-2px) rotate(2deg);
  }
}

/* 4 Staggered Flight Paths across the page */
.flying-bird-watermark.bird-1 {
  animation: birdFlightPath1 22s linear infinite;
  animation-delay: -4s;
}

.flying-bird-watermark.bird-2 {
  font-size: 0.78rem;
  color: rgba(200, 80, 0, 0.14);
  animation: birdFlightPath2 28s linear infinite;
  animation-delay: -14s;
}

.flying-bird-watermark.bird-3 {
  font-size: 0.85rem;
  color: rgba(123, 17, 19, 0.16);
  animation: birdFlightPath3 25s linear infinite;
  animation-delay: -9s;
}

.flying-bird-watermark.bird-4 {
  font-size: 0.78rem;
  color: rgba(200, 80, 0, 0.15);
  animation: birdFlightPath4 30s linear infinite;
  animation-delay: -21s;
}

@keyframes birdFlightPath1 {
  0% {
    transform: translate(-220px, 12vh) rotate(4deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  25% {
    transform: translate(26vw, 8vh) rotate(-2deg);
  }
  50% {
    transform: translate(54vw, 15vh) rotate(3deg);
  }
  75% {
    transform: translate(82vw, 10vh) rotate(-1deg);
  }
  95% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(100vw + 220px), 13vh) rotate(3deg);
    opacity: 0;
  }
}

@keyframes birdFlightPath2 {
  0% {
    transform: translate(-220px, 38vh) rotate(-3deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  30% {
    transform: translate(32vw, 44vh) rotate(2deg);
  }
  60% {
    transform: translate(66vw, 36vh) rotate(-2deg);
  }
  95% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(100vw + 220px), 41vh) rotate(1deg);
    opacity: 0;
  }
}

@keyframes birdFlightPath3 {
  0% {
    transform: translate(-220px, 64vh) rotate(3deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  35% {
    transform: translate(38vw, 58vh) rotate(-3deg);
  }
  70% {
    transform: translate(72vw, 67vh) rotate(2deg);
  }
  95% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(100vw + 220px), 62vh) rotate(-1deg);
    opacity: 0;
  }
}

@keyframes birdFlightPath4 {
  0% {
    transform: translate(-220px, 84vh) rotate(-2deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  40% {
    transform: translate(46vw, 90vh) rotate(3deg);
  }
  75% {
    transform: translate(80vw, 82vh) rotate(-2deg);
  }
  95% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(100vw + 220px), 86vh) rotate(1deg);
    opacity: 0;
  }
}

/* --- Accessibility & Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .flying-watermark-overlay {
    display: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

