/* A compact achievement reveal: hard-surface motion, warm metal and a tank crest. */
.br-upgrade-fx{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:18px;pointer-events:none;color:#fff1d9;font-family:Inter,system-ui,sans-serif;isolation:isolate}
.br-upgrade-fx-panel{position:relative;display:grid;grid-template-columns:190px minmax(0,1fr);align-items:center;gap:8px;width:min(610px,100%);min-width:0;padding:24px 24px 23px 15px;border:2px solid #ffe698;border-radius:24px;background:radial-gradient(ellipse at 8% 50%,#ffbe4855,transparent 60%),linear-gradient(130deg,#653444f5,#2c1935f9 80%);box-shadow:0 5px #ba763f,0 9px 0 3px #21142c,inset 0 0 0 4px #e4a74c25,0 16px 70px #130c26bd;animation:br-upgrade-panel .38s cubic-bezier(.2,.8,.3,1) both}
.br-upgrade-fx-panel::before,.br-upgrade-fx-panel::after{content:"";position:absolute;top:-4px;width:54px;height:6px;border-radius:6px;background:#fff0ac;box-shadow:0 0 16px #ffcb69}
.br-upgrade-fx-panel::before{left:34px}.br-upgrade-fx-panel::after{right:34px}
.br-upgrade-fx-stage{position:relative;display:grid;place-items:center;min-height:190px;isolation:isolate}
.br-upgrade-fx-flare{position:absolute;z-index:-1;width:200px;height:200px;border-radius:50%;background:repeating-conic-gradient(from -10deg,#ffd66a55 0deg 8deg,transparent 8deg 28deg);mask-image:radial-gradient(circle,#000 10%,transparent 70%);animation:br-upgrade-flare .95s ease-out both}
.br-upgrade-fx-stage::after{content:"";position:absolute;z-index:-1;left:15%;right:15%;bottom:13%;height:24px;border-radius:50%;background:#150d2899;filter:blur(6px)}
.br-upgrade-fx-tank{display:block;width:200px;max-width:110%;height:174px;object-fit:contain;filter:drop-shadow(0 8px 4px #170b29aa) drop-shadow(0 0 16px #ffc84966);animation:br-upgrade-tank .55s cubic-bezier(.18,.8,.3,1) both}
.br-upgrade-fx-level{position:absolute;bottom:-2px;right:8px;width:66px;height:70px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid #fff2ad;border-radius:13px;rotate:7deg;background:linear-gradient(150deg,#ffe69c,#eea936);box-shadow:0 4px #a66036,0 7px 0 2px #2e1a31,inset 0 0 0 3px #ffd777;color:#482735;animation:br-upgrade-level .45s .12s cubic-bezier(.2,.8,.3,1) both}
.br-upgrade-fx-level small{font-size:10px;font-weight:950;letter-spacing:.12em}.br-upgrade-fx-level b{font-size:43px;line-height:1;font-style:italic;font-weight:950;text-shadow:0 2px #fff0b1}
.br-upgrade-fx-copy{display:flex;flex-direction:column;gap:7px;min-width:0;padding-left:5px}
.br-upgrade-fx-kicker{font-size:11px;letter-spacing:.12em;font-weight:950;color:#ffe39a}
.br-upgrade-fx-title{font-size:clamp(24px,3vw,35px);line-height:1.06;font-style:italic;font-weight:950;letter-spacing:-.055em;color:#fff1ad;text-shadow:0 3px #a56837,0 5px #22152d}
.br-upgrade-fx-name{font-size:16px;font-weight:800;color:#fff3e0;overflow-wrap:anywhere;margin:4px 0}
.br-upgrade-fx-stats{display:grid;grid-template-columns:1fr 1fr;gap:7px}.br-upgrade-fx-stat{display:flex;align-items:center;gap:6px;border:1px solid #a8ffb86b;border-radius:10px;background:linear-gradient(135deg,#315b4d,#243936);padding:9px 8px;box-shadow:inset 0 1px #dfffb622}
.br-upgrade-fx-stat i{color:#9cf1af;font-size:22px;font-style:normal}.br-upgrade-fx-stat>span{display:flex;flex-direction:column;gap:4px;min-width:0}.br-upgrade-fx-stat small{font-size:10px;color:#d0e8d8;font-weight:800}.br-upgrade-fx-stat b{font-size:13px;white-space:nowrap;color:#f1ffe8}.br-upgrade-fx-stat em{margin-left:auto;font-size:14px;font-weight:900;font-style:normal;color:#a2f89c}
.br-upgrade-fx-saved{font-size:12px;font-weight:700;color:#dbc4ce;margin-top:2px}
.br-upgrade-fx-sparkles{position:absolute;inset:0;pointer-events:none}.br-upgrade-fx-sparkles i{position:absolute;left:50%;top:52%;width:5px;height:11px;border-radius:1px;background:#ffe49a;transform:rotate(calc(var(--spark)*30deg));animation:br-upgrade-spark .8s .08s ease-out both}.br-upgrade-fx-sparkles i:nth-child(3n){background:#ff8e71;width:7px;height:7px}.br-upgrade-fx-sparkles i:nth-child(2n){background:#fff5c2;height:5px}
.br-upgrade-hero-success{animation:br-upgrade-hero .7s ease-out both!important}
.br-upgrade-fx.is-leaving{animation:br-upgrade-away .22s ease-in both}
@keyframes br-upgrade-panel{from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:none}}
@keyframes br-upgrade-tank{from{opacity:0;transform:translateY(22px) rotate(-5deg)}to{opacity:1;transform:translateY(0) rotate(0)}}
@keyframes br-upgrade-level{from{opacity:0;transform:translateY(12px) scale(.88)}to{opacity:1;transform:none}}
@keyframes br-upgrade-flare{from{opacity:0;transform:scale(.5) rotate(-35deg)}35%{opacity:1}to{opacity:.55;transform:scale(1.15) rotate(15deg)}}
@keyframes br-upgrade-spark{from{opacity:0;transform:rotate(calc(var(--spark)*30deg)) translateY(-38px)}20%{opacity:1}to{opacity:0;transform:rotate(calc(var(--spark)*30deg)) translateY(-112px) rotate(65deg)}}
@keyframes br-upgrade-hero{0%,100%{transform:translateY(0);filter:drop-shadow(0 0 0 transparent)}40%{transform:translateY(-9px);filter:drop-shadow(0 0 20px #ffdc72)}}
@keyframes br-upgrade-away{to{opacity:0;transform:translateY(-8px)}}
@media(max-width:560px){.br-upgrade-fx{padding:15px}.br-upgrade-fx-panel{grid-template-columns:1fr;padding:15px 20px 19px;gap:1px;max-width:360px;border-radius:21px}.br-upgrade-fx-stage{min-height:160px;width:220px;justify-self:center;margin-top:-15px}.br-upgrade-fx-tank{height:163px;width:210px}.br-upgrade-fx-level{right:4px;bottom:0;width:61px;height:64px}.br-upgrade-fx-level b{font-size:39px}.br-upgrade-fx-copy{padding:0;text-align:center;gap:6px}.br-upgrade-fx-title{font-size:32px}.br-upgrade-fx-name{font-size:16px;margin:3px 0 7px}.br-upgrade-fx-stats{text-align:left;gap:8px}.br-upgrade-fx-stat{padding:9px 10px}.br-upgrade-fx-stat b{font-size:14px}.br-upgrade-fx-stat em{font-size:15px}.br-upgrade-fx-saved{margin-top:4px}}
@media(max-height:500px) and (min-width:561px){.br-upgrade-fx-panel{padding-block:16px;max-width:580px}.br-upgrade-fx-stage{min-height:175px}.br-upgrade-fx-title{font-size:31px}}
@media(prefers-reduced-motion:reduce){.br-upgrade-fx,.br-upgrade-fx *,.br-upgrade-hero-success{animation:none!important}.br-upgrade-fx-sparkles{display:none}.br-upgrade-fx-flare{opacity:.45}.br-upgrade-fx.is-leaving{opacity:0}}
html[data-motion=off] .br-upgrade-fx,html[data-motion=off] .br-upgrade-fx *,html[data-motion=off] .br-upgrade-hero-success{animation:none!important}
html[data-motion=off] .br-upgrade-fx-sparkles{display:none}
