.rank-up-layer{position:fixed;inset:0;z-index:110;overflow:hidden;pointer-events:none!important;contain:strict}
.rank-up-layer *{pointer-events:none!important}
.rank-up{position:absolute;width:min(296px,calc(100vw - var(--safe-left) - var(--safe-right) - 24px));display:flex;align-items:center;gap:15px;padding:14px 18px;border:1px solid #e9cf8a;border-radius:22px;background:linear-gradient(115deg,#fff2c5,#fffdf5 47%,#f0e5ff);box-shadow:0 5px 0 #d8bb7580,0 12px 32px #7953b42b,0 0 24px #ffe2936b;color:#4a2f6d;will-change:transform,opacity}
.rank-up::before{content:'';position:absolute;inset:4px;border:1px solid #ffffffba;border-radius:17px;pointer-events:none}
.rank-up-emblem{width:46px;height:52px;flex:none;display:grid;place-items:center;border-radius:16px;background:linear-gradient(140deg,#baffde,#3ed5b2);box-shadow:inset 0 1px 1px #fff,0 4px 0 #36aa8e36}
.rank-up-emblem svg{width:30px;height:34px;stroke:#08775f;fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 0 #dcfff2)}
.rank-up-content{min-width:0;flex:1}
.rank-up-title{font-size:11px;line-height:15px;font-weight:850;color:#856317;white-space:nowrap}
.rank-up-ranks{display:flex;align-items:baseline;gap:9px;margin:3px 0 1px;font-variant-numeric:tabular-nums;letter-spacing:-.8px;white-space:nowrap}
.rank-up-from{font-size:calc(var(--rank-size) * .74);line-height:1.3;font-weight:800;color:#8b739c}
.rank-up-arrow{font-size:22px;font-weight:800;color:#1eab88;align-self:center}
.rank-up-to{display:block;font-size:var(--rank-size);line-height:1.2;font-weight:850;color:#7135d7;text-shadow:0 2px 0 #fff}
.rank-up-gain{display:inline-block;font-size:10px;line-height:17px;font-weight:800;letter-spacing:.1px;color:#0f8165}
.rank-up-spark{position:absolute;width:7px;height:7px;border-radius:2px;background:var(--spark-color);box-shadow:0 0 6px #fff}
.rank-up.is-first{border-color:#e5b841;background:linear-gradient(115deg,#ffeba5,#fff9dc 53%,#f8eaff)}
.rank-up.is-first .rank-up-to{color:#a76a0c}
@media(max-height:400px){.rank-up{padding:9px 15px;gap:12px}.rank-up-emblem{height:43px;width:39px}.rank-up-title{font-size:10px}.rank-up-ranks{margin-top:1px}}
@media(prefers-reduced-motion:reduce){.rank-up{will-change:auto}}
