#rswin { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 104rem; max-width: calc(100vw - 1.6rem); height: 60rem; max-height: calc(100vh - 1.6rem); z-index: 8; }
#rswin.hidden { display: none; }
.rs-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 27rem 33.6rem minmax(0, 1fr); gap: 1.4rem; padding: .6rem 1rem 1rem; }
.rs-slots { min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: .2rem; }
.rs-slot { display: flex; align-items: center; gap: .7rem; padding: .2rem .5rem; cursor: pointer; border: 1px solid transparent; background: rgba(0,0,0,.22); }
.rs-slot:hover { background: rgba(255,255,255,.04); }
.rs-slot.sel { border-color: rgba(232,200,112,.6); background: rgba(232,200,112,.09); }
.rs-ic { position: relative; flex: none; width: 3.8rem; height: 3.8rem; }
.rs-glow { position: absolute; inset: -22%; background: center / 100% 100% no-repeat; pointer-events: none; z-index: 1; }
.rs-sn { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.rs-sn b { font: 600 max(11px, 1.2rem) var(--sans); color: var(--ink); }
.rs-sn small { font-size: max(9px, 1rem); color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-slot em, .rs-lv { font: 700 max(12px, 1.5rem) var(--serif); font-style: normal; color: #d8c8a8; font-variant-numeric: tabular-nums; }
#rswin .g1 { color: #8ad0ff; } #rswin .g2 { color: #d49aff; } #rswin .g3 { color: #ffd25a; text-shadow: 0 0 .6rem rgba(255,200,80,.6); }
.rs-anvil { position: relative; align-self: start; width: 33.6rem; aspect-ratio: 336 / 352; background: center / 100% 100% no-repeat; }
.rs-on { position: absolute; left: 26.2%; top: 27.3%; width: 47.6%; height: 45.5%; display: flex; align-items: center; justify-content: center; }
.rs-on > .item-art, .rs-on > svg, .rs-on > img { width: 72%; height: 72%; object-fit: contain; position: relative; z-index: 2; filter: drop-shadow(0 .4rem .8rem rgba(0,0,0,.8)); }
.rs-on .rs-glow { inset: 4%; z-index: 1; }
.rs-on i.lv, .rs-on i.cnt, .rs-on i.unid { display: none; }
.rs-empty { font-size: max(10px, 1.2rem); color: #8a7a62; }
.rs-fx { position: absolute; left: -10%; top: -10%; width: 120%; height: 120%; pointer-events: none; z-index: 3; }
.rs-lv { position: absolute; left: 0; right: 0; top: 6.5%; text-align: center; font-size: max(15px, 2.2rem); text-shadow: 0 .2rem .3rem #000; }
.rs-lv small { font-size: .7em; color: #e8d8b0; }
.rs-info { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: .7rem; }
.rs-info h3 { margin: 0; font: 700 max(13px, 1.7rem) var(--serif); color: var(--brass-hi, #e8c870); }
.rs-cur { color: #fff3cf; }
.rs-lines { margin: 0; padding: .6rem .9rem; list-style: none; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.06); font-size: max(11px, 1.2rem); display: flex; flex-direction: column; gap: .3rem; }
.rs-arrow { color: var(--ink3); } .rs-next { color: #9ff0b0; } .rs-none { color: var(--ink3); }
.rs-hint { margin: 0; font-size: max(10px, 1.1rem); color: #e0a060; }
.rs-ch { font-size: max(11px, 1.3rem); color: var(--ink2); }
.rs-ch b { font: 700 max(14px, 2rem) var(--serif); }
.rs-ch b.hi { color: #9ff0b0; } .rs-ch b.mid { color: #ffd25a; } .rs-ch b.lo { color: #ff8a6a; }
.rs-risk { margin: -.4rem 0 0; font-size: max(10px, 1.05rem); color: var(--ink3); }
.rs-cost { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; }
.rs-need, .rs-ward { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.rs-need > span:last-child, .rs-ward > span:last-child { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.rs-need b, .rs-ward b { font: 600 max(11px, 1.2rem) var(--sans); color: var(--ink); }
.rs-need small, .rs-ward small { font-size: max(9px, 1rem); color: var(--ink3); }
.rs-need.short b { color: #ff8a6a; }
.rs-need .coin { width: 3rem; height: 3rem; display: inline-flex; }
.rs-mi { position: relative; flex: none; width: 3.6rem; height: 3.6rem; }
.rs-ward { cursor: pointer; padding: .4rem .6rem; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); }
.rs-ward.none { opacity: .55; cursor: default; }
.rs-ward input { width: 1.8rem; height: 1.8rem; flex: none; }
.rs-go { align-self: flex-start; min-width: 18rem; min-height: 4.4rem; font-size: max(13px, 1.6rem); }
.rs-top { margin: 0; font-size: max(12px, 1.4rem); color: #ffd25a; }
.rs-res { margin: 0; font: 600 max(12px, 1.4rem) var(--sans); } .rs-res.ok { color: #9ff0b0; } .rs-res.bad { color: #ff8a6a; }
.rs-note { margin: auto 0 0; font-size: max(9px, 1rem); color: var(--ink3); }
.wslot .rfg { position: absolute; inset: .25rem; pointer-events: none; z-index: 1; display: none; border: 1px solid transparent; border-radius: .2rem; --rc: 138,208,255; }
.wslot[data-rf="1"] .rfg, .wslot[data-rf="2"] .rfg, .wslot[data-rf="3"] .rfg { display: block; border-color: rgba(var(--rc), .7); box-shadow: 0 0 .35rem rgba(var(--rc), .45), inset 0 0 .45rem rgba(var(--rc), .28); }
.wslot[data-rf="2"] .rfg { --rc: 212,154,255; }
.wslot[data-rf="3"] .rfg { --rc: 255,210,90; animation: rfg-pulse 2.4s ease-in-out infinite; }
@keyframes rfg-pulse { 50% { box-shadow: 0 0 .55rem rgba(var(--rc), .6), inset 0 0 .6rem rgba(var(--rc), .36); } }
.wslot .rfb { position: absolute; right: .2rem; top: .2rem; z-index: 3; padding: .1rem .3rem; border-radius: .3rem; background: rgba(0,0,0,.6); font: 700 max(10px, 1.2rem)/1 var(--serif); color: #e8d8b0; text-shadow: 0 1px 2px #000; pointer-events: none; }
.wslot .rfb:empty { display: none; }
.wslot[data-rf="1"] .rfb { color: #8ad0ff; } .wslot[data-rf="2"] .rfb { color: #d49aff; } .wslot[data-rf="3"] .rfb { color: #ffd25a; }
body.touch #rswin { 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; }
body.touch .rs-body { grid-template-columns: 19rem 24rem minmax(0, 1fr); gap: .8rem; padding: .2rem .4rem .4rem; }
body.touch .rs-anvil { width: 24rem; }
body.touch .rs-ic { width: 3.4rem; height: 3.4rem; }
body.touch .rs-slot { padding: .2rem .4rem; gap: .5rem; }
body.touch .rs-go { min-width: 14rem; min-height: 4rem; }