/* ---------- Base feel ---------- */
html { scroll-behavior: smooth; }
body {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(31,122,92,0.09) 1px, transparent 0);
  background-size: 22px 22px;
}

em { font-style: italic; }

/* ---------- Decorative ambient glow ---------- */
.growth-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.growth-glow--a {
  width: 480px; height: 480px;
  top: -160px; left: -120px;
  background: radial-gradient(circle, #8FCBAA 0%, transparent 70%);
}
.growth-glow--b {
  width: 420px; height: 420px;
  bottom: -180px; right: -140px;
  background: radial-gradient(circle, #FFB69E 0%, transparent 70%);
}

/* ---------- Reveal-up entrance ---------- */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal-up {
  animation: revealUp 0.6s cubic-bezier(.22,1,.36,1) both;
}
.reveal-up--delay-1 { animation-delay: .08s; }
.reveal-up--delay-2 { animation-delay: .16s; }

/* ---------- Tab nav ---------- */
.tab-btn {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #5B6B63;
  background: rgba(255,255,255,0.6);
  border: 1.5px solid #CFE0D5;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.tab-btn:hover { border-color: #1F7A5C; color: #123F30; }
.tab-btn.is-active {
  background: #123F30;
  border-color: #123F30;
  color: #F5F7F1;
}
@media (max-width: 480px) {
  .tab-btn { font-size: 11.5px; padding: 7px 10px; flex: 1; text-align: center; }
}

/* ---------- Fill status ---------- */
#fill-status { color: #1F7A5C; }
#fill-status.is-warning { color: #D8492E; }

/* ---------- Question card ---------- */
.q-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid #CFE0D5;
  border-radius: 20px;
  padding: 22px;
  animation: revealUp 0.45s cubic-bezier(.22,1,.36,1) both;
}
.q-card .q-index {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #1F7A5C;
  font-weight: 600;
}
.q-card .q-text {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  line-height: 1.45;
  color: #17241D;
  margin-top: 6px;
}

/* ---------- Answer options ---------- */
.opt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 16px;
}
@media (min-width: 480px) {
  .opt-grid { grid-template-columns: repeat(4, 1fr); }
}
.opt-btn {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: #5B6B63;
  background: #fff;
  border: 1.5px solid #CFE0D5;
  border-radius: 12px;
  padding: 10px 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.25;
}
.opt-btn:hover {
  border-color: #1F7A5C;
  color: #123F30;
}
.opt-btn.is-selected {
  background: #123F30;
  border-color: #123F30;
  color: #F5F7F1;
  box-shadow: 0 6px 16px -6px rgba(18,63,48,0.5);
}

/* ---------- Growth Spectrum gauge (signature element) ---------- */
#spectrum-track { background: #E1EFE6; }
.seg-f  { background: #F4D9CD; }
.seg-fg { background: #FBE8B8; }
.seg-gf { background: #D6ECD1; }
.seg-g  { background: #9FD8B4; }

.sprout-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -55%);
  width: 34px; height: 34px;
  background: #fff;
  border: 2px solid #123F30;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 1s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 6px 14px -4px rgba(18,63,48,0.45);
}

/* ---------- Timer ---------- */
#app-timer.is-visible { display: inline-flex; }
#app-timer.is-low { color: #D8492E; border-color: #F4B7A6; background: #FFF1EC; }

/* ---------- Rekap tab ---------- */
.rekap-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.72);
  border: 1px solid #CFE0D5;
  border-radius: 14px;
  padding: 12px 16px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #17241D;
}
.rekap-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #1F7A5C;
  color: #fff;
  font-size: 12px;
  flex-shrink: 0;
}

/* ---------- KS tab ---------- */
.ks-chip {
  display: inline-flex;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border-radius: 999px;
  padding: 5px 12px;
}
.ks-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- Validation shake ---------- */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.shake { animation: shake 0.4s ease; }

/* ---------- Print ---------- */
@media print {
  header, footer, nav, #btn-print, #btn-restart { display: none !important; }
  body { background: #fff !important; }
  .growth-glow { display: none; }
}
