/* ===== הגדרות כלליות (אותה שפה עיצובית כמו shichot-basalon) ===== */
:root {
  --bg: #ebe6df;
  --bg-soft: #f4f0ea;
  --card: #faf7f3;
  --ink: #2b2622;
  --muted: #6d655e;
  --line: #d5ccc1;
  --accent: #8a5a44;
  --accent-soft: #e6d6cb;
  --ok: #1f7a4d;
  --radius: 18px;
  --hand: "Amatic SC", cursive;
  --sans: "Assistant", Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
h1, h2, h3 { font-weight: 800; line-height: 1.3; margin: 0 0 12px; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.hand { font-family: var(--hand); line-height: 1.05; }

/* ===== כותרת עליונה ===== */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(235,230,223,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.top .in {
  max-width: 760px; margin: 0 auto; padding: 0 16px;
  height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo { font-family: var(--hand); font-size: 34px; line-height: 1; text-decoration: none; }
.save { font-size: 14px; color: var(--muted); transition: opacity .3s; }
.save.err { color: #9a3b22; }

/* ===== כפתורים ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 17px; font-weight: 600;
  padding: 13px 28px; border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--bg);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, opacity .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.wa { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.small { padding: 8px 16px; font-size: 15px; }
.link-btn {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font-family: var(--sans); font-size: 15px; color: var(--muted);
}
.link-btn:hover { color: var(--ink); }

/* ===== כרטיס ===== */
main.stage { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 32px 16px 48px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 40px 36px; min-height: 440px;
  box-shadow: 0 14px 40px rgba(43,38,34,.06);
}
.fade { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.shake { animation: shake .35s ease; }
@keyframes shake { 0%,100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

footer { text-align: center; padding: 24px 16px 36px; color: var(--muted); font-size: 14px; }

/* ===== מובייל ===== */
@media (max-width: 820px) {
  main.stage { padding: 20px 16px 36px; }
  .card { padding: 28px 20px; min-height: 0; border-radius: 20px; }
}
