/* עיצוב משותף לדפי החנות – אותה שפה כמו המשחק: קלף, עור, ברונזה, זית, אור מדורה */
:root {
  --parch: #f2e7cf;
  --parch-2: #e9dcbd;
  --ink: #2e2216;
  --ink-2: #5a4632;
  --leather: #6a4a2f;
  --leather-2: #4a321c;
  --olive: #4f5a2b;
  --olive-2: #363f19;
  --bronze: #a77b3c;
  --line: #cdb88f;
  --ok: #4f6b2b;
  --bad: #8e3a24;
  --night: #1b140e;
  --night-2: #2a1f15;
  --fire: #f3c46b;
  --head: "Suez One", serif;
  --body: "Rubik", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--olive); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.2; margin: 0 0 .45em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* דף קלף – אותה תמונת קלף כמו בכרטיסים של המשחק */
.paper {
  border-style: solid;
  border-width: 26px 30px;
  border-image: url("img/parch.webp") 70 80 70 80 fill / 26px 30px stretch;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.45));
}
/* פתקית קלף קטנה – כמו האריחים במשחק */
.tile {
  border-style: solid;
  border-width: 9px 10px;
  border-image: url("img/tile.webp") 30 34 30 34 fill / 9px 10px stretch;
  filter: drop-shadow(0 2px 3px rgba(70,45,15,.3));
}
.rule { position: relative; height: 1px; background: linear-gradient(90deg, transparent, #8f7552 15%, #8f7552 85%, transparent); margin: 18px 0; }
.rule::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; transform: translate(-50%,-50%) rotate(45deg); background: #7b5a34; box-shadow: 0 0 0 3px rgba(240,226,195,.95); }

/* כפתורים – עור ושמן זית, כמו במשחק */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 52px; padding: 0 26px; border-radius: 9px;
  border: 1.5px solid var(--olive-2);
  font: 600 18px/1.1 var(--body); color: #f8efd8; text-decoration: none; cursor: pointer;
  background: linear-gradient(#66733a, #434d22);
  box-shadow: inset 0 1px 0 rgba(255,240,200,.28), 0 3px 8px rgba(20,10,0,.35);
  transition: transform .08s ease, filter .15s ease;
  touch-action: manipulation;
}
.btn:hover { filter: brightness(1.07); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.btn.leather { background: linear-gradient(#7a5735, #5c3f24); border-color: var(--leather-2); }
.btn.ghost { background: rgba(27,20,14,.35); color: var(--parch); border-color: rgba(242,231,207,.75); box-shadow: none; backdrop-filter: blur(2px); }
.btn.light { background: rgba(255,248,230,.6); color: var(--leather-2); border-color: #8f7552; box-shadow: none; }
.btn.small { min-height: 42px; font-size: 15.5px; padding: 0 16px; }

.field { display: grid; gap: 4px; margin-bottom: 14px; }
.field label { font-size: 15px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=number], input[type=date], select {
  width: 100%; min-height: 48px; padding: 8px 12px; font: 17px var(--body);
  border: 1.5px solid #b79c6c; border-radius: 8px; background: rgba(255,252,242,.9); color: var(--ink);
  box-shadow: inset 0 1px 3px rgba(90,60,20,.15);
}
input:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--fire); outline-offset: 2px;
}
.note { font-size: 15px; color: var(--ink-2); }
.err { color: var(--bad); font-size: 15px; min-height: 1.4em; }
.center { text-align: center; }
.code { font: 600 20px/1.2 ui-monospace, "Consolas", monospace; letter-spacing: 1px; direction: ltr; unicode-bidi: isolate; }

/* דפים פשוטים (תודה, כבר קניתי, תנאים) – על רקע המחנה בלילה */
.page-simple {
  min-height: 100vh; padding: 28px 0 56px;
  background:
    linear-gradient(180deg, rgba(27,20,14,.72), rgba(27,20,14,.95) 60%),
    url("img/camp.webp") center top / cover fixed;
}
.page-simple .paper { padding: 6px 4px; max-width: 580px; margin: 0 auto; }
.top-link { color: var(--parch); opacity: .85; text-decoration: none; font-size: 15px; display: inline-block; margin-bottom: 12px; }
.top-link:hover { opacity: 1; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
