/* The Day-Care window, the Egg's party card and the hatching scene (Work-ID 20261030-breeding-c8db).
   AGENTS.md "Absolute UI hover geometry": every button keeps its box in idle / hover / focus / pressed; hover and focus repaint colour and an inset ring only; nothing here transitions a size.
   The Egg shakes with a transform on its PICTURE (never on a control), and the animation stops for prefers-reduced-motion. */
#modal[data-view="daycare"],#modal[data-view="hatch"]{width:min(46rem,94vw)}
.daycare-lead{margin:0 0 .6rem}
.daycare-section{margin:.4rem 0 .9rem}
.daycare-section h3{margin:0 0 .45rem;font-size:1rem;letter-spacing:.04em}
.daycare-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.daycare-mon,.daycare-empty{box-sizing:border-box;display:flex;align-items:center;gap:10px;min-height:76px;padding:8px 10px;border:1px solid rgba(255,255,255,.18);background:rgba(10,16,32,.72)}
.daycare-empty{justify-content:center;border-style:dashed;color:rgba(255,255,255,.55)}
.daycare-sprite{flex:0 0 56px;width:56px;height:56px;object-fit:contain;image-rendering:pixelated}
.daycare-info{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;gap:2px}
.daycare-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.daycare-level{font-size:.82rem;opacity:.85}
.daycare-mon button{box-sizing:border-box;flex:0 0 auto;width:148px;height:38px;min-width:0;min-height:0;padding:0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.daycare-pair{margin:.5rem 0 0;padding:6px 10px;border-left:3px solid #6bbf8a;background:rgba(107,191,138,.12)}
.daycare-pair.pair-0{border-left-color:#c9433c;background:rgba(201,67,60,.12)}
.daycare-pair.pair-1{border-left-color:#d8a34a;background:rgba(216,163,74,.12)}
.daycare-egg{box-sizing:border-box;display:flex;align-items:center;gap:10px;margin-top:.6rem;padding:8px 10px;border:1px solid #6bbf8a;background:rgba(107,191,138,.14)}
.daycare-egg span{flex:1 1 auto}
.daycare-egg button{box-sizing:border-box;flex:0 0 auto;width:148px;height:38px;min-width:0;min-height:0;padding:0 8px}
.egg-icon{width:36px;height:45px;object-fit:contain;image-rendering:pixelated}
.daycare-egg .egg-icon{width:28px;height:35px}
.party-card.party-egg .party-icon{width:40px;height:50px;object-fit:contain}
.party-card.party-egg .party-meta span{white-space:normal;font-size:.72rem;line-height:1.15}
.hatch-scene{display:flex;flex-direction:column;align-items:center;gap:12px;padding:6px 0 4px}
.hatch-stage{display:grid;place-items:center;width:100%;height:210px;overflow:hidden}
.hatch-egg{width:96px;height:120px;image-rendering:pixelated;transform-origin:50% 90%;animation:egg-shake 1s ease-in-out infinite}
.hatch-egg.cracking{animation-duration:.22s}
.hatch-baby{width:168px;height:168px;object-fit:contain;image-rendering:pixelated}
.hatch-baby.born{animation:egg-born .7s ease-out both}
.hatch-line{min-height:1.5em;margin:0;font-size:1.1rem;text-align:center}
.hatch-close{box-sizing:border-box;width:180px;height:42px}
@keyframes egg-shake{0%,100%{transform:rotate(0)}25%{transform:rotate(-7deg)}75%{transform:rotate(7deg)}}
@keyframes egg-born{0%{transform:scale(.3);filter:brightness(4)}60%{transform:scale(1.1);filter:brightness(1.6)}100%{transform:scale(1);filter:none}}
@media (prefers-reduced-motion:reduce){.hatch-egg,.hatch-baby.born{animation:none}}
@media screen and (max-width:900px){.daycare-slots{grid-template-columns:1fr}.daycare-mon button,.daycare-egg button{width:120px}.hatch-stage{height:170px}.hatch-baby{width:132px;height:132px}}
body.mobile-web .daycare-slots{grid-template-columns:1fr}
body.mobile-web .daycare-mon button,body.mobile-web .daycare-egg button{width:120px}
body.mobile-web .hatch-stage{height:170px}
body.mobile-web .hatch-baby{width:132px;height:132px}
