.edition-dialog{width:min(1050px,94vw);max-height:92vh;overflow:auto;border:1px solid #d9be7e;border-radius:28px;padding:30px;background:radial-gradient(ellipse at top,#293353,#101528 70%);color:#fff;text-align:center}.edition-dialog::backdrop{background:#090d20d9;backdrop-filter:blur(7px)}.edition-close{float:right}.wish-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:24px}.wish-card{border:1px solid #ead7a544;border-radius:22px;padding:18px 12px;background:#ffffff08;transition:transform .7s,opacity .7s}.wish-card h3{color:#ffe6a4}.wish-art{height:235px;position:relative;isolation:isolate}.wish-shell{position:absolute;bottom:0;left:5%;width:90%;z-index:4;filter:drop-shadow(0 8px 12px #0005)}.wish-star{position:absolute;color:#ffd85f;font-size:23px;text-shadow:0 0 9px #ffb027;z-index:2}.wish-four{position:absolute;inset:15px 0 45px;animation:wish-orbit 12s linear infinite}.wish-four i{position:absolute;left:50%;top:50%;width:90px;height:125px;border-radius:50%;transform:translate(-50%,-50%) rotate(var(--a)) translateY(-48px);background:radial-gradient(ellipse,#fff6d9 0%,#a9ddff99 20%,#925cf466 45%,transparent 70%);filter:drop-shadow(0 0 14px #ba8bff);mix-blend-mode:screen}.wish-avatar{position:absolute;top:60px;left:calc(50% - 49px);width:98px;height:98px;border-radius:50%;background-color:#576282;background-size:cover;background-position:center;display:grid;place-items:center;font-size:40px;z-index:3}.wish-fire{position:absolute;width:240px;height:240px;left:calc(50% - 120px);top:-11px;z-index:2;pointer-events:none}.wish-card input[type=color]{display:block;margin:8px auto;width:65px;height:38px}.wish-card button{margin-top:12px}.wish-selected .wish-card:not(.chosen){display:none}.wish-selected{grid-template-columns:minmax(0,430px);justify-content:center}.wish-selected .chosen{animation:wish-enlarge .7s ease-out}.fire-award .wish-fire{animation:fire-absorb 2.4s ease-in-out}.time-token-coin{font-size:100px;margin:25px;filter:drop-shadow(0 0 30px #c392ff)}.time-used{animation:time-use 1.5s ease-out}.edition-dialog label{display:block}.edition-dialog input[type=date]{display:block;margin:12px auto;padding:12px;color:#18233a;background:white;border-radius:10px}.edition-odds{margin-top:20px}.edition-odds p{margin:5px}.mystic-count-4 .mystic-lights{animation:wish-orbit 12s linear infinite}.mystic-count-4 .mystic-orbit{transform:rotate(var(--angle)) translateY(-95px)}.mystic-count-4 .mystic-light{transform:rotate(calc(-1 * var(--angle)))}
@keyframes wish-orbit{to{rotate:360deg}}@keyframes wish-enlarge{from{transform:scale(.65);opacity:.5}to{transform:scale(1);opacity:1}}@keyframes fire-absorb{0%{transform:scale(1.65);filter:brightness(2)}55%{transform:scale(1.3);filter:brightness(2.5)}75%{transform:scale(.35);filter:brightness(3)}100%{transform:scale(1);filter:brightness(1)}}@keyframes time-use{50%{transform:rotate(180deg) scale(1.3)}100%{transform:rotate(360deg)}}@media(max-width:650px){.wish-grid{grid-template-columns:1fr}.wish-art{max-width:290px;margin:auto}.edition-dialog{padding:18px}}@media(prefers-reduced-motion:reduce){.edition-dialog *,.mystic-count-4 *{animation:none!important;transition:none!important}}
/* Match the existing admin fire artwork; only its hue changes. */
.wish-art.fire .wish-avatar{top:24px}.wish-art.fire .wish-fire{width:167px;height:167px;left:calc(50% - 78px);top:-19px;filter:hue-rotate(var(--fire-hue,0deg));animation:wish-fire-colors 8s linear infinite}.wish-art.color-chosen .wish-fire{animation:none}.wish-art.fire-award .wish-fire{animation:fire-absorb 2.4s ease-in-out}.wish-art.stars .wish-shell{z-index:20}.token-hatch{position:relative;margin:20px auto;max-width:360px;isolation:isolate}.token-egg{position:relative;display:block;width:220px;margin:auto;border:0;background:none;cursor:pointer;z-index:1;padding:0}.token-egg svg{width:100%;overflow:visible;filter:drop-shadow(0 0 25px #b78e3c55)}.token-streams{fill:none;stroke:#80530c;stroke-width:9;stroke-linecap:round;opacity:.65;animation:token-whip 1.8s ease-in-out infinite alternate}.token-streams path+path{stroke-width:4;stroke:#a46e18}.wish-token .token-streams{display:none}.wish-token::before,.wish-token::after{content:'';position:absolute;inset:0 -20px 25px;background:radial-gradient(ellipse,#9684b155,transparent 65%);filter:blur(18px);animation:token-mist 4s ease-in-out infinite alternate;z-index:-1}.wish-token::after{animation-delay:-2s;rotate:45deg}.token-crack{fill:none;stroke:#e6efff;stroke-width:3;filter:drop-shadow(0 0 6px #fff);stroke-dasharray:600;stroke-dashoffset:600;transition:stroke-dashoffset .3s}.wish-token .token-crack{stroke:#ffda76;filter:drop-shadow(0 0 9px #ffc23e)}[data-cracks="1"] .token-crack{stroke-dashoffset:400}[data-cracks="2"] .token-crack{stroke-dashoffset:180}[data-cracks="3"] .token-crack{stroke-dashoffset:0}.token-hatch.hatched{animation:token-open .85s forwards}.token-home-preview{padding:24px;border:1px solid #d9be7e77;border-radius:20px;background:#ffffff08}
@keyframes wish-fire-colors{to{filter:hue-rotate(360deg)}}@keyframes token-whip{from{transform:translate(-18px,-10px) skewY(-12deg)}to{transform:translate(22px,20px) skewY(16deg)}}@keyframes token-mist{from{transform:translate(-25px,15px) scale(.9);opacity:.5}to{transform:translate(25px,-15px) scale(1.2);opacity:1}}@keyframes token-open{50%{filter:brightness(2.7);transform:scale(1.1)}100%{opacity:0;transform:scale(1.4)}}@media(prefers-reduced-motion:reduce){.token-hatch *,.token-hatch::before,.token-hatch::after,.wish-art.fire .wish-fire{animation:none!important}}
/* Special eggs share the ordinary machine rollout and fullscreen egg reveal. */
.token-reward-dialog{border:0;border-radius:0;background:transparent;box-shadow:none;width:min(1050px,96vw);color:white}.token-reward-dialog::backdrop{background:#090d20e8;backdrop-filter:none}.special-token-svg .token-streams{transform-origin:100px 120px;animation:token-swirl 2.2s linear infinite;stroke:#916015;stroke-width:8;opacity:.6}.special-token-svg.egg-wish-token .token-streams{display:none}.special-token-reveal .token-crack{stroke-dashoffset:600}.special-token-reveal[data-cracks="1"] .token-crack{stroke-dashoffset:400}.special-token-reveal[data-cracks="2"] .token-crack{stroke-dashoffset:180}.special-token-reveal[data-cracks="3"] .token-crack{stroke-dashoffset:0}.special-token-svg.egg-wish-token .token-crack{stroke:#ffe19b;filter:drop-shadow(0 0 8px #ffbd39)}.special-token-reveal.wish-token .crack-egg::before{content:'';position:absolute;inset:-25px;background:radial-gradient(ellipse,#9c83b650,transparent 68%);filter:blur(20px);animation:token-mist 3s ease-in-out infinite alternate;z-index:-1}.dark-reward-shell .egg-shell-remains path:first-of-type,.dark-reward-shell .egg-ground-fragment svg path:first-of-type{fill:#211c31;stroke:#806146}.dark-reward-shell .egg-shell-remains path+path,.dark-reward-shell .egg-ground-fragment svg path+path{stroke:#58405e}.time-token-coin svg{display:block;width:200px;height:200px;margin:auto;filter:drop-shadow(0 0 22px #eebf5255)}.coin-hourglass{transform-origin:100px 100px;animation:coin-hourglass-turn 4s ease-in-out infinite}.coin-sand{animation:coin-sand-glow 2s ease-in-out infinite alternate}.token-reward-dialog .wish-card{background:transparent;border:0}.token-reward-dialog .wish-selected .wish-art{transform:scale(1.15);margin:25px auto}.dark-reward-shell .crack-egg{display:none}@keyframes token-swirl{to{transform:rotate(360deg)}}@keyframes coin-hourglass-turn{0%,65%{transform:rotate(0)}85%,100%{transform:rotate(180deg)}}@keyframes coin-sand-glow{to{opacity:.45}}@media(prefers-reduced-motion:reduce){.special-token-svg .token-streams,.coin-hourglass,.coin-sand{animation:none!important}}

/* Keep reward-coin styling off the egg SVG; match the ordinary egg geometry. */
.dispensed-egg .special-token-svg,.crack-egg .special-token-svg{display:block;width:100%;height:100%;margin:0;padding:0;transform:none;vertical-align:middle}
.token-reward-dialog:has(.wish-grid){width:min(1200px,96vw);max-width:1200px;padding:24px;box-sizing:border-box}
.token-reward-dialog .wish-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;width:100%;align-items:stretch}
.token-reward-dialog .wish-card{min-width:0;padding:20px 12px;display:flex;flex-direction:column;align-items:center}
.token-reward-dialog .wish-card .wish-art{width:100%;max-width:340px;flex-shrink:0;height:270px}
.token-reward-dialog .wish-card h3{min-height:2.8em;margin:18px 0 8px}
.token-reward-dialog .wish-card>button{margin-top:auto;min-width:140px}
.token-reward-dialog .wish-grid.wish-selected{grid-template-columns:minmax(0,460px);justify-content:center}
@media(max-width:650px){.token-reward-dialog:has(.wish-grid){padding:12px}.token-reward-dialog .wish-grid{grid-template-columns:1fr}.token-reward-dialog .wish-card{padding:16px}.token-reward-dialog .wish-card>button{margin-top:12px}}

.special-token-reveal{margin:auto!important;inset:0;align-self:center}.special-token-reveal .egg-reveal-stage{display:grid;place-items:center}.special-token-reveal .crack-egg{margin:0;width:220px;height:266px}.token-reward-dialog{margin:auto;inset:0}.time-token-coin{margin:25px auto;width:200px;height:200px}
#preview-token-balance{position:fixed;z-index:50;display:flex;align-items:center;gap:7px;padding:7px 12px;border:1px solid #bf912e;border-radius:999px;background:linear-gradient(120deg,#fff5ce,#edcf7f);color:#795017;box-shadow:0 4px 16px #79501718;font-variant-numeric:tabular-nums;font-size:1.05rem}#preview-token-balance[hidden],#home-token-previews[hidden]{display:none}#preview-token-balance small{font-size:.65rem}#preview-token-balance button{border:0;border-left:1px solid #bb8e3d;background:transparent;color:#795017;font-size:1.2rem;line-height:1;cursor:pointer;padding:3px 0 3px 9px}#home-token-previews{margin:24px 0;padding:20px;border:1px solid #d7b65f;border-radius:18px;background:#fff9e9;color:#795017}#home-token-previews button{margin:6px}#tokens-page{padding:24px}@media(max-width:600px){#preview-token-balance{padding:6px;gap:4px;font-size:.85rem}#preview-token-balance small{display:none}#preview-token-balance svg{width:20px;height:20px}}
.time-use-card{max-width:760px;margin:24px auto;padding:clamp(24px,5vw,48px);border:1px solid #dec888;border-radius:28px;background:linear-gradient(145deg,#fffdf5,#fff5d9);color:#45351c;text-align:center;box-shadow:0 16px 45px #91732a18}.time-use-coin svg{width:88px;height:88px;filter:drop-shadow(0 8px 14px #c99d3e44)}.time-use-card h2{margin:20px 0 12px}.token-preview-note{font-size:.9rem;color:#756445}.time-use-balance{font-size:1.5rem;font-weight:750}.time-use-dates{display:flex;align-items:center;justify-content:center;gap:20px;margin:28px 0}.time-use-dates div{flex:1;padding:20px 12px;background:#ffffffb8;border-radius:16px}.time-use-dates span,.time-use-dates strong{display:block}.time-use-dates strong{margin-top:10px}.time-use-detail{line-height:1.8}.time-use-action{margin:18px 0 6px}.time-use-back{margin-top:16px}.time-use-confirm{max-width:min(480px,90vw);padding:28px;border:1px solid #dec888;border-radius:22px}.time-use-confirm::backdrop{background:#17273599}.time-use-confirm button{margin:12px 10px 0 0}@media(max-width:480px){.time-use-dates{gap:8px}.time-use-dates div{padding:16px 8px}.time-use-dates strong{font-size:.95rem}}

/* Limited edition ring replaces the Wish fire artwork. */
.wish-edition-ring{--ring-color:#9b71ee;position:absolute;left:calc(50% - 59px);top:50px;width:118px;height:118px;border-radius:50%;border:3px solid var(--ring-color);box-shadow:0 0 18px color-mix(in srgb,var(--ring-color) 45%,transparent);z-index:3;pointer-events:none;animation:edition-ring-colors 8s linear infinite}
.wish-edition-ring::before,.wish-edition-ring::after{content:'';position:absolute;inset:-8px;border:2px solid transparent;border-top-color:white;border-right-color:var(--ring-color);border-radius:50%;animation:wish-orbit 5s linear infinite}
.wish-edition-ring::after{inset:3px;border-top-color:var(--ring-color);border-right-color:white;animation-direction:reverse;animation-duration:7s}
.color-chosen .wish-edition-ring{--ring-color:inherit;animation:none}
.fire-award .wish-edition-ring{animation:edition-ring-arrive 2.4s ease-out both}
@keyframes edition-ring-colors{to{filter:hue-rotate(360deg)}}
@keyframes edition-ring-arrive{0%{transform:scale(1.8);opacity:0}45%{opacity:1}100%{transform:scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.wish-edition-ring,.wish-edition-ring::before,.wish-edition-ring::after,.fire-award .wish-edition-ring{animation:none}}

.wish-avatar .wish-edition-ring{inset:-10px;width:auto;height:auto;box-sizing:border-box}.wish-avatar{overflow:visible}

#edition-token-balance{position:fixed;z-index:60;display:flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid #cba44d;border-radius:18px;background:linear-gradient(130deg,#fff4bf,#e6bd58);color:#684713;box-shadow:0 4px 14px #7b5a2620}#edition-token-balance[hidden]{display:none}#edition-token-balance button{border:0;background:transparent;color:inherit;font-size:20px;padding:0 3px;cursor:pointer}#tokens-page .wish-use-action{display:block;margin:16px auto}#tokens-page .wish-use-action[hidden]{display:none}.wish-edition-ring{pointer-events:none}
