/* Tar Baby 9000 — Newbeings 1619 Brand Colors
   Dark Brown:   #2f251f
   Medium Brown: #ac8961
   Off White:    #ebe4d5
   Light Brown:  #f7f1ec
*/

#tb9-app {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  color: #2f251f;
}

/* ── Header ── */
.tb9-header { text-align: center; margin-bottom: 1.25rem; }
.tb9-logo   { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: #ac8961; text-transform: uppercase; margin-bottom: 4px; }
.tb9-title  { font-size: 22px; font-weight: 600; color: #2f251f; margin: 0 0 4px; }
.tb9-subtitle { font-size: 12px; color: #ac8961; line-height: 1.6; }

/* ── Stat row ── */
.tb9-stat-row  { display: flex; gap: 8px; margin-bottom: 1rem; }
.tb9-stat-card { flex: 1; background: #ebe4d5; border-radius: 10px; padding: 10px; text-align: center; border: 0.5px solid #2f251f; }
.tb9-stat-num  { font-size: 16px; font-weight: 600; color: #2f251f; }
.tb9-stat-label { font-size: 10px; color: #ac8961; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Progress bar ── */
.tb9-progress-wrap    { margin: 0 0 1rem; }
.tb9-progress-label   { display: flex; justify-content: space-between; font-size: 12px; color: #ac8961; margin-bottom: 5px; }
.tb9-progress-bar-bg  { background: #ebe4d5; border-radius: 99px; height: 10px; overflow: hidden; border: 0.5px solid #2f251f; }
.tb9-progress-bar-fill { height: 10px; border-radius: 99px; background: #ac8961; transition: width 0.9s ease; }

/* ── Milestone ── */
.tb9-milestone {
  background: #ebe4d5;
  border: 0.5px solid #2f251f;
  border-left: 3px solid #2f251f;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 13px;
  color: #2f251f;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ── Card ── */
.tb9-card {
  background: #f7f1ec;
  border: 0.5px solid #2f251f;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

/* ── Challenge view ── */
.tb9-type-label   { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; color: #ac8961; text-transform: uppercase; margin-bottom: 6px; }
.tb9-mission-text { font-size: 15px; color: #2f251f; line-height: 1.65; margin-bottom: 1.25rem; }

/* ── Choices ── */
.tb9-choices { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1rem; }
.tb9-choice-btn {
  background: #ebe4d5;
  border: 0.5px solid #2f251f;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: #2f251f;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
  width: 100%;
}
.tb9-choice-btn:hover    { background: #f7f1ec; border-color: #2f251f; }
.tb9-choice-btn.selected { background: #2f251f; color: #f7f1ec; border-color: #2f251f; }

/* ── Submit button ── */
.tb9-submit-btn {
  width: 100%; padding: 12px;
  background: #2f251f; border: none; border-radius: 8px;
  font-size: 15px; font-weight: 600; color: #f7f1ec;
  cursor: pointer; transition: background 0.15s, transform 0.1s;
}
.tb9-submit-btn:hover:not(:disabled) { background: #ac8961; }
.tb9-submit-btn:active:not(:disabled) { transform: scale(0.98); }
.tb9-submit-btn:disabled { background: #ebe4d5; color: #ac8961; cursor: default; border: 0.5px solid #2f251f; }

/* ── Dim / locked button ── */
.tb9-dim-btn {
  display: block; width: 100%; margin-top: 8px; padding: 10px;
  background: transparent; border: 0.5px dashed #2f251f; border-radius: 8px;
  font-size: 12px; color: #ac8961; cursor: not-allowed; opacity: 0.45;
}

/* ── Praise box ── */
.tb9-praise-box      { background: #2f251f; border-radius: 10px; padding: 1.5rem; text-align: center; }
.tb9-praise-icon     { font-size: 24px; margin-bottom: 10px; color: #ac8961; }
.tb9-praise-headline { font-size: 17px; font-weight: 600; color: #f7f1ec; margin: 0 0 10px; }
.tb9-praise-body     { font-size: 14px; color: #ebe4d5; line-height: 1.65; margin: 0 0 6px; font-weight: 500; }
.tb9-praise-impact   { font-size: 13px; color: #ac8961; margin: 0 0 1.25rem; font-style: italic; }

/* ── Continue / Next button ── */
.tb9-next-btn {
  padding: 11px 28px;
  background: transparent;
  border: 1px solid #ac8961;
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  color: #ac8961;
  transition: background 0.15s, color 0.15s;
}
.tb9-next-btn:hover { background: #ac8961; color: #2f251f; }

/* ── Badges ── */
.tb9-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1rem; }
.tb9-badge  { font-size: 11px; padding: 4px 10px; border-radius: 99px; background: #ebe4d5; color: #2f251f; border: 0.5px solid #2f251f; }

/* ── Final screen ── */
.tb9-final-screen { background: #2f251f; border-radius: 12px; padding: 2rem; text-align: center; }
.tb9-final-icon   { font-size: 28px; color: #ac8961; margin-bottom: 10px; }
.tb9-final-title  { font-size: 22px; font-weight: 600; color: #f7f1ec; margin: 0 0 8px; }
.tb9-final-sub    { font-size: 13px; color: #ac8961; margin: 0 0 1rem; font-style: italic; }
.tb9-final-body   { font-size: 14px; color: #ebe4d5; line-height: 1.75; margin: 0 0 1.5rem; text-align: left; }

/* ── Restart button ── */
.tb9-restart-btn {
  padding: 12px 32px;
  background: transparent;
  border: 1px solid #ac8961;
  border-radius: 8px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  color: #ac8961;
  transition: background 0.15s, color 0.15s;
}
.tb9-restart-btn:hover { background: #ac8961; color: #2f251f; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .tb9-stat-num  { font-size: 13px; }
  .tb9-stat-label { font-size: 9px; }
  .tb9-title     { font-size: 18px; }
  .tb9-mission-text { font-size: 14px; }
}

/* ── Intro screen ── */
.tb9-intro-box       { text-align: center; }
.tb9-intro-seal      { font-size: 36px; color: #ac8961; margin-bottom: 10px; }
.tb9-intro-overline  { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; color: #ac8961; text-transform: uppercase; margin-bottom: 10px; }
.tb9-intro-headline  { font-size: 26px; font-weight: 700; color: #2f251f; margin: 0 0 18px; line-height: 1.2; }
.tb9-intro-body      { font-size: 14px; color: #2f251f; line-height: 1.75; text-align: left; margin-bottom: 20px; }
.tb9-intro-body p    { margin: 0 0 12px; }
.tb9-intro-body p:last-child { margin-bottom: 0; }
.tb9-intro-credentials { display: flex; flex-direction: column; gap: 8px; margin: 0 0 24px; text-align: left; }
.tb9-cred-item       { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #2f251f; background: #ebe4d5; border: 0.5px solid #2f251f; border-radius: 6px; padding: 9px 14px; }
.tb9-cred-icon       { color: #ac8961; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.tb9-start-btn {
  width: 100%; padding: 14px;
  background: #2f251f; border: none; border-radius: 8px;
  font-size: 16px; font-weight: 700; color: #f7f1ec;
  cursor: pointer; transition: background 0.15s, transform 0.1s;
  margin-bottom: 14px; letter-spacing: 0.02em;
}
.tb9-start-btn:hover  { background: #ac8961; }
.tb9-start-btn:active { transform: scale(0.98); }
.tb9-intro-fine {
  font-size: 10px; color: #ac8961; line-height: 1.6;
  border-top: 0.5px solid #ac8961; padding-top: 12px;
  text-align: left;
}
