html,
body {
  margin: 0;
  height: 100%;
  background: radial-gradient(120% 95% at 50% 34%, #131a2c 0%, #0a0e18 46%, #05070d 100%);
  overflow: hidden;
  overscroll-behavior: none;
}

#scene {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  opacity: 0;
  animation: scene-in 1.4s ease-out 0.1s forwards;
}

#scene:active {
  cursor: grabbing;
}

@keyframes scene-in {
  to { opacity: 1; }
}

#bunny-dialog {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 6;
  transform: translate(-50%, calc(-100% - 14px));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
  will-change: left, top;
}

#bunny-dialog.is-visible {
  opacity: 1;
}

.bunny-dialog__box {
  position: relative;
  width: max-content;
  max-width: min(78vw, 340px);
  padding: 9px 16px 11px;
  border: 2px solid #2d2530;
  border-radius: 16px;
  background: #fff6e4;
  color: #3a2733;
  font: 600 15px/1.55 -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.02em;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.55),
    0 0 0 4px rgba(255, 246, 228, 0.08);
  transform-origin: 50% 100%;
}

#bunny-dialog.is-visible .bunny-dialog__box {
  animation: bunny-bubble-pop 0.34s cubic-bezier(0.18, 1.45, 0.4, 1) both;
}

.bunny-dialog__box::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: #fff6e4;
  border-right: 2px solid #2d2530;
  border-bottom: 2px solid #2d2530;
  border-bottom-right-radius: 3px;
  transform: rotate(45deg);
}

.bunny-dialog__tag {
  display: block;
  margin-bottom: 1px;
  color: #d06084;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

#bunny-dialog-text {
  display: block;
}

@keyframes bunny-bubble-pop {
  from { transform: scale(0.72) translateY(6px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
