/* ============================================
   TAKUMI.NEOCITIES.ORG — animations.css
   ============================================ */

/* ── GLITCH TEXT ── */
@keyframes glitch {
  0%, 85%, 100% {
    text-shadow: 4px 0 0 var(--red), -1px 0 0 var(--yellow);
    clip-path: none;
    transform: none;
  }
  86% {
    clip-path: polygon(0 15%, 100% 15%, 100% 35%, 0 35%);
    transform: translateX(3px);
    text-shadow: -4px 0 0 var(--red), 2px 0 0 var(--yellow);
  }
  88% {
    clip-path: polygon(0 55%, 100% 55%, 100% 70%, 0 70%);
    transform: translateX(-2px);
  }
  90% {
    clip-path: polygon(0 5%, 100% 5%, 100% 20%, 0 20%);
    transform: translateX(1px);
  }
  92% { clip-path: none; transform: none; }
}

.glitch { animation: glitch 7s infinite; }

/* ── GLITCH BLOCK (for images/divs) ── */
@keyframes glitch-block {
  0%,90%,100% { transform: none; filter: none; }
  91% { transform: translateX(4px) skewX(1deg); filter: hue-rotate(90deg); }
  92% { transform: translateX(-3px); }
  93% { transform: none; filter: none; }
}
.glitch-block { animation: glitch-block 6s infinite; }

/* ── FADE IN UP ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in    { animation: fadeInUp 0.5s ease forwards; }
.fade-in-d1 { animation: fadeInUp 0.5s 0.1s ease both; }
.fade-in-d2 { animation: fadeInUp 0.5s 0.2s ease both; }
.fade-in-d3 { animation: fadeInUp 0.5s 0.3s ease both; }
.fade-in-d4 { animation: fadeInUp 0.5s 0.4s ease both; }
.fade-in-d5 { animation: fadeInUp 0.5s 0.5s ease both; }
.fade-in-d6 { animation: fadeInUp 0.5s 0.6s ease both; }

/* ── BLINK ── */
@keyframes blink { 50% { opacity: 0; } }
.blink { animation: blink 1.5s step-end infinite; }

/* ── SPIN ── */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 4s linear infinite; }
.spin-slow { animation: spin 12s linear infinite; }

/* ── PULSE ── */
@keyframes pulse-scale {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
.pulse { animation: pulse-scale 3s ease infinite; }

/* ── SCAN LINE SWEEP ── */
@keyframes scan {
  0%   { top: -10%; }
  100% { top: 110%; }
}
.scan-effect {
  position: absolute;
  left: 0; width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(232,25,26,0.4), transparent);
  animation: scan 3s linear infinite;
  pointer-events: none;
}

/* ── PROGRESS (music) ── */
@keyframes progress-anim {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ── VINYL SPIN ── */
@keyframes vinyl-spin { to { transform: rotate(360deg); } }

/* ── RPM BAR BOUNCE ── */
@keyframes rpm-bounce {
  0%,100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.6); }
}

/* ── ENTRY FLASH (page load speedlines) ── */
@keyframes speedflash {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}
#speedlines-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  animation: speedflash 2s ease-out forwards;
}

/* ── HORIZONTAL SCROLL TICKER ── */
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #080808;
  padding: 5px 0;
  margin-bottom: 1.5rem;
}
.ticker-inner {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
  gap: 0;
}
.ticker-item {
  font-family: var(--font-hd);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 2rem;
  white-space: nowrap;
}
.ticker-item span { color: var(--red); }

/* ── CARD HOVER LIFT ── */
.card-hover {
  transition: transform 0.2s, border-color 0.2s;
}
.card-hover:hover {
  transform: translateY(-2px);
  border-color: var(--border2);
}

/* ── ANIME CARD RANK GLOW ── */
@keyframes rank-glow {
  0%,100% { text-shadow: none; }
  50%      { text-shadow: 0 0 20px var(--red); }
}
.rank-glow { animation: rank-glow 3s ease infinite; }
