:root {
  --cream: #f4ecdd;
  --ochre: #d9b98a;
  --sage: #a9b79a;
  --terracotta: #c98c6a;
  --ink: #4a3f35;
  --ink-soft: #7a6d5e;
  --ready-accent: #c9704a; /* reserved — only for "starter needs you" state */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, "Avenir Next", "Segoe UI", sans-serif;
}

.scene {
  width: min(92vw, 420px);
  padding: 2rem 1.5rem;
  text-align: center;
}

.title {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

.jar-wrap {
  position: relative;
  width: 280px;
  height: 380px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  overflow: hidden;
}

#kitchenBackdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

#jarSvg {
  position: absolute;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  width: 220px;
  height: 320px;
  z-index: 1;
}

#lidTop {
  transition: fill 1.2s ease;
}

#jarSvg.ready #lidTop {
  fill: var(--ready-accent);
}

.state-label {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: color 1.2s ease;
}

.state-label.ready {
  color: var(--ready-accent);
  font-weight: 600;
}

.dialogue {
  min-height: 1.4em;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0.5rem 0 1.5rem;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.dialogue.visible {
  opacity: 1;
}

.panel {
  margin-top: 1.5rem;
}

.panel.hidden {
  display: none;
}

.panel-title {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 1rem 0 0.5rem;
}

.choice-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.choice-row button {
  border: 1px solid var(--ochre);
  background: transparent;
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.choice-row button:hover {
  background: rgba(217, 185, 138, 0.25);
}

.choice-row button.selected {
  background: var(--ochre);
  border-color: var(--ochre);
}

.feed-button, .ghost-button {
  margin-top: 1.25rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.4s ease, background-color 0.4s ease;
}

.feed-button {
  border: none;
  background: var(--terracotta);
  color: var(--cream);
}

.feed-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ghost-button {
  border: 1px solid var(--sage);
  background: transparent;
  color: var(--ink-soft);
  margin-left: 0.5rem;
}

/* respect reduced motion: keep the rise-curve itself (informational),
   but this project has no decorative/idle motion to begin with — nothing to cut yet */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
