/* /mythimon/daycare.css */

html, body{
  height: 100%;
  margin: 0;
}

body.daycare{
  font-family: system-ui, sans-serif;
  color: #2b1a1a;
  /* soft reddish pink -> white */
  background: linear-gradient(180deg, #ffd2dc 0%, #fff6f8 48%, #ffffff 100%);
}

.wrap{
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
}

.card{
  width: min(940px, 94vw);
  border-radius: 22px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(150,80,95,.18);
  box-shadow: 0 30px 90px rgba(120,40,60,.18);
  overflow: hidden;
  position: relative;

  /* set your centered background art here */
  --bg-url: url("/assets/mythimon/daycare_bg.png"); /* <-- change this */
}

.top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 8px;
}

.title{
  margin: 0;
  font-size: 22px;
  letter-spacing: .2px;
}

.hud{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill{
  font-size: 12px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(150,80,95,.18);
}

.bgArt{
  height: 200px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,160,180,.35) 0%, rgba(255,255,255,0) 70%),
    var(--bg-url);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border-top: 1px solid rgba(150,80,95,.10);
  border-bottom: 1px solid rgba(150,80,95,.10);
}

.panel{
  padding: 14px 18px 18px;
}

.panel h2{
  margin: 0 0 10px 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(60,20,30,.8);
}

.party{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.mon{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(150,80,95,.16);
  background: rgba(255,255,255,.65);
  cursor: pointer;
  user-select: none;
}

.mon.selected{
  outline: 2px solid rgba(255,90,130,.55);
  background: rgba(255,230,238,.8);
}

.mon.disabled{
  opacity: .6;
  cursor: not-allowed;
}

.mon img{
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
  flex: 0 0 auto;
}

.mon .name{
  font-weight: 700;
  font-size: 13px;
  line-height: 1.15;
}

.mon .meta{
  font-size: 12px;
  opacity: .85;
  margin-top: 2px;
}

.hint{
  font-size: 12px;
  opacity: .7;
  margin-top: 8px;
}

.actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.btn{
  font: inherit;
  font-size: 13px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(150,80,95,.20);
  background: rgba(255,255,255,.80);
  cursor: pointer;
}

.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0) scale(.99); }
.btn:disabled{ opacity: .55; cursor: not-allowed; }

.btn.ghost{
  background: rgba(255,255,255,.55);
}

.buy{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
}

.buy .mini{
  grid-column: 1 / -1;
  font-size: 12px;
  opacity: .75;
}

.log{
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(150,80,95,.16);
  font-size: 13px;
  line-height: 1.3;
}

.music{
  width: 100%;
  padding: 0 18px 18px;
  box-sizing: border-box;
}
.eggs{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.egg{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(150,80,95,.16);
  background: rgba(255,255,255,.65);
  cursor: pointer;
  user-select: none;
}

.egg img{
  width: 42px;
  height: 42px;
  image-rendering: pixelated;
  flex: 0 0 auto;
}

.egg .name{
  font-weight: 700;
  font-size: 13px;
  line-height: 1.15;
}

.egg .meta{
  font-size: 12px;
  opacity: .8;
  margin-top: 2px;
}

.egg img{
  display: block;              /* important: gives it a real box */
  transform-origin: center;    /* squish around center */
  will-change: transform;      /* smoother */
}

@keyframes squish {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.10, 0.85); }
  70%  { transform: scale(0.95, 1.07); }
  100% { transform: scale(1); }
}

.egg img.squish{
  animation: squish 180ms ease-out;
}

