:root {
  /* Bright & Super Cuter Playful Theme */
  --bg: #fdf2f8; /* Very Light Pinkish-White */
  --panel: #ffffff;
  --panel2: #fff7ed; /* Light Peach */
  --text: #334155; /* Soft Slate */
  --muted: #94a3b8; /* Lighter Slate */
  
  /* Vibrant Candy Colors */
  --good: #4ade80; /* Brighter Green */
  --bad: #fb7185; /* Soft Rose Red */
  --warn: #fbbf24; /* Warm Amber */
  --brand: #60a5fa; /* Sky Blue */
  
  --shadow: 0 12px 30px rgba(244, 114, 182, 0.15); /* Soft pinkish shadow */
  --radius: 24px; /* Even more rounded */
  --gap: 20px;
  
  font-family: "Quicksand", ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #fce7f3 0%, #e0f2fe 100%); /* Pink to Blue soft gradient */
  color: var(--text);
  min-height: 100vh;
  font-weight: 700;
  overflow-x: hidden;
  position: relative;
}

/* --- Animated Clouds & Animals Background --- */
body::before, body::after, .bg-deco {
  position: fixed;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

body::before { content: "☁️"; top: 10%; font-size: 80px; animation: floatCloud 25s linear infinite; }
body::after { content: "☁️"; top: 60%; font-size: 120px; animation: floatCloud 35s linear infinite reverse; }

.bg-deco-1 { content: "🦁"; top: 20%; right: -100px; font-size: 60px; animation: floatAnimal 20s linear infinite; }
.bg-deco-2 { content: "🐼"; top: 75%; right: -100px; font-size: 50px; animation: floatAnimal 28s linear infinite 5s; }
.bg-deco-3 { content: "🦒"; top: 40%; left: -100px; font-size: 70px; animation: floatAnimalReverse 22s linear infinite 2s; }
.bg-deco-4 { content: "🐨"; top: 85%; left: -100px; font-size: 45px; animation: floatAnimalReverse 30s linear infinite 8s; }

@keyframes floatCloud {
  from { transform: translateX(-150px); }
  to { transform: translateX(calc(100vw + 150px)); }
}

@keyframes floatAnimal {
  from { transform: translateX(100px) rotate(0deg); }
  to { transform: translateX(calc(-100vw - 200px)) rotate(-360deg); }
}

@keyframes floatAnimalReverse {
  from { transform: translateX(-100px) rotate(0deg); }
  to { transform: translateX(calc(100vw + 200px)) rotate(360deg); }
}

#app {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* --- Layout --- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  padding: 14px 24px;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.03);
  border: 2px solid #fff;
}

.title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ec4899; /* Pinkish Title */
  text-shadow: 2px 2px 0px #fdf2f8;
}

.pill {
  background: #fff;
  border: 3px solid #fce7f3;
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--text);
  font-size: 15px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
  box-shadow: 0 4px 0px #fce7f3;
}

.panel {
  background: var(--panel);
  border: 4px solid #fce7f3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: floatPanel 4s ease-in-out infinite;
}

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

.grid {
  display: grid;
  gap: var(--gap);
}

.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* --- Buttons (Super Bouncy 3D) --- */

.btn {
  appearance: none;
  border: none;
  border-bottom: 6px solid #e2e8f0; /* Thicker 3D bottom */
  background: #f8fafc;
  color: var(--text);
  padding: 14px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.5px;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(0);
  font-family: inherit;
  font-size: 16px;
  position: relative;
}

.btn:hover:not(:disabled) {
  transform: translateY(-4px);
  filter: brightness(1.05);
}

.btn:active:not(:disabled) {
  transform: translateY(4px);
  border-bottom-width: 0px;
  margin-top: 6px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  border-bottom-width: 6px !important;
  margin-top: 0 !important;
}

.btn.primary {
  background: #f472b6; /* Pink Button */
  color: white;
  border-bottom-color: #db2777;
}

.btn.good {
  background: var(--good);
  color: white;
  border-bottom-color: #22c55e;
}

.btn.bad {
  background: var(--bad);
  color: white;
  border-bottom-color: #e11d48;
}

.btn.ghost {
  background: transparent;
  border: none;
  color: var(--muted);
  box-shadow: none;
}
.btn.ghost:hover {
  background: rgba(244, 114, 182, 0.1);
  color: #ec4899;
}

/* --- Cards (Bubble Style) --- */

.card {
  background: #fff;
  border: 4px solid #f1f5f9;
  border-radius: 24px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
  border-color: #fce7f3;
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(244, 114, 182, 0.1);
}

.muted { color: var(--muted); font-size: 14px; }

.big {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
}

.ipa {
  font-family: "Courier New", monospace;
  font-size: 16px;
  color: #f472b6;
  background: #fdf2f8;
  padding: 4px 10px;
  border-radius: 10px;
  font-weight: 700;
}

.row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.spacer { flex: 1 1 auto; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  border: 2px solid #e2e8f0;
}

/* --- Progress Bar (Candy) --- */

.progress {
  height: 20px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05), 0 2px 0 #f1f5f9;
}

.progress > div {
  height: 100%;
  background: linear-gradient(90deg, #f472b6, #ec4899);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Toast (Floating Bubble) --- */

.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  bottom: 40px;
  background: #ffffff;
  border: 4px solid #fce7f3;
  border-radius: 999px;
  padding: 16px 28px;
  box-shadow: 0 15px 40px rgba(236, 72, 153, 0.2);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  z-index: 1000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  font-size: 18px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Inputs (Soft Focus) --- */

.field {
  display: grid;
  gap: 10px;
}

.field .label {
  font-size: 15px;
  color: #ec4899;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.control {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 3px solid #f1f5f9;
  color: var(--text);
  padding: 16px 20px;
  border-radius: 20px;
  outline: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.2s;
}

.control:focus {
  border-color: #f472b6;
  box-shadow: 0 0 0 6px rgba(244, 114, 182, 0.1);
}

/* --- Avatar (Circular Sticker) --- */

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border: 4px solid #ffffff;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  font-size: 24px;
  background: #f472b6;
}

.avatarGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.avatarPick {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid #f1f5f9;
  cursor: pointer;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatarPick:hover { transform: scale(1.1) rotate(5deg); border-color: #fce7f3; }
.avatarPick.selected {
  border-color: #f472b6;
  background: #fdf2f8;
  transform: scale(1.1);
}

/* --- Sticker Album (Pop Art) --- */

.sticker-slot {
  aspect-ratio: 1;
  background: #fff;
  border: 3px dashed #fce7f3;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticker-slot.unlocked {
  background: #fff;
  border: 4px solid #fbbf24;
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.2);
}

.sticker-icon { font-size: 40px; }

/* --- Combo Pop (Explosion) --- */
.combo-pop {
  font-family: "Quicksand", sans-serif;
  -webkit-text-stroke: 4px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

/* --- Mobile --- */
@media (max-width: 760px) {
  #app { padding: 20px 16px; }
  .title { font-size: 20px; }
  .big { font-size: 26px; }
}
