[hidden]{display:none!important}.loyalty{padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom))}.loyalty header{margin-bottom:20px}.eyebrow{font-size:11px;letter-spacing:1.4px;color:#66765c}.loyalty h1{font-size:30px;letter-spacing:-1px;line-height:1.16;margin:15px 0}.loyalty p{line-height:1.5}.action{width:100%;min-height:54px;border:1px solid #243e32;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:14px;text-decoration:none;color:inherit;font:600 17px Arial;padding:14px;cursor:pointer}.action:disabled{opacity:.5;cursor:wait}.hint{font-size:13px;color:#74816d}.status{font-size:14px;color:#697660}.greeting{display:flex;align-items:center;justify-content:space-between;gap:10px}.greeting h1{font-size:25px}.text-button{border:0;background:none;color:#6b7762;padding:12px;font:14px Arial;cursor:pointer}.balance-card{background:#243e32;color:#f8f6ed;border-radius:20px;padding:25px;display:grid;gap:10px}.balance-card strong{font-size:56px;font-weight:500;letter-spacing:-2px;line-height:1.1}.balance-card small{color:#c8d2b9;font-size:12px}.info-card{margin:14px 0;background:#fffef9;border:1px solid #e0e4d7;border-radius:17px;padding:20px}.info-card h2{font-size:19px;margin:8px 0 12px}.info-card p{font-size:14px;color:#697660;margin:0}.info-card ul{padding-left:18px;margin:0;line-height:1.5}.info-card li{margin:10px 0;font-size:15px}.loyalty nav{margin-top:14px}.loyalty nav a{font-size:16px;min-height:52px;border-width:1px}.loyalty footer{text-align:center;margin-top:24px}.loyalty footer a{color:#7b856f;font-size:14px}
#browser-code{font-size:2.25rem;letter-spacing:.15em;font-variant-numeric:tabular-nums}#entry [hidden]{display:none!important}

.scan-card{margin:0 0 14px;padding:14px 8px 12px;background:white;color:#161916;border:1px solid #dfe4d9;border-radius:18px;text-align:center}
.scan-card h2{font:600 16px/1.4 Arial,sans-serif;margin:0 0 12px}
#card-code svg{display:block;width:100%;max-width:400px;height:auto;margin:auto;background:white;shape-rendering:crispEdges}
#card-code p{margin:7px 0 0;font:16px/1.3 monospace;letter-spacing:.12em;overflow-wrap:anywhere}.scan-card a{color:#243e32}

/* Guest card — “Coffee by the window”, frame 6N7A2047. */
body:has(#account:not([hidden])) {
  --window-photo: url("assets/loyalty-window-2047.webp");
  background: #26372f;
  isolation: isolate;
}
body:has(#account:not([hidden]))::before,
body:has(#account:not([hidden]))::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(180deg, #14201b11, #18231bb3 75%),
              var(--window-photo) center / cover;
}
body:has(#account:not([hidden]))::after {
  inset-block-end: auto;
  height: clamp(255px, 47svh, 365px);
  z-index: -1;
  background: linear-gradient(180deg, #14201965, transparent 30%, #1420190a 55%, #13251ce6 99%),
              var(--window-photo) center 62% / cover;
  -webkit-mask-image: linear-gradient(black 77%, transparent);
  mask-image: linear-gradient(black 77%, transparent);
}
.loyalty:has(#account:not([hidden])) {
  padding: 0 17px max(24px, env(safe-area-inset-bottom));
}
.loyalty:has(#account:not([hidden])) header {
  height: clamp(145px, 30.5svh, 236px);
  text-align: left;
  margin: 0;
  padding: max(21px, env(safe-area-inset-top)) 5px 0;
  color: #fffdf7;
  text-shadow: 0 1px 8px #151b16b0;
}
.loyalty:has(#account:not([hidden])) header :is(.brand span, p) { color: #fff9e8; }
.loyalty:has(#account:not([hidden])) header p { margin: 2px 0; }
.loyalty:has(#account:not([hidden])) .status:empty { display: none; }
.loyalty:has(#account:not([hidden])) :is(.greeting, .status, .text-button, footer a) {
  color: white;
  text-shadow: 0 1px 5px #102419;
}
.loyalty .greeting h1 { font-size: 23px; margin: 12px 0; }
.loyalty:has(#account:not([hidden])) :is(.secondary, nav a) {
  color: #243e32;
  background: #fffef9;
}
@media (min-width: 700px) {
  body:has(#account:not([hidden]))::after {
    background-size: cover, min(100%, 760px) auto;
    background-repeat: no-repeat;
  }
}

#signup{display:grid;gap:14px}#signup label{display:grid;gap:6px;font-weight:600}
#signup input:not([type=checkbox]){box-sizing:border-box;width:100%;padding:12px;border:1px solid #819184;border-radius:9px;font:inherit;font-size:16px}
#signup .accept{display:flex;align-items:flex-start;gap:10px;font-size:14px;font-weight:400}#signup .accept input{width:18px;height:18px;flex:none}#signup .hint{margin:0}
