@layer biblePaletteControls {
/* Color corrections only: do not create backgrounds behind copy or new cards. */
html body {background:var(--bg)!important;color:var(--text)!important;}
html body :is(input,textarea,select) {color:var(--text)!important;caret-color:var(--text);}
html body ::placeholder {color:var(--text-muted)!important;opacity:1;}
html body :is(.btn,.primary,.complete-reading,.arena-create,.arena-join) {background:var(--surface)!important;color:var(--secondary)!important;border-color:var(--secondary)!important;border-width:1.5px;}
html body :is(.btn,.primary,.complete-reading,.arena-create,.arena-join):not(:disabled):not([aria-disabled=true]) {opacity:1!important;filter:none!important;}
html body :is(.home-play-actions>.btn:first-child,.games-hub-header nav>a:first-child,.runner-side-buttons>.runner-toggle,.competition-entry .arena-create,.primary) {background:var(--primary)!important;color:var(--on-primary)!important;border:1px solid var(--primary-border)!important;box-shadow:0 0 0 1px var(--border)!important;}
html body :is(.journey-summary .btn,.btn.outline,.arena-join) {background:var(--surface)!important;color:var(--secondary)!important;border:1.5px solid var(--secondary)!important;}
html body :is(.live-badge,.live-label,.live-pill,.b7-live-badge) {background:var(--live)!important;color:var(--on-solid)!important;}
html body :is(.category-poster-title,.art-caption,.runner-poster-copy,.game-card-copy,.game-card-title) {color:var(--on-image)!important;text-shadow:0 1px 3px var(--image-shade);}
html body :is(.category-poster-title,.art-caption,.runner-poster-copy,.game-card-copy,.game-card-title) :is(h2,h3,p,small,span) {color:var(--on-image)!important;}
html body :is(.btn,.primary,.arena-create,.arena-join) :is(span,small,strong,svg) {color:inherit!important;}
html body :is(a,button,input,textarea,select,summary):focus-visible {outline-color:var(--secondary)!important;}
/* Full-image shading stays on the existing poster overlay, never a new text box. */
html body :is(.category-poster,.game-poster)::after {background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--image-shade) 88%,transparent))!important;}

html body :is(.tabs button.active,.filters button.active,button[aria-selected=true],.appearance-options button[aria-pressed=true]) {background:var(--secondary-solid)!important;color:var(--on-solid)!important;border-color:var(--secondary)!important;}
html body :is(.badge,.story-badge,.category-tag) {background-color:var(--surface)!important;color:var(--secondary)!important;}
html body :is(.b7-start-live,.live-badge,.live-label,.live-pill,.b7-live-badge,.inbox-dock-unread) {background:var(--live)!important;color:var(--on-solid)!important;}
html body .find-friends-page .friend-action-icon {background:var(--surface)!important;color:var(--secondary)!important;border-color:var(--secondary)!important;}

}

@layer biblePaletteControls {
html body :is(.hud,#talk,.overlay .panel) {background-color:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important;}
html body :is(.hud,.controls,.overlay) button {background-color:var(--surface)!important;color:var(--secondary)!important;border-color:var(--secondary)!important;}
html body #talk small {color:var(--text-muted)!important;}
html body #equipment {color:var(--link)!important;}
}
