body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #fffaf9 !important;
  margin: 0;
  padding: 0;
  text-align: center;
  min-height: 100vh;
}

#loading-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-size: 24px;
  font-weight: bold;
  color: #000;
  background-color: #f9f9f9;
}
#loading-egg {
  width: 160px;
  height: auto;
  margin-bottom: 20px;
  animation: swing 1s infinite ease-in-out;
}
@keyframes swing {
  0% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
  100% {
    transform: rotate(-5deg);
  }
}
#result-screen {
  max-width: 720px;
  margin: 0 auto;
  display: none;
  animation: fadeIn 1s ease-in;
}
#result-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  text-align: center;
}
#result-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
  transition: transform 0.2s ease;
  cursor: pointer;
}
#character-name {
  font-size: 28px;
  font-weight: 700;
  margin-top: 20px;
  color: #222;
  font-family: 'Noto Sans KR', 'Georgia', serif;
  letter-spacing: 0.5px;
}

#instruction-text {
  font-size: 16px;
  color: #666;
  margin-top: 10px;
  text-align: center;
}
#result-description {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  max-width: none;
  width: 100%;
  margin: 0;
  box-shadow: none;
  text-align: left;
  line-height: 1.8;
}

#result-description .description-title {
  font-size: 20px;
  font-weight: bold;
  color: #3a3a3a;
  margin: 12px 0 12px 0;
}

.retry-button {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 32px;
  background-color: #729eff;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(142, 184, 255, 0.3);
  transition: background-color 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes appear {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes shake-horizontal {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  50% {
    transform: translateX(10px);
  }
  75% {
    transform: translateX(-10px);
  }
  100% {
    transform: translateX(0);
  }
}
.appear-animation {
  animation: appear 0.6s ease-out forwards;
}
.shake-animation {
  animation: shake-horizontal 1.5s ease-in-out;
}

@keyframes hatch {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-20deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.hatch-animation {
  animation: hatch 1s ease-out forwards;
}

@media (max-width: 480px) {
  #result-description {
    padding: 24px 16px;
    margin: 0 auto; /* 40px → 24px로 줄이기 */
  }
  #result-screen {
    padding: 16px;
  }
}

#last-desc {
  font-size: 0.9rem;
  color: #a9a9a9;
  margin-top: 15px;
}
