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

body {
  background: #0a0a1a;
  overflow-x: hidden;
}

/* Ticker animation */
@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.ticker-animate {
  animation: ticker 30s linear infinite;
}

/* Pulse glow for generate button */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 110, 0.4), 0 0 40px rgba(255, 102, 0, 0.2); }
  50% { box-shadow: 0 0 30px rgba(255, 0, 110, 0.7), 0 0 60px rgba(255, 102, 0, 0.4); }
}

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

/* Float animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

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

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

.spin-anim {
  animation: spin 1s linear infinite;
}

/* Shake animation */
@keyframes shake {
  0%, 100% { transform: translate(0); }
  10% { transform: translate(-8px, -4px); }
  20% { transform: translate(8px, 4px); }
  30% { transform: translate(-6px, 2px); }
  40% { transform: translate(6px, -2px); }
  50% { transform: translate(-4px, 4px); }
  60% { transform: translate(4px, -4px); }
  70% { transform: translate(-2px, 2px); }
  80% { transform: translate(2px, -2px); }
  90% { transform: translate(-1px, 1px); }
}

.shake-anim {
  animation: shake 0.6s ease-in-out;
}

/* Neon border glow */
.neon-border {
  border: 1px solid rgba(0, 240, 255, 0.2);
  transition: all 0.3s ease;
}

.neon-border:hover {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15), inset 0 0 15px rgba(0, 240, 255, 0.05);
}

/* Glassmorphism */
.glass {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Meme text styling */
.meme-text {
  font-family: 'Anton', Impact, sans-serif;
  color: white;
  text-transform: uppercase;
  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;
}

/* Confetti */
@keyframes confettiFall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confettiFall 3s ease-in forwards;
  z-index: 9999;
  pointer-events: none;
}

/* Selected style card */
.style-card-selected {
  border-color: #ff006e !important;
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.4) !important;
}

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

::-webkit-scrollbar-track {
  background: #0a0a1a;
}

::-webkit-scrollbar-thumb {
  background: #1a1a2e;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00f0ff;
}

/* Canvas for clock */
.clock-canvas {
  image-rendering: auto;
}

/* Header tilt */
.header-tilt {
  transform: rotate(-1.5deg);
}

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

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

/* Red glow for timer */
@keyframes redGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 0, 0, 0.7); }
}

.red-glow {
  animation: redGlow 0.5s ease-in-out infinite;
}