/* Level chip in the top bar, its popover, and the level-up celebration. */
.v10-lvl { --tier: #d08a55; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 6px; margin-right: 8px; border: 0; border-radius: 10px; background: #0f212e; color: #fff; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); transition: background .2s, transform .2s; font: inherit; }
.v10-lvl:hover { background: #213743; transform: translateY(-1px); }
.v10-lvl-badge { position: relative; width: 34px; height: 34px; display: grid; place-items: center; }
.v10-lvl-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.v10-lvl-badge circle { fill: none; stroke: #2f4553; stroke-width: 3.5; }
.v10-lvl-badge .v10-lvl-ring { stroke: var(--tier); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .8s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 3px var(--tier)); }
.v10-lvl-badge b { position: relative; font-size: 13px; font-weight: 900; color: var(--tier); }
.v10-lvl-txt { display: flex; flex-direction: column; gap: 4px; min-width: 64px; text-align: left; }
.v10-lvl-txt small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tier); line-height: 1; }
.v10-lvl-txt i { display: block; height: 5px; border-radius: 4px; background: #2f4553; overflow: hidden; }
.v10-lvl-txt em { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--tier), #fff); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.v10-lvl.is-up { animation: v10-lvl-up .9s cubic-bezier(.2,1.4,.4,1); }
@keyframes v10-lvl-up { 30% { transform: scale(1.12); box-shadow: 0 0 0 3px var(--tier), 0 0 26px var(--tier); } }

.v10-lvl-pop { position: fixed; z-index: 2147483000; width: min(320px, calc(100vw - 24px)); padding: 16px; border-radius: 12px; background: #213743; color: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.5); animation: v10-lvl-pop .22s cubic-bezier(.2,.8,.2,1); font-size: 13px; }
@keyframes v10-lvl-pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.v10-lvl-head { display: flex; align-items: center; gap: 12px; }
.v10-lvl-big { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #0f212e; box-shadow: inset 0 0 0 3px var(--tier), 0 0 18px color-mix(in srgb, var(--tier) 40%, transparent); font-size: 18px; font-weight: 900; color: var(--tier); }
.v10-lvl-head small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tier); }
.v10-lvl-head b { font-size: 18px; }
.v10-lvl-bar { height: 8px; margin: 14px 0 8px; border-radius: 6px; background: #0f212e; overflow: hidden; }
.v10-lvl-bar em { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #1475e1, #00e701); }
.v10-lvl-note { margin: 0 0 12px; color: #b1bad3; line-height: 1.4; } .v10-lvl-note b { color: #fff; }
.v10-lvl-tiers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.v10-lvl-tiers li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; background: #0f212e; color: #b1bad3; }
.v10-lvl-tiers i { width: 12px; height: 12px; border-radius: 50%; background: var(--tier); opacity: .4; }
.v10-lvl-tiers span { font-weight: 800; }
.v10-lvl-tiers small { font-size: 11px; }
.v10-lvl-tiers li.is-done i { opacity: 1; }
.v10-lvl-tiers li.is-on { color: #fff; box-shadow: inset 0 0 0 2px var(--tier); }
.v10-lvl-tiers li.is-on i { opacity: 1; box-shadow: 0 0 10px var(--tier); }
.v10-lvl-fine { margin: 10px 0 0; font-size: 11px; color: #7f8ca3; }

.v10-levelup { position: fixed; inset: 0; z-index: 2147483001; display: grid; place-items: center; pointer-events: none; background: radial-gradient(circle, rgba(15,33,46,.55), rgba(15,33,46,0) 60%); animation: v10-lu-fade .3s ease-out; transition: opacity .45s; }
.v10-levelup.is-out { opacity: 0; }
@keyframes v10-lu-fade { from { opacity: 0; } }
.v10-levelup-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 22px 46px; border-radius: 18px; background: #0f212e; box-shadow: 0 0 0 3px var(--tier), 0 0 60px color-mix(in srgb, var(--tier) 55%, transparent), 0 30px 60px rgba(0,0,0,.5); color: #fff; animation: v10-lu-card .6s cubic-bezier(.2,1.6,.4,1); }
.v10-levelup-card small { font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--tier); }
.v10-levelup-card b { font-size: 64px; line-height: 1.05; font-weight: 900; background: linear-gradient(180deg, #fff, var(--tier)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v10-levelup-card span { font-size: 15px; font-weight: 800; color: #b1bad3; }
.v10-levelup.is-tier .v10-levelup-card { animation: v10-lu-card .6s cubic-bezier(.2,1.6,.4,1), v10-lu-glow 1s ease-in-out .6s 2; }
@keyframes v10-lu-card { from { transform: scale(.3) rotate(-6deg); opacity: 0; } }
@keyframes v10-lu-glow { 50% { box-shadow: 0 0 0 5px var(--tier), 0 0 110px var(--tier), 0 30px 60px rgba(0,0,0,.5); } }
.v10-levelup > i { position: absolute; left: 50%; top: 50%; width: 9px; height: 16px; border-radius: 2px; background: var(--tier); transform: rotate(var(--a)) translateY(0); animation: v10-lu-conf 1.3s cubic-bezier(.1,.7,.3,1) var(--d) both; }
.v10-levelup > i:nth-child(3n) { background: #fff; } .v10-levelup > i:nth-child(3n+1) { background: #00e701; }
@keyframes v10-lu-conf { from { transform: rotate(var(--a)) translateY(0) scale(.4); opacity: 1; } to { transform: rotate(var(--a)) translateY(-46vmin) rotate(220deg) scale(1); opacity: 0; } }

@media (max-width: 760px) {
  .v10-lvl { height: 36px; padding: 0 4px; margin-right: 6px; }
  .v10-lvl-txt { display: none; }
  .v10-lvl-badge { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .v10-lvl.is-up, .v10-levelup-card { animation: none !important; } }

/* VIP v2 additions */
.v10-lvl { position: relative; }
.v10-lvl-txt { max-width: 112px; } .v10-lvl-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v10-lvl-badge b { font-variant-numeric: tabular-nums; }
.v10-lvl-dot { position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: #00e701; box-shadow: 0 0 0 2px #0f212e, 0 0 8px #00e701; animation: v10-lvl-dot 1.4s ease-in-out infinite; }
@keyframes v10-lvl-dot { 50% { transform: scale(.7); opacity: .6; } }
.v10-lvl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.v10-lvl-cards > div { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 8px; background: #0f212e; }
.v10-lvl-cards small { font-size: 11px; color: #b1bad3; } .v10-lvl-cards b { font-size: 17px; } .v10-lvl-cards span { font-size: 11px; color: #7f8ca3; }
.v10-lvl-claim { margin-top: 6px; border: 0; padding: 7px 0; border-radius: 6px; background: #00e701; color: #05250a; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; transition: filter .15s, transform .15s; }
.v10-lvl-claim:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.v10-lvl-claim:disabled { background: #2f4553; color: #7f8ca3; cursor: default; }
.v10-levelup-card em { margin-top: 6px; padding: 4px 12px; border-radius: 999px; background: #00e701; color: #05250a; font-style: normal; font-weight: 900; font-size: 14px; animation: v10-lu-card .6s cubic-bezier(.2,1.6,.4,1) .25s both; }