.loyalty-live .card-face{min-height:370px}.loyalty-live .card-face h2{font-size:32px;margin:18px 0}.loyalty-live #stamps{grid-template-columns:repeat(5,1fr);gap:10px;margin:22px 0}.loyalty-live .stamp{width:100%;aspect-ratio:1;height:auto;font-size:12px;display:grid;place-items:center}.loyalty-live .stamp.filled{background:#fff;color:#c5352d;transform:none;border-color:#fff}.loyalty-live .card-bottom{align-items:start}.loyalty-live #reward-state{max-width:45%;text-align:right;line-height:1.5}.loyalty-action{border:0;background:#d33a32;color:white;min-height:48px;border-radius:30px;padding:14px 20px;font:650 13px system-ui;cursor:pointer}.loyalty-action:disabled{opacity:.5}.loyalty-action.secondary{background:#f0efeb;color:#252525;border:1px solid #ddd}.loyalty-tools{display:flex;gap:10px;flex-wrap:wrap;margin:17px 0}.loyalty-note{font:12px/1.6 system-ui;color:#686868;margin:15px 0}.customer-code{border:1px solid #ddd;border-radius:18px;background:white;padding:20px;text-align:center;margin-top:20px}.customer-code h2{font:750 20px system-ui;margin:0 0 8px}.customer-code p{font:12px/1.6 system-ui;color:#777}.customer-code #customer-qr{max-width:205px;margin:15px auto}.customer-code svg{display:block;width:100%;height:auto}.customer-code code{font:700 18px monospace;letter-spacing:.12em}#private-card-link{font:12px system-ui;overflow-wrap:anywhere}.loyalty-live .back p{max-width:80%}.panel-page{margin:0;background:#f7f7f4;color:#171717;font:16px system-ui;padding:24px;min-height:100svh;box-sizing:border-box}.panel-main{max-width:480px;margin:auto}.panel-brand{display:flex;gap:15px;align-items:center}.panel-brand img{width:60px;height:60px;border-radius:50%}.panel-brand small{display:block;color:#777;margin-top:5px}.panel-box{background:white;padding:22px;border:1px solid #ddd;border-radius:20px;margin:24px 0}.panel-box h2{font-size:23px;margin:0 0 12px}.panel-box label{display:block;font-size:13px;margin:16px 0 8px}.panel-box input{box-sizing:border-box;width:100%;min-height:48px;font:16px system-ui;border-radius:12px;border:1px solid #bbb;padding:12px}.panel-box button{margin-top:15px;width:100%}.panel-box .panel-balance{font:800 46px system-ui;color:#c5352d;margin:20px 0 0}.panel-notice{font:13px/1.6 system-ui;min-height:24px}.panel-actions{display:flex;flex-direction:column;gap:4px}.panel-page [hidden]{display:none!important}.panel-exit{background:none;border:0;text-decoration:underline;font:13px system-ui;cursor:pointer;color:#777}.panel-confirm{background:#fff5ef;border:1px solid #f0cabd;border-radius:14px;padding:16px;margin-top:18px}.panel-confirm p{font-size:14px;line-height:1.6}

/* Face switching avoids hidden 3D layers remaining invisible in mobile Safari. */
.loyalty-live .card-stage{perspective:none}
.loyalty-live .loyalty-card,.loyalty-live .loyalty-card.flipped{transform:none;transform-style:flat;transition:none;min-height:370px}
.loyalty-live .card-face,.loyalty-live .back{position:relative;inset:auto;transform:none;backface-visibility:visible;-webkit-backface-visibility:visible;animation:deiby-face-in .2s ease-out both}
.loyalty-live .card-face[hidden]{display:none!important}
.loyalty-live .flip-button{position:relative;min-height:44px;font-size:13px;font-weight:650;touch-action:manipulation}
@keyframes deiby-face-in{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.loyalty-live .card-face{animation:none}}

.loyalty-live .loyalty-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:22px 0}
.loyalty-live .loyalty-tools button{width:100%;min-width:0;padding:14px 10px;line-height:1.4}
@media(max-width:360px){.loyalty-live .loyalty-tools{grid-template-columns:1fr;gap:14px}}

/* Large customer QR with the encoder's white quiet zone preserved. */
.loyalty-live .customer-code #customer-qr{width:100%;max-width:300px;margin:20px auto;background:#fff}
.loyalty-live .customer-code #customer-qr svg{display:block;width:100%;height:auto;aspect-ratio:1}
