.demo-prompt-open {
  overflow: hidden;
}
#demo-prompt {
  position: relative;
  width: min(540px, 92vw);
  max-width: 92vw;
  max-height: 92dvh;
  padding: 39px;
  border: 1px solid #a4e56b85;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 95% 5%, #a4e56b24, transparent 60%),
    linear-gradient(145deg, #1b2815, #0b130b);
  color: #f4fbe9;
  box-shadow:
    0 30px 110px #000c,
    0 0 80px #a4e56b20,
    inset 0 1px 0 #d0ffad30;
  overflow-x: hidden;
  animation: prompt-appear 0.45s ease-out both;
}
#demo-prompt::backdrop {
  background: #020702d9;
  backdrop-filter: blur(8px);
}
.demo-prompt-close {
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 17px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #8cac6260;
  border-radius: 50%;
  background: #182611;
  color: #d9f8bd;
  font-size: 22px;
}
.demo-prompt-close:hover {
  background: #a4e56b;
  color: #13200c;
}
.demo-prompt-art {
  position: relative;
  display: flex;
  align-items: end;
  gap: 10px;
  width: 160px;
  height: 82px;
  margin: 0 0 27px;
  perspective: 600px;
}
.prompt-orbit {
  position: absolute;
  width: 160px;
  height: 160px;
  left: -24px;
  top: -38px;
  border: 1px solid #a4e56b20;
  border-radius: 50%;
  transform: rotateX(55deg) rotateY(-20deg);
  box-shadow:
    0 0 0 17px #a4e56b04,
    0 0 0 34px #a4e56b03;
}
.prompt-candle {
  position: relative;
  width: 17px;
  height: 32px;
  border: 1px solid #d6ffb2;
  border-radius: 3px;
  background: linear-gradient(90deg, #78bd49, #bafa88);
  box-shadow:
    5px 7px 0 #0004,
    0 0 22px #a4e56b20;
  animation: prompt-candle-float 4s ease-in-out infinite;
}
.prompt-candle::after {
  content: "";
  position: absolute;
  width: 1px;
  height: calc(100% + 18px);
  background: #bcf68b;
  left: 50%;
  top: -9px;
  z-index: -1;
}
.prompt-candle:nth-of-type(2) {
  height: 47px;
  animation-delay: -0.5s;
}
.prompt-candle:nth-of-type(3) {
  height: 37px;
  transform: translateY(-12px);
  background: #d5bf8a;
  border-color: #f4dfac;
  animation-delay: -1s;
}
.prompt-candle:nth-of-type(4) {
  height: 58px;
  animation-delay: -1.5s;
}
.prompt-candle:nth-of-type(5) {
  height: 72px;
  animation-delay: -2s;
}
#demo-prompt .eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
}
#demo-prompt h2 {
  font-size: 39px;
  line-height: 1.2;
  margin: 17px 0 19px;
  letter-spacing: -1.8px;
}
#demo-prompt > p {
  font-size: 14px;
  line-height: 1.85;
  color: #cbdcbe;
}
.demo-prompt-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 27px;
}
.demo-prompt-highlights span {
  border: 1px solid #a4e56b35;
  border-radius: 25px;
  padding: 5px 9px;
  font-size: 9px;
  color: #d2e9bf;
  background: #a4e56b08;
}
#demo-prompt-book {
  width: 100%;
  padding: 15px 20px;
  font-size: 14px;
  box-shadow: 0 0 30px #a4e56b20;
}
.demo-prompt-later {
  display: block;
  padding: 12px;
  margin: 5px auto 10px;
  border: 0;
  background: transparent;
  color: #c0d2b0;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.demo-prompt-tagline {
  display: block;
  text-align: center;
  font-size: 7px;
  color: #acc597;
  letter-spacing: 1px;
}
@keyframes prompt-appear {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateX(7deg) translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes prompt-candle-float {
  50% {
    translate: 0 -5px;
    filter: drop-shadow(0 0 8px #a4e56b35);
  }
}
@media (max-width: 600px) {
  #demo-prompt {
    padding: 29px 24px 24px;
    border-radius: 15px;
  }
  #demo-prompt h2 {
    font-size: 33px;
  }
  #demo-prompt > p {
    font-size: 13px;
  }
  .demo-prompt-art {
    height: 72px;
    margin-bottom: 22px;
  }
  .demo-prompt-highlights {
    gap: 6px;
    margin-bottom: 23px;
  }
  .demo-prompt-highlights span {
    font-size: 8px;
  }
  .demo-prompt-tagline {
    font-size: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #demo-prompt,
  .prompt-candle {
    animation: none;
  }
}
