/* v1.22: reward path, compact mobile layout, quiet in-table celebrations. */
.levels-summary{display:grid;grid-template-columns:1fr 1fr;gap:20px;background:linear-gradient(125deg,#25374a,#172131);border:1px solid #d8b97466;border-radius:20px;padding:24px}.levels-summary>div{min-width:0}.levels-summary small,.levels-summary span{display:block;color:#c7d3df}.levels-summary strong{display:block;font-size:32px;color:#f5d59b;margin:6px 0}.levels-summary p,.levels-sources p{color:#bdcbd9;line-height:1.6}.levels-toolbar,.levels-pagination,.levels-milestone-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.levels-toolbar{margin:24px 0 12px}.levels-path{display:grid;gap:18px}.level-milestone{border:1px solid #738a9d44;border-radius:18px;padding:20px;background:#172131}.level-milestone.is-unlocked{border-color:#dfc18799}.level-milestone.is-claimed{border-color:#72b9a388}.levels-milestone-heading h4{font-size:22px;margin:0}.levels-milestone-heading>span{color:#d4bd90;font-size:14px}.levels-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}.level-choice{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;padding:16px 10px;background:#0d1927;border-radius:14px;text-align:center;border:1px solid transparent}.level-choice.is-chosen{border-color:#86d4b7;background:#16352e}.level-choice>strong{overflow-wrap:anywhere}.level-choice>small{color:#b0c1d4}.level-choice>button{width:100%;margin-top:auto;white-space:normal;min-height:44px}.level-art{height:110px;display:grid;place-items:center;padding:8px}.level-art .shop-card-preview{width:61px;height:87px}.level-art .shop-chip-preview{width:78px;height:78px;aspect-ratio:1;flex:none}.level-art .shop-frame-preview{width:64px;height:64px;display:grid;place-items:center;font-size:30px}.level-confirm{margin-top:14px;border-radius:12px;padding:14px;background:#293a4b;line-height:1.6}.level-confirm:empty{display:none}.level-confirm .btn{margin:4px 0}.levels-pagination{margin:18px 0}.levels-sources{margin-top:30px;padding:22px;background:#152131;border-radius:18px}.levels-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.levels-source-grid>div{display:flex;flex-direction:column;gap:7px;background:#0d1927;border-radius:12px;padding:14px;min-width:0;overflow-wrap:anywhere}.levels-source-grid span{color:#f2d293}.levels-source-grid small{color:#b8c9d9}.levels-sources summary{min-height:44px;cursor:pointer;padding:12px 0}.levels-history{list-style:none;padding:0;max-height:400px;overflow-y:auto}.levels-history li{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #7892aa33}.levels-history small{display:block;color:#a9bed0;margin-top:5px}.levels-history strong{flex-shrink:0;color:#f2d293}.level-up-banner .level-reward-open{position:static;display:block;width:100%;border:1px solid #e5c28c;background:#dcb26c;color:#172131;border-radius:10px;padding:10px;margin-top:14px;font:inherit;font-weight:700}.level-up-banner{max-height:calc(100dvh - 28px);overflow-y:auto;isolation:isolate}.level-up-banner:before{animation:level-stars 1.8s ease-out 2}.level-up-banner strong{animation:level-glow 1.2s ease-out 2}@keyframes level-stars{50%{text-shadow:0 0 14px #ffe1a6;transform:scale(1.12)}}@keyframes level-glow{50%{text-shadow:0 0 20px #ffd185}}@media(max-width:600px){.levels-summary{grid-template-columns:1fr;padding:16px;gap:8px}.level-milestone{padding:12px}.levels-choices{gap:8px}.level-choice{padding:12px 6px;font-size:13px}.level-choice .btn{padding:10px 4px;font-size:12px}.level-art{height:90px}.level-art .shop-chip-preview{width:58px;height:58px}.level-art .shop-card-preview{width:48px;height:68px}.level-art .shop-frame-preview{width:44px;height:44px;font-size:23px}.levels-source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.levels-sources{padding:14px}.levels-pagination .btn{padding:10px}.levels-history li{flex-wrap:wrap}.level-up-banner{max-height:calc(100dvh - 24px)}}@media(prefers-reduced-motion:reduce){.level-up-banner:before,.level-up-banner strong{animation:none}}
