:root {
  --cream: #FAF4EA;
  --paper: #FFFDF9;
  --brown: #433025;
  --soft: #8A6F5D;
  --gold: #CF2649;
  --gold-dark: #A81D3A;
  --gold-soft: #FBE9ED;
  --green: #3E7C4F;
  --green-soft: #E3F0E6;
  --red: #B0483F;
  --rouge-romainville: #CF2649;
  --line: #EFD3D9;
  --radius: 16px;
  --shadow: 0 2px 14px rgba(67, 48, 37, .09);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
}
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; }
h1 { font-size: 26px; }
a { color: var(--gold-dark); }
.topbar {
  background: var(--rouge-romainville);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-size: 20px;
}
.topbar .logo { height: 22px; display: block; }
.topbar .rlogo { height: 22px; width: auto; display: block; margin-left: auto; }
.topbar .nav { margin-left: auto; font-size: 14px; font-family: -apple-system, sans-serif; }
.topbar .nav a { color: rgba(255, 255, 255, .92); text-decoration: none; margin-left: 14px; }
.topbar .nav ~ .rlogo { margin-left: 14px; }
.wrap { max-width: 520px; margin: 0 auto; padding: 20px 16px 60px; }
.wrap.wide { max-width: 980px; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=tel], input[type=email], input[type=date],
input[type=password], input[type=number], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
  color: var(--brown);
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
.btn {
  display: inline-block;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  background: var(--gold);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { background: var(--gold-dark); }
.btn.secondary { background: transparent; color: var(--gold-dark); border: 1.5px solid var(--gold); }
.btn.secondary:hover { background: var(--gold-soft); }
.btn.green { background: var(--green); }
.btn.danger { background: var(--red); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.auto { width: auto; }
.muted { color: var(--soft); font-size: 13px; }
.error { color: var(--red); font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 18px 0; }
.stamp {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed #E8C2CB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: #FDF6F7;
}
.stamp.full { border: 2px solid var(--gold); background: var(--gold-soft); }
.stamp img { width: 78%; height: auto; display: block; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--brown);
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  font-size: 15px;
  z-index: 200;
  max-width: 90%;
  text-align: center;
}
.toast.show { opacity: 1; }
.pin-overlay {
  position: fixed;
  inset: 0;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.pin-overlay .card { width: 320px; text-align: center; }
