/* Stamply Wallet card — one look for the dashboard preview, the web fallback
   card and the landing page. Mirrors the real Apple / Google passes built in
   netlify/lib/pass-design.mts + apple-pass.mts + google-pass.mts. */

.wc {
  --wc-bg: #1d1d1f;
  --wc-fg: #fff;
  --wc-label: rgba(255,255,255,.72);
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  background: var(--wc-bg);
  color: var(--wc-fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 18px 40px -18px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.18);
  text-align: left;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
.wc * { box-sizing: border-box; }

.wc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 10px; min-height: 52px; }
.wc-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.wc-logo { width: 32px; height: 32px; border-radius: 8px; flex: none; display: grid; place-items: center; overflow: hidden; font-size: 20px; line-height: 1; }
.wc-logo img { width: 100%; height: 100%; object-fit: contain; }
.wc-name { font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-field { min-width: 0; }
.wc-field.right { text-align: right; }
.wc-label { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--wc-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-value { font-size: 15px; font-weight: 500; letter-spacing: -.01em; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-top .wc-value { font-size: 18px; font-variant-numeric: tabular-nums; }

/* Strip: photo (or brand gradient) + emoji stamps. 1125×369 like the pass. */
.wc-strip { position: relative; aspect-ratio: 1125 / 369; background: linear-gradient(135deg, color-mix(in srgb, var(--wc-bg) 82%, #fff), color-mix(in srgb, var(--wc-bg) 88%, #000)); background-size: cover; background-position: center; overflow: hidden; }
.wc-strip.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.48)); }
.wc-strip.photo.done::before { background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.62)); }
.wc-strip .wc-water { position: absolute; right: -6%; top: -12%; width: 38%; opacity: .1; }
.wc-slots { position: absolute; inset: 0; display: grid; align-content: center; justify-content: center; gap: var(--wc-gap); padding: 0 5.7%; }
.wc-row { display: flex; justify-content: center; gap: var(--wc-gap); }
.wc-slot { width: var(--wc-d); height: var(--wc-d); border-radius: 50%; display: grid; place-items: center; position: relative; transition: transform .35s cubic-bezier(.2,1.4,.4,1), background .25s; }
.wc-slot.on { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.wc-slot.off { background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.7); }
.wc-slot img, .wc-slot span { width: 62%; height: 62%; display: grid; place-items: center; font-size: calc(var(--wc-d) * .5); line-height: 1; }
.wc-slot.off.last img, .wc-slot.off.last span { opacity: .55; width: 56%; height: 56%; }
.wc-slot.pop { animation: wc-pop .55s cubic-bezier(.2,1.5,.4,1); }
@keyframes wc-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }

.wc-reward { position: absolute; left: 50%; top: 50%; width: 21%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 5px rgba(255,255,255,.28), 0 0 40px 18px rgba(255,255,255,.35); animation: wc-glow 2.4s ease-in-out infinite; }
.wc-reward img, .wc-reward span { width: 62%; height: 62%; display: grid; place-items: center; font-size: 34px; }
.wc-spark { position: absolute; width: 7.5%; }
@keyframes wc-glow { 50% { box-shadow: 0 0 0 9px rgba(255,255,255,.18), 0 0 52px 22px rgba(255,255,255,.42); } }

.wc-rows { padding: 10px 14px 4px; display: grid; gap: 9px; }
.wc-pair { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.wc-brandline { font-size: 11px; color: var(--wc-label); text-align: right; }
.wc-reward-field .wc-value { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 600; }
.wc-reward-field .wc-value > img { width: 18px; height: 18px; flex: none; }
.wc-reward-field .wc-value > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.wc-code { padding: 12px 0 16px; display: grid; justify-items: center; gap: 6px; }
.wc-qr { width: 112px; height: 112px; background: #fff; border-radius: 8px; padding: 8px; }
.wc-qr svg { width: 100%; height: 100%; display: block; }
.wc-alt { font-size: 11px; color: var(--wc-label); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* Google Wallet variant: rounded 24px card, logo circle, big title, hero at bottom. */
.wc.google { border-radius: 24px; font-family: "Google Sans", Roboto, -apple-system, system-ui, sans-serif; }
.wc.google .wc-top { padding: 16px 18px 6px; }
.wc.google .wc-logo { border-radius: 50%; width: 34px; height: 34px; background: #fff; }
.wc.google .wc-name { font-size: 14px; font-weight: 500; }
.wc-gtitle { padding: 4px 18px 10px; font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
.wc.google .wc-rows { padding: 2px 18px 4px; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.wc.google .wc-label { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; }
.wc.google .wc-value { font-size: 16px; }
.wc.google .wc-code { padding: 14px 0 16px; }
.wc.google .wc-qr { width: 132px; height: 132px; border-radius: 12px; }

/* Platform toggle used by previews */
.wc-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.06); gap: 2px; }
.wc-switch button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font: 600 12px/1 -apple-system, system-ui, sans-serif; color: #555; cursor: pointer; }
.wc-switch button.active { background: #fff; color: #111; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
