/*
 * V261 — staged colour themes, stage 1.
 * The dark design remains untouched. The day palette currently applies only
 * to the public home page and its header. Other sections will be converted
 * in separate, smaller releases.
 */

/* Theme toggle — available on the home page in V261. */
body.udgallu-home-page .ud-theme-toggle{
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:inline-grid;
  place-items:center;
  position:relative;
  padding:0;
  border:1px solid rgba(145,173,104,.30);
  border-radius:50%;
  background:rgba(5,12,11,.24);
  color:#e6d9a2;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 0 18px rgba(145,173,104,.08);
  cursor:pointer;
  transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease;
}
body.udgallu-home-page .ud-theme-toggle:hover,
body.udgallu-home-page .ud-theme-toggle:focus-visible{
  color:#fff0ad;
  border-color:rgba(208,170,53,.68);
  background:rgba(208,170,53,.10);
  box-shadow:0 0 20px rgba(208,170,53,.16);
  transform:translateY(-1px);
}
body.udgallu-home-page .ud-theme-icon{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-family:Arial,sans-serif;
  font-size:19px;
  line-height:1;
  transition:opacity .2s ease,transform .25s ease;
}
body.udgallu-home-page .ud-theme-icon-day{opacity:1;transform:rotate(0deg) scale(1)}
body.udgallu-home-page .ud-theme-icon-night{opacity:0;transform:rotate(-40deg) scale(.65)}
html[data-ud-theme="day"] body.udgallu-home-page .ud-theme-icon-day{opacity:0;transform:rotate(45deg) scale(.65)}
html[data-ud-theme="day"] body.udgallu-home-page .ud-theme-icon-night{opacity:1;transform:rotate(0deg) scale(1)}

