:root {
  --bg: #0b0710;
  --card: rgba(23, 16, 33, 0.72);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #f4eefb;
  --muted: #a596b8;
  --accent: #ff5c7c;
  --accent-2: #ffb347;
  --accent-3: #5ce1ff;
  --good: #4be08a;
  --danger: #ff6b6b;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  /* Slowly drifting orange <-> fuchsia gradient wash */
  background: linear-gradient(120deg, #12060d, #1a0510, #2a0716, #12060d);
  background-size: 300% 300%;
  animation: bgshift 24s ease-in-out infinite;
}

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

/* Floating gradient blobs (orange + fuchsia) */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  z-index: 0;
  animation: float 18s ease-in-out infinite;
  pointer-events: none;
}
.blob-1 { width: 460px; height: 460px; background: #ff7a18; top: -120px; left: -100px; }
.blob-2 { width: 420px; height: 420px; background: #ff1e9c; bottom: -140px; right: -80px; animation-delay: -6s; }
.blob-3 { width: 340px; height: 340px; background: #ff4d6d; top: 40%; left: 55%; animation-delay: -12s; }
.blob-4 { width: 300px; height: 300px; background: #ffab40; top: 60%; left: -60px; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.12); }
  50% { transform: translate(-40px, 50px) scale(0.92); }
  75% { transform: translate(30px, 30px) scale(1.05); }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px 60px;
}

.hero { text-align: center; margin-bottom: 32px; }

.logo {
  font-family: 'Bungee', cursive;
  letter-spacing: 1px;
  font-size: 15px;
  color: var(--accent-2);
  text-shadow: 0 0 18px rgba(255, 179, 71, 0.5);
  margin-bottom: 18px;
}

.title {
  font-family: 'Bungee', cursive;
  font-size: clamp(38px, 8vw, 64px);
  line-height: 1.02;
  margin: 0 0 16px;
  background: linear-gradient(120deg, #ff5c7c, #ffb347, #5ce1ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 30px rgba(255, 92, 124, 0.35));
}

.subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}
.subtitle em { color: var(--text); font-style: normal; font-weight: 700; }

.card {
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.field { display: block; margin-bottom: 22px; }
.label { display: block; font-weight: 700; margin-bottom: 10px; font-size: 15px; }
.muted { color: var(--muted); font-weight: 400; font-size: 13px; }

input[type="text"], textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
}
input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 92, 124, 0.2);
}
::placeholder { color: #6d5f80; }

.moods { display: flex; flex-wrap: wrap; gap: 10px; }
.mood {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 999px;
  transition: transform 0.1s, background 0.15s, border-color 0.15s;
}
.mood:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.09); }
.mood.active {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #1a0f22;
  font-weight: 700;
}

.counter { display: block; text-align: right; color: var(--muted); font-size: 12px; margin-top: 6px; }

.submit {
  width: 100%;
  cursor: pointer;
  border: none;
  border-radius: 14px;
  padding: 16px 20px;
  font-family: 'Bungee', cursive;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: #1a0f22;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  box-shadow: 0 10px 30px rgba(255, 92, 124, 0.35);
  transition: transform 0.1s, box-shadow 0.15s, opacity 0.15s;
}
.submit:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(255, 92, 124, 0.5); }
.submit:active { transform: translateY(0); }
.submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.submit.ghost {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.err { color: var(--danger); font-size: 14px; margin: 12px 0 0; min-height: 18px; text-align: center; }

.success { text-align: center; }
.success .big-emoji { font-size: 60px; animation: pop 0.5s ease; }
.success h2 { font-family: 'Bungee', cursive; margin: 8px 0 10px; }
.success p { color: var(--muted); margin: 0 0 22px; }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }

.foot {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.foot a { color: var(--accent-3); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .dot { margin: 0 10px; opacity: 0.5; }

[hidden] { display: none !important; }
