/* T3W Online - kit V2, round 3. Load AFTER ui2.css.
   Part 1: the hero card (used by both skins).
   Part 2: the "rich" skin: add the class u-rich on a root element and the same markup takes the generated pieces of ui2/rich/. */

/* ---------- cards (hand-drawn set): a PLAIN card. <div class="u-hc" style="--w:400px;--cls:#c8402f"> <div class="u-hc-bar"> name, native, mark </div> <div class="u-hc-art"> </div> </div>
   hero cards: the border has the class colour. monster cards: add "mob"; bosses and officers: add "boss" (gold border, star mark). ---------- */
.u-hc{position:relative;width:var(--w,400px);aspect-ratio:3/4.45;font-size:calc(var(--w,400px)/34);line-height:1.2;color:#3b2a1e;font-family:var(--u-font);flex:none;box-sizing:border-box;background:#f6ecd6 url(cards/paper.webp) center/cover;border:.3em solid var(--cls,#8a6a4a);border-radius:1.1em;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),0 1px 0 rgba(58,40,24,.35)}
.u-hc-bar{position:absolute;left:3%;right:3%;top:1.6%;height:8.4%;display:flex;align-items:center;gap:.55em;padding:0 .2em 0 .5em;border-bottom:1px solid rgba(90,60,30,.35)}
.u-hc-name{font:700 1.75em/1 Mitr,var(--u-font);white-space:nowrap}
.u-hc-native{font:400 1.05em/1 var(--u-font);color:#7a5632;white-space:nowrap}
.u-hc-mark{margin-left:auto;width:2.2em;height:2.2em;flex:none;border-radius:50%;border:1px solid rgba(60,40,20,.6);background:var(--el,var(--cls,#8a6a4a));color:#fff;font:700 1.2em/1 var(--u-font);display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 .14em rgba(255,255,255,.5);overflow:hidden}
.u-hc-mark img{width:100%;height:100%;display:block}
.u-hc-art{position:absolute;left:3.6%;right:3.6%;top:11.8%;bottom:3.2%;border:1px solid rgba(90,60,30,.55);border-radius:.35em;background:#efe2c6 center/cover no-repeat}
.u-hc.mini{border-width:2px;border-radius:5px}.u-hc.mini .u-hc-native,.u-hc.mini .u-hc-mark{display:none}.u-hc.mini .u-hc-name{font-size:3em}.u-hc.mini .u-hc-bar{height:12%;justify-content:center;padding:0}.u-hc.mini .u-hc-art{top:15.5%}
.u-hc.mob{--cls:#b39b78;border-width:.22em}.u-hc.mob .u-hc-name{font-size:1.55em}
.u-hc.boss{--cls:#d2a021;box-shadow:inset 0 0 0 1px #fff3c4,0 0 0 1px #7a5a10,0 1px 0 1px rgba(58,40,24,.35)}.u-hc.boss .u-hc-mark{background:#c8402f}
.u-hc.legend{--cls:#d2a021;box-shadow:inset 0 0 0 1px #fff3c4,0 0 0 1px #7a5a10,0 0 0 3px #e9c15a,0 0 0 4px #7a5a10}
.u-seal.ss{animation:u-ss-shine 2.6s ease-in-out infinite}
@keyframes u-ss-shine{0%,70%,100%{filter:brightness(1) drop-shadow(0 0 0 rgba(246,201,90,0))}82%{filter:brightness(1.25) drop-shadow(0 0 5px rgba(246,201,90,.9))}}
.u-rich .u-slot>img{width:28px;height:28px;margin:2px}.u-rich .u-slot.skill>img{width:32px;height:32px;margin:0}
.u-card>img{display:block;width:100%;height:100%;object-fit:cover}
/* ---------- the rich skin: generated pieces of ui2/rich/ (every piece has a @2x file for high-density screens) ---------- */
.u-rich .u-win{background:none;border-color:transparent;border-image:url(rich/win.png) 17 fill/17px/2px stretch;box-shadow:none;filter:drop-shadow(0 2px 0 rgba(58,40,24,.2)) drop-shadow(0 4px 6px rgba(58,40,24,.16))}
.u-rich .u-body{padding:9px}
.u-rich .u-title{position:relative;height:24px;margin:1px 1px 0;padding:0 5px 0 24px;background:none;border:0 solid transparent;border-image:url(rich/titlebar.png) 0 37 0 6 fill/0 37px 0 6px;border-radius:0;box-shadow:none}
.u-rich .u-title::before{position:absolute;left:3px;top:-5px;width:17px;height:30px;background:url(rich/knot.png) no-repeat}
.u-rich .u-x{width:18px;height:18px;background:url(rich/close.png) center no-repeat}
.u-rich .u-x:hover{background-image:url(rich/close-hover.png)}
.u-rich .u-plate{background:none;border-color:transparent;border-image:url(rich/plate.png) 7 fill/7px/1px stretch;box-shadow:none;filter:drop-shadow(0 2px 0 rgba(58,40,24,.22))}
.u-rich .u-tip{border-image:url(rich/tooltip.png) 8 36 23 8 fill/8px 36px 23px 8px/1px stretch}
.u-rich .u-callout{border-image:url(rich/callout.png) 0 18 fill/0 18px/1px stretch;color:#fff3d6;height:28px;line-height:20px;padding-left:20px!important;padding-right:20px!important}
.u-rich .u-callout .u-red{color:#ffb14a}
.u-rich .u-well{background:none;border-color:transparent;border-image:url(rich/well.png) 7 fill/7px stretch}
.u-rich .u-btn{background:none;border-color:transparent;border-image:url(rich/btn-normal.png) 6 7 fill/6px 7px/1px stretch;box-shadow:none;transition:transform .08s,filter .12s}
.u-rich .u-btn:hover{border-image-source:url(rich/btn-normal-hover.png);transform:translateY(-1px)}
.u-rich .u-btn:active{border-image-source:url(rich/btn-normal-pressed.png);transform:translateY(1px) scale(.98)}
.u-rich .u-btn.primary{border-image-source:url(rich/btn-primary.png);color:#fff;text-shadow:0 1px 0 #1d6654}
.u-rich .u-btn.primary:hover{border-image-source:url(rich/btn-primary-hover.png)}
.u-rich .u-btn.primary:active{border-image-source:url(rich/btn-primary-pressed.png)}
.u-rich .u-btn.danger{border-image-source:url(rich/btn-danger.png);color:#fff;text-shadow:0 1px 0 #7f2318}
.u-rich .u-btn.danger:hover{border-image-source:url(rich/btn-danger-hover.png)}
.u-rich .u-btn.danger:active{border-image-source:url(rich/btn-danger-pressed.png)}
.u-rich .u-btn.secondary{border-image-source:url(rich/btn-secondary.png);color:#fff3d6;text-shadow:0 1px 0 #4a2c1a}
.u-rich .u-btn.secondary:hover{border-image-source:url(rich/btn-secondary-hover.png)}
.u-rich .u-btn.secondary:active{border-image-source:url(rich/btn-secondary-pressed.png)}
.u-rich .u-btn:disabled,.u-rich .u-btn.is-disabled{border-image-source:url(rich/btn-disabled.png);color:#8a7560;text-shadow:none;transform:none}
.u-rich .u-btn.primary:disabled,.u-rich .u-btn.primary.is-disabled{border-image-source:url(rich/btn-primary-disabled.png);color:#eef3ea}
.u-rich .u-btn.danger:disabled,.u-rich .u-btn.danger.is-disabled{border-image-source:url(rich/btn-danger-disabled.png);color:#f3e6e6}
.u-rich .u-btn.secondary:disabled,.u-rich .u-btn.secondary.is-disabled{border-image-source:url(rich/btn-secondary-disabled.png);color:#e6ded6}
.u-rich .u-btn.sq{border-image:url(rich/btn-sq.png) 5 fill/5px/1px stretch}
.u-rich .u-btn.sq:hover{border-image-source:url(rich/btn-sq-hover.png)}
.u-rich .u-btn.sq:active{border-image-source:url(rich/btn-sq-pressed.png)}
.u-rich .u-btn.sq.primary{border-image:url(rich/btn-primary.png) 6 7 fill/6px 7px/1px stretch}
.u-rich .u-tab{background:none;border-color:transparent;border-image:url(rich/tab.png) 7 9 1 fill/7px 9px 1px stretch;box-shadow:none}
.u-rich .u-tab.on{border-image-source:url(rich/tab-active.png);box-shadow:none}
.u-rich .u-slot{border-color:transparent;background:url(rich/slot-empty.png) center/100% 100% no-repeat}
.u-rich .u-slot.q-common{background-image:url(rich/slot-common.png)}
.u-rich .u-slot.q-uncommon{background-image:url(rich/slot-uncommon.png)}
.u-rich .u-slot.q-rare{background-image:url(rich/slot-rare.png)}
.u-rich .u-slot.q-epic{background-image:url(rich/slot-epic.png)}
.u-rich .u-slot.q-legend{background-image:url(rich/slot-legend.png)}
.u-rich .u-slot.skill{background-image:url(rich/slot-skill.png)}
.u-rich .u-slot.empower{background-image:url(rich/slot-empower.png);box-shadow:none}
.u-rich .u-slot.ultimate{background-image:url(rich/slot-ultimate.png);box-shadow:none}
.u-rich .u-slot:hover{filter:brightness(1.06)}
.u-rich .u-bar>i{background:url(rich/fill-hp.png) 0 0/auto 100% repeat-x;box-shadow:none}
.u-rich .u-bar.sp>i{background-image:url(rich/fill-sp.png)}
.u-rich .u-bar.exp>i{background-image:url(rich/fill-exp.png)}
.u-rich .u-bar.cast>i{background-image:url(rich/fill-cast.png)}
.u-rich .u-bar.loyalty>i{background-image:url(rich/fill-loyalty.png)}
.u-rich .u-bar.boss>i{background-image:url(rich/fill-hp.png)}
.u-rich .u-check{width:16px;height:16px;background:url(rich/check-off.png) center/100% 100%}
.u-rich .u-check.on{background-image:url(rich/check-on.png)}
.u-rich .u-toggle{width:37px;height:18px;background:url(rich/toggle-off.png) center/100% 100%}
.u-rich .u-toggle.on{background-image:url(rich/toggle-on.png)}
.u-rich .u-toggle.auto{width:51px;height:20px;background-image:url(rich/auto-off.png)}
.u-rich .u-toggle.auto.on{width:42px;background-image:url(rich/auto-on.png)}
.u-rich .u-tool{background:none!important;border-color:transparent;border-image:url(rich/tool.png) 5 fill/5px/1px stretch;box-shadow:none;transition:transform .08s}
.u-rich .u-tool:hover{border-image-source:url(rich/tool-hover.png);transform:translateY(-1px)}
/* new controls (same names in both skins; the plain skin draws them with CSS) */
.u-radio{width:14px;height:14px;border-radius:50%;border:1px solid var(--u-line);background:var(--u-paper);display:inline-block;vertical-align:-3px}.u-radio.on{box-shadow:inset 0 0 0 3px var(--u-paper),inset 0 0 0 7px var(--u-jade)}
.u-rich .u-radio{width:16px;height:16px;border:0;border-radius:0;box-shadow:none;background:url(rich/radio-off.png) center/100% 100%}.u-rich .u-radio.on{background-image:url(rich/radio-on.png);box-shadow:none}
.u-step{width:18px;height:18px;border:1px solid var(--u-line);border-radius:3px;background:var(--u-paper) center no-repeat;display:inline-block;vertical-align:middle;padding:0;font:700 12px/16px var(--u-num);color:var(--u-ink);text-align:center}
.u-rich .u-step{border:0;border-radius:0;font-size:0;width:19px}
.u-rich .u-step.left{background-image:url(rich/arrow-left.png)}.u-rich .u-step.right{background-image:url(rich/arrow-right.png)}.u-rich .u-step.up{background-image:url(rich/arrow-up.png)}.u-rich .u-step.down{background-image:url(rich/arrow-down.png)}.u-rich .u-step.plus{background-image:url(rich/plus.png)}.u-rich .u-step.minus{background-image:url(rich/minus.png)}
.u-slider{position:relative;height:8px;border-radius:4px;border:1px solid var(--u-line);background:linear-gradient(90deg,var(--u-jade) var(--v,50%),var(--u-track) 0)}
.u-slider>i{position:absolute;left:var(--v,50%);top:50%;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;border:1px solid var(--u-line);background:var(--u-paper)}
.u-rich .u-slider{border:0 solid transparent;border-image:url(rich/slider-track.png) 0 5 fill/0 5px;background:none}
.u-rich .u-slider::before{content:"";position:absolute;left:2px;top:2px;bottom:2px;width:calc(var(--v,50%) - 2px);border-radius:3px;background:url(rich/fill-cast.png) 0 0/auto 100%}
.u-rich .u-slider>i{width:14px;height:14px;margin:-7px 0 0 -7px;border:0;background:url(rich/slider-knob.png)}
.u-rich .u-scroll{width:8px;border:0 solid transparent;border-image:url(rich/scroll-track.png) 5 0 fill/5px 0;position:relative}
.u-rich .u-scroll>i{position:absolute;left:1px;width:6px;border:0 solid transparent;border-image:url(rich/scroll-thumb.png) 3 0 fill/3px 0}
.u-progress{position:relative;height:24px}
.u-rich .u-progress{border:0 solid transparent;border-image:url(rich/progress.png) 0 41 fill/0 41px}
.u-rich .u-progress>i{position:absolute;left:30px;top:7px;bottom:7px;width:calc((100% - 60px)*var(--v,.5));border-radius:4px;background:url(rich/fill-exp.png) 0 0/auto 100%;overflow:hidden}
.u-portrait-ring{display:none}
.u-rich .u-portrait-ring{display:block;position:absolute;left:1px;top:4px;width:56px;height:52px;background:url(rich/portrait-ring.png) center/100% 100%;pointer-events:none}
.u-rich .u-portrait{border-radius:50%;border-image:none;border-color:transparent}
/* brush font for summon names and big titles: Ma Shan Zheng, SIL Open Font License (fonts/OFL-MaShanZheng.txt) */
@font-face{font-family:'T3W Brush';src:url(fonts/MaShanZheng-Regular.woff2) format('woff2');font-display:swap}
.u-brush{font-family:'T3W Brush','KaiTi','STKaiti',serif;font-weight:400}
