
:root{color-scheme:dark;--bg:#0c1018;--panel:#141b27;--line:#293243;--text:#e9e8ee;--muted:#99a4b8;--gold:#d6bb82;--purple:#b2a0f5}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 45% 0,#27213b66,transparent 48%),var(--bg);font:14px/1.5 system-ui,sans-serif;color:var(--text)}button,input,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}a{color:var(--purple);text-decoration:none}.shell{max-width:1260px;margin:auto;padding:0 36px}header{min-height:88px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:20px}.brand{letter-spacing:2px;font-size:12px;font-weight:700;color:var(--text)}.brandmark{color:var(--gold);font-size:25px;margin-right:10px}.brandlight{font-size:10px;color:var(--muted);font-weight:400}.switcher{color:var(--muted);font-size:11px;display:flex;gap:12px;align-items:center}select{max-width:240px;color:var(--text);background:var(--panel);border:1px solid var(--line);padding:9px 12px;border-radius:7px}.hero{display:flex;gap:26px;align-items:center;padding:42px 0 26px}.sigil{width:90px;height:100px;border:1px solid #73618b;border-radius:40px 40px 20px 20px;background:linear-gradient(135deg,#3a3052,#171c2b);display:grid;place-items:center;color:#c3b1ff;font-size:58px;position:relative}.sigil span{position:absolute;bottom:-10px;background:#292339;border:1px solid #927aab;border-radius:20px;padding:0 12px;font-size:16px;color:var(--gold)}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:2px;color:var(--gold)}h1{font-family:Georgia,serif;font-weight:400;font-size:48px;line-height:1.15;margin:8px 0}h2{font:400 25px Georgia,serif;margin:0 0 5px}h3{margin:0;font-size:14px;font-weight:600}.identity p{margin:8px 0 0;color:#d1d6e2}.identity p span{color:var(--muted)}.heroaside{margin-left:auto;text-align:right}.money{display:flex;gap:15px;justify-content:flex-end;margin-bottom:12px;font-size:20px;font-variant-numeric:tabular-nums}.money b{font-weight:500;color:var(--gold)}.money b:nth-child(2){color:#c6cdd9}.money b:nth-child(3){color:#c18b73}.money small{font-size:12px;margin-left:3px}.sync{color:#94b9a6;font-size:11px}.fresh{color:var(--muted);font-size:11px}.fresh time{white-space:nowrap}.xp{height:5px;background:#222738;border-radius:5px;overflow:hidden}.xp>div{height:100%;background:linear-gradient(90deg,#655a9f,#b39cee)}.xplabel{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;color:var(--muted);margin:8px 0 28px}nav{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-bottom:24px;overflow:auto}nav button{white-space:nowrap;background:none;color:var(--muted);border:0;border-bottom:2px solid transparent;padding:14px 22px}nav button.active{color:var(--gold);border-bottom-color:var(--gold);background:linear-gradient(0deg,#d6bb8210,transparent)}nav span{padding:2px 6px;background:#2a3041;border-radius:4px;font-size:10px;margin-left:5px}.panel{padding:28px;background:linear-gradient(135deg,#192130aa,#141b27);border:1px solid var(--line);border-radius:12px;min-height:450px}[hidden]{display:none!important}.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.badge{border:1px solid #4b4650;color:var(--gold);padding:5px 11px;border-radius:20px;font-size:11px}.muted,small{color:var(--muted)}.tiny{font-size:10px}.sheetgrid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:24px}.gear{display:flex;align-items:center;gap:12px;margin-bottom:12px;min-height:58px}.gear .slot{width:54px;height:54px;flex-shrink:0}.gear .itemname{display:none}.gear small{font-size:10px}.gear>div{font-size:12px}.portrait{display:flex;align-items:center;justify-content:center;flex-direction:column;background:radial-gradient(ellipse,#53416e33,transparent 68%);text-align:center}.orb{border:1px solid #8b75ac66;border-radius:50%;height:145px;width:145px;display:grid;place-items:center;font-size:105px;color:#c4a9f0;text-shadow:0 0 55px #a069e8;box-shadow:0 0 0 14px #8b75ac08,0 0 0 15px #8b75ac33}.portraitname{font:24px Georgia;margin-top:30px}.portrait p{color:var(--muted);margin-top:4px}.resource{width:90%;max-width:220px;margin:6px;padding:8px 14px;border-radius:5px;text-align:left;font-size:15px;border:1px solid #3a594e;background:#223b32}.resource span{float:right;font-size:9px;padding-top:5px;color:#a7c3b6}.mana{background:#242e52;border-color:#3d4b78}.mana span{color:#a9b9e2}.weapons{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;border-top:1px solid var(--line);padding-top:20px;margin-top:14px}.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:15px}.stats>div{background:#0c111b77;padding:14px 18px;border:1px solid var(--line);border-radius:7px;display:flex;flex-direction:column}.stats strong{font-size:25px;font-weight:500;color:var(--gold)}.stats span{font-size:10px;color:var(--muted)}.baglayout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.bag{background:#0c111b66;border:1px solid var(--line);border-radius:8px;padding:16px}.bagtitle{display:flex;justify-content:space-between;margin-bottom:14px}.bagtitle span{font-size:11px;color:var(--muted)}.slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.slot{position:relative;min-width:0;aspect-ratio:1;border:1px solid #596475;background:linear-gradient(145deg,#273244,#131a28);color:#d7dce6;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px;transition:transform .15s,border-color .15s}.slot:hover:not(.empty),.slot:focus-visible{transform:translateY(-2px);outline:2px solid var(--gold);outline-offset:2px}.slot.empty{border:1px dashed #293243;background:#0e1420;color:#394356;font-size:10px}.glyph{font-size:28px;line-height:1.15}.itemname{font-size:9px;line-height:1.15;max-width:100%;text-align:center;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:5px}.stack{position:absolute;right:4px;bottom:2px;font-size:12px;color:white;text-shadow:1px 1px 2px black;background:#101522bb;border-radius:3px;padding:0 3px}.q0{color:#9199a7}.q2{color:#82cb8c}.slot.q2{border-color:#45764b;background:linear-gradient(135deg,#253c32,#121c22)}.q3{color:#78b8f2}.slot.q3{border-color:#3a71aa;background:linear-gradient(135deg,#253b57,#141c2b)}.q4{color:#bf8beb}.slot.q4{border-color:#8a57ba}.q5{color:#efaf6f}.search{display:flex;align-items:center;gap:10px;background:#0e1420;border:1px solid var(--line);border-radius:7px;padding:10px 14px;margin:20px 0;color:var(--muted);max-width:400px}.search input{background:none;border:0;color:var(--text);outline:none;width:100%}.search:focus-within{border-color:var(--purple)}.dim{opacity:.16}.questlist{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quest{display:flex;gap:15px;border:1px solid var(--line);background:#101723;padding:18px;border-radius:8px}.quest>div{flex:1}.questicon{font:bold 25px Georgia;color:var(--gold)}.done{color:#8cc9a2}.quest small{font-size:10px}.objective{font-size:12px;margin-top:12px;color:#acb6c6}.progress{height:4px;background:#2a3041;border-radius:5px;margin-top:8px;overflow:hidden}.progress i{display:block;height:100%;background:#9c89ce}.professiongrid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.profession{padding:22px;background:#101723;border:1px solid var(--line);border-radius:8px}.craft{font-size:30px;color:var(--gold)}.profession h3{margin:12px 0}.profession strong{font-size:22px;font-weight:500}.profession strong span{font-size:13px;color:var(--muted)}.recipesheading{margin-top:32px}details{border-top:1px solid var(--line);padding:16px 0}summary{cursor:pointer}summary span{float:right;color:var(--muted);font-size:11px}.recipelist{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px}.recipelist small{font-size:10px;margin-left:6px}.notice{border:1px solid #655b43;border-radius:8px;padding:20px;color:var(--gold)}footer{display:flex;justify-content:space-between;gap:15px;padding:22px 0 40px;font-size:10px;color:var(--muted)}dialog{background:#192130;color:var(--text);border:1px solid #5e5278;border-radius:12px;padding:30px;max-width:90vw;min-width:280px}dialog::backdrop{background:#0009}dialog pre{font:14px/1.9 system-ui;white-space:pre-wrap}#closeitem{float:right;background:none;color:var(--muted);border:0;font-size:24px}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:3px}@media(min-width:1100px){.slots{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(max-width:750px){.shell{padding:0 16px}.brandlight{display:none}header{flex-wrap:wrap;padding:15px 0}.switcher{margin-left:auto}.hero{gap:16px;padding-top:25px;flex-wrap:wrap}.sigil{width:65px;height:80px;font-size:44px}h1{font-size:36px}.heroaside{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;gap:10px}.heroaside .fresh{font-size:9px}.money{margin:0;font-size:16px}.sync{display:none}.xplabel span:last-child{display:none}nav button{padding:12px 15px}.panel{padding:18px}.sheetgrid{grid-template-columns:1fr 1fr;gap:16px}.portrait{grid-column:1/-1;grid-row:1;padding:20px;display:none}.gear{gap:8px}.gear .slot{width:44px;height:44px}.gear>div{font-size:11px}.weapons{grid-template-columns:1fr;gap:0}.stats{grid-template-columns:repeat(3,1fr);gap:6px}.stats>div{padding:12px}.baglayout,.questlist{grid-template-columns:1fr}.professiongrid{grid-template-columns:1fr 1fr}.sectionhead{align-items:flex-start}.badge{font-size:9px}.slots{grid-template-columns:repeat(4,minmax(0,1fr))}.recipelist{grid-template-columns:1fr}footer{flex-direction:column}.brand{font-size:10px}}

.slot .itemart{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:5px;opacity:0}.slot.hasart .itemart{opacity:1}.slot.hasart .glyph{visibility:hidden}.slot.hasart .itemname{position:absolute;bottom:0;left:0;right:0;margin:0;padding:9px 3px 3px;background:linear-gradient(transparent,#000e);color:#fff;text-shadow:0 1px 2px #000}.slot.hasart .stack{z-index:2;bottom:auto;top:2px}.itemtooltip{position:fixed;z-index:1000;max-width:min(350px,calc(100vw - 16px));max-height:calc(100vh - 16px);overflow:hidden;background:#0b1020f5;border:1px solid #665e7b;box-shadow:0 12px 45px #0009;border-radius:7px;padding:14px;pointer-events:none;font-size:12px;line-height:1.45}.dbdetails h3{font-size:15px;margin:0 0 10px}.tooltipline{display:flex;justify-content:space-between;gap:20px;min-height:6px;white-space:pre-wrap}.tooltipline>span:last-child:not(:first-child){text-align:right;flex-shrink:0}.tooltipline.effect{color:#80d292}.tooltipline.highlight,.sellprice{color:#dfc47e}.tooltipnote{font-size:10px;color:#9ba7ba;border-top:1px solid #353d51;padding-top:10px;margin:12px 0 8px}.dbdetails a{font-size:11px}dialog .dbdetails{border-top:1px solid #404a60;margin-top:20px;padding-top:20px}dialog{max-height:90vh;overflow:auto;width:420px}dialog pre{font-size:12px}.itemtooltip .dbdetails a{display:none}

.slots{grid-template-columns:repeat(auto-fill,54px);gap:7px}
.slots .slot{width:54px;height:54px}
.slots .itemname{display:none}
.slots .slot .stack{top:auto;bottom:2px;font-size:12px}
@media(max-width:750px){.slots{grid-template-columns:repeat(auto-fill,44px);gap:6px}.slots .slot{width:44px;height:44px}}
.professionicon{width:44px;height:44px;border:1px solid #655e48;border-radius:7px}.recipebutton{display:flex;align-items:center;gap:12px;text-align:left;background:#101723;color:var(--text);border:1px solid var(--line);border-radius:7px;padding:8px;min-height:56px}.recipebutton:hover{border-color:var(--gold)}.recipeart{width:40px;height:40px;border-radius:5px;flex-shrink:0}.recipebutton small{display:block;margin:0}.sigil>img{width:72px;height:72px;border-radius:20px}.orb>img{width:115px;height:115px;border-radius:50%}.badge .classart{width:20px;height:20px;vertical-align:middle;margin-right:6px}@media(max-width:750px){.sigil>img{width:52px;height:52px}}
