.hidden { display: none !important; }
.loyalty { max-width: 440px; }
.loyalty h1 { text-align: center; margin-bottom: 8px; }
.lede { margin: 0 auto 24px; text-align: center; color: var(--text-muted); }
label { display: block; margin: 16px 0 6px; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
input[type=text], input[type=password], select {
  width: 100%; padding: 13px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--card-bg); color: var(--text); font: inherit; font-size: 1rem;
}
input:focus-visible, select:focus-visible, button:focus-visible, .link-button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.primary, .secondary {
  display: block; width: 100%; margin-top: 18px; padding: 15px; border: none; border-radius: 10px;
  background: var(--brand); color: #fff; font: inherit; font-weight: 600; letter-spacing: 0.03em;
  text-align: center; text-decoration: none; cursor: pointer;
}
.secondary { background: transparent; color: var(--brand-text); border: 1px solid var(--brand); }
.primary[disabled], .secondary[disabled] { opacity: 0.6; cursor: default; }
.linky { display: block; margin: 28px auto 0; background: none; border: 0; color: var(--text-muted); font: inherit; text-decoration: underline; cursor: pointer; }
.note { margin: 10px 0 0; font-size: 0.9rem; color: var(--text-muted); }
.error { min-height: 1.4em; margin: 12px 0 0; color: #9b1c1c; font-size: 0.95rem; }

/* The password block slides open beneath the identity field. */
.reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease, opacity 0.3s ease; opacity: 0; }
.reveal.open { grid-template-rows: 1fr; opacity: 1; }
.reveal-inner { overflow: hidden; min-height: 0; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; } }

.card-box { margin: 20px 0 14px; }
.card { margin: 20px 0 22px; padding: 18px 14px 16px; border-radius: 16px; background: var(--brand); color: #f5ecd8; }
.row { padding: 10px 0; }
.row + .row { border-top: 1px solid rgba(245, 236, 216, 0.18); }
.row-label { margin-bottom: 8px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
/* Slots are bottom-aligned so the cup bases line up; the straw overshoots upward. */
.slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; align-items: end; height: 84px; grid-template-rows: 100%; }
.slot { min-height: 0; min-width: 0; display: flex; align-items: flex-end; justify-content: center; height: 100%; }
.slot img { max-width: 100%; max-height: 100%; object-fit: contain; }
.slot.empty::after { content: ''; width: 70%; aspect-ratio: 1; max-height: 70%; border: 1.5px dashed rgba(245, 236, 216, 0.4); border-radius: 50%; }
.reward { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: var(--card-bg); border: 2px solid var(--brand); color: var(--brand-text); font-weight: 600; text-align: center; }

.qr-wrap { margin-top: 26px; text-align: center; }
.qr { display: inline-block; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.qr svg { display: block; width: 180px; height: 180px; }
.profile { margin-top: 30px; padding-top: 6px; border-top: 1px solid var(--border); }
.profile h2 { margin-top: 24px; }
.bday { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.qr-wrap.no-qr .qr { display: none; }
