/* v315: achievements. (v356: old session rims removed; the v354 flame strip replaces them.) */
#goals{display:none!important}
#achievements{padding-bottom:100px}
#achievements .card{padding:16px}
.level-hero-v315{background:linear-gradient(135deg,var(--hlp-surface,#fff),var(--hlp-soft,#fff1d6));border:1px solid #dfb858}
.level-number-v315{display:flex;align-items:center;gap:16px;margin:20px 0}
.level-number-v315>span{font-size:48px;color:#db9d22;filter:drop-shadow(0 0 9px #e5b64c66)}
.level-number-v315 h2{font-size:30px!important;margin:0!important}.level-number-v315 p{margin:4px 0;font-variant-numeric:tabular-nums}
#achievements .bar{height:8px;margin:8px 0}#achievements .bar i{background:linear-gradient(90deg,#d28a26,#efc761)}
.xp-week-v315{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-top:16px}
.xp-week-v315>div{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:144px;gap:6px;font-size:12px}
.xp-week-v315 i{display:block;width:min(100%,26px);height:var(--h);max-height:100px;min-height:3px;background:linear-gradient(#efc761,#c48a2c);border-radius:7px 7px 3px 3px}
.xp-week-v315 small{font-size:10px;white-space:nowrap}
.reward-filters-v315{display:flex;gap:8px;margin:12px 0}.reward-filters-v315 button{min-height:44px;font-size:12px}
.badge-grid-v315{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.badge-v315{display:flex;flex-direction:column;align-items:flex-start;gap:7px;border:1px solid var(--hlp-border,#dce5ed);border-radius:15px;padding:13px;background:var(--hlp-soft,#f4f8fb);color:var(--hlp-ink,#233d50);text-align:left;font:inherit;min-height:160px}
.badge-v315.won{border-color:#d7b14b;background:color-mix(in srgb,var(--hlp-surface,#fff) 90%,#efc761)}
.badge-icon-v315{font-size:28px}.badge-v315 b{font-size:14px}.badge-v315 small{font-size:11px;line-height:1.5}.badge-v315 .bar{align-self:stretch;margin-top:auto!important}
#rewardToastV315{position:fixed;left:50%;bottom:calc(92px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:110;max-width:90vw;width:max-content;padding:12px 18px;border-radius:16px;background:var(--hlp-ink,#233d50);color:var(--hlp-surface,#fff);font-size:13px;box-shadow:0 8px 30px #0003;pointer-events:none}
#rewardToastV315[data-kind="level"],#rewardToastV315[data-kind="badge"]{border:2px solid #edc251;background:#4d391c;color:#fff4cc;font-size:16px}
#rewardToastV315[hidden]{display:none}.reward-pop-v315{animation:reward-pop-v315 .45s ease-out}
@keyframes reward-pop-v315{from{opacity:0;transform:translate(-50%,12px) scale(.93)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
.feedback-form-v315{display:grid;gap:14px}.feedback-form-v315 label{display:flex;align-items:center;gap:10px;font-size:14px}.feedback-form-v315 input[type=range]{width:100%;min-width:0}.feedback-form-v315 .row{flex-wrap:wrap}.feedback-form-v315 button{min-height:44px}
.reward-spark-v315{position:absolute;left:50%;top:50%;width:5px;height:5px;border-radius:50%;background:#ffe895;pointer-events:none;animation:reward-spark-v315 .9s var(--delay) ease-out both}
@keyframes reward-spark-v315{from{opacity:1;transform:translate(0,0) scale(1.4)}to{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.3)}}
html[data-reward-motion="off"] .reward-pop-v315{animation:none!important;filter:none!important}
@media(prefers-reduced-motion:reduce){.reward-pop-v315{animation:none!important}.reward-spark-v315{display:none}}
@media(max-width:360px){#achievements .card{padding:12px}.badge-v315{padding:10px}.badge-v315 b{font-size:13px}}

/* v316: collectible engraved medals and level titles. */
.level-number-v315 h2{font-size:clamp(23px,5vw,32px)!important;line-height:1.25}
.level-number-v315>div{min-width:0}.title-next-v316{padding:10px 12px;background:var(--hlp-soft,#fff5de);border-radius:10px;font-size:12px;line-height:1.6}
.badge-group-v316{min-width:0;display:flex;flex-direction:column;border:1px solid var(--hlp-border,#dce5ed);border-radius:16px;overflow:hidden;background:var(--hlp-surface,#fff)}
.badge-group-v316 .badge-v315{align-items:center;text-align:center;border:0;border-radius:0;flex:1;position:relative;overflow:hidden;width:100%;padding-top:16px}
.badge-group-v316 .badge-v315 small{overflow-wrap:anywhere}
.medal-v316{display:block;width:100px;height:117px;flex-shrink:0;margin:0 auto 4px;filter:drop-shadow(0 5px 5px #182c4430)}
.medal-v316.earned{filter:drop-shadow(0 4px 5px #8b661640)}
.medal-v316.large{width:170px;height:198px;margin:8px auto 18px}
.medal-v316.locked{opacity:.88}
.journey-link-v316{width:100%;min-height:42px;border:0;border-top:1px solid var(--hlp-border,#dce5ed);background:var(--hlp-surface,#fff);color:var(--hlp-ink,#233d50);font:inherit;font-size:12px;font-weight:650}
.journey-link-v316:focus-visible,.badge-v315:focus-visible{outline:3px solid #3185ac;outline-offset:-3px}
#badgeDetailV315,#badgeJourneyV316{max-height:88dvh;overflow:auto;width:min(94vw,560px)}
#badgeDetailV315 h2{text-align:center}.journey-list-v316{display:grid;gap:10px;margin-top:16px}
.journey-list-v316>div{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid var(--hlp-border,#dce5ed);border-radius:14px;background:var(--hlp-soft,#f3f7fa)}
.journey-list-v316 .medal-v316{width:72px;height:84px;margin:0;flex:none}.journey-list-v316 p{font-size:12px;line-height:1.5;margin:5px 0}.journey-list-v316 small{font-size:11px;color:var(--hlp-muted,#61798b)}
html[data-reward-motion="on"] .badge-v315.won::after{content:'';position:absolute;inset:-60% -100%;background:linear-gradient(115deg,transparent 43%,#fff9 49%,transparent 55%);transform:translateX(-55%);pointer-events:none;animation:medal-sheen-v316 7s ease-in-out infinite}
@keyframes medal-sheen-v316{0%,65%{transform:translateX(-55%)}90%,100%{transform:translateX(55%)}}
@media(prefers-reduced-motion:reduce){.badge-v315.won::after{animation:none!important;display:none}}
@media(max-width:360px){.medal-v316{width:84px;height:98px}.level-number-v315{gap:10px}.level-number-v315>span{font-size:36px}}

/* v317: full-battery celebration, independent of the continuously animated session rim. */
.battery-full-v317{position:relative}
.battery-full-note-v317{position:absolute!important;bottom:0!important;left:7px!important;right:7px!important;display:block!important;text-align:center!important;font-size:8px!important;font-weight:650!important;line-height:1.4!important;color:var(--hlp-ink,#294356)!important;pointer-events:none}
.mini-sleep.battery-full-v317{padding-bottom:17px!important}
.battery-burst-v317{animation:battery-burst-v317 1.2s ease-out!important}
@keyframes battery-burst-v317{0%{filter:brightness(1);box-shadow:0 0 0 0 #efd27800}25%{filter:brightness(1.13);box-shadow:0 0 0 3px #e9bb4d,0 0 22px #e9bb4d88}100%{filter:brightness(1);box-shadow:0 0 0 0 #efd27800}}
.battery-burst-v317 .battery-pct{animation:battery-number-v317 .5s ease-out!important}
@keyframes battery-number-v317{0%,100%{transform:scale(1)}45%{transform:scale(1.13)}}
#rewardToastV315[data-kind="full"]{background:#214d46;color:#f0fff7;border:1px solid #8dcaba;max-width:min(92vw,500px);text-align:center;line-height:1.5}
.feedback-form-v315 select{min-width:0;flex:1;min-height:42px;padding:8px;border-radius:9px;border:1px solid var(--hlp-border,#bccfdd);background:var(--hlp-surface,#fff);color:var(--hlp-ink,#294356);font:inherit}
html[data-reward-motion="off"] :is(.battery-burst-v317,.battery-burst-v317 .battery-pct){animation:none!important}
@media(prefers-reduced-motion:reduce){.battery-burst-v317,.battery-burst-v317 .battery-pct{animation:none!important}}

/* v320: clear next steps and a compact collectible overview. */
.level-number-v315>.level-crest-v320{display:flex;flex-direction:column;justify-content:center;align-items:center;flex:none;width:72px;height:80px;border:2px solid #c69a40;border-radius:24px 24px 32px 32px;background:linear-gradient(140deg,#fff5d7,#e5b650);color:#694516;box-shadow:inset 0 0 0 4px #fff5d780;filter:none;font-size:inherit}
.level-crest-v320 small{font-size:11px;letter-spacing:2px}.level-crest-v320 b{font-size:30px;line-height:1.2}
.level-progress-label-v320{font-size:12px;gap:8px;flex-wrap:wrap;font-variant-numeric:tabular-nums}
.title-path-v320{display:flex;flex-direction:column;align-items:flex-start;width:100%;text-align:left;border:1px solid var(--hlp-border,#e7d7aa);color:var(--hlp-ink,#233d50);font:inherit;gap:3px;cursor:pointer;min-height:44px}
.title-path-v320>span,.title-path-v320>small{font-size:12px}.title-path-v320>b{font-size:16px}.title-path-link-v320{margin-top:5px;font-weight:650;color:var(--hlp-ink,#294356)}
.xp-rules-v320{font-size:12px;line-height:1.6;margin-top:14px}.xp-rules-v320 summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:650}.xp-rules-v320 summary::before{content:'＋';margin-right:8px}.xp-rules-v320[open] summary::before{content:'−'}.xp-rules-v320 p{margin:0 0 8px}
.reward-summary-v320{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.reward-summary-v320>div{display:flex;flex-direction:column;gap:5px;background:var(--hlp-surface,#fff);border:1px solid var(--hlp-border,#dce5ed);border-radius:14px;padding:12px;min-width:0}
.reward-summary-v320 b{font-size:23px;font-variant-numeric:tabular-nums}.reward-summary-v320 span{font-size:11px;line-height:1.5;color:var(--hlp-muted,#61798b)}
.xp-history-v320 h2,#achievements .card h2{margin:0;font-size:16px}.xp-history-v320 .row{gap:6px;flex-wrap:wrap}
.xp-week-v315>div{height:108px}.xp-week-v315 i{max-height:76px}
.reward-empty-v320{font-size:13px;line-height:1.7;padding:12px 0;margin:0;grid-column:1/-1;color:var(--hlp-muted,#61798b)}
.reward-filters-v315{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.reward-filters-v315 button{padding:8px 5px;min-width:0}
.reward-group-filter-v320{display:flex;align-items:center;gap:12px;font-size:12px;margin:0 0 14px}.reward-group-filter-v320 select{flex:1;min-width:0;min-height:44px;border:1px solid var(--hlp-border,#bccfdd);background:var(--hlp-surface,#fff);color:var(--hlp-ink,#294356);border-radius:10px;padding:8px;font:inherit}
.badge-remaining-v320{font-size:12px;color:var(--hlp-ink,#294356);line-height:1.5}.badge-status-v320{color:var(--hlp-ink,#294356);font-weight:650}.badge-v315 small{font-size:12px}.badge-grid-v315{align-items:stretch}
#titlePathV320{width:min(94vw,560px);max-height:88dvh;overflow:auto}
.title-ranks-v320{list-style:none;display:grid;gap:8px;padding:0;margin:16px 0 0}.title-ranks-v320 li{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid var(--hlp-border,#dce5ed);border-radius:14px;background:var(--hlp-soft,#f3f7fa)}
.title-ranks-v320 li>span{flex:0 0 48px;font-size:12px;font-weight:700}.title-ranks-v320 li>div{display:grid;gap:5px;min-width:0}.title-ranks-v320 small{font-size:12px;line-height:1.5}.title-ranks-v320 li.current{border:2px solid #ba8b2f}.title-ranks-v320 li.reached{border-inline-start:4px solid #7aab8b}
#titlePathV320 button,#badgeDetailV315 button,#badgeJourneyV316 button{min-height:44px}
.title-path-v320:focus-visible,.reward-filters-v315 button:focus-visible,.reward-group-filter-v320 select:focus-visible,.xp-rules-v320 summary:focus-visible{outline:3px solid #3185ac;outline-offset:2px}
@media(min-width:700px){.badge-grid-v315{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:360px){.level-number-v315>.level-crest-v320{width:58px;height:68px}.level-crest-v320 b{font-size:26px}.reward-summary-v320>div{padding:9px}.reward-summary-v320 b{font-size:20px}}

/* v321: one-line level strip and unmistakable completed batteries. */
#home #dayStatus{display:none!important}
.home-level-v321{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;box-sizing:border-box;margin:0 0 14px;padding:9px 12px;border:1px solid var(--hlp-border,#e4d6ad);border-radius:14px;background:var(--hlp-surface,#fff);color:var(--hlp-ink,#294356);font:inherit;cursor:pointer;touch-action:manipulation}
.home-level-v321>b{flex:none;font-size:13px;color:var(--hlp-ink,#805a18);white-space:nowrap}
.home-level-v321>span:not(.home-xp-track-v321){font-size:11px;white-space:nowrap;flex:none;font-variant-numeric:tabular-nums}
.home-xp-track-v321{height:6px;flex:1;min-width:24px;overflow:hidden;border-radius:10px;background:color-mix(in srgb,#b68932 16%,var(--hlp-surface,#fff))}
.home-xp-track-v321>i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#c28a2a,#efc763);transition:width .35s ease}
.home-level-v321:focus-visible{outline:3px solid #3185ac;outline-offset:2px}
#home .metric.battery-full-v317,#home .mini-sleep.battery-full-v317{border:2px solid #3a9870!important;background:linear-gradient(135deg,var(--hlp-surface,#fff),color-mix(in srgb,#58bd8a 19%,var(--hlp-surface,#fff)))!important;box-shadow:0 0 0 2px #4aa37a20,inset 0 0 14px #58bd8a0d!important}
#home .metric.battery-full-v317::before{background:#2c9567!important;clip-path:inset(0 0 0 0 round 999px)!important}
#home .battery-full-v317 :is(.battery-pct,.sleep-mini-pct){display:flex!important;align-items:center!important;gap:5px!important;color:#257a53!important}
#home .battery-full-v317 :is(.battery-pct,.sleep-mini-pct)::before{content:'';display:inline-block;flex:none;width:21px;height:21px;background:#268357;border-radius:50%;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-size:100%}
#home .mini-sleep.battery-full-v317 .sleep-mini-pct::before{width:15px;height:15px}
#home .battery-full-note-v317{font-size:9px!important;color:var(--hlp-ink,#286344)!important;bottom:1px!important;line-height:1.3!important}
#home .mini-sleep.battery-full-v317{padding-bottom:23px!important}
#home .mini-sleep.battery-full-v317 .sleep-mini-pct{font-size:10px!important}
html[data-hlp-theme]:is([data-hlp-theme=dark],[data-hlp-theme=obsidian]) #home .battery-full-v317 :is(.battery-pct,.sleep-mini-pct){color:#85d9aa!important}
@media(max-width:360px){.home-level-v321{gap:7px;padding:9px 10px}.home-level-v321>span:not(.home-xp-track-v321){font-size:10px}#home .battery-full-v317 .battery-pct::before{width:18px;height:18px}}
@media(prefers-reduced-motion:reduce){.home-xp-track-v321>i{transition:none}}
html[data-reward-motion=off] .home-xp-track-v321>i{transition:none}

/* v322: a single large check replaces the full percentage. */
#home .battery-full-v317 :is(.battery-pct,.sleep-mini-pct)::before{display:none!important}
#home .battery-full-v317 .battery-pct{font-size:34px!important;line-height:1!important;font-weight:900!important;justify-content:flex-end!important}
#home .mini-sleep.battery-full-v317 .sleep-mini-pct{font-size:24px!important;line-height:1!important;top:4px!important;right:9px!important}

/* v323: positive goals together, reserve below; short XP next to title. */
.home-rank-v323{display:flex;align-items:center;gap:6px;min-width:0;flex:1;font-size:12px!important}
.home-rank-v323>b{flex:none;white-space:nowrap;font-size:12px}.home-rank-v323>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600}
.home-rank-v323>span::before{content:'· ';opacity:.55}
.home-level-v321>.home-rank-v323{flex:1;min-width:0}
.home-level-v321>.home-xp-track-v321{flex:0 1 72px;width:72px;min-width:28px;max-width:72px}
#home .battery-section-v323{grid-column:1/-1;font-size:11px;font-weight:700;color:var(--hlp-muted,#62798a);padding:3px 1px;letter-spacing:.2px}
#home .metric:is(.metric-fire,.metric-rabbit){grid-column:1/-1!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:16px 23px!important;min-height:68px!important;padding:8px 12px 17px!important;gap:3px 10px!important}
#home .metric:is(.metric-fire,.metric-rabbit)>span{grid-column:1!important;grid-row:1!important;font-size:11px!important;align-self:center!important}
#home .metric:is(.metric-fire,.metric-rabbit)>b{grid-column:1!important;grid-row:2!important;font-size:20px!important;align-self:center!important}
#home .metric:is(.metric-fire,.metric-rabbit)>.battery-pct{grid-column:2!important;grid-row:1/3!important;align-self:center!important;font-size:28px!important}
#home .metric:is(.metric-fire,.metric-rabbit)::before,#home .metric:is(.metric-fire,.metric-rabbit)::after{bottom:7px!important}
#home .metric.metric-fire.battery-full-v317>.battery-pct{font-size:34px!important}
#home .metric.metric-rabbit{--tile-accent:#26845f;--tile-tint:#e9f7ef}
#home .metric.metric-rabbit[data-reserve=mid]{--tile-accent:#a8771c;--tile-tint:#fff5df}
#home .metric.metric-rabbit[data-reserve=low]{--tile-accent:#b54a49;--tile-tint:#ffeded}
html[data-hlp-theme] #home .metric.metric-rabbit{border-color:color-mix(in srgb,var(--tile-accent) 32%,var(--hlp-surface,#fff))!important;background:linear-gradient(135deg,var(--hlp-surface,#fff),color-mix(in srgb,var(--tile-accent) 10%,var(--hlp-surface,#fff)))!important}
#home .metric.metric-rabbit,#home .metric.metric-rabbit :is(b,span,.battery-pct){color:var(--tile-accent)!important}
html[data-hlp-theme]:is([data-hlp-theme=dark],[data-hlp-theme=obsidian]) #home .metric.metric-rabbit{--tile-accent:#81d5b0}
html[data-hlp-theme]:is([data-hlp-theme=dark],[data-hlp-theme=obsidian]) #home .metric.metric-rabbit[data-reserve=mid]{--tile-accent:#e8c06b}
html[data-hlp-theme]:is([data-hlp-theme=dark],[data-hlp-theme=obsidian]) #home .metric.metric-rabbit[data-reserve=low]{--tile-accent:#f19d9b}
@media(max-width:360px){.home-level-v321{gap:6px}.home-level-v321>.home-xp-track-v321{flex-basis:40px;max-width:40px}.home-rank-v323{gap:4px}.home-rank-v323>b{font-size:11px}.home-rank-v323>span{font-size:10px}}
.home-level-v321>span.home-rank-v323{flex:1;min-width:0;overflow:hidden}

/* v324: compact dashboard and one combined completion badge. */
#home .battery-section-v323{display:none!important}
#home .home-level-v321{min-height:40px;margin-bottom:10px;padding-top:7px;padding-bottom:7px}
#home>.grid.focus-keep{gap:8px!important}
#home .metric,#home .metric:has(.metric-mini-sub){min-height:90px!important;grid-template-rows:23px 26px!important;gap:5px 4px!important;padding:10px 12px 20px!important}
#home .metric:is(.metric-fire,.metric-rabbit){min-height:60px!important;grid-template-rows:15px 22px!important;padding:6px 12px 15px!important;gap:2px 8px!important}
#home .metric.battery-full-v317,#home .mini-sleep.battery-full-v317{border-width:1px!important;box-shadow:0 0 0 1px #4aa37a22!important}
#home .battery-full-v317 .battery-full-note-v317{display:none!important}
#home .metric.battery-full-v317[data-battery-state]>.battery-pct,#home .mini-sleep.battery-full-v317[data-battery-state]>.sleep-mini-pct{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:0!important;width:max-content!important;max-width:100%!important;
 padding:5px 7px!important;border-radius:8px!important;background:#237b53!important;color:#fff!important;font-size:11px!important;font-weight:750!important;line-height:1.25!important;letter-spacing:0!important;white-space:nowrap!important;
}
#home .metric.battery-full-v317[data-battery-state=ready]>.battery-pct,#home .mini-sleep.battery-full-v317[data-battery-state=ready]>.sleep-mini-pct{background:#8b621d!important;color:white!important;font-size:10px!important}
#home .mini-sleep.battery-full-v317{padding-bottom:12px!important}
#home .mini-sleep.battery-full-v317[data-battery-state]>.sleep-mini-pct{font-size:9px!important;padding:4px 5px!important;top:5px!important;right:6px!important}
@media(max-width:360px){#home .metric.battery-full-v317[data-battery-state]>.battery-pct{font-size:10px!important;padding:5px 6px!important}#home .metric.battery-full-v317[data-battery-state=ready]>.battery-pct{font-size:9px!important}}

body #home .metric.battery-full-v317[data-battery-state]>.battery-pct,body #home .mini-sleep.battery-full-v317[data-battery-state]>.sleep-mini-pct{color:#fff!important}

/* v325: a consistent illustrated rank system and collectible cabinet. */
.rank-symbol-v325{display:block;width:40px;height:40px;flex:none;color:inherit}
.home-level-v321>span.home-rank-icon-v325{display:grid;place-items:center;flex:0 0 22px;color:#a87925}.home-rank-icon-v325 .rank-symbol-v325{width:22px;height:22px}
.home-level-v321:has(.home-rank-icon-v325){gap:7px}
#achievements .level-hero-v315{position:relative;overflow:hidden;border:1px solid color-mix(in srgb,#c49b43 50%,var(--hlp-border,#dce5ed));background:radial-gradient(ellipse at 100% 0%,#e5bb5c23,transparent 65%),var(--hlp-surface,#fff);box-shadow:0 8px 28px #85631f0c}
.level-number-v315>.rank-hero-emblem-v325{width:86px;height:96px;border-radius:24px 24px 36px 36px;background:linear-gradient(135deg,#fff4d1,#e7c16d 65%,#c49a41);border-color:#c49a41;box-shadow:inset 0 0 0 4px #fff9,0 6px 15px #9c70232b;gap:5px;color:#795318}
.rank-hero-emblem-v325 .rank-symbol-v325{width:48px;height:48px}.rank-hero-emblem-v325 small{font-size:11px;font-weight:800;letter-spacing:1px}
.level-number-v315{gap:18px;margin:20px 0}.level-number-v315 h2{font-size:clamp(22px,5vw,30px)!important;letter-spacing:-.6px}
.level-number-v315 p{font-size:13px;color:var(--hlp-muted,#61798b)}
#achievements .level-hero-v315>.bar{height:10px;border-radius:20px;background:color-mix(in srgb,#c49b43 14%,var(--hlp-surface,#fff))}#achievements .level-hero-v315>.bar i{border-radius:inherit;background:linear-gradient(90deg,#bd862b,#efcc79)}
.title-path-v320{border-radius:14px;padding:12px 14px;position:relative;background:color-mix(in srgb,#e7c16d 9%,var(--hlp-surface,#fff))}
.rank-next-name-v325{display:flex;align-items:center;gap:8px;margin:3px 0}.rank-next-name-v325 .rank-symbol-v325{width:25px;height:25px;color:#a87925}
.title-path-link-v320{position:absolute;right:12px;bottom:12px;font-size:11px!important}.title-path-v320>small{padding-right:100px}
.reward-summary-v320>div{border-radius:16px;box-shadow:0 3px 12px #203a4c05}.reward-summary-v320>div:first-child b{color:#a87925}
#achievements .badge-group-v316{border-radius:18px;box-shadow:0 4px 14px #203a4c07;transition:box-shadow .15s}
#achievements .badge-group-v316:has(.won){border-color:#caa65c;box-shadow:0 4px 14px #94733015}
#achievements .badge-v315{background:radial-gradient(ellipse at 50% 25%,#98b5cd18,transparent 70%),var(--hlp-surface,#fff);gap:8px;padding:16px 12px 12px}
#achievements .badge-v315.won{background:radial-gradient(ellipse at 50% 25%,#edcd7838,transparent 75%),var(--hlp-surface,#fff)}
#achievements .badge-v315>b{font-size:15px;line-height:1.4}#achievements .badge-v315>small:first-of-type{font-size:10px;letter-spacing:.25px;color:var(--hlp-muted,#61798b)}
#achievements .badge-v315 .bar{height:6px}#achievements .journey-link-v316{min-height:44px;font-weight:700;background:var(--hlp-soft,#f6f8fa)}
.rank-modal-v325 h2{font-size:20px;margin:0}.rank-modal-head-v325{gap:10px;flex-wrap:wrap}.rank-next-summary-v325{font-size:13px;line-height:1.7;margin:16px 0;color:var(--hlp-muted,#61798b)}
.rank-journey-v325{display:grid;gap:9px;list-style:none;margin:0;padding:0}
.rank-journey-v325 li{display:flex;align-items:center;gap:12px;min-height:78px;padding:12px;box-sizing:border-box;border:1px solid var(--hlp-border,#dbe5ed);border-radius:16px;background:var(--hlp-soft,#f3f7fb);color:var(--hlp-ink,#294356)}
.rank-emblem-v325{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:14px;background:color-mix(in srgb,currentColor 8%,transparent);color:#8f9da9}
.rank-journey-v325 .current{border:2px solid #d6ad4c;background:color-mix(in srgb,#d6ad4c 12%,var(--hlp-surface,#fff));box-shadow:0 0 0 3px #d6ad4c12}
.rank-journey-v325 .current .rank-emblem-v325{color:#b48121}.rank-journey-v325 .reached .rank-emblem-v325{color:#3a9375}
.rank-info-v325{min-width:0;flex:1;display:grid;gap:5px}.rank-info-v325>b{font-size:15px;line-height:1.4}.rank-info-v325>small{font-size:11px;line-height:1.4;color:var(--hlp-muted,#61798b)}
.rank-status-v325{font-size:10px;white-space:nowrap;color:var(--hlp-muted,#61798b)}.current .rank-status-v325{background:#e8bf58;color:#443314;border-radius:20px;padding:5px 8px;font-weight:800}.reached .rank-status-v325{color:#3a9375;font-size:18px}
.rank-journey-v325 .locked .rank-emblem-v325{opacity:.6}
@media(max-width:400px){.rank-journey-v325 li{gap:9px;padding:10px}.rank-emblem-v325{flex-basis:38px;height:42px}.rank-emblem-v325 .rank-symbol-v325{width:32px;height:32px}.rank-info-v325>b{font-size:14px}.rank-status-v325{font-size:9px}.level-number-v315>.rank-hero-emblem-v325{width:70px;height:84px}.rank-hero-emblem-v325 .rank-symbol-v325{width:40px;height:40px}.home-level-v321>span.home-rank-icon-v325{flex-basis:18px}.home-rank-icon-v325 .rank-symbol-v325{width:18px;height:18px}}
@media(prefers-reduced-motion:reduce){#achievements .badge-group-v316{transition:none}}

/* v327: enamel centres, layered metal and illustrated title crests. */
.rank-art-v327{height:44px;overflow:visible;filter:drop-shadow(0 2px 2px #152c4024)}
.rank-emblem-v325{background:transparent!important;border-radius:0;height:58px;flex-basis:54px}
.rank-emblem-v325 .rank-art-v327{width:50px;height:55px}
.rank-journey-v325 .locked .rank-art-v327{filter:grayscale(1) drop-shadow(0 2px 2px #152c4015);opacity:.8}
.rank-journey-v325 .current .rank-art-v327{filter:drop-shadow(0 3px 4px #a77a2c40)}
.level-number-v315>.rank-hero-emblem-v325{width:92px;height:110px;border:0;box-shadow:none;background:radial-gradient(ellipse,#efcd7b25,transparent 72%);border-radius:0;gap:2px}
.rank-hero-emblem-v325 .rank-art-v327{width:82px;height:90px;filter:drop-shadow(0 5px 5px #9b713334)}
.rank-hero-emblem-v325 small{background:color-mix(in srgb,#c99b41 15%,var(--hlp-surface,#fff));color:var(--hlp-ink,#795318);border-radius:12px;padding:3px 9px;font-size:10px}
.rank-next-name-v325 .rank-art-v327{width:30px;height:33px}
.medal-art-v327{width:112px;height:131px;filter:drop-shadow(0 6px 6px #1c30442b)}
.medal-art-v327.large{width:190px;height:222px}
.medal-art-v327.locked{opacity:.8;filter:saturate(.2) drop-shadow(0 4px 4px #25394c20)}
#achievements .badge-v315.won{background:radial-gradient(ellipse at 50% 26%,#edc87938,transparent 66%),var(--hlp-surface,#fff)}
#achievements .badge-v315:not(.won){background:radial-gradient(ellipse at 50% 26%,#a0b6c51a,transparent 66%),var(--hlp-surface,#fff)}
.journey-list-v316 .medal-art-v327{width:80px;height:94px}
.home-rank-icon-v325 .rank-art-v327{width:24px;height:26px}
@media(max-width:400px){.rank-emblem-v325{flex-basis:46px;height:52px}.rank-emblem-v325 .rank-art-v327{width:42px;height:46px}.level-number-v315>.rank-hero-emblem-v325{width:76px;height:100px}.rank-hero-emblem-v325 .rank-art-v327{width:70px;height:77px}.home-rank-icon-v325 .rank-art-v327{width:20px;height:22px}}
@media(max-width:360px){.medal-art-v327{width:98px;height:115px}}

/* v328: unlocked medals and the next milestone in one grouped collection. */
.collection-intro-v328{font-size:12px;line-height:1.6;color:var(--hlp-muted,#61798b);margin:10px 0 14px}
.reward-collection-v328{display:grid;gap:24px}.reward-series-v328{min-width:0}
.reward-series-head-v328{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
.reward-series-head-v328 h3{font-size:15px;line-height:1.4;margin:0 0 4px}.reward-series-head-v328 small{font-size:11px;color:var(--hlp-muted,#61798b)}
.reward-series-head-v328 .journey-link-v316{width:auto;min-height:44px;border:1px solid var(--hlp-border,#dce5ed);border-radius:10px;padding:8px 10px;font-size:11px;flex:none}
.collection-state-v328{font-size:10px;font-weight:750;line-height:1.4;padding:4px 9px;border-radius:20px;background:var(--hlp-soft,#f1f5f8);color:var(--hlp-muted,#61798b)}
.collection-state-v328.earned{background:#e5f4eb;color:#256b4b}.collection-state-v328.next{background:#fff2d3;color:#815d20}
#achievements .badge-group-v316.next-v328{border-style:dashed;border-color:#c4ae7c}
.reward-series-v328+.reward-series-v328{padding-top:22px;border-top:1px solid var(--hlp-border,#dce5ed)}
@media(max-width:360px){.reward-series-head-v328{gap:6px}.reward-series-head-v328 h3{font-size:14px}.reward-series-head-v328 .journey-link-v316{font-size:10px;padding:6px 8px}}

/* v329: nearby goals, weekly challenges and concise saved-session feedback. */
.near-home-v329,.near-card-v329{display:flex;justify-content:space-between;align-items:center;gap:12px;background:var(--hlp-surface,#fff);border:1px solid var(--hlp-border,#dce5ed);border-radius:16px;padding:12px;margin:12px 0}
.near-home-v329>div,.near-card-v329>div{min-width:0}.near-home-v329 small,.near-card-v329 small{font-size:10px;color:var(--hlp-muted,#61798b)}
.near-home-v329 b,.near-card-v329 b{display:block;font-size:14px;margin:4px 0}.near-home-v329 p,.near-card-v329 p{font-size:12px;line-height:1.5;margin:0;color:var(--hlp-muted,#61798b)}
.near-home-v329 button,.near-card-v329 button{flex:none;min-height:44px;font-size:11px;padding:8px 10px;white-space:nowrap}
.weekly-list-v329{display:grid;gap:9px;margin:14px 0}.weekly-item-v329{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid var(--hlp-border,#dce5ed);border-radius:14px;background:var(--hlp-soft,#f3f7fb)}
.weekly-item-v329 .medal-v316{width:54px;height:63px;margin:0;flex:none}.weekly-item-v329>div{min-width:0;flex:1}.weekly-item-v329 b{font-size:14px}.weekly-item-v329 p{font-size:12px;line-height:1.5;margin:4px 0}.weekly-item-v329 small{font-size:11px;color:var(--hlp-muted,#61798b)}
.weekly-item-v329.won{border-color:#85b89d;background:color-mix(in srgb,#85b89d 9%,var(--hlp-surface,#fff))}.weekly-item-v329.won small{color:var(--hlp-ink,#286b4b)}
.weekly-archive-v329{font-size:12px;line-height:1.6}.weekly-archive-v329 summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:650}.weekly-archive-v329 summary::before{content:'＋';margin-right:8px}.weekly-archive-v329[open] summary::before{content:'−'}
#rewardToastV315{line-height:1.6;text-align:center;max-width:min(92vw,560px);overflow-wrap:anywhere}
@media(max-width:360px){.near-home-v329,.near-card-v329{gap:8px;padding:10px}.near-home-v329 button,.near-card-v329 button{font-size:10px;padding:7px}.weekly-item-v329{gap:8px}.weekly-item-v329 .medal-v316{width:44px;height:52px}}

/* v330: cosmetic wardrobe and a three-slot earned-medal cabinet. */
.cosmetics-v330 .row,.pinned-cabinet-v330 .row{gap:8px;flex-wrap:wrap}.cosmetics-v330 button,.pinned-cabinet-v330 button{min-height:44px}
.dragon-showcase-v330{display:flex;align-items:center;gap:18px;margin-top:14px}.dragon-showcase-v330>.dragon-preview-v330{width:108px;height:94px;flex:none;image-rendering:pixelated;filter:drop-shadow(0 5px 5px #98743022)}
.dragon-showcase-v330 b{font-size:16px}.dragon-showcase-v330 p{font-size:12px;line-height:1.6;color:var(--hlp-muted,#61798b);margin:6px 0}
.pinned-grid-v330{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:16px}
.pinned-grid-v330>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid var(--hlp-border,#dce5ed);border-radius:14px;padding:10px 5px;background:var(--hlp-soft,#f3f7fa);color:var(--hlp-ink,#294356);font:inherit;min-width:0;min-height:130px;cursor:pointer}
.pinned-grid-v330 .medal-v316{width:min(100%,80px);height:94px;margin:0}.pinned-grid-v330 b{font-size:11px;line-height:1.4;overflow-wrap:anywhere}.pinned-grid-v330 .empty{border-style:dashed}.pinned-grid-v330 .empty>span{font-size:28px;color:var(--hlp-muted,#61798b)}.pinned-grid-v330 small{font-size:11px}
#dragonWardrobeV330,#pinnedCabinetV330{width:min(94vw,600px);max-height:88dvh;overflow:auto}.wardrobe-grid-v330{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.wardrobe-grid-v330>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px solid var(--hlp-border,#dce5ed);border-radius:14px;padding:14px 8px;background:var(--hlp-soft,#f3f7fa);color:var(--hlp-ink,#294356);font:inherit;min-width:0;min-height:140px;cursor:pointer}
.wardrobe-grid-v330 button[aria-pressed=true]{border:2px solid #bc913d;background:color-mix(in srgb,#e9c363 12%,var(--hlp-surface,#fff))}.wardrobe-grid-v330 .locked .dragon-preview-v330{filter:grayscale(1);opacity:.5}.wardrobe-grid-v330 .dragon-preview-v330{width:86px;height:76px}.wardrobe-grid-v330 b{font-size:13px;text-align:center;line-height:1.4}.wardrobe-grid-v330 small{font-size:11px;color:var(--hlp-muted,#61798b)}.wardrobe-grid-v330 button:disabled{cursor:default}
.wardrobe-grid-v330 button:focus-visible,.pinned-grid-v330>button:focus-visible{outline:3px solid #3185ac;outline-offset:2px}
html[data-reward-motion=on] #achievements.active .dragon-showcase-v330 .pet-wing{animation:pet-wing319 1.2s steps(4,end) infinite}
@media(max-width:360px){.dragon-showcase-v330{gap:10px}.dragon-showcase-v330>.dragon-preview-v330{width:84px;height:76px}.pinned-grid-v330 .medal-v316{height:80px}}
@media(prefers-reduced-motion:reduce){#achievements .dragon-showcase-v330 .pet-wing{animation:none!important}}

/* v331: compact collection and a dismissible session result */
.reward-fold-v331{margin:12px 0;border:1px solid #d5e1e7;border-radius:18px;background:#fff;overflow:hidden}
.reward-fold-v331>summary{padding:17px;font-weight:750;cursor:pointer;color:#294450;min-height:48px}
.reward-fold-v331>.card{margin:0;border:0;box-shadow:none}
.session-card-v331{position:fixed;bottom:calc(86px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(430px,calc(100% - 28px));padding:14px 16px;background:#fff;border:2px solid #379275;border-radius:20px;box-shadow:0 8px 32px #183d4933;z-index:1500;color:#263f4b;max-height:45dvh;overflow:auto}
.session-card-v331[hidden]{display:none}.session-card-v331 p{margin:7px 0;overflow-wrap:anywhere}.session-card-v331 .btn{min-width:44px;min-height:44px}.session-won-v331{background:#278365;color:white;padding:8px 12px;border-radius:10px;font-weight:700}
.reward-fold-v331 summary:focus-visible{outline:3px solid #2788bb;outline-offset:-4px}

/* v335: the whole next-milestone card is a semantic button. */
.near-button-v335{width:100%;text-align:left;color:var(--hlp-text,#29434e);font:inherit;cursor:pointer;box-sizing:border-box;min-height:76px}
.near-button-v335 .near-copy-v335{min-width:0}.near-remaining-v335{display:block;font-size:12px;line-height:1.5;color:var(--hlp-muted,#61798b)}
.near-link-v335{flex:none;font-size:12px;font-weight:700;color:#287c93;padding:10px;border-radius:10px;background:#eef7fa;white-space:nowrap}
.near-button-v335:focus-visible{outline:3px solid #278ac2;outline-offset:3px}.near-button-v335:active{filter:brightness(.97)}
#nearestMilestoneV335{max-height:88dvh;overflow:auto}#nearestMilestoneV335 .bar{margin:14px 0}
/* v348: tiers, Sắp đạt, bottom-sheet detail, unlock screen, weekly seals */
.tier-chip-v348{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.01em;line-height:1.5}
.tier-chip-v348.bronze{background:#f6e3d3;color:#6e3818}.tier-chip-v348.silver{background:#e6ecf2;color:#34475a}.tier-chip-v348.gold{background:#fbefc6;color:#5f420a}.tier-chip-v348.fire{background:#ffe1cf;color:#9a3009}
.badge-v315 .tier-chip-v348{margin:2px auto 0}
.near-v348{margin-top:14px}
.near-head-v348{display:flex;justify-content:space-between;align-items:baseline;margin:0 2px 8px}.near-head-v348 h2{margin:0;font-size:var(--hl-fs-lg,18px)}.near-head-v348 span{font-size:13px;color:var(--hl-text-2,#5b6470)}
.near-grid-v348{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.near-grid-v348 button{min-height:44px;background:var(--hlp-surface,#fff);border:1px solid var(--hlp-border,var(--hl-border,#ebe5de));border-radius:var(--hl-radius-md,14px);padding:10px 6px;text-align:center;font:inherit;color:var(--hlp-ink,inherit)}
.near-ring-v348{--p:50;width:62px;height:62px;margin:0 auto 6px;border-radius:50%;background:conic-gradient(var(--hl-fire,#b93a0a) calc(var(--p)*1%),#efe4da 0);display:grid;place-items:center}
.near-ring-v348>span{width:54px;height:54px;border-radius:50%;background:var(--hlp-surface,#fff);display:grid;place-items:center}
.near-ring-v348 svg{width:40px;height:47px}
.near-grid-v348 b{display:block;font-size:12.5px;line-height:1.25}.near-grid-v348 small{display:block;font-size:11px;color:var(--hlp-muted,var(--hl-text-2,#5b6470));margin-top:2px;line-height:1.3}
.near-grid-v348 em{display:block;font-style:normal;font-size:11px;color:var(--hl-fire,#b93a0a);font-weight:700;margin-top:3px}
/* v363: center sheets horizontally at every viewport width. */
dialog.sheet-v348{margin:auto auto 0;width:100%;max-width:100%;max-height:90vh;border-radius:24px 24px 0 0;padding:0}
dialog.sheet-v348[open]{animation:sheetUpV348 .22s var(--hl-ease,ease-out)}
@keyframes sheetUpV348{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
.sheet-body-v348{position:relative;padding:10px 18px calc(18px + env(safe-area-inset-bottom,0px));text-align:center}
.sheet-grab-v348{width:40px;height:5px;border-radius:9px;background:#d9d2cb;margin:0 auto 4px}
.sheet-x-v348{position:absolute;top:10px;right:12px;width:44px;height:44px;border-radius:50%;border:0;background:var(--hlp-soft,#f4efe9);color:var(--hlp-ink,#55626d);font-size:22px;line-height:1}
.sheet-body-v348>.medal-v316{width:124px;height:144px;display:block;margin:6px auto 0}
.sheet-body-v348 h2{margin:6px 0 2px}.sheet-tier-v348{margin:4px 0 0}
.sheet-meta-v348{margin:0 0 10px;color:var(--hlp-muted,var(--hl-text-2,#5b6470));font-size:13px}
.sheet-box-v348{text-align:left;background:var(--hlp-soft,#faf6f2);border-radius:14px;padding:12px;margin:8px 0}
.sheet-box-v348 p{margin:4px 0;font-size:13px}
.sheet-row-v348{display:flex;justify-content:space-between;font-size:13px;margin-top:6px}
.sheet-series-v348{display:flex;justify-content:space-between;gap:2px;margin:10px 0 4px}
.sheet-series-v348 span{flex:1;font-size:10px;color:var(--hlp-muted,#6f7882)}.sheet-series-v348 svg{width:30px;height:35px;display:block;margin:0 auto}
.sheet-series-v348 span:not(.won) svg{opacity:.4;filter:grayscale(1)}.sheet-series-v348 .current{color:var(--hl-fire,#b93a0a);font-weight:800}
.sheet-cta-v348{width:100%;min-height:48px;margin-top:10px}
.sheet-note-v348{margin:10px 0 0;opacity:.85}
dialog.unlock-v348{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:0;background:radial-gradient(circle at 50% 38%,#5a2309 0,#1f0f07 72%)!important;border:0!important;color:#fff4e6;box-shadow:none}
dialog.unlock-v348::backdrop{background:#1f0f07}
.unlock-body-v348{position:relative;min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px 22px calc(24px + env(safe-area-inset-bottom,0px));box-sizing:border-box}
.unlock-body-v348 h2{color:#fff;font-size:28px;margin:8px 0 4px}
.unlock-body-v348 p{margin:4px 0;color:#f5d9c2;font-size:14px;max-width:320px}
.unlock-body-v348 .unlock-next-v348{opacity:.9}.unlock-body-v348 b{color:#fff}
.unlock-queue-v348{font-size:12px!important;letter-spacing:.08em;opacity:.8}
.unlock-art-v348{position:relative;z-index:1}.unlock-art-v348 .medal-v316{width:156px;height:182px;filter:drop-shadow(0 10px 30px #ff8a3d88)}
.unlock-art-v348.rank .rank-symbol-v325{width:132px;height:143px;filter:drop-shadow(0 10px 30px #ff8a3d88)}
.unlock-burst-v348{position:absolute;left:50%;top:38%;width:360px;height:360px;margin:-180px 0 0 -180px;border-radius:50%;background:repeating-conic-gradient(#ffb36633 0 8deg,transparent 8deg 22deg);-webkit-mask:radial-gradient(circle,#000 30%,transparent 70%);mask:radial-gradient(circle,#000 30%,transparent 70%);animation:unlockSpinV348 14s linear infinite;pointer-events:none}
.unlock-actions-v348{display:flex;gap:10px;width:min(340px,100%);margin-top:20px;position:relative;z-index:1}
.unlock-actions-v348 .btn{flex:1;min-height:48px;border-radius:14px;background:transparent!important;color:#fff!important;border:1px solid #ffffff66;font-weight:700}
.unlock-actions-v348 .btn.primary{background:#b93a0a!important;border-color:#b93a0a!important}
.unlock-skip-v348{margin-top:12px;min-height:44px;background:none;border:0;color:#f5d9c2;text-decoration:underline;font:inherit;position:relative;z-index:1}
.unlock-art-v348{animation:unlockPopV348 .7s cubic-bezier(.2,1.4,.3,1) both}
.unlock-body-v348 h2,.unlock-body-v348 p,.unlock-actions-v348{animation:unlockUpV348 .5s .3s both}
@keyframes unlockPopV348{0%{transform:scale(.3) rotate(-12deg);opacity:0}100%{transform:none;opacity:1}}
@keyframes unlockUpV348{0%{transform:translateY(10px);opacity:0}100%{transform:none;opacity:1}}
@keyframes unlockSpinV348{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){dialog.sheet-v348[open],.unlock-art-v348,.unlock-burst-v348,.unlock-body-v348 h2,.unlock-body-v348 p,.unlock-actions-v348{animation:none!important}}
html[data-reward-motion=off] :is(dialog.sheet-v348[open],.unlock-art-v348,.unlock-burst-v348,.unlock-body-v348 h2,.unlock-body-v348 p,.unlock-actions-v348){animation:none!important}
.weekly-seal-v348{width:48px;height:48px;flex:none}
body.on-achievements-v348 .quick-switch-fab{display:none!important}
[data-hlp-theme=dark] .tier-chip-v348.bronze,[data-hlp-theme=obsidian] .tier-chip-v348.bronze{background:#4a2f1f;color:#ffd9bd}
[data-hlp-theme=dark] .tier-chip-v348.silver,[data-hlp-theme=obsidian] .tier-chip-v348.silver{background:#2f4053;color:#dbe7f3}
[data-hlp-theme=dark] .tier-chip-v348.gold,[data-hlp-theme=obsidian] .tier-chip-v348.gold{background:#4b3c14;color:#ffe9a8}
[data-hlp-theme=dark] .tier-chip-v348.fire,[data-hlp-theme=obsidian] .tier-chip-v348.fire{background:#55210c;color:#ffd0b5}
[data-hlp-theme=dark] .near-ring-v348,[data-hlp-theme=obsidian] .near-ring-v348{background:conic-gradient(#ff8a5c calc(var(--p)*1%),#33465c 0)}
[data-hlp-theme=dark] .near-grid-v348 em,[data-hlp-theme=obsidian] .near-grid-v348 em,[data-hlp-theme=dark] .sheet-series-v348 .current,[data-hlp-theme=obsidian] .sheet-series-v348 .current{color:#ffb199}
/* v349: title strip, ladder sheet, open collection grid */
.title-strip-v349{display:grid;grid-template-columns:repeat(8,1fr);gap:4px;list-style:none;margin:10px 0 0;padding:0}
.title-strip-v349 li{display:grid;place-items:center;padding:3px 0;border-radius:10px}
.title-strip-v349 svg{width:30px;height:32px}
.title-strip-v349 li.locked svg{filter:grayscale(1);opacity:.35}
.title-strip-v349 li.current{background:color-mix(in srgb,#e2622a 16%,transparent);box-shadow:inset 0 0 0 2px #e2622a}
.ladder-v349{list-style:none;margin:8px 0 0;padding:0 0 0 6px;text-align:left;position:relative}
.ladder-v349:before{content:"";position:absolute;left:28px;top:14px;bottom:14px;width:3px;background:var(--hlp-border,#ebe5de);border-radius:3px}
.ladder-v349 li{position:relative;display:grid;grid-template-columns:46px 1fr auto;gap:10px;align-items:center;padding:8px 6px;border-radius:14px}
.ladder-v349 li.current{background:var(--hl-fire-soft,#fff1e8);box-shadow:inset 0 0 0 1.5px #e2622a}
.ladder-icon-v349{position:relative;z-index:1;display:grid;place-items:center;width:46px;height:48px;background:var(--hlp-surface,#fff);border-radius:50%}
.ladder-icon-v349 svg{width:38px;height:41px}
.ladder-v349 li.locked .ladder-icon-v349 svg{filter:grayscale(1);opacity:.45}
.ladder-v349 b{display:block;font-size:14px}.ladder-v349 small{display:block;font-size:12px;color:var(--hlp-muted,var(--hl-text-2,#5b6470));line-height:1.35}
.ladder-v349 .ladder-eta-v349{color:var(--hl-fire,#b93a0a);font-weight:700}
.ladder-v349 .ladder-dragon-v349{font-size:11px}
.ladder-state-v349{font-size:12px;font-weight:800;color:var(--hl-ok,#2f855a)}.ladder-v349 li.current .ladder-state-v349{color:var(--hl-fire,#b93a0a)}
.ladder-sheet-v349{text-align:left}.ladder-sheet-v349 h2{margin:4px 50px 2px 0}
.collection-v349{margin-top:14px}
.chips-v349{display:flex;gap:6px;overflow-x:auto;padding:4px 0 10px;scrollbar-width:none}
.chips-v349 button{flex:none;min-height:36px;padding:0 12px;border-radius:999px;border:1px solid var(--hlp-border,var(--hl-border,#ebe5de));background:var(--hlp-surface,#fff);color:var(--hlp-ink,inherit);font:inherit;font-size:13px;font-weight:600}
.chips-v349 button[aria-pressed=true]{background:#b93a0a;border-color:#b93a0a;color:#fff}
.series-v349{padding:10px 0;border-top:1px solid var(--hlp-border,var(--hl-border,#ebe5de))}
.series-head-v349{display:flex;align-items:baseline;gap:8px}.series-head-v349 h3{margin:0;font-size:15px}.series-head-v349 small{color:var(--hlp-muted,#6f7882);font-size:12px}.series-head-v349 .journey-link-v316{margin-left:auto}
.steps-v349{display:flex;gap:3px;margin:8px 0}
.steps-v349 i{flex:1;height:6px;border-radius:6px;background:#e9e3dc}
.steps-v349 i.on.t0{background:#b8774e}.steps-v349 i.on.t1{background:#8aa0b8}.steps-v349 i.on.t2{background:#d4a033}.steps-v349 i.on.t3{background:#e2622a}
.steps-v349 i.next{background:repeating-linear-gradient(90deg,#e2622a 0 4px,#f3d6c6 4px 8px)}
.grid-v349{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.grid-v349 button{min-height:44px;padding:6px 2px;border:0;border-radius:12px;background:transparent;font:inherit;color:var(--hlp-ink,inherit);text-align:center}
.grid-v349 svg{width:48px;height:56px;display:block;margin:0 auto}
.grid-v349 b{display:block;font-size:11px;line-height:1.2;margin-top:2px}
.grid-v349 small{display:block;font-size:10px;color:var(--hlp-muted,#6f7882)}
.grid-v349 button.locked svg{filter:grayscale(1);opacity:.4}
.grid-v349 button.next{background:var(--hl-fire-soft,#fff1e8);box-shadow:inset 0 0 0 1.5px #f0b496}
.grid-v349 button.next small{color:var(--hl-fire,#b93a0a);font-weight:700}
[data-hlp-theme=dark] .ladder-v349 li.current,[data-hlp-theme=obsidian] .ladder-v349 li.current,[data-hlp-theme=dark] .grid-v349 button.next,[data-hlp-theme=obsidian] .grid-v349 button.next{background:#3a2418}
[data-hlp-theme=dark] .steps-v349 i,[data-hlp-theme=obsidian] .steps-v349 i{background:#33465c}
[data-hlp-theme=dark] .ladder-v349 .ladder-eta-v349,[data-hlp-theme=obsidian] .ladder-v349 .ladder-eta-v349,[data-hlp-theme=dark] .grid-v349 button.next small,[data-hlp-theme=obsidian] .grid-v349 button.next small{color:#ffb199}
.series-head-v349{align-items:center}.series-head-v349 h3{flex:1;min-width:0}.series-head-v349 .journey-link-v316{flex:none;width:auto!important;min-height:44px;margin:0!important;padding:0 2px!important;background:none!important;border:0!important;box-shadow:none!important;font-size:12px;font-weight:700;color:var(--hl-fire,#b93a0a)}
[data-hlp-theme=dark] .series-head-v349 .journey-link-v316,[data-hlp-theme=obsidian] .series-head-v349 .journey-link-v316{color:#ffb199}



/* v421 — compact, information-rich mobile Thành tích view.
   Existing level and achievement data, dialogs, sounds, and unlocks are unchanged. */
@media (max-width:700px){
 #achievements .card{padding:11px 12px}
 #achievements .level-hero-v315{padding:11px 12px!important;border-radius:16px}
 #achievements .level-hero-v315>.row:first-child{align-items:center;gap:8px;min-height:30px}
 #achievements .level-hero-v315>.row:first-child>.small{font-size:11px;letter-spacing:.01em}
 #achievements .level-hero-v315>.row:first-child>.btn{min-height:32px!important;padding:5px 9px!important;border-radius:10px;font-size:12px}
 #achievements .level-number-v315{margin:8px 0 9px!important;gap:11px!important;align-items:center}
 #achievements .level-number-v315>.rank-hero-emblem-v325{
  width:62px!important;height:72px!important;flex:0 0 62px!important;
  margin:0!important;padding:0!important;gap:0!important
 }
 #achievements .rank-hero-emblem-v325 .rank-art-v327{width:56px!important;height:59px!important}
 #achievements .rank-hero-emblem-v325 small{padding:1px 6px!important;font-size:9px!important;line-height:1.1!important;letter-spacing:.05em}
 #achievements .level-number-v315 h2{font-size:20px!important;line-height:1.17!important;letter-spacing:-.3px}
 #achievements .level-number-v315 p{font-size:12px!important;margin:3px 0 0!important;line-height:1.3}
 #achievements .level-progress-label-v320{font-size:12px!important;gap:5px!important;flex-wrap:nowrap!important}
 #achievements .level-progress-label-v320>b{white-space:nowrap}
 #achievements .level-progress-label-v320>span{white-space:nowrap;font-variant-numeric:tabular-nums}
 #achievements .level-hero-v315>.bar{height:7px!important;margin:6px 0 5px!important}
 #achievements .level-hero-v315>p.small{margin:2px 0 9px!important;font-size:11px;line-height:1.3}
 #achievements .title-path-v320{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto auto!important;
  gap:3px 8px!important;align-items:center;
  padding:8px 10px!important;margin:0!important;min-height:67px!important;
  border-radius:12px!important;box-sizing:border-box
 }
 #achievements .title-path-v320>span:first-child{grid-column:1;grid-row:1;font-size:10.5px;line-height:1.25;min-width:0}
 #achievements .title-path-v320>.title-path-link-v320{
  position:static!important;grid-column:2;grid-row:1;margin:0!important;
  font-size:10px!important;line-height:1.2!important;white-space:nowrap;justify-self:end
 }
 #achievements .title-path-v320>.rank-next-name-v325{
  grid-column:1/-1;grid-row:2;display:flex!important;align-items:center;gap:5px!important;
  font-size:15px!important;line-height:1.2!important;margin:0!important;min-width:0
 }
 #achievements .rank-next-name-v325 .rank-symbol-v325{width:21px!important;height:23px!important;flex:0 0 21px!important}
 #achievements .title-path-v320>small{
  grid-column:1/-1;grid-row:3;margin:0!important;padding:0!important;
  font-size:10.5px!important;line-height:1.2!important
 }
 #achievements .title-strip-v349{gap:3px!important;margin:7px 0 0!important}
 #achievements .title-strip-v349 li{padding:1px 0!important;border-radius:8px!important}
 #achievements .title-strip-v349 svg{width:25px!important;height:27px!important}
 #achievements .xp-rules-v320{margin-top:6px!important}
 #achievements .xp-rules-v320 summary{min-height:34px!important;font-size:11.5px!important;line-height:1.35}
 #achievements .xp-rules-v320 summary::before{margin-right:6px}
 #achievements .crystal-v366{padding:11px 12px!important}
 #achievements .crystal-v366>p.small:first-child{margin:0 0 4px!important;font-size:10px;line-height:1.25}
 #achievements .crystal-heading-v367{display:flex;align-items:center;gap:8px;margin:0!important;min-height:39px}
 #achievements .crystal-heading-v367 .crystal-emblem-v367{width:39px!important;height:43px!important;flex:0 0 39px}
 #achievements .crystal-heading-v367 h2{font-size:16px!important;line-height:1.25!important}
 #achievements .crystal-v366>p{margin:4px 0!important;font-size:12px;line-height:1.3}
 #achievements .crystal-v366>.row{font-size:11px;gap:6px}
 #achievements .crystal-v366>.row>span{font-variant-numeric:tabular-nums}
 #achievements .crystal-v366>.bar{height:6px!important;margin:5px 0!important}
 #achievements .crystal-v366>details{margin:3px 0!important;font-size:11.5px}
 #achievements .crystal-v366>details>summary{min-height:34px;display:flex;align-items:center;font-size:11.5px;font-weight:650;cursor:pointer}
 #achievements .crystal-v366>.crystal-rules-v421>p{margin:3px 0 7px;font-size:11.5px;line-height:1.45}
 #achievements .streak-card-v350{padding:11px 12px!important}
 #achievements .streak-head-v350{gap:9px!important}
 #achievements .streak-head-v350 h2{font-size:17px!important}
 #achievements .streak-head-v350 p{font-size:11px;margin:3px 0}
 #achievements .streak-card-v350>.bar{height:6px!important;margin:5px 0!important}
 #achievements .reward-summary-v320{gap:5px!important;margin:8px 0!important}
 #achievements .reward-summary-v320>div{padding:8px 6px!important;gap:3px!important;border-radius:12px}
 #achievements .reward-summary-v320 b{font-size:18px!important;line-height:1.1}
 #achievements .reward-summary-v320 span{font-size:10px!important;line-height:1.3}
 #achievements .near-v348{margin-top:9px!important}
 #achievements .near-head-v348{margin-bottom:6px}
 #achievements .near-grid-v348{gap:5px}
 #achievements .near-grid-v348 button{padding:7px 4px!important}
 #achievements .near-ring-v348{width:50px;height:50px;margin-bottom:4px}
 #achievements .near-ring-v348>span{width:44px;height:44px}
 #achievements .near-ring-v348 svg{width:32px;height:37px}
 #achievements .collection-v349{margin-top:10px!important}
 #achievements .chips-v349{gap:5px;padding:2px 0 7px}
 #achievements .chips-v349 button{min-height:34px!important;padding:0 10px!important;font-size:11.5px}
 #achievements .series-v349{padding:8px 0}
 #achievements .grid-v349 svg{width:42px;height:49px}
 #achievements .grid-v349 button{padding:5px 2px}
 #achievements .reward-fold-v331{margin:8px 0!important;border-radius:13px}
 #achievements .reward-fold-v331>summary{min-height:42px;padding:11px 13px}
}
@media(max-width:360px){
 #achievements .level-number-v315 h2{font-size:18px!important}
 #achievements .level-number-v315>.rank-hero-emblem-v325{width:55px!important;flex-basis:55px!important;height:65px!important}
 #achievements .rank-hero-emblem-v325 .rank-art-v327{width:51px!important;height:53px!important}
 #achievements .level-number-v315{gap:8px!important}
 #achievements .level-progress-label-v320{font-size:10.5px!important}
 #achievements .title-path-v320>span:first-child{font-size:10px}
 #achievements .title-path-v320>.title-path-link-v320{font-size:9.5px!important}
 #achievements .title-path-v320>.rank-next-name-v325{font-size:14px!important}
}

/* v423 crystal rank layout */
.crystal-hero-v423{position:relative;overflow:hidden;border:1px solid color-mix(in srgb,#6798dc 47%,var(--hlp-border,#dce5ed));background:radial-gradient(ellipse at 100% 0%,#63b8ec17,transparent 65%),var(--hlp-surface,#fff);box-shadow:0 8px 28px #287cb30b}
.crystal-top-v423{align-items:center;gap:8px;min-height:30px}
.crystal-top-v423>.small{letter-spacing:.02em}
.crystal-top-v423>.btn{min-height:34px;padding:6px 10px;border-radius:10px;font-size:12px}
.crystal-level-v423{display:flex;align-items:center;gap:16px;margin:16px 0 12px}
.crystal-level-v423>.crystal-crest-v423{display:flex;flex-direction:column;justify-content:center;align-items:center;width:78px;height:92px;flex:0 0 78px;box-sizing:border-box;gap:1px;border:1px solid #87b7e6;border-radius:22px 22px 30px 30px;background:linear-gradient(145deg,#e8f8ff,#cee5ff 65%,#b6d2f1);box-shadow:inset 0 0 0 3px #ffffffa8,0 6px 14px #4794cd24;color:#315e92;font-size:inherit;filter:none}
.crystal-crest-v423>.crystal-emblem-v367{width:53px;height:60px;filter:drop-shadow(0 3px 4px #3f77b030)}
.crystal-crest-v423>small{font-size:10px;font-weight:800;letter-spacing:.07em;line-height:1.1;color:#315e92}
.crystal-level-v423>div{min-width:0}
.crystal-level-v423 h2{font-size:clamp(22px,5vw,30px)!important;line-height:1.18;letter-spacing:-.5px;overflow-wrap:anywhere}
.crystal-level-v423 p{margin:4px 0;color:var(--hlp-muted,#61798b);font-size:13px}
.crystal-hero-v423>.bar{height:10px;margin:8px 0;border-radius:20px;background:color-mix(in srgb,#7bb8e5 15%,var(--hlp-surface,#fff))}
.crystal-hero-v423>.bar i{height:100%;border-radius:inherit;background:linear-gradient(90deg,#168aab,#8e66d9)!important}
.crystal-hero-v423>.crystal-remain-v423{margin:4px 0 10px;line-height:1.35;color:var(--hlp-muted,#61798b)}
.crystal-next-v423{border-color:color-mix(in srgb,#72a7df 45%,var(--hlp-border,#dce5ed));background:color-mix(in srgb,#8abef2 9%,var(--hlp-surface,#fff))}
.crystal-next-v423 .rank-next-name-v325>.crystal-emblem-v367{width:25px;height:27px;flex:0 0 25px}
.crystal-next-v423:focus-visible,.crystal-top-v423>.btn:focus-visible,.crystal-ladder-v423 summary:focus-visible{outline:3px solid #3498c7;outline-offset:2px}
.crystal-strip-v423{margin:10px 0 2px}
.crystal-strip-v423 li.current{background:color-mix(in srgb,#258dba 13%,transparent);box-shadow:inset 0 0 0 2px #258dba}
.crystal-strip-v423 svg{width:30px;height:33px}
.crystal-strip-v423 li.locked svg{filter:grayscale(1);opacity:.32}
.crystal-ladder-v423{margin-top:7px!important;font-size:12px}
.crystal-ladder-v423>summary{display:flex;align-items:center;min-height:36px;cursor:pointer;font-size:12px;font-weight:650}
.crystal-journey-v423{margin:7px 0 12px}
.crystal-journey-v423 .crystal-emblem-v367{width:42px;height:46px}
.crystal-journey-v423 .current{border-color:#64b3df;background:color-mix(in srgb,#9bd7f3 13%,var(--hlp-surface,#fff))}
.crystal-journey-v423 .current .rank-status-v325{background:#a5dff5;color:#234f72}
.crystal-journey-v423 li.locked .crystal-emblem-v367{filter:grayscale(1);opacity:.38}
@media(max-width:700px){
 #achievements .crystal-hero-v423{padding:11px 12px!important;border-radius:16px}
 .crystal-hero-v423 .crystal-top-v423>.small{font-size:11px}
 .crystal-hero-v423 .crystal-top-v423>.btn{min-height:32px!important;padding:5px 9px!important;font-size:12px}
 #achievements .crystal-hero-v423 .crystal-level-v423{margin:8px 0 9px!important;gap:11px!important;align-items:center}
 .crystal-hero-v423 .crystal-level-v423>.crystal-crest-v423{width:62px!important;height:72px!important;flex:0 0 62px!important;padding:0!important;gap:0}
 .crystal-hero-v423 .crystal-crest-v423>.crystal-emblem-v367{width:48px!important;height:52px!important;flex-shrink:0}
 .crystal-hero-v423 .crystal-crest-v423>small{font-size:9px;line-height:1.1}
 #achievements .crystal-hero-v423 .crystal-level-v423 h2{font-size:20px!important;line-height:1.17!important;letter-spacing:-.3px}
 .crystal-hero-v423 .crystal-level-v423 p{font-size:12px!important;line-height:1.3}
 #achievements .crystal-hero-v423>.row.level-progress-label-v320{font-size:12px;gap:5px}
 #achievements .crystal-hero-v423>.row.level-progress-label-v320>span{white-space:normal;text-align:right}
 #achievements .crystal-hero-v423>.bar{height:7px!important;margin:6px 0 5px!important}
 #achievements .crystal-hero-v423>.crystal-remain-v423{font-size:11px!important;line-height:1.3;margin:2px 0 9px!important}
 .crystal-hero-v423 .crystal-next-v423{min-height:67px!important;padding:8px 10px!important;margin:0!important}
 .crystal-hero-v423 .crystal-next-v423 .rank-next-name-v325{font-size:15px!important}
 .crystal-hero-v423 .crystal-next-v423 .rank-next-name-v325>.crystal-emblem-v367{width:21px!important;height:23px!important;flex:0 0 21px}
 .crystal-hero-v423 .crystal-strip-v423{gap:3px;margin:7px 0 0}
 .crystal-hero-v423 .crystal-strip-v423 li{padding:1px 0;border-radius:8px}
 .crystal-hero-v423 .crystal-strip-v423 svg{width:25px;height:27px}
 .crystal-hero-v423 .crystal-ladder-v423{margin-top:4px!important}
 .crystal-hero-v423 .crystal-ladder-v423>summary{min-height:34px;font-size:11.5px}
 .crystal-hero-v423>.crystal-rules-v421{margin-top:3px!important}
}
@media(max-width:360px){
 .crystal-hero-v423 .crystal-level-v423{gap:8px!important}
 .crystal-hero-v423 .crystal-level-v423>.crystal-crest-v423{width:55px!important;height:65px!important;flex-basis:55px!important}
 .crystal-hero-v423 .crystal-crest-v423>.crystal-emblem-v367{width:44px!important;height:47px!important}
 #achievements .crystal-hero-v423 .crystal-level-v423 h2{font-size:18px!important}
 .crystal-hero-v423 .crystal-next-v423 .rank-next-name-v325{font-size:14px!important}
}
