:root {
  --deep-purple: #1a0a2e;
  --royal-purple: #3d1a78;
  --gold: #d4a017;
  --bright-gold: #f5c518;
  --parchment: #f5e6c8;
  --parchment-dark: #e8d5a8;
  --cream: #faf3e0;
  --wine: #722f37;
}

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

body {
  font-family: 'Bricolage Grotesque', sans-serif;
  background: var(--deep-purple);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(61, 26, 120, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(114, 47, 55, 0.4) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a017' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

#root { position: relative; z-index: 1; }

.font-cinzel { font-family: 'Cinzel', serif; }
.font-brico { font-family: 'Bricolage Grotesque', sans-serif; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(3deg); }
  66% { transform: translateY(-4px) rotate(-2deg); }
}

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

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 160, 23, 0.3); }
  50% { box-shadow: 0 0 40px rgba(212, 160, 23, 0.6); }
}

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

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes loading-bar {
  0% { transform: translateX(-100%); width: 60%; }
  50% { transform: translateX(60%); width: 80%; }
  100% { transform: translateX(-100%); width: 60%; }
}

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-shimmer {
  background: linear-gradient(90deg, var(--gold), var(--bright-gold), #fff, var(--bright-gold), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}
.animate-fadeInUp { animation: fadeInUp 0.6s ease-out forwards; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-spin-slow { animation: spin-slow 8s linear infinite; }

.meme-text {
  font-family: Impact, 'Arial Black', sans-serif;
  color: white;
  text-transform: uppercase;
  text-shadow:
    -3px -3px 0 #000,
    3px -3px 0 #000,
    -3px 3px 0 #000,
    3px 3px 0 #000,
    -2px 0 0 #000,
    2px 0 0 #000,
    0 -2px 0 #000,
    0 2px 0 #000;
  letter-spacing: 1px;
  line-height: 1.1;
  word-wrap: break-word;
}

.ornate-frame {
  border: 4px solid var(--gold);
  box-shadow:
    inset 0 0 0 2px rgba(212, 160, 23, 0.3),
    0 0 0 1px var(--gold),
    0 0 30px rgba(212, 160, 23, 0.15);
  border-radius: 4px;
  position: relative;
}

.ornate-frame::before {
  content: '';
  position: absolute;
  top: -8px; left: -8px; right: -8px; bottom: -8px;
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: 8px;
  pointer-events: none;
}

.input-glow:focus {
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.4), 0 0 20px rgba(212, 160, 23, 0.15);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--bright-gold));
  color: var(--deep-purple);
  font-weight: 800;
  transition: all 0.2s ease;
}

.btn-gold:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(212, 160, 23, 0.4);
}

.btn-gold:active {
  transform: scale(0.98);
}

.gallery-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.parchment-bg {
  background: linear-gradient(135deg, var(--parchment) 0%, var(--parchment-dark) 50%, var(--parchment) 100%);
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

@media (max-width: 640px) {
  .meme-text { font-size: 1.1rem !important; }
}