:root{font-family:system-ui,-apple-system,sans-serif;color:#143a31;background:#f4f5ef;color-scheme:light}*{box-sizing:border-box}body{margin:0}main{max-width:680px;margin:auto;padding:32px 24px}header{display:flex;justify-content:space-between;gap:24px;font-size:12px;align-items:center;border-bottom:1px solid #d9e0d6;padding-bottom:24px;margin-bottom:64px}.brand{font-size:22px;font-weight:750}.eyebrow{font-size:12px;letter-spacing:.16em;font-weight:700;color:#547360}h1{font-size:clamp(32px,7vw,48px);letter-spacing:-.04em;margin:12px 0}p{line-height:1.6}form,.card{background:white;padding:28px;border-radius:24px;margin:32px 0;border:1px solid #dce3d7}label{display:block;margin-bottom:20px;font-size:14px;font-weight:600}input,select{display:block;width:100%;padding:14px;margin-top:8px;border:1px solid #b7c7ba;border-radius:10px;font:inherit;background:white;color:#143a31}input:focus,select:focus{outline:3px solid #bde8d2}button,.button{display:inline-block;background:#145a4b;color:white;padding:15px 22px;border:0;border-radius:12px;font:inherit;font-weight:650;text-decoration:none;cursor:pointer;margin:8px 8px 8px 0}.consent{display:flex;gap:12px;font-weight:400;line-height:1.5}.consent input{width:18px;flex:none}.balance{font-size:64px;font-weight:750;margin:12px 0}.notice,footer{font-size:12px;color:#587064}footer{margin-top:40px}a{color:#145a4b}@media(prefers-color-scheme:dark){:root{background:#10251e;color:#e7f2e7}form,.card{background:#18382d;border-color:#355345}input,select{background:#10251e;color:#e7f2e7}.notice,footer,.eyebrow{color:#a5c5ad}}

.card-view {
  background: #eef3e8;
  color: #183229;
  min-height: 100vh;
}

.card-view main {
  max-width: 570px;
  padding: 24px clamp(12px, 5vw, 28px);
}

.card-view header {
  border: 0;
  margin: 0 0 18px;
  padding: 0 3px;
}

.card-view .brand {
  font-size: 18px;
  letter-spacing: -.03em;
}

.loyalty-pass {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 48px #1d402227, 0 2px 5px #1d402215;
}

.pass-front {
  background:
    radial-gradient(ellipse at 100% 10%, #3b7354 0%, transparent 52%),
    linear-gradient(145deg, #183e32, #122e26);
  color: #fffaf0;
  padding: clamp(18px, 5vw, 32px);
}

.pass-heading, .pass-reward {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.pass-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #d9e9ac;
  color: #173a28;
  font-size: 23px;
}

.pass-identity h1 {
  margin: 12px 0 3px;
  font-size: clamp(24px, 5.5vw, 38px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.pass-identity p {
  margin: 0;
  color: #d1e1d3;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.pass-counter {
  margin: 0;
  text-align: right;
  line-height: 1.1;
  color: #e4efcb;
  font-variant-numeric: tabular-nums;
}

.pass-counter > span:first-child, .pass-reward h2 {
  display: block;
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pass-counter strong {
  font-size: clamp(26px, 6vw, 41px);
  letter-spacing: -.06em;
}

.pass-target {
  font-size: 14px;
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 48px));
  gap: clamp(6px, 2vw, 12px);
  margin: 24px 0;
}

.stamp {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px dashed #a5c1a9;
  border-radius: 50%;
  background: #08221955;
  color: #e4efcb;
  font-weight: 800;
  font-size: 18px;
}

.stamp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #afcbb5;
}

.stamp.is-filled {
  border: 1px solid #d9e9ac;
  background: #d9e9ac;
  color: #153427;
}

.card-progress {
  display: block;
  width: 100%;
  height: 14px;
  margin: 26px 0;
  accent-color: #d9e9ac;
}

.pass-reward {
  border-top: 1px solid #aac8ae55;
  padding-top: 16px;
  align-items: center;
}

.pass-reward h2 { color: #d1e1d3; }
.pass-reward p { margin: 0; overflow-wrap: anywhere; }
.pass-reward div > p { font-size: clamp(16px, 4.8vw, 23px); font-weight: 750; line-height: 1.2; }

.pass-reward .reward-status {
  max-width: 125px;
  border: 1px solid #c1d9ae77;
  color: #f0f6de;
  border-radius: 12px;
  padding: 6px 9px;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.pass-reward .reward-ready {
  color: #153427;
  background: #d9e9ac;
}

.pass-ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 4vw, 22px);
  background: #fcfbf0;
  padding: 14px clamp(18px, 5vw, 32px);
  border-top: 1px dashed #91a595;
}

.pass-ticket h2 {
  font-size: clamp(16px, 4vw, 22px);
  margin: 0 0 6px;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.pass-ticket p { margin: 0; font-size: 13px; line-height: 1.45; color: #465d4f; }

.pass-qr {
  width: clamp(104px, 28vw, 128px);
  height: auto;
  border-radius: 9px;
  outline: 1px solid #dde5d8;
}

.wallet-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.wallet-link {
  background: #132f26;
  color: #fffaf0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 650;
}

.card-view .pass-privacy, .card-view footer {
  color: #465d4f;
  font-size: 12px;
  margin: 12px 3px 0;
}

@media (prefers-color-scheme: dark) {
  .card-view { color: #f1f6e8; background: #101e18; }
  .card-view .pass-ticket { color: #183229; }
  .card-view .pass-privacy, .card-view footer { color: #bbcdbc; }
}

@media (max-width: 350px) {
  .pass-heading { gap: 8px; }
  .pass-reward { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .pass-reward .reward-status { justify-self: start; }
}

/* Mix custom colors into fixed light and dark bases to keep text legible. */
.card-view.brand-custom {
  background: color-mix(in srgb, var(--brand-color, #32634d) 12%, #f8faf0);
}

.brand-custom .pass-front {
  background:
    radial-gradient(ellipse at 100% 10%, color-mix(in srgb, var(--brand-color, #407352) 48%, #111914) 0%, transparent 60%),
    linear-gradient(145deg, color-mix(in srgb, var(--brand-color, #32634d) 46%, #121b16), #121a17);
}

.brand-custom :is(.pass-mark, .stamp.is-filled, .pass-reward .reward-ready) {
  background: color-mix(in srgb, var(--brand-color, #a6c263) 25%, #ecf2d1);
  color: #15231c;
}

.brand-custom .pass-ticket {
  background: color-mix(in srgb, var(--brand-color, #32634d) 7%, #fffdf4);
}

@media (prefers-color-scheme: dark) {
  .card-view.brand-custom {
    background: color-mix(in srgb, var(--brand-color, #32634d) 15%, #101713);
  }
}
