/* The light palette has its own daylight scene and painted silver/ivory controls. */
html[data-uo-theme='light']{--uo-scene-image:url('/static/uo-light-background.webp');--uo-frame-image:url('/static/uo-light-frame.webp');--uo-button-image:url('/static/uo-light-button.webp')}
html[data-uo-theme='light'] body{background-color:#dce7ef;background-image:linear-gradient(#e7edf318,#e3eaf160),var(--uo-scene-image)}
html[data-uo-theme='light'] body::before{background:linear-gradient(#f7f4ed05,#edf0f333)}
html[data-uo-theme='light'] .uo-chronicle-hero{background-image:linear-gradient(90deg,#f4f3edf0 2%,#e8eef1ce 43%,#e4edf244 73%),var(--uo-scene-image);border-color:#9f9b86;box-shadow:0 6px 17px #31485a26}
html[data-uo-theme='light'] .uo-chronicle-hero .pt{color:#3e382b!important;text-shadow:0 1px #fff9}
html[data-uo-theme='light'] .uo-chronicle-hero .hn-heading{color:#384b58;text-shadow:0 1px #fff9}
html[data-uo-theme='light'] .uo-chronicle-hero .hn-heading>span{color:#4b5e6a!important}
html[data-uo-theme='light'] .uo-hero-intro{color:#334957}
html[data-uo-theme='light'] .uo-chronicle-hero::after,html[data-uo-theme='light'] .uo-portal-nav::before,html[data-uo-theme='light'] .uo-side-panel::before{border-image-source:var(--uo-frame-image);border-image-slice:220}
html[data-uo-theme='light'] .uo-hero-actions button::before{background-image:var(--uo-button-image);filter:none!important;inset:-2px -5px}
html[data-uo-theme='light'] .uo-hero-actions button{color:#334756!important;text-shadow:0 1px #fff8;padding-left:27px;padding-right:27px}
html[data-uo-theme='light'] .uo-hero-actions button:hover::before{filter:brightness(1.06)!important}
html[data-uo-theme='light'] .uo-hero-actions button:active::before{filter:brightness(.93)!important}
html[data-uo-theme='light'] #crm :is(.fb,.lbtn,#tb-play,#tb-signin,#news-add-btn){color:#334452!important;border:1px solid #9fa995;box-shadow:inset 0 1px #fff,0 2px 4px #20374725;background:linear-gradient(#f7f6ed,#e0e6e8);text-shadow:none}
html[data-uo-theme='light'] #crm :is(#tb-play,#tb-signin,#news-add-btn){border:0;background:var(--uo-button-image) center/100% 100% no-repeat;box-shadow:none;padding-left:25px!important;padding-right:25px!important;min-height:44px!important}
html[data-uo-theme='light'] #crm #tab-forum .fp-btn:is(.uo-action-edit,.uo-action-delete,.uo-action-ban)::after{background-image:var(--uo-button-image);filter:none!important;inset:-1px -4px}
html[data-uo-theme='light'] #crm #tab-forum .fp-btn.uo-action-edit{color:#2e4352!important}
html[data-uo-theme='light'] #crm #tab-forum .fp-btn.uo-action-delete{color:#8d2821!important}
html[data-uo-theme='light'] #crm #tab-forum .fp-btn.uo-action-ban{color:#744009!important}
html[data-uo-theme='light'] #crm #tab-forum :is(.fb[onclick^='forumBack'],.fb[onclick='forumCloseEditor()'],.fb[onclick='forumSearch()']){background:linear-gradient(#f5f5ee,#dce5e9)!important;color:#304756!important}
@media(max-width:600px){html[data-uo-theme='light'] .uo-chronicle-hero{background-position:44% center;background-image:linear-gradient(90deg,#f5f3efed,#e2eaf2b8 85%),var(--uo-scene-image)}html[data-uo-theme='light'] .uo-hero-actions button{padding-left:22px;padding-right:22px}html[data-uo-theme='light'] #tb-signin{min-height:40px!important;padding-left:22px!important;padding-right:22px!important}}
@media(forced-colors:active){html[data-uo-theme='light'] .uo-hero-actions button,html[data-uo-theme='light'] #crm :is(#tb-play,#tb-signin,#news-add-btn){background:ButtonFace;border:1px solid ButtonText;color:ButtonText!important}html[data-uo-theme='light'] .uo-hero-actions button::before{content:none}}

@media(forced-colors:active){html[data-uo-theme='light'] #crm #tab-forum .fp-btn:is(.uo-action-edit,.uo-action-delete,.uo-action-ban){color:ButtonText!important;background:ButtonFace!important}}
/* Existing header buttons declare important backgrounds; replace the image at the same cascade level. */
html[data-uo-theme='light'] #crm :is(#tb-play,#tb-signin,#news-add-btn){background:var(--uo-button-image) center/100% 100% no-repeat!important;border:0!important;box-shadow:none!important}
html[data-uo-theme='light'] #cookie-bar{background:#f1f4f3f7;border-color:#a2b2bd;color:#354b5b;box-shadow:0 -6px 22px #263e5124}
html[data-uo-theme='light'] #cookie-bar a{color:#225778!important;text-decoration:underline}
html[data-uo-theme='light'] #cookie-bar button{color:#344756;background:var(--uo-button-image) center/100% 100% no-repeat;border:0;min-height:40px;padding:8px 24px}
/* The existing full game feed and its header popup share the light palette too. */
html[data-uo-theme='light'] :is(#tab-events,#evm-ov) [style*='color:#94a3b8']{color:#415b6d!important}
html[data-uo-theme='light'] :is(#tab-events,#evm-ov) [style*='color:#c9a44a']{color:#6c511d!important}
html[data-uo-theme='light'] :is(#tab-events,#evm-ov) :is(.plr-link,.coord-link){color:#215879!important;text-decoration:underline;text-underline-offset:2px}
html[data-uo-theme='light'] #evm-ov>div{background:#f0f4f4!important;border-color:#8ea6b7!important;color:#344c5c}
html[data-uo-theme='light'] #evm-q{background:#fffef9!important;color:#294455!important;border-color:#8a9eac!important}
html[data-uo-theme='light'] #evm-q::placeholder{color:#5a7180}
html[data-uo-theme='light'] :is(#evt-pager,#evm-pager) button{background:#f4f6f2!important;color:#354f62!important;border-color:#94a8b7!important}
html[data-uo-theme='light'] #evm-x{color:#344c5c!important;border-color:#8ca3b4!important;background:#e3eaed!important}
html[data-uo-theme='light'] :is(#evt-list,#evm-list)>div{border-bottom-color:#aabac54d!important}
html[data-uo-theme='light'] #wiki-mob-btn{color:#334756!important;background:#eef2ee!important;border:1px solid #8e9fac!important;box-shadow:0 2px 7px #243c4d30}
