/* v1.10.12 — Breakthrough: the level itself shatters, reforms, and earns a reveal.
   One intentional 4.4 second cinematic. No rings, outer pips, or framed alert card. */
.ga-levelup-overlay[hidden], .ga-levelup-reward[hidden] { display: none !important; }
.ga-levelup-overlay { position:fixed; inset:0; z-index:12050; isolation:isolate;
  display:grid; place-items:center; overflow-y:auto; padding:clamp(12px,2vw,28px);
  color:#fff; font-family:inherit;
  background:linear-gradient(145deg,rgba(2,9,26,.96),rgba(4,16,49,.97) 53%,rgba(1,8,24,.98));
  backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px); }
.ga-levelup-overlay:before {content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:repeating-linear-gradient(110deg, transparent 0 103px,rgba(66,129,255,.047) 104px 105px,transparent 106px 210px);
  mask-image:linear-gradient(90deg,transparent,black 15%,black 85%,transparent);}
.ga-levelup-ambient { position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse 44% 36% at 50% 39%,rgba(19,80,239,.31),transparent 100%),
    radial-gradient(ellipse 40% 40% at 50% 65%,rgba(6,22,100,.4),transparent),
    radial-gradient(ellipse 58% 40% at 52% 96%,rgba(0,50,208,.14),transparent); }
.ga-levelup-stage {position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;
  width:min(1120px,100%);min-height:min(760px,calc(100dvh - 30px));max-width:100%;outline:none;}
