/* PondLife 8.21 — scoped Lily Pad layout corrections. */
/* Profile controls above the single horizontal row of four counters. */
body .sp-lily-page .pl816-profile>.pl819-header-right{gap:9px!important}
body .sp-lily-page .pl816-profile .pl816-profile-actions{order:0!important;justify-content:flex-end!important;margin:0!important}
body .sp-lily-page .pl816-profile .pl819-header-stats{order:1!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
/* Current Event and Achievements remain first. Treasures and Favorites share the next row. */
body .sp-lily-page .pl72-overview-right .pl821-feature-pair{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:start!important;min-width:0!important}
body .sp-lily-page .pl821-feature-pair>.pl727-treasures,body .sp-lily-page .pl821-feature-pair>.pl816-favorites{min-width:0!important;width:100%!important;box-sizing:border-box!important;margin:0!important}
body .sp-lily-page .pl821-feature-pair>.pl727-treasures{padding:0!important;border-top:0!important;border-bottom:0!important}
body .sp-lily-page .pl821-feature-pair>.pl816-favorites{padding-top:0!important;border-top:0!important}
body .sp-lily-page .pl821-feature-pair #pl816-favorites-preview{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
/* Treasure images must not be clipped by inherited card/image constraints. */
body .sp-lily-page .pl821-feature-pair .pl816-treasure-scroller{min-width:0!important;overflow:visible!important;align-items:center!important}
body .sp-lily-page .pl821-feature-pair #pl727-treasures-preview{min-width:0!important;overflow-x:auto!important;overflow-y:visible!important;align-items:start!important;padding-bottom:5px!important}
body .sp-lily-page .pl821-feature-pair #pl727-treasures-preview .sp-lily-stamp-card{height:auto!important;max-height:none!important;overflow:visible!important}
body .sp-lily-page .pl821-feature-pair #pl727-treasures-preview .sp-lily-stamp-art{height:auto!important;max-height:none!important;overflow:visible!important;display:flex!important;align-items:center!important;justify-content:center!important}
body .sp-lily-page .pl821-feature-pair #pl727-treasures-preview .sp-lily-stamp-art img,body .sp-lily-page .pl821-feature-pair #pl727-treasures-preview .sp-lily-stamp-card img{max-width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;object-position:center!important}
/* Compact headings, rules and section gaps without changing typography or artwork. */
body .sp-lily-page .pl816-overview .pl72-overview-right{gap:7px!important}
body .sp-lily-page .pl816-overview .pl72-section-head{margin:0 0 5px!important;padding:0!important}
body .sp-lily-page .pl816-overview .pl72-section-head h2{margin:0!important;padding:0!important}
body .sp-lily-page .pl816-overview .pl72-live-preview{margin-top:0!important}
body .sp-lily-page .pl816-overview .pl816-top-pair{gap:10px!important;padding:0 0 8px!important;margin:0!important}
body .sp-lily-page .pl816-overview .pl821-feature-pair{padding:0 0 8px!important;border-bottom:1px solid #e5d4df!important}
body .sp-lily-page .pl816-overview .pl72-overview-right>.pl72-paper{margin-top:0!important}
/* Rarity icons: 30% larger than the current 8.20 rendered sizes. */
body .sp-lily-page #pl816-favorites-preview .pl817-favorite-rarity{width:26px!important;height:26px!important;max-width:none!important;min-width:26px!important;object-fit:contain!important}
body .sp-lily-page #pl816-favorites-preview .pl815-rarity-icon,body .sp-lily-page #pl72-ducks-preview .pl815-rarity-icon{width:1.755em!important;height:1.755em!important;min-width:1.755em!important;max-width:none!important;object-fit:contain!important;vertical-align:middle!important}
@media(max-width:850px){body .sp-lily-page .pl72-overview-right .pl821-feature-pair{grid-template-columns:1fr!important}}
@media(max-width:600px){body .sp-lily-page .pl816-profile .pl819-header-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* 8.22: larger approved rarity artwork and collection labels, Lily Pad only. */
body .sp-lily-page #pl816-favorites-preview .pl817-favorite-rarity{width:36.4px!important;height:36.4px!important;min-width:36.4px!important}
body .sp-lily-page #pl816-favorites-preview .pl815-rarity-icon,body .sp-lily-page #pl72-ducks-preview .pl815-rarity-icon{width:2.457em!important;height:2.457em!important;min-width:2.457em!important}
body .sp-lily-page #pl816-favorites-preview .pl816-favorite-card small,body .sp-lily-page #pl72-ducks-preview .pl72-duck-card small{font-size:1.2em!important;line-height:1.5!important;display:flex;align-items:center;justify-content:center;gap:3px}

body .sp-lily-page #pl72-ducks-preview .sp-lily-duck-card .pl722-card-date{font-size:14.4px!important;line-height:1.5!important;align-items:center!important}
body .sp-lily-page #pl816-favorites-preview .pl816-favorite-card small{font-size:14.4px!important}
