* {
  box-sizing: border-box;
}

:root {
  --bg1: #fff5f7;
  --bg2: #e8f7ff;
  --card: rgba(255, 255, 255, 0.78);
  --text: #4b3f46;
  --soft: #8d7f86;
  --pink: #ffb6c8;
  --green: #bce7c8;
  --yellow: #ffe8a3;
  --blue: #bde7ff;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Pretendard", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  overflow-x: hidden;
}

.app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.card {
  width: min(920px, 100%);
  min-height: 620px;
  border-radius: 34px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 24px 70px rgba(152, 124, 138, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  position: relative;
}

.sky {
  height: 170px;
  background: linear-gradient(#bfeaff, #eaf8ff);
  position: relative;
  overflow: hidden;
}

.sun {
  position: absolute;
  right: 9%;
  top: 32px;
  font-size: 58px;
  animation: float 3.2s ease-in-out infinite;
}

.cloud {
  position: absolute;
  width: 130px;
  height: 45px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  filter: drop-shadow(0 8px 10px rgba(119, 166, 189, 0.14));
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud::before {
  width: 55px;
  height: 55px;
  left: 18px;
  top: -25px;
}

.cloud::after {
  width: 70px;
  height: 70px;
  right: 16px;
  top: -35px;
}

.cloud-1 {
  left: -160px;
  top: 70px;
  animation: drift 25s linear infinite;
}

.cloud-2 {
  left: -280px;
  top: 32px;
  transform: scale(0.72);
  animation: drift 34s linear infinite 8s;
}

.butterfly {
  position: absolute;
  font-size: 24px;
  opacity: 0.8;
  animation: butterfly 7s ease-in-out infinite;
}

.butterfly-1 {
  left: 19%;
  top: 94px;
}

.butterfly-2 {
  right: 25%;
  top: 118px;
  animation-delay: 2s;
}

.garden {
  padding: 34px 32px 26px;
  text-align: center;
}

.tiny-label {
  margin: 0 0 8px;
  color: #d6869b;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.05em;
}

.message {
  margin: 13px auto 20px;
  max-width: 540px;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.7;
}

.plant-area {
  height: 235px;
  display: grid;
  place-items: center;
  position: relative;
  margin: 6px auto 22px;
}

.plant {
  position: absolute;
  top: 18px;
  font-size: 112px;
  z-index: 3;
  transition: transform 0.35s ease;
  animation: breathe 2.8s ease-in-out infinite;
}

.plant.happy {
  transform: translateY(-9px) scale(1.08) rotate(-3deg);
}

.pot {
  position: absolute;
  bottom: 16px;
  font-size: 114px;
  z-index: 2;
}

.cat {
  position: absolute;
  bottom: 18px;
  left: -120px;
  font-size: 52px;
  z-index: 4;
  transition: left 1.7s ease, transform 0.4s ease;
}

.cat.show {
  left: calc(50% + 118px);
}

.cat.jump {
  transform: translateY(-13px) rotate(6deg);
}

.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  font-size: 22px;
  animation: pop 1s ease-out forwards;
}

.status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 auto 20px;
  max-width: 620px;
}

.status div {
  padding: 15px 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.status span {
  display: block;
  color: var(--soft);
  font-size: 13px;
  margin-bottom: 5px;
}

.status strong {
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 800;
  color: #594a51;
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff, #fff0f4);
  box-shadow: 0 10px 24px rgba(156, 112, 130, 0.16);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(156, 112, 130, 0.22);
}

button:active {
  transform: translateY(0) scale(0.98);
}

.reset {
  margin-top: 16px;
  padding: 10px 16px;
  font-size: 13px;
  color: #9b7d89;
  background: transparent;
  box-shadow: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 460px)); }
}

@keyframes butterfly {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(28px, -18px) rotate(12deg); }
  50% { transform: translate(55px, 5px) rotate(-10deg); }
  75% { transform: translate(22px, 18px) rotate(8deg); }
}

@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.03); }
}

@keyframes pop {
  0% { opacity: 0; transform: translateY(8px) scale(0.4); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-48px) scale(1.2); }
}

@media (max-width: 640px) {
  .app {
    padding: 14px;
  }

  .card {
    min-height: auto;
    border-radius: 26px;
  }

  .garden {
    padding: 28px 18px 24px;
  }

  .status {
    grid-template-columns: 1fr;
  }

  .plant {
    font-size: 92px;
  }

  .pot {
    font-size: 94px;
  }

  .cat.show {
    left: calc(50% + 68px);
  }
}
