.identity-dialog,.shop-dialog{box-sizing:border-box;width:min(780px,calc(100vw - 28px));max-height:calc(100dvh - 24px);margin:auto;padding:24px 30px 20px;border:1px solid #b99b62;border-radius:6px;color:#f4e5c4;background:linear-gradient(145deg,#162125f5,#131b20fa 65%,#252219f5);box-shadow:0 16px 80px #000b;font:14px/1.4 Arial,sans-serif;overflow:auto;scrollbar-width:thin;color-scheme:dark}
.identity-dialog::backdrop,.shop-dialog::backdrop{background:#071016a8;backdrop-filter:blur(5px)}
.identity-dialog h2,.shop-dialog h2{font:34px/1.15 Georgia,serif;margin:5px 0 12px;color:#ffe5ab}
.commerce-eyebrow{font:10px/1.4 Arial,sans-serif;letter-spacing:2px;color:#d8b577}
.commerce-close{position:absolute;right:12px;top:8px;width:36px;height:36px;border:0;background:transparent;color:#e9cd90;font:30px Georgia;cursor:pointer}
.identity-dialog input[type=text],.identity-dialog input[name=nickname]{box-sizing:border-box;width:100%;padding:9px 12px;margin:5px 0;border:1px solid #9e885b;background:#091116;color:#fff3d6;font:18px Arial;outline-offset:3px}
.nickname-label{display:block;max-width:440px;font-size:13px}.identity-dialog form>small{color:#cbbd9f;font-size:11px}
.identity-dialog fieldset{border:0;margin:12px 0 0;padding:0}.identity-dialog legend{color:#dbbf8b;margin-bottom:6px;font:15px Georgia}
.avatar-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.avatar-choice{position:relative;display:grid;grid-template-columns:72px 1fr;align-items:center;gap:8px;cursor:pointer;padding:6px;border:1px solid #89754a66;border-radius:4px;background:#0b121650;font-size:11px;color:#d9cbb2;line-height:1.25}
.avatar-choice i{display:block;aspect-ratio:1;width:72px;border-radius:3px}.avatar-choice input{position:absolute;opacity:0;width:1px;height:1px}.avatar-choice:has(input:checked){border-color:#e9bf67;background:#9e792324;color:#ffe5ac}.avatar-choice:has(input:focus-visible){outline:2px solid #fff0ba;outline-offset:3px}
.commerce-primary,.commerce-secondary{box-sizing:border-box;border:1px solid #bc9956;border-radius:3px;padding:10px 16px;background:linear-gradient(#9e7b3b,#795727);color:#fff2cc;cursor:pointer;font:15px Georgia,serif;min-height:38px}.commerce-secondary{background:transparent}.commerce-primary:disabled{opacity:.5;cursor:default}.commerce-primary:focus-visible,.commerce-secondary:focus-visible,.commerce-close:focus-visible,.shop-tabs button:focus-visible{outline:2px solid #ffdf92;outline-offset:3px}.identity-dialog [type=submit]{width:100%}
.commerce-status{min-height:20px;font:12px/1.5 Arial,sans-serif;margin:10px 0;color:#f5d391;overflow-wrap:anywhere}.shop-balances{display:flex;gap:22px;align-items:center;font-size:14px;font-variant-numeric:tabular-nums}.vip-state{margin-left:auto;color:#d9b979;font-size:12px}
.shop-tabs{display:flex;gap:8px;border-bottom:1px solid #b4965155;margin:12px 0}.shop-tabs button{padding:10px 20px;border:0;border-bottom:2px solid transparent;background:transparent;color:#cdb98e;font:17px Georgia;cursor:pointer}.shop-tabs [aria-pressed=true]{border-color:#d6ad5d;color:#ffdf9b}
.shop-products{display:grid;gap:8px}.shop-product{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 14px;background:#060d1355;border:1px solid #9f854533;border-radius:3px}.shop-product h3{font:19px Georgia;margin:0 0 4px;color:#f4ddb0}.shop-product small{font:11px Arial;color:#b9b2a3}.product-symbol{display:grid;place-items:center;width:34px;height:34px;border:1px solid #baa15b;border-radius:50%;font:24px Georgia;color:#e8c47a}.shop-product button{min-width:146px;font-variant-numeric:tabular-nums}.shop-product del{font:11px Arial;opacity:.7}
.vip-benefits{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px;list-style:none;padding:0;margin:12px 0 16px;font-size:12px;color:#d4c6a8}.vip-benefits b{font-size:18px;color:#f1ca79;margin-right:4px}.shop-dialog footer>small{display:block;color:#bbae97;font:11px/1.4 Arial}.commerce-link{display:inline-block;margin-top:10px;color:#e1c589;font-size:12px}.hero-hud.vip-active .avatar{box-shadow:0 0 0 2px #dcb759,0 0 18px #d4a33288}.hero-vitals-info.vip-active>strong::after{content:'VIP';display:inline-block;margin-left:6px;padding:2px 4px;border:1px solid #c4a04c;border-radius:3px;font:9px Arial;color:#ffdd86;vertical-align:middle}.character-section-link{display:flex;gap:6px;justify-content:center}.character-section-link .parchment-button{min-width:0;padding-left:10px;padding-right:10px}.character-portrait{padding:0;cursor:pointer}.character-identity .character-portrait{background-size:400% 200%}.character-identity.vip-active .character-portrait{box-shadow:0 0 0 2px #bc9042}
@media(max-width:720px){.identity-dialog,.shop-dialog{padding:18px 18px 16px}.avatar-choice{display:flex;flex-direction:column;gap:5px;text-align:center;padding:5px}.avatar-choice i{width:min(80px,100%)}.identity-dialog h2,.shop-dialog h2{font-size:28px}.shop-balances{gap:12px;flex-wrap:wrap}.vip-state{margin-left:0}.shop-product{gap:8px;padding:10px}.shop-product button{min-width:118px;padding:9px;font-size:13px}.shop-product h3{font-size:17px}.shop-tabs button{padding:9px 16px}.avatar-choices{gap:6px}}
@media(max-height:620px){.identity-dialog,.shop-dialog{padding-top:12px;padding-bottom:12px}.identity-dialog h2,.shop-dialog h2{font-size:26px;margin-bottom:7px}.avatar-choice i{width:54px}.avatar-choice{grid-template-columns:54px 1fr}.identity-dialog fieldset{margin-top:8px}.commerce-status{margin:6px 0}.shop-product{padding:7px 10px}.shop-product h3{font-size:17px}.shop-tabs{margin:6px 0}.vip-benefits{margin:8px 0;gap:4px 14px}}
.commerce-status:empty{display:none}
.identity-dialog .avatar-choice span{min-width:0;max-width:100%;overflow-wrap:anywhere}
@media(min-width:541px){body dialog.identity-dialog[open]{display:flex;flex-direction:column}body dialog.identity-dialog>header{flex:none}body dialog.identity-dialog>form{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}body dialog.identity-dialog[data-collection=standard] .avatar-choices{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:540px){body dialog.identity-dialog[open]{display:flex;flex-direction:column;max-height:calc(100dvh - 24px)}body dialog.identity-dialog>header{flex:none;padding-right:28px}body dialog.identity-dialog>form{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;padding:3px}body dialog.identity-dialog .avatar-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}body dialog.identity-dialog .avatar-choice span{font-size:11px;line-height:1.2}body dialog.identity-dialog .commerce-primary{margin-top:8px}}
@media(max-height:560px) and (min-width:600px){.avatar-choice{flex-direction:row;text-align:left;gap:8px}.avatar-choice i{width:46px;flex:none}.identity-dialog h2,.shop-dialog h2{font-size:24px;margin:3px 0 7px}.identity-dialog input[name=nickname]{padding:6px 10px;font-size:16px}.identity-dialog fieldset{margin-top:6px}.identity-dialog legend{font-size:13px;margin-bottom:4px}.shop-balances{font-size:12px}.shop-tabs button{font-size:15px;padding:6px 18px}.shop-products{gap:4px}.shop-product{padding:5px 10px;gap:8px;grid-template-columns:27px minmax(0,1fr) auto}.product-symbol{width:26px;height:26px;font-size:18px}.shop-product h3{font-size:16px;margin-bottom:0}.shop-product small{font-size:10px}.shop-product button{min-height:30px;padding:5px 10px;font-size:13px}.shop-dialog footer .commerce-status{margin:6px 0;font-size:11px}.shop-dialog footer>small,.commerce-link{font-size:10px}.commerce-link{margin-top:6px}.vip-benefits{font-size:11px}.vip-benefits b{font-size:15px}}
@media(max-height:560px) and (min-width:600px){.shop-dialog{padding-top:9px;padding-bottom:7px}.shop-product{padding-block:3px}.shop-product small{display:none}.shop-dialog footer .commerce-status{margin:4px 0}.commerce-link{margin-top:2px}.vip-benefits{gap:2px 14px}}

.character-sheet .character-section-link .parchment-button{padding-inline:10px}
@media(min-height:601px){.character-sheet .statistics-content{gap:6px}}
