.hg-dialog{--hg-gold:#f1ca85;--hg-orange:#ed934c;--hg-line:#c8ac7438;width:min(1080px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #ae865a80;border-radius:20px;color:#ede6d4;background:#151b18;box-shadow:0 25px 100px #000c;font-family:Tahoma,sans-serif;overflow:auto;overscroll-behavior:contain}.hg-dialog::backdrop{background:#07100bdd;backdrop-filter:blur(5px)}.hg-dialog *{box-sizing:border-box}.hg-dialog [hidden]{display:none!important}.hg-dialog button{font:inherit;cursor:pointer;touch-action:manipulation}.hg-dialog button:disabled{opacity:.42;cursor:not-allowed}.hg-dialog button:focus-visible,.hg-dialog input:focus-visible{outline:3px solid #b5efd7;outline-offset:3px}.hg-top{display:flex;justify-content:space-between;align-items:center;padding:15px 25px;border-bottom:1px solid var(--hg-line);position:sticky;top:0;z-index:3;background:#151b18f5}.hg-top>span{font-weight:bold;font-size:13px;letter-spacing:2px;color:var(--hg-gold)}.hg-top b{font-size:9px;margin-left:12px;color:#96a695;font-weight:normal}.hg-top button{width:44px;height:44px;border:1px solid var(--hg-line);border-radius:50%;background:#ffffff08;color:#e3d3b3;font-size:25px}.hg-content{padding:0 30px 26px}.hg-hero{position:relative;display:grid;grid-template-columns:1.1fr .9fr;gap:16px;padding:32px 0 27px;border-bottom:1px solid var(--hg-line)}.hg-limited{font-size:10px;letter-spacing:2px;color:#ecaa62;display:inline-block;border:1px solid #ecaa6240;padding:8px 11px;border-radius:20px;background:#ecaa620a}.hg-copy h1{font-size:clamp(32px,4.6vw,52px);line-height:1.3;margin:20px 0 14px;letter-spacing:-1px}.hg-copy h1 em{font-style:normal;color:var(--hg-gold)}.hg-copy p{color:#a8b6a6;font-size:13px;line-height:1.9}.hg-date{font-size:14px;color:#e4d2aa;margin-top:20px}.hg-date>span{display:block;font-size:11px;color:#e99d60;margin-top:7px;font-variant-numeric:tabular-nums}.hg-wallet{display:flex;flex-wrap:wrap;gap:8px 20px;margin:20px 0 12px;font-size:11px;color:#a3b1a1}.hg-wallet strong{font-size:16px;color:#ecdaa8;margin-left:6px}.hg-rolls{display:flex;gap:10px;flex-wrap:wrap}.hg-rolls button,.hg-recycle-foot button,.hg-confirm button{min-height:46px;padding:12px 19px;border:1px solid #e8b76b88;border-radius:9px;color:#251c0e;background:linear-gradient(120deg,#f2d699,#dba35d);font-weight:bold;font-size:12px}.hg-rolls button+button{color:#e8d4aa;background:#e4bc6f0b}.hg-copy>small{display:block;font-size:10px;color:#839780;margin-top:12px;line-height:1.8}.hg-altar{position:relative;min-height:350px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding-bottom:22px;isolation:isolate;background:radial-gradient(ellipse at 50% 64%,#c579281b,transparent 65%)}.hg-altar:after{content:'';position:absolute;z-index:-1;bottom:60px;width:210px;height:44px;border:1px solid #daab6266;border-radius:50%;background:radial-gradient(ellipse,#f1ca8533,transparent 65%);box-shadow:0 0 35px #ca823019}.hg-moon{position:absolute;z-index:-2;top:38px;width:170px;height:170px;border-radius:50%;background:radial-gradient(circle at 37% 35%,#f2d79a,#c48c4c 70%,#543927);box-shadow:0 0 65px #e69e4b1c;opacity:.48}.hg-orbit{position:absolute;top:54px;right:15%;font-size:28px;color:#d4b06f}.hg-altar canvas{width:256px;max-width:100%;height:256px;image-rendering:pixelated}.hg-preview-name{font-size:13px;font-weight:bold;color:#ebcf9a;margin-top:8px;text-align:center}.hg-altar>small{font-size:10px;color:#8b9c86;margin-top:7px}.hg-status{min-height:0;margin:15px 0;font-size:12px;line-height:1.8;color:#e1bd83}.hg-status:empty{display:none}.hg-section-title{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:26px 0 17px}.hg-section-title span{font-size:9px;color:#a2af94;letter-spacing:2px}.hg-section-title h2{font-size:21px;margin:7px 0 0;line-height:1.4;color:#e6dfc8}.hg-section-title>strong{white-space:nowrap;color:var(--hg-gold);font-size:24px}.hg-section-title>strong small{display:block;font-size:10px;font-weight:normal;text-align:right;color:#a8b6a1;margin-top:4px}.hg-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}.hg-skin{min-width:0;border:1px solid #7e8b6540;border-radius:10px;background:#20291e;color:#cbd3bc;padding:8px;text-align:left;transition:border-color .15s,background .15s}.hg-skin:hover,.hg-skin[aria-pressed=true]{border-color:#dfb975;background:#3b3522}.hg-skin>div{position:relative;display:grid;place-items:center;height:114px;background:radial-gradient(ellipse at 50% 70%,#c0a66616,transparent 70%);border-radius:6px}.hg-skin img{width:96px;height:96px;max-width:100%;object-fit:contain;image-rendering:pixelated}.hg-skin>div>span{position:absolute;top:1px;left:0;font-size:7px;letter-spacing:1px;color:#cdac73}.hg-skin>strong{display:block;font-size:10px;line-height:1.7;min-height:35px;margin-top:6px}.hg-skin>small{display:block;color:#9aa88b;font-size:8px;line-height:1.6;margin-top:5px}.hg-recycle{margin-top:30px;border:1px solid var(--hg-line);border-radius:13px;padding:0 20px 18px;background:linear-gradient(110deg,#8d644212,transparent)}.hg-recycle .hg-section-title{margin-top:19px}.hg-section-title>b{font-size:30px;white-space:nowrap;color:#e1b477}.hg-recycle>p{font-size:11px;line-height:1.9;color:#acb59e}.hg-token-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:260px;overflow:auto;margin:18px 0;overscroll-behavior:contain}.hg-token{display:flex;gap:8px;align-items:center;border:1px solid #b09b6e40;border-radius:8px;padding:8px;background:#10171088;cursor:pointer;min-width:0}.hg-token:has(input:checked){border-color:#e5bf7a;background:#59492c44}.hg-token input{accent-color:#e3bd7e;width:18px;height:18px;flex-shrink:0}.hg-token img{width:46px;height:46px;image-rendering:pixelated;object-fit:contain}.hg-token strong{font-size:10px;line-height:1.6;display:block}.hg-token small{font-size:9px;color:#9ba98e;display:block;margin-top:4px}.hg-token-locked{opacity:.45;cursor:default}.hg-empty{grid-column:1/-1;text-align:center;padding:24px;color:#b9c4aa;border:1px dashed #b09b6e40;border-radius:8px;font-size:12px;line-height:1.9}.hg-empty small{font-size:10px;color:#7d9279}.hg-recycle-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.hg-recycle-foot>span{font-size:11px;color:#a6b499}.hg-recycle-foot button{background:#dfbf7f12;color:#e4c68e}.hg-rules{margin-top:25px;border-top:1px solid var(--hg-line);padding-top:20px}.hg-rules strong{font-size:12px;color:#bfc7ab}.hg-rules p{font-size:10px;line-height:2;color:#85977f}.hg-result{display:flex;align-items:center;gap:18px;background:#d5ad5c11;border:1px solid #dcbd7c66;padding:17px;border-radius:12px;margin:20px 0}.hg-result img{width:96px;height:96px;object-fit:contain;image-rendering:pixelated}.hg-result small{color:#e6bb6f;font-size:10px}.hg-result h2{font-size:19px;margin:8px 0}.hg-result p{font-size:11px;color:#b2bea1;line-height:1.8}.hg-confirm{position:fixed;inset:0;z-index:10;display:grid;place-items:center;background:#0b130fef;padding:24px}.hg-confirm>div{width:min(440px,100%);padding:30px;border:1px solid #c49b60;border-radius:15px;background:#20281e;box-shadow:0 20px 70px #0008}.hg-confirm span{font-size:10px;letter-spacing:2px;color:#d5b575}.hg-confirm h2{font-size:24px;color:#f0d398;line-height:1.5}.hg-confirm p{font-size:12px;color:#b9c2a9;line-height:1.9}.hg-confirm button{display:block;width:100%;margin-top:12px}.hg-confirm button+button{background:transparent;color:#c7cdb8;border-color:#65705c}.hg-confirm .hg-confirm-error{color:#f2a780}.pet-halloween-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:18px 20px;margin-bottom:18px;border:1px solid #ce9c5e;border-radius:10px;background:linear-gradient(110deg,#46351f,#24301f);color:#f3d39b;cursor:pointer}.pet-halloween-entry span{font-size:9px;letter-spacing:1px}.pet-halloween-entry strong{font-size:18px}.pet-halloween-entry small{font-size:11px;color:#c3bb9b}@media(max-width:800px){.hg-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hg-copy h1{font-size:38px}.hg-token-list{grid-template-columns:repeat(2,minmax(0,1fr))}.pet-halloween-entry{flex-wrap:wrap}}@media(max-width:540px){.hg-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:14px}.hg-top{padding:9px 15px}.hg-top b{display:none}.hg-content{padding:0 16px 20px}.hg-hero{grid-template-columns:1fr;padding-top:22px;gap:0}.hg-copy h1{font-size:36px;margin-top:17px}.hg-altar{min-height:285px;padding-bottom:15px}.hg-moon{top:10px;width:160px;height:160px}.hg-altar canvas{width:224px;height:224px}.hg-copy p{font-size:12px}.hg-rolls button{flex:1;padding:12px 8px;font-size:11px}.hg-limited{font-size:8px;letter-spacing:1.3px}.hg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hg-skin{padding:10px}.hg-skin>strong{font-size:11px}.hg-skin>small{font-size:9px}.hg-skin>div{height:116px}.hg-section-title h2{font-size:19px}.hg-section-title>strong{font-size:23px}.hg-recycle{padding:0 12px 14px}.hg-token-list{grid-template-columns:1fr}.hg-recycle-foot button{width:100%}.hg-result{gap:10px;padding:10px}.hg-result img{width:66px;height:66px}.hg-result h2{font-size:15px}.hg-confirm{padding:16px}.hg-confirm>div{padding:21px}.pet-halloween-entry{padding:14px;gap:8px}.pet-halloween-entry strong{font-size:16px}}@media(prefers-reduced-motion:reduce){.hg-dialog *{scroll-behavior:auto!important;transition:none!important}}
.hg-altar .hg-chest-display{width:280px;max-width:100%;height:256px;display:grid;place-items:center;position:relative;z-index:1}.hg-chest{display:block;width:100%;height:auto;overflow:visible}.hg-altar canvas{display:none}.hg-altar.is-previewing canvas{display:block}.hg-altar.is-previewing .hg-chest-display{display:none}.hg-back-to-chest{min-height:36px;margin-top:10px;padding:6px 13px;border:1px solid #b797614d;border-radius:20px;background:#e6c67e08;color:#dcc08a;font-size:10px!important}.hg-reveal{position:fixed;inset:0;z-index:12;display:grid;place-items:center;padding:18px;background:#0c1019f5;overflow:auto}.hg-fx-panel{position:relative;isolation:isolate;overflow:hidden;width:min(480px,100%);padding:30px 24px 24px;border:1px solid #b99059;border-radius:18px;background:radial-gradient(ellipse at 50% 45%,#3a2d46,#181d25 68%);box-shadow:0 22px 80px #0008;text-align:center}.hg-fx-eyebrow{font-size:9px;letter-spacing:2px;color:#cbab72}.hg-fx-title{position:relative;z-index:2;min-height:30px;margin:13px 0 0;color:#f2d49b;font-size:24px;line-height:1.4}.hg-fx-stage{position:relative;width:100%;height:284px;display:grid;place-items:center}.hg-fx-box{position:absolute;width:280px;max-width:100%;z-index:2;transform-origin:50% 85%}.hg-chest-lid{transform-box:fill-box;transform-origin:50% 100%}.hg-fx-rays{position:absolute;width:280px;height:280px;max-width:100%;border-radius:50%;background:repeating-conic-gradient(from 0deg,#f8dc9222 0deg 7deg,transparent 7deg 30deg);opacity:0;transform:scale(.65);z-index:0}.hg-fx-soft-glow{position:absolute;inset:25px 10px;border-radius:50%;background:radial-gradient(ellipse,#f7d59680,transparent 66%);opacity:0;z-index:1}.hg-fx-sparks{position:absolute;inset:0;pointer-events:none;z-index:3}.hg-fx-sparks i{position:absolute;left:50%;top:54%;width:5px;height:9px;border-radius:2px;background:#f4d995;opacity:0;transform:rotate(calc(var(--i)*30deg)) translateY(-20px)}.hg-fx-prize{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;justify-content:center;align-items:center}.hg-fx-prize img{height:152px;max-width:70%;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 6px 9px #080b1266)}.hg-fx-prize span{font-size:9px;letter-spacing:1px;color:#d4b473;margin-top:8px}.hg-fx-prize h3{font-size:18px;line-height:1.6;color:#f0d59a;margin:9px 0 0;max-width:100%}.hg-fx-note{position:relative;z-index:4;min-height:38px;margin:0 0 16px;font-size:11px;line-height:1.8;color:#b5b9b1}.hg-fx-skip,.hg-fx-done{position:relative;z-index:4;min-height:44px;padding:11px 20px;border:1px solid #b3986a66;border-radius:9px;font-size:12px;color:#d5c39e;background:#f0d59a08}.hg-fx-done{background:linear-gradient(120deg,#f1d69b,#dba55d);color:#241d14;font-weight:bold}.hg-fx-demo{position:relative;z-index:4;display:block;margin-bottom:15px;padding:8px;border:1px solid #91b9aa66;border-radius:6px;color:#bbd9cb;font-size:10px;line-height:1.7;background:#91b9aa0b}.hg-reveal[data-phase=opening] .hg-fx-box{animation:hg-box-shake 480ms ease-in-out 1,hg-box-away 420ms 780ms ease-out forwards}.hg-reveal[data-phase=opening] .hg-chest-lid{animation:hg-lid-open 750ms 430ms cubic-bezier(.2,.8,.2,1) forwards}.hg-reveal[data-phase=opening] .hg-fx-soft-glow{animation:hg-soft-burst 1000ms 300ms ease-out forwards}.hg-reveal[data-phase=opening] .hg-fx-rays{animation:hg-rays-open 1100ms 200ms ease-out forwards}.hg-reveal[data-phase=opening] .hg-fx-sparks i{animation:hg-spark 850ms ease-out forwards;animation-delay:calc(360ms + var(--i)*15ms)}.hg-reveal[data-phase=revealed] .hg-fx-box{display:none}.hg-reveal[data-phase=revealed] .hg-fx-rays{opacity:.55;transform:scale(1.04) rotate(25deg)}.hg-reveal[data-phase=revealed] .hg-fx-soft-glow{opacity:.34}.hg-reveal[data-phase=revealed] .hg-fx-prize{animation:hg-prize-enter 340ms ease-out both}@keyframes hg-box-shake{0%,100%{transform:translateX(0) rotate(0)}20%{transform:translateX(-4px) rotate(-3deg)}45%{transform:translateX(5px) rotate(3deg)}70%{transform:translateX(-3px) rotate(-2deg)}}@keyframes hg-lid-open{0%{transform:translateY(0) rotate(0);opacity:1}65%{opacity:1}100%{transform:translateY(-70px) rotate(-24deg);opacity:0}}@keyframes hg-box-away{to{transform:translateY(24px) scale(.9);opacity:0}}@keyframes hg-soft-burst{0%{opacity:0;transform:scale(.6)}45%{opacity:.78;transform:scale(1.05)}100%{opacity:.15;transform:scale(1.1)}}@keyframes hg-rays-open{0%{opacity:0;transform:scale(.45) rotate(-25deg)}65%{opacity:.7}100%{opacity:.35;transform:scale(1.1) rotate(25deg)}}@keyframes hg-spark{0%{opacity:0;transform:rotate(calc(var(--i)*30deg)) translateY(-25px) scale(.4)}25%{opacity:.9}100%{opacity:0;transform:rotate(calc(var(--i)*30deg)) translateY(-125px) scale(.25)}}@keyframes hg-prize-enter{from{transform:translateY(14px) scale(.92);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@media(max-width:540px){.hg-altar .hg-chest-display{width:248px;height:224px}.hg-fx-panel{padding:22px 15px 18px}.hg-fx-title{font-size:20px}.hg-fx-stage{height:240px}.hg-fx-box{width:250px}.hg-fx-rays{width:240px;height:240px}.hg-fx-prize img{height:128px}.hg-fx-prize h3{font-size:16px}.hg-fx-note{font-size:10px}.hg-reveal{padding:12px}}@media(prefers-reduced-motion:reduce){.hg-reveal *, .hg-reveal[data-phase=opening] *{animation:none!important}.hg-reveal[data-phase=opening] .hg-fx-soft-glow{opacity:.15}.hg-fx-sparks{display:none}.hg-reveal[data-phase=revealed] .hg-fx-prize{animation:none}}

.hg-owned{display:block;width:fit-content;margin-top:7px;padding:4px 7px;border:1px solid #91c8a75c;border-radius:6px;background:#91c8a712;color:#b8e5c7;font-size:10px;line-height:1.6}.hg-skin .hg-owned{font-size:9px}

/* One finite ceremony per accepted reward. All moving layers use transform/opacity. */
.hg-choice-cards{position:absolute;inset:0;z-index:5;perspective:900px;--card-gap:clamp(82px,22vw,140px)}
.hg-choice-card{position:absolute;left:50%;top:50%;width:clamp(76px,20vw,108px);height:184px;transform:translate(calc(-50% + var(--card-index)*var(--card-gap)),-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;border:1px solid #d3b378;border-radius:12px;background:radial-gradient(ellipse,#4c355a,#201e35 72%);color:#ecd194;box-shadow:0 9px 22px #080b1366;transition:transform .24s,box-shadow .24s;isolation:isolate}
.hg-card-border{position:absolute;inset:7px;border:1px solid #c8a57555;border-radius:7px;z-index:-1}.hg-card-border:after{content:'';position:absolute;inset:12px 8px;border:1px solid #a2d9c755;transform:rotate(12deg);border-radius:40%}
.hg-choice-card small{font-size:7px;letter-spacing:1px}.hg-choice-card b{font-size:13px}.hg-choice-card em{font-style:normal;font-size:9px;color:#a7c7b8}.hg-card-seal{font-size:34px;line-height:1;color:#e5c78b;text-shadow:0 0 20px #d5ae6a55}
.hg-reveal[data-phase=choosing] .hg-fx-box,.hg-reveal[data-phase=opening] .hg-fx-box{display:none}
.hg-reveal[data-phase=choosing] .hg-fx-sigil{opacity:.2;transform:scale(.95)}.hg-reveal[data-phase=choosing] .hg-fx-nebula{opacity:.45}
@media(hover:hover){.hg-reveal[data-phase=choosing] .hg-choice-card:hover{transform:translate(calc(-50% + var(--card-index)*var(--card-gap)),calc(-50% - 12px));box-shadow:0 0 22px #b7dcba33}}
.hg-reveal[data-phase=opening] .hg-choice-card{transition:none;pointer-events:none}
.hg-reveal[data-phase=opening] .hg-choice-card:not(.is-picked){animation:hg-card-dismiss 350ms ease-out both}
.hg-reveal[data-phase=opening] .hg-choice-card.is-picked{opacity:1;animation:hg-card-summon 2300ms cubic-bezier(.2,.7,.2,1) both}
.hg-reveal[data-phase=revealed] .hg-choice-cards{display:none}
@keyframes hg-card-dismiss{to{opacity:0;transform:translate(calc(-50% + var(--card-index)*var(--card-gap)),calc(-50% + 20px)) scale(.85)}}
@keyframes hg-card-summon{0%{transform:translate(calc(-50% + var(--card-index)*var(--card-gap)),-50%) rotateY(0)}25%{transform:translate(-50%,-55%) scale(1.15) rotateY(0);opacity:1}45%{transform:translate(-50%,-55%) scale(1.15) rotateY(-16deg)}65%{transform:translate(-50%,-55%) scale(1.15) rotateY(88deg);opacity:1}85%,100%{transform:translate(-50%,-55%) scale(1.2) rotateY(90deg);opacity:0}}
@media(max-width:540px){.hg-choice-card{height:160px;gap:13px;border-radius:9px}.hg-choice-card small{font-size:6px}.hg-choice-card b{font-size:12px}}
@media(prefers-reduced-motion:reduce){.hg-reveal .hg-choice-card{transition:none}.hg-reveal[data-phase=opening] .hg-choice-card:not(.is-picked){opacity:0}.hg-reveal[data-phase=opening] .hg-choice-card.is-picked{transform:translate(-50%,-50%)}}
.hg-reveal{align-items:safe center}
.hg-fx-panel{width:min(580px,100%);padding:28px 32px 26px;background:radial-gradient(ellipse at 50% 36%,#352840,#121921 75%);border-color:#c2a16d;border-radius:22px}
.hg-fx-stage{height:340px;margin:8px 0 0;isolation:isolate}
.hg-fx-eyebrow{letter-spacing:3px;font-size:9px}
.hg-fx-title{font-size:26px;letter-spacing:.2px}
.hg-fx-nebula{position:absolute;inset:0;border-radius:50%;opacity:0;background:radial-gradient(ellipse at 35% 45%,#7e499a55,transparent 58%),radial-gradient(ellipse at 65% 58%,#89dbc63b,transparent 58%);pointer-events:none}
.hg-fx-sigil{position:absolute;width:320px;max-width:100%;height:auto;fill:none;stroke:#c7a66d;stroke-width:1;opacity:0;z-index:0;pointer-events:none}
.hg-sigil-outer{stroke-dasharray:2 9;stroke-width:3}.hg-sigil-inner{stroke-width:2}.hg-sigil-runes{stroke:#b5e5d1;stroke-width:2.5;stroke-linecap:round}
.hg-fx-halo{position:absolute;width:230px;height:230px;border:2px solid #e5c585;border-radius:50%;opacity:0;box-shadow:inset 0 0 22px #d7c19244,0 0 22px #d7c19233;pointer-events:none;z-index:3}
.hg-fx-wisps{position:absolute;inset:0;pointer-events:none;z-index:3}
.hg-fx-wisps i{position:absolute;top:50%;left:50%;width:7px;height:7px;margin:-3px;border-radius:50%;background:#b8eddb;box-shadow:0 0 9px #9be7ce;opacity:0}
.hg-fx-box{width:300px;z-index:2}.hg-fx-rays{width:320px;height:320px;background:repeating-conic-gradient(from 0deg,#f8dc9224 0deg 3deg,transparent 3deg 20deg)}
.hg-fx-steps{display:flex;justify-content:center;align-items:center;gap:10px;margin:2px 0 18px;font-size:10px;color:#73827e;letter-spacing:.2px}.hg-fx-steps i{width:19px;height:1px;background:#b99a6244}.hg-fx-steps span{transition:color .2s}
.hg-reveal[data-phase=waiting] .hg-fx-steps{visibility:hidden}
.hg-reveal[data-beat=charge] .hg-fx-steps span:first-child,.hg-reveal[data-beat=unseal] .hg-fx-steps span:nth-of-type(2),.hg-reveal[data-beat=summon] .hg-fx-steps span:last-child,.hg-reveal[data-beat=reward] .hg-fx-steps span{color:#e6cc96}
.hg-fx-reward-frame{position:absolute;top:10px;bottom:16px;left:50%;width:226px;transform:translateX(-50%);border:1px solid #bca26a55;border-radius:13px;z-index:-1;background:linear-gradient(145deg,#f5d38a0d,transparent 48%,#a5e4cd0a);box-shadow:inset 0 0 25px #edce8b08}
.hg-fx-reward-frame:before,.hg-fx-reward-frame:after{content:'';position:absolute;inset:7px;border:1px solid #cfb37b22;border-radius:8px}.hg-fx-reward-frame:after{inset:-5px 20px;border-left:0;border-right:0;border-radius:0;border-color:#e2c68c77}
.hg-fx-reward-frame i{position:absolute;top:-12px;left:50%;transform:translateX(-50%);padding:0 8px;font-style:normal;color:#f0d69c;background:#27232f}
.hg-fx-prize{padding:20px 12px 16px;isolation:isolate}.hg-fx-prize img{height:170px;max-width:64%;margin-bottom:2px}.hg-fx-prize span{font-size:9px;letter-spacing:.5px;line-height:1.8;max-width:90%}.hg-fx-prize h3{font-size:20px;max-width:96%;margin-top:9px;line-height:1.6}
.hg-reveal[data-phase=opening] .hg-fx-nebula{animation:hg-ceremony-haze 2300ms ease-out both}
.hg-reveal[data-phase=opening] .hg-fx-sigil{animation:hg-ceremony-sigil 2300ms cubic-bezier(.2,.65,.3,1) both}
.hg-reveal[data-phase=opening] .hg-fx-box{animation:hg-ceremony-box 1800ms ease-in-out both}
.hg-reveal[data-phase=opening] .hg-chest-lid{animation:hg-ceremony-lid 720ms 1180ms cubic-bezier(.16,.8,.24,1) both}
.hg-reveal[data-phase=opening] .hg-fx-soft-glow{animation:hg-ceremony-glow 2300ms ease-out both}
.hg-reveal[data-phase=opening] .hg-fx-rays{animation:hg-ceremony-rays 1200ms 1100ms ease-out both}
.hg-reveal[data-phase=opening] .hg-fx-wisps i{animation:hg-ceremony-wisp 1200ms ease-in both;animation-delay:calc(var(--w)*45ms)}
.hg-reveal[data-phase=opening] .hg-fx-halo{animation:hg-ceremony-wave 850ms 1420ms ease-out both}
.hg-reveal[data-phase=opening] .hg-fx-sparks i{animation:hg-ceremony-spark 1000ms ease-out both;animation-delay:calc(1370ms + var(--i)*16ms)}
.hg-reveal[data-phase=revealed] .hg-fx-nebula{opacity:.55}.hg-reveal[data-phase=revealed] .hg-fx-sigil{opacity:.17;transform:rotate(55deg) scale(1.08)}
.hg-reveal[data-phase=revealed] .hg-fx-rays{opacity:.28;transform:scale(1.05) rotate(48deg)}
.hg-reveal[data-phase=revealed] .hg-fx-soft-glow{opacity:.25}
.hg-reveal[data-phase=revealed] .hg-fx-prize{animation:hg-ceremony-prize 580ms cubic-bezier(.18,.8,.24,1) both}
.hg-reveal[data-phase=revealed] .hg-fx-halo{animation:hg-ceremony-wave 700ms ease-out both}
@keyframes hg-ceremony-haze{0%{opacity:0;transform:scale(.8) rotate(-15deg)}45%{opacity:.8}100%{opacity:.5;transform:scale(1.12) rotate(20deg)}}
@keyframes hg-ceremony-sigil{0%{opacity:0;transform:rotate(-65deg) scale(.45)}35%{opacity:.7;transform:rotate(-15deg) scale(.9)}65%{opacity:.95}100%{opacity:.17;transform:rotate(55deg) scale(1.08)}}
@keyframes hg-ceremony-box{0%{transform:translateY(10px) scale(.94)}25%{transform:translateY(-4px) scale(1.01)}40%{transform:translateY(-5px) rotate(-2deg)}48%{transform:translateY(-5px) rotate(2deg)}56%{transform:translateY(-7px) rotate(-3deg)}64%{transform:translateY(-7px) rotate(3deg)}72%{transform:translateY(-8px) scale(1.06)}85%{opacity:1;transform:translateY(-2px) scale(1.02)}100%{opacity:0;transform:translateY(28px) scale(.82)}}
@keyframes hg-ceremony-lid{0%{transform:translateY(0) rotate(0);opacity:1}40%{opacity:1}100%{transform:translateY(-105px) rotate(-28deg);opacity:0}}
@keyframes hg-ceremony-glow{0%,20%{opacity:0;transform:scale(.4)}58%{opacity:.42;transform:scale(.8)}75%{opacity:.85;transform:scale(1.2)}100%{opacity:.25;transform:scale(1.1)}}
@keyframes hg-ceremony-rays{0%{opacity:0;transform:scale(.3) rotate(-20deg)}60%{opacity:.7}100%{opacity:.28;transform:scale(1.05) rotate(48deg)}}
@keyframes hg-ceremony-wisp{0%{opacity:0;transform:rotate(calc(var(--w)*45deg)) translateY(-155px) scale(.5)}25%{opacity:.9}85%{opacity:.8}100%{opacity:0;transform:rotate(calc(var(--w)*45deg + 95deg)) translateY(-15px) scale(.2)}}
@keyframes hg-ceremony-wave{0%{opacity:0;transform:scale(.2)}20%{opacity:.65}100%{opacity:0;transform:scale(1.5)}}
@keyframes hg-ceremony-spark{0%{opacity:0;transform:rotate(calc(var(--i)*30deg)) translateY(-30px) scale(.5)}20%{opacity:.95}100%{opacity:0;transform:rotate(calc(var(--i)*30deg + 15deg)) translateY(-170px) scale(.2)}}
@keyframes hg-ceremony-prize{0%{opacity:0;transform:translateY(30px) scale(.6)}65%{opacity:1;transform:translateY(-5px) scale(1.035)}100%{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:540px){.hg-fx-panel{padding:23px 13px 20px}.hg-fx-title{font-size:21px}.hg-fx-stage{height:300px}.hg-fx-box{width:268px}.hg-fx-sigil{width:288px}.hg-fx-rays{width:280px;height:280px}.hg-fx-reward-frame{width:204px;top:10px;bottom:10px}.hg-fx-prize img{height:145px}.hg-fx-prize h3{font-size:17px}.hg-fx-steps{font-size:9px;gap:7px}.hg-fx-steps i{width:15px}}
@media(max-height:600px){.hg-fx-panel{padding-top:18px;padding-bottom:16px}.hg-fx-stage{height:244px}.hg-fx-sigil{width:240px}.hg-fx-box{width:228px}.hg-fx-title{font-size:20px;margin-top:7px}.hg-fx-prize img{height:112px}.hg-fx-prize h3{font-size:16px}.hg-fx-steps{margin-bottom:10px}.hg-fx-demo{margin-bottom:8px}}
@media(prefers-reduced-motion:reduce){.hg-reveal .hg-fx-steps span{transition:none}.hg-reveal .hg-fx-wisps,.hg-reveal .hg-fx-halo{display:none}.hg-reveal[data-phase=opening] *,.hg-reveal[data-phase=revealed] *{animation:none!important}.hg-reveal[data-phase=opening] .hg-fx-sigil{opacity:.17}.hg-reveal[data-phase=revealed] .hg-fx-prize{transform:none;opacity:1}}

.hg-key-mini{display:inline-block;width:22px;height:22px;vertical-align:middle}.hg-key-mini img{width:22px;height:22px;image-rendering:pixelated}

.hg-token-loader{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-6px 0 16px;color:#aebeaa;font-size:11px;line-height:1.7}.hg-token-loader button{min-height:44px;padding:8px 14px;border:1px solid #c8a66b66;border-radius:8px;background:#b8995914;color:#e4cc9c;font:inherit;white-space:nowrap}.hg-token-loader button:disabled{opacity:.5}.hg-token-loader [hidden],.hg-token-loader[hidden]{display:none!important}


/* One presentation budget for every device; motion uses transforms and opacity. */
.hg-top-actions{display:flex;gap:8px;align-items:center}
.hg-dialog{box-shadow:0 10px 30px #0007}.hg-dialog::backdrop{backdrop-filter:none}
.hg-dialog :is(.hg-reveal,.hg-fx-panel){backdrop-filter:none}
.hg-dialog :is(.hg-chest-display,.hg-chest-display *,.hg-fx-box,.hg-fx-box *,.hg-fx-prize img,.hg-choice-card,.hg-skin){filter:none;box-shadow:none}
.hg-dialog :is(.hg-fx-wisps,.hg-fx-rays,.hg-fx-soft-glow){display:none}
.hg-dialog .hg-fx-sparks i:nth-child(n+7){display:none}
.hg-dialog .hg-fx-halo{box-shadow:none}
.hg-altar .hg-chest-display{animation:hg-idle-float 3.6s ease-in-out infinite}
.hg-altar .hg-orbit{animation:hg-idle-star 4s ease-in-out infinite}
.hg-altar[data-motion=paused] :is(.hg-chest-display,.hg-orbit){animation-play-state:paused}
@keyframes hg-idle-float{50%{transform:translateY(-4px)}}
@keyframes hg-idle-star{50%{opacity:.55;transform:translateY(3px)}}
@media(prefers-reduced-motion:reduce){.hg-altar :is(.hg-chest-display,.hg-orbit){animation:none}}
