/**
 * TypeFlow Base Stylesheet
 * Standard utility tokens and cursor presentation.
 */

.tf-typed {
  display: inline;
  white-space: pre-wrap;
  word-break: break-word;
}

.tf-cursor {
  display: inline-block;
  opacity: 1;
  user-select: none;
  animation: tf-blink 1.06s infinite steps(1);
}

@keyframes tf-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.highlight {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.tf-trail {
  display: inline;
  transition: opacity 0.05s ease-out;
  will-change: opacity;
}

.tf-word-fade {
  display: inline;
  transition-property: opacity;
  transition-timing-function: ease;
}

@media (prefers-reduced-motion: reduce) {
  .tf-word-fade {
    transition-duration: 0.01ms !important;
  }
}

.tf-scramble {
  color: var(--tf-accent, #38bdf8);
  font-weight: 700;
  display: inline-block;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}
