.xm-ref-page{min-width:0}
.xm-ref-page h1{max-width:65rem}
.xm-ref-intro{display:grid;grid-template-columns:1fr .75fr;align-items:center;margin-block:1.55rem 1rem;border:1px solid #73532c;border-radius:20px;overflow:hidden;background:radial-gradient(ellipse at 82% 55%,#5a361777,transparent 58%),#251c13;color:#fff4df}
.xm-ref-copy{padding:clamp(1.05rem,3.8vw,2.4rem);min-width:0;z-index:1}
.xm-ref-copy h2{font-size:clamp(1.65rem,4vw,2.75rem);letter-spacing:-.043em;line-height:1.08;margin:.39rem 0 .72rem}
.xm-ref-copy p,.xm-ref-panel p{color:#e2cdb0}
.xm-ref-mascot{min-width:0;align-self:stretch;display:grid;place-items:center;position:relative;max-height:300px;overflow:hidden}
.xm-ref-mascot::before{content:"";position:absolute;inset:18% 23%;border-radius:50%;border:1px solid #fbba5e66;box-shadow:0 0 42px #fbc16833;transform:rotate(-9deg)}
.xm-ref-mascot img{position:relative;object-fit:contain;display:block;width:100%;height:100%;max-height:300px;max-width:325px;filter:drop-shadow(0 10px 24px #0008)}
.xm-ref-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem .8rem;margin-top:.85rem}
.xm-ref-actions a:not(.button){color:#f9d496}
.xm-ref-notice{margin:1rem 0;background:#312313;border:1px solid #9a6c38;color:#ffe0ac;border-radius:.58rem;padding:.7rem .83rem}
.xm-ref-story,.xm-ref-sim{margin-top:1.65rem;scroll-margin:1.3rem}
.xm-ref-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-bottom:.65rem}
.xm-ref-heading h2{font-size:clamp(1.45rem,3.8vw,2.25rem)}
.xm-ref-heading .button{min-height:44px}
.xm-ref-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.66rem;list-style:none;padding:0;margin:0}
.xm-ref-step{position:relative;overflow:hidden;min-width:0;padding:1rem .84rem 1.12rem;background:#231b13;border:1px solid #795635;border-radius:.76rem}
.xm-ref-icon{display:inline-grid;place-items:center;border:1px solid #997448;border-radius:.75rem;background:#322214;color:#ffd691;width:54px;height:54px;margin-bottom:.54rem}
.xm-ref-icon svg{width:37px;height:37px}
.xm-ref-step h3{margin:0 0 .43rem;color:#ffe1a3;font-size:1.06rem;line-height:1.18}
.xm-ref-step p{font-size:.92rem;color:#e0cdb3}
.xm-ref-animated .xm-ref-step{animation:xm-ref-reveal .85s both cubic-bezier(.22,.64,.34,1)}
.xm-ref-animated .xm-ref-step:nth-child(2){animation-delay:.21s}
.xm-ref-animated .xm-ref-step:nth-child(3){animation-delay:.42s}
.xm-ref-animated .xm-ref-step:nth-child(4){animation-delay:.63s}
.xm-ref-animated .xm-ref-icon svg{animation:xm-ref-icon .85s both cubic-bezier(.22,.64,.34,1)}
.xm-ref-animated .xm-ref-step:nth-child(2) svg{animation-delay:.21s}
.xm-ref-animated .xm-ref-step:nth-child(3) svg{animation-delay:.42s}
.xm-ref-animated .xm-ref-step:nth-child(4) svg{animation-delay:.63s}
@keyframes xm-ref-reveal{0%{transform:translateY(.56rem);opacity:.45;border-color:#785c40}52%{border-color:#f5ca82;box-shadow:0 6px 26px #eaa83b26}100%{transform:none;opacity:1;border-color:#795635}}
@keyframes xm-ref-icon{0%{transform:scale(.7) rotate(-18deg)}66%{transform:scale(1.13) rotate(4deg)}100%{transform:none}}
.xm-ref-sim{display:grid;grid-template-columns:1.18fr .82fr;gap:.85rem}
.xm-ref-panel{min-width:0;padding:clamp(1rem,3.3vw,1.52rem);border:1px solid #765534;border-radius:.82rem;background:#251c14}
.xm-ref-panel h2{margin:.33rem 0 .53rem;font-size:clamp(1.25rem,3vw,1.83rem);line-height:1.17}
.xm-ref-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.57rem;margin:.9rem 0}
.xm-ref-fields label,.xm-ref-url label{display:block;color:#ffebcc;line-height:1.2;font-size:.89rem;font-weight:690}
.xm-ref-fields input,.xm-ref-url input{width:100%;min-width:0;margin-top:.3rem;min-height:43px;padding:.44rem .5rem;background:#15110c;border:1px solid #9e794e;border-radius:.42rem;color:#fff2da;font:inherit}
.xm-ref-fields input:focus-visible,.xm-ref-url input:focus-visible{outline:2px solid #eec275;outline-offset:2px}
.xm-ref-url{margin-top:1rem}
.xm-ref-panel .xm-ref-payout{padding:.65rem .77rem;background:#17110c;border:1px solid #8a643b;border-radius:.53rem;color:#ffe3ac;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.37rem}
.xm-ref-payout strong{font-size:clamp(1.17rem,3.7vw,1.65rem);color:#ffdc91;overflow-wrap:anywhere}
.xm-ref-panel .xm-ref-small{font-size:.85rem;margin:.57rem 0 0}
.xm-ref-details{margin-top:1rem}
@media(max-width:820px){.xm-ref-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.xm-ref-intro{grid-template-columns:1fr}.xm-ref-mascot{max-height:175px}.xm-ref-mascot img{max-height:200px}.xm-ref-sim{grid-template-columns:1fr}}
@media(max-width:390px){.xm-ref-fields{grid-template-columns:1fr}.xm-ref-steps{gap:.42rem}.xm-ref-step{padding:.68rem .56rem}.xm-ref-step p{font-size:.88rem}}
@media(prefers-reduced-motion:reduce){.xm-ref-animated .xm-ref-step,.xm-ref-animated .xm-ref-icon svg{animation:none}}
.xm-ref-type{display:flex;align-items:center;gap:.45rem .7rem;flex-wrap:wrap;margin:0 0 .58rem}
.xm-ref-type label{font-size:.89rem;font-weight:690;color:#ffebcc}
.xm-ref-type select{font:inherit;color:#ffe9ca;background:#1a130d;border:1px solid #8e6e45;padding:.42rem .52rem;border-radius:.42rem;min-height:44px}
