:root {
  --bg: #f6f1e4; --bg2: #efe7d3; --card: #fffdf7; --ink: #23312a; --muted: #62706a; --line: #e2d9c1;
  --green: #14452f; --green2: #1d6143; --red: #b3302a; --gold: #d9a441; --good: #e5f3e8; --good-ink: #1d5a33;
  --warn: #fff1d4; --warn-ink: #7a4b00; --bad: #fde6e3; --bad-ink: #8a1f19; --shadow: 0 1px 2px rgba(20,40,30,.08), 0 8px 24px rgba(20,40,30,.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101a15; --bg2: #16241d; --card: #1a2a22; --ink: #eef3ee; --muted: #a3b3aa; --line: #2b4036;
    --green: #2d8559; --green2: #3b9c6c; --red: #e0605a; --good: #173a26; --good-ink: #a7e3bd;
    --warn: #3a2c10; --warn-ink: #f3cf85; --bad: #3e1a18; --bad-ink: #f5b3ae; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); line-height: 1.5; font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 500px at 50% -150px, var(--bg2), transparent), var(--bg); min-height: 100vh;
  display: flex; flex-direction: column;
}
.top { background: var(--green); color: #fff; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px;
  border-bottom: 4px solid var(--gold); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; }
.logo { width: 30px; height: 30px; }
.logo .tree { fill: #6fcf97; } .logo .trunk { fill: #c08a4d; } .logo .star { fill: var(--gold); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.nav a, .nav .link { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.12);
  font-size: .95rem; border: 0; font-family: inherit; cursor: pointer; }
.nav .link { min-height: 0; padding: 8px 12px; font-weight: 400; font-size: .95rem; color: #fff; border: 0; }
.nav a:hover, .nav .link:hover, .nav a:focus-visible, .nav .link:focus-visible { background: rgba(255,255,255,.28); outline: none; }
.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 16px 16px 40px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.hero { margin-top: 18px; }
h1 { font-size: 1.55rem; line-height: 1.2; margin: 0 0 8px; color: var(--green); }
@media (prefers-color-scheme: dark) { h1 { color: #9fe0bb; } }
h2 { font-size: 1.15rem; margin: 0 0 8px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); } .hint { color: var(--muted); font-size: .9rem; }
.big { font-size: 1.25rem; font-weight: 600; }
label { display: block; font-weight: 600; font-size: .95rem; margin: 12px 0; }
input[type=text], input[type=password], select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 14px; font: inherit; color: var(--ink); background: var(--bg);
  border: 2px solid var(--line); border-radius: 12px; min-height: 48px;
}
textarea { resize: vertical; min-height: 180px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green2); box-shadow: 0 0 0 3px rgba(61,156,108,.28); }
button, .button {
  display: inline-block; font: inherit; font-weight: 600; padding: 12px 18px; min-height: 48px; border-radius: 12px; cursor: pointer;
  border: 2px solid var(--green2); background: transparent; color: var(--green2); text-decoration: none; text-align: center;
}
@media (prefers-color-scheme: dark) { button, .button { color: #9fe0bb; border-color: #3b9c6c; } }
button.primary, .button.primary { background: var(--green2); color: #fff; border-color: var(--green2); width: 100%; margin-top: 6px; }
@media (min-width: 520px) { button.primary, .button.primary { width: auto; } }
button.danger { border-color: var(--red); color: var(--red); }
button.small { min-height: 40px; padding: 8px 12px; font-size: .9rem; }
button:disabled { opacity: .45; cursor: not-allowed; }
button:hover:not(:disabled), .button:hover { filter: brightness(1.08); }
button:focus-visible, .button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
form.inline { display: inline; }
.notice { font-size: .98rem; } .good { background: var(--good); color: var(--good-ink); border-color: transparent; }
.warn { background: var(--warn); color: var(--warn-ink); border-color: transparent; }
.bad { background: var(--bad); color: var(--bad-ink); border-color: transparent; }
.notice form { margin-top: 10px; }
.pin { display: inline-block; font: 700 1.6rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; padding: 4px 10px;
  margin: 6px 0; background: var(--card); color: var(--ink); border-radius: 10px; border: 2px dashed var(--gold); }
.list { list-style: none; margin: 8px 0 12px; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list time { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.people .person { flex-direction: column; gap: 6px; align-items: flex-start; }
.people .person strong { margin-right: 6px; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg2); color: var(--muted); }
.badge.ok { background: var(--good); color: var(--good-ink); } .badge.waiting { background: var(--warn); color: var(--warn-ink); }
.badge.bad { background: var(--bad); color: var(--bad-ink); }
.row { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
@media (min-width: 520px) { .row { flex-direction: row; align-items: flex-end; } .grow { flex: 1; } }
.checks { list-style: none; padding: 0; margin: 8px 0 14px; }
.checks li { padding: 6px 0 6px 30px; position: relative; }
.checks li::before { position: absolute; left: 0; top: 6px; width: 22px; height: 22px; border-radius: 50%; text-align: center; font-size: .85rem; line-height: 22px; }
.checks .ok::before { content: "\2713"; background: var(--good); color: var(--good-ink); }
.checks .todo::before { content: "\2022"; background: var(--warn); color: var(--warn-ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--green2); }
.reveal summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 10px;
  border-radius: 16px; background: linear-gradient(135deg, var(--green), var(--green2)); color: #fff; }
.reveal summary::-webkit-details-marker { display: none; }
.reveal summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.gift { font-size: 3rem; line-height: 1; } .tap { font-weight: 600; }
.reveal[open] summary { display: none; }
.revealed { text-align: center; padding: 18px 8px 4px; animation: pop .35s ease-out; }
.who { font-size: 2rem; font-weight: 800; color: var(--red); margin: 0 0 12px; word-break: break-word; }
.wl { text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; word-break: break-word; }
@keyframes pop { from { transform: scale(.94); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .revealed { animation: none; } }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 14px 16px 22px; }
