/* WoW 1.12 interface. Everything is scoped to body.wowui or #wui, so the 2D mode keeps style.css. */
.wui { position: fixed; inset: 0; z-index: 6; pointer-events: none; font-family: FrizQT, 'Friz Quadrata TT', Georgia, serif; color: #ffd100; user-select: none; -webkit-user-select: none; }
.wui .wc { position: absolute; }
.wui .wt { position: absolute; pointer-events: none; }
.wui .wbtn-img { pointer-events: auto; cursor: pointer; }
.wui .wbtn-img:hover { filter: brightness(1.3); }
.wui .wbtn-img.disabled { filter: grayscale(1) brightness(0.5); pointer-events: none; }
.wui .wtx { position: absolute; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 1px 1px 0 #000; pointer-events: none; }
.wui .gf-small { font-size: 10px; line-height: 12px; color: #ffd100; }
.wui .gf-normal { font-size: 12px; line-height: 14px; color: #ffd100; }
.wui .gf-hl { font-size: 12px; line-height: 14px; color: #fff; }
.wui .hidden { display: none !important; }

/* status bars: UI-StatusBar tinted by vertex colour */
.wui .wsb { position: absolute; overflow: hidden; }
.wui .wsb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background-image: var(--wt-bar); background-size: 100% 100%; background-blend-mode: multiply; }
.wui .wsb-txt { position: absolute; inset: 0; text-align: center; font: 12px/12px ArialN, 'Arial Narrow', sans-serif; color: #fff; text-shadow: -1px 0 #000, 1px 0 #000, 0 -1px #000, 0 1px #000; opacity: 0; transition: opacity .15s; white-space: nowrap; }
.wui .wunit:hover .wsb-txt, .wui .wxp:hover .wsb-txt, .wui .wplayer .whp .wsb-txt { opacity: 1; }
.wui .wsb-shield { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(230, 240, 255, .55); box-shadow: inset 0 0 3px #fff; }

/* MainMenuBar */
.wui .wbar { width: 1024px; height: 53px; left: 50%; bottom: 0; transform-origin: 50% 100%; transform: translateX(-50%) scale(var(--sb, var(--s))); }
.wui .wxp { pointer-events: auto; }
.wui .wxp-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); z-index: -1; }
.wui .wxp .wsb-txt { top: 1px; }
.wui .wpage { text-align: center; }
.wui .wmicro { width: 133px; height: 58px; left: calc(50% + 40px * var(--sb, var(--s))); bottom: calc(2px * var(--sb, var(--s))); transform-origin: 0 100%; transform: scale(var(--sb, var(--s))); }
.wui.mobile .wmicro { left: auto; right: 4px; bottom: calc(56px * var(--s) + 6px); transform-origin: 100% 100%; transform: scale(var(--sm)); }
.wui.mobile .wcap, .wui.mobile .wchat, .wui.mobile .wminimap { display: none; }
.wui .wmb { position: absolute; top: 0; width: 29px; height: 58px; pointer-events: none; cursor: pointer; }
.wui .wmb::after { content: ""; position: absolute; left: 0; right: 0; top: 18px; bottom: 0; pointer-events: auto; }
.wui .wmb-hl { opacity: 0; mix-blend-mode: screen; }
.wui .wmb:hover .wmb-hl { opacity: 1; }
.wui .wmb-port { border-radius: 2px; }

/* action and item buttons */
.wui .wab, .wui .wib { position: absolute; pointer-events: auto; }
.wui .wab { width: 36px; height: 36px; }
.wui .wib { width: 37px; height: 37px; cursor: pointer; }
.wui .wab-icon, .wui .wib-icon { position: absolute; inset: 0; background-size: cover; background-position: center; }
.wui .wab.empty .wab-icon, .wui .wab.empty .wab-normal, .wui .wab.empty .wab-cd { display: none; }
.wui .wab-cd { position: absolute; inset: 0; }
.wui .wab-cdt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: bold 17px FrizQT, Georgia, serif; font-variant-numeric: tabular-nums; color: #ffd100; text-shadow: -1px 0 #000, 1px 0 #000, 0 -1px #000, 0 1px #000, 1px 1px 2px #000; pointer-events: none; }
.wui.wnocdt .wab-cdt, .wui .wab.empty .wab-cdt { display: none; }
.wui .wab-border { mix-blend-mode: screen; background-blend-mode: multiply; opacity: .9; }
.wui .wab-hl { opacity: 0; mix-blend-mode: screen; }
.wui .wab:hover .wab-hl, .wui .wib:hover .wab-hl { opacity: 1; }
.wui .wab.active .wab-icon { box-shadow: 0 0 8px 2px #ffd100; }
.wui .wab-hot { display: none; position: absolute; left: 2px; top: 1px; font: bold 12px ArialN, 'Arial Narrow', sans-serif; color: #999; text-shadow: -1px 0 #000, 1px 0 #000, 0 -1px #000, 0 1px #000; }
.wui .wab-count { position: absolute; right: 2px; bottom: 1px; font: 14px ArialN, 'Arial Narrow', sans-serif; color: #fff; text-shadow: -1px 0 #000, 1px 0 #000, 0 -1px #000, 0 1px #000; }
.wui .wib.checked::after, .wui .wskill.on::after { content: ''; position: absolute; inset: 0; background: var(--wt-checked) center / 100% 100%; mix-blend-mode: screen; }
.wui .wib-q { position: absolute; inset: 1px; pointer-events: none; }
.wui .wib.unlearned .wib-icon, .wui .wtal.locked .wib-icon { filter: grayscale(1) brightness(.6); }

/* unit frames */
.wui .wunit { width: 232px; height: 100px; transform-origin: 0 0; transform: scale(var(--st)); pointer-events: auto; }
.wui .wplayer { left: calc(-19px * var(--st)); top: calc(4px * var(--st)); }
.wui .wtarget { left: calc(250px * var(--st)); top: calc(4px * var(--st)); }
.wui .wuf-bg { position: absolute; background: rgba(0, 0, 0, .5); }
.wui .wport { position: absolute; border-radius: 50%; background-size: cover; background-position: center; }
.wui .wport.dead { filter: grayscale(1) brightness(.6); }
.wui .wstatus { background-color: #ff2020; background-blend-mode: multiply; mix-blend-mode: screen; animation: wpulse 1s ease-in-out infinite alternate; }
@keyframes wpulse { from { opacity: .25; } to { opacity: .85; } }
.wui .wplayer.empowered .wport { box-shadow: 0 0 10px 3px rgba(255, 210, 0, .8); }
.wui .wnamebg { background-color: #ff0000; background-blend-mode: multiply; opacity: .9; }
.wui .wcast { position: absolute; left: 8px; top: 92px; width: 116px; height: 10px; background: rgba(0, 0, 0, .7); border: 1px solid #000; }
.wui .wcast-fill { height: 100%; width: 0; background: #ffb300; }
.wui .wcast-txt { position: absolute; inset: -1px 0 0; font-size: 9px; color: #fff; text-align: center; text-shadow: 1px 1px 0 #000; white-space: nowrap; overflow: hidden; }
.wui .wt-aff { position: absolute; left: 8px; top: 66px; display: flex; gap: 2px; }
.wui .wt-aff span { padding: 0 3px; border: 1px solid; border-radius: 2px; background: rgba(0, 0, 0, .75); font-size: 9px; line-height: 12px; text-shadow: 1px 1px 0 #000; }
.wui .wmount { left: calc(50% + 180px * var(--sb, var(--s))); bottom: calc(14px * var(--sb, var(--s))); width: 30px; height: 30px; transform-origin: 0 100%; transform: scale(var(--sb, var(--s))); pointer-events: auto; cursor: pointer; }
.wui .wmount .wicon { width: 30px; height: 30px; }
.wui .wmount.active .wicon { box-shadow: 0 0 6px 2px rgba(255, 210, 0, .8); }
.wui .wmount-cast { position: absolute; left: 0; right: 0; top: 0; height: 0; background: rgba(0, 0, 0, .6); pointer-events: none; }
.wui .wmount-key { position: absolute; right: 2px; top: 0; font: 10px/12px ArialN, Arial, sans-serif; color: #ccc; text-shadow: 1px 1px 0 #000; pointer-events: none; }
.wui.mobile .wmount { display: none; }
.wui .wpips { position: absolute; left: 108px; top: 64px; display: flex; gap: 3px; }
.wui .wpips i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #000; background: rgba(0, 0, 0, .6); box-shadow: inset 0 0 2px #000; }
.wui .wpips i.on { background: radial-gradient(circle at 35% 35%, #fff6b0, var(--pc, #ffd100) 60%, #000 120%); }
.wui .wemp { position: absolute; left: 106px; top: 76px; width: 119px; height: 12px; border: 1px solid #000; background: rgba(0, 0, 0, .7); }
.wui .wemp i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#ffd25a, #33937f); }
.wui .wemp b { position: absolute; top: -2px; bottom: -2px; width: 1px; background: #fff; box-shadow: 0 0 2px #000; }
.wui .wemp span { position: absolute; left: 0; right: 0; top: 0; font-size: 9px; line-height: 12px; text-align: center; color: #fff; text-shadow: 1px 1px 0 #000; }
.wui .wpet { left: calc(60px * var(--st)); top: calc(146px * var(--st)); width: 128px; height: 53px; transform-origin: 0 0; transform: scale(var(--st)); pointer-events: auto; }
.wui .wpet-port { border-radius: 50%; overflow: hidden; }
.wui .wpet-port .wicon { width: 100%; height: 100%; }
.wui .wpet.wpet-dead .wpet-port { filter: grayscale(1) brightness(.6); }
.wui .wpet .whp .wsb-txt { font-size: 9px; line-height: 8px; }
.wui .wpet-tame { position: absolute; left: 0; top: 12px; width: 180px; font-size: 11px; color: #ffd100; text-shadow: 1px 1px 0 #000; }
.wui .wpet-ab { position: absolute; left: 46px; top: 33px; display: flex; gap: 2px; }
.wui .wpet-a { position: relative; width: 16px; height: 16px; border: 1px solid #000; }
.wui .wpet-a .wicon { width: 16px; height: 16px; }
.wui .wpet-a i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(0, 0, 0, .65); }
.wui.wpeton .wparty { top: calc(204px * var(--st)); }
.wui .wparty { left: calc(10px * var(--st)); top: calc(152px * var(--st)); width: 128px; height: 260px; transform-origin: 0 0; transform: scale(var(--st)); }
.wui .wpm { position: absolute; left: 0; width: 128px; height: 53px; pointer-events: auto; cursor: pointer; }
.wui .wpm-dist { color: #ffd200; font-size: 9px; }
.wui .wpanel, .wui .wbag { transition: opacity .3s; }
.wui.wcombat .wpanel:not(:hover), .wui.wcombat .wbag:not(:hover) { opacity: .5; }
.wui .wpm-dead { position: absolute; left: 47px; top: 11px; width: 68px; text-align: right; font-size: 9px; line-height: 10px; color: #ff4040; text-shadow: 1px 1px 0 #000; }
.wui .wraid { left: calc(10px * var(--st)); top: calc(412px * var(--st)); transform-origin: 0 0; transform: scale(var(--st)); display: grid; grid-auto-flow: column; grid-template-rows: repeat(10, 14px); gap: 2px 4px; }
.wui.mobile .wparty { top: calc(130px * var(--st)); }
.wui.mobile .wraid { top: calc(360px * var(--st)); grid-template-rows: repeat(8, 14px); }
.wui .wrm { position: relative; width: 84px; height: 14px; background: rgba(0, 0, 0, .7); border: 1px solid #000; overflow: hidden; pointer-events: auto; }
.wui .wrm i { position: absolute; left: 0; top: 0; bottom: 0; background-image: var(--wt-bar); background-size: 100% 100%; background-blend-mode: multiply; }
.wui .wrm b { position: relative; display: block; font: 10px/12px ArialN, 'Arial Narrow', sans-serif; color: #fff; padding-left: 3px; white-space: nowrap; overflow: hidden; text-shadow: 1px 1px 0 #000; }
.wui .wrm.dn b { color: #ff9a9a; }
.wui .wrm.more { background: none; border: 0; }

/* known spells, counters, buffs */
.wui .wknown { left: calc(8px * var(--st)); top: calc(98px * var(--st)); display: flex; flex-wrap: wrap; max-width: 220px; gap: 2px; transform-origin: 0 0; transform: scale(var(--st)); pointer-events: auto; }
.wui .wm-arena { position: absolute; border: 2px solid rgba(214, 120, 40, 0.9); border-radius: 50%; box-shadow: 0 0 4px rgba(255, 200, 80, 0.6); pointer-events: none; }
body:has(#levelup:not(.hidden)) .wui .wlootsum { display: none; }
.wui .wlootsum { position: absolute; width: 170px; transform-origin: 100% 100%; padding: 9px 11px; font-size: 11px; line-height: 14px; color: #fff; text-shadow: 1px 1px 0 #000; pointer-events: none; }
.wui .wmulti { position: absolute; width: 500px; height: 36px; }
.wui .wknown .wicon { width: 22px; height: 22px; border: 1px solid #000; }
.wui .wtrig { left: calc(234px * var(--st)); top: calc(124px * var(--st)); display: flex; flex-direction: column; gap: 2px; transform-origin: 0 0; transform: scale(var(--st)); pointer-events: none; font-size: 10px; }
.wui .wtrg { display: flex; align-items: center; gap: 5px; padding: 0 5px; background: rgba(0, 0, 0, .55); border: 1px solid #3a4a6a; border-radius: 3px; color: #8fc3ff; text-shadow: 1px 1px 0 #000; white-space: nowrap; }
.wui .wtrg b { font-weight: normal; } .wui .wtrg span { color: #fff; } .wui .wtrg.on { border-color: #8fc3ff; box-shadow: 0 0 5px rgba(143, 195, 255, .7); }
.wui .wtrg i { width: 50px; height: 4px; background: rgba(255, 255, 255, .12); border: 1px solid #000; } .wui .wtrg em { display: block; height: 100%; background: #8fc3ff; }
.wui .warch { left: calc(32px * var(--s)); bottom: calc(272px * var(--sb, var(--s))); display: flex; flex-direction: column; gap: 2px; transform-origin: 0 100%; transform: scale(var(--s)); pointer-events: auto; font-size: 11px; }
.wui .warch-r { display: flex; align-items: center; gap: 5px; padding: 1px 5px; background: rgba(0, 0, 0, .55); border: 1px solid #5a4420; border-radius: 3px; color: #ff9a3c; text-shadow: 1px 1px 0 #000; }
.wui .warch-r b { font-weight: normal; min-width: 90px; } .wui .warch-r span { color: #fff; }
.wui .warch-r i { width: 60px; height: 5px; background: rgba(255, 255, 255, .12); border: 1px solid #000; } .wui .warch-r em { display: block; height: 100%; background: linear-gradient(90deg, #ff8000, #ffd100); }
.wui .warch-r.done { border-color: #ff8000; box-shadow: 0 0 6px rgba(255, 128, 0, .7); }
.wui.mobile .warch { display: none; }
.wui .wsets { left: calc(32px * var(--s)); bottom: calc(240px * var(--sb, var(--s))); display: flex; flex-wrap: wrap; gap: 3px; max-width: 260px; transform-origin: 0 100%; transform: scale(var(--s)); pointer-events: auto; }
.wui .wset { position: relative; width: 24px; height: 24px; border: 1px solid #000; box-shadow: 0 0 0 1px #5a4420; }
.wui .wset.on { box-shadow: 0 0 0 1px #66ccff, 0 0 5px rgba(102, 204, 255, .7); }
.wui .wset .wicon { width: 24px; height: 24px; }
.wui .wset span { position: absolute; right: 1px; bottom: 0; font: bold 10px ArialN, Arial, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000; }
.wui.mobile .wsets { display: none; }
.wui .wkeys { left: calc(234px * var(--st)); top: calc(98px * var(--st)); display: flex; gap: 3px; transform-origin: 0 0; transform: scale(var(--st)); pointer-events: auto; }
.wui .wkeys .wicon { width: 22px; height: 22px; border: 1px solid #ff8000; box-shadow: 0 0 4px rgba(255, 128, 0, .6); }
.wui .wtally { right: calc(178px * var(--st)); top: calc(4px * var(--st)); display: flex; align-items: center; gap: 14px; padding: 4px 11px; background: none; transform-origin: 100% 0; transform: scale(var(--st)); font-size: 15px; line-height: 20px; color: #b8b0a0; text-shadow: 1px 1px 0 #000; white-space: nowrap; }
.wui .wtally b { color: #fff; font-weight: normal; }
.wui .wtally span { display: inline-flex; align-items: center; gap: 4px; color: #f2e3b8; }
.wui .wtally em { font-style: normal; color: #ffd100; }
.wui .wtally .wt-ic { width: 16px; height: 16px; border: 1px solid #000; }
.wui .wtally .wcoin { vertical-align: middle; }
.wui .wtally.wbd-tip::after { border-width: 8px; border-image: var(--wb-tip) 16 / 8px; }
.wui .wtally.wbd-tip::before { inset: 2px; }
.wui .wbuffs { right: calc(178px * var(--st)); top: calc(32px * var(--st)); display: flex; flex-direction: row-reverse; gap: 4px; transform-origin: 100% 0; transform: scale(var(--st)); pointer-events: auto; }
.wui .wbuff { width: 26px; text-align: center; font: 10px/12px FrizQT, Georgia, serif; color: #ffd100; text-shadow: 1px 1px 0 #000; }
.wui .wbuff .wicon { display: block; width: 26px; height: 26px; border: 1px solid #000; }

/* minimap */
.wui .wminimap { right: 0; top: 0; width: 192px; height: 212px; transform-origin: 100% 0; transform: scale(var(--st)); }
.wui .wmm-canvas { position: absolute; border-radius: 50%; pointer-events: auto; cursor: pointer; }
.wui .wzone { color: #ffd100; text-align: center; }
.wui .wmm-tod { pointer-events: auto; }
.wui .wmm-trk { position: absolute; width: 33px; height: 33px; pointer-events: auto; }
.wui .wmm-trk-icon { position: absolute; left: 7px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background-size: cover; }
.wui .wminimap.mm-off > :not(.wmm-x):not(.wzone):not(:first-child) { display: none; }

/* chat */
.wui .wchat { left: calc(32px * var(--s)); bottom: calc(80px * var(--sb, var(--s))); width: 430px; height: 150px; transform-origin: 0 100%; transform: scale(var(--s)); pointer-events: auto; }
.wui.wmb1 .wchat { bottom: calc(122px * var(--sb, var(--s))); }
.wui .wchat-tabs { position: absolute; left: 0; top: -6px; height: 32px; display: flex; gap: 2px; opacity: 0; transition: opacity .2s; }
.wui .wchat:hover .wchat-tabs { opacity: 1; }
.wui .wchat-tab { position: relative; width: 96px; height: 32px; cursor: pointer; opacity: .6; }
.wui .wchat-tab.on { opacity: 1; }
.wui .wchat-tab span { position: absolute; left: 0; right: 0; top: 12px; text-align: center; font-size: 10px; color: #ffd100; text-shadow: 1px 1px 0 #000; }
.wui .wchat-log { position: absolute; left: 0; right: 0; top: 24px; bottom: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; font: 12px/14px ArialN, 'Arial Narrow', sans-serif; text-shadow: 1px 1px 0 #000; padding: 2px 4px; transition: background .2s; }
.wui .wchat-log::-webkit-scrollbar { display: none; }
.wui .wchat:hover .wchat-log { background: rgba(0, 0, 0, .3); }
.wui .wmsg { transition: opacity .5s; overflow-wrap: anywhere; flex: none; }
.wui .wchat-log > .wmsg:first-child { margin-top: auto; }
.wui .wmsg a { color: inherit; text-decoration: none; }

/* tooltip */
.wui .wtip { position: absolute; z-index: 50; max-width: 300px; min-width: 120px; padding: 9px 11px; font-size: 12px; line-height: 15px; color: #fff; pointer-events: none; text-shadow: 1px 1px 0 #000; }
.wui .tt-h { font-size: 14px; line-height: 18px; color: #fff; }
.wui .tt-r { display: flex; justify-content: space-between; gap: 12px; }
.tt-y { color: #ffd100; }
.tt-g { color: #888; }
.tt-gr { color: #1eff00; }
.tt-red { color: #ff2020; }
.tt-sp { margin-top: 6px; color: #fff; }
.tt-key { color: #888; font-size: 12px; }

/* backdrops (edge strips rebuilt as 3x3 border images in tex.js) */
.wbd-tip, .wbd-dlg, .wbd-gold { isolation: isolate; }
.wbd-tip::before, .wbd-dlg::before, .wbd-gold::before { content: ''; position: absolute; z-index: -1; pointer-events: none; }
.wbd-tip::after, .wbd-dlg::after, .wbd-gold::after { content: ''; position: absolute; inset: 0; border-style: solid; border-color: transparent; pointer-events: none; }
.wbd-tip::before { inset: 4px; background: rgba(0, 0, 0, .88); border-radius: 3px; }
.wbd-tip::after { border-width: 16px; border-image: var(--wb-tip) 16 / 16px; }
.wbd-dlg::before { inset: 11px; background: #000 var(--wt-dlg-bg) repeat; background-size: 64px; }
.wbd-dlg::after { border-width: var(--bw, 32px); border-image: var(--wb-dlg) 32 / var(--bw, 32px); }
.wbd-gold::before { inset: 11px; background: #000 var(--wt-gold-bg) repeat; background-size: 64px; }
.wbd-gold::after { border-width: var(--bw, 32px); border-image: var(--wb-gold) 32 / var(--bw, 32px); }

/* panels */
.wui .wpanel { width: 384px; height: 512px; transform-origin: 0 0; transform: scale(var(--sp)); pointer-events: auto; z-index: 5; }
.wui .wpanel-port { z-index: -1; }
.wui .wclose { position: absolute; width: 32px; height: 32px; background: var(--wt-close) center / 100% 100%; pointer-events: auto; cursor: pointer; z-index: 2; }
.wui .wclose:active { background-image: var(--wt-close-down); }
.wui .wclose:hover::after { content: ''; position: absolute; inset: 0; background: var(--wt-close-hi) center / 100% 100%; mix-blend-mode: screen; }
.wui .wtab { position: absolute; width: 115px; height: 32px; border-style: solid; border-width: 0 20px; border-image: var(--wt-tab) 0 20 fill / 0 20px; cursor: pointer; pointer-events: auto; }
.wui .wtab.on { border-image-source: var(--wt-tab-on); top: 429px !important; }
.wui .wtab span { display: block; text-align: center; margin: 8px -14px 0; font-size: 10px; color: #ffd100; white-space: nowrap; text-shadow: 1px 1px 0 #000; }
.wui .wtab.on span { color: #fff; margin-top: 12px; }
.wui .wlvl { color: #ffd100; }
.wui .wmodel { position: absolute; cursor: grab; pointer-events: auto; }
.wui .wmodel canvas { width: 100% !important; height: 100% !important; }
.wui .wstats { position: absolute; width: 230px; height: 85px; }
.wui .wstat-col { position: absolute; width: 104px; }
.wui .wstat { display: flex; justify-content: space-between; height: 13px; font-size: 10px; line-height: 13px; color: #ffd100; text-shadow: 1px 1px 0 #000; pointer-events: auto; }
.wui .wstat b { color: #fff; font-weight: normal; }
.wui .wrunstats { font-size: 10px; line-height: 14px; text-shadow: 1px 1px 0 #000; }
.wui .wrunstats .tt-h { font-size: 12px; line-height: 18px; color: #ffd100; text-align: center; }
.wui .wspell-name { position: absolute; width: 110px; font-size: 12px; line-height: 14px; color: #ffd100; text-shadow: 1px 1px 0 #000; pointer-events: none; }
.wui .wspell-name b { display: block; font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wui .wspell-name span { font-size: 10px; color: #bfa77a; }
.wui .wskill { position: absolute; width: 32px; height: 32px; pointer-events: auto; cursor: pointer; }
.wui .wskill-icon { position: absolute; inset: 0; background-size: cover; }
.wui .wtal-scroll { position: absolute; overflow-y: auto; overflow-x: hidden; pointer-events: auto; scrollbar-width: thin; scrollbar-color: #6b4f2a transparent; }
.wui .wtal-child { position: relative; width: 300px; }
.wui .wtal-slot { background-color: var(--tint, #808080); background-blend-mode: multiply; mix-blend-mode: normal; }
.wui .wtal-rb.dim { filter: brightness(.5); }
.wui .wtal-rank { font-size: 11px; }
.wui .wpoints { color: #ffd100; text-align: center; }
.wui .wpoints b { color: #fff; font-weight: normal; }
.wui .wquest, .wui .wsocial { position: absolute; overflow-y: auto; pointer-events: auto; color: #000; scrollbar-width: thin; }
.wui .wq-head { font: 18px Morpheus, Georgia, serif; color: #ffd100; text-shadow: 1px 1px 0 #000; margin: 4px 0 8px; }
.wui .wq { display: flex; justify-content: space-between; padding: 3px 4px; font-size: 12px; color: #ffd100; text-shadow: 1px 1px 0 #000; }
.wui .wq b { font-weight: normal; }
.wui .wq span { color: #bbb; font-size: 10px; }
.wui .wq.done b { color: #808080; }
.wui .wq-desc { margin-top: 14px; font: 13px/16px Morpheus, Georgia, serif; color: #2e1f0f; }
.wui .wq-desc b { font: 16px Morpheus, Georgia, serif; color: #000; display: block; }
.wui .wfriend { padding: 4px 6px; border-bottom: 1px solid rgba(255, 209, 0, .1); text-shadow: 1px 1px 0 #000; }
.wui .wfriend:hover { background: var(--wt-qhl) center / 100% 100%; }
.wui .wf-name { font-size: 12px; }
.wui .wf-name small { color: #888; font-size: 10px; }
.wui .wf-sub { font-size: 10px; color: #ccc; }
.wui .wfriend.dn .wf-name { opacity: .6; }
.wui .wcode { color: #fff; font-weight: normal; letter-spacing: 2px; }
.wui .wbag { width: 192px; transform-origin: 100% 100%; pointer-events: auto; z-index: 4; }
.wui .wbag-name { color: #fff; }
.wui .wbag-items .bagslot .wib-icon { opacity: .9; }
.wui .wbag-count { font-size: 10px; color: #fff; }
.wui .wbag-sort { font-size: 10px; line-height: 20px; padding: 0 2px; }
.wui .wib-set::before { content: ''; position: absolute; inset: -1px; z-index: 1; box-shadow: inset 0 0 0 1px #ffd100, 0 0 5px 1px rgba(255, 209, 0, .75); pointer-events: none; }
.wui .wib-up { position: absolute; left: 1px; top: 1px; width: 11px; height: 13px; z-index: 2; background: #1eff00; clip-path: polygon(50% 0, 100% 50%, 70% 50%, 70% 100%, 30% 100%, 30% 50%, 0 50%); filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000); pointer-events: none; }
.wui .wpopup { width: 320px; left: 50%; top: 22%; transform: translateX(-50%) scale(var(--st)); transform-origin: 50% 0; padding: 22px 24px 18px; pointer-events: auto; z-index: 14; text-align: center; --bw: 24px; }
.wui .wpopup-txt { font-size: 13px; line-height: 17px; color: #ffd100; text-shadow: 1px 1px 0 #000; margin-bottom: 12px; }
.wui .wpopup-btns { display: flex; justify-content: center; gap: 10px; }
.wui .wpopup-btns .wbtn { position: relative; width: 110px; }
.wui .wmoney { position: absolute; display: flex; align-items: center; gap: 2px; font: 14px ArialN, 'Arial Narrow', sans-serif; color: #fff; text-shadow: 1px 1px 0 #000; }
.wcoin { display: inline-block; width: 13px; height: 13px; background: var(--wt-coins) 0 0 / 52px 13px no-repeat; }
.wcoin.s { background-position: -13px 0; }
.wcoin.c { background-position: -26px 0; }

/* world map */
.wui .wmap { width: 1024px; height: 768px; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--smap)); pointer-events: auto; z-index: 10; }
.wui .wmap::before { content: ''; position: fixed; left: -100vw; top: -100vh; width: 300vw; height: 300vh; background: #000; z-index: -1; }
.wui .wdd { position: absolute; width: 180px; height: 64px; }
.wui .wmap-detail, .wui .wmap-marks { position: absolute; overflow: hidden; }
.wui .wmap-title { font-size: 16px; text-align: center; }
.wui .wmap-marks i { position: absolute; transform: translate(-50%, -50%); }
.wui .wm-player { width: 32px; height: 32px; background: var(--wt-wm-player) center / 100% 100%; }
.wui .wm-party { width: 16px; height: 16px; background: var(--wt-wm-party) center / 100% 100%; }
.wui .wm-elite { width: 10px; height: 10px; border-radius: 50%; background: #ff9a1f; border: 1px solid #000; }
.wui .wm-boss { width: 24px; height: 24px; background: var(--wt-skull) center / 100% 100%; }

/* game menu */
.wui .wgamemenu { width: 195px; left: 50%; top: 40%; transform: translate(-50%, -50%) scale(var(--st)); pointer-events: auto; z-index: 12; padding: 34px 24px 22px; }
.wdlg-header { position: absolute; left: 50%; top: -12px; width: 256px; height: 64px; transform: translateX(-50%); background: var(--wt-header) center / 100% 100%; text-align: center; z-index: 1; }
.wdlg-header span { display: block; margin-top: 14px; font-size: 12px; color: #ffd100; text-shadow: 1px 1px 0 #000; }
.wui .wgm-body { display: flex; flex-direction: column; gap: 1px; align-items: center; }
.wui .wgm-opts { position: absolute; left: 100%; top: 0; width: 230px; margin-left: 6px; padding: 14px; background: rgba(0, 0, 0, .85); border: 1px solid #6b4f2a; font-size: 11px; color: #ffd100; }
.wui .wgm-opts label { display: flex; justify-content: space-between; align-items: center; margin: 6px 0; gap: 8px; color: #fff; }
.wui .wgm-opts input { width: 110px; }
.wui .wkeys div { display: flex; justify-content: space-between; color: #fff; font-size: 11px; }
.wui .wkeys i { color: #ffd100; font-style: normal; }

/* UIPanelButtonTemplate (also used for every button on the restyled screens) */
.wbtn, body.wowui button { position: relative; height: 22px; padding: 0 6px; border-style: solid; border-color: transparent; border-width: 0 12px; border-radius: 0; border-image: var(--wc-btn-up) 0 12 fill / 0 12px; background: none; box-shadow: none; font: 12px/22px FrizQT, Georgia, serif; color: #ffd100; text-shadow: 1px 1px 0 #000; cursor: pointer; white-space: nowrap; pointer-events: auto; }
.wui .wbtn { position: absolute; }
.wui .wgm-body .wbtn { position: relative; width: 144px; height: 21px; }
.wbtn:active, body.wowui button:active { border-image-source: var(--wc-btn-down); }
.wbtn:hover, body.wowui button:hover { color: #fff; filter: brightness(1.15); border-color: transparent; }
.wbtn:disabled, body.wowui button:disabled { border-image-source: var(--wc-btn-dis); color: #7f7f7f; opacity: 1; }

/* ---------- restyled screens ---------- */
body.wowui { font-family: FrizQT, Georgia, serif; background: #000; --fbody: FrizQT, Georgia, serif; --ftitle: Morpheus, Georgia, serif; }
body.wowui #hud > #xpbar, body.wowui #unit, body.wowui #party, body.wowui #bottom, body.wowui #bossbar, body.wowui #tally { display: none !important; }
body.wowui #hud { font-family: FrizQT, Georgia, serif; }
body.wowui #top { top: calc(8px + 4px * var(--wst, 1)); }
body.wowui #timer { font: 28px FrizQT, Georgia, serif; color: #ffd100; text-shadow: 2px 2px 0 #000; }
body.wowui #nextBoss { font-size: 12px; color: #b8b0a0; text-shadow: 1px 1px 0 #000; }
body.wowui #banner { font: 30px FrizQT, Georgia, serif; color: #f3ead6; text-shadow: 2px 2px 1px #000, 0 0 6px #000; top: max(20%, var(--lfl-bot, 0px)); }
body.wowui #banner small { font: 18px FrizQT, Georgia, serif; color: #ff4040; font-style: normal; }
body.wowui #banner.zone { font: 64px FrizQT, Georgia, serif; color: #fff0c2; -webkit-text-stroke: 1px #000; text-shadow: 3px 3px 2px #000; }
body.wowui #downNote { background: none; border: 0; }
body.wowui #downNote b { font: 26px FrizQT, Georgia, serif; color: #ff2020; text-shadow: 2px 2px 0 #000; }
body.wowui #downNote span { color: #ffd100; text-shadow: 1px 1px 0 #000; }
body.wowui #downNote .rv { height: 12px; border: 1px solid #000; background: rgba(0, 0, 0, .7); }
body.wowui #rvfill { background: #ffd100 var(--wt-bar) 0 0 / 100% 100%; background-blend-mode: multiply; }
body.wowui #pickHint { bottom: calc(70px * var(--wss, 1)); color: #ffd100; font-family: FrizQT, Georgia, serif; text-shadow: 1px 1px 0 #000; }
body.wowui #toast { background: rgba(0, 0, 0, .85); border: 1px solid #6b4f2a; color: #ffd100; border-radius: 0; font-family: FrizQT, Georgia, serif; }

body.wowui .screen { background: #000 var(--wt-loading) center / cover no-repeat; }
body.wowui .screen::before { content: ''; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); pointer-events: none; }
body.wowui .frame { position: relative; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 18px 26px 18px; --bw: 32px; }
body.wowui .brand { font: 26px Morpheus, Georgia, serif; color: #ffd100; text-shadow: 2px 2px 0 #000; }
body.wowui .brand span { font-family: FrizQT, Georgia, serif; color: #fff; }
body.wowui .topbar { border-bottom: 0; background: none; }
body.wowui .ph, body.wowui .sh, body.wowui h1, body.wowui .zone.sel .zn, body.wowui .lz b, body.wowui .code, body.wowui .diff b { color: #ffd100; font-family: FrizQT, Georgia, serif; text-shadow: 1px 1px 0 #000; }
body.wowui .ph { background: none; border-bottom: 1px solid rgba(255, 209, 0, .25); }
body.wowui .pane, body.wowui .runbar, body.wowui .zone, body.wowui .cls, body.wowui .slots li, body.wowui .diff, body.wowui .loot { background: rgba(0, 0, 0, .55); border: 1px solid rgba(110, 90, 60, .7); border-radius: 0; box-shadow: none; }
body.wowui .cls.sel, body.wowui .zone.sel, body.wowui .race.sel { border-color: #ffd100; box-shadow: inset 0 0 0 1px #ffd100; background: rgba(60, 40, 10, .6); }
body.wowui .race { background: rgba(0, 0, 0, .55); border-radius: 0; }
body.wowui input, body.wowui select { background: rgba(0, 0, 0, .7); border: 1px solid #6b6b6b; border-radius: 0; color: #fff; font-family: FrizQT, Georgia, serif; }
body.wowui .namerow input { color: #ffd100; }
body.wowui button.enter { height: 32px; font-size: 16px; line-height: 32px; padding: 0 22px; color: #ffd100; letter-spacing: 0; }
body.wowui button.tall { height: auto; min-height: 44px; line-height: 1.2; padding: 6px 4px; }
body.wowui .tabs button { height: 26px; font-size: 12px; line-height: 26px; }
body.wowui .tabs button.on { color: #fff; filter: brightness(1.3); }
body.wowui .glyph.wcls { border: 0; background-color: transparent; background-image: var(--wt-classes); background-size: 400% 400%; box-shadow: 0 0 0 1px #000; }
body.wowui .sicon.wicon, body.wowui i.wicon { display: inline-block; width: 34px; height: 34px; border: 1px solid #000; border-radius: 0; background-size: cover; background-position: center; box-shadow: 0 0 0 1px rgba(255, 209, 0, .25); }
i.wicon { display: inline-block; background-size: cover; }
body.wowui .sicon.wicon.start { outline: 1px solid #ffd100; }

body.wowui #score th { color: #ffd100; font-family: FrizQT, Georgia, serif; }
body.wowui #score td { border-bottom-color: rgba(255, 255, 255, .1); }
body.wowui .endframe h1 { font: 34px Morpheus, Georgia, serif; }
@media (max-width: 700px) {
  body.wowui #top { left: auto; right: 6px; transform: none; text-align: right; width: auto; }
}
@media (max-width: 640px) {
  body.wowui .frame { padding: 14px 14px; --bw: 20px; }
}

/* WoW 1.12 cursors */
body.wowui, body.wowui *:not(input):not(textarea) { cursor: var(--cur, var(--cur-point, auto)) !important; }
body.wowui.cur-attack { --cur: var(--cur-attack); }
body.wowui.cur-cache { --cur: var(--cur-interact); }
body:has(#levelup:not(.hidden)) .wui .wchat { visibility: hidden; }
body.wowui #gate .zt { font: 40px FrizQT, Georgia, serif; -webkit-text-stroke: 1px #000; text-shadow: 2px 2px 2px #000; }
body.wowui #gate .zs { font: 18px FrizQT, Georgia, serif; text-shadow: 1px 1px 1px #000; margin-bottom: 18px; }
/* Like ZoneTextFrame, the zone name holds, then fades while the hero waits at the gate. */
body.wowui #gate .zt, body.wowui #gate .zs { animation: zonefade 18s ease-in both; }
@keyframes zonefade { 0%, 20% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 1000px) {
  .wui .wtally { gap: 10px; padding: 2px 8px; font-size: 12px; line-height: 17px; }
  .wui .wbuffs { top: calc(28px * var(--st)); }
}
body.wowui #nextBoss.nb-warn { color: #ff9a1f; }
body.wowui #nextBoss.nb-alert { color: #ff2020; }
.wui .wtally span { pointer-events: auto; }
.wui-toast { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); z-index: 60; font: 16px FrizQT, Georgia, serif; color: #ffd100; text-shadow: 1px 1px 0 #000, 0 0 4px #000; pointer-events: none; opacity: 0; }
.wui-toast.fade { animation: wuitoast 3s ease-in forwards; }
@keyframes wuitoast { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
/* OPT-13 High Contrast HUD (Esc > Options): solid backings, bar numbers and heavier outlines. */
.wui.whc .wchat-log { background: rgba(0, 0, 0, .6); }
.wui.whc .wtally, .wui.whc .wzone { background-color: rgba(0, 0, 0, .85); }
.wui.whc .wsb-txt { opacity: 1; }
.wui.whc .wtx, .wui.whc .wmsg, .wui.whc .wbuff, .wui.whc .wtally { text-shadow: -1px 0 #000, 1px 0 #000, 0 -1px #000, 0 1px #000, 1px 1px 2px #000; }
.wui.whc .wmsg { font-weight: bold; }
/* OPT-02 colourblind palettes: health bars follow --hp-col (set by LF.WUI.setPalette). */
.wui .whp .wsb-fill { background-color: var(--hp-col, rgb(0, 255, 0)) !important; }
/* HUD-32 gamepad face-button glyphs (LF.WUI.pad.glyph). */
.wpad { display: inline-block; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; font: bold 11px/16px ArialN, 'Arial Narrow', sans-serif; font-style: normal; text-align: center; color: #fff; text-shadow: 0 1px 1px #000; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), 0 1px 2px #000; }
.wpad-a { background: #3fa535; }
.wpad-b { background: #d23a2b; }
.wpad-x { background: #2a6fd6; }
.wpad-y { background: #e0b422; color: #2a1a00; text-shadow: none; }
/* HUD-29 key binding editor rows (Esc > Key Bindings). */
.wui .wkeys div { align-items: center; margin: 1px 0; }
.wui .wkbtn { border-image: none; filter: none; min-width: 74px; height: 17px; padding: 0 6px; border: 1px solid #6b4f2a; border-radius: 2px; background: rgba(0, 0, 0, .6); font: 11px/15px FrizQT, Georgia, serif; color: #ffd100; cursor: pointer; pointer-events: auto; }
.wui .wkbtn:hover { color: #fff; border-color: #c9a24a; }
.wui .wkbtn.on { color: #1eff00; border-color: #1eff00; }
.wui .wkreset { position: relative; display: block; width: 150px; height: 20px; margin: 8px auto 0; font-size: 11px; line-height: 20px; }
.wui .wgm-opts select { width: 110px; }
.wpad-rb { min-width: 22px; border-radius: 4px; background: #5a5a5a; }
.wui .wkswap { display: block !important; margin: 2px 0 6px; font-size: 11px; line-height: 13px; white-space: normal; }
/* Readability: party members flash red when hit, debuffs on yourself under the buffs, repeated chat lines show a count. */
.wui .wpm.whit .wport { box-shadow: 0 0 0 2px #ff2020, 0 0 10px 2px rgba(255, 32, 32, .8); }
.wui .wdebuffs { right: calc(178px * var(--st)); top: calc(66px * var(--st)); display: flex; flex-direction: row-reverse; gap: 4px; transform-origin: 100% 0; transform: scale(var(--st)); pointer-events: auto; }
.wui .wdebuff .wicon { border: 1px solid #cc0000; box-shadow: 0 0 0 1px #000; }
.wui .wdebuff span { color: #ff6060; }
.wui .wmsg-n { color: #bbb; }
@media (max-width: 1000px) { .wui .wdebuffs { top: calc(60px * var(--st)); } }
/* LOOT compare tooltips (ShoppingTooltip) with stat deltas. */
.wui .wtip-cmp { z-index: 49; }
.tt-up { color: #1eff00; }
.tt-up::before { content: '\25B2  '; font-size: 9px; }
.tt-down { color: #ff2020; }
.tt-down::before { content: '\25BC  '; font-size: 9px; }
/* CONTENT world objective on the world map, and the endless affix row under the clock. */
.wui .wm-obj { width: 18px; height: 18px; background: #ffcc33; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); filter: drop-shadow(0 0 1px #000); }
.wui .wm-obj-invasion { background: #b46cff; }
.wui .wm-obj-faire { background: #ff6fb4; }
.wui .wm-obj-portal { background: #4fc3ff; }
.wui .waffix { left: 50%; top: calc(66px * var(--st)); display: flex; gap: 3px; transform-origin: 50% 0; transform: translateX(-50%) scale(var(--st)); pointer-events: auto; }
.wui .waffix .wicon { width: 20px; height: 20px; border: 1px solid #000; box-shadow: 0 0 0 1px rgba(255, 209, 0, .35); }
/* LOOT stacks: copies carried in one bag slot, 1.12 ItemButton count style. */
.wui .wib-count { position: absolute; right: 2px; bottom: 1px; z-index: 2; font: 14px ArialN, 'Arial Narrow', sans-serif; color: #fff; text-shadow: -1px 0 #000, 1px 0 #000, 0 -1px #000, 0 1px #000; pointer-events: none; }
.wui.wui-tips { z-index: 1000; }
.wui .wchat-log [data-lfi] { cursor: pointer; pointer-events: auto; }
/* Fuse: picked cells, part-count badge, slot menu and the preview inside the confirm popup. */
.wui .wib-pickring { position: absolute; inset: -1px; z-index: 3; border: 2px solid #3fd0ff; box-shadow: 0 0 8px 2px rgba(63, 208, 255, .9), inset 0 0 6px rgba(63, 208, 255, .6); pointer-events: none; }
.wui .wib-lvl { position: absolute; right: 2px; top: 1px; z-index: 2; font: bold 10px/12px ArialN, Arial, sans-serif; color: #1eff00; text-shadow: 1px 1px 0 #000; pointer-events: none; }
.wui .wib-merged { background: rgba(120, 95, 40, .9); }
.wui .wib-parts { position: absolute; left: 1px; top: 0; z-index: 2; min-width: 11px; padding: 0 2px; border-radius: 6px; background: rgba(110, 40, 160, .9); font: bold 10px/12px ArialN, 'Arial Narrow', sans-serif; color: #fff; text-align: center; pointer-events: auto; }
.wui .wfusemenu { position: absolute; z-index: 15; min-width: 170px; padding: 10px 12px; font-size: 12px; line-height: 18px; color: #fff; pointer-events: auto; }
.wui .wfm-row { padding: 1px 6px; color: #ffd100; cursor: pointer; white-space: nowrap; }
.wui .wfm-row:hover { color: #fff; background: rgba(255, 209, 0, .15); }
.wui .wfm-clear { color: #bbb; }
.wui .wpopup-prev { position: relative; margin: 10px auto 6px; padding: 9px 11px; max-width: 260px; text-align: left; font-size: 12px; line-height: 15px; color: #fff; }
/* Centre text slots (audit 2): raid warnings on top, boss emotes and messages under them, the downed note below both and in front. */
body { --cslot: max(15%, var(--lfl-bot, 0px)); }
body .qol-rw { top: var(--cslot); }
body .qol-rwl { line-height: 32px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#banner, body.wowui #banner { top: calc(var(--cslot) + 68px); }
#banner.zone, body.wowui #banner.zone { top: var(--cslot); }
#downNote, body.wowui #downNote { top: calc(var(--cslot) + 156px); }
body:has(#downNote:not(.hidden)) #banner.show, body:has(#downNote:not(.hidden)) .qol-rw { opacity: 0.45; }
/* Mobility and signature buttons (js/mobility.js): bigger than bar slots, centred above the action bar. */
.wui .wabil { bottom: calc(64px * var(--sb, var(--s))); width: 36px; height: 36px; transform-origin: 50% 100%; transform: scale(calc(1.25 * var(--sb, var(--s)))); pointer-events: auto; cursor: pointer; }
.wui .wabil-mob { left: calc(50% - 64px * var(--sb, var(--s))); }
.wui .wabil-sig { left: calc(50% + 28px * var(--sb, var(--s))); }
.wui .wabil .wab-hl { display: none; } .wui .wabil:hover .wab-hl { display: block; }
.wui .wabil.ready .wab-icon { box-shadow: 0 0 6px 1px rgba(255, 209, 0, .55); }
.wui .wabil.active .wab-icon { box-shadow: 0 0 8px 2px rgba(160, 90, 255, .9); }
.wui .wabil-key { position: absolute; left: 0; right: 0; top: -14px; text-align: center; font: bold 11px ArialN, 'Arial Narrow', sans-serif; color: #ffd100; text-shadow: -1px 0 #000, 1px 0 #000, 0 -1px #000, 0 1px #000; pointer-events: none; }
.wui .wab.evo .wab-icon { box-shadow: inset 0 0 0 2px #ffd100, 0 0 8px 1px rgba(255, 190, 0, .75); }
/* WoW-style form controls everywhere (audit: native blue checkboxes, sliders and selects). */
input[type=checkbox], body.wowui input[type=checkbox] { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 18px; height: 18px; margin: 0; padding: 0; vertical-align: middle; border: 1px solid #8a6d2b; border-radius: 3px; background: linear-gradient(#1c140a, #080604); box-shadow: inset 0 0 4px #000; cursor: pointer; }
input[type=checkbox]:hover { border-color: #ffd100; }
input[type=checkbox]:checked::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #ffd100; border-width: 0 3px 3px 0; transform: rotate(45deg); filter: drop-shadow(0 0 2px #ff9a00); }
input[type=checkbox]:disabled { opacity: 0.45; cursor: default; }
input[type=range], body.wowui input[type=range] { -webkit-appearance: none; appearance: none; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border: 1px solid #000; border-radius: 3px; background: linear-gradient(#3a2a14, #22180c); box-shadow: 0 0 0 1px #6b5428; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 18px; margin-top: -7px; border: 1px solid #000; border-radius: 3px; background: linear-gradient(#ffe27a, #c9a24a 55%, #8a6418); box-shadow: 0 1px 3px #000; }
input[type=range]::-moz-range-track { height: 6px; border: 1px solid #000; border-radius: 3px; background: linear-gradient(#3a2a14, #22180c); }
input[type=range]::-moz-range-thumb { width: 12px; height: 18px; border: 1px solid #000; border-radius: 3px; background: linear-gradient(#ffe27a, #c9a24a 55%, #8a6418); }
select, body.wowui select { -webkit-appearance: none; appearance: none; padding: 3px 26px 3px 8px; border: 1px solid #6b5428; border-radius: 3px; background: #140e08 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23ffd100'/%3E%3C/svg%3E") no-repeat right 8px center; color: #f2e3b8; font-family: FrizQT, Georgia, serif; cursor: pointer; }
select:hover { border-color: #ffd100; }
select option { background: #140e08; color: #f2e3b8; }
#optsPanel .robox { display: flex; flex-direction: column; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); }
#optsRows { flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #6b5428 transparent; }
#runOpts .robox, #mountsPanel .robox { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #6b5428 transparent; }
.wui .wlh { animation: wlhFlash .5s ease-in-out 3; }
@keyframes wlhFlash { 50% { filter: drop-shadow(0 0 6px #ff2020) brightness(1.4); } }
.wui .wplayer .wsb-txt, .wui .wtarget .wsb-txt { font-size: 14px; line-height: 14px; }
