@font-face {
  font-family: 'whiteonblack';
  src: url('./assets/White\ On\ Black.ttf') format('woff2'),
       url('./assets/White\ On\ Black.ttf') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
  background: radial-gradient(hsl(198, 100%, 72%),hsl(198, 100%, 30%));
  background-attachment: fixed;
  display: grid;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.title {
  font-size: 80px;
  font-family: whiteonblack;
  color: white;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  margin: 20px 0;
  text-align: center;
}

.character-container {
  position: fixed;
  pointer-events: none;
  z-index: 5;
  transition: left 0.1s linear, bottom 0.1s linear;
}

.character {
  position: relative;
  width: 120px;
  height: 180px;
  transition: transform 0.3s ease;
}

.character.walking {
  animation: bounce 0.6s ease-in-out infinite;
}

.character.running {
  animation: bounce 0.25s ease-in-out infinite;
}

.character.jumping {
  animation: jump 0.8s ease-out;
}

.character-head {
  position: absolute;
  top: 0;
  left: 30px;
  width: 60px;
  height: 50px;
  background: white;
  border: 3px solid black;
  border-radius: 40% 40% 20% 20%;
  animation: headBob 3s ease-in-out infinite;
}

.eye {
  position: absolute;
  width: 8px;
  height: 8px;
  background: black;
  border-radius: 50%;
  top: 15px;
  animation: blink 4s infinite;
}

.eye-left {
  left: 15px;
}

.eye-right {
  right: 15px;
}

.mouth {
  position: absolute;
  bottom: 12px;
  left: 20px;
  width: 20px;
  height: 8px;
  border: 2px solid black;
  border-top: none;
  border-radius: 0 0 15px 15px;
  animation: smile 3s ease-in-out infinite;
}

.character-body {
  position: absolute;
  top: 50px;
  left: 20px;
  width: 80px;
  height: 90px;
  background: #90EE90;
  border: 3px solid black;
  border-radius: 45%;
}

.character-arm {
  position: absolute;
  width: 18px;
  height: 60px;
  background: #B0B0B0;
  border: 3px solid black;
  border-radius: 10px;
  top: 60px;
}

.arm-left {
  left: 5px;
  transform-origin: top center;
  animation: swingArmLeft 0.6s ease-in-out infinite;
}

.arm-right {
  right: 5px;
  transform-origin: top center;
  animation: swingArmRight 0.6s ease-in-out infinite;
}

.character.running .arm-left {
  animation: swingArmLeft 0.25s ease-in-out infinite;
}

.character.running .arm-right {
  animation: swingArmRight 0.25s ease-in-out infinite;
}

.character-leg {
  position: absolute;
  width: 20px;
  height: 50px;
  background: #B0B0B0;
  border: 3px solid black;
  border-radius: 8px;
  top: 130px;
}

.leg-left {
  left: 25px;
  transform-origin: top center;
  animation: walkLegLeft 0.6s ease-in-out infinite;
}

.leg-right {
  right: 25px;
  transform-origin: top center;
  animation: walkLegRight 0.6s ease-in-out infinite;
}

.character.running .leg-left {
  animation: walkLegLeft 0.25s ease-in-out infinite;
}

.character.running .leg-right {
  animation: walkLegRight 0.25s ease-in-out infinite;
}

.character.idle .arm-left,
.character.idle .arm-right {
  animation: idleArm 2s ease-in-out infinite;
}

.character.idle .leg-left,
.character.idle .leg-right {
  animation: none;
}

.character.excited .character-head {
  animation: excitedHead 0.5s ease-in-out infinite;
}

.character.excited .arm-left {
  animation: waveArm 0.6s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes jump {
  0% {
    transform: translateY(0) scale(1, 1);
  }
  30% {
    transform: translateY(-60px) scale(1.1, 0.9);
  }
  50% {
    transform: translateY(-80px) scale(0.95, 1.05);
  }
  70% {
    transform: translateY(-60px) scale(1.05, 0.95);
  }
  100% {
    transform: translateY(0) scale(1, 1);
  }
}

@keyframes headBob {
  0%, 100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

@keyframes blink {
  0%, 48%, 52%, 100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.1);
  }
}

@keyframes smile {
  0%, 100% {
    width: 20px;
    left: 20px;
  }
  50% {
    width: 24px;
    left: 18px;
  }
}

@keyframes swingArmLeft {
  0%, 100% {
    transform: rotate(-25deg);
  }
  50% {
    transform: rotate(25deg);
  }
}

@keyframes swingArmRight {
  0%, 100% {
    transform: rotate(25deg);
  }
  50% {
    transform: rotate(-25deg);
  }
}

@keyframes walkLegLeft {
  0%, 100% {
    transform: rotate(-15deg);
  }
  50% {
    transform: rotate(15deg);
  }
}

@keyframes walkLegRight {
  0%, 100% {
    transform: rotate(15deg);
  }
  50% {
    transform: rotate(-15deg);
  }
}

@keyframes idleArm {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

@keyframes excitedHead {
  0%, 100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(8deg) translateY(-5px);
  }
}

@keyframes waveArm {
  0%, 100% {
    transform: rotate(-120deg);
  }
  50% {
    transform: rotate(-60deg);
  }
}