/* Glacier celebrations: snow-stars point to a real achievement, then settle. */
.reward-burst { position:fixed; inset:0; overflow:hidden; pointer-events:none; z-index:60; }
.reward-burst i { position:absolute; width:13px; height:13px; background:#f5c856; clip-path:polygon(50% 0,61% 36%,100% 50%,61% 64%,50% 100%,39% 64%,0 50%,39% 36%); opacity:0; animation:reward-scatter 1.15s var(--delay) cubic-bezier(.22,1,.36,1) forwards; }
.reward-burst i:nth-child(3n) { background:#a2d9ee; width:10px; height:10px; }
.reward-burst i:nth-child(3n + 1) { background:#81c9b0; clip-path:none; border-radius:50%; width:7px; height:7px; }
@keyframes reward-scatter { 0% { opacity:0; transform:translate(-50%,-50%) scale(.25); } 15% { opacity:1; } 75% { opacity:1; } 100% { opacity:0; transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) rotate(var(--turn)) scale(.5); } }
.celebrate { padding:16px; overflow:auto; }
.celebrate-card { width:min(520px,100%); max-height:calc(100dvh - 32px); overflow:auto; padding:24px; gap:12px; background:var(--guide-bg); color:var(--ink); }
.reward-explorer { display:block; width:100px; height:140px; transform-origin:50% 100%; }
.reward-explorer svg { display:block; width:100%; height:100%; }
.celebrate-word { max-width:100%; white-space:nowrap; overflow-x:auto; font-size:clamp(24px,calc(340px / var(--reward-length,7)),64px); letter-spacing:0; line-height:1.3; padding:4px 2px; }
.celebrate-caption { margin:0; font-size:18px; color:var(--ink-muted); }
.celebrate-note { display:flex; align-items:center; gap:8px; color:var(--ink); font-size:22px; margin:0; }
.celebrate-note svg { width:38px; height:38px; }
.celebrate-card .btn { min-height:52px; }
.celebrate-card.lenny-reward .btn { min-height:72px; }
.camp { position:relative; }
.camp .camp-rewards { display:grid; gap:14px; margin:20px 0; }
.camp-reward { display:grid; grid-template-columns:96px minmax(0,1fr); align-items:center; gap:18px; text-align:left; }
.camp-medal-stage { position:relative; display:grid; place-items:center; width:96px; height:112px; }
.camp-medal-stage::before { content:''; position:absolute; width:92px; height:92px; top:0; border-radius:50%; background:#ffdb7a33; box-shadow:0 0 0 8px #ffdb7a14; }
.camp-medal-stage .medal { position:relative; width:80px; height:98px; filter:drop-shadow(0 5px 0 #795f2330); }
.camp-reward h2 { margin:0 0 5px; font-size:24px; line-height:1.15; }
.camp-reward p { margin:0; color:var(--ink-muted); font-size:16px; line-height:1.4; }
.camp.has-medals .harbour { display:none; }
.camp.has-medals .camp-result { padding-top:16px; border-top:1px solid #94b4c166; }
.camp .camp-coins { display:flex; align-items:center; gap:6px; }
.camp-coins svg { width:28px; height:28px; flex:none; }
.camp .home-words { min-width:0; }
.camp .home-words span { max-width:100%; overflow-x:auto; white-space:nowrap; }
.camp-result > div { min-width:0; }
@media(prefers-reduced-motion:no-preference) {
 .reward-explorer { animation:reward-hop .65s .12s cubic-bezier(.22,1,.36,1) both; }
 .celebrate-note svg { animation:coin-reveal .65s .2s cubic-bezier(.22,1,.36,1) both; }
 .camp-reward.is-new .medal { animation:medal-reveal .85s var(--reveal-delay,0ms) cubic-bezier(.22,1,.36,1) both; }
 .camp.is-celebrating .camp-explorer { animation:reward-hop .65s .1s cubic-bezier(.22,1,.36,1) both; }
 .answer.is-rewarding .cell-letter { animation:letter-cheer .45s var(--cheer-delay,0ms) cubic-bezier(.22,1,.36,1) both; }
}
@keyframes reward-hop { 0%,100% { transform:translateY(0) rotate(0); } 30% { transform:translateY(-18px) rotate(-5deg); } 65% { transform:translateY(0) rotate(3deg); } }
@keyframes coin-reveal { from { transform:rotateY(-90deg) scale(.5); } to { transform:rotateY(0) scale(1); } }
@keyframes medal-reveal { 0% { transform:translateY(-16px) scale(.65) rotate(-16deg); opacity:0; } 60% { transform:translateY(0) scale(1.12) rotate(6deg); opacity:1; } 100% { transform:translateY(0) scale(1) rotate(0); opacity:1; } }
@keyframes letter-cheer { 0%,100% { transform:translateY(-.06em); } 45% { transform:translateY(-.18em); } }
@media(max-width:600px) { .camp-reward { grid-template-columns:80px minmax(0,1fr); gap:12px; }.camp-medal-stage { width:80px; height:98px; }.camp-medal-stage::before { width:76px; height:76px; }.camp-medal-stage .medal { width:68px; height:84px; }.camp-reward h2 { font-size:22px; }.camp-reward p { font-size:15px; } }
@media(orientation:landscape) and (max-height:600px) {
 .celebrate-card { display:grid; grid-template-columns:90px minmax(0,1fr); gap:8px 20px; width:min(540px,100%); padding:20px; }
 .reward-explorer { grid-column:1; grid-row:1/5; width:90px; height:128px; align-self:center; }
 .celebrate-card > :not(.reward-explorer) { grid-column:2; }
 .celebrate-word { font-size:clamp(24px,calc(290px / var(--reward-length,7)),48px); }
 .celebrate-caption { font-size:16px; }
 .camp.has-medals { display:flex; flex-direction:column; gap:12px; }
 .camp.has-medals .camp-rewards { display:flex; flex-wrap:wrap; gap:14px 20px; margin:4px 0; }
 .camp-reward { flex:1 1 260px; grid-template-columns:64px minmax(0,1fr); gap:12px; }
 .camp-medal-stage { width:64px; height:76px; }.camp-medal-stage::before { width:60px; height:60px; }.camp-medal-stage .medal { width:56px; height:69px; }
 .camp-reward h2 { font-size:20px; }.camp-reward p { font-size:14px; }
 .camp.has-medals .camp-result { justify-content:center; padding-top:10px; }
 .camp.has-medals .camp-explorer { display:none; }
 .camp.has-medals .camp-result > div { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px 16px; }
 .camp.has-medals .camp-result p { margin:0!important; }
 .camp.has-medals > p { margin:0; }.camp.has-medals .expedition-actions { margin:0; }
}
@media(prefers-reduced-motion:reduce) { .reward-burst { display:none; } }
