/* ==UserStyle== @name HentaiVerse Dark @namespace meiyongai.hv-dark @version 1.0.22 @description Dark styling for HentaiVerse, HVUT and companion scripts, with JPX-PLUS compatibility. @author MeiYongAI @homepageURL https://github.com/MeiYongAI/JPX-PLUS @updateURL https://raw.githubusercontent.com/MeiYongAI/JPX-PLUS/main/HV-Dark.user.css ==/UserStyle== */ /* Native image labels, battle gauge values and game configuration stay intact. html:root preserves the original specificity over HVUT's later :root palette. */ @-moz-document domain("hentaiverse.org") { html:root { color-scheme: dark; background-color: #191b1e !important; --hvd-bg: #191b1e; --hvd-panel: #202226; --hvd-surface: #292c31; --hvd-field: #24272b; --hvd-text: #e5e0d8; --hvd-muted: #b4afa7; --hvd-accent: #e2bc8c; --hvd-border: #5a534c; --hvd-hover: #3d3933; --hvd-red: #ff9295; --hvd-blue: #93baff; --hvd-green: #8cd6a3; --hvd-purple: #c9a5ed; /* Exact sRGB glyph colors from the palette above (including disabled text). Keep lighter source outlines subdued and preserve source alpha / geometry. Keep these filter colors in sync when editing the corresponding palette tokens. */ --hvd-image-text: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cfilter%20id%3D%22t%22%20color-interpolation-filters%3D%22sRGB%22%20x%3D%220%22%20y%3D%220%22%20width%3D%22100%25%22%20height%3D%22100%25%22%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3CfeComponentTransfer%3E%3CfeFuncR%20type%3D%22table%22%20tableValues%3D%221%201%20.65%20.15%200%22%2F%3E%3CfeFuncG%20type%3D%22table%22%20tableValues%3D%221%201%20.65%20.15%200%22%2F%3E%3CfeFuncB%20type%3D%22table%22%20tableValues%3D%221%201%20.65%20.15%200%22%2F%3E%3C%2FfeComponentTransfer%3E%3CfeColorMatrix%20values%3D%220.77254902%200%200%200%200.12549020%200%200.74509804%200%200%200.13333333%200%200%200.69803922%200%200.14901961%200%200%200%201%200%22%2F%3E%3C%2Ffilter%3E%3C%2Fsvg%3E#t"); --hvd-image-accent: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cfilter%20id%3D%22t%22%20color-interpolation-filters%3D%22sRGB%22%20x%3D%220%22%20y%3D%220%22%20width%3D%22100%25%22%20height%3D%22100%25%22%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3CfeComponentTransfer%3E%3CfeFuncR%20type%3D%22table%22%20tableValues%3D%221%201%20.65%20.15%200%22%2F%3E%3CfeFuncG%20type%3D%22table%22%20tableValues%3D%221%201%20.65%20.15%200%22%2F%3E%3CfeFuncB%20type%3D%22table%22%20tableValues%3D%221%201%20.65%20.15%200%22%2F%3E%3C%2FfeComponentTransfer%3E%3CfeColorMatrix%20values%3D%220.76078431%200%200%200%200.12549020%200%200.60392157%200%200%200.13333333%200%200%200.40000000%200%200.14901961%200%200%200%201%200%22%2F%3E%3C%2Ffilter%3E%3C%2Fsvg%3E#t"); --hvd-image-disabled: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cfilter%20id%3D%22t%22%20color-interpolation-filters%3D%22sRGB%22%20x%3D%220%22%20y%3D%220%22%20width%3D%22100%25%22%20height%3D%22100%25%22%3E%3CfeColorMatrix%20values%3D%220%200%200%200%200.58823529%200%200%200%200%200.56862745%200%200%200%200%200.54509804%200%200%200%201%200%22%2F%3E%3C%2Ffilter%3E%3C%2Fsvg%3E#t"); --hvd-image-blue: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cfilter%20id%3D%22t%22%20color-interpolation-filters%3D%22sRGB%22%20x%3D%220%22%20y%3D%220%22%20width%3D%22100%25%22%20height%3D%22100%25%22%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3CfeComponentTransfer%3E%3CfeFuncR%20type%3D%22table%22%20tableValues%3D%221%201%20.65%20.15%200%22%2F%3E%3CfeFuncG%20type%3D%22table%22%20tableValues%3D%221%201%20.65%20.15%200%22%2F%3E%3CfeFuncB%20type%3D%22table%22%20tableValues%3D%221%201%20.65%20.15%200%22%2F%3E%3C%2FfeComponentTransfer%3E%3CfeColorMatrix%20values%3D%220.45098039%200%200%200%200.12549020%200%200.59607843%200%200%200.13333333%200%200%200.85098039%200%200.14901961%200%200%200%201%200%22%2F%3E%3C%2Ffilter%3E%3C%2Fsvg%3E#t"); /* Activated labels have black glyphs and a red edge; suppress that edge separately. */ --hvd-image-active: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cfilter%20id%3D%22t%22%20color-interpolation-filters%3D%22sRGB%22%20x%3D%220%22%20y%3D%220%22%20width%3D%22100%25%22%20height%3D%22100%25%22%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3CfeComponentTransfer%3E%3CfeFuncR%20type%3D%22table%22%20tableValues%3D%221%200%200%200%200%22%2F%3E%3CfeFuncG%20type%3D%22table%22%20tableValues%3D%221%200%200%200%200%22%2F%3E%3CfeFuncB%20type%3D%22table%22%20tableValues%3D%221%200%200%200%200%22%2F%3E%3C%2FfeComponentTransfer%3E%3CfeColorMatrix%20values%3D%220.87450980%200%200%200%200.12549020%200%200.43921569%200%200%200.13333333%200%200%200.43529412%200%200.14901961%200%200%200%201%200%22%2F%3E%3C%2Ffilter%3E%3C%2Fsvg%3E#t"); /* HVUT's existing palette also covers menus and panels created later. */ --color-font-default: var(--hvd-text); --color-font-light: var(--hvd-accent); --color-font-invalid: #96918b; --color-font-invert: #f5eee5; --color-font-highlight: var(--hvd-red); --color-font-warn: var(--hvd-red); --color-font-bonus: var(--hvd-blue); --color-border-default: var(--hvd-border); --color-border-light: #927b61; --color-border-alpha: #5a534c70; --color-bg-default: var(--hvd-panel); --color-bg-back: var(--hvd-bg); --color-bg-light: var(--hvd-surface); --color-bg-alpha: #ffffff0b; --color-bg-invalid: #ffffff08; --color-bg-invert: #514434; --color-bg-h1: #453b30; --color-bg-h2: var(--hvd-surface); /* Subtle quality tints keep row fills behind equipment names and affix labels. */ --color-equip-Ultimate: #302b35; --color-equip-Peerless: #34292d; --color-equip-Legendary: #322e27; --color-equip-Magnificent: #283039; --color-equip-Exquisite: #2b3229; --color-equip-Superior: #2c2e32; --color-item-Consumable: var(--hvd-green); --color-item-Artifact: var(--hvd-blue); --color-item-Trophy: var(--hvd-purple); --color-item-Token: #b0cd8a; --color-item-Crystal: #e39cdb; --color-item-MonsterFood: #89caff; --color-item-Material: var(--hvd-red); --color-item-Collectable: var(--hvd-blue); --color-warn-bg: #4c3b25; --color-warn-alpha: #4c3b25ed; --color-warn-unread: #4f3034; --color-exp-bar: #5684ad; --color-ab-max: #41464f; --color-ab-cap: #2d4d72; --color-ab-up: #70404a; --color-ab-font: #fff; /* Unfilled native tiers are transparent over the dark panel. */ --color-ab-slot: var(--hvd-accent); --color-mm-equip: var(--hvd-red); --color-mm-item: var(--hvd-green); --color-mm-credits: var(--hvd-blue); --color-mm-hath: #e39cdb; scrollbar-color: var(--hvd-border) var(--hvd-bg); } html:root body:not(.jpx-record-detail):not(:has(> .jpx-records-page)) { background-color: var(--hvd-bg) !important; color: var(--hvd-text); } html:root #csp { background-color: var(--hvd-panel); color: var(--hvd-text); border-color: var(--hvd-border); } html:root :is(#csp, #popup_box, .showequip, .hvut-cfg-div, [id^="hvut-"], [class^="hvut-"]) { scrollbar-color: var(--hvd-border) transparent; } html:root :is(#csp, #popup_box, .showequip, .hvut-cfg-div) div { scrollbar-color: inherit; } html:root :where(#csp, #popup_box, .showequip, .hvut-cfg-div) a { color: var(--hvd-accent); } html:root :where(#csp, #popup_box, .showequip, .hvut-cfg-div) a:hover { color: #f0d3ac; } html:root .hvut-mm-attach-e > a { color: inherit; } html:root :is(.fcb, .cfb, .market_tab, .armory_tab) { color: var(--hvd-text); } html:root :is(.fcg, .sd > div:last-child > div, .eqp > div:last-child:not([onclick]), #mmail_pager > div > span) { color: var(--hvd-muted); } html:root :is(.fcr, .eqs, .eqred, #eu > span, .emsg, .messagebox_error) { color: var(--hvd-red); } html:root :is(.fca, #ep > span, .chm > div:nth-child(n+2)) { color: var(--hvd-blue); } html:root #ee > span { color: var(--hvd-purple); } html:root :is(.ss, .itemlist > tbody > tr > td > div[onclick]:not([style]):hover, .eqp > div:last-child[onclick]:not([data-locked="1"]):not([style]):hover) { color: var(--hvd-blue) !important; } /* Native surfaces, including sticky table headers and equipment previews. */ html:root :is(.nc, .nc > div > div, #level_details > div, #world_text > div, #messagebox_inner, #confirm_inner, #popup_box, #equip_extended, #lottery_eqstat, #ability_info, #market_itemlist th, #market_accountlog th, #market_tradelog th, #equipselect_left, #equipselect_left table, #btcp, #riddlemaster, #infopane, .msp > div:first-child) { background-color: var(--hvd-panel) !important; color: var(--hvd-text); border-color: var(--hvd-border); } html:root :is(#messagebox_outer, #confirm_outer) { background-color: #101214cc !important; } html:root :is(#navbar, #networth, #stats_scrollable, #attr_table, #prof_outer table, .nc > div, .cfb, .cfbs, .showequip > div:first-child, .ex, #popup_box > div:first-child, #ability_treelist, #ability_info > div:nth-child(3) > div, #ability_info > div:nth-child(3) > div > div:first-child, .msl, .mcr > div, #monsterstats_right > div:first-child, #monsterskills th, #monstercreate_stats > div > div:first-child, #train_progress > div:first-child > div:nth-child(2), #train_table td, #settings_challenge td, #settings_title td, #mmail_list th, #mmail_list td, #arena_list td, #market_left > div, #market_left > a > div, #market_itemlist td, #market_itemhistory th, .market_itemorders th, .market_cur, #armory_left > div, #armory_left > a > div, .armory_cur, #equipselect_left td, .eqb, .eqcharm) { border-color: var(--hvd-border); } html:root .cfbs { background-color: var(--hvd-surface); border-bottom-color: var(--hvd-panel); } html:root #train_progress > div:first-child > div:nth-child(2) { background-color: var(--hvd-bg); } html:root :is(.nc > div > div:hover, .msl:hover, #mmail_list tr[onclick]:hover, #market_itemlist tr:hover:not(:first-child), .market_itemorders tr[onclick]:hover, #equipselect_left tr:not(.eqselall):not(.eqtplabel):hover, tr[data-hover="1"], .eqb:not(.eqdisabled):hover, .eqcharm:not(.eqdisabled):hover) { background: var(--hvd-hover); } html:root :is(.cfb:hover, .market_tab:hover, .armory_tab:hover, #market_itemlist tr:hover:not(:first-child), .market_itemorders tr[onclick]:hover, #equipselect_left tr:not(.eqselall):not(.eqtplabel):hover) { color: var(--hvd-accent); } html:root #csp .nc > div > div:hover { background-color: var(--hvd-hover) !important; } html:root :is(#market_itemlist tr[data-orderdisabled="1"], .market_itemorders tr[data-orderconflict="1"], #buyorder_update[data-orderdisabled="1"]) { color: var(--hvd-red); } /* Recolor controls without changing their dimensions or overriding JPX's own theme. */ html:root :where(#csp, #popup_box, .showequip, .hvut-cfg-div, [id^="hvut-"], [class^="hvut-"], .hath-panel) :is(button, input:where(:not([type=image]):not([type=color]):not([type=range])), textarea, select, option):not(:where(#settings-container *, .jpx-widget-card *, .jpx-record-final *)) { color: var(--hvd-text); background: var(--hvd-field); border-color: var(--hvd-border); accent-color: var(--hvd-accent); color-scheme: dark; } /* Clear native pressed gradients as well as their background color. */ html:root :where(#csp, #popup_box, .showequip, .hvut-cfg-div, [id^="hvut-"], [class^="hvut-"], .hath-panel) :is(button, input, textarea, select):enabled:is(:hover, :active):not([readonly]):not(:where(#settings-container *, .jpx-widget-card *, .jpx-record-final *)) { background: var(--hvd-hover); } html:root :where(#csp, #popup_box, .showequip, .hvut-cfg-div, [id^="hvut-"], [class^="hvut-"], .hath-panel) :is(button, input[type=button], input[type=submit]):enabled:hover:not(:where(#settings-container *, .jpx-widget-card *, .jpx-record-final *)) { color: var(--hvd-accent); } html:root :where(#csp, #popup_box, .showequip, .hvut-cfg-div, [id^="hvut-"], [class^="hvut-"], .hath-panel) :is(button, input, textarea, select):enabled:focus:not([readonly]):not(:where(#settings-container *, .jpx-widget-card *, .jpx-record-final *)) { background: var(--hvd-field); border-color: var(--hvd-accent); } html:root :where(#csp, #popup_box, .showequip, .hvut-cfg-div, [id^="hvut-"], [class^="hvut-"], .hath-panel) :is(button, input, textarea, select):enabled:focus:not([readonly]):not(:where([data-cod-match], .hvut-warn, .hvut-bonus, #settings-container *, .jpx-widget-card *, .jpx-record-final *)) { color: var(--hvd-text); } html:root :where(#csp, #popup_box, .showequip, .hvut-cfg-div, [id^="hvut-"], [class^="hvut-"], .hath-panel) :is(button, input, textarea, select):focus-visible:not(:where(#settings-container *, .jpx-widget-card *, .jpx-record-final *)) { outline: 1px solid var(--hvd-accent); outline-offset: 1px; } html:root :where(#csp, #popup_box, .showequip, .hvut-cfg-div, [id^="hvut-"], [class^="hvut-"], .hath-panel) :is(button, input, textarea, select):disabled:not(:where(#settings-container *, .jpx-widget-card *, .jpx-record-final *)) { color: #96918b; background: #242629; border-color: #47484a; } html:root :where(#csp, #popup_box, .showequip, .hvut-cfg-div, [id^="hvut-"], [class^="hvut-"], .hath-panel) select:is([size], [multiple]) option:checked:not(:where(#settings-container *, .jpx-widget-card *, .jpx-record-final *)) { background: var(--color-bg-invert); color: var(--hvd-text); } html:root #itshop_t1 > input { background: var(--hvd-field) !important; color: var(--hvd-text) !important; border-color: var(--hvd-border) !important; } html:root :is(.lc, .lr) > span { background-color: var(--hvd-field); border-color: var(--hvd-border); } html:root :is(.lc:hover, .lr:hover) input:enabled ~ span, html:root :is(.lc, .lr) input:enabled:focus ~ span { background-color: var(--hvd-hover) !important; border-color: var(--hvd-accent) !important; } html:root .lc > span::after { border-color: var(--hvd-accent); } html:root .lr > span::after { background-color: var(--hvd-accent); } html:root :is(.lc, .lr) input:disabled ~ span { border-color: #47484a !important; } html:root .lc input:disabled ~ span::after { border-color: #96918b !important; } html:root .lr input:disabled ~ span::after { background-color: #96918b; } html:root .hvut-label input[type=checkbox]:checked + span::before { border-color: var(--hvd-accent); } html:root .hvut-label input[type=radio]:checked + span::before { background-color: var(--hvd-accent); } html:root .hvut-mm-view input[data-cod-match="1"] { color: var(--color-font-bonus) !important; } html:root .hvut-mm-view input[data-cod-match="0"] { color: var(--color-font-warn) !important; } /* HVUT's two legacy dialogs have inline colors and no class names. */ html:root body:has(#hvut-top) > div[style*="position: fixed"][style*="z-index: 1001"] > div { background-color: var(--hvd-surface) !important; color: var(--hvd-text) !important; border-color: var(--hvd-border) !important; } html:root body:has(#hvut-top) > div[style*="position: fixed"][style*="z-index: 1001"] :is(input, textarea) { background: var(--hvd-field); color: var(--hvd-text); border-color: var(--hvd-border); color-scheme: dark; } html:root .hath-panel { background: var(--hvd-surface); border-color: var(--hvd-border); color: var(--hvd-text); } html:root .hath-panel button { background: var(--hvd-field); color: var(--hvd-text); border-color: var(--hvd-border); } html:root .hath-price-box { color: var(--hvd-red); } /* Slot frames and their empty/lock sprite are separate from the skill artwork. */ html:root :is(.ability_slotbar, .ability_slotbox) > div { border-radius: 4px; box-shadow: inset 0 0 0 30px rgb(25 27 30 / 32%); } html:root :is(.ability_slotbar, .ability_slotbox) > div > div[style*="/y/t/0.png"] { filter: invert(1) hue-rotate(180deg) brightness(.9) saturate(.6); } /* Preserve HVUT's existing badge shapes and fills; only improve foreground contrast. */ html:root .hvut-ab-warn::before { color: var(--hvd-bg); } /* Battle uses a separate stylesheet, including two different player-bar layouts. */ html:root #btcp { opacity: 1; border-color: var(--hvd-border); } html:root :is(.btm1, #infopane, #riddleimage > img) { border-color: var(--hvd-border); } html:root .btm1 { border-style: solid; } /* Tint inline rank highlights beneath the content; keep boss/custom hues and native geometry. */ html:root .btm2[style*="background"] { box-shadow: inset 0 0 0 100px rgb(25 27 30 / 76%); } html:root .btm2 img[src*="/y/battle/mon_"] { filter: brightness(0) invert(.88) sepia(.12); } /* Blend the trough into the panel; clip the original fills without changing their widths. Hide only the baked rim/dead decoration, which contains the black bevel and ivory corners. */ html:root .btm4 :is(.chbd, .btm5:has(> img[src$="/nbardead.png"])) { background: var(--hvd-surface); clip-path: inset(3px 0 round 3px); } html:root .btm4 img:is([src$="/nbarfg.png"], [src$="/nbardead.png"]) { opacity: 0; } html:root :is(#dvbh, #dvbm, #dvbs, #dvbc, #vbh, #vbm, #vbs) { background-color: #17191c; border-color: var(--hvd-border); } html:root :is(#dvrhb, #dvrhd, #dvrm, #dvrs, #dvrc, #vrhb, #vrhd, #vrm, #vrs) { opacity: 1; } html:root :is(#dvrhb, #dvrhd) { color: var(--hvd-green); } html:root :is(#dvrm, #vrm) { color: var(--hvd-blue); } html:root :is(#dvrs, #vrs) { color: var(--hvd-red); } html:root #dvrc { color: var(--hvd-accent); } /* Standard HP text is over the green gauge, so give it its own dark backing. */ html:root :is(#vrhb, #vrhd) { color: var(--hvd-text); background: #17191ce6; border-radius: 3px; } /* JPX cooldown labels overlay skill artwork; keep them readable on light and dark pixels. */ html:root #quickbar .cooldown { color: var(--hvd-text); text-shadow: 0 1px 2px #000, 1px 0 1px #000, -1px 0 1px #000, 0 -1px 1px #000; } html:root :is(.effect-duration, .effect_duration) > div { color: var(--hvd-text) !important; background: var(--hvd-surface); border-color: var(--hvd-border); } html:root :is(.effect-duration, .effect_duration) > div[style*="aquamarine"] { background: #25483d !important; color: #b4efd4 !important; } html:root :is(.effect-duration, .effect_duration) > div[style*="lavender"] { background: #3e3555 !important; color: #e3d4ff !important; } /* Preserve bitmap text, outlines, native size and translated image content. These directories contain text controls; ability/monster artwork needs narrower matching. */ html:root #csp img:is([src*="/y/m/"], [src*="/y/character/"], [src$="/rename.png"], [src$=".png"]:is([src*="/y/training/"], [src*="/y/equip/"], [src*="/y/shops/"], [src*="/y/arena/"], [src*="/y/mmail/"]:not([src$="/ygm.png"])), [src*="/y/ab/ta"], [src*="/y/ab/td"], [src*="/y/ab/reset"], [src$="/startgrindfest.png"], [src$="/userestorative.png"], [src$="/scroll_up.png"], [src$="/scroll_down.png"], [src*="/y/monster/"]:is( [src$="/agi.png"], [src$="/agi_a.png"], [src$="/arthropod.png"], [src$="/arthropod_a.png"], [src$="/avion.png"], [src$="/avion_a.png"], [src$="/beast.png"], [src$="/beast_a.png"], [src$="/celestial.png"], [src$="/celestial_a.png"], [src$="/cold.png"], [src$="/cold_a.png"], [src$="/createmonster.png"], [src$="/createmonster_d.png"], [src$="/crsh.png"], [src$="/crsh_a.png"], [src$="/daimon.png"], [src$="/daimon_a.png"], [src$="/dark.png"], [src$="/dark_a.png"], [src$="/delete.png"], [src$="/dex.png"], [src$="/dex_a.png"], [src$="/dragonkin.png"], [src$="/dragonkin_a.png"], [src$="/drugallmonsters.png"], [src$="/drugallmonsters_d.png"], [src$="/drugmonster.png"], [src$="/drugmonster_d.png"], [src$="/elec.png"], [src$="/elec_a.png"], [src$="/elemental.png"], [src$="/elemental_a.png"], [src$="/end.png"], [src$="/end_a.png"], [src$="/feedallmonsters.png"], [src$="/feedallmonsters_d.png"], [src$="/feedmonster.png"], [src$="/feedmonster_d.png"], [src$="/fire.png"], [src$="/fire_a.png"], [src$="/giant.png"], [src$="/giant_a.png"], [src$="/holy.png"], [src$="/holy_a.png"], [src$="/humanoid.png"], [src$="/humanoid_a.png"], [src$="/int.png"], [src$="/int_a.png"], [src$="/mechanoid.png"], [src$="/mechanoid_a.png"], [src$="/ml_monstats.png"], [src$="/ml_monstats_a.png"], [src$="/ml_skilledit.png"], [src$="/ml_skilledit_a.png"], [src$="/next.png"], [src$="/prcg.png"], [src$="/prcg_a.png"], [src$="/prev.png"], [src$="/rename.png"], [src$="/reptilian.png"], [src$="/reptilian_a.png"], [src$="/saveskills.png"], [src$="/slsh.png"], [src$="/slsh_a.png"], [src$="/sprite.png"], [src$="/sprite_a.png"], [src$="/str.png"], [src$="/str_a.png"], [src$="/undead.png"], [src$="/undead_a.png"], [src$="/unlock_slot.png"], [src$="/unlock_slot_d.png"], [src$="/wind.png"], [src$="/wind_a.png"], [src$="/wis.png"], [src$="/wis_a.png"]), [src*="/y/battle/attack_"], [src*="/y/battle/skill_"], [src*="/y/battle/items_"], [src*="/y/battle/spirit_"], [src*="/y/battle/defend_"], [src*="/y/battle/focus_"], [src*="/y/battle/sbsel_"], [src*="/y/battle/skills_"], [src*="/y/battle/magic_"], [src$="/finishbattle.png"], [src$="/arenacontinue.png"], [src$="/grindfestcontinue.png"], [src$="/itemworldcontinue.png"], [src$="/answer.png"], [src$="/ponychartbutton.png"]) { /* Preserve image alpha, lettering and geometry; only adjust the original image colors. */ filter: var(--hvd-control-filter, invert(1) hue-rotate(180deg) brightness(1.08) saturate(.65)); } /* Available actions and current tabs keep the original warm emphasis. */ html:root #csp img:is([src*="/y/character/"], [src*="/y/training/"], [src*="/y/equip/"], [src*="/y/shops/"], [src*="/y/mmail/"], [src*="/y/ab/ta"], [src*="/y/ab/reset"], [src*="/y/arena/startchallenge"], [src$="/rename.png"], [src$="/startgrindfest.png"], [src$="/userestorative.png"]):where([src$=".png"]) { --hvd-control-filter: var(--hvd-image-accent); } /* Monster Lab text actions use the same warm palette; leave portraits and bars intact. */ html:root #csp img:where([src*="/y/monster/"]):is( [src$="/feedallmonsters.png"], [src$="/drugallmonsters.png"], [src$="/unlock_slot.png"], [src$="/feedmonster.png"], [src$="/drugmonster.png"], [src$="/createmonster.png"], [src$="/saveskills.png"], [src$="/delete.png"], [src$="/prev.png"], [src$="/next.png"]) { --hvd-control-filter: var(--hvd-image-accent); } /* Monster navigation uses plain images for the current pane and _a for other panes. */ html:root #csp #monster_nav img:where([src*="/y/monster/"]):is( [src$="/ml_monstats.png"], [src$="/ml_skilledit.png"]) { --hvd-control-filter: var(--hvd-image-blue); } html:root #csp #monster_nav img:where([src*="/y/monster/"]):is( [src$="/ml_monstats_a.png"], [src$="/ml_skilledit_a.png"]) { --hvd-control-filter: var(--hvd-image-accent); } /* Creation choices use warm action text; the selected class uses selection blue. Attack-type _a images are create actions, not the selected class state. */ html:root #csp :is(#monstercreate_left, #monstercreate_patk) img:where([src*="/y/monster/"]):not([src$="_d.png"]) { --hvd-control-filter: var(--hvd-image-accent); } html:root #csp #monstercreate_left img:where([src*="/y/monster/"])[src$="_a.png"] { --hvd-control-filter: var(--hvd-image-blue); } /* Crystal-upgrade labels use _a for available actions and the plain image otherwise. */ html:root #csp #monsterstats_top > .mcr img:where([src*="/y/monster/"])[src$=".png"] { --hvd-control-filter: var(--hvd-image-disabled); } html:root #csp #monsterstats_top > .mcr img:where([src*="/y/monster/"])[src$="_a.png"] { --hvd-control-filter: var(--hvd-image-accent); } /* Hunger/morale labels share a background bitmap with the bar frame. Recolor only the label before x=60; keep the frame, fill and HVUT values intact. Inherit the image so delayed translations and new rows work without script hooks. */ html:root #csp .msl > div:is(:nth-child(5), :nth-child(6)) > div::before { content: ""; position: absolute; inset: 0; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; clip-path: inset(0 calc(100% - 60px) 0 0); filter: var(--hvd-image-text); pointer-events: none; } /* Battle action lettering uses the same palette as out-of-battle controls. Native n / s / a images retain normal / selected / activated distinctions. */ html:root #csp img:is( [src*="/y/battle/attack_"], [src*="/y/battle/skill_"], [src*="/y/battle/items_"], [src*="/y/battle/spirit_"], [src*="/y/battle/defend_"], [src*="/y/battle/focus_"], [src*="/y/battle/sbsel_"], [src$="/finishbattle.png"], [src$="/arenacontinue.png"], [src$="/grindfestcontinue.png"], [src$="/itemworldcontinue.png"], [src$="/answer.png"], [src$="/ponychartbutton.png"]) { --hvd-control-filter: var(--hvd-image-accent); } html:root #csp img:is( [src*="/y/battle/attack_"], [src*="/y/battle/skill_"], [src*="/y/battle/items_"], [src*="/y/battle/spirit_"], [src*="/y/battle/defend_"], [src*="/y/battle/focus_"], [src*="/y/battle/sbsel_"]):where([src$="_s.png"]) { --hvd-control-filter: var(--hvd-image-blue); } html:root #csp img:is( [src*="/y/battle/attack_"], [src*="/y/battle/skill_"], [src*="/y/battle/items_"], [src*="/y/battle/spirit_"], [src*="/y/battle/defend_"], [src*="/y/battle/focus_"]):where([src$="_a.png"]) { --hvd-control-filter: var(--hvd-image-active); } html:root #csp img:is([src*="/y/battle/skills_"], [src*="/y/battle/magic_"]) { --hvd-control-filter: var(--hvd-image-text); } /* Other selectable tabs are neutral; disabled actions remain legible but dimmer. */ html:root #csp img:is([src$="_off.png"], [src*="/y/ab/td"]) { --hvd-control-filter: var(--hvd-image-text); } html:root #csp img[src$="_d.png"] { --hvd-control-filter: var(--hvd-image-disabled); } /* HVUT marks categories from equipped, upgradeable abilities before opening a tree. Replace its brightness(250%) directly: upgrade blue takes priority over the current-tab gold, without adding decoration or inferring unloaded abilities. */ html:root #csp #ability_treelist > .hvut-ab-tree > img:is([src*="/y/ab/ta"], [src*="/y/ab/td"]) { --hvd-control-filter: var(--hvd-image-blue); filter: var(--hvd-image-blue) !important; } /* Font sprites only; spell artwork, puzzle images and gauge fills keep their original colors. */ html:root :is(.f2b, .f4b) > div { filter: brightness(0) invert(.88) sepia(.12); } html:root :is(.f2r, .f4r, .f2a, .f4a) > div { filter: brightness(1.8); } /* HV Paper Doll 1.9.9: equipment controls and battle portrait editors. */ html:root :is(#hvpd, #hvpd-gi) { color: var(--hvd-text); } html:root #hvpd :is(.cuspanel, .pwin, .eqlist, .opts), html:root #hvpd-gi, html:root #hvpd-gi .gifb { background: var(--hvd-panel); color: var(--hvd-text); border-color: var(--hvd-border); } html:root #hvpd .pwin .ph, html:root #hvpd-gi .gh { background: var(--hvd-surface); color: var(--hvd-text); } html:root #hvpd :is(.bar .sel, .bgcp .r > span, .eqlist span), html:root #hvpd-gi .gm { color: var(--hvd-text); } html:root #hvpd :is(button, select, option, input):not(:where(.bgcp .ps button, [type=color], [type=range])), html:root #hvpd .cuspanel .pick input, html:root #hvpd-gi .gb { background: var(--hvd-field); color: var(--hvd-text); border-color: var(--hvd-border); color-scheme: dark; } html:root #hvpd input[type=range] { accent-color: var(--hvd-accent); } html:root #hvpd :is(button, select):not(:where(.bgcp .ps button)):enabled:hover, html:root #hvpd-gi .gb:hover { background: var(--hvd-hover); color: var(--hvd-accent); } html:root #hvpd :is(.bar, .cuspanel) button[aria-pressed=true] { background: var(--hvd-hover); color: var(--hvd-accent); border-color: var(--hvd-accent); } html:root #hvpd .opts button { color: var(--hvd-text) !important; } html:root #hvpd .opts button:hover, html:root #hvpd .opts button[aria-pressed=true] { background: var(--hvd-hover) !important; color: var(--hvd-accent) !important; } html:root :is(#hvpd, #hvpd-gi) :is(button, select, input):focus-visible { outline: 1px solid var(--hvd-accent); outline-offset: 1px; } html:root #hvpd :is(.eqlist > span, .eqlist .k, .eqlist .lv, .eqlist .pab, .cuspanel .pre, .opts hr, .st, .pick .cur, .bgcp .pv, .bgcp input[type=color], .bgcp .ps button), html:root #hvpd-gi .gifb > div:first-child { border-color: var(--hvd-border); } html:root #hvpd .eqlist .lv.sb { background: var(--hvd-surface); } /* Keep equipment quality hues beneath a dark wash, and retain color-picker swatches. */ html:root #hvpd .eqlist .v:not(.none) b { background-image: linear-gradient(color-mix(in srgb, var(--hvd-bg) 78%, transparent), color-mix(in srgb, var(--hvd-bg) 78%, transparent)) !important; color: var(--hvd-text); } html:root #hvpd .eqlist .v.none b { color: var(--hvd-muted) !important; } html:root #hvpd .eqlist .v.none.pick:hover b { color: var(--hvd-accent) !important; } html:root #hvpd-gi > div:not(.gh):not(.gc) { background-color: var(--hvd-panel) !important; } html:root :is(#hvpd-bpo, .hvpd-exo) { outline-color: var(--hvd-accent); background: color-mix(in srgb, var(--hvd-bg) 24%, transparent); } html:root :is(#hvpd-bpo, .hvpd-exo) .bar { background: var(--hvd-surface); color: var(--hvd-text); box-shadow: inset 0 0 0 1px var(--hvd-border); } html:root :is(#hvpd-bpo, .hvpd-exo) .bar :is(button, select, option) { background: var(--hvd-field); color: var(--hvd-text); border-color: var(--hvd-border); color-scheme: dark; } html:root :is(#hvpd-bpo, .hvpd-exo) .bar :is(button, select):enabled:hover { background: var(--hvd-hover); color: var(--hvd-accent); } html:root :is(#hvpd-bpo, .hvpd-exo) .bar button.on { background: var(--hvd-hover); color: var(--hvd-accent); box-shadow: inset 0 0 0 1px var(--hvd-accent); } html:root :is(#hvpd-bpo, .hvpd-exo) .bar :is(button, select):focus-visible { outline: 1px solid var(--hvd-accent); outline-offset: 1px; } html:root :is(#hvpd-bpe, .hvpd-exe) { background: var(--hvd-surface); color: var(--hvd-accent); box-shadow: inset 0 0 0 1px var(--hvd-border); } html:root :is(#hvpd-bpo, .hvpd-exo) .sz { background: var(--hvd-accent); } html:root #hvpd-bpo .tp { background: var(--hvd-surface); color: var(--hvd-accent); border-color: var(--hvd-accent); box-shadow: 0 0 0 1px var(--hvd-bg); } html:root #hvpd-bpo .tp.sel { background: var(--hvd-accent); color: var(--hvd-bg); box-shadow: 0 0 0 2px var(--hvd-border); } /* My Little Pony: recolor only its controls, never the puzzle or reference images. */ html:root #mlp_pane { color-scheme: dark; background: var(--hvd-panel); color: var(--hvd-text); border-color: var(--hvd-border); } html:root #mlp_box input[type=range] { accent-color: var(--hvd-accent); } html:root #mlp_box input[type=range]:focus-visible { outline: 1px solid var(--hvd-accent); outline-offset: 2px; } html:root #mlp_box > div:last-child { color: var(--hvd-muted); } html:root[data-jpx-theme=light] :is(#settings-container, .jpx-records-page, .jpx-record-detail, #jpx-mobile-entry) { color-scheme: light; } }