/* Lootjes trekken – opmaak */
:root {
  --bg: #f6f1ea; --card: #fffdf9; --ink: #2b2420; --muted: #7a6e66; --line: #e6dccf;
  --red: #a32626; --red-dark: #7a1d1d; --green: #2f6b45; --gold: #c99a2e; --danger: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1b1614; --card: #262019; --ink: #f3ece4; --muted: #b3a79c; --line: #3b322a;
          --red: #d0504a; --red-dark: #5e1717; --green: #5fae7b; --gold: #e0b44e; --danger: #ef6b62; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header { background: var(--red-dark); color: #fff; padding: calc(env(safe-area-inset-top) + 14px) 16px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
header h1 { font-size: 1.15rem; margin: 0; letter-spacing: .01em; }
header button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); padding: 6px 12px; font-size: .9rem; }
main { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(env(safe-area-inset-bottom) + 32px); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
h2 { font-size: 1.05rem; margin: 0 0 12px; }
label { display: block; font-size: .9rem; color: var(--muted); margin: 10px 0 4px; }
input { width: 100%; font: inherit; padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); }
input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
input:disabled { opacity: .7; }
button { font: inherit; border: 0; border-radius: 10px; padding: 12px 16px; cursor: pointer; }
.primary { background: var(--red); color: #fff; width: 100%; font-weight: 600; margin-top: 14px; }
.secondary { background: transparent; color: var(--ink); border: 1px dashed var(--muted); width: 100%; margin-top: 10px; }
.small { padding: 6px 10px; font-size: .85rem; background: transparent; border: 1px solid var(--line); color: var(--ink); }
.danger { color: var(--danger); border-color: var(--danger); }
button:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.row input { flex: 1; }
.row .remove { flex: none; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--line); color: var(--muted); font-size: 1.2rem; }
.msg { font-size: .9rem; margin-top: 10px; min-height: 1.2em; }
.msg.err { color: var(--danger); } .msg.ok { color: var(--green); }
.countdown { text-align: center; }
.countdown .units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 6px; }
.countdown .unit { background: var(--bg); border-radius: 10px; padding: 10px 4px; }
.countdown .num { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--red); }
.countdown .lbl { font-size: .75rem; color: var(--muted); }
.muted { color: var(--muted); font-size: .9rem; }
.reveal { border: 2px solid var(--gold); }
.reveal .name { font-size: 1.6rem; font-weight: 700; color: var(--red); margin: 4px 0 12px; }
ul.wishes { margin: 0; padding-left: 1.2em; } ul.wishes li { margin: 4px 0; overflow-wrap: anywhere; }
.user-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
details.excl { flex-basis: 100%; font-size: .9rem; }
details.excl summary { cursor: pointer; color: var(--muted); list-style: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
details.excl summary::-webkit-details-marker { display: none; }
details.excl summary::after { content: ' ▾'; }
details.excl[open] summary::after { content: ' ▴'; }
details.excl summary strong { color: var(--ink); font-weight: 600; }
details.excl .opts { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; padding: 4px 10px 8px; margin-top: -6px; padding-top: 12px; }
details.excl label.check { margin: 8px 0 0; }
textarea { width: 100%; font: inherit; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); resize: vertical; }
textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.info-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.info-text a, ul.wishes a { color: var(--red); text-decoration: underline; overflow-wrap: anywhere; }
.user-item:first-child { border-top: 0; }
.user-item > div:first-child { flex: 1; min-width: 0; }
.user-item .muted { white-space: nowrap; }
.user-item .actions { flex: none; max-width: 62%; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .8rem; background: var(--bg); color: var(--muted); }
.warn { background: #fff3cd; color: #6b4e00; border-radius: 10px; padding: 10px; font-size: .9rem; margin-bottom: 10px; }
@media (prefers-color-scheme: dark) { .warn { background: #3d3315; color: #f0d68a; } }
.lead { margin: 0 0 8px; }
.badge-gap { margin-left: 6px; }
.sublead { margin-bottom: 6px; }
.update-banner { position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 12px); z-index: 20;
  max-width: 536px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--red-dark); color: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: .92rem; }
.update-banner button { flex: none; background: #fff; color: var(--red-dark); font-weight: 600; padding: 8px 12px; }
ul.activity { list-style: none; margin: 0; padding: 0; }
ul.activity li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .92rem; }
ul.activity li:first-child { border-top: 0; }
ul.activity .when { flex: none; width: 92px; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
ul.activity .what { flex: 1; min-width: 0; overflow-wrap: anywhere; }
ul.activity li.warn-line .what { color: var(--danger); }
.hidden { display: none !important; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.modal .card { width: 100%; max-width: 420px; margin: 0; }
.modal p { margin: 0 0 8px; }
.modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.modal-actions button { flex: 1; margin: 0; }
.modal-actions .cancel { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.modal-actions .primary.danger-btn { background: var(--danger); }
.section-title { font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 28px 0 10px; }
label.check { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: .95rem; margin: 16px 0 0; }
label.check input { width: 20px; height: 20px; flex: none; accent-color: var(--red); }
.center { text-align: center; }
.big-emoji { font-size: 3rem; text-align: center; margin: 8px 0; }
