/* Typewriter cursor */
.typewriter::after {
  content: '|';
  animation: cursor-blink 1s step-end infinite;
  color: var(--primary);
  font-weight: 100;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Sakura canvas */
#sakura-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* Banner Ken Burns animation */
@keyframes banner-ken-burns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.05) translate(-1%, -0.5%); }
}

/* Fade In animation */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fade-in 0.4s ease-out;
}

/* Pulse animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Spin animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--btn-regular-bg) 25%, var(--btn-plain-bg-hover) 50%, var(--btn-regular-bg) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-medium);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Scroll down indicator */
.scroll-down-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  z-index: 3;
  color: white;
  font-size: 0.8125rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  animation: scroll-down-bounce 2s ease-in-out infinite;
}
.scroll-down-indicator svg {
  width: 1.5rem;
  height: 1.5rem;
}
@keyframes scroll-down-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Progress bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--primary);
  z-index: 100;
  width: 0;
  transition: width 0.1s linear;
}

/* Category bar */
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-divider);
  margin-bottom: 1.5rem;
}
.category-bar a {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full, 999px);
  background: var(--btn-regular-bg);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  transition: all var(--duration-fast);
}
.category-bar a:hover, .category-bar a.active {
  background: var(--primary);
  color: white;
}
