:root {
  --bg: #fff6e9;
  --ink: #2a1e12;
  --muted: #7a6a55;
  --accent: #ff5d73;
  --accent2: #2fb88a;
  --gold: #f5a623;
  --card: #ffffff;
  --shadow: rgba(42, 30, 18, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at top, #fffaf0 0%, var(--bg) 60%, #ffe9c7 100%);
  color: var(--ink);
  min-height: 100vh;
}

#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  position: relative;
  z-index: 1;
}

header {
  text-align: center;
  margin-bottom: 28px;
}

h1 {
  font-size: 2.6rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: var(--ink);
}

.brief {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 12px 30px var(--shadow);
  text-align: center;
}

.formula {
  font-size: 1.2rem;
  line-height: 1.55;
  margin: 0 0 20px;
}

.formula span {
  font-weight: 700;
  color: var(--accent);
}
.formula #relatable { color: var(--gold); }
.formula #outcome { color: var(--accent2); }

.meter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.meter {
  flex: 1;
  height: 16px;
  border-radius: 999px;
  background: #f0e6d6;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent2), var(--gold));
  transition: width 1.1s cubic-bezier(.2,.9,.2,1);
}

.meter-label {
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.95rem;
}

.meter-caption {
  margin: 4px 0 18px;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

.live-count {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.asterisk {
  cursor: help;
  color: var(--accent);
}

.actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--gold));
  color: #fff;
  font-size: 1.05rem;
  padding: 14px 28px;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

footer {
  margin-top: 44px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

footer p { margin: 6px 0; }

footer a {
  color: var(--accent2);
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }

.fineprint {
  font-size: 0.72rem;
  opacity: 0.8;
}

@media (max-width: 480px) {
  h1 { font-size: 2.1rem; }
  .formula { font-size: 1.05rem; }
}
