/* Shared public/cabinet polish. Decorative external-link arrows are removed;
   paging, sliders, maps and back-to-top controls retain their navigation cues. */
html.loading-site .section-link::after{content:none}
html.loading-site :is(.poster-arrow,.lucide-arrow-up-right,.icon-arrow-up-right){display:none}
html.loading-site :is(.poster-button,.poster-text-link){justify-content:center}
html.loading-site .poster-feature{grid-template-columns:30px minmax(0,1fr)}
@media(max-width:991px){html.loading-site .poster-feature{grid-template-columns:minmax(0,1fr)}}
@media(max-width:640px){html.loading-site .poster-feature{grid-template-columns:25px minmax(0,1fr)}}

/* One light palette for text on paper surfaces. Illustrated scenes below keep
   their own dark surfaces and bright ink instead of inheriting paper colors. */
html.loading-site[data-ui-light]{color-scheme:light;scrollbar-color:#60716e #e8dcc1}
html.loading-site[data-ui-light] body.loading-site{--bg:#e8dcc1;--bg-raised:#fff8e9;--surface:#f9efda;--text:#1b343b;--muted:#43595b;--gold:#704714;--gold-bright:#54340f;--line:#19343b55;--line-soft:#19343b2e;--world-panel:#f9efda;background:#e8dcc1;color:#1b343b}
html.loading-site[data-ui-light][data-wellyssar-loading="illustrated"]{--bg-primary:#e8dcc1!important;--bg-secondary:#eee1c8!important;--bg-card:#f9efda!important;--bg-sidebar:#eee1c8!important;--input-bg:#fff8e9!important;--bg-hover:#deceb0!important;--text-primary:#1b343b!important;--text-secondary:#43595b!important;--text-muted:#4b605e!important;--accent:#704714!important;--accent-hover:#54340f!important;--accent-rgb:112,71,20;--border:#19343b55!important;--cabinet-sidebar-bg:#eee1c8!important;--cabinet-header-bg:#eee1c8!important;--cabinet-sidebar-link-color:#29464b!important;--editable-block-shell-bg:#f9efda!important}
html.loading-site[data-ui-light] body.loading-site :is(input,select,textarea){color:var(--text);caret-color:var(--text)}
html.loading-site[data-ui-light] body.loading-site :is(input,textarea)::placeholder{color:#526562;opacity:1}
html.loading-site[data-ui-light] body.loading-site :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),select,textarea){background:var(--bg-raised)}
html.loading-site[data-ui-light] body.loading-site :is(.guide-search-input input,.database-search input){background:transparent}
html.loading-site[data-ui-light] body.loading-site :is(.guide-section,.guide-end,.quest-body,.recipe-details,.item-details,.project-doc-content,.help-panel,.download-panel){color:var(--text)}
html.loading-site[data-ui-light] body.loading-site :is(.guide-section,.guide-end,.quest-body,.recipe-details,.item-details,.project-doc-content,.help-panel,.download-panel) :is(p,li,small,label){color:var(--muted)}
html.loading-site[data-ui-light] body.loading-site :is(.guide-section,.guide-end,.quest-body,.project-doc-content,.help-panel,.download-panel) :is(h2,h3,h4,strong,summary){color:var(--text)}
html.loading-site[data-ui-light] body.loading-site :is(.guide-toc,.guide-sidebar-links,.guide-breadcrumbs,.database-status,.quest-card,.profession-card,.item-database-card,.recipe-material,.craft-tree,.quest-overview){color:var(--text)}
html.loading-site[data-ui-light] body.loading-site :is(.guide-toc,.guide-sidebar-links,.guide-breadcrumbs,.database-status,.quest-card,.profession-card,.item-database-card,.recipe-material,.craft-tree,.quest-overview) :is(small,p,label){color:var(--muted)}
html.loading-site[data-ui-light] body.loading-site :is(.guide-table,.database-table,.item-source-table) thead th{background:#deceb0;color:#263c3e}
html.loading-site[data-ui-light] body.loading-site :is(.download-dialog,.quest-map-dialog,.fish-loot-dialog,.cookie-dialog,.uc-content){background:#f9efda;color:#1b343b;border-color:#607573}
html.loading-site[data-ui-light] body.loading-site :is(.download-dialog,.quest-map-dialog,.fish-loot-dialog,.cookie-dialog,.uc-content) :is(h2,h3,strong,summary,.download-heading,.download-name,.download-title,.sidebar-menu a,.lang-btn,.btn-outline-yellow){color:#1b343b}
html.loading-site[data-ui-light] body.loading-site :is(.download-dialog,.quest-map-dialog,.fish-loot-dialog,.cookie-dialog) :is(.dialog-header,.dialog-footer,.quest-map-header,.fish-loot-header){background:#eee1c8;color:#1b343b}
html.loading-site[data-ui-light] body.loading-site :is(.download-dialog,.cookie-dialog) :is(p,small,label,.download-meta){color:#43595b}
/* Downloads must reset the illustrated palette locally as well as the outer
   dialog: the same panel is also embedded on /start. */
html.loading-site[data-ui-light] body.loading-site :is(.download-dialog,.download-panel){--text:#1b343b;--muted:#43595b;--gold:#704714;--gold-bright:#54340f;--line:#19343b55;--line-soft:#19343b2e;background:#f9efda;color:#1b343b}
html.loading-site[data-ui-light] body.loading-site .download-panel :is(h2,.section-kicker,.download-name,.download-name strong){color:#1b343b}
html.loading-site[data-ui-light] body.loading-site .download-panel :is(p,.download-meta){color:#43595b}
html.loading-site[data-ui-light] body.loading-site .download-panel .download-row{border-color:#19343b3d;background:transparent}
html.loading-site[data-ui-light] body.loading-site .download-panel .download-row:is(:hover,:focus-visible){background:#e8dcc1;outline-color:#704714}
html.loading-site[data-ui-light] body.loading-site .download-panel .download-icon{background:#eee1c8;color:#29464b;border-color:#607573}
html.loading-site[data-ui-light] body.loading-site .download-panel .download-action{background:#eee1c8;color:#54340f;border-color:#607573}
html.loading-site[data-ui-light] body.loading-site .download-panel .download-badge{background:#f4c879;color:#14282d}
html.loading-site[data-ui-light] body.loading-site .download-dialog :is(.dialog-header a,.dialog-footer a,.dialog-close){color:#54340f}
html.loading-site[data-ui-light] body.loading-site .download-dialog .dialog-close{background:#fff8e9;border-color:#607573}
html.loading-site[data-ui-light] body.loading-site .poster-play-heading{color:#1b343b}
html.loading-site[data-ui-light] body.loading-site .poster-play-heading .poster-eyebrow{color:#43595b}
html.loading-site[data-ui-light] body.loading-site .poster-heading-radio{background:#f9efda;color:#1b343b;border-color:#536d6d}
html.loading-site[data-ui-light] body.loading-site .poster-heading-radio .radio-panel{background:#f9efda;color:#1b343b;border-color:#536d6d}
html.loading-site[data-ui-light] body.loading-site .poster-heading-radio :is(.radio-track h2,.radio-title,.radio-station-name,.radio-brand){color:#1b343b}
html.loading-site[data-ui-light] body.loading-site .poster-heading-radio :is(p,small,a,button,.radio-state,.radio-track-meta,.radio-station-caption,.radio-station-toggle,.radio-notice,.radio-quality-menu){color:#43595b}
html.loading-site[data-ui-light] body.loading-site .poster-heading-radio .radio-station-current span{color:#1b343b}
html.loading-site[data-ui-light] body.loading-site .poster-heading-radio :is(.radio-play,.radio-quality-option[aria-checked="true"]){background:#f4c879;color:#14282d}

/* Bright text is intentional on illustrated scenes and dark inset panels. */
html.loading-site[data-ui-light] body.loading-site :is(.poster-hero,.poster-market,.poster-community,.poster-feature-list,.world-hero,.epic-gallery,.enchant-window){--text:#fff0d1;--muted:#d7e4df;--gold:#f4c879;--gold-bright:#ffe3ae;--bg-raised:#203a3e;color:#fff0d1}
html.loading-site[data-ui-light] body.loading-site :is(.poster-hero,.poster-market,.poster-community,.poster-feature-list,.world-hero) :is(.poster-eyebrow,.poster-intro,.poster-text-link,.poster-scroll,p,.hero-copy){color:#f2f6e9}
html.loading-site[data-ui-light] body.loading-site .poster-feature-list :is(.poster-guide-link,strong){color:#fff0d1}
html.loading-site[data-ui-light] body.loading-site .poster-feature-list :is(.poster-feature p,.poster-guide-link span>span){color:#d7e4df}
html.loading-site[data-ui-light] body.loading-site .world-hero :is(h1,.hero-title){color:#fff0d1}
html.loading-site[data-ui-light] body.loading-site .world-hero :is(h1,.hero-title)>span{color:#f4c879}
html.loading-site[data-ui-light] body.loading-site :is(.poster-hero,.poster-market,.poster-community) .poster-button{color:#14282d;background:#f4c879}
html.loading-site[data-ui-light] body.loading-site .knowledge-section-card{--text:#fff0d1;--gold:#f4c879;--gold-bright:#ffe3ae;color:#fff0d1}
html.loading-site[data-ui-light] body.loading-site .knowledge-section-card :is(h2,strong){color:#fff0d1}
html.loading-site[data-ui-light] body.loading-site .knowledge-section-card p{color:#e0e9df}
html.loading-site[data-ui-light] body.loading-site .knowledge-section-card small{color:#f4c879}
html.loading-site[data-ui-light] body.loading-site .enchant-window :is(h2,h3,strong,p,label,.enchant-window-title){color:#fff0d1}
html.loading-site[data-ui-light] body.loading-site #header{--gold:#f4c879;--gold-bright:#ffe3ae;--text:#fff0d1;color:#fff0d1;background:#11272bf5}
html.loading-site[data-ui-light] body.loading-site #header :is(a,button,.lang-btn){color:#fff0d1}
html.loading-site[data-ui-light] body.loading-site #header .dropdown-menu{background:#f9efda}
html.loading-site[data-ui-light] body.loading-site #header .dropdown-menu a{color:#1b343b}
html.loading-site[data-ui-light] body.loading-site #main-footer{--text:#e4ece0;--muted:#c7d5ce;--gold:#f4c879;--gold-bright:#ffe3ae;background:#10252c;color:#e4ece0}
html.loading-site[data-ui-light] body.loading-site #main-footer :is(p,a,button,small,.footer-caption,.footer-brand){color:#d8e4dc}
html.loading-site[data-ui-light] body.loading-site #main-footer :is(.footer-menu-title,.footer-site-description){color:#f4c879}

/* Native cabinet/plugin surfaces; authentication artwork stays a dark scene. */
html.loading-site[data-ui-light][data-wellyssar-loading="illustrated"] :is(h1,h2,h3,h4,h5,h6){color:var(--text-primary)}
html.loading-site[data-ui-light][data-wellyssar-loading="illustrated"] :is(.cabinet-main,.gothic-card,.gothic-modal){color:var(--text-primary)}
html.loading-site[data-ui-light][data-wellyssar-loading="illustrated"] :is(.gothic-card,.gothic-modal){background:var(--bg-card)!important}
html.loading-site[data-ui-light][data-wellyssar-loading="illustrated"] :is(.gothic-card,.gothic-modal,.cabinet-main) :is(p,label,small){color:var(--text-secondary)}
html.loading-site[data-ui-light][data-wellyssar-loading="illustrated"] .cabinet-header-button{background:var(--bg-card)!important;color:var(--text-primary)!important}
html.loading-site[data-ui-light][data-wellyssar-loading="illustrated"] .w-stats{--w-gold:#704714;--w-bright:#1b343b;--w-muted:#43595b}
html.loading-site[data-ui-light][data-wellyssar-loading="illustrated"] [class*="_card_"]:has([class*="_cardAmount_"]){--text-primary:#fff0d1;--text-secondary:#d7e4df;--text-muted:#c6d8d2;color:#fff0d1}
html.loading-site[data-ui-light][data-wellyssar-loading="illustrated"] [class*="_card_"]:has([class*="_cardAmount_"]) :is(label,small,p,[class*="_cardLabel_"]){color:#d7e4df}
html.loading-site[data-ui-light][data-wellyssar-loading="illustrated"] [class*="_card_"]:has([class*="_cardAmount_"]) input{color:#fff0d1;background:transparent}
html.loading-site[data-ui-light][data-wellyssar-loading="illustrated"] [class*="_authLayout_"]>[class*="_banner_"] :is(h1,p){color:#fff0d1}
html.loading-site[data-ui-light][data-wellyssar-loading="illustrated"] [class*="_authLayout_"]>[class*="_formSide_"] :is(h1,h2,h3,label,a){color:var(--text-primary)}
html.loading-site[data-ui-light][data-wellyssar-loading="illustrated"] [class*="_authLayout_"]>[class*="_formSide_"] [class*="_formCard_"]{background:var(--bg-card)!important}
