:root {
  --bg: #0a0a0c;
  --panel: #111214;
  --line: #232427;
  --ink: #e7e4dc;
  --muted: #83868c;
  --muted-dim: #55575c;
  --accent: #8b8f97;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Newsreader", Georgia, serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 16px;
  gap: 20px;
}

.booth {
  width: 100%;
  max-width: 520px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px 36px 32px;
  text-align: center;
}

.booth-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

.booth-top .tag {
  font-size: 0.68rem;
  color: var(--muted-dim);
  letter-spacing: 0.04em;
}

.light {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  margin: 0 auto 30px;
  animation: breathe 4.5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.25; box-shadow: 0 0 0 rgba(139,143,151,0); }
  50% { opacity: 1; box-shadow: 0 0 10px rgba(139,143,151,0.5); }
}

@media (prefers-reduced-motion: reduce) {
  .light { animation: none; opacity: 0.7; }
}

.prompt {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 24px;
  line-height: 1.5;
}

.confess-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.confess-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  resize: vertical;
  min-height: 110px;
  outline: none;
  transition: border-color 0.2s ease;
}

.confess-form textarea:focus { border-color: var(--muted); }

.confess-form textarea::placeholder { color: var(--muted-dim); }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.confess-form button {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 13px 20px;
  background: var(--ink);
  color: #0a0a0c;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.confess-form button:hover { opacity: 0.85; }

.fine-print {
  font-size: 0.7rem;
  color: var(--muted-dim);
  line-height: 1.6;
  margin: 22px 0 0;
}

.error {
  font-size: 0.78rem;
  color: #b3453a;
  margin: 0 0 4px;
}

.returned-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-dim);
  letter-spacing: 0.03em;
  margin: 0 0 18px;
}

.returned-confession {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 32px;
  padding: 0;
  border: none;
}

.returned-empty {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 32px;
}

.btn-quiet {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-quiet:hover { color: var(--ink); border-color: var(--muted); }

.credit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-dim);
}

.credit a { color: var(--muted); text-decoration: none; }
.credit a:hover { color: var(--ink); }
