/*
 * V263 — day palette for the heroes archive and single hero pages.
 * Dark mode remains the original design. Only public hero pages are affected.
 */

/* ---------- shared day tokens ---------- */
html[data-ud-theme="day"] body.udgallu-heroes-archive,
html[data-ud-theme="day"] body.udgallu-single-hero{
  color-scheme:light;
  --ud-bg:#f3efe5;
  --ud-bg-soft:rgba(248,243,234,.94);
  --ud-panel:rgba(255,253,248,.91);
  --ud-panel-2:rgba(255,250,242,.78);
  --ud-text:#2b251e;
  --ud-muted:#756a5e;
  --ud-green:#d66f1f;
  --ud-gold:#b65c16;
  --ud-red:#a84432;
  --ud-border:rgba(151,98,47,.24);
  --ud-border-soft:rgba(76,55,35,.13);
  background:#f3efe5!important;
  color:#2b251e!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-page{
  background:
    radial-gradient(circle at 18% 14%,rgba(210,111,31,.09),transparent 29%),
    radial-gradient(circle at 83% 42%,rgba(54,91,38,.06),transparent 28%),
    linear-gradient(180deg,#f8f4eb 0%,#f3efe5 50%,#ece4d7 100%)!important;
  color:#2b251e!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive #udgallu-global-fireflies,
html[data-ud-theme="day"] body.udgallu-single-hero #udgallu-global-fireflies{
  opacity:.68!important;
  mix-blend-mode:multiply!important;
}

/* ---------- shared header ---------- */
html[data-ud-theme="day"] body.udgallu-heroes-archive header.ud-header,
html[data-ud-theme="day"] body.udgallu-single-hero header.ud-header{
  background:linear-gradient(180deg,rgba(18,17,15,.73),rgba(18,17,15,.48))!important;
  border-bottom-color:rgba(235,142,58,.42)!important;
  box-shadow:0 10px 30px rgba(31,24,17,.18),inset 0 1px 0 rgba(255,255,255,.08)!important;
  backdrop-filter:blur(16px) saturate(110%)!important;
  -webkit-backdrop-filter:blur(16px) saturate(110%)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-logo,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-logo,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-desktop-nav>a,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-desktop-nav>a,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-more-toggle,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-more-toggle,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-language-toggle,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-language-toggle,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-auth-link,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-auth-link,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-auth-register,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-auth-register{
  color:#f7f1e7!important;
  text-shadow:0 2px 8px rgba(0,0,0,.82)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-logo>span,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-logo>span{
  color:#f28a2d!important;
  text-shadow:0 2px 8px rgba(0,0,0,.72)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-desktop-nav>a:hover,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-desktop-nav>a:hover,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-desktop-nav>a.is-active,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-desktop-nav>a.is-active,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-more-toggle:hover,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-more-toggle:hover,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-language-toggle:hover,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-language-toggle:hover{
  color:#ff9638!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-desktop-nav>a.is-active::after,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-desktop-nav>a.is-active::after{
  background:linear-gradient(90deg,transparent,#ef8125,transparent)!important;
  box-shadow:0 0 15px rgba(239,129,37,.56)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-language-menu,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-language-menu,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-more-dropdown,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-more-dropdown,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-user-dropdown,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-user-dropdown{
  z-index:10120!important;
  background:#fffaf0!important;
  border-color:rgba(92,61,31,.32)!important;
  color:#241c15!important;
  box-shadow:0 22px 62px rgba(28,19,11,.26),inset 0 1px 0 rgba(255,255,255,.98)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-language-menu a,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-language-menu a,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-more-dropdown a,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-more-dropdown a,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-user-dropdown a,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-user-dropdown a{
  color:#241c15!important;
  background:transparent!important;
  border-color:rgba(92,61,31,.13)!important;
  text-shadow:none!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-language-menu a:hover,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-language-menu a:hover,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-more-dropdown a:hover,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-more-dropdown a:hover,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-header .ud-user-dropdown a:hover,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-header .ud-user-dropdown a:hover{
  color:#a9460b!important;
  background:rgba(216,121,36,.13)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-burger,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-burger{
  border-color:rgba(255,255,255,.30)!important;
  background:rgba(0,0,0,.16)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-burger span,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-burger span{background:#fff8ed!important}

/* ---------- theme switches ---------- */
body.udgallu-heroes-archive .ud-theme-switch,
body.udgallu-single-hero .ud-theme-switch{font:inherit;cursor:pointer}
body.udgallu-heroes-archive .ud-theme-switch-footer,
body.udgallu-single-hero .ud-theme-switch-footer{
  min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:7px 13px;border:1px solid rgba(145,173,104,.28);border-radius:999px;
  background:rgba(145,173,104,.07);color:#c9c1b3;
}
body.udgallu-heroes-archive .ud-user-dropdown .ud-theme-switch-menu,
body.udgallu-single-hero .ud-user-dropdown .ud-theme-switch-menu{
  width:100%;min-height:42px;display:flex;align-items:center;gap:10px;margin-top:5px;
  padding:10px 11px;border:0;border-top:1px solid rgba(145,173,104,.15);
  background:transparent;color:#e9e1d2;text-align:left;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-theme-switch-footer,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-theme-switch-footer{
  color:#34291f!important;border-color:rgba(134,83,36,.26)!important;background:rgba(255,255,255,.62)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-user-dropdown .ud-theme-switch-menu,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-user-dropdown .ud-theme-switch-menu{
  color:#241c15!important;border-top-color:rgba(92,61,31,.15)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-theme-switch:hover,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-theme-switch:hover{
  color:#a9460b!important;background:rgba(216,121,36,.11)!important;
}

/* ---------- heroes archive hero ---------- */
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-archive-hero{
  background-image:
    linear-gradient(90deg,rgba(20,15,10,.66) 0%,rgba(20,15,10,.28) 40%,rgba(20,15,10,.12) 100%),
    linear-gradient(180deg,rgba(20,15,10,.04) 0%,rgba(243,239,229,.06) 55%,#f3efe5 100%),
    var(--archive-bg)!important;
  background-size:cover!important;
  background-position:center!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-archive-hero::after{
  background:linear-gradient(180deg,transparent 0%,rgba(243,239,229,.05) 54%,#f3efe5 100%)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-archive-hero h1{
  color:#fff8ee!important;text-shadow:0 3px 18px rgba(0,0,0,.82)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-breadcrumbs,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-breadcrumbs a{
  color:rgba(255,248,237,.78)!important;text-shadow:0 2px 7px rgba(0,0,0,.72)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-archive-hero .ud-lead{
  color:#ff9a3d!important;text-shadow:0 2px 9px rgba(0,0,0,.72)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-archive-hero .ud-sublead{
  color:#fff8ed!important;text-shadow:0 2px 9px rgba(0,0,0,.78)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-title-line{
  background:linear-gradient(90deg,#f18a2e,transparent)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-title-line::before{background:#f18a2e!important}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-hero-person{
  filter:drop-shadow(0 24px 40px rgba(0,0,0,.42))!important;
}

/* ---------- heroes archive filters ---------- */
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-section{
  background:transparent!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-archive-filter-trigger{
  color:#a9480c!important;
  border-color:rgba(182,91,24,.30)!important;
  background:rgba(255,253,248,.66)!important;
  box-shadow:0 10px 28px rgba(71,49,27,.10)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-archive-filter-trigger:hover,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-archive-filter-trigger.is-active{
  color:#fff!important;background:#cf681b!important;border-color:#cf681b!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-filter-panel{
  color:#2f2821!important;
  border-color:rgba(124,82,41,.20)!important;
  background:rgba(255,253,248,.76)!important;
  box-shadow:0 18px 52px rgba(68,46,25,.12)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-filter-group{
  background:transparent!important;
  border-color:rgba(76,55,35,.13)!important;
  box-shadow:none!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-filter-title{color:#493d32!important}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-filter-btn,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-reset-btn{
  color:#706458!important;background:transparent!important;box-shadow:none!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-filter-icon{color:#bd570f!important}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-filter-btn:hover,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-filter-btn.is-active,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-reset-btn:hover{
  color:#a9460b!important;background:rgba(216,121,36,.10)!important;
}

/* ---------- heroes archive cards ---------- */
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-heroes-grid{color:#fff8ee!important}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-hero-card{
  border-color:rgba(119,79,42,.23)!important;
  box-shadow:0 18px 42px rgba(55,37,21,.18)!important;
  background-image:
    linear-gradient(180deg,rgba(0,0,0,.02) 18%,rgba(17,12,8,.84) 100%),
    var(--card-bg)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-hero-card::after{
  background:linear-gradient(180deg,rgba(0,0,0,0) 20%,rgba(18,12,8,.78) 100%)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-hero-card:hover{
  border-color:rgba(224,121,39,.62)!important;
  box-shadow:0 24px 56px rgba(54,35,18,.25),0 0 0 1px rgba(224,121,39,.14)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-hero-card h2{
  color:#fff8ee!important;text-shadow:0 2px 8px rgba(0,0,0,.82)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-hero-meta strong,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-hero-meta span,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-hero-quote{
  color:rgba(255,247,235,.83)!important;text-shadow:0 1px 5px rgba(0,0,0,.78)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-hero-meta strong,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-card-arrow{color:#ff9a3d!important}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-load-more{
  color:#a9480c!important;border-color:rgba(182,91,24,.28)!important;background:rgba(255,253,248,.70)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-load-more:hover{
  color:#fff!important;background:#cf681b!important;border-color:#cf681b!important;
}

/* ---------- single hero top ---------- */
html[data-ud-theme="day"] body.udgallu-single-hero .ud-hero{
  background-image:
    linear-gradient(90deg,rgba(20,15,10,.14),rgba(20,15,10,.26) 40%,rgba(20,15,10,.72)),
    linear-gradient(180deg,rgba(20,15,10,.04) 0%,rgba(243,239,229,.06) 55%,#f3efe5 100%),
    var(--hero-bg)!important;
  background-size:cover!important;
  background-position:center!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-hero::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,transparent 0%,rgba(243,239,229,.05) 55%,#f3efe5 100%)!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-hero-inner,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-hero-character{z-index:3!important}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-breadcrumbs,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-breadcrumbs a{
  color:rgba(255,248,237,.78)!important;text-shadow:0 2px 7px rgba(0,0,0,.72)!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-title{
  color:#fff8ee!important;text-shadow:0 3px 18px rgba(0,0,0,.82)!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-kicker{
  color:#ff9a3d!important;border-color:rgba(255,154,61,.55)!important;background:rgba(24,16,10,.34)!important;
  text-shadow:0 2px 7px rgba(0,0,0,.75)!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-quote{
  color:#ff9a3d!important;text-shadow:0 2px 8px rgba(0,0,0,.78)!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-lead{
  color:#fff8ed!important;text-shadow:0 2px 8px rgba(0,0,0,.80)!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-stats{
  border-top-color:rgba(255,255,255,.20)!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-stat{
  border-right-color:rgba(255,255,255,.16)!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-stat-icon{color:#ff9839!important;text-shadow:0 2px 8px rgba(0,0,0,.72)!important}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-stat small{color:rgba(255,248,237,.66)!important;text-shadow:0 1px 5px rgba(0,0,0,.76)!important}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-stat strong{color:#fff!important;text-shadow:0 2px 7px rgba(0,0,0,.86)!important}

/* ---------- single hero main panels ---------- */
html[data-ud-theme="day"] body.udgallu-single-hero .ud-main{color:#302820!important}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-panel,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-list-card,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-comment,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-comments-list .comment-body,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-comments-list li.comment{
  color:#302820!important;
  border-color:rgba(124,82,41,.20)!important;
  background:rgba(255,253,248,.82)!important;
  box-shadow:0 18px 52px rgba(68,46,25,.11)!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-overview{background:rgba(255,253,248,.86)!important}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-tabs{
  border-color:rgba(124,82,41,.16)!important;background:rgba(245,237,224,.78)!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-tabs label{color:#5f5448!important}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-tabs label:hover{color:#b9500d!important}
html[data-ud-theme="day"] body.udgallu-single-hero #tab-overview:checked~.ud-overview .ud-tabs label[for=tab-overview],
html[data-ud-theme="day"] body.udgallu-single-hero #tab-history:checked~.ud-overview .ud-tabs label[for=tab-history],
html[data-ud-theme="day"] body.udgallu-single-hero #tab-skills:checked~.ud-overview .ud-tabs label[for=tab-skills],
html[data-ud-theme="day"] body.udgallu-single-hero #tab-comments:checked~.ud-overview .ud-tabs label[for=tab-comments]{
  color:#fff!important;background:linear-gradient(90deg,#d66f1f,rgba(214,111,31,.30))!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-h2,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-gear-desc-card h3,
html[data-ud-theme="day"] body.udgallu-single-hero .comment-reply-title,
html[data-ud-theme="day"] body.udgallu-single-hero .comments-title{
  color:#3b3026!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-rule{background:rgba(76,55,35,.14)!important}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-text,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-list-card ul,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-comment p,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-gear-desc-card p,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-trait-card li,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-comments-list .comment-content,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-comments-list .comment-content p,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-comments-list p{
  color:#62574b!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-list-card h3,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-comment-head,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-comments-list .fn,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-comments-list .fn a,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-comments-list .comment-author,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-comments-list .comment-author a,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-comments-list .comment-reply-link,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-comments-list .reply a{
  color:#b9500d!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-comments-list .comment-meta,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-comments-list .comment-meta a,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-comments-list .comment-metadata,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-comments-list .comment-metadata a,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-comments-list .says,
html[data-ud-theme="day"] body.udgallu-single-hero .logged-in-as,
html[data-ud-theme="day"] body.udgallu-single-hero .logged-in-as a{
  color:#76695d!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-overview-media{
  border-color:rgba(124,82,41,.22)!important;background:#e9dfd1!important;
}

/* ---------- strengths, weaknesses and equipment ---------- */
html[data-ud-theme="day"] body.udgallu-single-hero .ud-trait-strengths{
  background:linear-gradient(135deg,rgba(255,253,248,.92),rgba(231,243,219,.80))!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-trait-weaknesses{
  background:linear-gradient(135deg,rgba(255,253,248,.92),rgba(247,226,218,.80))!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-trait-icon{color:#b9500d!important}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-trait-weaknesses .ud-trait-icon{color:#a84432!important}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-equipment-image-card,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-gear-desc-card{
  color:#302820!important;border-color:rgba(124,82,41,.20)!important;background:rgba(255,253,248,.84)!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-gear-image{
  border-color:rgba(124,82,41,.22)!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-quote-card{
  color:#a94a0c!important;
  border-color:rgba(182,91,24,.26)!important;
  background:linear-gradient(90deg,rgba(246,220,191,.72),rgba(255,250,242,.90))!important;
}

/* ---------- relation map ---------- */
html[data-ud-theme="day"] body.udgallu-single-hero .ud-relations-panel{
  color:#302820!important;background:rgba(255,253,248,.84)!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-relation-map{
  border-color:rgba(124,82,41,.18)!important;
  background:radial-gradient(circle at 50% 50%,rgba(216,121,36,.09),transparent 48%),rgba(248,242,232,.72)!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-relation-node strong,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-relation-center strong{color:#3c3025!important;text-shadow:0 1px 0 rgba(255,255,255,.75)!important}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-relation-node small,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-relation-center small,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-relation-legend{color:#716457!important}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-relation-avatar{
  box-shadow:0 10px 28px rgba(55,36,19,.18)!important;
}

/* ---------- gallery, forms, share ---------- */
html[data-ud-theme="day"] body.udgallu-single-hero .ud-gallery{
  background:rgba(255,253,248,.84)!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-gallery-link,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-gallery-img{
  border-color:rgba(124,82,41,.22)!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-bottom-back{color:#ad4c0c!important}
html[data-ud-theme="day"] body.udgallu-single-hero .comment-form label,
html[data-ud-theme="day"] body.udgallu-single-hero .comment-notes{color:#6d6155!important}
html[data-ud-theme="day"] body.udgallu-single-hero textarea,
html[data-ud-theme="day"] body.udgallu-single-hero input[type="text"],
html[data-ud-theme="day"] body.udgallu-single-hero input[type="email"],
html[data-ud-theme="day"] body.udgallu-single-hero input[type="url"]{
  color:#2d261f!important;border-color:rgba(124,82,41,.22)!important;background:#fffdf8!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero input[type="submit"],
html[data-ud-theme="day"] body.udgallu-single-hero .submit{
  color:#fff!important;border-color:#c85f0f!important;background:#c85f0f!important;
}
html[data-ud-theme="day"] body.udgallu-single-hero .ud-share-btn,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-share-toggle{
  color:#8e3e0b!important;border-color:rgba(182,91,24,.32)!important;
  background:radial-gradient(circle at 35% 25%,rgba(255,255,255,.92),rgba(244,226,205,.96))!important;
  box-shadow:0 12px 30px rgba(64,42,20,.18),inset 0 0 18px rgba(216,121,36,.06)!important;
}

/* Keep the image lightbox dark so illustrations retain their real colours. */
html[data-ud-theme="day"] body.udgallu-single-hero .ud-lightbox-overlay{
  background:rgba(1,5,4,.94)!important;color:#f2eadc!important;
}

/* ---------- shared footer ---------- */
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-footer,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-footer{
  color:#4f453a!important;border-top-color:rgba(99,70,41,.17)!important;background:rgba(237,229,216,.94)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-footer .ud-logo,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-footer .ud-logo{color:#352d25!important;text-shadow:none!important}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-footer .ud-logo span,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-footer .ud-logo span{color:#bd5913!important;text-shadow:none!important}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-footer p,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-footer p,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-footer-sources-bottom,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-footer-sources-bottom,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-copyright,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-copyright{color:#6d6256!important}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-footer-source b,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-footer-source b,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-footer-feedback b,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-footer-feedback b{color:#493d32!important}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-footer-feedback,
html[data-ud-theme="day"] body.udgallu-single-hero .ud-footer-feedback{
  border-color:rgba(124,82,41,.22)!important;background:rgba(255,255,255,.48)!important;
}

/* ---------- mobile day menu ---------- */
@media(max-width:900px){
  html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-mobile-menu,
  html[data-ud-theme="day"] body.udgallu-single-hero .ud-mobile-menu{
    background:radial-gradient(circle at 30% 0%,rgba(216,121,36,.10),transparent 38%),rgba(248,243,233,.987)!important;
    border-color:rgba(73,53,34,.20)!important;box-shadow:0 28px 80px rgba(42,30,18,.24)!important;color:#17130f!important;
  }
  html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-mobile-links a,
  html[data-ud-theme="day"] body.udgallu-single-hero .ud-mobile-links a{
    color:#17130f!important;border-bottom-color:rgba(73,53,34,.14)!important;
  }
  html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-mobile-links a:hover,
  html[data-ud-theme="day"] body.udgallu-single-hero .ud-mobile-links a:hover,
  html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-mobile-links a.is-active,
  html[data-ud-theme="day"] body.udgallu-single-hero .ud-mobile-links a.is-active{color:#c85f0f!important}
  html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-mobile-language-title,
  html[data-ud-theme="day"] body.udgallu-single-hero .ud-mobile-language-title,
  html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-mobile-more-title,
  html[data-ud-theme="day"] body.udgallu-single-hero .ud-mobile-more-title{color:#6f5b48!important}
  html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-mobile-language-list a,
  html[data-ud-theme="day"] body.udgallu-single-hero .ud-mobile-language-list a,
  html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-theme-switch-mobile,
  html[data-ud-theme="day"] body.udgallu-single-hero .ud-theme-switch-mobile{
    color:#17130f!important;border:1px solid rgba(124,77,37,.24)!important;background:rgba(255,255,255,.58)!important;
  }
  body.udgallu-heroes-archive .ud-theme-switch-mobile,
  body.udgallu-single-hero .ud-theme-switch-mobile{
    width:100%;min-height:44px;display:flex;align-items:center;justify-content:center;gap:9px;margin-top:18px;
    border:1px solid rgba(145,173,104,.26);border-radius:9px;background:rgba(145,173,104,.08);color:#e9e1d2;
  }
}

@media(max-width:700px){
  html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-archive-hero,
  html[data-ud-theme="day"] body.udgallu-single-hero .ud-hero{
    background-image:
      linear-gradient(180deg,rgba(20,15,10,.10) 0%,rgba(20,15,10,.24) 34%,rgba(243,239,229,.16) 62%,#f3efe5 100%),
      var(--archive-bg)!important;
  }
  html[data-ud-theme="day"] body.udgallu-single-hero .ud-hero{
    background-image:
      linear-gradient(180deg,rgba(20,15,10,.08) 0%,rgba(20,15,10,.24) 36%,rgba(243,239,229,.14) 64%,#f3efe5 100%),
      var(--hero-bg)!important;
  }
}

/* ==========================================================
   V263.1 — targeted day-theme corrections
   1) Hero archive filter uses the same single-layer treatment
      as the chapter archive (transparent wrapper/panel).
   2) Relation portraits show the source image without the dark
      gradient veil used by the original dark theme.
   ========================================================== */
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-panel-wrap{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-panel{
  border:0!important;
  border-top:1px solid rgba(91,63,38,.18)!important;
  background:transparent!important;
  box-shadow:none!important;
}

html[data-ud-theme="day"] body.udgallu-single-hero .ud-relation-avatar{
  background-color:#eee4d7!important;
  background-image:var(--node-img)!important;
  background-size:cover!important;
  background-position:center!important;
  background-blend-mode:normal!important;
  filter:none!important;
  opacity:1!important;
}


/* ==========================================================
   V263.2 — hero archive filters match chapter archive in day mode
   ========================================================== */
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-summary{
  color:#342b22!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-summary strong{
  color:#2d251e!important;
  text-shadow:none!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-summary small{
  color:#766957!important;
  text-shadow:none!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-summary-icon,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-summary-arrow{
  color:#c35f17!important;
}

html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-list{
  background:#fffaf1!important;
  border-color:rgba(110,72,37,.25)!important;
  box-shadow:0 22px 62px rgba(61,42,24,.22)!important;
  color:#62584d!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-btn{
  color:#62584d!important;
  background:transparent!important;
  text-shadow:none!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-btn:hover,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-btn.is-active{
  color:#a9470d!important;
  background:rgba(216,121,36,.11)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-icon{
  color:#bd570f!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-btn::after{
  border-color:rgba(143,164,94,.55)!important;
  background:rgba(255,255,255,.42)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-btn.is-active::after{
  color:#bd570f!important;
  background:#fff8ec!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-reset-btn{
  color:#b34f0e!important;
  background:transparent!important;
  border-color:rgba(126,79,35,.18)!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-reset-btn:hover{
  color:#8f3906!important;
  background:rgba(216,121,36,.09)!important;
}


/* ==========================================================
   V263.3 — all three hero filter cells use the same day palette
   The previous rule was not specific enough for affiliation/status
   because historical nth-of-type selectors overrode it.
   ========================================================== */
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(1),
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(2),
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(3){
  background:transparent!important;
  box-shadow:none!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(1) > .ud-filter-summary,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(2) > .ud-filter-summary,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(3) > .ud-filter-summary{
  background:transparent!important;
  color:#342b22!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(1) > .ud-filter-list,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(2) > .ud-filter-list,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(3) > .ud-filter-list,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(1).is-open > .ud-filter-list,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(2).is-open > .ud-filter-list,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(3).is-open > .ud-filter-list{
  background:#fffaf1!important;
  color:#62584d!important;
  border-color:rgba(110,72,37,.25)!important;
  box-shadow:0 22px 62px rgba(61,42,24,.22)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(1) > .ud-filter-list .ud-filter-btn,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(2) > .ud-filter-list .ud-filter-btn,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(3) > .ud-filter-list .ud-filter-btn{
  background:transparent!important;
  color:#62584d!important;
  text-shadow:none!important;
}
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(1) > .ud-filter-list .ud-filter-btn:hover,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(1) > .ud-filter-list .ud-filter-btn.is-active,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(2) > .ud-filter-list .ud-filter-btn:hover,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(2) > .ud-filter-list .ud-filter-btn.is-active,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(3) > .ud-filter-list .ud-filter-btn:hover,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-filter-group:nth-of-type(3) > .ud-filter-list .ud-filter-btn.is-active{
  background:rgba(216,121,36,.11)!important;
  color:#a9470d!important;
}

/* V263.4 — decorative archive hero PNGs without drop shadows. */
body.udgallu-heroes-archive .ud-page .ud-hero-characters .ud-hero-person,
html[data-ud-theme="day"] body.udgallu-heroes-archive .ud-page .ud-hero-characters .ud-hero-person{
  filter:none!important;
  -webkit-filter:none!important;
  box-shadow:none!important;
  text-shadow:none!important;
}
