* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Inter, system-ui, sans-serif;
  background: #231f48;
}

.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.06), transparent 18%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.04), transparent 20%),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.03), transparent 25%),
    #231f48;
}

.star {
  position: absolute;
  width: 18px;
  height: 18px;
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 68% 57%,
    79% 91%, 50% 70%, 21% 91%, 32% 57%,
    2% 35%, 39% 35%
  );
  opacity: 0.95;
}

.character {
  position: absolute;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.character.floaty {
  animation: floaty var(--floatDur, 5s) ease-in-out infinite;
}

.character.floaty .body {
  animation: tilt var(--tiltDur, 6s) ease-in-out infinite;
}

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

@keyframes tilt {
  0%, 100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

.body {
  position: relative;
  border-radius: 42% 58% 51% 49% / 43% 43% 57% 57%;
  box-shadow:
    inset -10px -18px 30px rgba(0,0,0,0.14),
    inset 12px 14px 26px rgba(255,255,255,0.12),
    0 20px 50px rgba(0,0,0,0.24);
}

.face {
  position: absolute;
  inset: 0;
}

.eyes {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.eye {
  position: relative;
  background: #f3f3f3;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    inset 0 -2px 0 rgba(0,0,0,0.08),
    0 2px 4px rgba(0,0,0,0.12);
  transform-origin: center;
}

.pupil {
  position: absolute;
  width: 42%;
  height: 42%;
  left: 29%;
  top: 29%;
  background: #000;
  border-radius: 50%;
}

.eye::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 40, 0.88);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.1s ease;
  border-radius: 50%;
}

.character.blinking .eye::after,
.character.closed .eye::after {
  transform: scaleY(1);
}

.character.closed .eye {
  transform: scaleY(0.08);
}

.mouth {
  position: absolute;
  z-index: 3;
  background: #1b1028;
  border-radius: 999px;
}

.mouth.smile {
  background: transparent;
  border-bottom: 6px solid #1b1028;
  border-radius: 0 0 999px 999px;
}

.mouth.flat {
  height: 6px !important;
}

.shadow {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(0,0,0,0.22);
  filter: blur(10px);
}

.blob-arm,
.antenna {
  position: absolute;
}

.blob-arm {
  border-radius: 999px;
  opacity: 0.95;
}

.antenna {
  width: 8px;
  border-radius: 999px;
}

.antenna-tip {
  position: absolute;
  width: 16px;
  height: 16px;
  left: 50%;
  top: -8px;
  transform: translateX(-50%);
  border-radius: 50%;
}