:root {
  --bg: #FFF3E4;
  --bg-2: #FFE3C7;
  --fg: #3A2419;
  --muted: #8A6B57;
  --card: #FFFFFF;
  --border: #F0DCC6;
  --accent: #E25C3F;
  --accent-ink: #FFFFFF;
  --gold: #E2A53F;
  --plum: #6B3F57;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 140% at 50% -10%, var(--bg-2), var(--bg) 60%);
  color: var(--fg);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.stage { width: 100%; max-width: 420px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 24px 60px -24px rgba(58, 36, 25, 0.35);
  padding: 40px 28px 32px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin: 0 0 10px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 7vw, 32px);
  line-height: 1.15;
  text-align: center;
  margin: 0 0 10px;
}

.sub {
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 30ch;
  margin-inline: auto;
}

form { display: flex; flex-direction: column; gap: 14px; }

label { font-size: 12.5px; font-weight: 600; color: var(--muted); }

.field { display: flex; flex-direction: column; gap: 6px; }

input[type="tel"], input[type="text"], input[type="password"], textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  outline: none;
  width: 100%;
}
input:focus-visible, textarea:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(226, 92, 63, 0.18);
}

.hint { font-size: 12px; color: var(--muted); margin: 0; }

button, .btn {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: inline-block;
}
button:active, .btn:active { transform: scale(0.98); }

.error {
  font-size: 13.5px;
  color: var(--accent);
  text-align: center;
  margin: 0;
}
.notice {
  font-size: 13.5px;
  color: var(--plum);
  text-align: center;
  margin: 0 0 16px;
  background: var(--bg);
  border-radius: 10px;
  padding: 10px;
}

.reveal { text-align: center; }
.reveal .emoji { font-size: 40px; display: block; margin-bottom: 14px; }
.reveal .to {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 6px;
}
.reveal .name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 7vw, 30px); color: var(--plum); margin: 0 0 20px;
}
.reveal .message {
  font-size: 16.5px; line-height: 1.65; text-align: left;
  white-space: pre-wrap; margin: 0 0 24px;
}
.reveal .signoff {
  font-family: var(--font-display); font-style: italic; font-size: 15px;
  color: var(--muted); text-align: right; margin: -10px 0 24px;
}
.again {
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  background: none; border: none; cursor: pointer; text-decoration: underline;
}

footer { text-align: center; font-size: 12px; color: var(--muted); margin-top: 18px; opacity: 0.8; }

/* Admin page */
.admin-wrap { max-width: 720px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 20px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.msg-cell { max-width: 260px; white-space: pre-wrap; }
.del-btn {
  background: none; border: 1px solid var(--border); color: var(--accent);
  border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.section-title { font-family: var(--font-display); font-size: 20px; margin: 28px 0 10px; }
