  * {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #ff9a9e, #fad0c4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    transition: background 0.8s ease;
  }

  /* ✅ THEMES */
  body.morning {
    background: linear-gradient(180deg, #ffecd2, #fcb69f);
  }

  body.afternoon {
    background: linear-gradient(180deg, #fbd3e9, #bb377d);
  }

  body.evening {
    background: linear-gradient(180deg, #ff758c, #ff7eb3);
  }

  body.night {
    background: linear-gradient(180deg, #1f1c2c, #928dab);
  }

  .card {
    width: 100%;
    max-width: 420px;
    margin: 1rem;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  }

  h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
  }

  /* ✅ GREETING */
  .greeting {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 0.4rem;
  }

  .subtitle {
    margin-top: 0.5rem;
    font-size: 1rem;
    opacity: 0.95;
  }

  .location {
    margin-top: 1.2rem;
    font-size: 0.95rem;
    opacity: 0.9;
  }

  .countdown {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
  }

  .unit {
    background: rgba(255,255,255,0.22);
    border-radius: 14px;
    padding: 0.8rem 0.4rem;
  }

  .number {
    font-size: 1.8rem;
    font-weight: 700;
  }

  .label {
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
  }

  /* Progress Bar */
  .progress {
    margin-top: 1.5rem;
    height: 6px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    overflow: hidden;
  }

  .progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6a88, #ff99ac);
    transition: width 0.5s ease;
  }

  .final-message {
    display: none;
    margin-top: 2rem;
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 600;
  }

  .heart {
    display: inline-block;
    animation: pulse 1.4s infinite;
  }

  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
  }

  @media (max-width: 400px) {
    h1 { font-size: 2rem; }
    .number { font-size: 1.6rem; }
  }

  #fireworks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

/* 🐱 Cat styling */
#catContainer {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 1000;
}

#cat {
  width: 120px;
  cursor: pointer;
  transition: transform 0.2s ease;
  animation: floatCat 3s ease-in-out infinite;
}

#cat:hover {
  transform: scale(1.1);
}

/* 💤 floating sleeping animation */
@keyframes floatCat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

/* 😺 tap animation */
.cat-active {
  transform: scale(1.2) rotate(-5deg) !important;
}

/* 🔊 Sound button */
.sound-btn {
  position: fixed;
  bottom: 15px;
  left: 15px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  border: none;
  padding: 10px 14px;
  border-radius: 14px;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sound-btn:hover {
  background: rgba(255,255,255,0.4);
}
