:root {
  --color-cream: #f5f1e8;
  --color-paper: #fefdf8;
  --color-text: #222;
  --color-text-muted: #777;
  --color-accent: #4a3a7f;
  --color-accent-soft: #d8d0e8;
  --color-button: #5a7fc0;
  --color-button-dark: #4a6fb0;
  --color-border: #d4c9a8;
  --color-progress: #6fa86f;
  --font-serif: 'Songti SC', 'STSong', 'SimSun', 'Noto Serif SC', serif;
  --font-mono: 'Courier New', 'Consolas', 'Monaco', monospace;
}

/* Atmosphere decay — colors shift as truths accumulate */
body[data-truth-count="1"] {
  --color-cream: #f0ede6;
  --color-paper: #fafaf5;
  --color-text-muted: #6a6a6a;
  --color-border: #c8bfa0;
}

body[data-truth-count="2"] {
  --color-cream: #eae8e2;
  --color-paper: #f6f5f2;
  --color-text-muted: #5f5f5f;
  --color-accent: #3d3070;
  --color-border: #b8b098;
  letter-spacing: -0.01em;
}

body[data-truth-count="3"] {
  --color-cream: #e4e2de;
  --color-paper: #f0efed;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-accent: #332860;
  --color-accent-soft: #c8c0d8;
  --color-border: #a8a090;
  letter-spacing: -0.02em;
}

body {
  font-family: var(--font-serif);
  color: var(--color-text);
  background: var(--color-cream);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

#app {
  width: 100%;
  max-width: 640px;
}

.typewriter::after {
  content: '▊';
  display: inline-block;
  animation: cursor-blink 1.05s steps(2) infinite;
  margin-left: 2px;
  color: var(--color-accent);
  font-weight: normal;
}

@keyframes cursor-blink {
  to { opacity: 0; }
}
