/* Generated art is sliced at its joints; resizing never stretches the gems. */
body :is(.forge-cabinet,.premium-arena-frame)::before{width:auto!important;height:auto!important;transform:none!important;border:0!important}
body .premium-arena-frame{position:relative;isolation:isolate;--frame-corner:44px;--frame-rail:28px;border:0!important;background:radial-gradient(ellipse at 50% 0,#1b2b34ed,#09131bea 70%)!important;box-shadow:0 12px 40px #0008}
body .premium-arena-frame::after{display:none!important}
body dialog:is(.identity-dialog,.training-dialog,.encounter-dialog,.result-dialog,.energy-dialog){border:0!important;border-radius:0!important;background:radial-gradient(ellipse at 50% 0,#172a37,#09131bd9 60%,#0a1118f7)!important;isolation:isolate;box-shadow:0 15px 50px #000b!important;--frame-corner:54px;--frame-rail:36px}
body dialog:is(.identity-dialog,.training-dialog,.encounter-dialog,.result-dialog,.energy-dialog)::before,body :is(.character-wing,.forge-inspection,.forge-cabinet,.quest-letter,.premium-arena-frame)::before{content:'';display:block!important;position:absolute;inset:0;z-index:-1;pointer-events:none;box-shadow:none!important;background-image:url('/assets/premium-frame-crest.webp'),url('/assets/premium-frame-tl.webp'),url('/assets/premium-frame-tr.webp'),url('/assets/premium-frame-bl.webp'),url('/assets/premium-frame-br.webp'),url('/assets/premium-frame-top.webp'),url('/assets/premium-frame-bottom.webp'),url('/assets/premium-frame-left.webp'),url('/assets/premium-frame-right.webp')!important;background-position:top center,top left,top right,bottom left,bottom right,top center,bottom center,left center,right center!important;background-size:var(--frame-crest,72px 52px),var(--frame-corner) var(--frame-corner),var(--frame-corner) var(--frame-corner),var(--frame-corner) var(--frame-corner),var(--frame-corner) var(--frame-corner),calc(100% - var(--frame-corner)*2) var(--frame-rail),calc(100% - var(--frame-corner)*2) var(--frame-rail),var(--frame-rail) calc(100% - var(--frame-corner)*2),var(--frame-rail) calc(100% - var(--frame-corner)*2)!important;background-repeat:no-repeat!important}
body dialog:is(.identity-dialog,.training-dialog,.encounter-dialog,.result-dialog,.energy-dialog)::backdrop{background:#030b12ba;backdrop-filter:blur(5px)}
body .identity-dialog{width:min(780px,calc(100vw - 16px));padding:30px 34px 26px;overflow:hidden!important;color:#f6e6c8}
.identity-dialog .commerce-close{right:25px;top:20px;z-index:2}
.identity-dialog h2{font:500 30px/1.1 'Cormorant Garamond',Georgia,serif;margin:3px 0 10px}
.identity-dialog .commerce-eyebrow{font-size:9px;letter-spacing:1px}
.identity-dialog input[name=nickname]{padding:6px 10px;font-size:16px;min-height:34px}
.identity-dialog #nickname-hint{font-size:10px;line-height:1.2}
.identity-dialog .identity-collections{margin:7px 0 3px}
.identity-dialog .identity-collections button{min-height:30px;padding:3px 8px;font-size:14px}
.identity-dialog .identity-collections img{width:23px;height:23px}
.identity-dialog fieldset{margin-top:8px}
.identity-dialog legend{font-size:13px;line-height:1.2;margin-bottom:5px}
.identity-dialog .avatar-choices{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.identity-dialog .avatar-choice{display:flex;flex-direction:column;align-items:center;gap:5px;padding:4px!important;border:0!important;border-radius:0;background:none!important;font:11px/1.1 Arial,sans-serif;min-width:0;text-align:center;box-shadow:none!important}
.identity-dialog .avatar-choice i{width:clamp(48px,8vw,76px);max-width:100%;border-radius:50%;position:relative;box-shadow:0 3px 10px #0009}
.identity-dialog .avatar-choice span{font-size:11px;line-height:1.2}
.identity-dialog .avatar-choice:has(input:checked) i{outline:2px solid #edc582;outline-offset:3px;filter:brightness(1.12)}
.identity-dialog .avatar-choice:has(input:checked)::after{content:'✓';position:absolute;top:4px;right:calc(50% - 40px);color:#ffe3a3;text-shadow:0 2px 4px #000;font:700 15px Arial}
.identity-dialog .avatar-choice:has(input:focus-visible){outline:1px solid #f7e0a8;outline-offset:2px}
.identity-dialog .premium-avatar-choice i{border-radius:50%;width:68px}
.identity-dialog .premium-avatar-choice small{display:none}
.identity-dialog .identity-vip-note{font-size:10px;margin:5px 0;line-height:1.25}
.identity-dialog .commerce-primary{background:linear-gradient(#34424a,#131c23);border:1px solid #b6955b;border-radius:0;color:#ffe5ad;min-height:32px;padding:6px 12px}
.identity-dialog .commerce-status{margin:5px 0;font-size:11px}
body .training-dialog{padding:22px 17px 32px!important;--frame-crest:42px 28px}
.training-dialog .training-header{padding-top:0!important}
body .training-dialog[data-tab] .training-notice:empty{display:none}
@media(max-width:600px){body .training-dialog[data-tab] .training-header>p,body .training-dialog[data-tab=skills] .training-footer>p:not(.training-notice){display:none}body .training-dialog{padding-bottom:28px!important}}
body .encounter-dialog.encounter-options{padding:34px 34px 32px;--frame-crest:42px 28px}
body .encounter-dialog .dialog-close{z-index:3;right:10px;top:8px;width:36px;height:36px;border:2px solid #d4af6c;border-radius:50%;background:radial-gradient(circle at 30% 25%,#a77c37,#5a3a16);color:#ffe3a9!important;display:grid;place-items:center;font-size:26px;line-height:1;box-shadow:0 2px 6px #0008}
body .result-dialog{padding:28px 30px 24px}
@media(max-width:540px){body .identity-dialog{padding:27px 23px 23px}.identity-dialog h2{font-size:25px}.identity-dialog .avatar-choice i{width:55px}.identity-dialog .premium-avatar-choice i{width:58px}.identity-dialog .avatar-choices{gap:6px}.identity-dialog .nickname-label{font-size:11px}.identity-dialog .commerce-close{right:18px;top:17px}.identity-dialog .commerce-eyebrow{font-size:8px}}
@media(max-height:440px){body dialog:is(.identity-dialog,.training-dialog,.encounter-dialog,.result-dialog,.energy-dialog){--frame-corner:36px;--frame-rail:24px}body .identity-dialog{width:min(800px,calc(100vw - 16px));padding:19px 25px 16px}.identity-dialog h2{font-size:21px;margin:0 0 5px}.identity-dialog .commerce-eyebrow{font-size:7px}.identity-dialog form{display:grid;grid-template-columns:170px minmax(0,1fr);gap:4px 18px}.identity-dialog .nickname-label{grid-column:1;grid-row:1;align-self:start;padding-top:7px}.identity-dialog #nickname-hint{grid-column:1;grid-row:2}.identity-dialog .identity-gallery{grid-column:2;grid-row:1/4}.identity-dialog [type=submit]{grid-column:1;grid-row:3;align-self:end;font-size:13px}.identity-dialog .commerce-status{grid-column:1;grid-row:4;line-height:1.15}.identity-dialog .identity-collections{margin:0}.identity-dialog .identity-collections button{min-height:25px;font-size:12px;padding:2px 4px}.identity-dialog .identity-collections img{width:19px;height:19px}.identity-dialog fieldset{margin-top:4px}.identity-dialog legend{font-size:10px;margin-bottom:3px}.identity-dialog .avatar-choice i,.identity-dialog .premium-avatar-choice i{width:43px}.identity-dialog .avatar-choice span{font-size:9px}.identity-dialog .avatar-choice{gap:3px;padding:3px!important}.identity-dialog .identity-vip-note{font-size:8px;line-height:1.15;margin:4px 0}.identity-dialog .commerce-close{top:11px;right:17px;width:30px;height:30px}body .training-dialog{padding:13px 12px 10px!important}body .encounter-dialog.encounter-options{padding:18px 23px 16px}body .result-dialog{padding:18px 24px 16px}}
@media(max-width:360px){.identity-dialog h2{font-size:21px}.identity-dialog .avatar-choice i{width:47px}.identity-dialog .avatar-choice span{font-size:9px}.identity-dialog .identity-collections button{font-size:12px}.identity-dialog .identity-vip-note{font-size:9px}}

body :is(.character-wing,.forge-inspection,.forge-cabinet,.quest-letter){isolation:isolate;--frame-corner:32px;--frame-rail:22px;border:0!important;border-radius:0!important;box-shadow:0 9px 30px #0008!important}

