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

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

.tapenote {
  box-sizing: border-box;
  position: relative;
  margin: 0;
  width: clamp(224px, 74vw, 308px);
  padding: 24px 20px 20px;
  border-radius: 8px;
  background: #fbf6ec;
  box-shadow: 0 8px 16px rgba(42, 35, 32, 0.14);
  transform-origin: 50% -12px;
  animation: noteSway 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.tapenote__tape {
  position: absolute;
  top: -10px;
  width: 56px;
  height: 20px;
  background: #d6c9ab;
  opacity: 0.92;
  border-radius: 4px;
}

.tapenote__tape--l {
  left: 16px;
  transform: rotate(-6deg);
}

.tapenote__tape--r {
  right: 16px;
  transform: rotate(5deg);
}

.tapenote__q {
  display: block;
  color: #b97b71;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 8px;
}

.tapenote__body {
  margin: 0 0 16px;
  color: #2a2320;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.45;
  font-family: inherit;
}

.tapenote__by {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tapenote__ava {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2b7d5a;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  font-family: inherit;
}

.tapenote__who {
  color: #5c5048;
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  font-family: inherit;
}

@keyframes noteSway {
  0%, 100% {
    transform: rotate(-1.6deg);
  }
  50% {
    transform: rotate(1.6deg);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .tapenote {
    width: 232px;
    padding: 20px 12px 12px;
  }
  .tapenote__tape {
    width: 40px;
    height: 16px;
    top: -8px;
  }
  .tapenote__q {
    font-size: 16px;
    margin-bottom: 4px;
  }
  .tapenote__body {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .tapenote__ava {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  .tapenote__who {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tapenote {
    animation: none !important;
    transform: none;
  }
}
