/* =====================================================================
   Het Grote Kerstspel — gedeelde stijl
   Idee: een zeefgedrukte kerstkaart uit de jaren '60. Crèmepapier,
   twee à drie inktkleuren, stevige lijnen en een tikje verschoven druk.
   ===================================================================== */

:root {
  --paper: #f3eadb;
  --paper-2: #e8dcc6;
  --snow: #fffdf7;
  --ink: #1b2838;
  --ink-soft: #46546a;
  --pine: #1f4a39;
  --pine-2: #2f6b52;
  --holly: #c23b2a;
  --holly-2: #9e2c1f;
  --gold: #e3a73a;
  --frost: #cfe2e8;
  --night: #0f1a2b;

  --display: "Fraunces", "Georgia", "Times New Roman", serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --line: 2px solid var(--ink);
  --radius: 16px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .25 0 0 0 0 .2 0 0 0 0 .15 0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--paper);
  background-image: var(--grain);
  line-height: 1.45;
}

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

button, input, select, textarea { font: inherit; color: inherit; }

/* Titel met verschoven drukkleur */
.printed {
  color: var(--holly);
  text-shadow: 0.06em 0.05em 0 var(--gold);
  font-style: italic;
}

/* ---------- knoppen ---------- */
.btn {
  --bg: var(--holly);
  --fg: var(--snow);
  --sh: var(--ink);
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  border: var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  padding: .8em 1.2em;
  box-shadow: 4px 4px 0 var(--sh);
  cursor: pointer;
  text-decoration: none;
  transition: transform .08s ease, box-shadow .08s ease, opacity .2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--sh); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.pine { --bg: var(--pine); }
.btn.gold { --bg: var(--gold); --fg: var(--ink); }
.btn.paper { --bg: var(--snow); --fg: var(--ink); }
.btn.ghost { --bg: transparent; --fg: var(--ink); box-shadow: none; border-style: dashed; }
.btn.small { font-size: .9rem; padding: .45em .8em; box-shadow: 3px 3px 0 var(--sh); border-radius: 10px; }
.btn.block { width: 100%; }

/* ---------- kaarten & labels ---------- */
.card {
  background: var(--snow);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--pine);
}

.stamp {
  display: inline-block;
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .3em .7em;
  border: 1.5px dashed currentColor;
  border-radius: 6px;
  color: var(--pine);
  transform: rotate(-2.5deg);
  background: color-mix(in srgb, var(--snow) 70%, transparent);
}

.avatar {
  --c: var(--holly);
  display: inline-grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  background: var(--c);
  border: var(--line);
  font-size: 1em;
  line-height: 1;
  flex: none;
}
.avatar > span { font-size: 1.3em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- confetti / sneeuw-burst ---------- */
.burst {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
}
.burst i {
  position: absolute;
  top: var(--y, 40%);
  left: var(--x, 50%);
  width: var(--s, 10px);
  height: calc(var(--s, 10px) * .55);
  background: var(--c, var(--holly));
  border-radius: 2px;
  animation: burst 1.4s cubic-bezier(.15, .7, .3, 1) forwards;
}
@keyframes burst {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
