/* 命運手冊 — gedeelde huisstijl (inkt / goud / ivoor) */
:root {
  --ink: #1C2333;
  --ink-deep: #121722;
  --gold: #C9A94E;
  --gold-dark: #A8842C;
  --gold-soft: #E4D3A1;
  --ivory: #FBF8F0;
  --ivory-dim: #F3EDDD;
  --seal: #8E2B25;
  --green: #2E6E4E;
  --wood: #2E6E4E; --fire: #8E2B25; --earth: #A8842C; --metal: #7C8188; --water: #2C4A6E;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Serif TC", "Noto Serif CJK TC", "PMingLiU", serif;
  background: var(--ink);
  color: var(--ivory);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
img { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* Gouden ornamentlijn */
.orna {
  border: 0; height: 14px; margin: 8px auto; width: 240px; max-width: 70%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="240" height="14" viewBox="0 0 240 14"><line x1="0" y1="7" x2="104" y2="7" stroke="%23C9A94E" stroke-width="1"/><line x1="136" y1="7" x2="240" y2="7" stroke="%23C9A94E" stroke-width="1"/><rect x="114" y="1" width="12" height="12" transform="rotate(45 120 7)" fill="none" stroke="%23C9A94E" stroke-width="1.2"/></svg>') center/contain no-repeat;
}

/* Rood zegel */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 8px;
  background: var(--seal); color: var(--ivory);
  font-size: 20px; font-weight: 700; line-height: 1.15;
  box-shadow: 0 2px 14px rgba(142,43,37,.45);
  letter-spacing: 2px; writing-mode: vertical-rl; text-orientation: upright;
}

/* Knoppen */
.btn {
  display: inline-block; cursor: pointer; border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--ink-deep); font-family: inherit; font-weight: 700;
  font-size: 17px; letter-spacing: 3px; padding: 14px 44px; border-radius: 3px;
  transition: all .3s ease; position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(201,169,78,.35); }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: rgba(201,169,78,.12); }
.btn:disabled { opacity: .5; cursor: wait; transform: none; }

/* Kaarten op ivoor */
.paper {
  background: var(--ivory); color: var(--ink);
  border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

/* Element-kleuren voor 干支 */
.elem-wood { color: var(--wood); } .elem-fire { color: var(--fire); }
.elem-earth { color: var(--earth); } .elem-metal { color: var(--metal); }
.elem-water { color: var(--water); }

/* Fade-in bij scroll */
.fade { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.fade.vis { opacity: 1; transform: none; }

/* Formulier */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14.5px; letter-spacing: 2px; color: var(--gold-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: 16px;
  background: rgba(251,248,240,.06); border: 1px solid rgba(201,169,78,.4);
  border-radius: 3px; color: var(--ivory); transition: border .25s, background .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(251,248,240,.1);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(251,248,240,.35); }
.field .hint { font-size: 12.5px; color: rgba(251,248,240,.5); margin-top: 4px; }

.radio-row { display: flex; gap: 12px; }
.radio-row label {
  flex: 1; text-align: center; padding: 11px 0; cursor: pointer;
  border: 1px solid rgba(201,169,78,.4); border-radius: 3px;
  font-size: 16px; color: var(--ivory); letter-spacing: 4px; transition: all .25s;
}
.radio-row input { display: none; }
.radio-row input:checked + span { color: var(--ink-deep); }
.radio-row label:has(input:checked) {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-color: var(--gold); color: var(--ink-deep); font-weight: 700;
}

/* Waarschuwingsbox */
.warnbox {
  background: #FDF6E3; border: 1px solid var(--gold-dark); border-left: 4px solid var(--gold-dark);
  border-radius: 4px; padding: 14px 18px; color: #6b5310; font-size: 14.5px; margin: 18px 0;
}
.warnbox p { margin: 4px 0; }

@media (max-width: 640px) {
  .btn { width: 100%; text-align: center; }
}
