.puzzle-level-celebration{--pc-bg:#120c1be8;--pc-text:#fff7f1;--pc-sub:#d7cbd9;--pc-eyebrow:#ffc3a5;--pc-medal:linear-gradient(145deg, #473041, #261c32);--pc-medal-text:#ffe6cb;--pc-chip:#302032d9;--pc-chip-text:#f9d9c7;--pc-chip-strong:#fff4e9;--pc-btn:#36273ae6;--pc-btn-text:#f7e8e0;z-index:5;color:var(--pc-text);background:var(--pc-bg);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);place-items:center;animation:.3s ease-out both puzzle-celebrate-in;display:grid;position:absolute;inset:0;overflow:hidden}.puzzle-celebration-glow{aspect-ratio:1;background:radial-gradient(circle,#ff7e522e 0,#82468e1a 35%,#0000 65%);border-radius:50%;width:90%;animation:1s ease-out both puzzle-glow-in;position:absolute}.puzzle-celebration-content{z-index:2;text-align:center;flex-direction:column;align-items:center;width:min(100%,360px);padding:16px;display:flex;position:relative}.puzzle-celebration-eyebrow{color:var(--pc-eyebrow);letter-spacing:.02em;margin-bottom:22px;font-size:13px;font-weight:800;animation:.55s .2s both puzzle-content-rise}.puzzle-level-medal{aspect-ratio:1;background:var(--pc-medal);border:2px solid #ffbb90;border-radius:50%;place-items:center;width:clamp(104px,34%,148px);margin-bottom:28px;animation:.55s cubic-bezier(.18,1.2,.38,1) both puzzle-medal-in;display:grid;position:relative;box-shadow:0 0 0 8px #ff895b17,0 0 0 19px #ff895b0a,0 20px 50px #00000061,inset 0 0 30px #ff9b6321}.puzzle-level-medal:before{content:"";border:1px solid #ffc29d3d;border-radius:50%;position:absolute;inset:8px}.puzzle-level-medal-number{color:var(--pc-medal-text);font-variant-numeric:tabular-nums;text-shadow:0 2px 20px #ff935747;font-size:clamp(24px,6.5vw,34px);font-weight:900;line-height:1;transform:translateY(.103em)}.puzzle-celebration-content h2{color:var(--pc-text);margin:0;font-size:clamp(20px,5vw,28px);font-weight:900;line-height:1.35;animation:.6s .3s both puzzle-content-rise}.puzzle-celebration-content p{color:var(--pc-sub);margin:10px 0 0;font-size:clamp(12px,2vw,15px);animation:.6s .4s both puzzle-content-rise}.puzzle-celebration-steps{gap:7px;margin-top:25px;animation:.6s .52s both puzzle-content-rise;display:flex}.puzzle-celebration-steps .puzzle-journey-node{border-radius:11px;width:34px;height:34px;font-size:15px;box-shadow:0 3px #256747}.puzzle-celebration-steps .puzzle-journey-node.is-locked{box-shadow:0 3px #251c2d}.puzzle-celebration-steps .puzzle-journey-node.is-complete{animation:.42s cubic-bezier(.18,1.15,.38,1) both puzzle-step-flip}.puzzle-celebration-actions{z-index:2;gap:10px;margin-top:29px;animation:.6s .65s both puzzle-content-rise;display:flex}.puzzle-celebration-actions button{background:var(--pc-btn);color:var(--pc-btn-text);cursor:pointer;border:1px solid #ffc69b4d;border-radius:11px;padding:10px 17px;font-weight:700}.puzzle-celebration-actions button:last-child{color:#351b26;background:linear-gradient(110deg,#ffab75,#ff7c59);border-color:#ffae81}.puzzle-celebration-sparks{pointer-events:none;position:absolute;inset:0}.puzzle-celebration-sparks i{opacity:0;background:#ffc699;border-radius:50%;width:4px;height:4px;animation:1.8s ease-out both puzzle-spark;position:absolute;box-shadow:0 0 12px #ff9c6f}.puzzle-celebration-sparks i:first-child{animation-delay:.1s;top:21%;left:23%}.puzzle-celebration-sparks i:nth-child(2){animation-delay:.3s;top:16%;left:66%}.puzzle-celebration-sparks i:nth-child(3){animation-delay:50ms;top:34%;left:81%}.puzzle-celebration-sparks i:nth-child(4){animation-delay:.4s;top:59%;left:14%}.puzzle-celebration-sparks i:nth-child(5){animation-delay:.2s;top:73%;left:73%}.puzzle-celebration-sparks i:nth-child(6){animation-delay:.6s;top:82%;left:32%}.puzzle-celebration-sparks i:nth-child(7){animation-delay:.48s;top:46%;left:12%}.puzzle-celebration-sparks i:nth-child(8){animation-delay:.25s;top:42%;left:88%}.puzzle-celebration-sparks i:nth-child(9){animation-delay:.55s;top:27%;left:39%}.puzzle-celebration-sparks i:nth-child(10){animation-delay:.72s;top:31%;left:72%}.puzzle-celebration-sparks i:nth-child(11){animation-delay:.18s;top:54%;left:28%}.puzzle-celebration-sparks i:nth-child(12){animation-delay:.82s;top:64%;left:85%}.puzzle-celebration-sparks i:nth-child(13){animation-delay:.35s;top:77%;left:48%}.puzzle-celebration-sparks i:nth-child(14){animation-delay:.67s;top:49%;left:68%}.puzzle-celebration-rays{aspect-ratio:1;opacity:.38;pointer-events:none;border-radius:50%;width:76%;animation:1.4s ease-out both puzzle-rays-reveal;position:absolute;top:33%;left:50%;transform:translate(-50%,-50%)}.puzzle-celebration-rays:before{content:"";background:repeating-conic-gradient(#ffac6f52 0deg 9deg,#0000 9deg 27deg);border-radius:50%;animation:16s linear infinite puzzle-rays-rotate;position:absolute;inset:0;-webkit-mask-image:radial-gradient(circle,#0000 0 18%,#000 36%,#0000 69%);mask-image:radial-gradient(circle,#0000 0 18%,#000 36%,#0000 69%)}.puzzle-celebration-score{z-index:4;background:var(--pc-chip);color:var(--pc-chip-text);border:1px solid #ffb37757;border-radius:10px;align-items:center;gap:9px;padding:6px 10px;font-size:12px;animation:.55s 4s both puzzle-score-pop;display:flex;position:absolute;top:15px;right:15px}.puzzle-celebration-score strong{color:var(--pc-chip-strong);font-variant-numeric:tabular-nums;min-width:38px;font-size:17px}.puzzle-score-token{z-index:5;color:#593041;opacity:0;pointer-events:none;background:#ffb779;border-radius:50%;place-items:center;width:25px;height:25px;font-size:17px;animation:1.08s cubic-bezier(.38,.05,.26,1) 2.9s both puzzle-token-flight;display:grid;position:absolute;top:33%;left:50%;box-shadow:0 0 14px 7px #ff9d6061}@keyframes puzzle-rays-reveal{0%{opacity:0;transform:translate(-50%,-50%)scale(.45)}45%{opacity:.95;transform:translate(-50%,-50%)scale(1.08)}to{opacity:.38;transform:translate(-50%,-50%)scale(1)}}@keyframes puzzle-rays-rotate{to{transform:rotate(360deg)}}@keyframes puzzle-step-flip{0%{opacity:.5;transform:perspective(240px)rotateY(-90deg)rotate(-7deg)scale(.82)}to{opacity:1;transform:perspective(240px)rotateY(0)rotate(-7deg)scale(1)}}@keyframes puzzle-token-flight{0%{opacity:0;top:33%;left:50%;transform:translate(-50%,-50%)scale(.3)}12%{opacity:1;transform:translate(-50%,-50%)scale(1)}55%{opacity:1;top:16%;left:64%}to{opacity:0;top:36px;left:calc(100% - 60px);transform:translate(-50%,-50%)scale(.4)}}@keyframes puzzle-score-pop{0%{opacity:.5;transform:scale(.95);box-shadow:0 0 #ffa76500}42%{opacity:1;transform:scale(1.08);box-shadow:0 0 25px #ffa76552}to{opacity:1;transform:scale(1);box-shadow:0 0 #ffa76500}}@media (prefers-reduced-motion:reduce){.puzzle-celebration-rays,.puzzle-celebration-rays:before,.puzzle-score-token,.puzzle-celebration-steps .puzzle-journey-node.is-complete,.puzzle-celebration-score{animation:none}}html.light .puzzle-level-celebration{--pc-bg:#faf7f4f0;--pc-text:#231a2e;--pc-sub:#6f6279;--pc-eyebrow:#e8742a;--pc-medal:#fff;--pc-medal-text:#231a2e;--pc-chip:#fff;--pc-chip-text:#6f6279;--pc-chip-strong:#231a2e;--pc-btn:#fff;--pc-btn-text:#3a2f45}html.light .puzzle-celebration-glow{background:radial-gradient(circle,#ff7e5238 0,#82468e14 35%,#0000 65%)}html.light .puzzle-level-medal{border-color:#f0562f;box-shadow:0 0 0 8px #f0562f1a,0 18px 44px #3c284629}html.light .puzzle-celebration-actions button{border-color:#e6dde4}