.ga-levelup-top {display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;padding:20px clamp(12px,3vw,30px);z-index:10;}
.ga-levelup-brand {font-size:13px;letter-spacing:.18em;font-weight:900;color:#f2f8ff;}
.ga-levelup-brand span {color:#8eafff;font-weight:570;}
.ga-levelup-skip {color:#b4cdf8;background:rgba(14,42,99,.25);border:1px solid rgba(137,178,255,.23);
  border-radius:999px;padding:9px 15px;font:inherit;font-size:12px;cursor:pointer;}
.ga-levelup-skip:hover,.ga-levelup-skip:focus-visible {color:#fff;border-color:#9cd7ff;background:rgba(26,77,174,.35);}
.ga-levelup-center {position:relative;flex:1;display:flex;flex-direction:column;align-items:center;
  justify-content:center;width:100%;text-align:center;min-width:0;padding:0 16px;}
.ga-breakthrough-core {position:relative;flex:none;width:min(600px,100%);height:clamp(210px,31vh,310px);
  display:grid;place-items:center;isolation:isolate;}
.ga-breakthrough-aura {position:absolute;inset:-17% -18%;z-index:-2;opacity:.55;pointer-events:none;
  background:radial-gradient(ellipse at center,rgba(44,105,255,.25),rgba(12,45,144,.14) 37%,transparent 69%);}
.ga-breakthrough-lightline {position:absolute;top:49%;width:52%;height:2px;opacity:.46;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,transparent,#3a83ff 60%,#dff9ff 100%);filter:drop-shadow(0 0 13px #247aff);}
.ga-breakthrough-lightline--left {left:-2%;transform:translateY(-50%) rotate(-9deg);}
.ga-breakthrough-lightline--right {right:-2%;transform:translateY(-50%) rotate(189deg);}
.ga-breakthrough-old-number,.ga-breakthrough-new-number,.ga-breakthrough-shards>span {position:absolute;inset:0;
  display:flex;justify-content:center;align-items:center;white-space:nowrap;user-select:none;
  font-family:inherit;font-weight:950;font-style:italic;font-variant-numeric:tabular-nums;
  letter-spacing:-.09em;padding-right:.09em;line-height:1;
  font-size:clamp(126px,21vw,234px);}
.ga-breakthrough-old-number {color:#acd9ff;opacity:1;transform:scale(.94);
  text-shadow:0 0 9px rgba(26,96,255,.9),0 0 44px rgba(9,83,255,.65),4px 8px 0 rgba(0,35,139,.32);}
.ga-breakthrough-shards {position:absolute;inset:0;pointer-events:none;}
.ga-breakthrough-shards>span {opacity:0;color:#b6e7ff;clip-path:var(--clip);
  text-shadow:0 0 15px rgba(110,201,255,.9),2px 3px 0 rgba(0,54,177,.8);}
.ga-breakthrough-new-number {opacity:0;transform:translateY(19px) scale(.65);
  background:linear-gradient(148deg,#fff 3%,#d0f5ff 22%,#57beff 42%,#e8fcff 51%,#236cff 70%,#d7faff 92%);
  background-clip:text;-webkit-background-clip:text;color:transparent;
  filter:drop-shadow(0 0 19px rgba(83,161,255,.85)) drop-shadow(0 0 48px rgba(18,87,255,.32));}
.ga-breakthrough-impact {position:absolute;inset:-40% -50%;z-index:-1;opacity:0;pointer-events:none;
  background:radial-gradient(ellipse at 50% 50%,rgba(242,253,255,.92),rgba(52,165,255,.78) 9%,rgba(18,79,255,.52) 24%,rgba(25,40,171,.09) 49%,transparent 66%);}
.ga-breakthrough-impact-line {position:absolute;top:50%;left:50%;width:130vw;max-width:1700px;height:5px;
  transform:translate(-50%,-50%) scaleX(.02);opacity:0;pointer-events:none;
  background:linear-gradient(90deg,transparent,#2083ff 16%,#e5faff 50%,#2179ff 84%,transparent);
  box-shadow:0 0 22px #237bff,0 0 68px rgba(30,111,255,.9);}
.ga-breakthrough-particles {position:absolute;inset:0;z-index:1;pointer-events:none;}
.ga-breakthrough-particles>span {position:absolute;top:var(--py);left:var(--px);width:var(--size);height:var(--size);
  background:var(--color);opacity:0;box-shadow:0 0 12px var(--color);transform:translate(-50%,-50%) rotate(45deg);
  clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);}
.ga-breakthrough-xp {height:48px;width:min(400px,74%);margin-top:-3px;display:flex;flex-direction:column;gap:10px;
  align-items:center;justify-content:center;opacity:1;}
.ga-breakthrough-xp-caption {font-size:10px;color:#b2d8ff;letter-spacing:.28em;font-weight:850;}
.ga-breakthrough-xp-track {height:9px;width:100%;background:rgba(20,53,112,.73);border:1px solid #477ee7;
  border-radius:99px;padding:1px;box-shadow:0 0 15px rgba(31,99,232,.3);overflow:hidden;}
.ga-breakthrough-xp-fill {width:0;height:100%;border-radius:99px;
  background:linear-gradient(90deg,#1450ff 0%,#41aaff 65%,#d5ffff 100%);
  box-shadow:0 0 17px #4cafff,0 0 28px #1268ff;}
.ga-levelup-announcement {min-height:174px;margin-top:-22px;display:flex;flex-direction:column;align-items:center;
  justify-content:flex-start;gap:7px;max-width:100%;}
.ga-levelup-label {color:#87b6ff;font-size:11px;font-weight:850;letter-spacing:.24em;opacity:0;}
.ga-levelup-announcement h2 {margin:0;font-size:clamp(48px,9vw,95px);font-weight:950;font-style:italic;
  white-space:nowrap;line-height:1.08;letter-spacing:-.04em;padding-right:.07em;opacity:0;transform:translateY(20px) scale(.85);
  color:#f5fcff;text-shadow:0 0 16px #5cbaff,0 0 49px rgba(32,111,255,.72);}
.ga-levelup-transition {opacity:0;display:flex;gap:14px;align-items:center;justify-content:center;
  color:#8daff1;letter-spacing:.09em;font-size:13px;font-weight:720;}
.ga-levelup-transition strong {color:#f2faff;}
.ga-levelup-copy {opacity:0;margin:2px 0 0;font-size:clamp(13px,1.6vw,16px);color:#b4cdf7;line-height:1.5;}
.ga-levelup-footer {width:100%;min-height:158px;display:flex;align-items:center;justify-content:flex-end;
  flex-direction:column;gap:9px;padding:0 16px 22px;}
.ga-levelup-reward {width:min(520px,100%);padding:14px 20px;gap:14px;display:flex;align-items:center;
  border-radius:13px;border:1px solid rgba(90,170,255,.55);
  background:linear-gradient(115deg,rgba(10,52,126,.82),rgba(7,24,65,.86));
  box-shadow:0 0 26px rgba(19,94,255,.15),inset 0 1px rgba(202,239,255,.09);opacity:0;}
.ga-levelup-reward-icon {font-size:32px;color:#b0efff;line-height:1;text-shadow:0 0 22px #46b8ff;}
.ga-levelup-reward-kicker {display:block;color:#87beff;font-size:10px;font-weight:850;letter-spacing:.16em;}
.ga-levelup-reward strong {display:block;color:#fff;font-size:15px;margin-top:4px;line-height:1.4;}
.ga-levelup-status {font-size:12px;color:#cadfff;text-align:center;min-height:15px;margin:0;}
.ga-levelup-actions {display:flex;justify-content:center;gap:12px;opacity:0;pointer-events:none;}
.ga-levelup-actions .btn {min-width:145px;}
/* Static final state for Skip, reduced motion, and after the animation lands. */
.ga-levelup-overlay.is-landed .ga-breakthrough-old-number,
.ga-levelup-overlay.is-landed .ga-breakthrough-shards,
.ga-levelup-overlay.is-landed .ga-breakthrough-xp {opacity:0;visibility:hidden;}
.ga-levelup-overlay.is-landed .ga-breakthrough-new-number {opacity:1;transform:none;filter:drop-shadow(0 0 19px rgba(83,161,255,.7));}
.ga-levelup-overlay.is-landed .ga-levelup-label,
.ga-levelup-overlay.is-landed .ga-levelup-announcement h2,
.ga-levelup-overlay.is-landed .ga-levelup-transition,
.ga-levelup-overlay.is-landed .ga-levelup-copy {opacity:1;transform:none;}
.ga-levelup-overlay.is-landed .ga-levelup-reward:not([hidden]) {opacity:1;transform:none;}
.ga-levelup-overlay.is-landed .ga-levelup-actions {opacity:1;pointer-events:auto;transition:opacity .2s ease;}
/* Choreography: charge 0–0.948s, fracture 1.2–1.501s, impact 1.422s,
   new level 2–2.37s, reward and controls 3.4–3.476s. */
.ga-levelup-overlay.is-live .ga-breakthrough-old-number {
  animation:gaCharge 1.24s ease-in both,gaOldGone .11s linear 1.217s forwards;}
.ga-levelup-overlay.is-live .ga-breakthrough-shards>span {
  animation:gaShatter .94s cubic-bezier(.27,.72,.45,1) 1.201s both;}
.ga-levelup-overlay.is-live .ga-breakthrough-aura {animation:gaAura 2.765s ease-out both;}
.ga-levelup-overlay.is-live .ga-breakthrough-lightline--left {animation:gaLightSweep 1.896s ease-in-out .2s both;}
.ga-levelup-overlay.is-live .ga-breakthrough-lightline--right {animation:gaLightSweepR 1.896s ease-in-out .2s both;}
.ga-levelup-overlay.is-live .ga-breakthrough-impact {animation:gaImpact .97s ease-out 1.73s both;}
.ga-levelup-overlay.is-live .ga-breakthrough-impact-line {animation:gaImpactLine .84s cubic-bezier(.13,.8,.24,1) 1.762s both;}
.ga-levelup-overlay.is-live .ga-breakthrough-particles>span {animation:gaParticle 1.264s ease-out calc(1.406s + var(--delay)) both;}
.ga-levelup-overlay.is-live .ga-breakthrough-new-number {animation:gaNewNumber 0.901s cubic-bezier(.16,.95,.26,1) 2.038s both;}
.ga-levelup-overlay.is-live .ga-breakthrough-xp-fill {animation:gaFillXP 1.185s cubic-bezier(.18,.65,.3,1) .12s both;}
.ga-levelup-overlay.is-live .ga-breakthrough-xp {animation:gaHideXP .3s ease 1.209s forwards;}
.ga-levelup-overlay.is-live .ga-levelup-announcement h2 {animation:gaHeadline .73s cubic-bezier(.11,.9,.21,1) 1.817s both;}
.ga-levelup-overlay.is-live .ga-levelup-label {animation:gaTextReveal .5s ease-out 2.749s both;}
.ga-levelup-overlay.is-live .ga-levelup-transition {animation:gaTextReveal .6s ease-out 2.947s both;}
.ga-levelup-overlay.is-live .ga-levelup-copy {animation:gaTextReveal .5s ease-out 3.176s both;}
.ga-levelup-overlay.is-live .ga-levelup-reward:not([hidden]) {animation:gaReward .6s cubic-bezier(.16,1,.32,1) 3.365s both;}
@keyframes gaCharge {0%{transform:scale(.88);opacity:.68;filter:brightness(.85)}55%{transform:scale(1.02);opacity:1;filter:brightness(1.05)}100%{transform:scale(1.13);opacity:1;filter:brightness(1.65)}}
@keyframes gaOldGone {0%{opacity:1}100%{opacity:0}}
@keyframes gaShatter {0%{opacity:0;transform:translate(0,0) rotate(0) scale(1.13);filter:brightness(1.6)}3%{opacity:1}45%{opacity:.95}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--rotate)) scale(.6);filter:brightness(2.2)}}
@keyframes gaAura {0%{opacity:.25;transform:scale(.7)}40%{opacity:.88;transform:scale(1.1)}72%{opacity:1;transform:scale(1.5)}100%{opacity:.46;transform:scale(1)}}
@keyframes gaLightSweep {0%{opacity:0;transform:translateY(-50%) rotate(-9deg) translateX(-120px)}55%{opacity:.95}100%{opacity:0;transform:translateY(-50%) rotate(-9deg) translateX(170px)}}
@keyframes gaLightSweepR {0%{opacity:0;transform:translateY(-50%) rotate(189deg) translateX(-120px)}55%{opacity:.95}100%{opacity:0;transform:translateY(-50%) rotate(189deg) translateX(170px)}}
@keyframes gaImpact {0%{opacity:0;transform:scale(.1)}24%{opacity:.92;transform:scale(.74)}57%{opacity:.6;transform:scale(1.2)}100%{opacity:0;transform:scale(1.7)}}
@keyframes gaImpactLine {0%{opacity:0;transform:translate(-50%,-50%) scaleX(.02)}18%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scaleX(1)}}
@keyframes gaParticle {0%{opacity:0;transform:translate(-50%,-50%) rotate(45deg) scale(.15)}12%{opacity:.94}100%{opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) rotate(var(--rot)) scale(.25)}}
@keyframes gaNewNumber {0%{opacity:0;transform:translateY(36px) scale(.55);filter:blur(18px) brightness(2)}22%{opacity:1;filter:blur(0) brightness(1.8)}68%{transform:translateY(-9px) scale(1.12)}100%{opacity:1;transform:none;filter:drop-shadow(0 0 19px rgba(83,161,255,.7))}}
@keyframes gaFillXP {0%{width:1%}100%{width:100%}}
@keyframes gaHideXP {to{opacity:0;visibility:hidden}}
@keyframes gaHeadline {0%{opacity:0;transform:translateY(26px) scale(.72);filter:blur(7px)}45%{opacity:1;filter:blur(0)}100%{opacity:1;transform:none}}
@keyframes gaTextReveal {0%{opacity:0;transform:translateY(12px)}100%{opacity:1;transform:none}}
@keyframes gaReward {0%{opacity:0;transform:translateY(25px) scale(.96)}100%{opacity:1;transform:none}}
/* Mobile: keep the digits dominant, reward readable, and controls within the viewport. */
@media(max-width:620px){
  .ga-levelup-stage{min-height:min(680px,calc(100dvh - 20px))}
  .ga-levelup-top{padding:12px 7px}.ga-levelup-brand{font-size:10px;letter-spacing:.1em}
  .ga-levelup-center{padding:0 6px}.ga-breakthrough-core{height:clamp(175px,29vh,260px)}
  .ga-breakthrough-old-number,.ga-breakthrough-new-number,.ga-breakthrough-shards>span{font-size:clamp(110px,29vw,172px)}
  .ga-breakthrough-xp{width:min(340px,88%)}.ga-levelup-announcement{min-height:156px;margin-top:-6px}
  .ga-levelup-announcement h2{font-size:clamp(42px,11vw,67px)}
  .ga-levelup-footer{min-height:145px;padding:0 6px 12px}.ga-levelup-reward{padding:11px 12px}
  .ga-levelup-reward strong{font-size:13px}.ga-levelup-actions .btn{min-width:123px}
}
@media(max-height:650px) and (min-width:621px){.ga-levelup-stage{min-height:calc(100dvh - 18px)}
  .ga-breakthrough-core{height:215px}.ga-levelup-footer{min-height:116px}.ga-levelup-announcement{min-height:138px}}
@media(prefers-reduced-motion:reduce){
  .ga-levelup-overlay *, .ga-levelup-overlay *:before,.ga-levelup-overlay *:after{animation:none!important;transition:none!important;}
}
.ga-level-replay-bar {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:14px 0 22px;}
