/* B0X3 v128 - progression: XP, levels, badges, daily goals (js/Progress.js) */

/* ---------------- victory screen block ---------------- */
.vic-xp {
    width: min(100%, 380px); margin: 12px auto 2px; padding: 10px 12px 10px; border-radius: 12px; text-align: left;
    background: rgba(10, 11, 16, .72); border: 1px solid rgba(240, 192, 64, .28);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font-family: "Oswald", sans-serif; color: #fff;
    opacity: 0; animation: vxIn .45s ease 1.2s forwards;
}
.vic-xp[hidden] { display: none; }
@keyframes vxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.vx-head { display: flex; align-items: center; gap: 10px; }
.vx-lv {
    flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; align-content: center;
    background: radial-gradient(circle at 35% 30%, #ffe08a, #c58b12); color: #1a1205; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25) inset;
    font-family: "Teko", sans-serif; line-height: .8;
}
.vx-lv small { font-size: 10px; letter-spacing: .1em; }
.vx-lv b { font-size: 23px; }
.vx-title { flex: 1; min-width: 0; font-family: "Teko", sans-serif; font-weight: 600; font-size: 22px; letter-spacing: .12em; color: #f0c040; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-gain { flex: none; font-family: "Teko", sans-serif; font-weight: 700; font-size: 24px; letter-spacing: .06em; color: #7cf0a8; }
.vx-bar { position: relative; height: 10px; margin: 8px 0 4px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.vx-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.vx-ghost { background: rgba(240, 192, 64, .35); }
.vx-fill { background: linear-gradient(90deg, #f0c040, #ffe08a); box-shadow: 0 0 10px rgba(240, 192, 64, .6); transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.vx-sub { font-size: 12.5px; color: rgba(255, 255, 255, .62); }
.vx-lines { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.vx-lines li { display: inline-flex; gap: 5px; align-items: baseline; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 11.5px; letter-spacing: .04em; color: rgba(255, 255, 255, .78); }
.vx-lines b { color: #7cf0a8; font-weight: 600; }
.vx-news { display: grid; gap: 6px; margin-top: 8px; }
.vx-news > * { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.vx-news.v > * { opacity: 1; transform: none; }
.vx-news.v > *:nth-child(2) { transition-delay: .15s; }
.vx-news.v > *:nth-child(3) { transition-delay: .3s; }
.vx-news.v > *:nth-child(4) { transition-delay: .45s; }
.vx-up { padding: 6px 10px; border-radius: 9px; background: linear-gradient(90deg, rgba(240, 192, 64, .35), rgba(240, 192, 64, .08)); font-family: "Teko", sans-serif; font-size: 22px; letter-spacing: .1em; line-height: 1.05; }
.vx-up b { color: #ffe08a; }
.vx-badge, .vx-unlock { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 9px; background: rgba(255, 255, 255, .06); }
.vx-badge-ic { flex: none; width: 40px; height: 40px; }
.vx-badge-t, .vx-unlock { display: grid; line-height: 1.15; min-width: 0; }
.vx-unlock { display: grid; gap: 0; padding: 6px 10px; border-left: 3px solid #a78bfa; }
button.vx-unlock { width: 100%; border: 0; border-left: 3px solid #a78bfa; font: inherit; color: inherit; text-align: left; cursor: pointer; min-height: 44px; }   /* v140: opens MY BOXER's GEAR */
button.vx-unlock:hover { background: rgba(255, 255, 255, .1); }
button.vx-unlock:focus-visible { outline: 2px solid #f0c040; outline-offset: 2px; }
.vx-badge small, .vx-unlock small { font-size: 10px; letter-spacing: .16em; color: #f0c040; }
.vx-badge b, .vx-unlock b { font-family: "Teko", sans-serif; font-weight: 600; font-size: 20px; letter-spacing: .08em; }
.vx-badge em, .vx-unlock em { font-style: normal; font-size: 11.5px; color: rgba(255, 255, 255, .6); }
.vx-news.many { grid-template-columns: 1fr 1fr; }
.vx-news.many .vx-up, .vx-news.many .vx-unlock { grid-column: 1 / -1; }
.vx-news.many .vx-badge { padding: 4px 6px; gap: 6px; }
.vx-news.many .vx-badge-ic { width: 30px; height: 30px; }
.vx-news.many .vx-badge em { display: none; }
.vx-news.many .vx-badge b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-daily { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.vx-goal { position: relative; overflow: hidden; display: grid; gap: 1px; padding: 5px 7px 7px; border-radius: 8px; background: rgba(255, 255, 255, .06); min-width: 0; }
.vx-goal-t { font-size: 10.5px; line-height: 1.2; color: rgba(255, 255, 255, .72); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vx-goal-n { font-family: "Teko", sans-serif; font-size: 17px; line-height: 1; color: #fff; }
.vx-goal i, .dg-goal i { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p); background: #f0c040; }
.vx-goal.done { background: rgba(124, 240, 168, .12); }
.vx-goal.done .vx-goal-n { color: #7cf0a8; }
.vx-goal.done i { background: #7cf0a8; }
.vx-goal.fresh { box-shadow: 0 0 0 1px #7cf0a8 inset; }
.vic-xp.vx-flash { animation: vxIn .45s ease 1.2s forwards, vxFlash .6s ease; }
@keyframes vxFlash { 0% { box-shadow: 0 0 0 0 rgba(255, 224, 138, .9); } 100% { box-shadow: 0 0 0 14px rgba(255, 224, 138, 0); } }

/* phones: the buttons are pinned at the bottom; keep the block short */
@media (max-width: 860px) {
    .vic-xp { margin-top: 6px; }
    .vx-lines { display: none; }
}
@media (max-height: 420px) {
    .vic-xp { padding: 7px 10px; }
    .vx-lv { width: 34px; height: 34px; }
    .vx-lv b { font-size: 20px; }
    .vx-title { font-size: 19px; }
    .vx-gain { font-size: 21px; }
    .vx-bar { margin: 5px 0 3px; height: 8px; }
    .vx-badge-ic { width: 32px; height: 32px; }
    .vx-badge em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .vic-xp { animation: none; opacity: 1; }
    .vx-fill, .vx-news > * { transition: none; }
}

/* ---------------- main menu: daily pill ---------------- */
.menu-daily { position: relative; z-index: 5; display: flex; justify-content: center; margin-top: 8px; font-family: "Oswald", sans-serif; }
.menu-daily:empty { display: none; }
.dg-pill {
    display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px 4px 6px; border-radius: 999px; cursor: pointer;
    background: rgba(10, 11, 16, .72); border: 1px solid rgba(240, 192, 64, .35); color: #fff; font: inherit; font-size: 13px; letter-spacing: .08em;
    -webkit-tap-highlight-color: transparent; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .15s, transform .1s;
}
.dg-pill:hover { background: rgba(24, 26, 36, .85); }
.dg-pill:active { transform: scale(.97); }
.dg-pill:focus-visible { outline: 2px solid #f0c040; outline-offset: 2px; }
.dg-lv { padding: 2px 8px; border-radius: 999px; background: linear-gradient(135deg, #ffe08a, #c58b12); color: #1a1205; font-family: "Teko", sans-serif; font-weight: 700; font-size: 17px; line-height: 1.1; letter-spacing: .04em; }
.dg-xp { position: relative; width: 48px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.dg-xp i { position: absolute; left: 0; top: 0; bottom: 0; background: #f0c040; }
.dg-t { color: rgba(255, 255, 255, .78); }
.dg-dots { display: inline-flex; gap: 4px; }
.dg-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); }
.dg-dots i.on { background: #7cf0a8; border-color: #7cf0a8; }
.dg-streak { color: #ffb15e; }
.dg-go { color: #f0c040; font-size: 18px; line-height: 1; }
.dg-panel {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: min(340px, calc(100vw - 24px)); z-index: 30;
    padding: 12px; border-radius: 14px; text-align: left; color: #fff;
    background: linear-gradient(160deg, #1e2230, #0a0b10); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 18px 44px rgba(0, 0, 0, .6);
    display: grid; gap: 7px; animation: dgIn .18s ease-out;
}
.dg-panel[hidden] { display: none; }
@keyframes dgIn { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translateX(-50%); } }
.dg-ph { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dg-ph b { font-family: "Teko", sans-serif; font-weight: 600; font-size: 22px; letter-spacing: .12em; color: #f0c040; }
.dg-ph span { font-size: 11.5px; color: rgba(255, 255, 255, .55); }
.dg-goal { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px 10px; border-radius: 9px; background: rgba(255, 255, 255, .06); }
.dg-gt { font-size: 14px; line-height: 1.25; }
.dg-gn { flex: none; font-family: "Teko", sans-serif; font-size: 19px; line-height: 1; color: rgba(255, 255, 255, .85); }
.dg-goal.done { background: rgba(124, 240, 168, .1); }
.dg-goal.done .dg-gn { color: #7cf0a8; }
.dg-goal.done i { background: #7cf0a8; }
.dg-foot { margin: 2px 0 0; font-size: 12px; color: rgba(255, 255, 255, .6); }
.dg-more { justify-self: start; font-size: 12.5px; letter-spacing: .08em; color: #f0c040; text-decoration: none; padding: 6px 0; }
.dg-more:hover { text-decoration: underline; }
/* wide but short screens (phones held sideways): the pill sits in the top-left corner (the settings gear has the
   top-right one), never pushing the fight buttons */
@media (orientation: landscape) and (max-height: 560px) {
    .menu-daily { position: absolute; top: max(10px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); margin: 0; }
    .dg-panel { left: 0; right: auto; transform: none; }
    @keyframes dgIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
@media (orientation: landscape) and (max-height: 360px) {
    .dg-xp, .dg-t { display: none; }
    .dg-pill { min-height: 32px; gap: 6px; }
}
#start:has(#mp-lobby.v) .menu-daily { display: none; }
@media (prefers-reduced-motion: reduce) { .dg-panel { animation: none; } }

/* locker: a badge name as the lock tag must not spill over the tile */
.lk-tile-lock { max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- profile block ---------------- */
.pg-prog { display: grid; gap: 14px; font-family: "Oswald", sans-serif; color: #fff; }
.pp-head { display: flex; align-items: center; gap: 14px; }
.pp-lv {
    flex: none; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; align-content: center; line-height: .85;
    background: radial-gradient(circle at 35% 30%, #ffe08a, #c58b12); color: #1a1205; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2) inset, 0 8px 24px rgba(240, 192, 64, .25);
    font-family: "Teko", sans-serif;
}
.pp-lv small { font-size: 12px; letter-spacing: .14em; }
.pp-lv b { font-size: 42px; }
.pp-main { flex: 1; min-width: 0; }
.pp-title { font-family: "Teko", sans-serif; font-weight: 600; font-size: 28px; letter-spacing: .12em; color: #f0c040; line-height: 1; }
.pp-bar { position: relative; height: 12px; margin: 8px 0 5px; border-radius: 7px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.pp-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: linear-gradient(90deg, #f0c040, #ffe08a); }
.pp-sub { font-size: 13px; color: rgba(255, 255, 255, .62); }
.pp-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pp-stats div { display: grid; justify-items: center; padding: 8px 4px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.pp-stats b { font-family: "Teko", sans-serif; font-size: 26px; line-height: 1; }
.pp-stats small { font-size: 10.5px; letter-spacing: .12em; color: rgba(255, 255, 255, .55); }
.pp-goals { display: grid; gap: 6px; }
.pp-goals h3, .pp-fam h3, .pp-h { margin: 0; font-family: "Teko", sans-serif; font-weight: 600; letter-spacing: .14em; }
.pp-goals h3 { font-size: 22px; color: #f0c040; }
.pp-reset { font-size: 12px; color: rgba(255, 255, 255, .5); margin-top: -4px; }
.pp-h { font-size: 26px; color: #f0c040; margin-top: 4px; }
.pp-wall { display: grid; gap: 14px; }
.pp-fam h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; color: rgba(255, 255, 255, .85); border-bottom: 1px solid rgba(255, 255, 255, .08); padding-bottom: 4px; margin-bottom: 8px; }
.pp-fam h3 small { font-family: "Oswald", sans-serif; font-size: 12px; color: rgba(255, 255, 255, .5); }
.pp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.pp-b { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; padding: 8px 6px 10px; border-radius: 12px; text-align: center; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.pp-b:focus-visible { outline: 2px solid #f0c040; outline-offset: 2px; }
.pp-ic { width: 56px; height: 56px; }
.pp-b b { font-family: "Teko", sans-serif; font-weight: 600; font-size: 17px; letter-spacing: .06em; line-height: 1.05; }
.pp-b small { font-size: 11px; line-height: 1.25; color: rgba(255, 255, 255, .6); }
.pp-b em { font-style: normal; font-size: 11px; color: #f0c040; }
.pp-b:not(.got) b { color: rgba(255, 255, 255, .55); }
.pp-b:not(.got) .pp-ic { opacity: .7; }
.pp-b.got { background: rgba(240, 192, 64, .07); border-color: rgba(240, 192, 64, .22); }
.pp-b.new::after { content: "NEW"; position: absolute; top: 6px; right: 6px; padding: 0 5px; border-radius: 5px; background: #e8242a; font-size: 10px; letter-spacing: .1em; }
.pp-share {
    justify-self: center; min-height: 48px; padding: 8px 22px; border-radius: 11px; cursor: pointer; border: 1px solid rgba(240, 192, 64, .5);
    background: rgba(240, 192, 64, .1); color: #f0c040; font-family: "Teko", sans-serif; font-weight: 600; font-size: 22px; letter-spacing: .14em;
}
.pp-share:hover { background: rgba(240, 192, 64, .2); }
@media (max-width: 480px) {
    .pp-stats { grid-template-columns: repeat(3, 1fr); }
    .pp-lv { width: 62px; height: 62px; }
    .pp-lv b { font-size: 34px; }
    .pp-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

/* ---------------- result card (v128): XP + fight stats + tip, one scrolling card ---------------- */
.vic-side .vic-xp { width: 100%; margin: 0 0 12px; background: rgba(255, 255, 255, .03); }
@media (min-width: 861px) {
    .vic-side { max-height: calc(100dvh - 2 * clamp(16px, 4vh, 40px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; align-self: center; }
}
.vic-tip {
    position: relative; display: grid; gap: 2px; margin: 10px 0 2px; padding: 8px 12px 8px 14px; border-radius: 10px; text-align: left;
    background: rgba(255, 138, 28, .1); border-left: 3px solid #ff8a1c; font-family: "Oswald", sans-serif;
    opacity: 0; animation: vicFade .35s ease var(--d, 1.7s) forwards;
}
.vic-tip b { font-family: "Teko", sans-serif; font-weight: 600; font-size: 19px; letter-spacing: .14em; color: #ffb15e; line-height: 1; }
.vic-tip b::before { content: "WEAK POINT · "; color: rgba(255, 255, 255, .5); }
.vic-tip.good { background: rgba(124, 240, 168, .08); border-left-color: #7cf0a8; }
.vic-tip.good b { color: #7cf0a8; }
.vic-tip.good b::before { content: ""; }
.vic-tip span { font-size: 13.5px; line-height: 1.3; color: rgba(255, 255, 255, .8); }
@media (prefers-reduced-motion: reduce) { .vic-tip { animation: none; opacity: 1; } }

/* ---------------- 7-day comeback streak ---------------- */
.lg-days { display: flex; gap: 5px; }
.lg-days i {
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-family: "Teko", sans-serif;
    border: 1.5px solid rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .6);
}
.lg-days i.on { background: linear-gradient(135deg, #ffe08a, #c58b12); border-color: #ffe08a; color: #1a1205; }
.lg-days i.gift { border-color: #ff8a1c; font-size: 14px; }
.lg-toast {
    position: absolute; z-index: 40; left: 50%; top: max(12px, env(safe-area-inset-top)); transform: translateX(-50%);
    display: grid; justify-items: center; gap: 4px; width: min(340px, calc(100vw - 24px)); padding: 12px 34px 12px 14px; border-radius: 14px;
    background: linear-gradient(160deg, #262a3a, #0c0d13); border: 1px solid rgba(240, 192, 64, .45); box-shadow: 0 18px 44px rgba(0, 0, 0, .6);
    font-family: "Oswald", sans-serif; color: #fff; text-align: center; animation: lgIn .4s cubic-bezier(.2, .9, .25, 1.15) both; transition: opacity .45s, transform .45s;
}
.lg-toast.out { opacity: 0; transform: translate(-50%, -12px); }
@keyframes lgIn { from { opacity: 0; transform: translate(-50%, -16px); } to { opacity: 1; transform: translateX(-50%); } }
.lg-toast b { font-family: "Teko", sans-serif; font-weight: 600; font-size: 24px; letter-spacing: .12em; color: #f0c040; line-height: 1; }
.lg-toast span { font-size: 13px; color: rgba(255, 255, 255, .75); }
.lg-x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; background: none; color: rgba(255, 255, 255, .7); font-size: 22px; cursor: pointer; }
@media (max-height: 360px) { .lg-toast { padding: 7px 34px 7px 10px; gap: 2px; } .lg-days i { width: 20px; height: 20px; } .lg-toast b { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .lg-toast { animation: none; transition: none; } }
.pp-login { display: grid; gap: 6px; }
.pp-login h3 { margin: 0; font-family: "Teko", sans-serif; font-weight: 600; font-size: 20px; letter-spacing: .14em; color: #f0c040; }
.pp-login small { font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.pp-login .lg-days i { width: 34px; height: 34px; font-size: 16px; }
