html, body {
  margin: 0;
  overflow: hidden;
}

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

.testi {
  width: clamp(240px, 82vw, 360px);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(8px, 2.4vw, 12px);
}

.testi__tile {
  border-radius: 16px;
  background: #fff7e6;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  padding: clamp(10px, 3vw, 14px);
  animation: driftIn 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.testi__tile--quote {
  grid-row: 1/3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  animation-delay: 0s;
}

.testi__tile--avatar {
  position: relative;
  animation-delay: -0.6s;
}

.testi__tile--avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2f6df6;
}

.testi__tile--stars {
  display: grid;
  place-items: center;
  color: #0a4fe8;
  letter-spacing: 2px;
  font-size: clamp(11px, 2.8vw, 13px);
  animation-delay: -1.2s;
}

.testi__text {
  margin: 0;
  color: #17141a;
  font-weight: 600;
  font-size: clamp(11px, 2.8vw, 13px);
  line-height: 1.5;
}

.testi__by {
  margin: 0;
  color: #17141a;
  opacity: 0.65;
  font-weight: 500;
  font-size: clamp(9.5px, 2.2vw, 11px);
  line-height: 1.3;
}

@keyframes driftIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .testi__tile {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
