#modal[data-kind=stats]{width:min(960px,96%);height:min(630px,92cqh);max-height:100%;padding:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #8d7957;border-image:none;border-radius:3px;background:#111b18;box-shadow:0 0 0 4px #080f10,0 24px 100px #000b}
#modal[data-kind=stats]>header{flex:none;min-height:0;height:70px;margin:0;padding:14px 24px;background:linear-gradient(110deg,#303529,#14201c);border-bottom:1px solid #a4906455}
#modal[data-kind=stats] h2{font-size:22px;margin:3px 0 0;letter-spacing:.5px}
#modal[data-kind=stats] #modal-body{flex:1;min-height:0;overflow:hidden;font-size:14px;line-height:1.5}
.character-sheet{height:100%;display:grid;grid-template-columns:minmax(200px,.85fr) minmax(0,1.65fr);gap:24px;padding:22px}
.sheet-portrait{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid #80906940;background:linear-gradient(160deg,#2b392766,#0d1716);padding:16px;overflow:auto;touch-action:pan-y;scrollbar-width:thin}
.sheet-identity{text-align:center;flex:none}.sheet-identity>span{font-size:12px;letter-spacing:.6px;color:#9db298}.sheet-identity b{color:#d9c188;font-weight:500;margin-left:8px}.sheet-identity h3{color:#f0e0bc;margin:5px 0 0;font-size:19px;font-weight:500;overflow-wrap:anywhere}
.sheet-stage{flex:1;min-height:150px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 65%,#99ad6a20,transparent 67%)}#stats-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:1}.sheet-halo{position:absolute;top:20%;left:12%;right:12%;aspect-ratio:1;border:1px solid #a99e5833;border-radius:50%;box-shadow:0 0 30px #71874a11,inset 0 0 35px #9fa96509}.sheet-halo:after{content:'';position:absolute;inset:10%;border:1px dashed #9ca87422;border-radius:50%}.sheet-orbit{position:absolute;left:20%;right:20%;bottom:10%;height:8%;border:1px solid #a8996555;border-radius:50%;background:#a19b5010}.sheet-stage-label{position:absolute;bottom:0;left:0;right:0;text-align:center;font-size:12px;letter-spacing:2px;color:#99b098}
.sheet-weapon{flex:none;display:flex;align-items:center;gap:10px;padding:10px;margin-top:12px;background:#111b15;border:1px solid #94805355}.sheet-weapon img{width:43px;height:43px;object-fit:contain;image-rendering:pixelated}.sheet-weapon>div{min-width:0;flex:1}.sheet-weapon small{display:block;font-size:12px;color:#9eb099}.sheet-weapon strong{display:block;font-size:14px;font-weight:500;color:#ddcfab;overflow-wrap:anywhere}.sheet-weapon>b{font-size:15px;color:#d9be80;font-weight:500}
.sheet-appearance{display:flex;flex:none;justify-content:center;align-items:center;gap:5px;margin-top:10px;min-height:28px;font-size:12px;color:#9eb196;text-align:center}.sheet-appearance>span{margin-right:auto}.sheet-appearance>span:only-child{margin:auto}#modal-body .sheet-flat{border:1px solid #77846366;background:#1a291d;padding:5px 10px;font-size:12px;border-radius:2px;min-width:0}#modal-body .sheet-flat[aria-pressed=true]{border-color:#c4ab72;color:#e3cc91;background:#89914b22}
.sheet-details{min-width:0;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#687358 #131b18;touch-action:pan-y;font-variant-numeric:tabular-nums}
.sheet-section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.sheet-section-heading h3{font-size:13px;margin:0;color:#cbd4be;font-weight:500}.sheet-section-heading>span{font-size:12px;color:#9db297;white-space:nowrap}.sheet-section-heading i{display:inline-block;width:4px;height:4px;border-radius:50%;background:#9ab37b;margin-right:5px}
.sheet-combat{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sheet-combat article{padding:14px 16px 12px;background:linear-gradient(135deg,#35402c88,#172219);border:1px solid #a28e5655;border-top:2px solid #c5a96c}.sheet-combat article>span{font-size:12px;color:#d5c9a4;display:flex;justify-content:space-between;align-items:center;gap:6px}.sheet-combat small{font-size:12px;letter-spacing:1px;color:#a0b195}.sheet-combat strong{display:block;font-size:36px;color:#f0d69f;font-weight:500;line-height:1.25;margin-top:5px}#modal-body .sheet-combat p{font-size:12px;color:#a1b093;margin:6px 0 0;line-height:1.5}.sheet-combat p b{font-weight:500;color:#b4cdb7}.sheet-combat article.sheet-rune{border-color:#7faca055;border-top-color:#8cb7a5;background:linear-gradient(135deg,#243f3688,#15241f)}.sheet-rune strong{color:#b2dbca}
.sheet-vitals{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0 22px}.sheet-vitals>div>span{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#a4b49b;gap:6px}.sheet-vitals b{font-weight:500;font-size:12px;color:#d8dcca}.sheet-gauge{height:5px;margin-top:8px;background:#08110f;overflow:hidden;border:1px solid #98a67522}.sheet-gauge i{display:block;height:100%;width:0;background:linear-gradient(90deg,#773e37,#c17962)}.sheet-mp i{background:linear-gradient(90deg,#345566,#79a8ac)}
.sheet-growth-heading{margin:0;padding-bottom:10px;border-bottom:1px solid #84966e33}.sheet-bonuses{margin:0}.sheet-bonuses>div{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid #87997022}.sheet-bonuses dt{font-size:12px;color:#b3c0a6;white-space:nowrap}.sheet-bonuses dt i{font-style:normal;font-size:12px;color:#9eaf95;margin-right:10px}.sheet-bonuses dd{display:flex;align-items:center;justify-content:flex-end;gap:18px;margin:0;font-size:12px;text-align:right}.sheet-bonuses dd>b{font-weight:500;color:#d7bd80;font-size:13px}.sheet-bonuses dd>span{color:#9eb192;min-width:150px}
.sheet-experience{margin-top:20px}.sheet-experience>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:#9eb091}.sheet-experience b{font-weight:500;color:#d3bb86;margin-left:4px}.sheet-experience small{font-size:12px;color:#a6b092}.sheet-xp{height:4px}.sheet-xp i{background:linear-gradient(90deg,#667a4c,#cdb071)}.sheet-records{display:flex;justify-content:space-between;gap:12px;margin-top:14px;font-size:12px;color:#9db294}.sheet-records b{font-weight:500;color:#bfcaaf;margin-left:8px}
@container game-viewport (max-height:520px) or (max-width:900px){
 #modal[data-kind=stats]{width:98%;height:100%;max-height:100%}#modal[data-kind=stats]>header{height:42px;padding:7px 14px}#modal[data-kind=stats] h2{font-size:16px;margin:0}
 .character-sheet{grid-template-columns:minmax(155px,.8fr) minmax(0,1.7fr);padding:10px;gap:14px}.sheet-portrait{padding:8px}.sheet-identity>span{font-size:12px}.sheet-identity h3{font-size:13px;margin-top:2px}.sheet-stage{min-height:100px}.sheet-stage-label{display:none}.sheet-weapon{padding:5px;margin-top:5px;gap:6px}.sheet-weapon img{width:28px;height:28px}.sheet-weapon small{font-size:12px}.sheet-weapon strong{font-size:12px}.sheet-weapon>b{font-size:14px}.sheet-appearance{min-height:22px;margin-top:5px;font-size:12px}#modal-body .sheet-flat{font-size:12px;padding:3px 7px}
 .sheet-section-heading{margin-bottom:7px}.sheet-section-heading h3{font-size:12px}.sheet-section-heading>span{font-size:12px}.sheet-combat{gap:8px}.sheet-combat article{padding:7px 10px}.sheet-combat article>span{font-size:12px}.sheet-combat small{font-size:12px}.sheet-combat strong{font-size:25px;margin-top:2px}#modal-body .sheet-combat p{font-size:12px;margin-top:2px}.sheet-vitals{gap:12px;margin:9px 0 12px}.sheet-vitals>div>span{font-size:12px}.sheet-vitals b{font-size:12px}.sheet-gauge{margin-top:5px;height:4px}.sheet-growth-heading{padding-bottom:5px;margin-bottom:0}.sheet-bonuses>div{padding:6px 0;gap:8px}.sheet-bonuses dt{font-size:12px}.sheet-bonuses dt i{font-size:12px;margin-right:6px}.sheet-bonuses dd{gap:8px;font-size:12px}.sheet-bonuses dd>b{font-size:12px}.sheet-bonuses dd>span{min-width:130px}.sheet-experience{margin-top:10px}.sheet-experience>div:first-child,.sheet-experience small{font-size:12px}.sheet-records{margin-top:7px;font-size:12px}
}
@container game-viewport (max-width:620px){.character-sheet{gap:8px;grid-template-columns:minmax(125px,.7fr) minmax(0,1.5fr)}.sheet-combat small{display:none}.sheet-bonuses dd>span{min-width:0}.sheet-combat article{padding:7px}.sheet-bonuses dt i{display:none}.sheet-bonuses dd{gap:6px}}
#modal[data-kind=stats] #modal-body .sheet-flat{background:#1a291d;border:1px solid #77846366;border-radius:2px;min-width:0;min-height:26px;padding:4px 9px;text-shadow:none;flex:none}
#modal[data-kind=stats] #modal-body .sheet-flat[aria-pressed=true]{border-color:#c4ab72;color:#e3cc91;background:#89914b22}
.sheet-appearance>span{white-space:nowrap}
