@font-face { font-family: Fraunces; src: url(/fonts/fraunces-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Outfit; src: url(/fonts/outfit-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Outfit; src: url(/fonts/outfit-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

/* A paper stamp card: warm card stock, inked stamps. */
:root { --desk: #2b211a; --card: #f6efe2; --ink: #2b211a; --muted: #6f5f52; --line: #e0d3bd; --stamp: #b4532a; --gold: #d99a2b; --ok: #2f7a4f;
  --serif: Fraunces, Georgia, serif; --sans: Outfit, "Avenir Next", system-ui, sans-serif; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--desk); color: var(--ink); font: 400 17px/1.5 var(--sans); padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
[hidden] { display: none !important; }
.wrap { max-width: 440px; margin: 0 auto; display: grid; gap: 16px; }
.card { background: var(--card); border-radius: 22px; padding: 24px 22px; box-shadow: 0 18px 40px rgba(0,0,0,.35); position: relative; overflow: hidden; }
.card::after { content: ""; position: absolute; inset: 10px; border: 1.5px dashed var(--line); border-radius: 16px; pointer-events: none; }
.shop { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.1; margin: 0; }
.who { color: var(--muted); margin: 4px 0 0; }
.stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 14px; position: relative; z-index: 1; }
.dot { aspect-ratio: 1; border-radius: 50%; border: 2px dashed #cdbb9c; display: grid; place-items: center; font: 600 13px var(--sans); color: #b8a68a; }
.dot.on { border: 0; background: radial-gradient(circle at 35% 30%, #d36a3b, var(--stamp)); color: #fff; transform: rotate(-8deg); box-shadow: inset 0 0 0 3px rgba(255,255,255,.18); }
.dot.on::before { content: ""; width: 42%; height: 52%; background: #fff; -webkit-mask: var(--flame) center / contain no-repeat; mask: var(--flame) center / contain no-repeat; }
.dot.new { animation: thump .6s cubic-bezier(.2,1.6,.4,1); }
:root { --flame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M13 1c.5 5 2.6 7.6 1.4 12 3.6-.7 7.3 1.6 7.9 5.6.7 4.4-1.4 8.6-4.3 11H5.3C2.8 27.5 1.6 24.7 1.6 21.6 1.6 16.5 3.9 13.2 6.4 10.3c1.3 2.2 2.2 3.2 3.1 3.5.1-4 1.4-7.8 3.5-12.8z'/%3E%3C/svg%3E"); }
@keyframes thump { 0% { transform: scale(2) rotate(-30deg); opacity: 0; } 100% { transform: scale(1) rotate(-8deg); opacity: 1; } }
.progress { font-weight: 600; font-size: 18px; margin: 0; position: relative; z-index: 1; }
.reward { color: var(--muted); margin: 4px 0 0; position: relative; z-index: 1; }
.banner { border-radius: 16px; padding: 14px 16px; font-weight: 600; }
.banner.ready { background: var(--gold); color: #2b1d08; }
.banner.bday { background: #f3d6e4; color: #5a1f3c; }
.banner.flash { background: var(--ok); color: #fff; animation: pop .4s ease-out; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.qrbox { background: #fff; border-radius: 22px; padding: 20px; display: grid; justify-items: center; gap: 8px; }
.qrbox canvas, .qrbox svg { width: 200px; height: 200px; image-rendering: pixelated; }
.code { font: 600 22px/1 ui-monospace, Menlo, monospace; letter-spacing: .18em; }
.hint { color: #d9c7ad; font-size: 14px; text-align: center; margin: 0; }
.muted { color: var(--muted); }
/* Join page */
.form { display: grid; gap: 8px; position: relative; z-index: 1; }
label { font-weight: 600; font-size: 15px; margin-top: 8px; }
input, select { font: inherit; color: var(--ink); background: #fffdf8; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
input:focus, select:focus { outline: 3px solid rgba(180,83,42,.35); border-color: var(--stamp); }
.bday { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.btn { font: 600 17px/1 var(--sans); background: var(--stamp); color: #fff; border: 0; border-radius: 999px; padding: 16px 22px; min-height: 52px; cursor: pointer; margin-top: 12px; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; }
.btn:disabled { opacity: .6; }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.error { color: #a1261b; margin: 0; }
.small { font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.perks { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; position: relative; z-index: 1; }
.perks li::before { content: "★ "; color: var(--stamp); }
@media (prefers-reduced-motion: reduce) { .dot.new, .banner.flash { animation: none; } }

.gwallet { font: 600 17px/1 var(--sans); background: #000; color: #fff; border: 1px solid #747775; border-radius: 999px; min-height: 52px; padding: 14px 22px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.gwallet::before { content: ""; width: 22px; height: 18px; border-radius: 4px; background: linear-gradient(180deg, #4285f4 0 25%, #34a853 25% 50%, #fbbc04 50% 75%, #ea4335 75%); }
.gwallet:disabled { opacity: .6; }
.gwallet:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
