* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #0a0515;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(107,33,168,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,45,149,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0,240,255,0.06) 0%, transparent 50%);
}

/* Speed lines background */
.speed-lines {
  position: relative;
  overflow: hidden;
}

.speed-lines::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(
    from 0deg,
    transparent 0deg 8deg,
    rgba(255,45,149,0.03) 8deg 9deg,
    transparent 9deg 18deg
  );
  animation: slowRotate 120s linear infinite;
  pointer-events: none;
}

@keyframes slowRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Title sparkle */
.sparkle-text {
  position: relative;
  display: inline-block;
}

.sparkle-text::after {
  content: '✦';
  position: absolute;
  top: -8px;
  right: -20px;
  font-size: 16px;
  color: #ffd700;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}

/* Glowing border animation */
.glow-border {
  position: relative;
  z-index: 1;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(45deg, #ff2d95, #00f0ff, #ffd700, #ff2d95);
  background-size: 300% 300%;
  animation: borderGlow 3s ease-in-out infinite;
  z-index: -1;
  filter: blur(4px);
  opacity: 0.7;
}

@keyframes borderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Forge button pulse */
.forge-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.forge-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
}

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

.forge-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255,45,149,0.5), 0 0 60px rgba(0,240,255,0.3);
}

/* Loading shuriken */
.shuriken {
  width: 48px;
  height: 48px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Glass card */
.glass-card {
  background: rgba(26,10,46,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(107,33,168,0.3);
  transition: border-color 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(255,45,149,0.4);
}

/* Meme text overlay */
.meme-text-top,
.meme-text-bottom {
  text-shadow:
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000,
    0 0 8px rgba(0,0,0,0.8);
  line-height: 1.1;
  word-wrap: break-word;
}

/* Chip/tag styles */
.style-chip {
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.style-chip:hover {
  transform: scale(1.05);
}

.style-chip.active {
  box-shadow: 0 0 12px rgba(255,45,149,0.5);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(10,5,21,0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(107,33,168,0.5);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,45,149,0.5);
}

/* Textarea custom */
textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: #ff2d95 !important;
  box-shadow: 0 0 12px rgba(255,45,149,0.2);
}

/* Gallery thumbnail hover */
.gallery-thumb {
  transition: all 0.25s ease;
}

.gallery-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0,240,255,0.3);
}

/* Fade in animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* Bounce loading dots */
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.bounce-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.bounce-dot:nth-child(1) { animation-delay: -0.32s; }
.bounce-dot:nth-child(2) { animation-delay: -0.16s; }
.bounce-dot:nth-child(3) { animation-delay: 0; }