/* Load after the existing gacha styles. Local shell burst followed by a card rise;
   no full-screen flashes, camera shake or continuous idle motion. */
.egg-sanctuary:has(.hatch-scene){max-width:760px;margin-inline:auto;padding:4px 0 12px;background:radial-gradient(ellipse at 50% 50%,#133d5e3d,transparent 66%)}
.egg-sanctuary:has(.hatch-scene) .egg-status{margin-bottom:10px;padding:6px 13px;border-color:#375a73;background:#17304780;color:#c5e5f7}
.egg-sanctuary:has(.hatch-scene)>.eyebrow{margin:6px 0;color:#91d5ee;font-size:10px;letter-spacing:.2em}
.egg-sanctuary:has(.hatch-scene)>h1{margin:5px 0;font-size:clamp(24px,3vw,35px);line-height:1.18;text-wrap:balance}
.egg-sanctuary:has(.hatch-scene) .egg-time{margin:4px 0 7px}
.egg-sanctuary:has(.hatch-scene) .reward-pill{margin:5px 0;font-size:12px}
.egg-sanctuary:has(.hatch-scene)>.text-button{min-height:40px;color:#b0c8dc}
.hero-egg-button:has(.hatch-scene){--hatch-color:#7edbff;min-height:296px;width:min(100%,420px);margin:0 auto;padding:0;gap:0;color:#b6e8ff;background:none;box-shadow:none;overflow:visible;-webkit-tap-highlight-color:transparent}
.hero-egg-button:has(.hatch-scene):focus-visible{outline:2px solid #a6e8ff;outline-offset:3px;border-radius:28px}
.hero-egg-button:has(.hatch-scene):disabled{opacity:.55}
.hero-egg-button:has(.hatch-scene).is-hatching:disabled{opacity:1}
.hero-egg-button:has(.hatch-scene)>.egg-halo{display:none}
.hero-egg-button:has(.hatch-scene) .egg-touch-hint{position:relative;min-height:22px;margin:0 0 7px;font-size:10px;line-height:1.5;letter-spacing:.18em;color:#bae7f7}
.hatch-interlude{--hatch-color:#7edbff;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:390px;padding:26px 18px;overflow:hidden;text-align:center;background:radial-gradient(ellipse at 50% 49%,#123751,#0d1d30 73%)}
.hatch-interlude>h2{font-size:clamp(23px,5vw,30px);line-height:1.15;margin:6px 0 10px;text-wrap:balance}
.hatch-interlude>p{font-size:13px;line-height:1.5;color:#aecbdf;margin:8px 0}

.hatch-scene{--egg-size:280px;position:relative;display:block;flex:none;isolation:isolate;inline-size:min(100%,420px);block-size:calc(var(--egg-size)*.94);margin-inline:auto;pointer-events:none;color:var(--hatch-color,#7edbff)}
.hatch-scene>span{position:absolute;display:block;pointer-events:none}
.hatch-scene .egg-shell{z-index:3;inset:auto;left:50%;top:50%;width:var(--egg-size);height:var(--egg-size);max-width:none;margin:calc(var(--egg-size)*-.5);border:0;border-radius:0;background:none;box-shadow:none;filter:drop-shadow(0 15px 12px #020c1980);transform:none;animation:none;transform-origin:50% 78%}
.hatch-scene .egg-half{inset:0;width:100%;height:100%;border:0;border-radius:0;background-color:transparent;background-image:var(--hatch-egg-art,url('/assets/ui/hatching/egg-blue-3d.png'));background-size:contain;background-position:center;background-repeat:no-repeat;box-shadow:none;opacity:1;transform:none;animation:none;transform-origin:50% 55%;backface-visibility:hidden}
.hatch-scene .egg-half::before,.hatch-scene .egg-half::after{content:none;display:none}
.hatch-scene .egg-top{clip-path:polygon(0 0,100% 0,100% 50%,90% 50%,76% 54%,62% 47%,49% 56%,35% 47%,22% 54%,10% 50%,0 50%)}
.hatch-scene .egg-bottom{clip-path:polygon(0 49.9%,10% 49.9%,22% 53.9%,35% 46.9%,49% 55.9%,62% 46.9%,76% 53.9%,90% 49.9%,100% 49.9%,100% 100%,0 100%)}
.hatch-scene .hatch-aura{z-index:0;inset:5% 8% 0;border-radius:50%;background:radial-gradient(ellipse,color-mix(in srgb,var(--hatch-color,#7edbff) 19%,transparent),transparent 68%);opacity:.75}
.hatch-scene .hatch-orbit{z-index:1;inset:14% 18%;border:1px solid color-mix(in srgb,var(--hatch-color,#7edbff) 25%,transparent);border-radius:50%;transform:rotate(-23deg) scaleY(.8);box-shadow:inset 0 0 16px #59beef08,0 0 22px #59beef08}
.hatch-scene .hatch-orbit::before,.hatch-scene .hatch-orbit::after{content:'';position:absolute;width:5px;height:5px;top:19%;left:11%;border-radius:50%;background:currentColor;opacity:.65;box-shadow:0 0 8px currentColor}
.hatch-scene .hatch-orbit::after{top:auto;left:auto;bottom:16%;right:12%;width:3px;height:3px;opacity:.4}
.hatch-scene .hatch-platform{z-index:2;bottom:2%;left:17%;width:66%;height:17%;border:1px solid color-mix(in srgb,var(--hatch-color,#7edbff) 42%,transparent);border-radius:50%;background:radial-gradient(ellipse,#397fa82b 0,#0b203c70 48%,#7edbff15 65%,transparent 70%);box-shadow:0 8px 18px #02091480,inset 0 0 0 7px #6ac9f00a;transform:scaleY(.66)}
.hatch-scene .hatch-platform::after{content:'';position:absolute;inset:19% 13%;border:1px solid color-mix(in srgb,var(--hatch-color,#7edbff) 20%,transparent);border-radius:50%}
.hatch-scene .hatch-crack{position:absolute;z-index:4;inset:0;width:100%;height:100%;overflow:visible;fill:none;stroke:#e6faff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:300;stroke-dashoffset:300;opacity:0;filter:drop-shadow(0 0 4px var(--hatch-color,#7edbff));pointer-events:none}
.hatch-scene .hatch-flash{z-index:2;inset:13% 18%;border-radius:50%;opacity:0;background:radial-gradient(ellipse,#e8fbff 0,color-mix(in srgb,var(--hatch-color,#7edbff) 65%,transparent) 27%,transparent 68%);transform:scale(.3)}
.hatch-scene .hatch-shockwave{z-index:2;inset:23% 23%;border:2px solid #e1f7ff;border-radius:50%;opacity:0;transform:scale(.25);box-shadow:0 0 14px color-mix(in srgb,var(--hatch-color,#7edbff) 65%,transparent),inset 0 0 12px color-mix(in srgb,var(--hatch-color,#7edbff) 45%,transparent)}
.hatch-scene .hatch-fragments{z-index:5;inset:0;opacity:0}
.hatch-fragments>i{--fragment-angle:calc(var(--i)*30deg);--fragment-distance:calc(var(--egg-size)*-.62);position:absolute;left:50%;top:50%;width:11px;height:18px;margin:-8px 0 0 -4px;display:block;background:linear-gradient(135deg,#fff3c7,#be9557 45%,#e6bf7e);clip-path:polygon(5% 5%,95% 24%,62% 100%,0 68%);opacity:0;transform:rotate(var(--fragment-angle)) translateY(-16px)}
.hatch-fragments>i:nth-child(even){width:6px;height:11px;--fragment-distance:calc(var(--egg-size)*-.49)}
.hatch-fragments>i:nth-child(3n){width:4px;height:4px;border-radius:50%;clip-path:none;background:#f1fcff;box-shadow:0 0 6px var(--hatch-color);--fragment-distance:calc(var(--egg-size)*-.69)}

.hero-egg-button.is-hatching .hatch-scene .egg-shell,.hatch-interlude.is-hatching .hatch-scene .egg-shell,.starter-slot.is-cracking .hatch-scene .egg-shell{animation:sg-hatch-shake 700ms ease-in-out both}
.hero-egg-button.is-hatching .hatch-scene .egg-top,.hatch-interlude.is-hatching .hatch-scene .egg-top,.starter-slot.is-cracking .hatch-scene .egg-top{animation:sg-hatch-top 1400ms cubic-bezier(.2,.7,.2,1) both}
.hero-egg-button.is-hatching .hatch-scene .egg-bottom,.hatch-interlude.is-hatching .hatch-scene .egg-bottom,.starter-slot.is-cracking .hatch-scene .egg-bottom{animation:sg-hatch-bottom 1400ms cubic-bezier(.2,.7,.2,1) both}
:is(.hero-egg-button.is-hatching,.hatch-interlude.is-hatching,.starter-slot.is-cracking) .hatch-crack{animation:sg-hatch-crack 1400ms ease-out both}
:is(.hero-egg-button.is-hatching,.hatch-interlude.is-hatching,.starter-slot.is-cracking) .hatch-flash{animation:sg-hatch-light 1400ms ease-out both}
:is(.hero-egg-button.is-hatching,.hatch-interlude.is-hatching,.starter-slot.is-cracking) .hatch-shockwave{animation:sg-hatch-shockwave 1400ms ease-out both}
:is(.hero-egg-button.is-hatching,.hatch-interlude.is-hatching,.starter-slot.is-cracking) .hatch-orbit{animation:sg-hatch-ring 1400ms ease-out both}
:is(.hero-egg-button.is-hatching,.hatch-interlude.is-hatching,.starter-slot.is-cracking) .hatch-fragments{opacity:1}
:is(.hero-egg-button.is-hatching,.hatch-interlude.is-hatching,.starter-slot.is-cracking) .hatch-fragments>i{animation:sg-hatch-fragment 1400ms cubic-bezier(.12,.7,.28,1) both}
.starter-slot.is-cracking:has(.hatch-scene)::after{content:none;display:none}
.starter-slot .hatch-scene{--egg-size:200px;width:100%;margin:0 auto}
.starter-slot:has(.hatch-scene) .egg-touch{min-height:232px;padding:27px 0 7px;gap:3px}
.starter-slot .hatch-platform{left:13%;width:74%}
.starter-slot .hatch-orbit{inset:15% 9%}

@keyframes sg-hatch-shake{0%,100%{transform:translateX(0) rotate(0)}8%{transform:translateY(-2px) rotate(-2deg)}18%{transform:none}42%{transform:translateX(2px) rotate(3deg)}53%{transform:translateX(-3px) rotate(-4deg)}77%{transform:translateY(-4px) rotate(5deg) scale(1.025)}89%{transform:translateX(-3px) rotate(-5deg) scale(1.04)}}
@keyframes sg-hatch-crack{0%{opacity:0;stroke-dashoffset:300}8%,19%{opacity:.5;stroke-dashoffset:240}24%,38%{opacity:.75;stroke-dashoffset:145}44%,57%{opacity:1;stroke-dashoffset:0}67%,100%{opacity:0;stroke-dashoffset:0}}
@keyframes sg-hatch-top{0%,57%{opacity:1;transform:none}71%{opacity:1;transform:translate(-14%,-24%) rotate(-21deg)}100%{opacity:0;transform:translate(-29%,-43%) rotate(-48deg) scale(.72)}}
@keyframes sg-hatch-bottom{0%,57%{opacity:1;transform:none}72%{opacity:1;transform:translate(13%,20%) rotate(17deg)}100%{opacity:0;transform:translate(26%,39%) rotate(43deg) scale(.75)}}
@keyframes sg-hatch-light{0%,48%{opacity:0;transform:scale(.25)}58%{opacity:.22;transform:scale(.5)}64%{opacity:.9;transform:scale(1.15)}100%{opacity:0;transform:scale(1.85)}}
@keyframes sg-hatch-shockwave{0%,57%{opacity:0;transform:scale(.25)}64%{opacity:.85}100%{opacity:0;transform:scale(1.9)}}
@keyframes sg-hatch-ring{0%,50%{opacity:1;transform:rotate(-23deg) scaleY(.8)}67%{opacity:.85;transform:rotate(-12deg) scale(1.03,.82)}100%{opacity:0;transform:rotate(0) scale(1.45,1.1)}}
@keyframes sg-hatch-fragment{0%,57%{opacity:0;transform:rotate(var(--fragment-angle)) translateY(-16px)}64%{opacity:1}84%{opacity:.8}100%{opacity:0;transform:rotate(var(--fragment-angle)) translateY(var(--fragment-distance)) rotate(120deg) scale(.45)}}

/* A compact reveal, with the dinosaur and its name ahead of secondary details. */
.hatch-result{position:relative;isolation:isolate;max-width:100%;min-width:0;padding:20px 24px 16px;overflow:hidden;text-align:center;perspective:none;background:radial-gradient(ellipse at 50% 32%,color-mix(in srgb,var(--rarity,#7edbff) 12%,#142b42),#102034 72%);animation:sg-hatch-result-in 360ms ease-out both}
.hatch-result::before{content:'';position:absolute;z-index:-1;inset:6% 7% 17%;border-radius:50%;pointer-events:none;background:radial-gradient(ellipse,color-mix(in srgb,var(--rarity,#7edbff) 15%,transparent),transparent 67%)}
.hatch-result-heading{position:relative;z-index:1;max-width:100%;margin:0 auto;overflow-wrap:anywhere}
.hatch-result-heading h2,.hatch-result h2.hatch-result-heading{font-size:clamp(23px,4.5vw,32px);line-height:1.12;letter-spacing:-.035em;margin:7px 0 5px;text-wrap:balance}
.hatch-result-heading p,.hatch-result .hatch-result-summary{color:#bdd0e2;font-size:13px;line-height:1.45;margin:6px auto;max-width:38ch;text-wrap:pretty}
.hatch-result-rarity{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:5px 11px;border:1px solid color-mix(in srgb,var(--rarity,#7edbff) 50%,transparent);border-radius:99px;background:color-mix(in srgb,var(--rarity,#7edbff) 11%,transparent);color:var(--rarity,#7edbff);font-size:10px;font-weight:800;line-height:1.35;letter-spacing:.11em;text-transform:uppercase;overflow-wrap:anywhere}
.hatch-result-rarity svg{width:14px;height:14px;flex:none}
.hatch-result-art{position:relative;z-index:1;width:min(100%,320px);margin:12px auto 9px;border-radius:24px;overflow:hidden;border:1px solid color-mix(in srgb,var(--rarity,#7edbff) 35%,transparent);box-shadow:0 15px 30px #020b164d}
.hatch-result .hatch-dinosaur{background:none;animation:none}
.hatch-result .hatch-dinosaur:not(.hatch-result-art){width:100%;max-width:none;margin:0}
.hatch-result-art>.art,.hatch-result-art .hatch-dinosaur>.art,.hatch-result .hatch-dinosaur>.art{position:relative;display:block;width:100%;aspect-ratio:1;border-radius:inherit;background-size:contain!important;background-position:center;background-repeat:no-repeat}
.hatch-result-art img{display:block;width:100%;height:100%;object-fit:contain}
.hatch-result .hatch-traits{position:relative;z-index:1;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 13px;margin:10px 0 13px;font-size:13px;line-height:1.4}
.hatch-result .hatch-traits .nature-badge{margin:0;padding:6px 10px;font-size:12px}
.hatch-result .hatch-traits svg{width:16px;height:16px;vertical-align:middle}
.hatch-result-actions{position:relative;z-index:1;display:flex;gap:10px;justify-content:center;align-items:stretch;flex-wrap:wrap;width:100%;margin:13px auto 0}
.hatch-result-actions>.btn,.hatch-result-actions>button{flex:1 1 140px;min-height:48px;min-width:0;max-width:100%;padding:12px 15px;border-radius:14px;font-size:14px;line-height:1.35;white-space:normal}
.hatch-result .pack-footnote{margin:11px auto 0;max-width:45ch;font-size:11px;line-height:1.45;color:#9fb6cc;overflow-wrap:anywhere}
.hatch-result.tier-reveal-S{box-shadow:inset 0 1px 0 #ffe1a98c}
.hatch-result.tier-reveal-S::after,.hatch-result.tier-reveal-A::after{content:'';position:absolute;z-index:0;inset:-8% -15% 10%;pointer-events:none;opacity:0;background:repeating-conic-gradient(from 8deg,transparent 0deg 20deg,color-mix(in srgb,var(--rarity,#f1bd62) 23%,transparent) 22deg 26deg,transparent 28deg 45deg);mask-image:radial-gradient(ellipse,#000 5%,transparent 67%);animation:sg-hatch-rarity-burst 900ms ease-out both}
.hatch-result.tier-reveal-S .hatch-result-art{border-color:color-mix(in srgb,var(--rarity,#f1bd62) 75%,transparent);box-shadow:0 0 0 3px #f1bd620a,0 15px 35px #020b1666,0 0 28px #f1bd621f}
.hatch-result.tier-reveal-A::after{inset:4% 0 23%;background:radial-gradient(ellipse,#c296ff38,transparent 65%);animation-duration:650ms}
.hatch-result.tier-reveal-A .hatch-result-art{border-color:#c296ff8c;box-shadow:0 12px 30px #020b1666,0 0 20px #b987ef15}
@keyframes sg-hatch-result-in{from{opacity:0;transform:translateY(7px) scale(.985)}to{opacity:1;transform:none}}
@keyframes sg-hatch-rarity-burst{0%{opacity:0;transform:scale(.7) rotate(-8deg)}27%{opacity:.85}100%{opacity:0;transform:scale(1.18) rotate(8deg)}}

@media(hover:hover) and (pointer:fine){.hero-egg-button:has(.hatch-scene):not(:disabled):not(.is-hatching):hover .hatch-scene .egg-shell{transform:translateY(-3px);filter:drop-shadow(0 14px 16px #61c8f033);transition:transform 180ms ease-out,filter 180ms ease-out}}
@media(max-width:620px){
 .egg-sanctuary:has(.hatch-scene){padding-top:2px}.egg-sanctuary:has(.hatch-scene)>h1{font-size:clamp(23px,6vw,29px)}
 .hero-egg-button:has(.hatch-scene){min-height:247px}.hero-egg-button .hatch-scene,.hatch-interlude .hatch-scene{--egg-size:224px;width:min(100%,320px)}
 .hatch-interlude{min-height:320px;padding:21px 14px}.hatch-interlude>h2{font-size:24px}
 .starter-slot .hatch-scene{--egg-size:min(170px,44vw)}.starter-slot:has(.hatch-scene) .egg-touch{min-height:200px;padding-top:27px;gap:3px}
 .hatch-result{padding:15px 16px 13px}.hatch-result-heading h2,.hatch-result h2.hatch-result-heading{font-size:clamp(22px,6vw,27px);margin-top:6px}
 .hatch-result-art{width:min(100%,270px,38svh);margin:10px auto 8px;border-radius:20px}.hatch-result-rarity{font-size:10px;padding:5px 10px}
 .hatch-result .hatch-traits{gap:7px 10px;margin:9px 0;font-size:12px}.hatch-result .hatch-traits .nature-badge{font-size:11px}
 .hatch-result-heading p,.hatch-result .hatch-result-summary{font-size:12px;line-height:1.4;margin:5px auto}
 .hatch-result-actions{gap:8px;margin-top:11px}.hatch-result-actions>.btn,.hatch-result-actions>button{flex-basis:120px;padding:11px 10px;font-size:13px}
 .hatch-result .pack-footnote{font-size:10px;margin-top:9px}
}
@media(max-width:359px){.hatch-result{padding-inline:12px}.hatch-result-art{width:min(100%,230px,35svh)}.hatch-result-actions{gap:7px}.hatch-result-actions>.btn,.hatch-result-actions>button{flex-basis:110px;font-size:12px}.hero-egg-button .hatch-scene{--egg-size:224px}.starter-slot .hatch-scene{--egg-size:145px}}
@media(max-height:620px) and (max-width:620px){.hatch-result-art{width:min(100%,210px,34svh)}.hatch-result{padding-block:12px}.hatch-result-heading h2,.hatch-result h2.hatch-result-heading{font-size:22px}.hatch-interlude{min-height:285px}.hatch-interlude .hatch-scene{--egg-size:215px}}
@media(prefers-reduced-motion:reduce){
 .hatch-scene,.hatch-scene *,.hatch-result,.hatch-result *,.hatch-result::after{animation:none!important;transition:none!important}
 .hatch-scene .egg-shell{transform:none!important}.hatch-scene .hatch-flash,.hatch-scene .hatch-shockwave,.hatch-scene .hatch-fragments,.hatch-result::after{display:none!important}
 :is(.hero-egg-button.is-hatching,.hatch-interlude.is-hatching,.starter-slot.is-cracking) .hatch-crack{opacity:1;stroke-dashoffset:0}
}

.village-destinations:has(>.village-destination:only-child){grid-template-columns:minmax(0,1fr);max-width:700px;margin-inline:auto}

.hatch-scene .hatch-crack{mask-image:var(--hatch-egg-art,url('/assets/ui/hatching/egg-blue-3d.png'));mask-size:contain;mask-position:center;mask-repeat:no-repeat}

/* One saved batch; each egg owns its burst, rise and flip timeline. */
.hatch-cinematic-modal{width:min(760px,calc(100vw - 24px));max-width:calc(100vw - 24px);overflow-x:hidden}
.hatch-cinematic{padding:18px;background:radial-gradient(ellipse at 50% 38%,#173e5c,#0c1c30 78%);overflow:hidden}
.hatch-cinematic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:680px;margin:auto}
.hatch-cinematic-grid.is-single{grid-template-columns:minmax(0,290px);justify-content:center}
.hatch-card-stage{position:relative;min-width:0;aspect-ratio:1/1.36;perspective:900px;isolation:isolate}
.hatch-card-stage.is-opening::before{content:'';position:absolute;z-index:0;inset:-8%;pointer-events:none;background:conic-gradient(from 8deg,transparent 0deg 30deg,color-mix(in srgb,var(--rarity) 32%,transparent) 37deg 42deg,transparent 50deg 100deg,color-mix(in srgb,var(--rarity) 24%,transparent) 108deg 118deg,transparent 126deg 220deg,color-mix(in srgb,var(--rarity) 30%,transparent) 230deg 240deg,transparent 250deg 310deg,color-mix(in srgb,var(--rarity) 22%,transparent) 320deg 327deg,transparent 335deg);mask-image:radial-gradient(ellipse,#000 18%,transparent 69%);animation:sg-card-rays 2200ms ease-out both}
.hatch-card-egg.hatch-interlude{position:absolute;z-index:3;inset:0;min-height:0;padding:0;overflow:visible;background:none;pointer-events:none}
.hatch-card-egg .hatch-scene{--egg-size:200px;width:100%;height:100%}
.is-single .hatch-card-egg .hatch-scene{--egg-size:290px}
.hatch-card-lift{position:absolute;inset:0;z-index:2;transform-origin:50% 80%}
.hatch-flip-card{position:absolute;inset:0;transform-style:preserve-3d}
.hatch-card-front,.hatch-card-back{position:absolute;inset:0;overflow:hidden;border:2px solid var(--rarity);border-radius:16px;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 8px 22px #020a1466;background:#152b41}
.hatch-card-back{display:grid;place-items:center;transform:rotateY(180deg);background:radial-gradient(ellipse at 40% 25%,#368cc0,#0c2c50 64%);border-color:#efc576;box-shadow:inset 0 0 0 6px #133855,inset 0 0 0 7px #d2a95680,0 10px 24px #0006}
.hatch-card-back::before{content:'';position:absolute;inset:15%;border:2px solid #f1c878;border-radius:50%;box-shadow:0 0 35px #59c9ff66}
.hatch-card-back span{font-weight:900;font-size:40px;letter-spacing:.04em;color:#ffd88e;text-shadow:0 3px 0 #512e0e}
.hatch-card-front{display:flex;flex-direction:column;background:linear-gradient(145deg,color-mix(in srgb,var(--rarity) 12%,#12263a),#122439)}
.hatch-card-front>.art{width:100%;flex:1;min-height:0;background-size:contain!important;background-position:center;background-repeat:no-repeat}
.hatch-card-rarity{position:absolute;z-index:1;left:8px;top:8px;padding:5px 7px;border-radius:5px;font-size:9px;font-weight:850;line-height:1.1;text-transform:uppercase;color:#102030;background:var(--rarity);max-width:calc(100% - 16px)}
.hatch-card-copy{position:relative;flex:none;padding:8px 9px;background:linear-gradient(0deg,#122439,#122439f2);min-height:64px}
.hatch-card-copy h3{font-size:13px;line-height:1.15;min-height:2.3em;margin:0 0 4px;text-wrap:balance;overflow-wrap:anywhere;letter-spacing:-.02em}
.hatch-card-traits{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:10px;color:#bed6e7}
.hatch-card-traits .nature-badge{font-size:10px;padding:0;margin:0;background:none;gap:3px;white-space:nowrap}
.hatch-card-traits .nature-badge svg{height:12px;width:12px}
.hatch-card-power{position:absolute;top:-25px;right:6px;display:flex;align-items:center;gap:2px;padding:3px 5px;border-radius:5px;color:#ffe0a0;background:#0a203be6;font-size:11px;font-weight:800}
.hatch-card-power svg{width:12px;height:12px}
.hatch-card-inspect{position:absolute;inset:0;z-index:4;border:0;background:none;border-radius:16px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.hatch-card-inspect:focus-visible{outline:3px solid #fff;outline-offset:3px}
.hatch-cinematic-status{min-height:44px;margin:18px 0 0;text-align:center;color:#c7e9f7;font-size:13px;align-content:center}
.hatch-batch-summary{text-align:center;padding-top:4px}
.hatch-batch-summary>p{font-size:12px;color:#a7d7e9;margin:12px 0 0}
.hatch-batch-summary .hatch-result-actions{max-width:440px;margin-top:10px}
.hatch-card-stage.is-opening .hatch-card-lift{animation:sg-card-rise 2200ms cubic-bezier(.2,.7,.25,1) both}
.hatch-card-stage.is-opening .hatch-flip-card{animation:sg-card-flip 2200ms cubic-bezier(.25,.65,.25,1) both}
.hatch-card-stage.is-opening .hatch-card-front::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 20%,#fff7da66 48%,transparent 65%);animation:sg-card-sheen 2200ms ease-out both}
.hatch-card-stage.is-opening .hatch-card-egg{animation:sg-egg-depart 2200ms linear both}
.hatch-card-stage.is-complete.tier-reveal-S .hatch-card-front{box-shadow:0 0 25px #f3c16840,inset 0 0 0 2px #ffdc8c44}
.hatch-card-stage.is-complete.tier-reveal-A .hatch-card-front{box-shadow:0 0 18px #b996ff30}
.is-single .hatch-card-copy{padding:12px 14px;min-height:84px}.is-single .hatch-card-copy h3{font-size:21px;min-height:0;margin-bottom:8px}.is-single .hatch-card-traits,.is-single .hatch-card-traits .nature-badge{font-size:13px}.is-single .hatch-card-power{font-size:15px;top:-33px}.is-single .hatch-card-rarity{font-size:11px}
@keyframes sg-card-rise{0%,40%{opacity:0;transform:translateY(45%) scale(.45)}47%{opacity:1;transform:translateY(29%) scale(.62)}65%{opacity:1;transform:translateY(-3%) scale(1.035)}77%,100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes sg-card-flip{0%,64%{transform:rotateY(180deg)}91%{transform:rotateY(-5deg)}100%{transform:rotateY(0deg)}}
@keyframes sg-card-rays{0%,37%{opacity:0;transform:scale(.4) rotate(-9deg)}49%{opacity:.65}78%{opacity:.45}100%{opacity:0;transform:scale(1.12) rotate(8deg)}}
@keyframes sg-card-sheen{0%,78%{opacity:0;transform:translateX(-100%)}83%{opacity:.8}100%{opacity:0;transform:translateX(100%)}}
@keyframes sg-egg-depart{0%,62%{opacity:1}68%,100%{opacity:0;visibility:hidden}}
@media(max-width:620px){
 .hatch-cinematic-modal{width:calc(100vw - 16px);max-width:calc(100vw - 16px)}.hatch-cinematic-modal .modal-header{padding:13px 14px}.hatch-cinematic-modal .modal-header h2{font-size:19px}
 .hatch-cinematic{padding:12px}.hatch-cinematic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hatch-card-stage{aspect-ratio:1.13/1}.hatch-card-egg .hatch-scene{--egg-size:155px}
 .hatch-card-front,.hatch-card-back,.hatch-card-inspect{border-radius:12px}.hatch-card-copy{padding:5px 7px;min-height:50px}.hatch-card-copy h3{font-size:11px;margin-bottom:3px}.hatch-card-traits,.hatch-card-traits .nature-badge{font-size:9px}.hatch-card-rarity{top:6px;left:6px;padding:4px 5px;font-size:8px}.hatch-card-power{font-size:10px;top:-23px}
 .hatch-cinematic-grid.is-single{grid-template-columns:minmax(0,260px)}.is-single .hatch-card-stage{aspect-ratio:1/1.3}.is-single .hatch-card-egg .hatch-scene{--egg-size:260px}
 .hatch-batch-summary .hatch-result-actions{gap:8px}.hatch-batch-summary .hatch-result-actions>.btn{min-height:44px;padding:10px;font-size:12px}.hatch-batch-summary>p{font-size:11px}
}
@media(max-width:359px){.hatch-cinematic{padding:9px}.hatch-cinematic-grid{gap:8px}.hatch-card-copy h3{font-size:10px}.hatch-card-traits,.hatch-card-traits .nature-badge{font-size:8px}.hatch-card-traits .nature-badge svg{width:10px;height:10px}.hatch-card-egg .hatch-scene{--egg-size:135px}.hatch-card-copy{padding-inline:5px}.hatch-card-stage{aspect-ratio:1.05/1}}
@media(prefers-reduced-motion:reduce){.hatch-card-stage.is-opening .hatch-card-lift,.hatch-card-stage.is-opening .hatch-flip-card{animation:none;transform:none;opacity:1}.hatch-card-stage.is-opening .hatch-card-egg,.hatch-card-stage.is-opening::before,.hatch-card-stage.is-opening .hatch-card-front::after{display:none}}

/* Unopened eggs remain touchable while neighbouring cards animate. */
.hatch-egg-touch{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;width:100%;padding:0;border:1px solid #3a63804a;border-radius:16px;background:radial-gradient(ellipse,#1c4b6d66,transparent 72%);color:#e9d4aa;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background .18s,border-color .18s,box-shadow .18s}
.hatch-egg-touch>.hatch-scene{--egg-size:200px;width:100%;height:calc(100% - 28px)}
.hatch-egg-touch>span:not(.hatch-scene){position:absolute;bottom:10px;inset-inline:4px;font-size:11px;line-height:1.25;font-weight:650;letter-spacing:.01em;text-align:center}
.hatch-egg-touch:hover{border-color:#edc87988;background-color:#30638b20;box-shadow:inset 0 0 24px #7acfff15}
.hatch-egg-touch:focus-visible{outline:3px solid #ffe3a4;outline-offset:2px}
.hatch-egg-touch:active{background-color:#73bfea20}
.hatch-card-stage.is-closed{--hatch-color:#f0ca83}
.hatch-card-stage.is-opening .hatch-card-inspect{display:none}
.hatch-card-inspect[disabled]{cursor:default}
.hatch-batch-summary{min-height:108px;display:flex;flex-direction:column;justify-content:center}
.hatch-batch-summary.is-ready{animation:sg-hatch-summary-in .26s ease-out both}
.hatch-cinematic-status>span{display:block;margin-top:7px;color:#bad6e6;font-size:12px}
.is-single .hatch-egg-touch>.hatch-scene{--egg-size:290px}
@keyframes sg-hatch-summary-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-width:620px){.hatch-egg-touch{border-radius:12px}.hatch-egg-touch>.hatch-scene{--egg-size:155px}.hatch-egg-touch>span:not(.hatch-scene){font-size:10px;bottom:5px}.is-single .hatch-egg-touch>.hatch-scene{--egg-size:260px}.hatch-batch-summary{min-height:105px}.hatch-cinematic-status>span{font-size:11px}}
@media(max-width:359px){.hatch-egg-touch>.hatch-scene{--egg-size:135px}}
@media(prefers-reduced-motion:reduce){.hatch-batch-summary.is-ready{animation:none}.hatch-egg-touch{transition:none}}

/* The sanctuary is the opening surface: eggs and cards occupy the same slots. */
.egg-sanctuary.hatch-page{max-width:920px;margin-inline:auto;padding:0 0 16px;background:radial-gradient(ellipse at 50% 42%,#16496844,transparent 72%)}
.hatch-page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 14px 8px;text-align:start}
.hatch-page-heading h1{font-size:clamp(27px,4vw,40px);line-height:1.12;margin:0;color:#eef7ff}
.hatch-page-heading .egg-status{margin:0;padding:7px 12px;display:flex;align-items:center;gap:8px;background:#15375180;border:1px solid #42658188;border-radius:999px;font-size:15px}
.hatch-page-stage{border:0;background:none;border-radius:24px;overflow:visible;padding:12px 14px 0}
.hatch-page .hatch-cinematic-grid{max-width:760px;gap:18px}
.hatch-page .hatch-card-stage{aspect-ratio:1/1.24}
.hatch-page .hatch-cinematic-grid.is-single{grid-template-columns:minmax(0,300px)}
.hatch-page .hatch-cinematic-grid.is-single .hatch-card-stage{aspect-ratio:1/1.24}
.hatch-page .hatch-egg-touch{border-color:transparent;background:radial-gradient(ellipse,#285c7e25,transparent 70%)}
.hatch-page .hatch-egg-touch>.hatch-scene{height:100%}
.hatch-page .hatch-batch-summary{min-height:108px;gap:7px;padding:8px 0 0}
.hatch-page .hatch-batch-summary>p{margin:0}
.hatch-page .hatch-cinematic-status{min-height:0;font-size:12px;color:#8caabd;line-height:1.4}
.hatch-open-all{align-self:center;min-width:180px;min-height:48px;padding:13px 25px}
.hatch-tap-hint{font-size:12px;color:#9fbbcd}
.hatch-page-footer{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 22px;font-size:12px;color:#8eabc0;text-align:center;margin-top:5px}
.hatch-page-footer .text-button{font-size:12px;min-height:40px;padding:7px 0}
.hatch-page-footer .egg-time{margin:0;max-width:100%}
.hatch-empty{min-height:240px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;color:#a9c1d5}
.hatch-empty>svg{width:66px;height:66px;opacity:.45}
.hatch-empty>p{font-size:15px;margin:0}
.hatch-preparing{max-width:920px;margin-inline:auto;padding:28px 16px}
.hatch-preparing>h1{text-align:center;font-size:30px}
.hatch-preparing .hatch-egg-touch{pointer-events:none;border-color:transparent}
@media(max-width:620px){
 .egg-sanctuary.hatch-page{padding:0 0 10px}.hatch-page-heading{padding:0 2px 7px;gap:10px}.hatch-page-heading h1{font-size:26px}.hatch-page-heading .egg-status{font-size:13px;padding:5px 10px}
 .hatch-page-stage{padding:4px 0 0}.hatch-page .hatch-cinematic-grid{gap:12px}.hatch-page .hatch-card-stage{aspect-ratio:1.04/1}.hatch-page .hatch-cinematic-grid.is-single{grid-template-columns:minmax(0,270px)}
 .hatch-page .hatch-batch-summary{min-height:104px}.hatch-page .hatch-egg-touch>.hatch-scene,.hatch-page .hatch-card-egg .hatch-scene{--egg-size:160px}.hatch-page .is-single .hatch-egg-touch>.hatch-scene,.hatch-page .is-single .hatch-card-egg .hatch-scene{--egg-size:270px}
 .hatch-open-all{min-width:170px;min-height:46px}.hatch-page-footer{gap:3px 16px;font-size:11px}.hatch-page-footer .text-button{font-size:11px}.hatch-page .hatch-batch-summary>p{font-size:11px}
}
@media(max-width:359px){.hatch-page .hatch-cinematic-grid{gap:9px}.hatch-page .hatch-egg-touch>.hatch-scene,.hatch-page .hatch-card-egg .hatch-scene{--egg-size:137px}}
