:root {
  --bg: #0e0e10;
  --surface: #17171b;
  --border: #26262d;
  --text: #f4f4f5;
  --muted: #9a9aa3;
  --red: #e0103f;
  --yellow: #fdb912;
  --green: #22c55e;
  --accent: var(--red);
}

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

body {
  background: radial-gradient(ellipse at top, #1d0a10 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.healthy {
  --accent: var(--green);
  background: radial-gradient(ellipse at top, #0a1d10 0%, var(--bg) 60%) fixed, var(--bg);
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 16px 40px;
  text-align: center;
}

.question {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 14px;
}

.answer {
  font-size: clamp(36px, 13vw, 100px);
  white-space: nowrap;
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.04em;
  margin: 12px 0 32px;
  color: var(--accent);
  text-wrap: balance;
}

.photo {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -30px rgba(224, 16, 63, .45);
  aspect-ratio: 3 / 2;
  background: var(--surface);
}
body.healthy .photo { box-shadow: 0 30px 80px -30px rgba(34, 197, 94, .45); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.caption { margin-top: 8px; color: var(--muted); font-size: 12px; opacity: .7; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card .label { color: var(--muted); font-size: 13px; }
.card strong { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.card .sub { color: var(--muted); font-size: 12px; }

.summary {
  margin: 28px auto 0;
  max-width: 560px;
  color: #d4d4d8;
  font-size: 17px;
}

.share {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: 600 15px Inter, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.share-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }
#share-whatsapp svg { fill: #25d366; }
#share-instagram svg { fill: #e4405f; }
.share-toast { width: 100%; color: var(--muted); font-size: 13px; }

.history { margin-top: 48px; text-align: left; }
.history h2 { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.history ul { list-style: none; padding: 0; display: grid; gap: 14px; }
.history li {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 14px;
}
.history .season { font-weight: 800; font-size: 17px; }
.history .season small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.history .bar { height: 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.history .bar span { display: block; height: 100%; background: var(--red); border-radius: 999px; }
.history .value { font-size: 17px; font-weight: 800; text-align: right; white-space: nowrap; }
.history .value small { font-weight: 400; color: var(--muted); font-size: 14px; }
.history-total { margin-top: 14px; color: var(--muted); font-size: 14px; }
.history-total strong { color: var(--text); }

.news { margin-top: 48px; text-align: left; }
.news h2 { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.news ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.news a {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s;
}
.news a:hover { border-color: var(--accent); }
.news .meta { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

footer { margin-top: 48px; color: var(--muted); font-size: 13px; }
footer .fine { margin-top: 6px; font-size: 12px; opacity: .7; }

@media (max-width: 560px) {
  .wrap { padding-top: 36px; }
  .cards { grid-template-columns: 1fr; }
  .card { flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; text-align: left; }
  .card .sub { width: 100%; }
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  font-size: 14px;
  color: #d4d4d8;
  z-index: 10;
}
.cookie-banner[hidden] { display: none; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: 600 14px Inter, system-ui, sans-serif;
  cursor: pointer;
}
.cookie-btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }

@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-actions .cookie-btn { flex: 1; }
}
