body {
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
}

.manga-font {
  font-family: 'Bangers', cursive;
  letter-spacing: 2px;
}

.noto-font {
  font-family: 'Noto Sans JP', sans-serif;
}

/* Speed lines background */
.speed-lines {
  background-image: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 49.5%,
      rgba(108, 92, 231, 0.03) 49.5%,
      rgba(108, 92, 231, 0.03) 50.5%,
      transparent 50.5%
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 98%,
      rgba(108, 92, 231, 0.02) 98%,
      rgba(108, 92, 231, 0.02) 100%
    );
}

/* Manga burst badge */
.burst-badge {
  background: linear-gradient(135deg, #6C5CE7, #e84393);
  clip-path: polygon(
    50% 0%, 63% 15%, 80% 5%, 75% 25%, 98% 25%, 85% 40%, 100% 50%,
    85% 60%, 98% 75%, 75% 75%, 80% 95%, 63% 85%, 50% 100%,
    37% 85%, 20% 95%, 25% 75%, 2% 75%, 15% 60%, 0% 50%,
    15% 40%, 2% 25%, 25% 25%, 20% 5%, 37% 15%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  font-family: 'Bangers', cursive;
  font-size: 14px;
  color: white;
  text-align: center;
  line-height: 1.1;
}

.manga-border {
  border: 3px solid #fff;
  box-shadow: 4px 4px 0px rgba(108, 92, 231, 0.5), 0 0 30px rgba(108, 92, 231, 0.1);
}

.manga-card {
  background: #16161f;
  border: 2px solid #2d2d44;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.manga-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.3);
  border-color: #6C5CE7;
}

/* Progress bar manga style */
.manga-progress {
  background: linear-gradient(90deg, #6C5CE7, #e84393, #6C5CE7);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-anim {
  animation: float 3s ease-in-out infinite;
}

@keyframes pencil-draw {
  0% { transform: translateX(-100%) rotate(-15deg); }
  50% { transform: translateX(50%) rotate(5deg); }
  100% { transform: translateX(200%) rotate(-15deg); }
}

.pencil-anim {
  animation: pencil-draw 3s ease-in-out infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(108, 92, 231, 0.3); }
  50% { box-shadow: 0 0 40px rgba(108, 92, 231, 0.6), 0 0 60px rgba(232, 67, 147, 0.3); }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0f;
}
::-webkit-scrollbar-thumb {
  background: #6C5CE7;
  border-radius: 4px;
}

/* Speed line decorations */
.corner-burst {
  position: absolute;
  width: 100px;
  height: 100px;
  opacity: 0.05;
}
.corner-burst::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(
    from 0deg,
    #6C5CE7 0deg 10deg,
    transparent 10deg 20deg
  );
}

/* Drag zone styling */
.drag-active {
  border-color: #6C5CE7 !important;
  background: rgba(108, 92, 231, 0.1) !important;
}

/* Timelapse overlay */
.timelapse-overlay {
  background: rgba(5, 5, 10, 0.95);
  backdrop-filter: blur(10px);
}

/* Range slider custom */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #6C5CE7, #e84393);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Comparison slider */
.comparison-container {
  position: relative;
  overflow: hidden;
}
.comparison-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #6C5CE7;
  cursor: ew-resize;
  z-index: 10;
}
.comparison-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: #6C5CE7;
  border-radius: 50%;
  border: 3px solid white;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}