@font-face{font-family:AnodosXP;src:url('/fonts/metal-mania-tickets.ttf') format('truetype');font-display:swap}
.reserve-parts{margin:3px auto 12px;max-width:32ch;color:#e5d7ee;font:11px/1.5 system-ui,sans-serif;text-align:center;text-wrap:balance}
body{--xp-dialog-accent:#bd8eff;--xp-dialog-deep:#241434;--xp-dialog-art:url('/assets/xp-receptacles/halloween.svg')}
body[data-xp-theme=noel]{--xp-dialog-accent:#f5d890;--xp-dialog-deep:#173b3e;--xp-dialog-art:url('/assets/xp-receptacles/noel.svg')}
body[data-xp-theme=kids]{--xp-dialog-accent:#ffc36e;--xp-dialog-deep:#3e2254;--xp-dialog-art:url('/assets/xp-receptacles/kids.svg')}
body[data-xp-theme=dragons]{--xp-dialog-accent:#f4b95b;--xp-dialog-deep:#3e211a;--xp-dialog-art:url('/assets/xp-receptacles/dragons.svg')}
body[data-xp-theme=fees]{--xp-dialog-accent:#e6bdfb;--xp-dialog-deep:#382848;--xp-dialog-art:url('/assets/xp-receptacles/fees.svg')}
:is(#allocation,#allocation-dialog){box-sizing:border-box;isolation:isolate;position:fixed;width:min(430px,calc(100vw - 28px));max-width:430px;max-height:90dvh;margin:auto;padding:88px 28px 28px;border:1px solid var(--xp-dialog-accent);border-radius:28px 28px 20px 20px;color:#fff4df;background:radial-gradient(ellipse at 50% 0,color-mix(in srgb,var(--xp-dialog-accent) 22%,transparent),transparent 55%),linear-gradient(160deg,var(--xp-dialog-deep),#13111f 80%);box-shadow:inset 0 0 0 5px #0003,inset 0 0 0 6px #e6b98228,0 25px 90px #000b,0 0 35px #a76cda22;overflow:auto;text-align:center}
:is(#allocation,#allocation-dialog)::backdrop{background:#080714b8;backdrop-filter:blur(5px)}
:is(#allocation,#allocation-dialog)::before{content:'';position:absolute;top:17px;left:calc(50% - 36px);width:72px;height:64px;background:var(--xp-dialog-art) center/contain no-repeat;filter:drop-shadow(0 0 12px #bb85ff55);pointer-events:none}
:is(#allocation,#allocation-dialog)>.close{position:absolute;top:12px;right:13px;min-width:40px;min-height:38px;padding:5px 10px;border:1px solid #dcc4e94d;border-radius:20px;background:#ffffff0b;box-shadow:none;color:#f4e8fa;font:13px/1.2 system-ui,sans-serif}
:is(#allocation,#allocation-dialog) h2{margin:2px 0 17px;color:var(--xp-dialog-accent);font:400 clamp(25px,5vw,32px)/1.15 AnodosXP,Georgia,serif;text-wrap:balance;letter-spacing:.02em}
:is(#allocation,#allocation-dialog) #allocation-info{margin:0 0 22px;padding:12px 10px;border-top:1px solid #eccd9733;border-bottom:1px solid #eccd9733;color:#eadff2;font:14px/1.5 system-ui,sans-serif;text-wrap:balance}
:is(#allocation,#allocation-dialog) form{display:grid;gap:13px;text-align:center}
:is(#allocation,#allocation-dialog) label{display:grid;gap:12px;margin:0;color:#f5e9d8;font:600 15px/1.4 system-ui,sans-serif;text-wrap:balance}
:is(#allocation,#allocation-dialog) select{box-sizing:border-box;width:100%;min-height:46px;margin:0;padding:9px 12px;border:1px solid #bda3cc8c;border-radius:10px;background:#1c1527;color:#fff0da;font:15px/1.4 system-ui,sans-serif}
:is(#allocation,#allocation-dialog) .xp-quantity{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:8px;padding:8px;border:1px solid #eac98a77;border-radius:17px;background:linear-gradient(#0b0913,#241d2b);box-shadow:inset 0 3px 9px #0005}
:is(#allocation,#allocation-dialog) .xp-quantity input{box-sizing:border-box;width:100%;min-width:0;margin:0;padding:5px;border:0;outline-offset:0;border-radius:8px;background:transparent;color:#ffe9ad;font:600 38px/1.25 Georgia,serif;text-align:center;box-shadow:none;appearance:textfield}
:is(#allocation,#allocation-dialog) .xp-quantity input::-webkit-inner-spin-button{appearance:none}
:is(#allocation,#allocation-dialog) .xp-step{margin:0;padding:0;width:46px;height:46px;border:1px solid #bc93dd88;border-radius:12px;background:linear-gradient(#68477b,#3a2a48);box-shadow:0 3px 0 #120b1a;color:#fff3da;font:400 27px/1 system-ui,sans-serif}
:is(#allocation,#allocation-dialog) form>button{display:block;width:100%;min-height:49px;margin:0;padding:12px 16px;border:1px solid #ffdc9a;border-radius:12px;background:linear-gradient(160deg,#ffd888,#ee9d38);box-shadow:0 4px 0 #80441e,0 7px 16px #0003;color:#341820;font:700 15px/1.25 system-ui,sans-serif;text-align:center;text-wrap:balance;cursor:pointer}
:is(#allocation,#allocation-dialog) button:disabled{filter:grayscale(.8);opacity:.45;cursor:default;box-shadow:none}
:is(#allocation,#allocation-dialog) :focus-visible{outline:2px solid #fff0b1;outline-offset:3px}
:is(#allocation,#allocation-dialog) #allocation-error{margin:0;color:#ffb8a8;font:14px/1.4 system-ui,sans-serif}
:is(#allocation,#allocation-dialog) #allocation-error:empty{display:none}
@media(max-width:380px){:is(#allocation,#allocation-dialog){padding-inline:18px}.xp-quantity{gap:4px}}
@media(prefers-reduced-motion:reduce){:is(#allocation,#allocation-dialog){scroll-behavior:auto}}

/* Fairy quantity selector model, coloured to match each universe. */
body{--xp-step-top:#68477b;--xp-step-bottom:#3a2a48}
body[data-xp-theme=noel]{--xp-step-top:#a93547;--xp-step-bottom:#59202e}
body[data-xp-theme=kids]{--xp-step-top:#a9692c;--xp-step-bottom:#643954}
body[data-xp-theme=dragons]{--xp-step-top:#92512e;--xp-step-bottom:#41221d}
body[data-xp-theme=fees]{--xp-step-top:#68477b;--xp-step-bottom:#3a2a48}
:is(#allocation,#allocation-dialog) .xp-step{background:linear-gradient(var(--xp-step-top),var(--xp-step-bottom));border-color:color-mix(in srgb,var(--xp-dialog-accent) 55%,transparent)}
:is(#allocation,#allocation-dialog) .xp-quantity{border-color:color-mix(in srgb,var(--xp-dialog-accent) 60%,transparent)}
:is(#allocation,#allocation-dialog) .xp-quantity input{font-variant-numeric:tabular-nums}

/* Select the card remainder without spending XP until normal validation. */
:is(#allocation,#allocation-dialog) .xp-complement{
 box-sizing:border-box;display:block;width:100%;min-height:42px;margin:0;padding:10px 12px;
 border:1px solid color-mix(in srgb,var(--xp-dialog-accent) 60%,transparent);border-radius:12px;
 background:linear-gradient(var(--xp-step-top),var(--xp-step-bottom));box-shadow:0 3px 0 #130e1c;
 color:#fff4df;font:600 14px/1.3 system-ui,sans-serif;text-align:center;text-wrap:balance;cursor:pointer
}
