* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #11131c;
  color: #e8e6f0;
}

.sky {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 18%, #2a2342 0%, #1a1830 45%, #11121d 100%);
  overflow: hidden;
}

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

.stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #cfc8ee;
  opacity: 0.5;
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.7; }
}

.scene {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  text-align: center;
  padding: 1rem;
  max-width: 90vw;
}

.title {
  font-size: clamp(1.3rem, 3.4vw, 2.2rem);
  font-weight: 600;
  color: #f3eeff;
  letter-spacing: 0.01em;
}

.subtitle {
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  color: #a59ec9;
}

.birb-stage {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: clamp(180px, 34vh, 320px);
}

.birb {
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
  position: relative;
  width: clamp(180px, 30vh, 300px);
  height: clamp(180px, 30vh, 300px);
  animation: bob 3.2s ease-in-out infinite;
  transition: transform 0.15s ease;
}

.birb:active { transform: scale(0.94); }

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

.birb.happy { animation: hop 0.5s ease; }

@keyframes hop {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-26px) scale(1.06, 0.96); }
  70% { transform: translateY(0) scale(0.97, 1.05); }
  100% { transform: translateY(0) scale(1); }
}

.birb-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.birb-shadow {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 52%;
  height: 14px;
  background: rgba(0,0,0,0.35);
  border-radius: 50%;
  filter: blur(3px);
}

.body { fill: #6f7fd6; }
.belly { fill: #b9c2f2; }
.head { fill: #7d8de0; }
.wing { fill: #5a69be; }
.cheek { fill: #f7a6c4; opacity: 0.7; }
.eye { fill: #2a2740; transition: all 0.2s ease; }
.beak { fill: #f6c453; }
.tuft { fill: #5a69be; }

.bubble {
  position: relative;
  background: #232139;
  color: #ece9fb;
  border: 1px solid #3a3658;
  padding: 0.85rem 1.4rem;
  border-radius: 1.1rem;
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  line-height: 1.4;
  max-width: 32rem;
  min-height: 1.4em;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.bubble.pulse { animation: pop 0.35s ease; }

@keyframes pop {
  0% { transform: scale(0.92); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.heart {
  position: absolute;
  font-size: 1.5rem;
  animation: floatUp 1.6s ease-out forwards;
}

@keyframes floatUp {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-120px) scale(1.1); }
}
