.hfg {
  --hfg-accent: #22AAA1;
  --hfg-accent-dark: #1a8a83;
  --hfg-text: #2b2b2b;
  --hfg-muted: #6b6b6b;
  --hfg-bg: #ffffff;
  --hfg-soft: #f2faf9;
  max-width: 720px;
  margin: 0 auto;
  font-family: 'Roboto', sans-serif;
  color: var(--hfg-text);
  line-height: 1.6;
}

.hfg [hidden] { display: none !important; }

.hfg-label,
.hfg-result-title {
  display: block;
  font-family: 'Yanone Kaffeesatz', sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--hfg-text);
}

.hfg-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  font: inherit;
  font-size: 17px;
  border: 2px solid #d9e6e5;
  border-radius: 10px;
  background: var(--hfg-bg);
  resize: vertical;
  transition: border-color .2s;
}
.hfg-textarea:focus { outline: none; border-color: var(--hfg-accent); }

.hfg-meta { text-align: right; font-size: 13px; color: var(--hfg-muted); margin: 4px 0 16px; }

.hfg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.hfg-button,
.hfg-again {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Yanone Kaffeesatz', sans-serif;
  font-size: 24px;
  letter-spacing: .5px;
  color: #fff;
  background: var(--hfg-accent);
  border: 0;
  border-radius: 40px;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.hfg-button:hover,
.hfg-again:hover { background: var(--hfg-accent-dark); }
.hfg-button:active { transform: scale(.98); }
.hfg-button:disabled { opacity: .6; cursor: wait; }

.hfg-privacy { font-size: 13px; color: var(--hfg-muted); margin-top: 16px; }

.hfg-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  font-style: italic;
  color: var(--hfg-muted);
}
.hfg-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #d9e6e5;
  border-top-color: var(--hfg-accent);
  border-radius: 50%;
  animation: hfg-spin 1s linear infinite;
}
@keyframes hfg-spin { to { transform: rotate(360deg); } }

.hfg-error {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff4f2;
  color: #a33a2a;
}

.hfg-result {
  padding: 32px;
  border-radius: 14px;
  background: var(--hfg-soft);
  border-left: 5px solid var(--hfg-accent);
}
.hfg-thought p { font-size: 18px; margin: 0 0 14px; }
.hfg-signature {
  font-family: 'Yanone Kaffeesatz', sans-serif;
  font-size: 22px;
  color: var(--hfg-accent-dark);
  text-align: right;
  margin: 0 0 24px;
}

.hfg-crisis {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 10px;
  background: #fff;
  border: 2px solid #e0795f;
}
.hfg-crisis a { color: #b84a30; font-weight: 700; }

.hfg-sources-title { font-weight: 700; margin: 0 0 8px; }
.hfg-sources details {
  margin-bottom: 8px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
}
.hfg-sources summary { cursor: pointer; color: var(--hfg-accent-dark); font-weight: 500; }
.hfg-sources details p { margin: 10px 0 0; font-size: 15px; }

.hfg-cta { margin: 24px 0 8px; font-size: 17px; }
.hfg-cta a { color: var(--hfg-accent-dark); font-weight: 700; }

.hfg-again { margin-top: 16px; font-size: 20px; padding: 10px 26px; }

@media (max-width: 600px) {
  .hfg-label, .hfg-result-title { font-size: 26px; }
  .hfg-result { padding: 20px 16px; }
  .hfg-thought p { font-size: 17px; }
}