/* One aligned resource row; avoid historical mobile flex wrapping. */
.intro{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center!important}
.intro>div:first-child{min-width:0}.intro .wallets{width:auto!important;align-items:center;align-self:center}
.intro .eyebrow{margin:0;line-height:1.5!important}.intro .journey-hint:empty{display:none}
#next-ally{display:none!important}
/* A reserved overlay: appearing or expiring never changes arena or page height. */
#battle-arena>#world-event{position:absolute!important;left:20px;right:20px;bottom:14px;top:auto;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:8px;height:26px;min-height:26px;max-width:none;margin:0!important;padding:0 10px!important;border:1px solid var(--event-color);border-radius:3px;background:#101713ed;box-shadow:0 2px 8px #0006;overflow:hidden;pointer-events:none}
#world-event #event-icon,#world-event #event-buff,#world-event>div>small{display:none!important}
#world-event>div:not(.event-progress){position:relative;z-index:1;min-width:0;flex:1}
#world-event #event-name{font:600 12px/1.2 'CK Text',sans-serif;white-space:nowrap;color:#e8e9dc}
#world-event #event-time{position:relative;z-index:1;font:600 11px/1 'CK Text',sans-serif;white-space:nowrap;color:#e8e9dc}
#world-event .event-progress{position:absolute!important;inset:0;width:auto!important;height:auto!important;margin:0!important;background:none;border:0;border-radius:0}
#world-event #event-bar{display:block;height:100%;background:var(--event-color);opacity:.24;border-radius:0;transition:width .2s linear}
.dungeon .boss-telegraph{bottom:48px!important}
/* Milestone -> reward -> permanent gains, with minimal prose. */
#region-prestige.prestige-workbench{display:block;padding:clamp(14px,2.5vw,28px)!important;background:#122019ed;border:1px solid #c6a76166}
.prestige-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}
.prestige-heading h2{font-size:36px;margin:6px 0}.prestige-heading #prestige-count{font-size:11px;color:#a9b5aa}
.essence-total{display:flex;align-items:center;gap:10px}.essence-total small{display:block;font-size:9px;letter-spacing:.6px;color:#c6a761}
.essence-total b{display:block;font:32px/1.2 'CK Titles',Georgia;color:#e8e9dc;margin-top:4px}
.prestige-overview{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:18px}
.prestige-milestone,.prestige-reward-card{min-width:0;padding:22px;background:#1d2c21;border:1px solid #c6a76144}
.prestige-milestone>small,.prestige-reward-card>small{font-size:10px;letter-spacing:.8px;color:#c6a761}
.prestige-milestone h3{font:36px/1.15 'CK Titles',Georgia;margin:10px 0 22px}.prestige-milestone h3 b{font:inherit;color:#d9eecb}
.prestige-track{height:10px;overflow:hidden;border:1px solid #8fcf9155;background:#0a140e}
.prestige-track>i{display:block;height:100%;background:linear-gradient(90deg,#4faf75,#afd28b);max-width:100%}
#prestige-progress{display:block;font-size:12px;line-height:1.5;color:#c9d9c2;margin:10px 0 18px}
.prestige-steps{display:flex;gap:8px}.prestige-step{flex:1;min-width:0;padding:9px 4px;text-align:center;border:1px solid #c6a76133;background:#101713}
.prestige-step b{display:block;font:24px/1.2 'CK Titles',Georgia;color:#a9b5aa}.prestige-step small{display:block;font-size:9px;margin-top:5px;color:#a9b5aa}
.prestige-step.next{border-color:#8fcf91;background:#25452f}.prestige-step.next b{color:#d3f0c2}.prestige-step.done{opacity:.65}
.prestige-reward-card{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(ellipse at top,#37533155,transparent),#17271d}
.prestige-reward-card>strong{font:60px/1.2 'CK Titles',Georgia;color:#d5e8b4;margin:6px 0}
.prestige-reward-card>span{font-size:12px;color:#becdb8}.prestige-reward-card .prestige-action{width:100%;margin:20px 0 10px}
#prestige-open{width:100%;min-height:48px;padding:12px;font-size:14px;background:#2e5539;border:1px solid #8fcf91;color:#e8e9dc}
#prestige-open:disabled{background:#1d2721;border-color:#c6a76144;color:#a9b5aa;opacity:1}
.prestige-bonus-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:26px 0 12px}
.prestige-bonus-heading h3{font:24px/1.2 'CK Titles',Georgia;margin:0}.prestige-bonus-heading>small{font-size:9px;color:#a9b5aa}
.prestige-bonus-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.prestige-bonus-grid>div{padding:16px 12px;border:1px solid #c6a76133;background:#19271e;min-width:0}
.prestige-bonus-grid small{font-size:11px;color:#a9b5aa;line-height:1.5}.prestige-bonus-grid p{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:12px 0 0!important;line-height:1.2!important;flex-wrap:wrap}
.prestige-bonus-grid p>span{font:21px 'CK Titles',Georgia;color:#b6c1b1}.prestige-bonus-grid i{font-style:normal;font-size:13px;color:#a9b5aa}.prestige-bonus-grid strong{font:25px 'CK Titles',Georgia;color:#cbebb9}
.prestige-reset-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px;padding-top:18px;border-top:1px solid #c6a76133}
.prestige-reset-summary b{display:block;font-size:11px;color:#c6a761;margin-bottom:7px}.prestige-reset-summary span{font-size:11px;line-height:1.6;color:#a9b5aa}
@media(max-width:900px){.prestige-bonus-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:599px){
 .intro{grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important}.intro .wallets{gap:8px!important}.intro .eyebrow{letter-spacing:.3px!important}
 .intro .wallet,.intro .gem-wallet{padding:0!important;gap:4px!important;min-width:0!important}.intro .wallet strong,.intro .gem-wallet b{font-size:15px!important}
 .intro .wallet .coin,.intro .gem-wallet>span{width:19px;height:22px}.intro .wallet .painted-ui,.intro .gem-wallet .painted-ui{width:19px;height:19px}
 #battle-arena>#world-event{height:24px;min-height:24px;left:20px;right:20px;padding:0 8px!important}
 #world-event #event-name{font-size:10px}#world-event #event-time{font-size:10px}
 .prestige-heading{align-items:flex-start;margin-bottom:18px}.prestige-heading h2{font-size:30px}.essence-total{gap:6px}.essence-total img{width:28px;height:28px}.essence-total small{font-size:8px;max-width:95px}.essence-total b{font-size:26px}
 .prestige-overview{grid-template-columns:minmax(0,1fr);gap:12px}.prestige-milestone,.prestige-reward-card{padding:16px}
 .prestige-milestone h3{font-size:32px;margin-bottom:16px}.prestige-step b{font-size:22px}.prestige-step small{font-size:8px}
 .prestige-reward-card>strong{font-size:48px}.prestige-reward-card .prestige-action{margin-top:14px}
 .prestige-bonus-heading h3{font-size:22px}.prestige-bonus-grid>div{padding:12px 10px}.prestige-bonus-grid p>span{font-size:18px}.prestige-bonus-grid strong{font-size:21px}
 .prestige-reset-summary{grid-template-columns:minmax(0,1fr);gap:12px}.prestige-reset-summary>div{display:flex;justify-content:space-between;gap:10px}.prestige-reset-summary b{margin:0;flex:none}.prestige-reset-summary span{text-align:right}
}
@media(prefers-reduced-motion:reduce){#world-event #event-bar{transition:none}}

#battle-recovery[hidden]{display:none}
#battle-recovery{
 position:absolute;z-index:7;top:43%;left:50%;transform:translate(-50%,-50%);
 width:min(230px,72%);box-sizing:border-box;padding:9px 12px;pointer-events:none;
 color:#f0e6cf;background:#152018ef;border:1px solid #92794e;border-radius:5px;
 box-shadow:0 3px 16px #0007;
}
#battle-recovery>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
#battle-recovery strong{font-size:14px}
#battle-recovery b{font:600 12px system-ui;white-space:nowrap}
#battle-recovery small{display:block;color:#d6ba7d;font:11px system-ui;margin:3px 0}
#battle-recovery small:empty{display:none}
#battle-recovery>i{display:block;height:3px;margin-top:6px;background:#324437;border-radius:3px;overflow:hidden}
#recovery-fill{display:block;height:100%;width:0;background:#a7cf87}
@media (prefers-reduced-motion:no-preference){
 #hero-health.rallying #hero-hp-fill{transition:width .55s ease-out}
}
