.stamp-card-page { min-height: 100vh; background: #e4efdb; color: #292d24; }
.stamp-card-page .site-header { background: #f7f1df; border-bottom: 1px solid #d1c49f; }
.stamp-card-page .site-header nav a { color: #295c36; font-weight: 700; font-size: 12px; }
.stamp-app { width: min(100% - 40px, 690px); margin: 0 auto; padding: 42px 0 56px; }
.stamp-app-heading { max-width: 560px; margin: 0 auto 25px; text-align: center; }
.stamp-app-heading>p:first-child { margin: 0 0 8px; color: #a34024; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.stamp-app-heading h1 { margin: 0; font-size: clamp(34px, 7vw, 53px); line-height: 1.14; letter-spacing: -.06em; }
.stamp-app-intro { max-width: 430px; margin: 14px auto 0; color: #4c5147; font-size: 14px; line-height: 1.8; }
.live-card { position: relative; z-index: 1; isolation: isolate; padding: clamp(20px, 5vw, 34px); border: 1px solid #bfb18a; border-radius: 5px; background: linear-gradient(145deg, #fffefa 0%, #fff9eb 56%, #f6ecd3 100%); box-shadow: inset 0 2px 0 rgba(255,255,255,.98), inset 1px 0 0 rgba(255,255,255,.6), 0 0 0 2px #eee3ca, 0 4px 0 #d2c39d, 0 8px 0 #c2b187, 0 18px 28px rgba(47,57,37,.22); }
.live-card-stock { position: absolute; z-index: 0; inset: 4px -9px -11px 8px; border: 1px solid #b9a97e; border-radius: 5px; background: repeating-linear-gradient(180deg, #d5c6a2 0 1px, #e8ddc2 1px 3px); box-shadow: 0 11px 20px rgba(47,57,37,.16); transform: rotate(.65deg); pointer-events: none; }
.live-card > *:not(.live-card-stock) { position: relative; z-index: 1; }
.live-card::before, .live-card::after { position: absolute; z-index: 2; top: 44%; width: 22px; height: 22px; content: ""; border-radius: 50%; background: #e4efdb; }
.live-card::before { left: -12px; }
.live-card::after { right: -12px; }
.live-card-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 16px; border-bottom: 1px dashed #cabea0; }
.live-card-kicker { margin: 0 0 4px; color: #a34024; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.live-card-top h2 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.live-card-count { flex: none; min-width: 64px; margin: 0; padding: 8px 10px; border: 1px solid #c8d6bd; border-radius: 4px; background: linear-gradient(180deg, #edf4e8, #dce9d5); box-shadow: 0 3px 0 #c3d2b8, inset 0 1px 0 rgba(255,255,255,.85); color: #295c36; font-size: 24px; font-weight: 800; text-align: center; }
.live-card-count small { font-size: 10px; }
.live-stamp-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 4vw, 30px); margin: 23px 0 18px; padding: 0; list-style: none; }
.live-stamp-slot { min-width: 0; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 2px dashed #a99c7e; border-radius: 50%; color: #77776c; background: radial-gradient(circle at 32% 24%, #fffefa 0%, #f8f2e3 58%, #eee3cc 100%); box-shadow: inset 0 4px 0 rgba(255,255,255,.88), inset 0 -7px 12px rgba(92,76,42,.13), 0 2px 0 #e4d8bd; text-align: center; }
.live-stamp-slot:nth-child(3) { border-color: #8ea584; background: radial-gradient(circle at 32% 24%, #fbfff8 0%, #edf4e8 58%, #dce8d6 100%); }
.live-stamp-ink { width: 54px; height: 54px; padding: 5px; display: grid; place-items: center; border: 1px solid #bcae88; border-radius: 50%; background: linear-gradient(145deg, #fcf7e9, #e5dac0); box-shadow: inset 2px 2px 5px rgba(97,79,41,.15), inset -2px -2px 4px rgba(255,255,255,.82), 0 3px 0 #d4c6a4; color: #8e8265; font-size: 12px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.live-stamp-label { max-width: 90%; color: #4a4b42; font-size: 10px; font-weight: 700; }
.live-stamp-date { color: #73756a; font-size: 9px; }
.live-stamp-slot.is-stamped { border-style: solid; border-color: var(--stamp-color, #e95b34); color: var(--stamp-color, #e95b34); animation: live-stamp-hit .34s ease-out both; }
.live-stamp-slot.is-stamped:nth-child(3n + 2) { --stamp-color: #3c72b9; }
.live-stamp-slot.is-stamped:nth-child(3n) { --stamp-color: #295c36; }
.live-stamp-slot.is-stamped .live-stamp-ink { border-color: var(--stamp-color, #e95b34); background: linear-gradient(145deg, rgba(255,255,255,.18), transparent 62%), var(--stamp-color, #e95b34); box-shadow: inset 0 2px 3px rgba(255,255,255,.18), 0 3px 0 rgba(41,45,36,.28); color: #fff; }
@keyframes live-stamp-hit { 0% { transform: scale(.88) rotate(-6deg); } 65% { transform: scale(1.04) rotate(2deg); } 100% { transform: scale(1); } }
.live-card-rule { display: inline-block; margin: 0; padding: 8px 11px; border: 1px solid #c8d6bd; border-radius: 3px; background: linear-gradient(180deg, #edf4e8, #dce9d5); box-shadow: 0 2px 0 #c5d3ba; color: #295c36; font-size: 11px; font-weight: 700; }
.live-card-message { margin: 15px 0 0; color: #4c5147; font-size: 12px; line-height: 1.7; }
.card-action { margin-top: 25px; padding: 24px clamp(20px, 5vw, 32px); background: #fff9ec; border-left: 4px solid #e95b34; }
.card-action[hidden] { display: none; }
.card-action h2 { margin: 0 0 9px; font-size: 22px; letter-spacing: -.04em; }
.card-action>p:not(.section-label):not(.field-note) { color: #4c5147; font-size: 13px; line-height: 1.8; }
.card-action .section-label { margin: 0 0 5px; color: #a34024; font-size: 10px; font-weight: 800; }
.card-action label { display: block; margin: 16px 0 7px; color: #34372d; font-size: 12px; font-weight: 800; }
.card-action input:not([type=checkbox]), .card-action select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #8c8a7d; border-radius: 2px; background: #fffdf7; color: #292d24; font: inherit; font-size: 16px; }
.card-action input:focus-visible, .card-action select:focus-visible, .card-action button:focus-visible { outline: 3px solid #3c72b9; outline-offset: 3px; }
.amount-field { display: flex; align-items: baseline; justify-content: center; gap: 8px; min-height: 88px; border-bottom: 1px solid #d8d1c0; }
.amount-field input { width: min(100%, 440px); min-width: 0; padding: 0 !important; border: 0 !important; background: transparent !important; text-align: right; font-size: clamp(50px, 13vw, 72px) !important; font-weight: 750 !important; line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.amount-field input::placeholder { color: #a9aa9e; }
.amount-field span { color: #4c5147; font-weight: 700; }
.amount-field.is-updated input { animation: amount-pop .2s cubic-bezier(.2,1.25,.35,1) both; }
@keyframes amount-pop { 0% { transform: scale(.94); color: #e95b34; } 100% { transform: scale(1); color: #292d24; } }
.amount-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; max-width: 430px; margin: 16px auto 0; }
.amount-keypad button { min-height: 58px; border: 1px solid #d2c7b1; border-radius: 9px; background: linear-gradient(180deg, #fffefa 0%, #f8f3e8 100%); box-shadow: 0 4px 0 #d2c7b1, 0 6px 10px rgba(54,50,34,.06); color: #292d24; font: inherit; font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background .12s ease, box-shadow .12s ease, transform .12s ease; }
.amount-keypad button:hover { background: #fffefa; transform: translateY(-1px); }
.amount-keypad button:active { background: #f2e5c9; box-shadow: 0 1px 0 #d2c7b1, 0 2px 4px rgba(54,50,34,.08); transform: translateY(3px) scale(.98); }
.amount-keypad button[data-key] { background: linear-gradient(180deg, #edf3e8 0%, #e1ead9 100%); color: #295c36; font-size: 17px; }
.amount-keypad button[data-key]:active { background: #d3e2ca; }
.amount-keypad button:focus-visible, .amount-next:focus-visible { outline: 3px solid #3c72b9; outline-offset: 2px; }
.amount-entry-note { text-align: center; }
.amount-next { display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 10px; background: #e95b34; border-color: #e95b34; box-shadow: 0 4px 0 #bc4525, 0 7px 12px rgba(159,57,31,.16); color: #fff; transition: background-color .12s ease, box-shadow .12s ease, transform .12s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.amount-next:hover { background: #ed653e; transform: translateY(-1px); }
.amount-next:active { box-shadow: 0 1px 0 #bc4525, 0 2px 4px rgba(159,57,31,.12); transform: translateY(3px) scale(.99); }
.amount-next-mark { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 25px; line-height: 1; }
.cashier-turn { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; width: 100vw; min-height: 100vh; padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); overflow-y: auto; background: #e4efdb; color: #252a22; transform: rotate(0deg) scale(.98); opacity: 0; transition: transform .48s cubic-bezier(.2,.78,.22,1), opacity .24s ease; backface-visibility: hidden; }
.cashier-turn[hidden] { display: none; }
.cashier-turn.is-visible { transform: rotate(180deg) scale(1); opacity: 1; }
.cashier-turn-inner { width: min(100%, 560px); margin: auto; text-align: center; }
.cashier-turn-brand { margin: 0 0 16px; color: #a34024; font-size: 12px; font-weight: 800; }
.cashier-turn h3 { margin: 0; font-size: clamp(22px, 5vw, 30px); letter-spacing: -.04em; }
.cashier-turn-shop { margin: 10px 0 0; font-size: 16px; font-weight: 700; }
.cashier-turn-amount { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 10px 0 8px; font-size: clamp(66px, 18vw, 100px); font-weight: 760; line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cashier-turn.is-visible .cashier-turn-amount { animation: amount-pop .24s .3s cubic-bezier(.2,1.2,.35,1) both; }
.cashier-turn-amount small { font-size: 23px; letter-spacing: 0; }
.cashier-turn-instruction { margin: 10px 0 0; font-size: 15px; font-weight: 700; line-height: 1.65; }
.cashier-turn-note { margin: 14px 0 0; color: #5b6256; font-size: 11px; line-height: 1.5; }
.cashier-turn .claim-qr { display: grid; grid-template-columns: minmax(100px, 154px) 1fr; align-items: center; gap: 12px; max-width: 460px; margin: 16px auto 0; padding: 12px; border-color: #c7d5bd; }
.cashier-turn .claim-qr canvas { width: 100%; max-width: 154px; }
.cashier-turn .claim-qr p { margin: 0; font-size: 13px; }
.cashier-turn .claim-qr[hidden] { display: none; }
.cashier-turn[aria-hidden="true"] { pointer-events: none; }
.privacy-copy { max-height: 220px; overflow-y: auto; margin: 14px 0; padding: 13px; border: 1px solid #d7caa7; background: #fffdf7; color: #45483e; font-size: 12px; line-height: 1.8; white-space: pre-wrap; }
.consent-line { display: flex !important; align-items: start; gap: 9px; }
.consent-line input { width: 20px; height: 20px; flex: none; accent-color: #295c36; }
.field-note { margin: 6px 0 12px; color: #66685f; font-size: 11px; line-height: 1.7; }
.card-action .button { width: 100%; min-height: 48px; margin-top: 16px; cursor: pointer; font-weight: 800; }
.card-action .button:disabled { cursor: not-allowed; opacity: .55; }
.stamp-app-footer { margin: 29px 0 0; text-align: center; font-size: 12px; }
.stamp-app-footer a { color: #295c36; font-weight: 700; }
@media (max-width: 600px) {
  .stamp-app { width: min(100% - 28px, 690px); padding: 27px 0 42px; }
  .stamp-app-intro { font-size: 12px; }
  .live-card { padding: 20px 16px; }
  .live-card-top h2 { font-size: 20px; }
  .live-card-count { min-width: 54px; padding: 6px 8px; font-size: 20px; }
  .live-stamp-row { gap: 7px; margin-top: 19px; }
  .live-stamp-ink { width: clamp(36px, 10vw, 48px); height: clamp(36px, 10vw, 48px); font-size: 10px; }
  .live-stamp-label { font-size: 9px; }
  .live-card-rule { font-size: 10px; }
  .card-action { margin-top: 19px; padding: 21px 17px; }
  .amount-keypad { gap: 7px; margin-top: 12px; }
  .amount-keypad button { min-height: 58px; }
  .cashier-turn { padding-right: 20px; padding-left: 20px; }
  .cashier-turn .claim-qr { grid-template-columns: 116px 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .live-stamp-slot.is-stamped { animation: none; } .cashier-turn { transition: none; } .amount-keypad button, .amount-next { transition: none; } .amount-field.is-updated input, .cashier-turn.is-visible .cashier-turn-amount { animation: none; } }
.claim-qr{margin:1.25rem auto;padding:1rem;max-width:320px;background:#fffdf7;border:1px solid #d9d0be;text-align:center}.claim-qr canvas{display:block;width:min(100%,260px);height:auto;margin:0 auto}.claim-qr p{font-weight:700;line-height:1.6}
