@charset "UTF-8";
html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #fff8ef;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.testicrayon {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: clamp(230px, 84vw, 340px);
}

.testicrayon__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: repeating-conic-gradient(#9cb8ce 0deg 60deg, #6dbe6d 60deg 120deg);
  border: 2px solid #fff8ef;
  box-shadow: 0 0 0 2px #33261c;
}

.testicrayon__bubble {
  position: relative;
  flex: 1;
  padding: 16px 16px 12px;
  animation: bubbleSquish 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.testicrayon__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: url(#rough6);
}

.testicrayon__frame-path {
  fill: #ffffff;
  stroke: #33261c;
  stroke-width: 3;
  stroke-linejoin: round;
}

.testicrayon__quote {
  position: relative;
  margin: 0;
  color: #33261c;
  font-weight: 700;
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.4;
}

.testicrayon__stars {
  position: relative;
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.testicrayon__star {
  position: relative;
  display: inline-block;
  color: rgba(51, 38, 28, 0.22);
  font-size: 13px;
  line-height: 1;
}

.testicrayon__star::after {
  content: "★";
  position: absolute;
  inset: 0;
  width: var(--fill);
  overflow: hidden;
  white-space: nowrap;
  color: #d1c5a2;
}

.testicrayon__caption {
  position: relative;
  margin: 4px 0 0;
  color: rgba(51, 38, 28, 0.72);
  font-weight: 500;
  font-size: 10px;
}

@keyframes bubbleSquish {
  0%, 100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.92);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .testicrayon {
    gap: 8px;
  }
  .testicrayon__avatar {
    width: 32px;
    height: 32px;
  }
  .testicrayon__bubble {
    padding: 12px 12px 8px;
  }
  .testicrayon__caption {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .testicrayon__bubble {
    animation: none !important;
    transform: none;
  }
}
