/* V64 layered bed + whole growth pages. Source native alpha is retained. */
#game[data-route="night"] .world-scene .room.layered{background-image:url('assets/night-room-v64.webp')}
#game[data-route="night"] .night48-list{left:55px;right:55px;gap:1px;height:205px;padding:0}
#game[data-route="night"] .night48-row{position:relative;isolation:isolate;flex-basis:auto;min-height:40px;padding:3px 15px 3px 12px;background:none;gap:6px;font-size:17px;line-height:1.25}
#game[data-route="night"] .night48-row::before{content:'';position:absolute;left:50%;top:50%;width:252px;height:86.353px;transform:translate(-50%,-50%);background:url('assets/night-row-v64.webp') center/contain no-repeat;z-index:-1;pointer-events:none}
#game[data-route="night"] .night48-row>strong{font-size:21px;min-width:30px}
#game[data-route="night"] .night48-row-icon{width:27px;height:27px;flex-basis:27px}
#game[data-route="night"] .night48-list.compact .night48-row{min-height:40px;flex-basis:auto;font-size:15px;gap:5px}
#game[data-route="night"] .night48-row.night48-loss{min-height:62px;padding:5px 9px 5px 34px;background:url('assets/night-warning-v48.webp') center/100% 100% no-repeat;font-size:13px;line-height:1.3}
#game[data-route="night"] .night48-loss::before{display:none}
#game[data-route="night"] .night48-loss>small{font-size:12px}
#game[data-route="night"] .night48-icepack.semantic-icon{left:173px;top:170px;width:44px;height:35px}
#game[data-route="grow"]:has(.grow49-panel.clever) .world-scene .room.layered{background-image:url('assets/clever-growth-room-v64.webp')}
#game[data-route="grow"] .pet.grow-pet{left:70px;top:186.666667px;width:250px;height:250px}
#game[data-route="grow"]:has(.grow49-panel.clever) .pet.grow-pet{left:77.5px;top:220.666667px;width:235px;height:235px}
#game[data-route="grow"]:has(.grow49-panel.clever) .grow-hearts{top:218px}
#game[data-route="grow"] .grow49-panel{background:none;height:214px}
.grow64-ability-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
#game[data-route="grow"] .grow49-heart-note{top:214px;bottom:auto;font-size:11px;height:16px;line-height:16px}
#game[data-route="night"] .pet.napping[data-atlas="assets/baby-night-v64.webp"]{left:13.789226px;top:104.601283px;width:362.421548px;height:363.577597px}
#game[data-route="night"] .pet.napping[data-atlas="assets/small_power-night-v64.webp"]{left:8.343284px;top:90.841615px;width:373.313433px;height:378.061457px}
#game[data-route="night"] .pet.napping[data-atlas="assets/small_clever-night-v64.webp"]{left:-13.383481px;top:31.338643px;width:416.766962px;height:440.696165px}
#game[data-route="night"] .pet.napping[data-atlas="assets/young_clever-night-v64.webp"]{left:-22.466334px;top:38.095162px;width:434.932668px;height:433.584040px}

/* C2: keep loss + recovery text together in the wider alert frame. */
#game[data-route="night"] .night48-list:has(.night48-loss){left:28px;right:28px}
#game[data-route="night"] .night48-list:has(.night48-loss) .night48-row:not(.night48-loss){padding-left:40px;padding-right:42px}
#game[data-route="night"] .night48-list.compact .night48-row.night48-loss{font-size:13px;line-height:1.3;min-height:62px;padding-left:40px;padding-right:12px}

/* C3: restore mother08 independent halo, and seat the feet on the new stump. */
#game[data-route="grow"]:has(.grow49-panel.clever) .pet.grow-pet{left:65px;top:220px;width:260px;height:260px}
#game[data-route="grow"] .grow64-halo{position:absolute;left:10px;top:160px;width:370px;height:370px;object-fit:contain;z-index:1;pointer-events:none}

/* C4: real mother-quality heart and alert surfaces, existing state/timing retained. */
#game[data-route="grow"] .grow-hearts img[src*="growth-heart-full-v64"]{width:49.4px;height:41.167px;max-width:none;object-fit:contain;flex-shrink:0}
#game[data-route="night"] .night48-row.night48-loss{background:none;isolation:isolate}
#game[data-route="night"] .night48-row.night48-loss::before{display:block;content:'';position:absolute;left:50%;top:50%;width:330px;height:117.803px;transform:translate(-50%,-50%);background:url('assets/night-warning-v64.webp') center/contain no-repeat;z-index:-1;pointer-events:none}
#game[data-route="night"] .night48-list.compact .night48-row.night48-loss{padding-left:62px;padding-right:12px}

/* C5: fit the generated heart to the mother; keep alert outside scroll-padding geometry. */
#game[data-route="grow"] .grow-hearts img[src*="growth-heart-full-v64"]{width:58px;height:48.333px}
#game[data-route="night"] .night48-panel.night64-has-loss .night48-list{left:55px;right:55px;height:135px}
#game[data-route="night"] .night48-panel.night64-has-loss .night48-row.night48-loss{position:absolute;left:28px;right:28px;top:200px;min-height:62px;padding:5px 12px 5px 54px;font-size:13px;line-height:1.3;z-index:6}

/* C6: multiple simultaneous losses remain distinct and scrollable, never overlap. */
#game[data-route="night"] .night64-alerts{position:absolute;left:28px;right:28px;top:200px;height:62px;display:flex;flex-direction:column;gap:3px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;z-index:6}
#game[data-route="night"] .night48-panel.night64-has-loss .night64-alerts>.night48-row.night48-loss{position:relative;left:auto;right:auto;top:auto;flex:0 0 62px;min-height:62px;padding:5px 12px 5px 54px}

/* C7: decorative native alpha never participates in text-scroll geometry. */
#game[data-route="night"] .night64-alert-frame{position:absolute;left:28px;right:28px;top:200px;height:62px;z-index:6;isolation:isolate}
#game[data-route="night"] .night64-alert-frame::before{content:'';position:absolute;left:50%;top:50%;width:330px;height:117.803px;transform:translate(-50%,-50%);background:url('assets/night-warning-v64.webp') center/contain no-repeat;z-index:-1;pointer-events:none}
#game[data-route="night"] .night64-alert-frame>.night64-alerts{position:relative;left:0;right:0;top:0;width:100%;height:62px;z-index:auto}
#game[data-route="night"] .night64-alerts>.night48-row.night48-loss::before{display:none}
