body { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
body.reward-page { background:#f3e7cf; }
body.reward-page .experience { width:100%; max-width:none; padding:0; }
#app { width:100%; height:100%; min-height:0; display:grid; place-items:center; }
@supports (height:100dvh) { #app { height:100dvh; } }
.experience { width:min(100%, 390px); height:100%; min-height:0; padding:24px 18px; display:flex; flex-direction:column; justify-content:center; gap:18px; }
.experience.full-screen-experience { width:100%; max-width:none; padding:0; gap:0; }
.card { background:var(--color-card); border-radius:var(--radius-card); box-shadow:var(--shadow-card); padding:28px 22px; }
.form-card { max-height:100%; overflow:hidden; }
.registration-card { height:100%; min-height:0; justify-content:center; text-align:center; padding:clamp(14px, 3vh, 28px) clamp(16px, 5vw, 28px); }
.welcome-logo { width:clamp(72px, 19vh, 112px); aspect-ratio:1; display:block; margin:0 auto clamp(6px, 1.5vh, 14px); border-radius:50%; object-fit:cover; }
.registration-card h1 { color:#d63d2d; font-size:clamp(26px, 6.5vh, 36px); line-height:1.08; margin-bottom:clamp(2px, 1vh, 8px); }
.registration-card .muted { margin:0; font-size:clamp(14px, 2.6vh, 18px); }
.registration-card form { margin-top:clamp(12px, 2.5vh, 22px); gap:clamp(6px, 1.2vh, 12px); text-align:left; }
.registration-card .field { display:flex; align-items:center; gap:12px; min-height:clamp(44px, 7vh, 58px); padding:0 16px; border:1px solid #d9cebe; border-radius:15px; background:#fffdf9; }
.registration-card .field input { flex:1; min-width:0; min-height:0; padding:0; border:0; background:transparent; outline:0; }
.field-icon { width:25px; height:25px; flex:0 0 25px; fill:none; stroke:#aa9a87; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.5; }
.registration-card form > .button { width:100%; min-height:clamp(44px, 6.5vh, 52px); margin-top:clamp(4px, 1vh, 12px); }
.eyebrow { color:var(--color-primary); font-size:11px; font-weight:700; letter-spacing:1.5px; margin:0 0 8px; }
h1 { font-size:28px; line-height:1.08; letter-spacing:.01em; margin:0 0 10px; }
p { line-height:1.4; }
.muted { color:#6c7468; }
form { display:grid; gap:12px; margin-top:20px; }
label { display:grid; gap:5px; font-size:13px; font-weight:600; }
input { min-height:42px; border:1px solid #d9cebe; border-radius:12px; padding:0 12px; background:#fffdf9; color:var(--color-ink); font-size:16px; }
.check { display:flex; align-items:center; gap:8px; font-size:12px; font-weight:400; }
.check label { display:block; font-weight:400; }
.check input { min-height:auto; }
.legal-link { display:inline; padding:0; border:0; background:none; color:var(--color-primary); font:inherit; font-weight:700; text-decoration:underline; cursor:pointer; }
.modal { position:fixed; inset:0; display:grid; place-items:center; padding:18px; background:#26352a66; backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); z-index:10; }
.modal-card { width:min(100%,390px); background:var(--color-card); border-radius:22px 22px 12px 12px; padding:22px; box-shadow:var(--shadow-card); }
.modal-card h2 { margin:0 0 34px; font-size:22px; line-height:1.1; text-align:center; }
.legal-modal { z-index:30; padding:12px; }
.legal-card { position:relative; width:min(100%,520px); max-height:calc(100dvh - 24px); overflow:hidden; display:flex; flex-direction:column; background:var(--color-card); border-radius:22px; padding:24px 18px 18px; box-shadow:var(--shadow-card); }
.legal-card h2 { flex:0 0 auto; margin:0 34px 14px 0; color:#d63d2d; font-size:22px; line-height:1.1; }
.legal-close { position:absolute; top:8px; right:12px; width:38px; height:38px; border:0; border-radius:50%; background:transparent; color:var(--color-primary); font-size:30px; line-height:1; cursor:pointer; }
.legal-content { overflow:auto; padding-right:6px; color:var(--color-ink); font-size:12px; line-height:1.5; white-space:pre-wrap; text-align:left; }
.birthday-wheels { position:relative; display:grid; grid-template-columns:minmax(0, 1.9fr) minmax(0, .9fr); gap:14px; width:calc(100% - 20px); margin:0 auto 26px; }
.wheel { height:220px; overflow-y:auto; overflow-x:hidden; scroll-snap-type:y mandatory; scrollbar-width:none; border-radius:20px; background:#fffdf9; overscroll-behavior-x:none; overscroll-behavior-y:contain; -webkit-overflow-scrolling:touch; scroll-behavior:smooth; touch-action:pan-y; }
.wheel::-webkit-scrollbar { display:none; }
.wheel-spacer { height:88px; }
.wheel-item { height:44px; display:grid; place-items:center; scroll-snap-align:center; color:#9a9c95; font-size:16px; transition:color 150ms ease, transform 150ms ease; }
.wheel-item.active { width:calc(100% - 12px); margin-inline:auto; color:var(--color-ink); font-size:20px; font-weight:600; border:1px solid #d9cebe; border-radius:22px; background:#fffdf9; }
.birthday-modal #birthday-confirm { width:100%; margin-top:30px; }
.button { min-height:46px; border:0; border-radius:12px; padding:0 18px; font-weight:600; letter-spacing:.01em; cursor:pointer; background:var(--color-primary); color:#fff; }
.button:disabled { background:#c7c8c1; cursor:not-allowed; }
.button.is-incomplete { background:#c7c8c1; cursor:pointer; }
.button.secondary { background:#e9dfd0; color:var(--color-ink); }
.result-card { display:flex; flex-direction:column; align-items:center; gap:22px; text-align:center; }
.duplicate-result .result-icon { background:#f4d35e; color:#6e5700; }
.success-result .result-icon { background:#5aa843; color:#fff; }
.invalid-result .result-icon { color:#d63d2d; }
.invalid-result .button { width:100%; }
.result-card h1 { max-width:320px; margin:0 auto; text-wrap:balance; }
.result-card p { max-width:290px; margin:0 auto; text-wrap:balance; }
.result-transition-image { width:100%; max-width:none; max-height:none; aspect-ratio:1; margin:0; object-fit:cover; display:block; border-radius:14px; background:#fffaf2; }
.staff-result { padding:24px 20px; }
.staff-result h1 { color:#d63d2d; font-size:clamp(24px, 6.5vw, 31px); }
.staff-details { display:grid; gap:10px; margin:22px 0; }
.staff-details > div { display:grid; gap:4px; padding:14px 16px; border:1px solid #d9cebe; border-radius:14px; background:#fffdf9; text-align:left; }
.staff-details span { color:#6c7468; font-size:11px; font-weight:400; letter-spacing:.7px; text-transform:uppercase; }
.staff-details strong { color:var(--color-ink); font-size:18px; }
.staff-result .button { width:100%; }
.duplicate-result { padding-block:32px; }
.duplicate-result .button { width:100%; }
.sticker-transition { width:min(100%, 390px); max-height:calc(100% - 36px); overflow:auto; display:flex; flex-direction:column; justify-content:center; gap:18px; padding:28px 22px; background:var(--color-card); border-radius:var(--radius-card); box-shadow:var(--shadow-card); text-align:center; }
.sticker-transition h1 { flex:0 0 auto; color:#d63d2d; font-size:clamp(17px, 5vw, 22px); line-height:1.05; letter-spacing:.01em; margin:0 auto; max-width:none; white-space:nowrap; }
.transition-image { width:100%; aspect-ratio:1; min-height:0; object-fit:cover; display:block; border-radius:var(--radius-card); box-shadow:var(--shadow-card); background:#fffaf2; -webkit-touch-callout:none; -webkit-user-drag:none; user-select:none; }
.sticker-transition.full-screen { position:relative; width:100%; max-width:none; max-height:none; height:100%; overflow:hidden; padding:0; gap:0; background:transparent; box-shadow:none; border-radius:0; }
.sticker-transition.full-screen .transition-image { position:absolute; inset:0; width:100%; height:100%; aspect-ratio:auto; object-fit:contain; object-position:center top; border-radius:0; box-shadow:none; }
.sticker-transition.full-screen .transition-actions { position:absolute; left:clamp(18px, 6vw, 56px); right:clamp(18px, 6vw, 56px); bottom:clamp(18px, 5vh, 48px); z-index:1; width:auto; }
.transition-actions { flex:0 0 auto; display:grid; gap:16px; }
.result-icon { width:72px; height:72px; margin:0 auto 18px; display:grid; place-items:center; border-radius:50%; background:#e7f2de; color:var(--color-primary); font-size:38px; font-weight:900; }
.album { height:100%; min-height:0; display:flex; flex-direction:column; gap:8px; }
.album header { display:flex; justify-content:space-between; align-items:end; }
.album header h1 { margin:0; }
.album header h1 { color:#d63d2d; text-align:center; font-size:clamp(22px, 7vw, 30px); }
.album header strong { color:var(--color-primary); }
.album header { flex:0 0 auto; display:block; padding:4px 8px 8px; text-align:center; }
.album header h1 { color:#d63d2d; text-align:center; font-size:clamp(24px, 7vw, 34px); line-height:1; white-space:nowrap; margin:0 0 8px; }
.album-name { max-width:100%; margin:0 0 3px; color:var(--color-primary); font-size:clamp(14px, 3.8vw, 18px); line-height:1.1; overflow-wrap:anywhere; }
.album-subtitle { max-width:330px; margin:0 auto; color:#6c7468; font-size:clamp(16px, 4vw, 20px); line-height:1.2; font-weight:500; white-space:nowrap; }
.sticker-grid { flex:1 1 auto; min-height:0; display:grid; grid-template-columns:repeat(3, 1fr); grid-template-rows:repeat(5, minmax(0, 1fr)); gap:5px 9px; padding:2px 4px; }
.sticker-slot { width:min(86%, 86px); height:auto; max-width:100%; aspect-ratio:1; justify-self:center; align-self:center; display:grid; place-items:center; overflow:hidden; border:2px dotted #d9cebe; border-radius:50%; background:#fffaf2; color:#d9cebe; font-size:clamp(18px,7vw,30px); font-weight:900; }
.sticker-slot.collected { background:#fff; box-shadow:none; }
.sticker-slot img { width:82%; height:82%; object-fit:contain; border-radius:50%; display:block; -webkit-touch-callout:none; -webkit-user-drag:none; user-select:none; }
.sticker-slot:not(.collected) img { opacity:.24; filter:grayscale(1); }
.sticker-slot.collected img { opacity:1; filter:none; }
.progress-track { flex:0 0 46px; position:relative; width:100%; margin:0; }
.progress-rail { position:absolute; left:0; right:0; top:50%; height:8px; transform:translateY(-50%); overflow:hidden; border:1px solid #d9cebe; border-radius:999px; background:#fffaf2; }
.progress-fill { width:calc(var(--progress) * 100%); height:100%; border-radius:inherit; background:var(--color-primary); transition:width 500ms ease; }
.progress-node { position:absolute; top:50%; width:37px; height:37px; transform:translate(-50%, -50%); display:grid; place-items:center; border:1px solid #d9cebe; border-radius:50%; background:#fffaf2; z-index:1; }
.progress-node.complete { background:#fff; border-color:#cfc3b2; }
.progress-cookie { width:31px; height:31px; object-fit:contain; display:block; pointer-events:none; }
.next-benefit { flex:0 0 auto; margin:0; padding:6px 10px; border:1px solid #d9cebe; border-radius:12px; text-align:center; font-size:12px; font-weight:500; }
.album footer, .reward footer { flex:0 0 auto; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.album footer .button:only-child { grid-column:1 / -1; }
.scanner { position:fixed; inset:0; width:100%; height:100%; background:#111; color:#fff; display:grid; place-items:center; text-align:center; z-index:20; }
.camera { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:#111; }
.scanner .close { position:absolute; top:18px; right:18px; border:0; background:#ffffff22; color:#fff; border-radius:50%; width:42px; height:42px; font-size:28px; z-index:2; }
.scan-frame { width:min(78vw,290px); aspect-ratio:1; border:3px solid #fff; border-radius:22px; display:grid; place-items:center; box-shadow:0 0 0 999px #0008; z-index:1; }
.scan-frame span { background:#111b; padding:8px; font-size:13px; }
.scan-frame span:empty { display:none; }
.scanner-invalid { position:absolute; left:18px; right:18px; bottom:12%; display:grid; gap:4px; padding:14px 16px; border:2px solid #c9382d; border-radius:14px; background:#8f211dcc; color:#fff; z-index:3; text-align:center; }
.scanner-invalid strong { font-size:18px; }
.scanner-invalid small { font-size:12px; }
.instructions-modal { background:#26352acc; }
.instructions-card { position:relative; width:min(100%,390px); max-height:calc(100% - 24px); overflow:hidden; background:#fffaf2; border:1px solid #ddcdbb; border-radius:24px; padding:28px 24px 18px; box-shadow:var(--shadow-card); }
.instructions-card h2 { color:#d63d2d; text-align:center; font-size:clamp(23px, 6.5vw, 29px); line-height:1.08; margin:0 0 12px; }
.instruction-close { position:absolute; top:9px; right:12px; min-width:38px; min-height:38px; padding:0; border:0; background:none; color:var(--color-primary); font-size:30px; font-weight:700; cursor:pointer; }
.instruction-timer { font-size:14px; }
.instruction-dismiss[hidden], .instruction-timer[hidden] { display:none; }
.instruction-close:disabled { color:#a9a995; cursor:wait; }
.instruction-cookies { width:100%; height:auto; max-height:92px; object-fit:contain; display:block; margin:0 auto 10px; }
.instruction-step { display:grid; grid-template-columns:34px 30px minmax(0, 1fr); align-items:center; gap:9px; border-top:1px dashed #ddcdbb; padding:10px 0; }
.instruction-step b { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:var(--color-primary); color:#fff; font-size:20px; }
.instruction-icon { width:28px; height:28px; fill:none; stroke:#917b63; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.instruction-step p { max-width:245px; margin:0; color:#26352a; font-size:clamp(12px, 3.4vw, 15px); font-weight:500; line-height:1.3; }
.demo-codes { display:grid; gap:8px; place-items:center; }
.demo-codes small { opacity:.75; }
.reward { width:100%; max-width:100%; height:100%; margin:0; display:grid; grid-template-rows:auto auto minmax(0,1fr) auto auto; gap:14px; text-align:center; align-items:stretch; align-content:stretch; min-height:0; overflow-y:auto; overflow-x:hidden; padding:8px clamp(12px, 4vw, 24px) max(8px, env(safe-area-inset-bottom)); background:transparent; }
.reward > * { min-width:0; min-height:0; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.reward-copy { flex:0 0 auto; }
.reward-copy h1 { margin-bottom:6px; }
.reward-copy p:last-child { margin:0; }
.reward .ticket { grid-row:1; width:100%; max-width:100%; height:auto; aspect-ratio:1200 / 720; min-width:0; justify-self:center; border:0; background:transparent; perspective:900px; position:relative; padding:0; color:#fff; cursor:pointer; filter:drop-shadow(0 10px 12px #9c785440); }
.ticket-front, .ticket-back { position:absolute; inset:0; display:grid; place-items:center; border-radius:0; backface-visibility:hidden; background:transparent; box-shadow:none; padding:0; transition:transform 450ms ease; overflow:hidden; }
.ticket-front img { width:100%; max-width:100%; height:100%; object-fit:contain; display:block; }
.ticket-back { transform:rotateY(180deg); background:transparent; }
.ticket-back canvas { width:78%; height:78%; object-fit:contain; display:block; }
.ticket.flipped .ticket-front { transform:rotateY(180deg); }.ticket.flipped .ticket-back { transform:rotateY(360deg); }
.reward-truck { display:none; }
.reward-location-wrap { grid-row:2; position:relative; width:100%; max-width:100%; height:auto; aspect-ratio:1200 / 961; min-height:0; margin:8px 0 0; justify-self:center; }
.reward-location { width:100%; height:100%; object-fit:contain; object-position:center; display:block; }
.reward-location-wrap > .button { position:absolute; left:12px; right:12px; bottom:clamp(6px, 1.5dvh, 10px); width:calc(100% - 24px); height:clamp(32px, 5dvh, 38px); min-height:0; padding-inline:10px; font-size:clamp(11px, 3.2vw, 13px); }
.instagram-button { grid-row:4; width:100%; height:46px; min-height:0; justify-self:stretch; display:flex; align-items:center; justify-content:center; gap:8px; padding:0 16px; border:0; border-radius:999px; background:linear-gradient(100deg,#feda75,#fa7e1e 28%,#d62976 58%,#962fbf 80%,#4f5bd5); box-shadow:0 4px 12px #962fbf33; color:#fff; font-size:14px; font-weight:700; text-decoration:none; }
.instagram-button svg { width:23px; height:23px; flex:0 0 23px; padding:3px; border-radius:6px; background:#fff; }
.reward-collection-button { grid-row:5; position:static; width:100%; height:34px; min-height:0; border:1px solid var(--color-primary); border-radius:999px; background:transparent; color:var(--color-primary); font-size:12px; font-weight:500; }
.reward-qr-modal { position:fixed; inset:0; z-index:30; display:grid; grid-template-rows:minmax(0,1fr) auto auto; align-items:center; justify-items:center; gap:clamp(10px, 3vh, 18px); min-height:0; overflow:auto; padding:clamp(16px, 4dvh, 36px) 20px max(16px, env(safe-area-inset-bottom)); background:#f3e7cf; }
.reward-qr-modal[hidden] { display:none; }
.reward-qr-close { position:absolute; top:16px; right:18px; width:42px; height:42px; border:0; border-radius:50%; background:#26352a; color:#fff; font-size:28px; line-height:1; cursor:pointer; }
.reward-qr-logo { width:clamp(110px, 28vw, 150px); height:auto; max-height:clamp(34px, 8dvh, 54px); align-self:center; object-fit:contain; display:block; mix-blend-mode:multiply; }
.reward-qr-panel { width:min(88vw,42dvh,420px); max-width:100%; min-width:0; aspect-ratio:1; display:flex; align-items:center; justify-content:center; padding:clamp(10px, 3vw, 18px); border-radius:22px; background:#fff; box-shadow:var(--shadow-card); overflow:hidden; }
.reward-qr-panel img { width:100%; height:auto; max-width:100%; display:block; aspect-ratio:1; object-fit:contain; }
.reward-legal { width:min(100%,390px); margin:0; color:#6c7468; font-size:11px; line-height:1.3; text-align:center; }
@media (max-height:650px) { .experience { padding:12px; gap:10px; } .card { padding:18px; } h1 { font-size:24px; } form { gap:7px; margin-top:10px; } input { min-height:36px; } .button { min-height:40px; } }
@media (max-height:650px) {
  html.registration-page, body.registration-page { height:auto; min-height:100%; overflow-y:auto; overflow-x:hidden; }
  body.registration-page #app { height:auto; min-height:100vh; align-items:start; }
  body.registration-page .experience { height:auto; min-height:100vh; justify-content:flex-start; }
  body.registration-page .registration-card { height:auto; max-height:none; overflow:visible; }
}
.loading { display:grid; gap:16px; place-items:center; text-align:center; }
.loading-mark { width:72px; height:72px; border:7px solid #d8cbb9; border-top-color:var(--color-primary); border-radius:50%; animation:spin 900ms linear infinite; }
.loading p { margin:0; font-weight:700; }
@keyframes spin { to { transform:rotate(360deg); } }