/* Day palette tokens. */
html[data-ud-theme="day"] body.udgallu-home-page,
html[data-ud-theme="day"] body.udgallu-home-test-page{
  color-scheme:light;
  --ud-bg:#f3efe5;
  --ud-bg-soft:rgba(249,246,238,.94);
  --ud-panel:rgba(255,253,248,.88);
  --ud-text:#2c261e;
  --ud-muted:#73695d;
  --ud-green:#d87924;
  --ud-gold:#b87222;
  --ud-border:rgba(183,130,68,.25);
  --ud-border-soft:rgba(80,61,39,.12);
  background:#f3efe5 !important;
  color:#2c261e !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-page,
html[data-ud-theme="day"] body.udgallu-home-test-page .ud-page,
html[data-ud-theme="day"] body.udgallu-home-page main,
html[data-ud-theme="day"] body.udgallu-home-test-page main{
  background:
    radial-gradient(circle at 50% 0%,rgba(224,151,74,.15),transparent 34%),
    linear-gradient(180deg,#f8f4ea 0%,#f2ede2 58%,#ebe3d5 100%) !important;
  color:#2c261e !important;
}
html[data-ud-theme="day"] body.udgallu-home-page #fireflies{
  opacity:.30 !important;
  mix-blend-mode:multiply !important;
}

/* Header and menus on the converted home page. */
html[data-ud-theme="day"] body.udgallu-home-page .ud-header,
html[data-ud-theme="day"] body.udgallu-home-page header.ud-header{
  background:rgba(253,250,243,.86) !important;
  border-bottom:1px solid rgba(126,91,48,.18) !important;
  box-shadow:0 12px 38px rgba(79,57,31,.12),inset 0 1px 0 rgba(255,255,255,.82) !important;
  backdrop-filter:blur(18px) saturate(112%) !important;
  -webkit-backdrop-filter:blur(18px) saturate(112%) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-header::before{
  background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(255,255,255,.24) 62%,rgba(255,255,255,0)) !important;
  opacity:.88 !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-header::after{
  background:linear-gradient(90deg,transparent,rgba(216,121,36,.50),transparent) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-logo,
html[data-ud-theme="day"] body.udgallu-home-page .ud-desktop-nav a,
html[data-ud-theme="day"] body.udgallu-home-page .ud-language-toggle,
html[data-ud-theme="day"] body.udgallu-home-page .ud-auth-link,
html[data-ud-theme="day"] body.udgallu-home-page .ud-auth-register{
  color:#30291f !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-logo span,
html[data-ud-theme="day"] body.udgallu-home-page .ud-desktop-nav a:hover,
html[data-ud-theme="day"] body.udgallu-home-page .ud-desktop-nav a.is-active,
html[data-ud-theme="day"] body.udgallu-home-page .ud-language-toggle:hover{
  color:#d87924 !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-desktop-nav a.is-active::after{
  background:linear-gradient(90deg,transparent,#d87924,transparent) !important;
  box-shadow:0 0 14px rgba(216,121,36,.32) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-theme-toggle{
  color:#9c581e;
  border-color:rgba(183,114,42,.32);
  background:rgba(255,255,255,.62);
  box-shadow:inset 0 1px 0 #fff,0 5px 18px rgba(87,58,28,.10);
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-theme-toggle:hover,
html[data-ud-theme="day"] body.udgallu-home-page .ud-theme-toggle:focus-visible{
  color:#6f3b14;
  border-color:rgba(216,121,36,.62);
  background:#fffaf1;
  box-shadow:0 7px 22px rgba(120,72,28,.14);
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-burger{
  border-color:rgba(123,91,54,.24) !important;
  background:rgba(255,255,255,.58) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-burger span{background:#332a20 !important}
html[data-ud-theme="day"] body.udgallu-home-page .ud-language-menu,
html[data-ud-theme="day"] body.udgallu-home-page .ud-more-dropdown,
html[data-ud-theme="day"] body.udgallu-home-page .ud-user-dropdown,
html[data-ud-theme="day"] body.udgallu-home-page .ud-mobile-menu,
html[data-ud-theme="day"] body.udgallu-home-page .ud-mobile-panel{
  background:rgba(255,252,245,.97) !important;
  border-color:rgba(126,91,48,.20) !important;
  box-shadow:0 22px 64px rgba(76,52,27,.18),inset 0 1px 0 rgba(255,255,255,.88) !important;
  color:#30291f !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-language-menu a,
html[data-ud-theme="day"] body.udgallu-home-page .ud-more-dropdown a,
html[data-ud-theme="day"] body.udgallu-home-page .ud-user-dropdown a,
html[data-ud-theme="day"] body.udgallu-home-page .ud-mobile-menu a{
  color:#30291f !important;
  background:rgba(255,255,255,.30) !important;
  border-color:rgba(126,91,48,.14) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-language-menu a:hover,
html[data-ud-theme="day"] body.udgallu-home-page .ud-more-dropdown a:hover,
html[data-ud-theme="day"] body.udgallu-home-page .ud-user-dropdown a:hover,
html[data-ud-theme="day"] body.udgallu-home-page .ud-mobile-menu a:hover,
html[data-ud-theme="day"] body.udgallu-home-page .ud-mobile-language-list a.is-active{
  color:#b96018 !important;
  background:rgba(216,121,36,.11) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-mobile-overlay{background:rgba(64,46,28,.30) !important}
html[data-ud-theme="day"] body.udgallu-home-page .ud-mobile-language-title,
html[data-ud-theme="day"] body.udgallu-home-page .ud-mobile-more-title{color:#7b6b5a !important}

/* Hero: retain the artwork, replace green/dark glazing with warm daylight. */
html[data-ud-theme="day"] body.udgallu-home-page .ud-home-hero{
  background-color:#e8dfcf !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-home-hero::before{
  background:
    radial-gradient(circle at 50% 38%,rgba(255,255,255,.20),rgba(247,241,230,.66) 70%),
    linear-gradient(180deg,rgba(244,237,224,.18),rgba(246,240,229,.92)) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-home-hero-video{background:#e8dfcf !important}
html[data-ud-theme="day"] body.udgallu-home-page .ud-home-hero h1{
  color:#29231c !important;
  text-shadow:0 2px 22px rgba(255,255,255,.88),0 1px 3px rgba(67,43,20,.20) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-hero-mark,
html[data-ud-theme="day"] body.udgallu-home-page .ud-hero-subtitle,
html[data-ud-theme="day"] body.udgallu-home-page .ud-section-kicker,
html[data-ud-theme="day"] body.udgallu-home-page .ud-chapter-kicker,
html[data-ud-theme="day"] body.udgallu-home-page .ud-heroes-kicker,
html[data-ud-theme="day"] body.udgallu-home-page .ud-kicker{
  color:#d87924 !important;
  text-shadow:none !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-home-hero p{
  color:#342c23 !important;
  text-shadow:0 1px 12px rgba(255,255,255,.82) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-btn{
  color:#352b21 !important;
  border-color:rgba(132,91,45,.28) !important;
  background:rgba(255,252,246,.66) !important;
  box-shadow:0 8px 26px rgba(87,58,28,.10) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-btn:hover{background:#fffaf1 !important;border-color:rgba(216,121,36,.48) !important}
html[data-ud-theme="day"] body.udgallu-home-page .ud-btn-primary{
  color:#fffaf3 !important;
  border-color:#c66c1e !important;
  background:linear-gradient(180deg,#e38a36,#c9691b) !important;
  box-shadow:0 10px 28px rgba(183,92,20,.22) !important;
}

/* Home update informer. */
html[data-ud-theme="day"] body.udgallu-home-page .ud-home-updates{
  border-color:rgba(109,77,43,.14) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-home-update{
  color:#3d3328 !important;
  border-color:rgba(109,77,43,.14) !important;
  background:rgba(255,253,248,.54) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-home-update-label{color:#8a6c4c !important;text-shadow:none !important}
html[data-ud-theme="day"] body.udgallu-home-page .ud-home-update-value{color:#30271e !important;text-shadow:none !important}
html[data-ud-theme="day"] body.udgallu-home-page .ud-home-updates-trigger{
  color:#bd641c !important;
  border-color:rgba(193,105,31,.28) !important;
  background:rgba(255,248,238,.70) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-home-updates-trigger:hover,
html[data-ud-theme="day"] body.udgallu-home-page .ud-home-updates-trigger.is-active{
  color:#8b420e !important;
  border-color:rgba(216,121,36,.50) !important;
  background:rgba(216,121,36,.12) !important;
}

/* Main glass panels. */
html[data-ud-theme="day"] body.udgallu-home-page .ud-section,
html[data-ud-theme="day"] body.udgallu-home-page .ud-section-compact,
html[data-ud-theme="day"] body.udgallu-home-page .ud-chapters-section,
html[data-ud-theme="day"] body.udgallu-home-page .ud-heroes-strip-section,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-section,
html[data-ud-theme="day"] body.udgallu-home-page .ud-journey-section{
  background:#f3efe5 !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-home-hero + .ud-section > .ud-wrap,
html[data-ud-theme="day"] body.udgallu-home-page .ud-chapters-panel,
html[data-ud-theme="day"] body.udgallu-home-page .ud-heroes-panel,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-panel{
  background:rgba(255,253,248,.79) !important;
  border-color:rgba(126,91,48,.16) !important;
  box-shadow:0 28px 78px rgba(83,58,31,.13),inset 0 1px 0 rgba(255,255,255,.90) !important;
  backdrop-filter:blur(18px) saturate(108%) !important;
  -webkit-backdrop-filter:blur(18px) saturate(108%) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-chapters-panel::before,
html[data-ud-theme="day"] body.udgallu-home-page .ud-chapters-panel::after,
html[data-ud-theme="day"] body.udgallu-home-page .ud-heroes-panel::before,
html[data-ud-theme="day"] body.udgallu-home-page .ud-heroes-panel::after,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-panel::before,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-panel::after{
  opacity:.38 !important;
  filter:sepia(.22) saturate(.8) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-chapter-info-card h2,
html[data-ud-theme="day"] body.udgallu-home-page .ud-heroes-info-card h2,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-headline h2,
html[data-ud-theme="day"] body.udgallu-home-page .ud-section-head h2,
html[data-ud-theme="day"] body.udgallu-home-page .ud-info-card h2,
html[data-ud-theme="day"] body.udgallu-home-page .ud-info-card h3{
  color:#30281f !important;
  text-shadow:none !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-chapter-info-card p,
html[data-ud-theme="day"] body.udgallu-home-page .ud-heroes-info-card p,
html[data-ud-theme="day"] body.udgallu-home-page .ud-info-card p,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-gallery-note p,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-mobile-note p{
  color:#716457 !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-chapter-latest,
html[data-ud-theme="day"] body.udgallu-home-page .ud-chapter-latest strong,
html[data-ud-theme="day"] body.udgallu-home-page .ud-heroes-link,
html[data-ud-theme="day"] body.udgallu-home-page .ud-panel-link,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-headline-link{
  color:#be651c !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-chapter-latest-icon,
html[data-ud-theme="day"] body.udgallu-home-page .ud-chapters-arrow,
html[data-ud-theme="day"] body.udgallu-home-page .ud-heroes-arrow{
  color:#a95718 !important;
  border-color:rgba(190,101,28,.34) !important;
  background:rgba(255,252,246,.68) !important;
  box-shadow:0 8px 24px rgba(92,58,25,.10),inset 0 1px 0 #fff !important;
}

/* Image cards: warm white glazing instead of the green/dark veil. */
html[data-ud-theme="day"] body.udgallu-home-page .ud-story-card,
html[data-ud-theme="day"] body.udgallu-home-page .ud-chapter-card,
html[data-ud-theme="day"] body.udgallu-home-page .ud-hero-strip-card,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-preview,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-slide-card,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-mobile-card{
  border-color:rgba(123,88,48,.22) !important;
  box-shadow:0 18px 42px rgba(72,49,25,.14) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-chapter-card{
  background-image:linear-gradient(180deg,rgba(255,255,255,.02) 18%,rgba(250,246,238,.90)),var(--card-image) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-story-card::before,
html[data-ud-theme="day"] body.udgallu-home-page .ud-chapter-card::before,
html[data-ud-theme="day"] body.udgallu-home-page .ud-hero-strip-card::before,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-preview::before,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-slide-card::before,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-mobile-card::before{
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(249,244,234,.88)) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-card-content h3,
html[data-ud-theme="day"] body.udgallu-home-page .ud-hero-strip-content h3,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-preview span,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-slide-card span,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-mobile-card span{
  color:#2f281f !important;
  text-shadow:0 1px 8px rgba(255,255,255,.82) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-card-content p,
html[data-ud-theme="day"] body.udgallu-home-page .ud-hero-strip-content p,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-preview em,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-mobile-card small{
  color:#b45e19 !important;
  text-shadow:none !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-card-tag,
html[data-ud-theme="day"] body.udgallu-home-page .ud-card-play{
  color:#8e4914 !important;
  border-color:rgba(185,95,23,.28) !important;
  background:rgba(255,251,244,.78) !important;
  box-shadow:0 5px 16px rgba(70,45,22,.10) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-card-play.has-audio{color:#b85f17 !important;border-color:rgba(216,121,36,.45) !important}

/* World sections and mobile captions. */
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-headline,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-mobile-title{
  border-color:rgba(110,78,43,.16) !important;
  color:#342b22 !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-headline span,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-mobile-icon,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-mobile-title span{
  color:#d87924 !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-gallery-note,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-mobile-note{
  background:rgba(255,252,246,.80) !important;
  border-color:rgba(126,91,48,.18) !important;
  color:#30281f !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-gallery-note strong,
html[data-ud-theme="day"] body.udgallu-home-page .ud-explore-mobile-note strong{color:#b85f17 !important}

/* Journey panel: keep its artwork, use a pale veil and orange accents. */
html[data-ud-theme="day"] body.udgallu-home-page .ud-journey-panel{
  background:#eee5d7 var(--journey-image) center center/cover no-repeat !important;
  box-shadow:0 28px 76px rgba(76,51,26,.15),inset 0 1px 0 rgba(255,255,255,.82) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-journey-panel::before{
  background:
    linear-gradient(90deg,rgba(249,245,236,.94),rgba(249,245,236,.72) 45%,rgba(249,245,236,.86)),
    linear-gradient(0deg,rgba(249,245,236,.94),rgba(249,245,236,.25) 54%,rgba(249,245,236,.45)) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-journey-main h2,
html[data-ud-theme="day"] body.udgallu-home-page .ud-journey-updates h3,
html[data-ud-theme="day"] body.udgallu-home-page .ud-journey-update strong{color:#30281f !important}
html[data-ud-theme="day"] body.udgallu-home-page .ud-journey-main p:not(.ud-section-kicker){color:#6f6255 !important}
html[data-ud-theme="day"] body.udgallu-home-page .ud-journey-button{
  color:#fffaf3 !important;
  border-color:#c96b1e !important;
  background:linear-gradient(180deg,#e38a36,#c9691b) !important;
  box-shadow:0 9px 24px rgba(183,92,20,.20) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-journey-update{
  color:#3b3127 !important;
  border-color:rgba(121,86,48,.18) !important;
  background:rgba(255,252,246,.68) !important;
  box-shadow:0 7px 20px rgba(76,51,26,.08) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-journey-update:hover{background:#fffaf2 !important}
html[data-ud-theme="day"] body.udgallu-home-page .ud-journey-update small{color:#bc641c !important}

/* Footer. */
html[data-ud-theme="day"] body.udgallu-home-page .ud-footer{
  background:#e9e0d2 !important;
  border-top-color:rgba(110,78,43,.16) !important;
  color:#716457 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-footer a,
html[data-ud-theme="day"] body.udgallu-home-page .ud-footer-nav a{color:#5d5043 !important}
html[data-ud-theme="day"] body.udgallu-home-page .ud-footer a:hover,
html[data-ud-theme="day"] body.udgallu-home-page .ud-footer-nav a:hover{color:#c7691d !important}
html[data-ud-theme="day"] body.udgallu-home-page .ud-footer .ud-logo,
html[data-ud-theme="day"] body.udgallu-home-page .ud-footer-logo,
html[data-ud-theme="day"] body.udgallu-home-page .ud-footer-title{color:#30281f !important}
html[data-ud-theme="day"] body.udgallu-home-page .ud-footer .ud-social-link,
html[data-ud-theme="day"] body.udgallu-home-page .ud-footer .ud-footer-social a,
html[data-ud-theme="day"] body.udgallu-home-page .ud-footer .ud-contact-link,
html[data-ud-theme="day"] body.udgallu-home-page .ud-footer .ud-feedback-link{
  color:#5d4f41 !important;
  background:rgba(255,252,246,.64) !important;
  border-color:rgba(110,78,43,.18) !important;
}

/* Home lightbox remains dark for accurate artwork viewing. */
html[data-ud-theme="day"] body.udgallu-home-page .ud-home-lightbox{
  background:rgba(28,22,17,.88) !important;
  color:#fff !important;
}

@media(max-width:900px){
  body.udgallu-home-page .ud-theme-toggle{width:38px;height:38px;flex-basis:38px}
  html[data-ud-theme="day"] body.udgallu-home-page .ud-header{background:rgba(253,250,243,.92) !important}
}
@media(max-width:560px){
  body.udgallu-home-page .ud-theme-toggle{width:36px;height:36px;flex-basis:36px}
  body.udgallu-home-page .ud-theme-icon{font-size:17px}
}
@media(prefers-reduced-motion:reduce){
  body.udgallu-home-page .ud-theme-toggle,
  body.udgallu-home-page .ud-theme-icon{transition:none !important}
}


/* V261.1 — theme switch placement: footer + final user-dropdown item. */
body.udgallu-home-page .ud-theme-switch{
  appearance:none;
  -webkit-appearance:none;
  font:inherit;
  cursor:pointer;
}
body.udgallu-home-page .ud-theme-switch-footer{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:34px;
  padding:7px 12px;
  border:1px solid rgba(145,173,104,.28);
  border-radius:999px;
  background:rgba(255,255,255,.035);
  color:rgba(236,232,220,.76);
  line-height:1;
  white-space:nowrap;
  transition:color .18s ease,border-color .18s ease,background .18s ease,transform .18s ease;
}
body.udgallu-home-page .ud-theme-switch-footer:hover,
body.udgallu-home-page .ud-theme-switch-footer:focus-visible{
  color:#f0dda0;
  border-color:rgba(208,170,53,.48);
  background:rgba(208,170,53,.08);
  transform:translateY(-1px);
}
body.udgallu-home-page .ud-theme-switch-icon{
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  font-family:Arial,sans-serif;
  font-size:18px;
  line-height:1;
}
body.udgallu-home-page .ud-user-dropdown .ud-theme-switch-menu{
  width:100%;
  display:flex;
  align-items:center;
  gap:9px;
  margin:6px 0 0;
  padding:10px 11px;
  border:0;
  border-top:1px solid rgba(255,255,255,.10);
  border-radius:0 0 7px 7px;
  background:transparent;
  color:var(--ud-text,#e9e1d2);
  text-align:left;
  text-decoration:none;
}
body.udgallu-home-page .ud-user-dropdown .ud-theme-switch-menu:hover,
body.udgallu-home-page .ud-user-dropdown .ud-theme-switch-menu:focus-visible{
  color:rgba(238,223,170,.98);
  background:rgba(255,255,255,.075);
  outline:none;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-theme-switch-footer{
  color:#7a451b;
  border-color:rgba(183,114,42,.30);
  background:rgba(255,255,255,.62);
  box-shadow:inset 0 1px 0 #fff,0 5px 16px rgba(87,58,28,.08);
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-theme-switch-footer:hover,
html[data-ud-theme="day"] body.udgallu-home-page .ud-theme-switch-footer:focus-visible{
  color:#9d4d12;
  border-color:rgba(216,121,36,.50);
  background:rgba(216,121,36,.10);
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-user-dropdown .ud-theme-switch-menu{
  color:#30291f;
  border-top-color:rgba(126,91,48,.15);
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-user-dropdown .ud-theme-switch-menu:hover,
html[data-ud-theme="day"] body.udgallu-home-page .ud-user-dropdown .ud-theme-switch-menu:focus-visible{
  color:#b96018;
  background:rgba(216,121,36,.11);
}
@media(max-width:700px){
  body.udgallu-home-page .ud-footer-sources-bottom{
    align-items:flex-start;
  }
  body.udgallu-home-page .ud-theme-switch-footer{
    align-self:flex-start;
  }
}

/* V261.3 — first daylight-theme visual corrections from live review. */

/* 1. Keep the site header genuinely glass/transparent in daylight.
 * Only its text and controls change to the dark daytime palette. */
html[data-ud-theme="day"] body.udgallu-home-page .ud-header,
html[data-ud-theme="day"] body.udgallu-home-page header.ud-header{
  background:rgba(255,255,255,.055) !important;
  border-bottom-color:rgba(45,35,25,.16) !important;
  box-shadow:0 8px 28px rgba(48,35,21,.055),inset 0 1px 0 rgba(255,255,255,.18) !important;
  backdrop-filter:blur(14px) saturate(108%) !important;
  -webkit-backdrop-filter:blur(14px) saturate(108%) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-header::before{
  background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.018) 58%,rgba(255,255,255,0)) !important;
  opacity:.55 !important;
}

/* 2 + 5. Do not wash out the opening artwork. Keep hero copy readable over it. */
html[data-ud-theme="day"] body.udgallu-home-page .ud-home-hero{
  background-color:#050b0a !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-home-hero::before{
  background:none !important;
  opacity:0 !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-home-hero-video{
  background:#050b0a !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-home-hero-inner h1,
html[data-ud-theme="day"] body.udgallu-home-page .ud-wrap.ud-home-hero-inner h1{
  color:#fff !important;
  text-shadow:0 2px 28px rgba(0,0,0,.88),0 1px 4px rgba(0,0,0,.72) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-home-hero-inner p,
html[data-ud-theme="day"] body.udgallu-home-page .ud-wrap.ud-home-hero-inner p{
  color:#fff !important;
  text-shadow:0 2px 16px rgba(0,0,0,.90),0 1px 4px rgba(0,0,0,.78) !important;
}

/* 3. The first chapters section fades from the artwork into the daylight page,
 * instead of placing a flat pale block over the lower part of the hero. */
html[data-ud-theme="day"] body.udgallu-home-page .ud-section.ud-chapters-section{
  background:linear-gradient(
    180deg,
    rgba(243,239,229,0) 0%,
    rgba(243,239,229,.18) 24%,
    rgba(243,239,229,.62) 56%,
    #f3efe5 88%,
    #f3efe5 100%
  ) !important;
}

/* 4. Bottom footer captions must remain visible on the pale footer. */
html[data-ud-theme="day"] body.udgallu-home-page .ud-footer-sources-bottom,
html[data-ud-theme="day"] body.udgallu-home-page .ud-footer-sources-bottom > span{
  color:#5d5043 !important;
  text-shadow:none !important;
}

/* 6. Keep the green/gold nanites visible against both the artwork and pale page. */
html[data-ud-theme="day"] body.udgallu-home-page #fireflies,
html[data-ud-theme="day"] body.udgallu-home-page .ud-test-fireflies{
  display:block !important;
  visibility:visible !important;
  opacity:.78 !important;
  mix-blend-mode:normal !important;
}

@media(max-width:900px){
  html[data-ud-theme="day"] body.udgallu-home-page .ud-header,
  html[data-ud-theme="day"] body.udgallu-home-page header.ud-header{
    background:rgba(255,255,255,.075) !important;
  }
}

/* V261.4 — daylight header, fireflies, mobile hero and mobile theme control. */

/* Day header keeps its glass, but every navigation label is truly black. */
html[data-ud-theme="day"] body.udgallu-home-page{
  --ud-text:#17130f;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-desktop-nav > a,
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-more-toggle,
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-language-toggle,
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-auth-link,
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-auth-register{
  color:#17130f !important;
  text-shadow:0 1px 1px rgba(255,255,255,.26) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-desktop-nav > a:hover,
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-desktop-nav > a.is-active,
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-more-toggle:hover,
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-more-menu.is-active .ud-more-toggle,
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-language-toggle:hover{
  color:#c85f0f !important;
}

/* The language popup is explicitly raised above the glass header and remains readable. */
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-language-menu{
  z-index:10120 !important;
  background:rgba(255,252,245,.97) !important;
  border-color:rgba(73,53,34,.24) !important;
  box-shadow:0 22px 62px rgba(42,30,18,.24),inset 0 1px 0 rgba(255,255,255,.92) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-language-menu a{
  color:#17130f !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-language-menu a:hover,
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-language-menu a.is-active{
  color:#a9460b !important;
  background:rgba(201,92,15,.12) !important;
}

/* Dark orange / dark green nanites stay visible over pale sections. */
html[data-ud-theme="day"] body.udgallu-home-page #fireflies,
html[data-ud-theme="day"] body.udgallu-home-page .ud-test-fireflies{
  opacity:.96 !important;
  mix-blend-mode:normal !important;
  filter:saturate(1.12) contrast(1.08) !important;
}

/* Mobile uses the poster image instead of video: merge that image into the day background. */
@media(max-width:900px){
  html[data-ud-theme="day"] body.udgallu-home-page .ud-home-hero::after{
    content:"" !important;
    position:absolute !important;
    inset:0 !important;
    z-index:1 !important;
    pointer-events:none !important;
    background:linear-gradient(
      0deg,
      #f3efe5 0%,
      rgba(243,239,229,.98) 8%,
      rgba(243,239,229,.82) 20%,
      rgba(243,239,229,.38) 36%,
      rgba(243,239,229,0) 56%
    ) !important;
  }
}

/* Theme control at the bottom of the mobile drawer. */
body.udgallu-home-page .ud-mobile-theme{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid rgba(233,225,210,.12);
}
body.udgallu-home-page .ud-theme-switch-mobile{
  width:100%;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  padding:10px 14px;
  border:1px solid rgba(145,173,104,.30);
  border-radius:10px;
  background:rgba(145,173,104,.08);
  color:#e9e1d2;
  font:inherit;
  text-align:left;
  cursor:pointer;
}
body.udgallu-home-page .ud-theme-switch-mobile:hover,
body.udgallu-home-page .ud-theme-switch-mobile:focus-visible{
  color:#f1d889;
  border-color:rgba(208,170,53,.52);
  background:rgba(208,170,53,.10);
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-mobile-theme{
  border-top-color:rgba(67,48,30,.16);
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-theme-switch-mobile{
  color:#17130f !important;
  border-color:rgba(124,77,37,.24) !important;
  background:rgba(255,255,255,.55) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page .ud-theme-switch-mobile:hover,
html[data-ud-theme="day"] body.udgallu-home-page .ud-theme-switch-mobile:focus-visible{
  color:#a9460b !important;
  border-color:rgba(201,92,15,.42) !important;
  background:rgba(201,92,15,.10) !important;
}


/* V261.5 — final daylight header contrast and language popup correction. */
html[data-ud-theme="day"] body.udgallu-home-page header.ud-header .ud-logo,
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-logo{
  color:#f5efe4 !important;
  text-shadow:0 2px 10px rgba(0,0,0,.78),0 1px 2px rgba(0,0,0,.92) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page header.ud-header .ud-logo > span,
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-logo > span{
  color:#ef8124 !important;
  text-shadow:0 2px 8px rgba(0,0,0,.72) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page header.ud-header nav.ud-desktop-nav > a,
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-desktop-nav > a,
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-more-toggle,
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-language-toggle,
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-auth-link,
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-auth-register{
  color:#f5efe4 !important;
  text-shadow:0 2px 8px rgba(0,0,0,.82),0 1px 2px rgba(0,0,0,.92) !important;
}
html[data-ud-theme="day"] body.udgallu-home-page header.ud-header nav.ud-desktop-nav > a:hover,
html[data-ud-theme="day"] body.udgallu-home-page header.ud-header nav.ud-desktop-nav > a.is-active,
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-more-toggle:hover,
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-language-toggle:hover{
  color:#ff922f !important;
}
html[data-ud-theme="day"] body.udgallu-home-page header.ud-header .ud-language .ud-language-menu,
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-language-menu{
  background:#fffaf0 !important;
  color:#241c15 !important;
  border-color:rgba(92,61,31,.34) !important;
  box-shadow:0 22px 62px rgba(28,19,11,.30),inset 0 1px 0 rgba(255,255,255,.98) !important;
  opacity:0;
}
html[data-ud-theme="day"] body.udgallu-home-page header.ud-header .ud-language:hover .ud-language-menu,
html[data-ud-theme="day"] body.udgallu-home-page header.ud-header .ud-language:focus-within .ud-language-menu,
html[data-ud-theme="day"] body.udgallu-home-page header.ud-header .ud-language.is-open .ud-language-menu{
  opacity:1 !important;
}
html[data-ud-theme="day"] body.udgallu-home-page header.ud-header .ud-language .ud-language-menu > a,
html[data-ud-theme="day"] body.udgallu-home-page .ud-header .ud-language-menu > a{
  color:#241c15 !important;
  background:transparent !important;
  text-shadow:none !important;
}
html[data-ud-theme="day"] body.udgallu-home-page header.ud-header .ud-language .ud-language-menu > a:hover,
html[data-ud-theme="day"] body.udgallu-home-page header.ud-header .ud-language .ud-language-menu > a.is-active{
  color:#a9460b !important;
  background:rgba(216,121,36,.13) !important;
}
