/* 0.18.36 mobile review: the picture clips itself; trial locks remain outside the seal. */
.mastery-tree .mastery-seal>img{display:block;width:calc(100% - 12px);height:calc(100% - 12px);border-radius:50%;object-fit:cover;overflow:hidden;}

/* Reserving the complete line layout prevents a typed guide from growing over its live target. */
#novice-guide p{position:relative;}#novice-guide .guide-type-layout{visibility:hidden;white-space:normal;}#novice-guide .guide-type-ink{position:absolute;inset:0;white-space:normal;overflow-wrap:normal;}
#novice-guide.guide-compact{top:var(--guide-top,12px)!important;bottom:auto!important;}

.mastery-tree,.mastery-tree .mastery-root,.mastery-tree .mastery-node{box-sizing:border-box;min-width:0;max-width:100%;}

.mastery-tree .mastery-heading{flex-wrap:wrap;}.mastery-tree .mastery-heading>small{max-width:100%;white-space:normal;}

.mastery-tree .mastery-detail :is(h3,p,dt,dd,.mastery-reason){min-width:0;overflow-wrap:anywhere;}

.mastery-tree .mastery-root{display:flex;flex-direction:column;align-items:center;width:100%;gap:4px;}.mastery-tree .mastery-root>:is(strong,small){display:block;min-width:0;max-width:100%;overflow-wrap:anywhere;}

/* Stun already has a card status icon; the hidden sprite must not fetch retired FX. */
.card-field #battle-root .monster-unit.stunned .monster-sprite::before{content:none;display:none;background:none;animation:none;}

.card-field #battle-root .spell-panel-battle .monster-unit.frozen .monster-sprite::after{content:none;display:none;background:none;animation:none;}

/* The opaque battle screen covers the map; keep its animation state until returning. */
#app.v153-in-battle #world *,#app.v153-in-battle #world *::before,#app.v153-in-battle #world *::after{animation-play-state:paused!important;}

/* Compact world controls and item footers; the combat HP/resource meters are unchanged. */
#world #header-overload{margin:0;padding:3px;border:1px solid #d9caab;background:#fff9eb;box-shadow:0 2px 3px #6f654012,inset 0 0 0 2px #fffdf43d;line-height:0;}
#world #header-overload>img{display:block;width:24px;height:24px;object-fit:contain;object-position:center;}

.relic-card .inventory-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;column-gap:6px;row-gap:2px;line-height:1.3;}
.relic-card .inventory-footer>small{min-width:0;max-width:none;font:inherit;white-space:normal;overflow-wrap:anywhere;}
.relic-card .inventory-footer>span{min-width:0;font:inherit;white-space:nowrap;}

#app .combat-result .result-item:not(.result-worn) .result-item-footer{flex-wrap:wrap;justify-content:center;gap:3px 8px;padding-top:6px;font:400 8px/1.3 Interface,sans-serif;}
#app .combat-result .result-item:not(.result-worn) .result-item-footer>span{flex:0 0 auto;gap:3px;max-width:100%;white-space:nowrap;}
#app .combat-result .result-item:not(.result-worn) .result-item-footer>span+span{border-left:0;padding-left:0;}
#app .combat-result .result-item:not(.result-worn) .result-item-footer :is(.icon,img){flex:none;width:11px;height:12px;font-size:11px;}
