.rebirth-workshop{--tier:#c8a56c;color:#f4e3ba;text-align:left;width:100%}.rebirth-layout{display:grid;grid-template-columns:minmax(260px,1.1fr) minmax(280px,1fr) minmax(210px,.8fr);gap:16px;min-height:460px}.rebirth-layout>section{min-width:0;border:1px solid #b89a585c;background:linear-gradient(#153745e8,#0c2433ef);padding:17px;box-shadow:inset 0 0 0 3px #0b213344}.rebirth-workshop h3{font-size:20px;margin:0 0 14px;color:#f3d79d;letter-spacing:3px}.rebirth-inventory header{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:12px}.rebirth-inventory h3{font-size:16px;white-space:nowrap;margin:0}.rebirth-workshop select{font:inherit;font-size:12px;min-width:0;max-width:160px;color:#eedeb3;background:#0c2636;border:1px solid #a18b55;padding:7px}.rebirth-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:420px;overflow:auto;padding:3px}.rebirth-item{display:flex!important;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-width:0;min-height:91px;padding:8px 4px!important;background:linear-gradient(#214450,#102735)!important;border:1px solid var(--tier)!important;border-radius:3px;color:#f2e0b8;cursor:pointer;position:relative;box-shadow:0 3px 4px #06172288}.rebirth-item .icon-art{width:44px;height:44px;display:block}.rebirth-item img{width:44px;height:44px;object-fit:contain;image-rendering:pixelated}.rebirth-item strong{font-size:11px;line-height:1.4;text-align:center;font-weight:700}.rebirth-item small{font-size:10px;color:#98c7c2}.rebirth-item:disabled{cursor:default;opacity:.42}.rebirth-item.selected{box-shadow:0 0 0 2px #f4d286,inset 0 0 14px #ecc47733}.rebirth-item.selected:after{content:'◆';position:absolute;right:4px;top:1px;color:#ffdc83;font-size:12px}.rebirth-item.worn{filter:saturate(.55)}.rebirth-altar{text-align:center;position:relative;overflow:hidden;isolation:isolate;display:flex;flex-direction:column;align-items:center}.rebirth-altar>*{z-index:1}.rebirth-altar>h3{font-size:25px;letter-spacing:6px;margin:4px 0 22px}.rebirth-orbit{position:absolute;left:50%;top:43%;width:255px;height:255px;transform:translate(-50%,-50%);border:4px double #c7a45c55;border-radius:50%;z-index:0!important;box-shadow:0 0 0 16px #96dad50b,inset 0 0 45px #7cc6cc22}.rebirth-orbit:before,.rebirth-orbit:after{content:'';position:absolute;inset:21px;border:2px solid #9acfc633;transform:rotate(45deg);border-radius:20%}.rebirth-orbit:after{transform:rotate(0deg);inset:39px;border-color:#e1bb7544}.rebirth-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;align-self:stretch}.rebirth-slot{min-height:93px;border:2px dashed #b5a06b77;color:#b9cebd;font-size:32px;display:grid;place-items:center;background:#0a233277}.rebirth-count{font:900 18px Georgia,serif;color:#d5c28b;margin:12px 0}.rebirth-result{width:137px;height:137px;display:grid;place-items:center;border:3px double #d8b875;clip-path:polygon(15% 0,85% 0,100% 15%,100% 85%,85% 100%,15% 100%,0 85%,0 15%);background:radial-gradient(#3c6166aa,#112c40ed);box-shadow:inset 0 0 25px #d4bb6522;margin:0 0 12px}.rebirth-result>span{font-size:17px;letter-spacing:3px;color:#b9ccb7}.rebirth-award{width:100%;height:100%;border:0!important;background:radial-gradient(#779d8a33,#18313e)!important;box-shadow:none}.rebirth-award img,.rebirth-award .icon-art{width:62px;height:62px}.rebirth-rule{font-size:12px;color:#b4c9b9;margin:5px 0 17px}.rebirth-fuse{font-size:20px!important;letter-spacing:3px;padding:15px 28px!important;min-width:190px;background:url('assets/ui/armory-action.png') center/100% 180% no-repeat!important;border:0!important;border-radius:0!important;color:#ffedbd;cursor:pointer}.rebirth-fuse:disabled{opacity:.4;cursor:default}.rebirth-notice{font-size:13px;color:#f0d18c;min-height:20px;margin:12px 0 0}.rebirth-pool>h3{font-size:16px}.rebirth-set-name{font-size:13px;color:#e5c48c;margin:0 0 15px}.rebirth-possibilities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.rebirth-possibilities .rebirth-item{opacity:1;min-height:77px}.rebirth-possibilities .rebirth-item img,.rebirth-possibilities .icon-art{width:32px;height:32px}.rebirth-pool>p:last-child{font-size:11px;color:#94b7b4;line-height:1.6;margin-top:12px}.rebirth-empty{grid-column:1/-1;text-align:center;padding:65px 5px;color:#a9c2bd;font-size:14px}.rebirth-pages{display:flex;gap:8px;align-items:center;justify-content:center;margin-top:10px;font-size:11px}.rebirth-pages button{font-size:11px;padding:7px 11px}.rebirth-working .rebirth-orbit{animation:rebirth-spin .85s ease-in}.rebirth-working .rebirth-slot{animation:rebirth-consume .85s ease-in forwards}.rebirth-working .rebirth-result{animation:rebirth-charge .85s ease-in}.rebirth-revealed .rebirth-award{animation:rebirth-reveal .55s ease-out}.rebirth-item:focus-visible,.rebirth-fuse:focus-visible{outline:3px solid #91e2e5;outline-offset:3px}@keyframes rebirth-spin{to{transform:translate(-50%,-50%) rotate(270deg);border-color:#e8ddad;box-shadow:0 0 40px #a6e8ef66,inset 0 0 60px #a2d9d688}}@keyframes rebirth-consume{to{transform:translateY(25px) scale(.25);opacity:0;filter:brightness(3)}}@keyframes rebirth-charge{70%{filter:brightness(2)}to{filter:brightness(4)}}@keyframes rebirth-reveal{from{transform:scale(.6);filter:brightness(3);opacity:.2}to{transform:scale(1);filter:brightness(1);opacity:1}}@media(max-height:800px){.rebirth-layout{min-height:390px;gap:12px}.rebirth-layout>section{padding:13px}.rebirth-grid{max-height:350px}.rebirth-item{min-height:82px}.rebirth-altar>h3{margin-bottom:15px}.rebirth-result{width:115px;height:115px}.rebirth-orbit{width:220px;height:220px}.rebirth-possibilities .rebirth-item{min-height:66px}.rebirth-rule{margin-bottom:10px}}@media(max-width:900px){.rebirth-layout{grid-template-columns:1fr 1fr}.rebirth-pool{grid-column:1/-1}.rebirth-possibilities{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:600px){.rebirth-layout{display:flex;flex-direction:column}.rebirth-grid{max-height:240px}.rebirth-altar{min-height:410px}.rebirth-possibilities{grid-template-columns:repeat(4,minmax(0,1fr))}.rebirth-item strong{font-size:10px}}@media(prefers-reduced-motion:reduce){.rebirth-working .rebirth-orbit,.rebirth-working .rebirth-slot,.rebirth-working .rebirth-result,.rebirth-revealed .rebirth-award{animation:none}}
.rebirth-inventory header{position:static;inset:auto;z-index:auto;pointer-events:auto}.modal-card:has(.rebirth-workshop){width:96vw;max-width:1280px;height:92dvh;max-height:94dvh;display:flex;flex-direction:column;padding:16px 22px;background:linear-gradient(#102d3cf5,#0c2233f5),url('assets/ui/armory-interior.png') center/cover;border:4px double #bda067;color:#f3dfb4;box-shadow:0 16px 60px #0009}.modal-card:has(.rebirth-workshop) #modalTitle{font-size:28px;margin:5px 0 13px;color:#ffe1a0}.modal-card:has(.rebirth-workshop) #modalKicker,.modal-card:has(.rebirth-workshop) #modalDesc{display:none}.modal-card:has(.rebirth-workshop) #resultStats{display:block;flex:1;min-height:0;overflow:auto;margin:0;padding:0}.modal-card:has(.rebirth-workshop) .modal-actions{flex-shrink:0;margin-top:12px}
#modal .rebirth-workshop .rebirth-item{background:linear-gradient(#214450,#102735)!important;border:1px solid var(--tier)!important;box-shadow:0 3px 4px #06172288!important}#modal .rebirth-workshop .rebirth-item.selected{box-shadow:0 0 0 2px #f4d286,inset 0 0 14px #ecc47733!important}#modal .rebirth-workshop .rebirth-fuse{background:url('assets/ui/armory-action.png') center/100% 180% no-repeat!important;border:0!important;color:#ffedbd!important;box-shadow:none!important}#modal .rebirth-workshop .rebirth-possibilities .rebirth-item:disabled{opacity:1}#modal .rebirth-workshop .rebirth-item.worn{opacity:.42}@media(max-height:800px){.rebirth-possibilities .rebirth-item,#modal .rebirth-workshop .rebirth-possibilities .rebirth-item{height:70px;min-height:70px;padding:4px!important;gap:2px}.rebirth-possibilities .rebirth-item img,#modal .rebirth-workshop .rebirth-possibilities .rebirth-item img{width:28px!important;height:28px!important}.rebirth-possibilities .rebirth-item strong{line-height:1.2;font-size:10px}.rebirth-possibilities .rebirth-item small{font-size:9px;line-height:1.2}}@media(min-width:901px){.modal-card:has(.rebirth-workshop) #resultStats{overflow:hidden}.modal-card .rebirth-workshop{height:100%}.modal-card .rebirth-layout{height:100%;min-height:0}.modal-card .rebirth-layout>section{min-height:0;overflow:auto}}
.modal-card:has(.rebirth-workshop){background:linear-gradient(#0c213aad,#0d2436d9),url('assets/ui/rebirth-forge-art.png') center/100% 100%!important;border:0!important;padding:32px!important}.rebirth-layout>section{border:3px double #bc9f65;background:#10283ce8;box-shadow:inset 0 0 0 4px #11213a99}.rebirth-layout>.rebirth-altar{background:linear-gradient(#10243b44,#10243b88),url('assets/ui/rebirth-forge-art.png') center/auto 100%;border:3px double #e2c381}.rebirth-altar>h3{background:#10263ed9;padding:10px 20px;border-bottom:2px solid #c6a65f;text-shadow:0 2px #04162a}.rebirth-slot,.rebirth-result{box-shadow:0 0 0 3px #a5884d,0 0 0 5px #14283e,0 5px 15px #0009!important}.rebirth-orbit{border-color:#89e9ff99;box-shadow:0 0 22px #54c9ff55,inset 0 0 25px #54c9ff33}.rebirth-working .rebirth-orbit{filter:brightness(1.7)}.rebirth-rule,.rebirth-set-name{background:#10253ce8;padding:7px 10px;border-radius:3px}@media(max-width:700px){.modal-card:has(.rebirth-workshop){padding:20px 12px!important}}@media(prefers-reduced-motion:reduce){.rebirth-orbit:before,.rebirth-orbit:after{animation:none!important}}
/* Socket hit areas follow the three engraved seats in the forge artwork. */
.rebirth-layout>.rebirth-altar{min-height:570px;background-size:100% 100%;padding:0}.rebirth-altar>h3{position:absolute;top:3%;left:20%;width:60%;margin:0;padding:8px 2px;font-size:21px;letter-spacing:3px}.rebirth-slots{position:absolute;inset:0;display:block;pointer-events:none}.rebirth-slots>.rebirth-slot{position:absolute;width:25%;height:90px;min-height:0;pointer-events:auto;background:#10283ef5!important;border:2px solid #c8ac6b!important;transform:translate(-50%,-50%);font-size:25px}.rebirth-slots>.rebirth-slot:nth-child(1){left:50%;top:28%}.rebirth-slots>.rebirth-slot:nth-child(2){left:37%;top:50%}.rebirth-slots>.rebirth-slot:nth-child(3){left:63%;top:50%}.rebirth-slot img{width:35px!important;height:35px!important}.rebirth-slot strong{font-size:10px}.rebirth-slot small{font-size:9px}.rebirth-count{position:absolute;top:37%;left:0;width:100%;margin:0;text-shadow:0 2px #071d30}.rebirth-result{position:absolute;top:62%;left:50%;transform:translateX(-50%);width:100px;height:100px;margin:0;background:#10283eef}.rebirth-result>span{font-size:14px;letter-spacing:1px}.rebirth-rule{position:absolute;top:80%;left:8%;width:84%;margin:0;font-size:11px}.rebirth-fuse{position:absolute;top:86%;left:15%;width:70%;min-width:0;font-size:18px!important;padding:13px 8px!important}.rebirth-notice{position:absolute;top:95%;left:5%;width:90%;font-size:10px;margin:0}.rebirth-orbit{top:43%;width:60%;height:42%}
.prismatic-forge{background:linear-gradient(#10283dd9,#10283dd9),url('assets/ui/rebirth-forge-art.png') center/cover;padding:24px;border:4px double #c3a369}.prismatic-forge .material-card,.prismatic-forge .forged-weapon{background:#102637e8;border:3px double #ad945f}.craft-dialog{background:linear-gradient(#102738dd,#102738ed),url('assets/ui/rebirth-forge-art.png') center/cover}
.rebirth-altar .rebirth-count{top:16%!important;left:0!important;width:100%!important;font-size:13px!important;line-height:18px!important;margin:0!important}.rebirth-slots>.rebirth-slot{height:clamp(70px,11vh,90px)!important}.rebirth-layout>.rebirth-altar{overflow-y:auto}.rebirth-altar .rebirth-result{max-height:18%;max-width:28%}
