/* A soft, still ambient wash to calm the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 214, 228, 0.35) 0%, transparent 42%),
    radial-gradient(circle at 85% 88%, rgba(214, 232, 240, 0.35) 0%, transparent 45%);
}

main {
  max-width: 38rem;
  animation: fade-in 0.7s ease;
}

.header h1 { font-weight: 500; }

.subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 2.5rem;
  max-width: 28rem;
  line-height: 1.7;
}

.ground-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1.5px solid #f6e7df;
  border-radius: 28px;
  box-shadow: 0 10px 36px rgba(255, 160, 195, 0.14);
  padding: 3rem 2rem;
  text-align: center;
  min-height: 24rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Steps: only one visible at a time */
.step {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.step.is-active {
  display: flex;
  animation: fade-in 0.6s ease;
}

.step-lead {
  color: var(--ink);
  line-height: 1.75;
  max-width: 26rem;
  margin: 0;
}

/* Progress dots */
.dots {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s, transform 0.3s;
}

.dot.is-done { background: #ffc0d8; }
.dot.is-current { background: var(--primary); transform: scale(1.35); }

/* The big sense number */
.sense-count {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--primary);
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #fff6fa 0%, #ffdce8 70%, #ffccdd 100%);
  box-shadow: 0 0 36px rgba(255, 200, 220, 0.45);
}

.sense-title {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0;
}

.sense-prompt {
  color: var(--muted);
  margin: 0;
  max-width: 26rem;
  line-height: 1.5;
}

/* Answer inputs */
.inputs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  max-width: 22rem;
  margin: 0.5rem 0;
}

.inputs input {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fffafc;
  transition: border-color 0.15s, background 0.15s;
}

.inputs input::placeholder { color: #c9b9c5; }

.inputs input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--card);
}

.inputs input.is-filled {
  border-color: #ffc0d8;
  background: #fff5f9;
}

/* Buttons */
.step-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  border-radius: 999px;
  padding: 0.65rem 2rem;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-primary:active { transform: scale(0.97); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 1.02rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--ink);
}

/* Done screen */
.done-mark {
  font-size: 3rem;
  color: var(--primary);
  animation: float-once 0.6s ease;
}

.done-title {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--ink);
  margin: 0;
}

/* End-of-exercise summary */
.summary {
  width: 100%;
  max-width: 24rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 0.5rem 0 0.5rem;
}

.summary-group {
  background: #fff7fb;
  border: 1.5px solid #f7e3ec;
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
}

.summary-label {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.4rem;
}

.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.summary-list li {
  color: var(--ink);
  line-height: 1.5;
  padding-left: 1.1rem;
  position: relative;
}

.summary-list li::before {
  content: "\2022";
  color: #ffb3cd;
  position: absolute;
  left: 0;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float-once {
  0% { opacity: 0; transform: scale(0.6); }
  60% { transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  main, .step.is-active, .done-mark { animation: none; }
}

/* dark mode: light card / inputs / panels need dark surfaces */
html.dark .ground-card { background: var(--card); border-color: var(--border); }
html.dark .inputs input { background: var(--bg); }
html.dark .inputs input:focus { background: var(--card); }
html.dark .inputs input.is-filled { background: var(--pick-bg); }
html.dark .summary-group { background: var(--pick-bg); }
