:root { --ember: #ff9a3c; --aff-mon: #ff7a66; --aff-you: #b9a2ff; }
.itip.sigil { --rc: #ffb27a; }
img.item-art.art.dull { filter: grayscale(1) brightness(.78) contrast(.92) drop-shadow(0 .2rem .2rem rgba(0,0,0,.7)); }
#trialwin { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 74rem; max-width: calc(100vw - 1.6rem); max-height: calc(100vh - 1.6rem); z-index: 8; }
.tw-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1rem; }
.tw-about { flex: none; display: flex; flex-direction: column; gap: .4rem; }
.tw-say { font-size: max(11px, 1.3rem); line-height: 1.5; color: var(--ink2); }
#trialwin h5 { flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: .6rem .2rem .2rem; font: 600 max(11px, 1.2rem) var(--serif); letter-spacing: .1em; color: var(--brass); }
#trialwin h5 small { font: 400 max(10px, 1.1rem) var(--sans); letter-spacing: 0; color: var(--ink3); }
#trialwin h5 small b { font-weight: 600; color: var(--ink2); }
.tw-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.tw-step { position: relative; display: grid; justify-items: center; align-content: start; gap: .1rem; padding: 1rem .6rem .9rem; text-align: center; border: 0 solid transparent; border-image: url(../assets/ui/dark/inset.png) 16 fill / .8rem; }
.tw-ic { position: relative; width: 6rem; height: 6rem; margin-bottom: .3rem; filter: drop-shadow(0 .3rem .4rem rgba(0,0,0,.7)); }
.tw-ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tw-k { font: 600 max(13px, 1.6rem)/1.3 var(--serif); letter-spacing: .04em; color: var(--brass-hi); }
.tw-need, .tw-rounds { font-size: max(10px, 1.15rem); line-height: 1.45; color: var(--ink3); white-space: nowrap; }
.tw-need b, .tw-rounds b { font-weight: 600; color: var(--ink); }
.tw-rounds i { font-style: normal; color: var(--ember); }
.tw-rounds i + span { color: var(--ember); font-weight: 600; }
.tw-step em { box-sizing: border-box; max-width: 100%; margin-top: .5rem; padding: .2rem .8rem; font: 600 max(10px, 1.1rem)/1.35 var(--sans); font-style: normal; border: 1px solid; }
.tw-step em.tw-pts { color: var(--r2); border-color: rgba(242,212,99,.35); background: rgba(242,212,99,.07); }
.tw-step em.tw-pts b { font-weight: 700; }
.tw-step em.tw-ok { color: var(--teal); border-color: rgba(72,194,176,.4); background: rgba(72,194,176,.08); }
.tw-step em.tw-ok::before { content: '✔ '; }
.tw-step.done .tw-k { color: var(--teal); }
.tw-bag { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tw-list { flex: 1; min-height: 6.4rem; max-height: 30rem; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: .4rem; padding: .7rem; border: 0 solid transparent; border-image: url(../assets/ui/dark/inset.png) 16 fill / .8rem; touch-action: pan-y; }
.win .row.tw-row { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; min-height: 5.4rem; padding: .4rem 1.3rem .4rem .6rem; cursor: pointer; }
.win .row.tw-row.sel { border-image-source: url(../assets/ui/dark/row_on.png); }
.win .row.tw-row.off { opacity: 1; cursor: default; }
.win .row.tw-row.off .cell, .win .row.tw-row.off .tw-nm { opacity: .45; }
.tw-row .cell { width: 4.4rem; height: 4.4rem; pointer-events: none; }
.tw-row .cell i.lv { display: none; }
.tw-nm { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: max(12px, 1.4rem); }
.tw-nm b { font-weight: 600; color: #ffb27a; }
.tw-nm i { font-style: normal; margin-left: .5rem; color: var(--ink3); font-size: max(10px, 1.15rem); }
.tw-nm i + b { color: var(--ink); }
.win .row.tw-row small { color: var(--ink2); }
.win .row.tw-row small b { font-weight: 600; color: var(--ink); overflow: visible; }
.win .row.tw-row small u { text-decoration: none; color: var(--ink3); }
.win .row.tw-row small i { font-style: normal; color: var(--ember); }
.win .row.tw-row small i + span { color: var(--ember); }
.win .row.tw-row small.bad, .win .row.tw-row small.bad b { color: #ff7a6a; }
.tw-row em { min-width: 6.4rem; text-align: right; font: 600 max(10px, 1.15rem)/1.3 var(--sans); font-style: normal; white-space: nowrap; }
.tw-row em.tw-new { color: var(--r2); } .tw-row em.tw-new b { font-weight: 700; overflow: visible; }
.tw-row em.tw-old { color: var(--ink3); font-weight: 400; }
.tw-none { display: flex; flex-direction: column; gap: .4rem; padding: 1.6rem 1rem; text-align: center; line-height: 1.5; }
.tw-none b { font: 600 max(13px, 1.5rem) var(--serif); color: var(--ink2); }
#trialwin footer { margin-top: 1rem; }
#trialwin footer .tw-note { flex: 1; text-align: left; font-size: max(10px, 1.15rem); line-height: 1.4; color: var(--ink3); }
#trialwin .tw-go { flex: none; min-width: 19rem; min-height: 4.2rem; font-size: max(13px, 1.5rem); }
#trialwin .tw-go.armed { border-image-source: url(../assets/ui/dark/btn_primary.png) !important; color: #1a1206 !important; box-shadow: 0 0 0 2px #e0443a, 0 0 1.6rem rgba(224,68,58,.65); }
#trial-hud { position: absolute; z-index: 3; left: 50%; top: calc(1.6rem + var(--sat)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .5rem; width: max-content; max-width: 64rem; }
#trial-hud.hidden, #trial-pick.hidden, #trial-banner.hidden, #trial-result.hidden, #trial-fail.hidden, .tr-tip.hidden { display: none; }
body.patch-pending #trial-hud { top: calc(var(--patch-h, 0px) + 1rem + var(--sat)); }
body.patch-pending #trial-banner { top: calc(var(--patch-h, 0px) + 12.4rem + var(--sat)); }
.tr-plate { position: relative; display: flex; align-items: stretch; min-width: 42rem; height: 6rem; color: var(--ink); pointer-events: auto;
background: linear-gradient(#1d1915, #0c0a08); border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--brass-lo), inset 0 0 0 .25rem #14110e, inset 0 0 0 calc(.25rem + 1px) rgba(140,111,63,.55), 0 .5rem 1.4rem rgba(0,0,0,.6);
clip-path: polygon(1.5rem 0, calc(100% - 1.5rem) 0, 100% 1.5rem, 100% calc(100% - 1.5rem), calc(100% - 1.5rem) 100%, 1.5rem 100%, 0 calc(100% - 1.5rem), 0 1.5rem); }
body.tr-art-plate .tr-plate { background: none; border: 0 solid transparent; border-width: 0 3rem; border-image: var(--tr-plate) 0 96 fill / 0 4.8rem; box-shadow: none; clip-path: none; height: 4.8rem; filter: drop-shadow(0 .4rem .7rem rgba(0,0,0,.55)); }
body.tr-art-plate .tr-step { flex-direction: row; gap: .6rem; min-width: 0; padding: 0 0 0 .2rem; border: 0; background: none; }
body.tr-art-plate .tr-step b { font-size: max(15px, 2.2rem); }
body.tr-art-plate .tr-step::after, body.tr-art-plate #hud .tr-leave::before { content: ''; flex: none; align-self: center; width: 1px; height: 2.2rem; background: rgba(140,111,63,.5); }
body.tr-art-plate .tr-step::after { margin-left: .8rem; } body.tr-art-plate #hud .tr-leave::before { margin-right: .7rem; }
body.tr-art-plate #hud .tr-leave { align-self: center; height: 3.2rem; padding: 0 .2rem 0 0; border: 0; }
body.tr-art-plate .tr-round { font-size: max(16px, 2.3rem); }
body.tr-art-plate #trial-hud.boss .tr-plate { box-shadow: none; filter: drop-shadow(0 0 .3rem rgba(255,90,60,.9)) drop-shadow(0 0 1.2rem rgba(224,60,40,.5)); }
.tr-step { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 7.6rem; padding: 0 .8rem 0 1.6rem; line-height: 1.1; border-right: 1px solid rgba(140,111,63,.4); background: linear-gradient(90deg, rgba(255,154,60,.14), transparent); }
.tr-step i { font: 600 max(10px, 1.15rem)/1.2 var(--sans); font-style: normal; color: var(--ink3); white-space: nowrap; }
.tr-step b { font: 700 max(16px, 2.4rem)/1 var(--serif); color: var(--ember); text-shadow: 0 0 .8rem rgba(255,154,60,.45); }
.tr-step small { font: 600 max(9px, 1.05rem)/1.2 var(--sans); color: var(--ink3); white-space: nowrap; }
.tr-main { flex: 1; display: flex; align-items: center; justify-content: center; gap: 1.6rem; padding: 0 1.6rem; white-space: nowrap; }
.tr-round { font: 600 max(17px, 2.5rem)/1 var(--serif); letter-spacing: .05em; color: var(--brass-hi); text-shadow: 0 .2rem 0 #000; font-variant-numeric: tabular-nums; }
.tr-round i { font-style: normal; color: var(--ink3); font-weight: 400; }
.tr-state { font: 600 max(13px, 1.8rem)/1 var(--sans); color: var(--ink2); }
.tr-left { display: inline-flex; align-items: center; gap: .5rem; }
.tr-left svg { width: 2.4rem; height: 2.4rem; color: #d9cfc0; }
.tr-left b, .tr-choose b { font: 700 max(17px, 2.5rem)/1 var(--serif); color: #fff; font-variant-numeric: tabular-nums; min-width: 1.4em; display: inline-block; text-align: left; }
.tr-choose { color: var(--ember); } .tr-choose b { color: var(--ember); text-align: center; }
.tr-open { color: var(--teal); } .tr-boss { color: #ff8a70; font-family: var(--serif); letter-spacing: .04em; }
#trial-hud[data-st="done"] .tr-round { color: var(--teal); }
#trial-hud.boss .tr-round { color: #ff6a52; }
#trial-hud.boss .tr-plate { box-shadow: inset 0 0 0 1px #6a2018, inset 0 0 0 .25rem #14110e, inset 0 0 0 calc(.25rem + 1px) rgba(224,85,74,.6), 0 0 1.6rem rgba(224,60,40,.35); }
#hud .tr-leave { flex: none; display: flex; align-items: center; gap: .4rem; padding: 0 1.6rem 0 1rem; font: 600 max(12px, 1.5rem)/1 var(--sans); color: var(--ink2); border-left: 1px solid rgba(140,111,63,.4); white-space: nowrap; }
#hud .tr-leave svg { width: 2rem; height: 2rem; }
#hud .tr-leave:hover { color: var(--brass-hi); background: rgba(216,184,113,.08); }
#hud .tr-leave.armed { color: #ffd0c4; background: rgba(200,40,28,.4); }
.tr-time { width: calc(100% - 3rem); height: .4rem; margin-top: -.3rem; background: #000; box-shadow: 0 0 0 1px var(--brass-lo); visibility: hidden; }
.tr-time u { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #c8601c, var(--ember)); transition: width .2s linear; }
#trial-hud[data-st="pick"] .tr-time { visibility: visible; }
#trial-hud.low .tr-time u { background: #ff4a34; } #trial-hud.low .tr-choose, #trial-hud.low .tr-choose b { color: #ff6a52; }
.tr-affs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; max-width: 46rem; }
.tr-affs:empty { display: none; }
#hud .tr-aff { position: relative; width: 4.2rem; height: 4.2rem; min-width: 26px; min-height: 26px; border-radius: 8%; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--aff-mon), 0 .2rem .5rem rgba(0,0,0,.6); }
#hud .tr-aff.you { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--aff-you), 0 .2rem .5rem rgba(0,0,0,.6); }
.tr-aff img { display: block; width: 100%; height: 100%; border-radius: 8%; pointer-events: none; }
.tr-aff em, .tc-stack { position: absolute; right: -.5rem; bottom: -.5rem; min-width: 1.8rem; padding: 0 .3rem; font: 700 max(9px, 1.05rem)/1.6rem var(--serif); font-style: normal; text-align: center; color: #1a1206; background: linear-gradient(#f0d48c, #b98f42); border: 1px solid #000; }
.tr-tip { width: max-content; max-width: min(40rem, 92vw); display: grid; gap: .2rem; padding: .3rem 1rem .5rem; text-align: center; pointer-events: none; border: .8rem solid transparent; border-image: url(../assets/ui/dark/tip.png) 16 fill / .8rem; }
.tr-tip b { font: 600 max(13px, 1.5rem)/1.3 var(--serif); color: var(--aff-mon); } .tr-tip.you b { color: var(--aff-you); }
.tr-tip b em { font-style: normal; color: var(--r2); }
.tr-tip span { font-size: max(11px, 1.3rem); line-height: 1.4; color: var(--ink); }
.tr-tip small { font-size: max(10px, 1.1rem); color: var(--r2); } .tr-tip small b { font: inherit; font-weight: 700; color: inherit !important; }
.tr-tip i { font: 400 max(10px, 1.1rem)/1.3 var(--sans); font-style: normal; color: var(--ink3); }
#trial-pick { position: absolute; z-index: 9; left: 50%; bottom: calc(18.4rem + var(--sab)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .7rem; width: max-content; animation: tr-rise .3s ease-out both; }
@keyframes tr-rise { from { opacity: 0; transform: translateX(-50%) translateY(2.4rem); } }
.tp-head { display: flex; align-items: baseline; gap: 1.2rem; padding: .2rem 1.6rem .3rem; border: .8rem solid transparent; border-image: url(../assets/ui/dark/glass.png) 16 fill / .8rem; white-space: nowrap; }
.tp-head b { font: 600 max(14px, 1.9rem)/1.3 var(--serif); letter-spacing: .06em; color: var(--ember); text-shadow: 0 .2rem 0 #000; }
.tp-head small { font-size: max(10px, 1.2rem); color: var(--ink2); }
.tp-head em { min-width: 1.6em; font: 700 max(15px, 2.1rem)/1 var(--serif); font-style: normal; text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
#trial-pick.low .tp-head em { color: #ff6a52; animation: tr-blink .5s steps(2) infinite; }
@keyframes tr-blink { 50% { opacity: .55; } }
.tp-bar { align-self: stretch; height: .4rem; margin: -.4rem 1.2rem 0; background: #000; box-shadow: 0 0 0 1px var(--brass-lo); }
.tp-bar u { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #c8601c, var(--ember)); transition: width .2s linear; }
#trial-pick.low .tp-bar u { background: #ff4a34; }
.tp-cards { display: flex; gap: 1.4rem; }
#hud .tr-card { position: relative; box-sizing: border-box; width: 26rem; height: 28rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.8rem 1.6rem 3rem; text-align: center; color: var(--ink); cursor: pointer;
background: linear-gradient(rgba(10,8,7,.2), rgba(10,8,7,.72)), #15120e url(../assets/ui/dark/panel_fill.png) 0 0 / 25.6rem 25.6rem; border: 1px solid #000;
box-shadow: inset 0 0 0 1px #4a3c26, inset 0 0 0 .5rem #100d0b, inset 0 0 0 calc(.5rem + 1px) var(--brass-lo), 0 .8rem 2rem rgba(0,0,0,.7); transition: transform .12s, filter .12s; }
#hud .tr-card::before { content: ''; position: absolute; inset: .9rem; pointer-events: none;
background: radial-gradient(circle, #ffd08a 0, var(--ember) 35%, #5a2206 70%, transparent 72%) 0 0 / .9rem .9rem no-repeat, radial-gradient(circle, #ffd08a 0, var(--ember) 35%, #5a2206 70%, transparent 72%) 100% 0 / .9rem .9rem no-repeat,
radial-gradient(circle, #ffd08a 0, var(--ember) 35%, #5a2206 70%, transparent 72%) 0 100% / .9rem .9rem no-repeat, radial-gradient(circle, #ffd08a 0, var(--ember) 35%, #5a2206 70%, transparent 72%) 100% 100% / .9rem .9rem no-repeat; opacity: .55; }
body.pc #hud .tr-card:hover, #hud .tr-card.picked { transform: translateY(-.8rem); filter: brightness(1.15);
box-shadow: inset 0 0 0 1px var(--brass), inset 0 0 0 .5rem #100d0b, inset 0 0 0 calc(.5rem + 1px) var(--brass-hi), 0 0 2.4rem rgba(255,154,60,.35), 0 .8rem 2rem rgba(0,0,0,.7); }
body.pc #hud .tr-card:hover::before, #hud .tr-card.picked::before { opacity: 1; }
body.tr-art-card #hud .tr-card { background: #110e0b url(../assets/ui/dark/panel_fill.png) 0 0 / 25.6rem 25.6rem padding-box; border: 1rem solid transparent; border-image: var(--tr-card) 64 / 3.2rem; box-shadow: none;
padding: 1.6rem .8rem 2rem; filter: drop-shadow(0 .6rem .9rem rgba(0,0,0,.65)); }
body.tr-art-card #hud .tr-card::before { display: none; }
body.tr-art-card.pc #hud .tr-card:hover, body.tr-art-card #hud .tr-card.picked { border-image-source: var(--tr-card-on, var(--tr-card)); box-shadow: none; filter: brightness(1.12) drop-shadow(0 0 1rem rgba(255,154,60,.45)) drop-shadow(0 .6rem .9rem rgba(0,0,0,.65)); }
body.tr-art-card .tc-on { bottom: 1.2rem; }
body.tr-art-card #hud .tr-card kbd { bottom: -1.9rem; }
#trial-pick.chosen .tr-card:not(.picked) { filter: brightness(.45) saturate(.5); pointer-events: none; }
.tc-ic { position: relative; flex: none; width: 10.4rem; height: 10.4rem; border-radius: 8%; box-shadow: 0 0 0 1px #000, 0 0 0 .3rem var(--aff-mon), 0 .4rem 1rem rgba(0,0,0,.7); }
.tr-card.you .tc-ic { box-shadow: 0 0 0 1px #000, 0 0 0 .3rem var(--aff-you), 0 .4rem 1rem rgba(0,0,0,.7); }
.tc-ic img { display: block; width: 100%; height: 100%; border-radius: 8%; }
.tc-stack { right: -.9rem; bottom: -.7rem; min-width: 2.6rem; font-size: max(11px, 1.4rem); line-height: 2.2rem; }
.tc-txt { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: .4rem; margin-top: .6rem; }
.tc-name { font: 600 max(14px, 1.9rem)/1.25 var(--serif); letter-spacing: .03em; color: var(--aff-mon); text-shadow: 0 .2rem 0 #000; }
.tr-card.you .tc-name { color: var(--aff-you); }
.tc-eff { font: 400 max(11px, 1.45rem)/1.4 var(--sans); color: var(--ink); }
.tc-again { font: 600 max(10px, 1.1rem)/1.3 var(--sans); color: var(--r2); }
.tc-on { position: absolute; left: 0; right: 0; bottom: 2.2rem; font: 600 max(9px, 1.05rem)/1.2 var(--sans); font-style: normal; letter-spacing: .04em; color: var(--aff-mon); opacity: .85; }
.tr-card.you .tc-on { color: var(--aff-you); }
#hud .tr-card kbd { bottom: -.9rem; }
#trial-banner { position: absolute; z-index: 3; left: 50%; top: calc(13rem + var(--sat)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .8rem; width: max-content; max-width: 92vw; pointer-events: none; text-align: center; }
#trial-banner.show { animation: tr-banner var(--ms, 2600ms) ease-out both; }
@keyframes tr-banner { 0% { opacity: 0; transform: translateX(-50%) scale(1.25); } 9% { opacity: 1; transform: translateX(-50%) scale(1); } 82% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-1.2rem); } }
.tb-round { padding: 0 5rem; font: 600 max(26px, 5.2rem)/1.2 var(--serif); letter-spacing: .08em; color: #ffe9bf; text-shadow: 0 .3rem 0 #000, 0 0 2.4rem rgba(255,154,60,.75), 0 0 .6rem #000;
background: linear-gradient(90deg, transparent, rgba(0,0,0,.55) 22%, rgba(0,0,0,.55) 78%, transparent); border-top: 1px solid rgba(216,184,113,.5); border-bottom: 1px solid rgba(216,184,113,.5); border-image: linear-gradient(90deg, transparent, rgba(216,184,113,.7), transparent) 1; }
.tb-round i { font-style: normal; font-weight: 400; color: var(--brass); }
.tb-got { display: flex; align-items: center; gap: 1rem; padding: .2rem 1.4rem .2rem .4rem; text-align: left; border: .8rem solid transparent; border-image: url(../assets/ui/dark/glass.png) 16 fill / .8rem; }
.tb-got img { width: 4.4rem; height: 4.4rem; flex: none; border-radius: 8%; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--aff-mon); }
.tb-got.you img { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--aff-you); }
.tb-got span { display: flex; flex-direction: column; }
.tb-got b { font: 600 max(13px, 1.6rem)/1.3 var(--serif); color: var(--aff-mon); } .tb-got.you b { color: var(--aff-you); }
.tb-got small { font: 400 max(11px, 1.25rem)/1.35 var(--sans); color: var(--ink); }
#trial-banner.boss small { font: 600 max(12px, 1.6rem)/1.2 var(--sans); letter-spacing: .3em; color: #ffb0a0; text-shadow: 0 1px 2px #000; }
#trial-banner.boss .tb-name { padding: 0 6rem; font: 700 max(28px, 5.8rem)/1.2 var(--serif); letter-spacing: .06em; color: #ff6a52; text-shadow: 0 .3rem 0 #000, 0 0 3rem rgba(255,60,30,.8), 0 0 .6rem #000;
background: linear-gradient(90deg, transparent, rgba(40,0,0,.6) 22%, rgba(40,0,0,.6) 78%, transparent); border-top: 1px solid; border-bottom: 1px solid; border-image: linear-gradient(90deg, transparent, rgba(255,106,82,.8), transparent) 1; }
#trial-result { position: absolute; z-index: 5; left: 50%; top: calc(13.4rem + var(--sat)); transform: translateX(-50%); box-sizing: border-box; width: 46rem; max-width: 94vw; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 2.2rem 2.4rem 2rem; text-align: center; pointer-events: auto;
border: 0 solid transparent; border-image: url(../assets/ui/dark/panel.png) 64 / 3.2rem; background: #110e0b url(../assets/ui/dark/panel_fill.png) 0 0 / 25.6rem 25.6rem; box-shadow: 0 1rem 2.5rem rgba(0,0,0,.6), 0 0 4rem rgba(255,154,60,.18); animation: tr-pop .35s ease-out both; }
@keyframes tr-pop { from { opacity: 0; transform: translateX(-50%) scale(.9); } }
#trial-result h3 { margin: 0; font: 600 max(20px, 3.2rem)/1.2 var(--serif); letter-spacing: .08em; color: #ffe9bf; text-shadow: 0 .2rem 0 #000, 0 0 1.8rem rgba(255,154,60,.6); }
#trial-result p { margin: 0; font-size: max(12px, 1.4rem); line-height: 1.5; color: var(--ink2); }
#trial-result p b { color: var(--ink); } #trial-result p u { text-decoration: none; color: var(--ink3); }
.trr-step b { color: var(--ember) !important; }
.trr-pts { margin: .3rem 0 !important; padding: .2rem 2rem; font: 600 max(14px, 1.9rem)/1.4 var(--serif) !important; color: var(--r2) !important; border: 1px solid rgba(242,212,99,.4); background: rgba(242,212,99,.08); }
.trr-pts b { font-size: 1.3em; color: #fff3b0 !important; text-shadow: 0 0 1rem rgba(242,212,99,.6); }
.trr-old { color: var(--ink3) !important; }
.trr-loot b { color: var(--r2) !important; font-variant-numeric: tabular-nums; }
.trr-exit { color: var(--teal) !important; }
.trr-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: .8rem; }
#hud #trial-result button { min-height: 3.8rem; min-width: 11rem; padding: 0 1.6rem; border: 1rem solid transparent; border-image: url(../assets/ui/dark/btn.png) 20 fill / 1rem; font: 700 max(12px, 1.35rem)/1.2 var(--sans); color: var(--ink); white-space: nowrap; }
#hud #trial-result button:not(.ghost) { border-image-source: url(../assets/ui/dark/btn_primary.png); color: #1a1206; }
#hud #trial-result button:hover { filter: brightness(1.15); }
#trial-fail { position: fixed; z-index: 9100; left: 50%; top: 30%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .5rem; width: max-content; max-width: 92vw; padding: 1.4rem 7rem 1.6rem; text-align: center; pointer-events: none;
background: linear-gradient(90deg, transparent, rgba(14,2,2,.92) 14%, rgba(14,2,2,.92) 86%, transparent); border-top: 1px solid; border-bottom: 1px solid; border-image: linear-gradient(90deg, transparent, rgba(224,68,58,.8), transparent) 1; transition: opacity .45s; animation: tr-pop .35s ease-out both; }
#trial-fail.out { opacity: 0; }
#trial-fail b { font: 700 max(24px, 4.4rem)/1.2 var(--serif); letter-spacing: .06em; color: #e0443a; text-shadow: 0 .3rem 1.4rem #000; }
#trial-fail span { font: 600 max(12px, 1.6rem)/1.5 var(--sans); color: var(--ink); text-shadow: 0 1px 2px #000; }
#trial-fail small { font: 400 max(11px, 1.3rem)/1.5 var(--sans); color: var(--ink2); text-shadow: 0 1px 2px #000; }
body.in-inst #m-shop { display: none; }
body.in-inst #dead span { display: none; }
body.in-inst #dead b { visibility: hidden; }
body.touch #trialwin { left: calc(.8rem + var(--sal)); right: calc(.8rem + var(--sar)); top: calc(.8rem + var(--sat)); bottom: calc(.8rem + var(--sab)); width: auto; height: auto; max-width: none; max-height: none; transform: none; padding-top: 5rem; }
body.touch .tw-body { flex-direction: row; gap: 1.4rem; }
body.touch .tw-about { flex: 0 0 43rem; min-width: 0; gap: .3rem; }
body.touch .tw-say { font-size: max(10px, 1.15rem); line-height: 1.4; }
body.touch #trialwin h5 { margin-top: .3rem; }
body.touch .tw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
body.touch .tw-step { grid-template-columns: 4.6rem minmax(0, 1fr); grid-auto-rows: min-content; justify-items: start; column-gap: .8rem; padding: .5rem .8rem .5rem .6rem; text-align: left; }
body.touch .tw-ic { grid-row: 1 / span 4; align-self: center; width: 4.6rem; height: 4.6rem; margin: 0; }
body.touch .tw-k { font-size: max(12px, 1.4rem); }
body.touch .tw-need, body.touch .tw-rounds { font-size: max(10px, 1.05rem); line-height: 1.3; }
body.touch .tw-step em { margin-top: .2rem; padding: 0 .6rem; font-size: max(9px, 1rem); }
body.touch .tw-bag { flex: 1; min-width: 0; }
body.touch .tw-bag h5 { margin-top: 0 !important; }
body.touch .tw-list { max-height: none; }
body.touch .win .row.tw-row { grid-template-columns: 4rem minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 0 .8rem; min-height: 5rem; padding: .3rem .9rem .3rem .5rem; }
body.touch .tw-row .cell { grid-row: 1 / span 2; width: 4rem; height: 4rem; }
body.touch .tw-row small { grid-column: 2; grid-row: 2; white-space: normal; }
body.touch .tw-row em { grid-column: 3; grid-row: 1 / span 2; min-width: 0; }
body.touch #trialwin footer { flex-direction: column; align-items: stretch; margin-top: .5rem; gap: .3rem; }
body.touch #trialwin footer .tw-note { flex: none; text-align: center; font-size: max(10px, 1.05rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.touch #trialwin footer .tw-note:empty { display: none; }
body.touch #trialwin .tw-go { min-height: 4.2rem; }
body.touch #trial-hud { top: calc(.8rem + var(--sat)); left: calc((100vw + var(--sal) - var(--sar)) / 2 + 1.5rem); max-width: 34rem; gap: .4rem; }
body.touch .tr-plate { min-width: 0; height: 4.6rem; }
body.touch .tr-step { min-width: 5.2rem; padding: 0 .5rem 0 1.2rem; } body.touch .tr-step b { font-size: max(14px, 1.8rem); } body.touch .tr-step i { font-size: max(9px, 1rem); } body.touch .tr-step small { font-size: max(9px, .95rem); }
body.touch .tr-main { gap: .9rem; padding: 0 .9rem; flex-direction: column; justify-content: center; gap: .2rem; }
body.touch .tr-round { font-size: max(13px, 1.55rem); } body.touch .tr-state { font-size: max(11px, 1.2rem); }
body.touch .tr-left svg { width: 1.5rem; height: 1.5rem; } body.touch .tr-left b, body.touch .tr-choose b { font-size: max(12px, 1.4rem); }
body.touch #hud .tr-leave { padding: 0 1.3rem 0 .9rem; min-width: 5.4rem; justify-content: center; font-size: max(11px, 1.25rem); }
body.touch .tr-affs { max-width: 32rem; gap: .5rem; } body.touch #hud .tr-aff { width: 3rem; height: 3rem; }
body.touch.tr-art-plate .tr-plate { border-width: 0 2.7rem; }
body.touch.tr-art-plate .tr-step { display: grid; grid-template-columns: auto auto; align-content: center; align-items: baseline; justify-content: center; gap: 0 .35rem; padding: 0 2rem 0 0; position: relative; }
body.touch.tr-art-plate .tr-step b { font-size: max(14px, 1.7rem); }
body.touch.tr-art-plate .tr-step small { grid-column: 1 / -1; justify-self: center; line-height: 1.05; }
body.touch.tr-art-plate .tr-step::after { position: absolute; right: .9rem; top: 50%; height: 2.4rem; margin: -1.2rem 0 0; }
body.touch.tr-art-plate .tr-main { padding: 0 .4rem; gap: .1rem; }
body.touch.tr-art-plate .tr-round { font-size: max(13px, 1.5rem); }
body.touch.tr-art-plate #hud .tr-leave { min-width: 0; padding: 0; margin-left: .9rem; }
body.touch .tr-tip { max-width: 34rem; }
body.touch #trial-pick { left: auto; right: calc(.8rem + var(--sar)); bottom: calc(.8rem + var(--sab)); transform: none; width: calc(100vw - 17.6rem - var(--sal) - var(--sar)); max-width: 72rem; gap: .3rem; animation-name: tr-rise-t; }
@keyframes tr-rise-t { from { opacity: 0; transform: translateY(2.4rem); } }
body.touch .tp-head { display: none; }
body.touch .tp-bar { margin: 0 .4rem; }
body.touch .tp-cards { align-self: stretch; gap: .7rem; }
body.touch #hud .tr-card { flex: 1 1 0; min-width: 0; width: auto; height: 13.6rem; flex-direction: row; align-items: center; gap: .9rem; padding: 1rem 1rem 2rem 1.1rem; text-align: left; }
body.touch #hud .tr-card::before { inset: .5rem; background-size: .7rem .7rem; }
body.touch .tc-ic { width: 5.4rem; height: 5.4rem; align-self: flex-start; margin-top: .4rem; box-shadow: 0 0 0 1px #000, 0 0 0 .2rem var(--aff-mon), 0 .3rem .6rem rgba(0,0,0,.7); }
body.touch .tr-card.you .tc-ic { box-shadow: 0 0 0 1px #000, 0 0 0 .2rem var(--aff-you), 0 .3rem .6rem rgba(0,0,0,.7); }
body.touch .tc-txt { align-items: flex-start; align-self: flex-start; gap: .2rem; margin: 0; }
body.touch .tc-name { font-size: max(12px, 1.45rem); }
body.touch .tc-eff { font-size: max(10px, 1.15rem); line-height: 1.3; }
body.touch .tc-again { font-size: max(9px, 1rem); }
body.touch .tc-on { bottom: .7rem; left: 1.1rem; right: auto; font-size: max(9px, .95rem); }
body.touch #hud .tr-card kbd { display: none; }
body.touch.tr-art-card #hud .tr-card { border-width: .65rem; border-image-width: 2rem; padding: 1.1rem .5rem 1.6rem 1rem; }
body.touch.tr-art-card .tc-on { bottom: .65rem; left: 1.1rem; }
body.touch #hud .tr-card.picked { transform: translateY(-.4rem); }
body.touch #trial-banner { top: calc(5.6rem + var(--sat)); left: calc((100vw + var(--sal) - var(--sar)) / 2 + 1.5rem); gap: .3rem; }
body.touch #trial-hud.bannered .tr-affs, body.touch #trial-hud.bannered .tr-tip { visibility: hidden; }
body.touch .tb-round { font-size: max(18px, 2.6rem); padding: 0 3rem; }
body.touch .tb-got { padding: 0 1rem 0 .2rem; gap: .7rem; border-width: .6rem; }
body.touch .tb-got b { font-size: max(12px, 1.35rem); } body.touch .tb-got small { font-size: max(10px, 1.1rem); line-height: 1.25; } body.touch #trial-banner.boss .tb-name { font-size: max(22px, 3.4rem); padding: 0 4rem; }
body.touch .tb-got img { width: 3rem; height: 3rem; }
body.touch #trial-result { top: calc(5.8rem + var(--sat)); width: 44rem; padding: 1.2rem 2rem 1.2rem; gap: .2rem; }
body.touch #trial-result h3 { font-size: max(16px, 2.2rem); }
body.touch #trial-result p { font-size: max(11px, 1.25rem); line-height: 1.4; }
body.touch .trr-pts { font-size: max(13px, 1.5rem) !important; margin: .1rem 0 !important; }
body.touch .trr-acts { margin-top: .4rem; }
body.touch #trial-fail { top: 24%; padding: 1rem 3rem 1.2rem; } body.touch #trial-fail b { font-size: max(20px, 3rem); }