* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family: "Nunito", sans-serif;
  color: #435738;
}

.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-image:
    linear-gradient(rgba(255, 250, 237, .12), rgba(255, 250, 237, .25)),
    url("https://raw.githubusercontent.com/disarm34corrupt-tech/gachauang/main/20260529_192341_0000.png");
  background-size: cover;
  background-position: center;
}

.cloud {
  position: absolute;
  z-index: 3;
  width: 230px;
  opacity: .76;
  cursor: pointer;
  animation: cloudMove 30s linear infinite;
}

.cloud-one {
  top: 7%;
  left: -260px;
}

.cloud-two {
  top: 20%;
  left: -320px;
  width: 180px;
  opacity: .58;
  animation-duration: 40s;
  animation-delay: 8s;
}

@keyframes cloudMove {
  to {
    transform: translateX(calc(100vw + 480px));
  }
}

.butterfly {
  position: absolute;
  z-index: 6;
  font-size: 1.7rem;
  cursor: pointer;
  user-select: none;
  filter: drop-shadow(0 4px 5px rgba(70, 90, 60, .18));
  animation: butterflyFly 18s ease-in-out infinite;
}

.butterfly-one {
  left: -8%;
  bottom: 22%;
  animation-duration: 19s;
}

.butterfly-two {
  left: -12%;
  bottom: 42%;
  font-size: 1.35rem;
  animation-duration: 24s;
  animation-delay: 5s;
  opacity: .85;
}

.butterfly-three {
  left: -10%;
  bottom: 12%;
  font-size: 1.15rem;
  animation-duration: 28s;
  animation-delay: 11s;
  opacity: .75;
}

@keyframes butterflyFly {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  20% { transform: translate(25vw, -10vh) rotate(12deg) scale(1.08); }
  40% { transform: translate(48vw, 4vh) rotate(-10deg) scale(.95); }
  60% { transform: translate(68vw, -16vh) rotate(14deg) scale(1.05); }
  80% { transform: translate(90vw, -4vh) rotate(-8deg) scale(1); }
  100% { transform: translate(115vw, -12vh) rotate(10deg) scale(.9); }
}

.share-board {
  position: absolute;
  z-index: 4;
  right: 6%;
  bottom: 16%;
  width: 190px;
  padding: 18px 16px 20px;
  text-align: center;
  color: #5b4228;
  background:
    linear-gradient(90deg, rgba(255,255,255,.12), transparent 25%, transparent 75%, rgba(0,0,0,.08)),
    linear-gradient(180deg, #d9aa70, #b97c43);
  border: 3px solid #80552f;
  border-radius: 14px;
  box-shadow: 0 14px 26px rgba(70, 55, 34, .24);
  transform: rotate(3deg);
}

.share-board::before,
.share-board::after {
  content: "";
  position: absolute;
  bottom: -54px;
  width: 12px;
  height: 56px;
  background: #734624;
  border-radius: 0 0 7px 7px;
  z-index: -1;
}

.share-board::before {
  left: 42px;
}

.share-board::after {
  right: 42px;
}

.board-title {
  margin: 0 0 8px;
  font-family: "DM Serif Display", serif;
  font-size: 1.25rem;
  line-height: 1;
}

.board-text {
  margin: 0;
  font-size: .82rem;
  line-height: 1.35;
  font-weight: 800;
}

.intro,
.loading,
.result {
  position: absolute;
  left: 50%;
  z-index: 5;
  text-align: center;
  transform: translateX(-50%);
}

.intro {
  top: 11%;
  width: min(88%, 520px);
  padding: 28px 24px;
  background: rgba(255, 251, 242, .58);
  border: 1px solid rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(77, 91, 57, .18);
}

.mini {
  margin: 0 0 8px;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  line-height: .95;
  color: #4f6b4a;
}

.subtitle {
  max-width: 410px;
  margin: 18px auto 24px;
  line-height: 1.55;
}

button {
  border: none;
  cursor: pointer;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  color: #fffaf1;
  background: linear-gradient(135deg, #6d8a5d, #c99a5d);
  box-shadow: 0 12px 26px rgba(69, 87, 50, .25);
  transition: .2s ease;
}

button:hover {
  transform: translateY(-3px);
}

.loading {
  top: 36%;
  width: min(84%, 360px);
  padding: 22px;
  background: rgba(255, 251, 242, .78);
  backdrop-filter: blur(8px);
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(77, 91, 57, .18);
}

.tea {
  font-size: 2rem;
  animation: teaWiggle 1s ease-in-out infinite;
}

@keyframes teaWiggle {
  50% {
    transform: rotate(-8deg) scale(1.08);
  }
}

.result {
  top: 5%;
  width: min(92%, 430px);
  animation: rise .7s ease forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate(-50%, 42px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.card-wrap {
  position: relative;
  width: min(88vw, 360px);
  margin: 0 auto 12px;
}

.card-img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 20px 24px rgba(65, 79, 49, .25));
}

.card-text {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 34%;
  bottom: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.emoji {
  font-size: clamp(1.35rem, 5vw, 1.9rem);
  margin-bottom: 7px;
  line-height: 1;
  flex-shrink: 0;
}

.card-text h2 {
  margin: 0;
  width: 100%;
  max-height: 100%;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  color: #46573b;
  white-space: pre-line;
  overflow-wrap: break-word;
  word-break: break-word;
}

.mountain-zone {
  position: absolute;
  z-index: 4;
  left: 37%;
  top: 38%;
  width: 26%;
  height: 24%;
  background: transparent;
  box-shadow: none;
}

.mountain-zone:hover {
  transform: none;
}

.toast {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 8%;
  width: min(88%, 360px);
  transform: translateX(-50%);
  padding: 15px 18px;
  border-radius: 22px;
  background: rgba(255, 251, 242, .92);
  color: #4f6840;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 14px 35px rgba(83, 94, 60, .22);
}

.stone {
  position: absolute;
  z-index: 25;
  left: 50%;
  bottom: 13%;
  width: min(86%, 330px);
  transform: translateX(-50%);
  padding: 16px 18px;
  background: rgba(255, 251, 242, .94);
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(71, 84, 52, .25);
  animation: stonePop .45s ease forwards;
}

.stone-icon {
  font-size: 2rem;
}

.stone p {
  margin: 6px 0 0;
  font-weight: 900;
  color: #4d6140;
}

@keyframes stonePop {
  from {
    opacity: 0;
    transform: translate(-50%, 40px) scale(.85);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
  .intro {
    top: 8%;
    padding: 22px 18px;
  }

  .result {
    top: 7%;
  }

  .card-text {
    left: 17%;
    right: 17%;
    top: 34%;
    bottom: 20%;
  }

  .butterfly {
    font-size: 1.35rem;
  }

  .share-board {
    right: 3%;
    bottom: 11%;
    width: 145px;
    padding: 13px 11px 15px;
    transform: rotate(2deg) scale(.9);
  }

  .board-title {
    font-size: 1rem;
  }

  .board-text {
    font-size: .66rem;
  }

  .share-board::before,
  .share-board::after {
    height: 42px;
    bottom: -40px;
  }
}