/* Runner check-in page (mobile first). */
body.checkin { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 520px; margin: 0 auto; padding: 16px 16px 28px; flex: 1; }
.loading { text-align: center; padding: 60px 0; color: var(--muted); }

.step-title { font-size: 26px; font-weight: 700; margin: 6px 0 4px; }
.step-sub { color: var(--muted); margin: 0 0 16px; }

/* Event banner: series colour stripe on the left. */
.event-banner {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px 14px 20px; margin-bottom: 16px; position: relative; overflow: hidden;
}
.event-banner::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--series, var(--red)); }
.event-series { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.05; }
.event-title { font-weight: 600; color: var(--ink-2); }
.event-meta { display: grid; gap: 3px; margin-top: 8px; font-size: 15px; }
.event-meta div { display: flex; gap: 8px; }
.event-meta .ic { width: 20px; text-align: center; flex: none; }
.event-remark { margin-top: 8px; padding: 8px 10px; background: var(--line-2); border-radius: 9px; font-size: 14px; }
.event-banner .switch { position: absolute; right: 12px; top: 10px; }

/* Event picker */
.pick-list { display: grid; gap: 10px; }
.pick {
  text-align: left; width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius);
  padding: 14px 16px 14px 20px; cursor: pointer; position: relative; overflow: hidden; min-height: 64px;
}
.pick::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--series, var(--red)); }
.pick:hover { border-color: var(--ink); }
.pick .p-series { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.pick .p-meta { color: var(--muted); font-size: 14px; }
.section-label { font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }

/* Phone entry */
.phone-input { font-size: 22px; letter-spacing: .04em; font-weight: 600; text-align: center; min-height: 58px; }

/* Household tick list */
.members { display: grid; gap: 10px; margin: 6px 0 14px; }
.member {
  display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); background: #fff;
  border-radius: 12px; padding: 12px 14px; cursor: pointer; min-height: 60px;
}
.member input { width: 24px; height: 24px; accent-color: var(--red); flex: none; }
.member.on { border-color: var(--red); background: var(--red-soft); }
.member.done { opacity: .75; cursor: default; background: var(--good-soft); border-color: transparent; }
.member .m-name { font-weight: 700; font-size: 17px; }
.member .m-mask { color: var(--muted); font-size: 14px; }
.welcome { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 30px; margin: 4px 0 2px; }

/* Registration family block */
.person { border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px; margin: 10px 0; background: #fff; }
.person-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; }
.note { font-size: 14px; color: var(--muted); background: var(--line-2); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.pdpa { font-size: 14px; }

/* Match confirmation */
.match { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; margin: 10px 0; }
.match-q { font-weight: 600; margin-bottom: 10px; }
.match-q strong { font-size: 18px; }
.match-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Success */
.success { text-align: center; }
.tick {
  width: 84px; height: 84px; border-radius: 50%; margin: 8px auto 10px; background: var(--good);
  display: grid; place-items: center; color: #fff; font-size: 46px; font-weight: 800;
  animation: pop .35s ease-out;
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tick { animation: none; } }
.success h1 { font-size: 32px; font-weight: 800; font-style: italic; }
.result { text-align: left; background: #fff; border-radius: 12px; padding: 14px 16px; margin: 10px 0; box-shadow: var(--shadow); }
.result .r-name { font-weight: 700; font-size: 18px; }
.result .r-count { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--red-ink); }
.result .r-ms { margin-top: 6px; font-size: 15px; }
.progress { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.progress > i { display: block; height: 100%; background: var(--series, var(--red)); border-radius: 99px; }

.foot { text-align: center; padding: 18px 16px 26px; color: var(--muted); }
.foot-motto { font-family: var(--font-display); font-weight: 700; font-style: italic; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.foot-sub { font-size: 12px; margin-top: 2px; }
.actions-row { display: grid; gap: 10px; margin-top: 14px; }
