:root {
  --blush: #FFE1EE;
  --blush-2: #FFD0E4;
  --pink: #FF6FA5;
  --pink-deep: #FF4E92;
  --pink-soft: #FF9EC4;
  --cream: #FFF7FB;
  --ink: #7A2E52;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Fredoka', sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,158,196,0.35) 0, transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(255,110,165,0.28) 0, transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(255,208,228,0.55) 0, transparent 45%),
    linear-gradient(160deg, #FFF0F7 0%, #FFE1EE 55%, #FFD6E8 100%);
  background-attachment: fixed;
}

/* faint paw pattern overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='%23FF4E92'%3E%3Ccircle cx='45' cy='52' r='9'/%3E%3Ccircle cx='30' cy='34' r='4.5'/%3E%3Ccircle cx='45' cy='30' r='4.5'/%3E%3Ccircle cx='60' cy='34' r='4.5'/%3E%3C/g%3E%3C/svg%3E");
}

.app-wrap {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.mochi-float { display: inline-block; animation: bob 3s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.app-title {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  line-height: 1;
  margin: 0;
  background: linear-gradient(90deg, var(--pink-deep), #FF8AB8, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 3px 0 rgba(255,255,255,0.5);
  letter-spacing: -0.5px;
}

.tagline {
  font-size: 1rem;
  font-weight: 500;
  color: #B85683;
  margin: 8px 0 14px;
}

.streak-badge {
  display: inline-block;
  background: #fff;
  border: 2px solid var(--pink-soft);
  color: var(--pink-deep);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  box-shadow: 0 6px 18px rgba(255,110,165,0.22);
}

/* Chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 14px 16px 6px;
  position: relative;
  z-index: 10;
}
.chip {
  border-radius: 999px;
  padding: 7px 15px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s;
  border: 2px solid var(--pink-soft);
  font-family: 'Fredoka', sans-serif;
}
.chip:hover { transform: translateY(-2px) scale(1.04); }
.chip:active { transform: scale(0.95); }
.chip-off { background: rgba(255,255,255,0.75); color: #B85683; }
.chip-on {
  background: linear-gradient(120deg, var(--pink), var(--pink-deep));
  color: #fff;
  border-color: var(--pink-deep);
  box-shadow: 0 6px 16px rgba(255,78,146,0.35);
}

/* Activity card */
.activity-card {
  position: relative;
  background: linear-gradient(165deg, #ffffff, #FFF3F9);
  border: 3px solid var(--pink-soft);
  border-radius: 32px;
  padding: 30px 26px 24px;
  margin: 12px auto 0;
  box-shadow: 0 18px 40px rgba(255,110,165,0.28);
  overflow: hidden;
  text-align: center;
}
.card-pop { animation: pop .45s cubic-bezier(.2,1.3,.4,1); }
@keyframes pop {
  0% { opacity: 0; transform: translateY(18px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.paw-corner {
  position: absolute;
  top: 12px; right: 14px;
  font-size: 1.4rem;
  opacity: 0.5;
  transform: rotate(18deg);
}
.cat-tag {
  display: inline-block;
  background: var(--blush-2);
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}
.activity-title {
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  color: var(--pink-deep);
  margin: 0 0 10px;
  line-height: 1.15;
}
.activity-desc {
  font-size: 1.02rem;
  font-weight: 400;
  color: #96476E;
  line-height: 1.5;
  margin: 0 auto 16px;
  max-width: 440px;
}
.meta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.meta-pill {
  background: #fff;
  border: 2px solid var(--blush-2);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #B85683;
}
.pun-text {
  margin: 18px 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--pink);
  font-style: italic;
}
.loading-box { padding: 20px 0; }

.mochi-says {
  text-align: center;
  margin: 14px auto 0;
  background: #fff;
  border: 2px dashed var(--pink-soft);
  color: var(--pink-deep);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 20px;
  max-width: 420px;
  animation: pop .4s ease;
}

/* Buttons */
.btn-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
  margin: 20px auto 0;
}
.btn {
  border: none;
  border-radius: 22px;
  padding: 15px 20px;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .2s ease, filter .2s;
}
.btn:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); }
.btn:active:not(:disabled) { transform: scale(0.96); }
.btn:disabled { cursor: default; }
.btn-primary {
  background: linear-gradient(120deg, var(--pink), var(--pink-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(255,78,146,0.4);
}
.btn-primary:disabled { filter: grayscale(0.3) opacity(0.7); }
.btn-secondary {
  background: #fff;
  color: var(--pink-deep);
  border: 3px solid var(--pink-soft);
}
.btn-done {
  background: #FFDCEB;
  color: #C97DA1;
  border: 3px solid #FFC7DE;
}
.btn-fav {
  background: #fff;
  color: #B85683;
  border: 3px solid var(--blush-2);
}
.btn-fav-on {
  background: linear-gradient(120deg, #FFE29A, #FFC94D);
  color: #8a5a00;
  border-color: #FFC94D;
}

/* Favorites */
.fav-toggle {
  display: block;
  width: 100%;
  max-width: 460px;
  margin: 20px auto 0;
  background: rgba(255,255,255,0.7);
  border: 2px solid var(--pink-soft);
  border-radius: 20px;
  padding: 12px;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 1rem;
  color: var(--pink-deep);
  cursor: pointer;
  transition: transform .14s;
}
.fav-toggle:hover { transform: scale(1.01); }
.fav-list {
  max-width: 460px;
  margin: 12px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: pop .35s ease;
}
.empty-favs {
  text-align: center;
  color: #B85683;
  font-weight: 500;
  background: rgba(255,255,255,0.6);
  border-radius: 18px;
  padding: 16px;
}
.fav-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 2px solid var(--blush-2);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 4px 12px rgba(255,110,165,0.15);
}
.fav-emoji { font-size: 1.8rem; }
.fav-title { font-weight: 700; color: var(--pink-deep); font-size: 0.98rem; }
.fav-cat { font-size: 0.78rem; color: #B85683; font-weight: 500; }
.fav-x {
  position: absolute;
  top: 8px; right: 10px;
  background: none;
  border: none;
  color: #E499BC;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 700;
}
.fav-x:hover { color: var(--pink-deep); }

/* Cat fact */
.cat-fact {
  text-align: center;
  max-width: 500px;
  margin: 22px auto 8px;
  padding: 0 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #A85B82;
  font-style: italic;
  position: relative;
  z-index: 10;
}

/* Footer */
.footer {
  margin-top: auto;
  text-align: center;
  padding: 22px 16px 30px;
  color: #B85683;
  font-weight: 500;
}
.footer p { margin: 0 0 8px; }
.remix-link {
  color: var(--pink-deep);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px dotted var(--pink-soft);
}
.remix-link:hover { color: var(--pink); }

/* Confetti */
.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}
.confetti-bit {
  position: absolute;
  top: -40px;
  animation-name: fall;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
}
@keyframes fall {
  0% { transform: translateY(-40px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(110vh) rotate(540deg); opacity: 0.9; }
}

@media (min-width: 520px) {
  .btn-grid { flex-direction: row; flex-wrap: wrap; }
  .btn-primary { flex: 1 1 100%; }
  .btn-secondary, .btn-fav, .btn-done { flex: 1 1 40%; }
}