/* Celebration page: full-screen reveal for purchases, badges and level-ups */
.cel { position: fixed; inset: 0; z-index: 95; display: none; flex-direction: column; align-items: center; overflow: hidden; --cc: #ffd166; color: #fff; text-align: center;
  background: radial-gradient(120% 70% at 50% 34%, color-mix(in srgb, var(--cc) 20%, #07100c) 0%, #050908 62%, #020403 100%); padding: max(18px, env(safe-area-inset-top)) 22px max(20px, env(safe-area-inset-bottom)); }
.cel.show { display: flex; animation: celIn .35s ease-out; }
.celrays { position: absolute; left: 50%; top: 38%; width: 190vmax; height: 190vmax; margin: -95vmax 0 0 -95vmax; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--cc) 17%, transparent) 0 7.5deg, transparent 7.5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0, rgba(0,0,0,.55) 9%, transparent 24%); mask: radial-gradient(circle, #000 0, rgba(0,0,0,.55) 9%, transparent 24%); animation: celSpin 40s linear infinite; }
.celglow { position: absolute; left: 50%; top: 38%; width: 340px; height: 340px; margin: -170px 0 0 -170px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--cc) 42%, transparent), transparent 66%); filter: blur(8px); animation: celPulse 3.2s ease-in-out infinite; }
.celmain { position: relative; z-index: 2; flex: 1; width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 4vh; }
.celeye { font: 800 11px var(--ui); letter-spacing: .36em; text-transform: uppercase; color: var(--cc); margin-bottom: 26px; opacity: 0; animation: celUp .5s .15s ease-out forwards; }
.celhero { position: relative; width: 210px; height: 210px; display: grid; place-items: center; margin-bottom: 30px; opacity: 0; animation: celHero .75s .1s cubic-bezier(.2,1.35,.4,1) forwards; }
.celhero > .celart { position: relative; animation: celBob 3.4s 1s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(0,0,0,.55)); }
.celring { position: absolute; inset: 14px; border-radius: 50%; border: 2px solid var(--cc); opacity: 0; animation: celRing 1.5s .35s ease-out forwards; }
.celring.b { animation-delay: .6s; }
.celsp { position: absolute; inset: 0; pointer-events: none; }
.celsp i { position: absolute; width: 22px; height: 22px; color: #fff; opacity: 0; animation: celTw 2.6s ease-in-out infinite; filter: drop-shadow(0 0 8px var(--cc)); }
.celsp i svg { width: 100%; height: 100%; fill: currentColor; }
.celtag { display: inline-block; font: 800 10px var(--ui); letter-spacing: .24em; text-transform: uppercase; padding: 7px 14px; border-radius: 99px; color: #07100c; background: var(--cc); box-shadow: 0 6px 22px color-mix(in srgb, var(--cc) 45%, transparent); opacity: 0; animation: celUp .5s .45s ease-out forwards; }
.celmain h2 { margin: 16px 0 8px; font: 400 36px/1.05 var(--display); letter-spacing: .01em; text-transform: uppercase; color: #fff; text-shadow: 0 3px 0 color-mix(in srgb, var(--cc) 70%, #000), 0 10px 30px rgba(0,0,0,.5); opacity: 0; animation: celUp .55s .55s ease-out forwards; }
.celmain p { margin: 0; max-width: 300px; font: 500 15px/1.45 var(--ui); color: #a9b8b0; opacity: 0; animation: celUp .55s .7s ease-out forwards; }
.celrow { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; opacity: 0; animation: celUp .55s .85s ease-out forwards; }
.celrow:empty { display: none; }
.celchip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; font: 800 14px var(--ui); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.celchip svg { width: 20px; height: 20px; }
.celfoot { position: relative; z-index: 2; width: 100%; max-width: 420px; opacity: 0; animation: celUp .5s 1s ease-out forwards; }
.celbtn { width: 100%; min-height: 56px; border: 0; border-radius: 18px; font: 800 16px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: #07100c; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 82%, #fff), var(--cc)); box-shadow: 0 5px 0 color-mix(in srgb, var(--cc) 55%, #000), 0 14px 30px color-mix(in srgb, var(--cc) 35%, transparent); }
.celbtn:active { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--cc) 55%, #000), 0 8px 18px color-mix(in srgb, var(--cc) 30%, transparent); }
/* hero art */
.celitem { width: 150px; height: 150px; border-radius: 38px; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--cc) 30%, #1b2723), #0b1310 78%); box-shadow: inset 0 0 0 3px var(--cc), inset 0 0 30px color-mix(in srgb, var(--cc) 25%, transparent); }
.celitem svg { width: 108px; height: 108px; }
.celitem.stack { width: 190px; background: none; box-shadow: none; display: flex; gap: 0; }
.celitem.stack > div { width: 96px; height: 96px; border-radius: 26px; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--cc) 28%, #1b2723), #0b1310 80%); box-shadow: inset 0 0 0 2.5px var(--cc), 0 8px 18px rgba(0,0,0,.5); margin: 0 -10px; }
.celitem.stack > div:nth-child(2) { transform: translateY(-14px) scale(1.12); z-index: 2; } .celitem.stack svg { width: 70px; height: 70px; }
.celhex { width: 164px; height: 184px; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, color-mix(in srgb, var(--cc) 92%, #fff), color-mix(in srgb, var(--cc) 70%, #000)); }
.celhex > div { width: 146px; height: 166px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); display: grid; place-items: center; background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--cc) 40%, #16221d), #0a1210 78%); }
.celhex svg { width: 78px; height: 78px; fill: none; stroke: var(--cc); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--cc) 70%, transparent)); }
.cellvl { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from 200deg, color-mix(in srgb, var(--cc) 95%, #fff), var(--cc), color-mix(in srgb, var(--cc) 60%, #000), color-mix(in srgb, var(--cc) 95%, #fff)); box-shadow: 0 0 40px color-mix(in srgb, var(--cc) 50%, transparent); }
.cellvl > div { width: 142px; height: 142px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: radial-gradient(circle at 50% 30%, #1d2a25, #09100d 80%); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--cc) 60%, transparent); }
.cellvl small { font: 800 10px var(--ui); letter-spacing: .3em; color: var(--cc); text-transform: uppercase; margin-bottom: 2px; }
.cellvl b { font: 400 64px/1 var(--display); color: #fff; text-shadow: 0 3px 0 color-mix(in srgb, var(--cc) 70%, #000); }
.celconf { position: absolute; top: -16px; width: 9px; height: 15px; border-radius: 2px; opacity: 0; pointer-events: none; animation: celConf 2.6s ease-out forwards; }
@keyframes celIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes celSpin { to { transform: rotate(360deg); } }
@keyframes celPulse { 0%, 100% { transform: scale(.92); opacity: .8; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes celUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes celHero { 0% { opacity: 0; transform: scale(.4) translateY(40px); } 100% { opacity: 1; transform: none; } }
@keyframes celBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes celRing { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes celTw { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes celConf { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(105vh) rotate(620deg); } }
@media (max-height: 640px) { .celhero { transform: scale(.82); margin-bottom: 10px; } .celmain h2 { font-size: 30px; } .celeye { margin-bottom: 14px; } }
@media (prefers-reduced-motion: reduce) { .celrays, .celglow, .celhero > .celart, .celring, .celsp i, .celconf { animation: none; } .celsp i { opacity: .8; } }
