* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(#0b0f2a, #1a245a);
}

/* Stars */
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  opacity: 0.8;
  animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.2; }
  to { opacity: 1; }
}

.container {
  display: flex;
  height: 100vh;
}

.half {
  width: 50%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 60px;
}

.boy {
  background: rgba(0, 140, 255, 0.08);
}

.girl {
  background: rgba(255, 0, 140, 0.08);
}

/* Bed */
.bed {
  width: 220px;
  height: 90px;
  background: #444;
  border-radius: 12px;
  position: relative;
}

.pillow {
  width: 60px;
  height: 30px;
  background: #ddd;
  border-radius: 8px;
  position: absolute;
  top: 8px;
  left: 10px;
}

.person {
  width: 70px;
  height: 70px;
  background: #ffcc99;
  border-radius: 50%;
  position: absolute;
  top: -35px;
  left: 80px;
  animation: breathing 3s infinite ease-in-out;
}

.girl .person {
  animation-delay: 1.5s;
}

@keyframes breathing {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.05) translateY(-2px); }
}

.label {
  position: absolute;
  bottom: 10px;
  color: white;
  font-size: 18px;
  letter-spacing: 1px;
}

/* Chat bubbles */
.chat {
  position: absolute;
  bottom: 160px;
  max-width: 200px;
  padding: 12px 16px;
  border-radius: 18px;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.chat.show {
  opacity: 1;
  transform: translateY(0);
}

.boy .chat {
  background: #008cff;
  left: 40px;
}

.girl .chat {
  background: #ff2f92;
  right: 40px;
}