#tool {
  position: relative;
}

#tool > .absolute.inset-0.z-0.opacity-5,
#tool > main > section:not(#draw):not(#history),
#tool > section[style*="max-width:900px"] {
  display: none !important;
}

#tool > main {
  position: relative;
}

#tool #draw,
#tool #history {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

#tool #draw .container,
#tool #history .container {
  max-width: 960px;
  padding-left: 24px;
  padding-right: 24px;
}

#tool #draw .text-center.mb-16,
#tool #history .text-center.mb-16 {
  margin-bottom: 32px !important;
}

#tool #draw .w-24.h-1,
#tool #history .w-24.h-1 {
  margin-top: 12px !important;
}

#tool #draw-preparation {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#tool #draw-preparation > .mb-8:first-child {
  margin-bottom: 20px !important;
}

#tool #draw-preparation .relative.inline-block > div:first-child {
  width: 192px !important;
  height: 192px !important;
}

#tool #draw-preparation img {
  width: 144px !important;
  height: 144px !important;
}

#tool #draw-preparation textarea {
  max-width: 720px;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
}

#tool #draw-btn {
  width: 100%;
  max-width: 280px;
  padding: 14px 20px;
  border-radius: 16px;
  font-weight: 700;
}

#tool #draw-result .scroll-front > div,
#tool #draw-result .scroll-back > div {
  padding: 24px !important;
  border-radius: 20px;
}

#tool #draw-result .text-center.mt-8 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

#tool #draw-result .text-center.mt-8 button {
  margin: 0 !important;
  min-width: 160px;
}

#tool #history-container {
  display: grid;
  gap: 12px;
}

#tool #no-history {
  padding: 48px 20px !important;
}

#tool #clear-history-btn {
  border-radius: 14px;
}

#faq {
  margin-top: 0 !important;
}

@media (max-width: 991px) {
  #tool #draw,
  #tool #history {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  #tool #draw .container,
  #tool #history .container {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 768px) {
  #tool #draw .container,
  #tool #history .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  #tool #draw-preparation .relative.inline-block > div:first-child {
    width: 160px !important;
    height: 160px !important;
  }

  #tool #draw-preparation img {
    width: 120px !important;
    height: 120px !important;
  }

  #tool #draw-result .scroll-container {
    perspective: none;
  }

  #tool #draw-result .scroll-card,
  #tool #draw-result .scroll-front,
  #tool #draw-result .scroll-back {
    position: static !important;
    transform: none !important;
  }

  #tool #draw-result .scroll-front {
    margin-bottom: 16px;
  }

  #tool #draw-result .scroll-back {
    display: none;
  }

  #tool #draw-result .scroll-card.flipped .scroll-front {
    display: none;
  }

  #tool #draw-result .scroll-card.flipped .scroll-back {
    display: block;
  }

  #tool #draw-result .text-center.mt-8 button {
    width: 100%;
  }
}
