:root {
  --bg: #0b0d1a;
  --card: #151933;
  --card-2: #1c2142;
  --line: #2b3160;
  --text: #eef0ff;
  --muted: #9aa0c8;
  --gold: #f5c84c;
  --gold-2: #ffdf80;
  --pink: #ff5fa2;
  --ok: #3ddc97;
  --err: #ff6b6b;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -200px, #2a1f5c 0%, transparent 70%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 24px 16px 64px; }
.wrap.wide { max-width: 1100px; }
header.hero { text-align: center; padding: 16px 0 8px; }
.hero .year {
  font-size: clamp(48px, 16vw, 88px); font-weight: 900; letter-spacing: -2px; line-height: 1;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 40%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 { margin: 8px 0 4px; font-size: 26px; }
.hero p { margin: 4px 0; color: var(--muted); }
.hero .dates { color: var(--gold); font-weight: 600; }
section.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; margin-top: 16px;
}
section.card h2 { margin: 0 0 4px; font-size: 18px; }
section.card .hint { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
label.field { display: block; margin-bottom: 12px; }
label.field span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=tel], input[type=password], textarea, select {
  width: 100%; padding: 12px; font: inherit; color: var(--text);
  background: var(--card-2); border: 1px solid var(--line); border-radius: 10px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 80px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 400px) { .row2 { grid-template-columns: 1fr; gap: 0; } }

.choices { display: grid; gap: 8px; }
.choices.inline { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: block; padding: 12px 14px; border-radius: 10px; background: var(--card-2);
  border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s;
}
.choice input:checked + span { border-color: var(--gold); background: #2a2a3e; box-shadow: inset 0 0 0 1px var(--gold); }
.choice input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.q { margin-bottom: 16px; }
.q:last-child { margin-bottom: 0; }
.q .qlabel { font-weight: 600; margin-bottom: 8px; }
.req { color: var(--pink); }

.cat { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); }
.cat:first-of-type { margin-top: 0; }
.item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  background: var(--card-2); border: 1px solid var(--line); margin-bottom: 8px;
}
.item.on { border-color: var(--gold); }
.item.full { opacity: .5; }
.item .info { flex: 1; min-width: 0; }
.item .name { font-weight: 600; }
.item .meta { font-size: 13px; color: var(--muted); }
.bar { height: 4px; border-radius: 2px; background: var(--line); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ok); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  color: var(--text); font-size: 20px; line-height: 1; cursor: pointer;
}
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 20px; text-align: center; font-weight: 700; }

button.primary {
  width: 100%; margin-top: 20px; padding: 16px; font: inherit; font-weight: 700; font-size: 18px;
  border: 0; border-radius: var(--radius); cursor: pointer; color: #1a1300;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}
button.primary:disabled { opacity: .6; }
button.ghost {
  padding: 8px 14px; font: inherit; font-size: 14px; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid var(--line);
}
a.btnlink { display: inline-block; padding: 8px 14px; font-size: 14px; border-radius: 8px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
button.danger { color: var(--err); border-color: #5a2a3a; }
.msg { margin-top: 16px; padding: 12px 14px; border-radius: 10px; }
.msg.err { background: #3a1626; border: 1px solid var(--err); }
.msg.ok { background: #10301f; border: 1px solid var(--ok); }
.banner { background: #2a2a3e; border: 1px solid var(--gold); border-radius: 10px; padding: 10px 14px; margin-top: 16px; font-size: 14px; }
.done { text-align: center; }
.done .big { font-size: 64px; }
.done a { color: var(--gold); word-break: break-all; }
.hidden { display: none !important; }
footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 32px; }

/* admin */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 8px; }
.toolbar h1 { margin: 0; font-size: 22px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font-size: 28px; color: var(--gold); }
.stat small { color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2 > section.card { margin-top: 16px; }
.grid2.single { grid-template-columns: 1fr; }
@media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; gap: 0; } }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
td.num { text-align: right; white-space: nowrap; }
.who { color: var(--muted); font-size: 13px; }
.short { color: var(--err); }
.covered { color: var(--ok); }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-size: 12px; margin: 1px 2px 1px 0; white-space: nowrap; }
input.search { max-width: 260px; padding: 8px 12px; }
a.tel { color: var(--text); }
.login { max-width: 360px; margin: 15vh auto 0; }
#rsvpTbl { min-width: 760px; }
