:root {
  --bg-0: #0b0720;
  --bg-1: #1a0f3a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(236,72,153,.22), transparent 42%),
    radial-gradient(circle at 85% 20%, rgba(56,189,248,.18), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(251,146,60,.15), transparent 50%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1));
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.title-font { font-family: 'Bricolage Grotesque', sans-serif; }
.mono-font { font-family: 'JetBrains Mono', monospace; }

.glow-text {
  background: linear-gradient(90deg, #f0abfc, #fb923c, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(236,72,153,.35));
}

.glass {
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

/* shimmer loading placeholder */
.shimmer {
  background: linear-gradient(110deg, rgba(139,92,246,.18) 25%, rgba(236,72,153,.30) 50%, rgba(56,189,248,.18) 75%);
  background-size: 220% 100%;
  animation: shimmerMove 1.6s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,.08);
}
@keyframes shimmerMove {
  0% { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}

.fade-in { animation: fadeIn .5s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.reveal { animation: reveal .6s ease both; }
@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.result-img { animation: fadeIn .5s ease both; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

::selection { background: rgba(236,72,153,.4); }

textarea::-webkit-scrollbar { width: 8px; }
textarea::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 8px; }