:root{--red:#E6002D;--yellow:#FABE00;--navy:#17233b;--blue:#0b4b80;--ink:#172033;--muted:#6f7785;--bg:#f5f7fa;--card:#fff;--line:#e7eaf0;--green:#138a5b;--shadow:0 12px 34px rgba(23,32,51,.08);--radius:20px;--safe-bottom:env(safe-area-inset-bottom,0px)}*{box-sizing:border-box}html{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;color:var(--ink);background:var(--bg)}body{margin:0;min-height:100vh;background:linear-gradient(180deg,#fff 0,#f7f8fb 260px,#f5f7fa 100%)}a{text-decoration:none;color:inherit}button,input,textarea{font:inherit}.demo-ribbon{position:fixed;z-index:99;right:10px;top:8px;background:rgba(23,35,59,.9);color:#fff;font-size:10px;letter-spacing:.08em;padding:5px 9px;border-radius:999px;backdrop-filter:blur(10px)}.mobile-header{height:72px;padding:12px 18px;display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);position:sticky;top:0;z-index:20;border-bottom:1px solid rgba(231,234,240,.7)}.brand{display:flex;align-items:center;gap:10px}.brand img{width:128px;height:auto}.header-actions{display:flex;gap:8px;align-items:center}.avatar,.icon-btn{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;border:0;font-weight:800}.icon-btn{background:#fff;color:var(--navy);border:1px solid var(--line);font-size:22px}.content{max-width:1120px;margin:0 auto}.user-content{padding:18px 16px 112px;max-width:680px}.hero{background:linear-gradient(135deg,var(--red),#bb0025);border-radius:26px;color:#fff;padding:22px;box-shadow:0 18px 42px rgba(230,0,45,.22);position:relative;overflow:hidden}.hero:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:var(--yellow);right:-92px;top:-72px;opacity:.98}.hero .eyebrow{color:#fff}.hero h1{font-size:25px;margin:7px 0 4px}.hero p{margin:0;color:rgba(255,255,255,.85);font-size:14px}.checkin-card{margin-top:16px;background:#fff;color:var(--ink);padding:16px;border-radius:18px;position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px}.checkin-card strong{display:block;font-size:16px}.checkin-card span{font-size:12px;color:var(--muted)}.nfc-orb{width:56px;height:56px;border-radius:18px;background:var(--yellow);color:var(--navy);display:grid;place-items:center;font-weight:900;font-size:13px;box-shadow:0 7px 18px rgba(250,190,0,.3)}.section{margin-top:22px}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:12px}.section-head h2{font-size:18px;margin:0}.section-head a{font-size:12px;color:var(--red);font-weight:700}.eyebrow{font-size:11px;letter-spacing:.11em;text-transform:uppercase;color:var(--red);font-weight:800}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.stamp-mini{padding:18px}.stamp-row{display:flex;gap:9px;align-items:center;justify-content:space-between}.stamp-dot{width:46px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:#f0f2f5;border:2px dashed #d7dbe3;font-size:11px;font-weight:900;color:#a0a6b0}.stamp-dot.on{background:var(--red);border-style:solid;border-color:var(--red);color:#fff;box-shadow:0 7px 16px rgba(230,0,45,.18)}.stamp-dot.reward{background:var(--yellow);border-style:solid;border-color:var(--yellow);color:var(--navy)}.progress-meta{display:flex;justify-content:space-between;margin-top:13px;font-size:12px;color:var(--muted)}.menu-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.menu-tile{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px 9px;text-align:center;min-height:105px;box-shadow:0 7px 20px rgba(23,32,51,.04)}.menu-icon{width:42px;height:42px;border-radius:14px;margin:0 auto 9px;display:grid;place-items:center;background:#fff1f4;color:var(--red);font-size:20px}.menu-tile:nth-child(2) .menu-icon,.menu-tile:nth-child(5) .menu-icon{background:#fff8da;color:#8c6600}.menu-tile:nth-child(3) .menu-icon,.menu-tile:nth-child(6) .menu-icon{background:#edf5ff;color:var(--blue)}.menu-tile strong{display:block;font-size:13px}.menu-tile small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.ai-card{padding:18px;background:linear-gradient(135deg,#17233b,#243758);color:#fff;border:0}.ai-card .ai-badge{display:inline-flex;align-items:center;gap:5px;background:rgba(250,190,0,.14);color:#ffe07a;border:1px solid rgba(250,190,0,.35);border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800}.ai-card h3{font-size:18px;margin:12px 0 7px}.ai-card p{font-size:13px;line-height:1.7;margin:0;color:#dce4f2}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:14px;padding:13px 16px;font-weight:800;cursor:pointer}.btn-primary{background:var(--red);color:#fff}.btn-dark{background:var(--navy);color:#fff}.btn-yellow{background:var(--yellow);color:var(--navy)}.btn-soft{background:#f2f4f7;color:var(--navy)}.btn-block{width:100%}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:30;background:rgba(255,255,255,.95);backdrop-filter:blur(18px);border-top:1px solid var(--line);display:flex;justify-content:center;padding:6px 8px calc(7px + var(--safe-bottom))}.bottom-nav a{width:min(24%,120px);display:flex;flex-direction:column;align-items:center;gap:2px;color:#9aa1ad;font-size:10px;font-weight:700;padding:5px 0}.bottom-nav a.active{color:var(--red)}.nav-icon{width:22px;height:22px}.page-title{margin:6px 0 18px}.page-title h1{font-size:24px;margin:5px 0}.page-title p{font-size:13px;color:var(--muted);margin:0}.big-stamp{padding:22px}.big-stamp .stamp-row{justify-content:center;flex-wrap:wrap;gap:13px}.big-stamp .stamp-dot{width:67px;font-size:13px}.reward-box{background:#fff8da;border:1px solid #f6dc70;border-radius:16px;padding:14px;margin-top:18px;display:flex;gap:12px;align-items:center}.reward-box b{font-size:13px}.reward-box small{display:block;color:#7a6a2a;margin-top:2px}.timeline{padding:0 18px}.timeline-item{display:flex;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.timeline-item:last-child{border-bottom:0}.timeline-dot{width:10px;height:10px;border-radius:50%;background:var(--red);margin-top:6px;box-shadow:0 0 0 5px #fff1f4}.timeline-item b{font-size:13px}.timeline-item small{display:block;color:var(--muted);margin-top:3px}.vehicle-card{overflow:hidden}.vehicle-top{background:linear-gradient(135deg,#eef3f8,#fff);padding:20px}.vehicle-badge{display:inline-block;background:var(--navy);color:#fff;padding:4px 8px;border-radius:7px;font-size:10px;font-weight:800}.vehicle-name{font-size:25px;font-weight:900;margin:8px 0 3px}.vehicle-details{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line)}.vehicle-details div{padding:15px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.vehicle-details div:nth-child(even){border-right:0}.vehicle-details span{display:block;color:var(--muted);font-size:10px}.vehicle-details b{display:block;font-size:13px;margin-top:3px}.chat-shell{display:flex;flex-direction:column;min-height:calc(100vh - 200px)}.chat-messages{display:flex;flex-direction:column;gap:12px}.bubble{max-width:88%;padding:13px 15px;border-radius:18px;font-size:14px;line-height:1.65;white-space:pre-wrap}.bubble.ai{background:#fff;border:1px solid var(--line);border-bottom-left-radius:5px}.bubble.user{background:var(--red);color:#fff;align-self:flex-end;border-bottom-right-radius:5px}.chat-input{position:sticky;bottom:79px;margin-top:auto;padding-top:16px;background:linear-gradient(180deg,rgba(245,247,250,0),#f5f7fa 18px)}.chat-form{display:flex;gap:8px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:8px;box-shadow:var(--shadow)}.chat-form textarea{border:0;outline:0;resize:none;flex:1;padding:8px;min-height:42px;max-height:100px}.chat-form button{width:44px;height:44px;border:0;border-radius:14px;background:var(--red);color:#fff;font-size:18px}.quick-chips{display:flex;gap:7px;overflow:auto;padding:10px 0 2px}.chip{white-space:nowrap;background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 11px;font-size:11px;color:var(--navy)}.notice{font-size:11px;color:var(--muted);text-align:center;margin:10px}.checkin-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(150deg,var(--red),#98001e)}.checkin-panel{width:min(100%,460px);background:#fff;border-radius:30px;padding:28px 22px;text-align:center;box-shadow:0 24px 60px rgba(0,0,0,.18)}.checkin-panel img{width:150px}.check-circle{width:92px;height:92px;border-radius:50%;background:#eaf9f1;color:var(--green);display:grid;place-items:center;margin:24px auto 16px;font-size:43px;font-weight:900}.checkin-panel h1{font-size:25px;margin:8px}.checkin-panel p{color:var(--muted);line-height:1.7}.checkin-stamps{display:flex;justify-content:center;gap:7px;margin:18px 0}.checkin-stamps .stamp-dot{width:47px}.line-notice{margin:18px 0;background:#eefbf3;border-radius:14px;padding:13px;text-align:left;font-size:12px;color:#1c6946}.toast{position:fixed;left:50%;bottom:100px;transform:translate(-50%,20px);background:var(--navy);color:#fff;padding:11px 16px;border-radius:999px;font-size:12px;opacity:0;pointer-events:none;transition:.25s;z-index:100}.toast.show{opacity:1;transform:translate(-50%,0)}/* admin */.admin-shell{min-height:100vh}.sidebar{display:none}.admin-main{min-width:0}.topbar{height:72px;padding:0 20px;background:rgba(255,255,255,.94);backdrop-filter:blur(16px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20}.topbar .eyebrow{font-size:9px}.topbar strong{font-size:17px}.user-switch{font-size:11px;font-weight:800;color:var(--red);background:#fff1f4;padding:8px 10px;border-radius:10px}.admin-content{padding:20px 16px 100px}.admin-bottom-nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);padding:7px 6px calc(7px + var(--safe-bottom));z-index:30}.admin-bottom-nav a{display:flex;flex-direction:column;align-items:center;color:#9aa1ad;font-size:10px;gap:2px}.admin-bottom-nav a.active{color:var(--red)}.kpi-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.kpi{padding:16px}.kpi span{font-size:11px;color:var(--muted)}.kpi strong{display:block;font-size:25px;margin-top:5px}.kpi small{font-size:10px;color:var(--green)}.ai-brief{background:linear-gradient(135deg,#17233b,#263b62);color:#fff;padding:20px;border:0}.ai-brief-top{display:flex;align-items:center;justify-content:space-between}.ai-brief h2{font-size:19px;margin:12px 0 6px}.ai-brief p{font-size:12px;color:#d7dfec;line-height:1.7}.ai-dot{display:inline-flex;align-items:center;gap:6px;color:#ffe27b;font-size:10px;font-weight:800}.ai-dot:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--yellow);box-shadow:0 0 0 5px rgba(250,190,0,.12)}.priority-list{overflow:hidden}.priority-row{display:grid;grid-template-columns:42px 1fr auto;gap:11px;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line)}.priority-row:last-child{border-bottom:0}.person-avatar{width:42px;height:42px;border-radius:14px;background:#eef1f5;display:grid;place-items:center;font-weight:900;color:var(--navy)}.priority-row b{font-size:13px}.priority-row p{font-size:10px;color:var(--muted);margin:3px 0 0}.score{font-size:12px;font-weight:900;padding:6px 8px;border-radius:9px;background:#f1f3f6}.score.high{background:#fff0f2;color:var(--red)}.score.medium{background:#fff8da;color:#7b5a00}.customer-table{overflow:auto}.customer-table table{width:100%;border-collapse:collapse;min-width:700px}.customer-table th,.customer-table td{text-align:left;padding:13px 14px;border-bottom:1px solid var(--line);font-size:12px}.customer-table th{font-size:10px;color:var(--muted);background:#fafbfc;position:sticky;top:0}.tag{display:inline-block;font-size:9px;font-weight:800;padding:4px 7px;border-radius:999px;background:#eef1f5;color:#586172;margin:2px}.tag.red{background:#fff0f2;color:var(--red)}.tag.yellow{background:#fff8da;color:#7b5a00}.tag.green{background:#eaf9f1;color:var(--green)}.filter-bar{display:flex;gap:8px;overflow:auto;margin-bottom:12px}.filter-pill{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 11px;font-size:10px;font-weight:700;white-space:nowrap}.filter-pill.active{background:var(--navy);color:#fff;border-color:var(--navy)}.customer-head{display:flex;align-items:center;gap:14px;padding:18px}.customer-head .person-avatar{width:56px;height:56px}.customer-head h1{font-size:20px;margin:0}.customer-head p{font-size:11px;color:var(--muted);margin:4px 0}.status-line{display:flex;gap:7px;flex-wrap:wrap}.detail-grid{display:grid;grid-template-columns:1fr;gap:14px}.detail-card{padding:17px}.detail-card h3{font-size:13px;margin:0 0 12px}.detail-row{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid var(--line);font-size:11px}.detail-row:last-child{border:0}.detail-row span{color:var(--muted)}.ai-output{white-space:pre-wrap;font-size:12px;line-height:1.75;background:#f7f9fc;border-radius:14px;padding:14px}.campaign-card{padding:16px;margin-bottom:12px}.campaign-card h3{font-size:14px;margin:0 0 6px}.campaign-card p{font-size:11px;color:var(--muted);line-height:1.6}.campaign-meta{display:flex;gap:8px;font-size:9px}.campaign-meta span{background:#f1f3f6;padding:5px 7px;border-radius:8px}@media(min-width:900px){.admin-shell{display:grid;grid-template-columns:230px 1fr}.sidebar{display:flex;position:sticky;top:0;height:100vh;background:var(--navy);color:#fff;padding:24px 16px;flex-direction:column}.admin-brand{padding:4px 5px 22px;border-bottom:1px solid rgba(255,255,255,.1);flex-direction:column;align-items:flex-start}.admin-brand img{width:135px}.admin-brand span{font-size:9px;letter-spacing:.16em;color:#aebbd2}.side-nav{display:flex;flex-direction:column;gap:5px;margin-top:22px}.side-nav a{display:flex;gap:11px;align-items:center;padding:11px 12px;color:#aebbd2;border-radius:12px;font-size:12px;font-weight:700}.side-nav a.active,.side-nav a:hover{background:rgba(255,255,255,.1);color:#fff}.side-nav .nav-icon{width:19px}.admin-bottom-nav{display:none}.topbar{padding:0 30px}.admin-content{padding:28px 30px 48px}.kpi-grid{grid-template-columns:repeat(4,1fr)}.dashboard-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:16px}.detail-grid{grid-template-columns:1fr 1fr}.detail-grid .wide{grid-column:1/-1}.demo-ribbon{right:18px}.user-content{padding-top:24px}}

/* v0.1.1 UI refinement -------------------------------------------------- */
body.mode-user .mobile-header{height:68px;padding:8px 16px}
body.mode-user .brand img{width:auto;height:48px;display:block}
body.mode-user .demo-ribbon{top:76px;right:14px;font-size:9px;padding:5px 8px;box-shadow:0 5px 16px rgba(23,35,59,.12)}
body.mode-user .user-content{padding-top:16px}
.admin-brand img{width:auto!important;height:58px;object-fit:contain}

.section-head{align-items:flex-end}
.section-head>div{min-width:0}
.section-kicker{font-size:9px;line-height:1.2;letter-spacing:.12em;color:#9aa1ad;font-weight:800;margin-bottom:4px}
.section-head h2{font-size:19px;letter-spacing:-.02em}

.hero{padding:24px 22px 22px;border-radius:24px}
.hero h1{font-size:26px;letter-spacing:-.03em;margin-top:8px}
.hero p{font-size:13px}
.checkin-card{padding:15px 15px 15px 17px;border-radius:17px;box-shadow:0 8px 24px rgba(87,0,16,.12)}
.checkin-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.checkin-copy .checkin-label{font-size:9px;line-height:1;letter-spacing:.12em;font-weight:900;color:var(--red);margin-bottom:6px}
.checkin-card .checkin-copy strong{font-size:16px;letter-spacing:-.01em}
.checkin-card .checkin-copy>span:last-child{font-size:11px;color:var(--muted);margin-top:3px}
.nfc-orb{width:58px;height:58px;border-radius:17px;flex:0 0 58px;display:flex;flex-direction:column;gap:1px}
.nfc-orb span{font-size:14px;color:var(--navy);font-weight:900}
.nfc-orb small{font-size:7px;letter-spacing:.12em;color:rgba(23,35,59,.68);font-weight:900}

.stamp-card{display:block;overflow:hidden;padding:0;border-color:#e3e7ed;box-shadow:0 12px 30px rgba(23,32,51,.07)}
.stamp-card-top{padding:18px 18px 16px;display:flex;align-items:flex-end;justify-content:space-between;gap:14px;background:linear-gradient(180deg,#fff,#fcfcfd)}
.stamp-status-label{display:block;font-size:10px;color:var(--muted);font-weight:700;margin-bottom:2px}
.stamp-count{display:flex;align-items:baseline;gap:4px;line-height:1}
.stamp-count strong{font-size:34px;letter-spacing:-.05em;color:var(--red)}
.stamp-count span{font-size:13px;font-weight:800;color:#a0a6b0}
.stamp-benefit{text-align:right;min-width:0}
.stamp-benefit span{display:block;font-size:10px;color:var(--muted);margin-bottom:3px}
.stamp-benefit strong{display:block;font-size:13px;color:var(--navy);line-height:1.35}

.stamp-track{display:grid;grid-template-columns:repeat(5,1fr);padding:15px 16px 13px;background:#f8f9fb;border-top:1px solid #f0f1f4;border-bottom:1px solid #f0f1f4}
.stamp-step{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;z-index:1}
.stamp-step:not(:last-child)::after{content:"";position:absolute;height:3px;left:calc(50% + 22px);right:calc(-50% + 22px);top:20.5px;background:#dfe3e9;z-index:-1}
.stamp-step.earned:not(:last-child)::after{background:var(--red)}
.stamp-circle{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#a5abb4;border:2px solid #dfe3e9;font-size:13px;font-weight:900;box-shadow:0 0 0 4px #f8f9fb}
.stamp-step.earned .stamp-circle{background:var(--red);border-color:var(--red);color:#fff;box-shadow:0 0 0 4px #f8f9fb,0 5px 13px rgba(230,0,45,.18)}
.stamp-step.reward-step .stamp-circle{background:#fff;border-color:var(--yellow);color:#8a6800}
.stamp-step.reward-step.earned .stamp-circle{background:var(--yellow);color:var(--navy);box-shadow:0 0 0 4px #f8f9fb,0 5px 13px rgba(250,190,0,.22)}
.reward-yen{font-size:10px;letter-spacing:-.04em}
.stamp-step-label{font-size:8px;color:#949ba6;font-weight:700;margin-top:6px;white-space:nowrap}
.stamp-step.earned .stamp-step-label{color:#5d6571}
.stamp-step.reward-step .stamp-step-label{font-weight:900;color:#846500}
.stamp-card-bottom{padding:13px 17px;display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff}
.stamp-card-bottom>span{font-size:10px;color:var(--muted)}
.stamp-card-bottom strong{font-size:11px;color:var(--red);white-space:nowrap}
.stamp-card-bottom strong span{font-size:17px;vertical-align:-1px}

.stamp-card-large .stamp-card-top{padding:21px 20px 18px}
.stamp-card-large .stamp-count strong{font-size:40px}
.stamp-card-large .stamp-track{padding:20px 14px 17px}
.stamp-card-large .stamp-circle{width:48px;height:48px}
.stamp-card-large .stamp-step:not(:last-child)::after{left:calc(50% + 24px);right:calc(-50% + 24px);top:22.5px}
.stamp-card-large .stamp-step-label{font-size:9px}
.reward-message{margin:18px 18px 0;display:flex;align-items:center;gap:12px;padding:13px 14px;background:#fff9df;border:1px solid #f7df76;border-radius:15px}
.reward-message-icon{width:38px;height:38px;flex:0 0 38px;border-radius:12px;background:var(--yellow);display:grid;place-items:center;color:var(--navy);font-weight:900;font-size:18px}
.reward-message b{display:block;font-size:12px;color:var(--navy)}
.reward-message small{display:block;font-size:9px;line-height:1.55;color:#7e7141;margin-top:3px}
.stamp-checkin-btn{width:calc(100% - 36px);margin:16px 18px 0}
.stamp-help{padding:9px 20px 18px;text-align:center;font-size:9px;line-height:1.55;color:var(--muted)}
.empty-state{padding:24px;text-align:center;font-size:11px;color:var(--muted)}

.menu-grid{gap:9px}
.menu-tile{min-height:102px;padding:14px 8px;border-radius:17px}
.menu-icon{width:40px;height:40px;border-radius:13px;margin-bottom:8px}
.menu-tile strong{font-size:12px}
.ai-card{display:block;padding:19px;border-radius:20px}

@media(max-width:390px){
  .hero{padding-left:18px;padding-right:18px}
  .hero h1{font-size:23px}
  .stamp-card-top{padding-left:15px;padding-right:15px}
  .stamp-count strong{font-size:31px}
  .stamp-benefit strong{font-size:11px}
  .stamp-track{padding-left:10px;padding-right:10px}
  .stamp-circle{width:39px;height:39px}
  .stamp-step:not(:last-child)::after{left:calc(50% + 20px);right:calc(-50% + 20px);top:18.5px}
  .menu-tile{min-height:98px}
}


/* v0.1.2 user navigation / mypage / AI home ------------------------------ */
body.mode-user .header-actions{margin-left:auto}
body.mode-user .mypage-btn{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--navy);border:1px solid #dfe3e9;box-shadow:0 4px 14px rgba(23,32,51,.06)}
body.mode-user .mypage-btn .nav-icon{width:21px;height:21px}
body.mode-user .bottom-nav{padding-left:4px;padding-right:4px}
body.mode-user .bottom-nav a{width:20%;max-width:112px;padding:5px 1px;gap:3px;font-size:9px;letter-spacing:-.02em}
body.mode-user .bottom-nav .nav-icon{width:21px;height:21px}
body.mode-user .ai-home-section{margin-top:20px}
.ai-home-card{display:block;padding:0;overflow:hidden;background:linear-gradient(145deg,#17233b 0%,#22385e 72%,#2b4672 100%);color:#fff;border:0;box-shadow:0 16px 38px rgba(23,35,59,.18)}
.ai-home-head{display:flex;align-items:center;gap:12px;padding:19px 19px 0}
.ai-home-symbol{width:42px;height:42px;flex:0 0 42px;border-radius:14px;display:grid;place-items:center;background:var(--yellow);color:var(--navy);font-size:21px;font-weight:900;box-shadow:0 7px 18px rgba(250,190,0,.16)}
.ai-home-head>div:last-child{display:flex;flex-direction:column;min-width:0}
.ai-home-head span{font-size:8px;letter-spacing:.12em;color:#ffd95a;font-weight:900}
.ai-home-head strong{font-size:18px;letter-spacing:-.02em;margin-top:3px}
.ai-home-card>p{margin:14px 19px 0;font-size:12px;line-height:1.75;color:#dce4f2}
.ai-home-chips{display:flex;gap:6px;overflow:hidden;padding:14px 19px 16px}
.ai-home-chips span{white-space:nowrap;padding:7px 9px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.07);border-radius:999px;font-size:9px;color:#fff}
.ai-home-cta{display:flex;align-items:center;justify-content:space-between;gap:10px;background:rgba(0,0,0,.12);padding:13px 19px}
.ai-home-cta>span{font-size:9px;color:#b9c7da}
.ai-home-cta strong{font-size:11px;color:var(--yellow);white-space:nowrap}
.ai-home-cta b{font-size:17px;line-height:1;vertical-align:-1px}
.mypage-title{margin-bottom:14px}
.mypage-profile{padding:16px;display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:12px}
.mypage-avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;font-size:18px;font-weight:900}
.mypage-profile-copy{display:flex;flex-direction:column;min-width:0}
.mypage-profile-copy strong{font-size:15px}
.mypage-profile-copy span{font-size:10px;color:var(--green);font-weight:700;margin-top:3px}
.mypage-status{font-size:8px;letter-spacing:.08em;color:var(--red);font-weight:900;background:#fff1f4;padding:6px 8px;border-radius:999px}
.mypage-car-card{padding:15px;display:grid;grid-template-columns:48px 1fr 18px;gap:12px;align-items:center}
.mypage-car-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:#eef4fb;color:var(--blue)}
.mypage-car-icon .nav-icon{width:27px;height:27px}
.mypage-car-main{display:flex;flex-direction:column;min-width:0}
.mypage-car-main span{font-size:9px;color:var(--muted);font-weight:700}
.mypage-car-main strong{font-size:17px;margin-top:2px}
.mypage-car-main small{font-size:9px;color:var(--muted);margin-top:3px}
.mypage-chevron{font-size:24px;color:#a3a9b3;text-align:right}
.mypage-store{overflow:hidden}
.mypage-store>div{padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line)}
.mypage-store>div:last-child{border-bottom:0}
.mypage-store span{font-size:10px;color:var(--muted)}
.mypage-store strong{font-size:12px;text-align:right}
.mypage-ai-link{padding:14px 15px;display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:11px;background:#fff}
.mypage-ai-link .ai-home-symbol{width:42px;height:42px}
.mypage-ai-link>div{display:flex;flex-direction:column}
.mypage-ai-link strong{font-size:13px}
.mypage-ai-link small{font-size:9px;color:var(--muted);margin-top:3px}
.mypage-ai-link>b{font-size:22px;color:#a3a9b3}
@media(max-width:370px){body.mode-user .bottom-nav a{font-size:8px}.ai-home-chips span:nth-child(3){display:none}}

/* v0.1.3 campaign slider / footer focus / customer check-in ---------------- */
body.mode-user .user-content{padding-bottom:124px}
body.mode-user .bottom-nav{height:74px;padding:7px 4px calc(8px + var(--safe-bottom));align-items:flex-end;overflow:visible}
body.mode-user .bottom-nav a{width:20%;max-width:112px;min-width:0;padding:4px 1px 3px;gap:2px;font-size:9px;position:relative;overflow:visible}
body.mode-user .bottom-nav .nav-icon-wrap{width:26px;height:26px;display:grid;place-items:center;border-radius:10px;transition:.2s}
body.mode-user .bottom-nav .nav-icon{width:21px;height:21px}
body.mode-user .bottom-nav a.active:not(.nav-qr-main) .nav-icon-wrap{background:#fff0f3}
body.mode-user .bottom-nav .nav-qr-main{transform:translateY(-10px);color:var(--red);font-weight:900}
body.mode-user .bottom-nav .nav-qr-main .nav-icon-wrap{width:52px;height:52px;border-radius:18px;background:var(--red);color:#fff;border:4px solid #fff;box-shadow:0 8px 22px rgba(230,0,45,.30);position:relative}
body.mode-user .bottom-nav .nav-qr-main .nav-icon-wrap:after{content:"";position:absolute;right:-2px;top:-2px;width:13px;height:13px;border-radius:50%;background:var(--yellow);border:2px solid #fff}
body.mode-user .bottom-nav .nav-qr-main .nav-icon{width:25px;height:25px;stroke-width:2.1}
body.mode-user .bottom-nav .nav-qr-main>span:last-child{margin-top:-1px;font-size:10px;letter-spacing:0}
body.mode-user .bottom-nav .nav-qr-main.active .nav-icon-wrap{background:#c90028;box-shadow:0 8px 24px rgba(230,0,45,.38)}

.campaign-home-section{margin-top:20px}
.campaign-home-head{margin-bottom:10px}
.campaign-slider{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:1px 1px 5px;overscroll-behavior-x:contain}
.campaign-slider::-webkit-scrollbar{display:none}
.campaign-slide{scroll-snap-align:start;flex:0 0 88%;min-height:132px;border-radius:22px;padding:18px;display:flex;align-items:center;justify-content:space-between;gap:14px;overflow:hidden;position:relative;box-shadow:0 10px 26px rgba(23,32,51,.10)}
.campaign-slide:after{content:"";position:absolute;width:135px;height:135px;border-radius:50%;right:-54px;top:-60px;background:rgba(255,255,255,.12)}
.campaign-slide-copy{position:relative;z-index:2;display:flex;flex-direction:column;min-width:0}
.campaign-slide-copy>span{font-size:8px;font-weight:900;letter-spacing:.12em;margin-bottom:8px}
.campaign-slide-copy>strong{font-size:17px;line-height:1.35;letter-spacing:-.02em}
.campaign-slide-copy>small{font-size:9px;margin-top:7px;opacity:.78}
.campaign-slide-badge{position:relative;z-index:2;flex:0 0 58px;width:58px;height:58px;border-radius:18px;display:grid;place-items:center;text-align:center;font-size:15px;line-height:1.05;font-weight:900}
.campaign-slide-red{background:linear-gradient(135deg,#e6002d,#b90024);color:#fff}
.campaign-slide-red .campaign-slide-copy>span{color:#ffe1e7}
.campaign-slide-red .campaign-slide-badge{background:var(--yellow);color:var(--navy)}
.campaign-slide-yellow{background:linear-gradient(135deg,#fabe00,#ffd94b);color:var(--navy)}
.campaign-slide-yellow .campaign-slide-copy>span{color:#725500}
.campaign-slide-yellow .campaign-slide-badge{background:#fff;color:var(--red);box-shadow:0 8px 20px rgba(123,86,0,.12)}
.campaign-slide-navy{background:linear-gradient(135deg,#17233b,#29456f);color:#fff}
.campaign-slide-navy .campaign-slide-copy>span{color:#ffd95a}
.campaign-slide-navy .campaign-slide-badge{background:#fff;color:var(--navy)}
.campaign-dots{display:flex;justify-content:center;gap:5px;margin-top:6px}
.campaign-dots span{width:5px;height:5px;border-radius:999px;background:#d8dce3;transition:.2s}
.campaign-dots span.active{width:16px;background:var(--red)}

.checkin-page{padding:26px;background:linear-gradient(145deg,#e6002d 0%,#bc0025 58%,#17233b 100%)}
.checkin-panel{width:min(100%,520px);padding:0;overflow:hidden;text-align:left;border-radius:30px}
.checkin-brand{height:78px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid var(--line);background:#fff}
.checkin-brand img{width:150px;max-height:58px;object-fit:contain}
.checkin-body{padding:22px 22px 0}
.checkin-result{text-align:center}
.checkin-result .check-circle{margin:0 auto 14px}
.checkin-result h1{font-size:24px;margin:7px 0}
.checkin-result p{font-size:12px;line-height:1.7;margin:0;color:var(--muted)}
.checkin-member-card{margin-top:20px;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#fafbfc}
.checkin-member-head{padding:13px 15px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line)}
.checkin-member-head span{font-size:11px;color:var(--muted);font-weight:700}
.checkin-member-head strong{font-size:17px;color:var(--navy)}
.checkin-track{display:flex;align-items:flex-start;justify-content:space-between;padding:17px 13px 13px}
.checkin-step{position:relative;flex:1;text-align:center;z-index:1}
.checkin-step:not(:last-child):after{content:"";position:absolute;left:calc(50% + 19px);right:calc(-50% + 19px);top:18px;height:2px;background:#dde1e7;z-index:-1}
.checkin-step.earned:not(:last-child):after{background:#f2a0b0}
.checkin-step>span{width:38px;height:38px;margin:0 auto;border-radius:50%;display:grid;place-items:center;background:#fff;border:2px solid #d9dde4;color:#9ba2ad;font-weight:900;font-size:11px}
.checkin-step.earned>span{background:var(--red);border-color:var(--red);color:#fff}
.checkin-step.reward>span{background:var(--yellow);border-color:var(--yellow);color:var(--navy);font-size:9px}
.checkin-step small{display:block;font-size:8px;color:#8c939e;margin-top:5px;font-weight:700}
.checkin-next{text-align:center;padding:11px 12px;border-top:1px solid var(--line);background:#fff8d9;color:#6d5700;font-size:10px;font-weight:900}
.checkin-panel .line-notice{margin:18px 22px 0;background:#eefbf3;color:#1c6946}
.checkin-home-btn{width:calc(100% - 44px);margin:12px 22px 22px}

@media(min-width:760px){
  .checkin-panel{width:min(100%,760px)}
  .checkin-brand{height:92px;justify-content:flex-start;padding:0 30px}
  .checkin-brand img{width:175px}
  .checkin-body{display:grid;grid-template-columns:.82fr 1.18fr;gap:28px;align-items:center;padding:30px 30px 12px}
  .checkin-result{text-align:left}
  .checkin-result .check-circle{margin:0 0 16px}
  .checkin-result h1{font-size:28px;margin-left:0}
  .checkin-result p{font-size:13px}
  .checkin-member-card{margin-top:0}
  .checkin-panel .line-notice{margin:18px 30px 0}
  .checkin-home-btn{width:auto;min-width:240px;margin:14px 30px 28px}
}

@media(max-width:370px){
  body.mode-user .bottom-nav .nav-qr-main .nav-icon-wrap{width:48px;height:48px}
  .campaign-slide{flex-basis:92%;padding:16px}
  .campaign-slide-copy>strong{font-size:15px}
  .campaign-slide-badge{width:52px;height:52px;flex-basis:52px;font-size:13px}
}


/* v0.1.5 My Shop -------------------------------------------------------- */
.myshop-hero{height:280px;position:relative;overflow:hidden;border:0;background:#111;color:#fff;box-shadow:0 18px 40px rgba(23,32,51,.16)}
.myshop-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.myshop-photo-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,15,27,.05) 5%,rgba(8,15,27,.10) 36%,rgba(8,15,27,.86) 100%)}
.myshop-photo-top{position:absolute;left:16px;right:16px;top:16px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.myshop-badge{display:inline-flex;align-items:center;background:var(--red);color:#fff;padding:7px 10px;border-radius:999px;font-size:9px;letter-spacing:.11em;font-weight:900;box-shadow:0 6px 16px rgba(0,0,0,.16)}
.myshop-area{background:rgba(255,255,255,.90);backdrop-filter:blur(9px);color:var(--navy);padding:7px 10px;border-radius:999px;font-size:9px;font-weight:900}
.myshop-photo-copy{position:absolute;z-index:2;left:18px;right:18px;bottom:18px}
.myshop-photo-copy small{font-size:9px;color:rgba(255,255,255,.78);font-weight:800}
.myshop-photo-copy h1{font-size:23px;line-height:1.25;margin:4px 0 5px;letter-spacing:-.02em}
.myshop-photo-copy p{margin:0;font-size:11px;color:rgba(255,255,255,.82)}
.myshop-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.myshop-action{min-width:0;background:#fff;border:1px solid var(--line);border-radius:17px;padding:12px 13px;display:grid;grid-template-columns:38px 1fr;align-items:center;gap:10px;box-shadow:0 7px 20px rgba(23,32,51,.04)}
.myshop-action-icon{width:38px;height:38px;border-radius:13px;background:#fff0f3;color:var(--red);display:grid;place-items:center;font-size:17px;font-weight:900}
.myshop-action-icon.map{background:#eef5ff;color:var(--blue)}
.myshop-action>span:last-child{display:flex;flex-direction:column;min-width:0}
.myshop-action small{font-size:8px;color:var(--muted);font-weight:700}
.myshop-action strong{font-size:12px;margin-top:2px}
.myshop-section{margin-top:24px}
.myshop-info-card{display:grid;grid-template-columns:1fr 1fr;overflow:hidden}
.myshop-info-item{min-height:84px;padding:14px;display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.myshop-info-item:nth-child(3){border-right:0}
.myshop-info-item.wide{grid-column:1/-1;border-right:0;min-height:auto}
.myshop-info-item:last-child{border-bottom:0}
.myshop-info-icon{width:34px;height:34px;border-radius:11px;background:#f2f4f7;color:var(--navy);display:grid;place-items:center;font-size:12px;font-weight:900}
.myshop-info-item>div{display:flex;flex-direction:column;min-width:0}
.myshop-info-item small{font-size:8px;color:var(--muted);font-weight:700;margin-bottom:3px}
.myshop-info-item strong{font-size:11px;line-height:1.45}
.myshop-info-item em{font-style:normal;font-size:8px;color:var(--muted);margin-top:3px}
.myshop-offers{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:1px 1px 5px}
.myshop-offers::-webkit-scrollbar{display:none}
.myshop-offer{flex:0 0 83%;min-height:145px;border-radius:20px;padding:16px;scroll-snap-align:start;display:flex;flex-direction:column;position:relative;overflow:hidden;box-shadow:0 9px 24px rgba(23,32,51,.08)}
.myshop-offer:after{content:"";position:absolute;width:110px;height:110px;border-radius:50%;right:-35px;top:-42px;background:rgba(255,255,255,.12)}
.myshop-offer>span{font-size:8px;font-weight:900;letter-spacing:.1em;opacity:.74;position:relative;z-index:1}
.myshop-offer>strong{font-size:17px;line-height:1.35;margin-top:13px;position:relative;z-index:1}
.myshop-offer>small{font-size:9px;line-height:1.55;margin-top:7px;opacity:.75;max-width:88%;position:relative;z-index:1}
.myshop-offer>b{position:absolute;right:15px;bottom:13px;font-size:20px;z-index:1}
.myshop-offer-red{background:linear-gradient(135deg,var(--red),#b70024);color:#fff}
.myshop-offer-yellow{background:linear-gradient(135deg,var(--yellow),#ffd84b);color:var(--navy)}
.myshop-offer-navy{background:linear-gradient(135deg,var(--navy),#2b466f);color:#fff}
.myshop-switch-list{display:flex;flex-direction:column;gap:9px}
.myshop-switch{padding:9px;display:grid;grid-template-columns:78px 1fr 28px;gap:11px;align-items:center;box-shadow:0 5px 18px rgba(23,32,51,.04)}
.myshop-switch.selected{border-color:#f2a3b3;box-shadow:0 7px 22px rgba(230,0,45,.08)}
.myshop-switch>img{width:78px;height:60px;object-fit:cover;border-radius:13px}
.myshop-switch>div{display:flex;flex-direction:column;min-width:0}
.myshop-switch>div>span{font-size:8px;color:var(--muted);font-weight:700}
.myshop-switch>div>strong{font-size:13px;margin-top:2px}
.myshop-switch>div>small{font-size:8px;color:var(--red);font-weight:800;margin-top:4px}
.myshop-switch>b{font-size:20px;color:#a2a9b4;text-align:center}
.myshop-switch.selected>b{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--red);color:#fff;font-size:11px}
.myshop-demo-note{font-size:9px;line-height:1.6;color:var(--muted);text-align:center;margin:12px 10px 0}
@media(min-width:600px){
  .myshop-hero{height:340px}
  .myshop-photo-copy{left:24px;bottom:24px}.myshop-photo-copy h1{font-size:29px}
  .myshop-actions{max-width:430px}
  .myshop-offer{flex-basis:calc(50% - 5px)}
}


/* v0.1.6 My Shop: viewing and setting are separate -------------------- */
.myshop-badge.viewing{background:rgba(255,255,255,.92);color:var(--navy);box-shadow:0 6px 16px rgba(0,0,0,.13)}
.myshop-saved{display:grid;grid-template-columns:36px 1fr;gap:10px;align-items:center;background:#eaf9f1;border:1px solid #b9e9d2;color:#176a49;border-radius:16px;padding:11px 13px;margin-bottom:12px}
.myshop-saved>span{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--green);font-weight:900}
.myshop-saved>div{display:flex;flex-direction:column}
.myshop-saved strong{font-size:12px}
.myshop-saved small{font-size:9px;color:#4b806c;margin-top:2px}
.myshop-set-card{margin-top:12px;padding:16px;background:linear-gradient(135deg,#fff 0%,#fff7f8 100%);border-color:#f2c2cb;box-shadow:0 9px 24px rgba(230,0,45,.06)}
.myshop-set-copy{display:flex;flex-direction:column}
.myshop-set-copy>span{font-size:8px;letter-spacing:.12em;color:var(--red);font-weight:900}
.myshop-set-copy>strong{font-size:15px;line-height:1.45;margin-top:5px}
.myshop-set-copy>small{font-size:9px;line-height:1.65;color:var(--muted);margin-top:5px}
.myshop-set-btn{width:100%;margin-top:13px;padding-top:12px;padding-bottom:12px;font-size:11px}
.myshop-switch.viewing:not(.selected){border-color:#9eb8d5;box-shadow:0 7px 22px rgba(11,75,128,.07)}
.myshop-switch.viewing:not(.selected)>div>small{color:var(--blue)}
.myshop-switch.selected.viewing{box-shadow:0 7px 22px rgba(230,0,45,.08)}
@media(min-width:600px){
  .myshop-set-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:18px}
  .myshop-set-btn{width:auto;min-width:210px;margin-top:0}
}


/* v0.1.7 Mobile bottom navigation ------------------------------------
   iPhone safe-areaでも巨大な白背景にならないフローティングバー */
body.mode-user .user-content{
  padding-bottom:calc(106px + env(safe-area-inset-bottom, 0px));
}

body.mode-user .bottom-nav{
  left:50%;
  right:auto;
  bottom:max(8px, env(safe-area-inset-bottom, 0px));
  width:min(calc(100% - 16px), 664px);
  height:64px;
  min-height:64px;
  transform:translateX(-50%);
  padding:6px 6px;
  align-items:center;
  overflow:visible;
  background:rgba(255,255,255,.97);
  border:1px solid rgba(220,224,231,.92);
  border-radius:22px;
  box-shadow:0 12px 34px rgba(23,32,51,.16);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
}

body.mode-user .bottom-nav a{
  height:52px;
  width:20%;
  max-width:none;
  padding:4px 1px 2px;
  justify-content:center;
  gap:2px;
  font-size:9px;
}

body.mode-user .bottom-nav .nav-qr-main{
  transform:translateY(-12px);
}

body.mode-user .bottom-nav .nav-qr-main .nav-icon-wrap{
  width:54px;
  height:54px;
  border-radius:18px;
  border:4px solid #fff;
  box-shadow:0 8px 22px rgba(230,0,45,.30);
}

body.mode-user .bottom-nav .nav-qr-main>span:last-child{
  margin-top:-1px;
}

@media(max-width:390px){
  body.mode-user .bottom-nav{
    width:calc(100% - 12px);
    border-radius:20px;
  }
  body.mode-user .bottom-nav a{
    font-size:8px;
  }
  body.mode-user .bottom-nav .nav-qr-main .nav-icon-wrap{
    width:50px;
    height:50px;
  }
}

/* iOS standalone/PWAで下端の描画を安定させる */
@supports (-webkit-touch-callout:none){
  html, body{
    min-height:100%;
    background:var(--bg);
  }
  body.mode-user .bottom-nav{
    -webkit-transform:translateX(-50%) translateZ(0);
    transform:translateX(-50%) translateZ(0);
  }
}


/* ==============================================================
   v0.1.8 Campaign / Coupon / MyShop refinements
   ============================================================== */

/* Campaign ----------------------------------------------------- */
.campaign-page-title{margin-bottom:16px}
.campaign-feature{overflow:hidden;border-radius:24px}
.campaign-feature-photo{height:230px;position:relative;overflow:hidden;background:#ddd}
.campaign-feature-photo img{width:100%;height:100%;object-fit:cover;display:block}
.campaign-feature-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.30))}
.campaign-feature-tags{position:absolute;left:14px;top:14px;display:flex;gap:6px;flex-wrap:wrap}
.campaign-pill{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:8px;letter-spacing:.08em;font-weight:900}
.campaign-pill.store{background:var(--red);color:#fff}
.campaign-pill.sample{background:rgba(23,35,59,.88);color:#fff}
.campaign-pill.nationwide{position:absolute;left:10px;top:10px;background:rgba(255,255,255,.94);color:var(--navy)}
.campaign-pill.anniversary{position:absolute;left:10px;top:10px;background:var(--yellow);color:var(--navy)}
.campaign-feature-body{padding:18px}
.campaign-feature-body>small{font-size:9px;color:var(--red);font-weight:800}
.campaign-feature-body h2{font-size:21px;line-height:1.35;margin:5px 0 8px}
.campaign-feature-body p{font-size:11px;line-height:1.7;color:var(--muted);margin:0}
.campaign-feature-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
.campaign-feature-meta span{font-size:8px;background:#f2f4f7;color:#5e6673;border-radius:999px;padding:5px 8px;font-weight:700}
.campaign-read-btn{margin-top:15px;width:100%;border:0;background:var(--navy);color:#fff;border-radius:13px;padding:12px 14px;font-size:10px;font-weight:800;display:flex;justify-content:space-between;align-items:center}
.campaign-read-btn b{font-size:19px;font-weight:400}
.campaign-article-grid{display:grid;gap:13px}
.campaign-article{overflow:hidden}
.campaign-article-image{height:180px;position:relative;overflow:hidden;background:#eef1f5}
.campaign-article-image img{width:100%;height:100%;object-fit:cover;display:block}
.campaign-article-body{padding:15px}
.campaign-date{font-size:8px;letter-spacing:.08em;color:var(--red);font-weight:900}
.campaign-article-body h3{font-size:16px;line-height:1.45;margin:5px 0 6px}
.campaign-article-body p{font-size:10px;line-height:1.65;color:var(--muted);margin:0}
.campaign-card-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:12px;padding-top:11px}
.campaign-card-footer>span{font-size:8px;background:#f2f4f7;border-radius:999px;padding:5px 7px;font-weight:700;color:#606977}
.campaign-card-footer button{border:0;background:transparent;color:var(--red);font-size:9px;font-weight:900;padding:6px}
.campaign-personal-note{margin-top:18px;padding:15px;display:grid;grid-template-columns:44px 1fr;gap:11px;align-items:start;background:linear-gradient(135deg,#17233b,#263b62);border:0;color:#fff}
.campaign-personal-icon{width:44px;height:44px;border-radius:14px;background:var(--yellow);color:var(--navy);display:grid;place-items:center;font-size:20px}
.campaign-personal-note small{font-size:8px;color:#ffe277;letter-spacing:.10em;font-weight:900}
.campaign-personal-note strong{display:block;font-size:13px;margin:3px 0}
.campaign-personal-note p{font-size:9px;line-height:1.55;color:#d7dfec;margin:0}

/* Coupon ------------------------------------------------------- */
.coupon-page-title{margin-bottom:12px}
.coupon-tabs{display:grid;grid-template-columns:1fr 1fr;background:#e9ecf1;border-radius:13px;padding:3px;margin-bottom:14px}
.coupon-tabs button{border:0;background:transparent;border-radius:10px;padding:9px;font-size:10px;color:#7c8490;font-weight:800}
.coupon-tabs button.active{background:#fff;color:var(--navy);box-shadow:0 3px 12px rgba(23,32,51,.07)}
.coupon-tabs button b{display:inline-grid;place-items:center;background:var(--red);color:#fff;min-width:18px;height:18px;border-radius:999px;font-size:8px;margin-left:3px}
.coupon-stack{display:grid;gap:14px}
.coupon-ticket{background:#fff;border-radius:22px;box-shadow:var(--shadow);overflow:hidden;border:1px solid var(--line);position:relative}
.coupon-ticket-main{padding:18px 18px 14px}
.coupon-scope{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.coupon-scope span{font-size:8px;font-weight:900;color:#fff;background:var(--red);padding:5px 7px;border-radius:999px}
.coupon-scope b{font-size:8px;color:var(--muted);font-weight:700}
.coupon-ticket-yellow .coupon-scope span{background:var(--navy)}
.coupon-value{display:flex;align-items:flex-end;color:var(--red);line-height:.85;margin:5px 0 9px}
.coupon-value strong{font-size:54px;letter-spacing:-.05em}
.coupon-value>span{font-size:14px;font-weight:900;line-height:1.05;margin:0 0 5px 5px}
.coupon-value.yen{color:var(--navy);align-items:baseline}
.coupon-value.yen strong{font-size:42px}
.coupon-value.yen>span:first-child{font-size:18px;margin:0 3px 0 0}
.coupon-value.yen>span:last-child{color:var(--red);font-size:11px;margin-left:6px}
.coupon-ticket-main h2{font-size:18px;line-height:1.35;margin:0 0 6px}
.coupon-ticket-main p{font-size:10px;line-height:1.6;color:var(--muted);margin:0}
.coupon-condition{display:inline-block;margin-top:11px;padding:6px 8px;border-radius:8px;background:#fff2f4;color:#a40020;font-size:8px;font-weight:700}
.coupon-ticket-yellow .coupon-condition{background:#fff8da;color:#735600}
.coupon-ticket-cut{height:18px;position:relative;overflow:visible}
.coupon-ticket-cut:before,.coupon-ticket-cut:after{content:"";position:absolute;top:0;width:20px;height:20px;border-radius:50%;background:var(--bg);border:1px solid var(--line)}
.coupon-ticket-cut:before{left:-11px}
.coupon-ticket-cut:after{right:-11px}
.coupon-ticket-cut span{position:absolute;left:12px;right:12px;top:9px;border-top:1px dashed #cfd4dc}
.coupon-ticket-bottom{padding:12px 18px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.coupon-ticket-bottom>div{display:flex;flex-direction:column}
.coupon-ticket-bottom small{font-size:7px;color:var(--muted)}
.coupon-ticket-bottom strong{font-size:10px;margin-top:1px}
.coupon-use-btn{border:0;background:var(--red);color:#fff;border-radius:12px;padding:10px 15px;font-size:9px;font-weight:900}
.coupon-use-btn.dark{background:var(--navy)}
.coupon-stamp-reward{padding:15px;display:grid;grid-template-columns:48px 1fr auto;gap:11px;align-items:center}
.coupon-stamp-icon{width:48px;height:48px;border-radius:15px;background:var(--yellow);color:var(--navy);display:grid;place-items:center;font-size:22px}
.coupon-stamp-copy small{font-size:7px;color:#9a7600;font-weight:900;letter-spacing:.08em}
.coupon-stamp-copy strong{display:block;font-size:13px;margin-top:2px}
.coupon-stamp-copy p{font-size:9px;color:var(--muted);margin:3px 0 0}
.coupon-stamp-progress{white-space:nowrap;color:var(--red)}
.coupon-stamp-progress b{font-size:24px}
.coupon-stamp-progress span{font-size:10px;color:#a0a6b0}
.coupon-stamp-reward.locked{background:#fffdf4}
.coupon-note{display:grid;grid-template-columns:24px 1fr;gap:8px;align-items:start;margin:15px 2px 0;color:var(--muted)}
.coupon-note>span{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#e9edf3;color:#657080;font-size:9px;font-weight:900}
.coupon-note p{font-size:8px;line-height:1.55;margin:3px 0 0}

/* My Shop v0.1.8 ----------------------------------------------- */
.affiliated-shops-lead{font-size:9px;line-height:1.6;color:var(--muted);margin:-3px 0 10px}
.myshop-setting-row{grid-column:1/-1;padding:14px 15px;border-top:1px solid var(--line);background:#fafbfc}
.myshop-current-setting{display:grid;grid-template-columns:34px 1fr;gap:9px;align-items:center}
.myshop-current-setting>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#eaf9f1;color:var(--green);font-weight:900}
.myshop-current-setting strong,.myshop-setting-copy strong{display:block;font-size:11px}
.myshop-current-setting small,.myshop-setting-copy small{display:block;font-size:8px;line-height:1.55;color:var(--muted);margin-top:3px}
.myshop-setting-btn{width:100%;margin-top:10px;padding:11px;font-size:10px}
.affiliated-shops-section .myshop-switch.viewing{border-color:#9eb8d5;box-shadow:0 8px 20px rgba(11,75,128,.06)}
.affiliated-shops-section .myshop-switch.selected{border-color:#f0aab8}
.affiliated-shops-section .myshop-switch.selected>div>small{color:var(--red)}
.affiliated-shops-section .myshop-switch.viewing>div>small{font-weight:900}

@media(min-width:600px){
  .campaign-feature{display:grid;grid-template-columns:1.1fr .9fr}
  .campaign-feature-photo{height:100%;min-height:310px}
  .campaign-feature-body{padding:26px;display:flex;flex-direction:column;justify-content:center}
  .campaign-article-grid{grid-template-columns:1fr 1fr}
  .campaign-article-image{height:230px}
  .coupon-stack{grid-template-columns:1fr 1fr}
  .myshop-setting-row{display:flex;align-items:center;justify-content:space-between;gap:18px}
  .myshop-setting-copy{max-width:390px}
  .myshop-setting-btn{width:auto;min-width:170px;margin-top:0}
}


/* ==============================================================
   v0.1.9 My Car
   ============================================================== */
.mycar-page-title{margin-bottom:14px}
.mycar-hero{overflow:hidden;background:linear-gradient(150deg,#f8fafc,#eef2f7);border-radius:26px}
.mycar-hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 18px 0}
.mycar-status{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:#eaf9f1;color:#14704c;font-size:8px;font-weight:900}
.mycar-status i{width:6px;height:6px;border-radius:50%;background:#21a56f}
.mycar-hero-top small{display:block;margin-top:12px;font-size:9px;letter-spacing:.12em;color:#737e8e;font-weight:900}
.mycar-hero-top h2{font-size:30px;letter-spacing:-.03em;margin:2px 0 3px}
.mycar-hero-top p{font-size:10px;color:var(--muted);margin:0}
.mycar-hero-top p b{padding:0 4px;color:#bdc4cd}
.mycar-edit-btn{border:1px solid #d9dfe7;background:#fff;color:var(--navy);border-radius:11px;padding:8px 12px;font-size:9px;font-weight:900;box-shadow:0 5px 14px rgba(23,32,51,.05)}
.mycar-visual{height:210px;position:relative;display:grid;place-items:center;padding:0 8px 8px;overflow:hidden}
.mycar-visual svg{position:relative;z-index:2;width:100%;max-width:580px;height:auto;filter:drop-shadow(0 12px 16px rgba(23,32,51,.08))}
.mycar-glow{position:absolute;width:280px;height:120px;border-radius:50%;background:rgba(250,190,0,.18);filter:blur(28px);left:50%;top:67px;transform:translateX(-50%)}
.mycar-image-note{position:absolute;z-index:3;right:13px;bottom:10px;font-size:7px;color:#9aa3ae;background:rgba(255,255,255,.75);padding:4px 6px;border-radius:999px}
.mycar-profile-grid{display:grid;grid-template-columns:1fr 1fr;overflow:hidden}
.mycar-profile-item{padding:14px 15px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-height:67px}
.mycar-profile-item:nth-child(even){border-right:0}
.mycar-profile-item.wide{grid-column:1/-1;border-right:0;border-bottom:0}
.mycar-profile-item span{display:block;font-size:8px;color:var(--muted)}
.mycar-profile-item strong{display:block;font-size:13px;margin-top:4px;line-height:1.35}
.mycar-benefit{padding:15px;display:grid;grid-template-columns:46px 1fr;gap:12px;align-items:start;background:#fffdf4;border-color:#f1dda0}
.mycar-benefit-icon{width:46px;height:46px;border-radius:15px;background:var(--yellow);color:var(--navy);display:grid;place-items:center;font-size:21px}
.mycar-benefit small{font-size:7px;letter-spacing:.11em;color:#9b7900;font-weight:900}
.mycar-benefit strong{display:block;font-size:13px;margin:3px 0}
.mycar-benefit p{font-size:9px;line-height:1.6;color:#746b4d;margin:0}
.mycar-ai-link{display:grid;grid-template-columns:46px 1fr auto;gap:11px;align-items:center;padding:15px;background:linear-gradient(135deg,#17233b,#273c61);border:0;color:#fff}
.mycar-ai-symbol{width:46px;height:46px;border-radius:15px;background:var(--yellow);color:var(--navy);display:grid;place-items:center;font-size:20px}
.mycar-ai-link small{font-size:7px;color:#ffe078;letter-spacing:.09em;font-weight:900}
.mycar-ai-link strong{display:block;font-size:13px;margin-top:2px}
.mycar-ai-link p{font-size:8px;line-height:1.5;color:#d7dfec;margin:3px 0 0}
.mycar-ai-link>b{font-size:25px;font-weight:300;color:#fff}
.mycar-sheet-backdrop{position:fixed;inset:0;z-index:89;background:rgba(13,22,37,.46);opacity:0;transition:.22s;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.mycar-sheet-backdrop.show{opacity:1}
.mycar-sheet{position:fixed;left:50%;bottom:0;z-index:90;width:min(100%,680px);max-height:86vh;overflow:auto;background:#fff;border-radius:26px 26px 0 0;padding:8px 18px calc(22px + env(safe-area-inset-bottom,0px));box-shadow:0 -20px 50px rgba(23,32,51,.18);transform:translate(-50%,105%);transition:.25s ease}
.mycar-sheet.show{transform:translate(-50%,0)}
.mycar-sheet-handle{width:42px;height:4px;border-radius:999px;background:#d6dbe3;margin:2px auto 13px}
.mycar-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:14px}
.mycar-sheet-head small{font-size:8px;letter-spacing:.11em;color:var(--red);font-weight:900}
.mycar-sheet-head h2{font-size:21px;margin:3px 0 0}
.mycar-sheet-head button{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:#fff;color:#7c8591;font-size:20px}
.mycar-sheet form{display:grid;gap:11px}
.mycar-sheet label>span{display:block;font-size:9px;font-weight:800;margin:0 0 5px}
.mycar-sheet input,.mycar-sheet select{width:100%;height:44px;border:1px solid #dfe3e9;border-radius:12px;background:#fafbfc;padding:0 12px;color:var(--navy);outline:none}
.mycar-sheet input:focus,.mycar-sheet select:focus{border-color:#e9a0ae;background:#fff;box-shadow:0 0 0 3px rgba(230,0,45,.06)}
.mycar-form-row{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.mycar-form-note{font-size:8px;line-height:1.55;color:var(--muted);background:#f5f7fa;border-radius:10px;padding:9px;margin:0}
body.sheet-open{overflow:hidden}
@media(min-width:600px){
  .mycar-hero-top{padding:24px 26px 0}
  .mycar-visual{height:280px}
  .mycar-hero-top h2{font-size:38px}
  .mycar-profile-grid{grid-template-columns:repeat(4,1fr)}
  .mycar-profile-item,.mycar-profile-item:nth-child(even){border-right:1px solid var(--line)}
  .mycar-profile-item:nth-child(4){border-right:0}
  .mycar-profile-item.wide{grid-column:1/-1;border-top:0}
}


/* ==============================================================
   v0.1.10 My Car photo
   ============================================================== */
.mycar-photo-visual{
  height:auto;
  min-height:230px;
  padding:8px 14px 18px;
  display:block;
  position:relative;
  overflow:hidden;
}
.mycar-photo-stage{
  position:relative;
  height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:20px;
  overflow:hidden;
  background:linear-gradient(180deg,#ffffff 0%,#f4f6f9 100%);
}
.mycar-photo-stage:after{
  content:"";
  position:absolute;
  left:18%;
  right:18%;
  bottom:19px;
  height:22px;
  background:rgba(23,32,51,.13);
  filter:blur(14px);
  border-radius:50%;
}
.mycar-photo-stage img{
  position:relative;
  z-index:2;
  display:block;
  width:min(96%,560px);
  max-height:205px;
  object-fit:contain;
}
.mycar-photo-visual .mycar-image-note{
  right:22px;
  bottom:21px;
  background:rgba(255,255,255,.90);
}
@media(min-width:600px){
  .mycar-photo-visual{
    padding:10px 24px 24px;
  }
  .mycar-photo-stage{
    height:310px;
  }
  .mycar-photo-stage img{
    width:min(92%,700px);
    max-height:290px;
  }
}


/* ==============================================================
   v0.1.11 Store-only campaigns
   ============================================================== */
.campaign-shop-name{display:block;margin-top:3px;font-size:8px;color:var(--muted);font-weight:700}
.store-only-title p{font-size:11px}
.store-campaign-hero{overflow:hidden;border:0}
.store-campaign-hero-photo{height:210px;position:relative;overflow:hidden}
.store-campaign-hero-photo img{width:100%;height:100%;object-fit:cover;display:block}
.store-campaign-hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(13,22,37,.04),rgba(13,22,37,.62))}
.store-campaign-hero-badge{position:absolute;left:14px;top:14px;background:var(--red);color:#fff;padding:6px 9px;border-radius:999px;font-size:8px;font-weight:900;letter-spacing:.10em}
.store-campaign-hero-copy{position:absolute;left:17px;right:17px;bottom:16px;color:#fff}
.store-campaign-hero-copy small{font-size:8px;color:#ffe173;font-weight:900}
.store-campaign-hero-copy strong{display:block;font-size:20px;margin:2px 0 3px}
.store-campaign-hero-copy span{font-size:9px;color:rgba(255,255,255,.84)}
.campaign-count{font-size:9px;font-weight:900;color:var(--red);background:#fff1f4;border-radius:999px;padding:5px 8px}
.store-campaign-list{display:grid;gap:14px}
.store-campaign-card{overflow:hidden}
.store-campaign-art{height:150px;position:relative;overflow:hidden}
.store-campaign-art>img{width:100%;height:100%;object-fit:cover;display:block}
.store-campaign-art:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.30))}
.store-campaign-label{position:absolute;z-index:2;left:12px;top:12px;background:rgba(23,35,59,.90);color:#fff;border-radius:999px;padding:5px 8px;font-size:7px;letter-spacing:.09em;font-weight:900}
.store-campaign-art>b{position:absolute;z-index:2;right:12px;bottom:12px;color:#fff;background:var(--red);border-radius:12px;padding:8px 10px;font-size:12px;box-shadow:0 5px 16px rgba(0,0,0,.15)}
.store-campaign-yellow .store-campaign-art>b{background:var(--yellow);color:var(--navy)}
.store-campaign-navy .store-campaign-art>b{background:var(--navy)}
.store-campaign-graphic{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(135deg,#eef2f7,#dfe5ed)}
.store-campaign-navy .store-campaign-graphic{background:linear-gradient(135deg,#17233b,#31496f)}
.store-campaign-yellow .store-campaign-graphic{background:linear-gradient(135deg,#fff5c2,#fabe00)}
.store-campaign-graphic>span{font-size:64px;font-weight:900;color:rgba(255,255,255,.88)}
.store-campaign-yellow .store-campaign-graphic>span{color:rgba(23,35,59,.90)}
.store-campaign-body{padding:15px}
.store-campaign-body>small{font-size:8px;letter-spacing:.07em;color:var(--red);font-weight:900}
.store-campaign-body h2{font-size:17px;line-height:1.4;margin:5px 0 6px}
.store-campaign-body p{font-size:10px;line-height:1.65;color:var(--muted);margin:0}
.store-campaign-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:12px;padding-top:10px}
.store-campaign-footer>span{font-size:8px;background:#fff1f4;color:var(--red);border-radius:999px;padding:5px 7px;font-weight:800}
.store-campaign-footer button{border:0;background:transparent;color:var(--navy);font-size:9px;font-weight:900}
.store-campaign-footer button b{font-size:15px}
.store-campaign-shop-link{display:flex;justify-content:center;gap:7px;align-items:center;margin:18px 0 4px;font-size:8px;color:var(--muted)}
.store-campaign-shop-link a{color:var(--red);font-weight:900}
@media(min-width:600px){
  .store-campaign-hero-photo{height:300px}
  .store-campaign-list{grid-template-columns:repeat(2,1fr)}
  .store-campaign-card:first-child{grid-column:1/-1;display:grid;grid-template-columns:1.08fr .92fr}
  .store-campaign-card:first-child .store-campaign-art{height:100%;min-height:260px}
  .store-campaign-card:first-child .store-campaign-body{display:flex;flex-direction:column;justify-content:center;padding:24px}
  .store-campaign-art{height:190px}
}


/* ==============================================================
   v0.1.12 Physical store stamp cards
   ============================================================== */
.physical-stamp-section{overflow:visible}
.stamp-swipe-hint{font-size:8px;color:var(--muted);font-weight:800;background:#eef1f5;border-radius:999px;padding:5px 8px}
.stamp-wallet{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 32px 10px 0;margin-right:-16px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.stamp-wallet::-webkit-scrollbar{display:none}
.physical-stamp-card{position:relative;flex:0 0 89%;scroll-snap-align:start;min-height:250px;border-radius:18px;padding:17px 16px 14px;overflow:hidden;color:#302e2a;background:
linear-gradient(rgba(255,255,255,.84),rgba(255,255,255,.84)),
repeating-linear-gradient(0deg,rgba(82,66,41,.04) 0,rgba(82,66,41,.04) 1px,transparent 1px,transparent 4px),
#f5eddd;border:1px solid #dfd0b5;box-shadow:0 11px 28px rgba(56,45,27,.11)}
.physical-stamp-card:before{content:"";position:absolute;inset:7px;border:1px solid rgba(114,87,50,.21);border-radius:13px;pointer-events:none}
.physical-card-edge{position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--red)}
.stamp-theme-navy .physical-card-edge{background:var(--navy)}
.physical-card-head{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:flex-start;padding-left:5px}
.physical-card-head>div{display:flex;flex-direction:column}
.physical-card-kicker{font-size:7px;letter-spacing:.16em;font-weight:900;color:var(--red)}
.stamp-theme-navy .physical-card-kicker{color:var(--navy)}
.physical-card-head strong{font-size:11px;letter-spacing:.08em;margin-top:2px}
.physical-card-number{font-size:8px;letter-spacing:.12em;color:#877b67;border:1px solid #cdbd9f;border-radius:4px;padding:4px 5px;background:rgba(255,255,255,.48)}
.physical-store-name{position:relative;z-index:2;margin:13px 0 10px;padding-left:5px}
.physical-store-name small{display:block;font-size:7px;color:#8e8474}
.physical-store-name strong{display:inline-block;font-size:19px;letter-spacing:-.02em;margin-top:1px}
.physical-store-name>span{display:inline-block;margin-left:6px;vertical-align:3px;background:var(--red);color:#fff;border-radius:999px;padding:4px 6px;font-size:6px;letter-spacing:.08em;font-weight:900}
.stamp-theme-navy .physical-store-name>span{background:var(--navy)}
.rubber-stamp-grid{position:relative;z-index:2;display:grid;grid-template-columns:repeat(5,1fr);gap:6px;border-top:1px dashed #c9b998;border-bottom:1px dashed #c9b998;padding:12px 1px}
.rubber-stamp-slot{display:grid;place-items:center;min-width:0}
.rubber-stamp-empty,.rubber-stamp-imprint{width:47px;max-width:100%;aspect-ratio:1;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}
.rubber-stamp-empty{border:1.5px dashed #b7a88f;color:#9c8e77;background:rgba(255,255,255,.32)}
.rubber-stamp-empty b{font-size:11px}
.rubber-stamp-empty small{font-size:5px;margin-top:1px;letter-spacing:.08em}
.rubber-stamp-slot.reward .rubber-stamp-empty{border-style:solid;border-color:#d7ad22;background:rgba(250,190,0,.13);color:#735b07}
.rubber-stamp-imprint{position:relative;border:3px double rgba(199,31,54,.76);color:rgba(183,19,45,.84);transform:rotate(-5deg);background:rgba(255,255,255,.08);text-shadow:.6px .3px rgba(183,19,45,.20)}
.rubber-stamp-slot:nth-child(2) .rubber-stamp-imprint{transform:rotate(4deg)}
.rubber-stamp-slot:nth-child(3) .rubber-stamp-imprint{transform:rotate(-2deg);opacity:.86}
.rubber-stamp-slot:nth-child(4) .rubber-stamp-imprint{transform:rotate(6deg);opacity:.91}
.rubber-stamp-slot:nth-child(5) .rubber-stamp-imprint{transform:rotate(-4deg)}
.stamp-theme-navy .rubber-stamp-imprint{border-color:rgba(23,35,59,.70);color:rgba(23,35,59,.78);text-shadow:.6px .3px rgba(23,35,59,.15)}
.rubber-stamp-imprint>span{font-size:10px;line-height:1}
.rubber-stamp-imprint b{font-family:Georgia,"Times New Roman",serif;font-size:8px;line-height:1.15;letter-spacing:.03em}
.rubber-stamp-imprint small{font-size:5px;font-weight:900;letter-spacing:.07em}
.physical-card-foot{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:flex-end;gap:8px;padding:10px 5px 0}
.physical-card-foot>div{display:flex;flex-direction:column}
.physical-card-foot>div span{font-size:7px;letter-spacing:.12em;color:#8c816f;font-weight:900}
.physical-card-foot>div strong{font-size:10px;margin-top:2px}
.physical-card-foot>small{font-size:6px;color:#9d927f}
.stamp-wallet-caption{font-size:7px;color:var(--muted);margin:1px 3px 0}
.stamp-wallet-caption span{color:var(--red);font-size:7px;margin-right:3px}

/* Stamp history only */
.stamp-history-title{margin-bottom:14px}
.stamp-history-list{display:grid;gap:9px}
.stamp-history-row{display:grid;grid-template-columns:43px 1fr auto;gap:11px;align-items:center;padding:12px 13px}
.history-store-mark{width:43px;height:43px;border-radius:13px;display:grid;place-items:center;color:#fff;background:var(--red);font-size:10px;font-weight:900;letter-spacing:.04em}
.history-store-mark.navy{background:var(--navy)}
.history-stamp-main{min-width:0;display:flex;flex-direction:column}
.history-stamp-main small{font-size:7px;color:var(--muted)}
.history-stamp-main strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.history-stamp-main span{font-size:8px;color:#8a929e;margin-top:3px}
.history-stamp-earned{text-align:right;display:flex;flex-direction:column;align-items:flex-end}
.history-stamp-earned b{font-size:16px;color:var(--red)}
.history-stamp-earned>span{font-size:6px;letter-spacing:.12em;color:#8d96a2;font-weight:900}
.history-stamp-earned small{font-size:7px;color:#9aa2ad;margin-top:2px}
.stamp-history-note{display:grid;grid-template-columns:24px 1fr;gap:8px;align-items:start;margin:14px 2px 0;color:var(--muted)}
.stamp-history-note>span{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#e9edf3;color:#657080;font-size:9px;font-weight:900}
.stamp-history-note p{font-size:8px;line-height:1.55;margin:3px 0 0}

/* Check-in paper stamp card */
.checkin-paper-card{background:
linear-gradient(rgba(255,255,255,.86),rgba(255,255,255,.86)),
repeating-linear-gradient(0deg,rgba(82,66,41,.04) 0,rgba(82,66,41,.04) 1px,transparent 1px,transparent 4px),
#f5eddd;border:1px solid #decfb4;border-left:5px solid var(--red);border-radius:16px;padding:14px;margin-top:12px;text-align:left}
.checkin-paper-card.navy{border-left-color:var(--navy)}
.checkin-paper-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px dashed #c8b997;padding-bottom:9px}
.checkin-paper-head>div{display:flex;flex-direction:column}
.checkin-paper-head small{font-size:6px;letter-spacing:.12em;color:#8d826f}
.checkin-paper-head strong{font-size:13px;margin-top:2px}
.checkin-paper-head>span{font-size:9px;font-weight:900;border:1px solid #ccbda2;border-radius:4px;padding:4px;color:#776d5d}
.checkin-rubber-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;padding:12px 0}
.checkin-rubber-slot{display:grid;place-items:center}
.checkin-rubber-empty,.checkin-rubber-imprint{width:43px;max-width:100%;aspect-ratio:1;border-radius:50%;display:flex;align-items:center;justify-content:center}
.checkin-rubber-empty{border:1.5px dashed #b8aa91;color:#9c8e77;font-size:10px}
.checkin-rubber-slot.reward .checkin-rubber-empty{border-style:solid;border-color:#d7ad22;background:rgba(250,190,0,.13);color:#735b07}
.checkin-rubber-imprint{flex-direction:column;border:3px double rgba(193,28,52,.74);color:rgba(179,17,43,.84);transform:rotate(-4deg)}
.checkin-paper-card.navy .checkin-rubber-imprint{border-color:rgba(23,35,59,.72);color:rgba(23,35,59,.80)}
.checkin-rubber-imprint b{font-size:10px;line-height:1}
.checkin-rubber-imprint span{font-family:Georgia,"Times New Roman",serif;font-size:7px;font-weight:900}
.checkin-paper-card .checkin-next{text-align:center;border-top:1px dashed #c8b997;padding-top:9px;font-size:10px;font-weight:900;color:#524838}

@media(min-width:600px){
  .physical-stamp-card{flex-basis:76%;min-height:270px}
  .rubber-stamp-empty,.rubber-stamp-imprint{width:58px}
  .physical-store-name strong{font-size:22px}
}


/* ==============================================================
   v0.1.13 Admin Store CRM
   ============================================================== */
.admin-scope-wrap{margin:0 0 18px;display:flex;gap:16px;align-items:center;justify-content:space-between}
.admin-scope-label{display:none}
.admin-store-switcher{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding:1px}
.admin-store-switcher::-webkit-scrollbar{display:none}
.admin-store-switcher a{min-width:112px;padding:9px 11px;border:1px solid var(--line);border-radius:13px;background:#fff;display:flex;flex-direction:column;box-shadow:0 4px 14px rgba(23,32,51,.03)}
.admin-store-switcher a span{font-size:10px;font-weight:900;white-space:nowrap}
.admin-store-switcher a small{font-size:7px;color:var(--muted);letter-spacing:.08em;margin-top:2px}
.admin-store-switcher a.active{background:var(--navy);border-color:var(--navy);color:#fff}
.admin-store-switcher a.active small{color:#aebbd2}
.admin-overview-head{display:flex;flex-direction:column;gap:13px;margin-bottom:16px}
.admin-overview-head.compact{margin-bottom:14px}
.admin-overview-kicker{font-size:8px;letter-spacing:.12em;color:var(--red);font-weight:900}
.admin-overview-head h1{font-size:24px;margin:4px 0 4px;letter-spacing:-.02em}
.admin-overview-head p{font-size:10px;line-height:1.6;color:var(--muted);margin:0;max-width:680px}
.admin-primary-action,.admin-secondary-action{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:12px;padding:11px 14px;font-size:10px;font-weight:900;white-space:nowrap}
.admin-primary-action{background:var(--red);color:#fff}
.admin-secondary-action{background:#fff;color:var(--navy);border:1px solid var(--line)}
.admin-action-buttons{display:flex;gap:7px;flex-wrap:wrap}
.admin-kpi-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.admin-kpi-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:0 7px 20px rgba(23,32,51,.04)}
.admin-kpi-card>span{font-size:8px;color:var(--muted);font-weight:700}
.admin-kpi-card>strong{display:block;font-size:28px;line-height:1.1;margin:5px 0 3px;letter-spacing:-.04em}
.admin-kpi-card>strong small{font-size:9px;margin-left:2px;color:#737d8c}
.admin-kpi-card>em{font-style:normal;font-size:7px;color:#7c8795}
.admin-kpi-card.attention{background:#fffaf0;border-color:#f3dda1}
.admin-kpi-card.attention>strong{color:#8a6500}
.admin-ai-today{margin-top:12px;padding:17px;display:grid;grid-template-columns:46px 1fr;gap:12px;background:linear-gradient(135deg,#17233b,#283f68);color:#fff;border:0}
.admin-ai-today-icon{width:46px;height:46px;border-radius:15px;background:var(--yellow);color:var(--navy);display:grid;place-items:center;font-size:20px}
.admin-ai-today-label{font-size:8px;letter-spacing:.12em;color:#ffe078;font-weight:900}
.admin-ai-today h2{font-size:17px;line-height:1.45;margin:4px 0 5px}
.admin-ai-today p{font-size:9px;line-height:1.7;color:#d8e0ed;margin:0}
.admin-ai-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:11px}
.admin-ai-actions .btn{padding:9px 12px;font-size:9px}
.admin-text-link{font-size:9px;font-weight:800;color:#fff}
.admin-store-cards{display:grid;gap:10px}
.admin-store-card{padding:15px;display:block}
.admin-store-card-head{display:flex;justify-content:space-between;align-items:flex-start}
.admin-store-card-head>div{display:flex;flex-direction:column}
.admin-store-card-head span{font-size:8px;color:var(--muted)}
.admin-store-card-head strong{font-size:16px;margin-top:2px}
.admin-store-card-head>b{width:34px;height:34px;border-radius:11px;background:#eef1f5;display:grid;place-items:center;color:var(--navy);font-size:9px}
.admin-store-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:13px}
.admin-store-metrics div{background:#f7f8fa;border-radius:10px;padding:8px;text-align:center}
.admin-store-metrics span{display:block;font-size:6px;color:var(--muted)}
.admin-store-metrics strong{display:block;font-size:16px;margin-top:2px}
.admin-store-card-foot{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:10px;margin-top:10px}
.admin-store-card-foot span{font-size:8px;color:var(--muted)}
.admin-store-card-foot b{font-size:8px;color:var(--red)}
.admin-dashboard-columns{display:grid;gap:16px}
.admin-follow-list{overflow:hidden}
.admin-follow-row{display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;padding:12px 13px;border-bottom:1px solid var(--line)}
.admin-follow-row:last-child{border-bottom:0}
.admin-follow-main{min-width:0}
.admin-follow-main>div{display:flex;align-items:center;gap:6px}
.admin-follow-main>div strong{font-size:11px}
.admin-follow-main>div span{font-size:7px;background:#f0f2f5;color:#657080;border-radius:999px;padding:3px 5px}
.admin-follow-main p{font-size:8px;color:var(--red);font-weight:700;margin:3px 0 1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-follow-main small{display:block;font-size:7px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-live-actions{overflow:hidden}
.admin-live-action-row{display:grid;grid-template-columns:66px 1fr auto;gap:8px;align-items:center;padding:11px 12px;border-bottom:1px solid var(--line)}
.admin-live-action-row:last-child{border-bottom:0}
.admin-action-type{font-size:6px;letter-spacing:.06em;font-weight:900;color:#fff;background:var(--red);border-radius:999px;padding:5px 6px;text-align:center}
.admin-action-type.coupon{background:var(--yellow);color:var(--navy)}
.admin-live-action-row>div strong{display:block;font-size:10px}
.admin-live-action-row>div small{display:block;font-size:7px;color:var(--muted);margin-top:2px}
.admin-live-action-row>b{font-size:7px;color:var(--green)}
.admin-checkin-list{overflow:hidden}
.admin-checkin-row{display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;padding:11px 12px;border-bottom:1px solid var(--line)}
.admin-checkin-row:last-child{border-bottom:0}
.admin-checkin-row .history-store-mark{width:38px;height:38px;border-radius:11px;font-size:8px}
.admin-checkin-row>div:nth-child(2) strong{display:block;font-size:10px}
.admin-checkin-row>div:nth-child(2) small{display:block;font-size:7px;color:var(--muted);margin-top:2px}
.admin-checkin-row>span{font-size:7px;background:#f1f3f6;color:#657080;border-radius:999px;padding:5px 7px;font-weight:800}

/* customers */
.admin-filter-panel{padding:11px;margin-bottom:10px}
.admin-search-box{display:flex;align-items:center;gap:7px;background:#f5f7fa;border-radius:11px;padding:0 10px}
.admin-search-box span{font-size:16px;color:#8b95a2}
.admin-search-box input{height:40px;flex:1;border:0;background:transparent;outline:0;font-size:10px}
.admin-filter-pills{margin:9px 0 0}
.admin-customer-cards{overflow:hidden}
.admin-customer-row{display:grid;grid-template-columns:42px 1fr auto auto;gap:9px;align-items:center;padding:12px 12px;border-bottom:1px solid var(--line)}
.admin-customer-row:last-child{border-bottom:0}
.admin-customer-person strong{display:block;font-size:11px}
.admin-customer-person small{font-size:7px;color:var(--muted)}
.admin-customer-store,.admin-customer-car,.admin-customer-stamp,.admin-customer-line{display:none}
.admin-customer-row>.score{justify-self:end}
.admin-row-arrow{font-size:20px;color:#b0b6bf;font-weight:300}
.admin-no-result{padding:24px;text-align:center;font-size:10px;color:var(--muted)}

/* customer detail */
.admin-customer-detail-head{padding:15px;display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center}
.person-avatar.large{width:52px;height:52px;border-radius:16px;font-size:15px}
.admin-detail-badges{display:flex;gap:5px;flex-wrap:wrap}
.admin-myshop-badge{font-size:7px;font-weight:900;color:#fff;background:var(--navy);border-radius:999px;padding:4px 6px}
.admin-customer-detail-copy h1{font-size:19px;margin:4px 0 2px}
.admin-customer-detail-copy p{font-size:8px;color:var(--muted);margin:0}
.admin-detail-score{text-align:right}
.admin-detail-score span{display:block;font-size:6px;color:var(--muted);letter-spacing:.07em}
.admin-detail-score strong{font-size:25px;color:var(--red)}
.admin-detail-grid{display:grid;gap:11px}
.admin-detail-card{padding:15px}
.admin-detail-card-head span{font-size:7px;letter-spacing:.11em;color:var(--red);font-weight:900}
.admin-detail-card-head h2{font-size:14px;margin:3px 0 10px}
.admin-detail-stamp-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.admin-detail-stamp-row:last-child{border-bottom:0}
.admin-detail-stamp-row>div:first-child span{display:block;font-size:7px;color:var(--muted)}
.admin-detail-stamp-row>div:first-child strong{display:block;font-size:10px;margin-top:1px}
.admin-detail-stamp-row>b{font-size:9px;color:#737d8c}
.admin-mini-stamps{display:flex;gap:3px}
.admin-mini-stamps span{width:12px;height:12px;border-radius:50%;background:#eef0f3;border:1px dashed #cbd0d7}
.admin-mini-stamps span.on{background:var(--red);border-color:var(--red)}
.admin-mini-stamps span.reward{border-color:#d9b329;background:#fff8da}
.admin-mini-stamps span.reward.on{background:var(--yellow)}
.admin-segment-tags{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:12px}
.admin-segment-tags span{font-size:8px;background:#f1f3f6;color:#5f6875;border-radius:999px;padding:6px 8px;font-weight:700}
.admin-detail-ai{background:linear-gradient(135deg,#fff,#f8fafc)}
.admin-ai-customer-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}

/* AI */
.admin-ai-hero{padding:18px;display:grid;grid-template-columns:48px 1fr;gap:12px;background:linear-gradient(135deg,#17233b,#2a426d);border:0;color:#fff}
.admin-ai-hero-symbol{width:48px;height:48px;border-radius:15px;background:var(--yellow);color:var(--navy);display:grid;place-items:center;font-size:21px}
.admin-ai-hero span{font-size:7px;letter-spacing:.12em;color:#ffe17a;font-weight:900}
.admin-ai-hero h1{font-size:18px;line-height:1.45;margin:3px 0 5px}
.admin-ai-hero p{font-size:9px;line-height:1.65;color:#d7e0ed;margin:0}
.admin-ai-grid{display:grid;gap:9px}
.admin-ai-insight{position:relative;padding:16px;overflow:hidden}
.admin-insight-no{position:absolute;right:10px;top:2px;font-size:42px;font-weight:900;color:#f1f3f6;line-height:1}
.admin-ai-insight>span{font-size:7px;letter-spacing:.10em;color:var(--red);font-weight:900}
.admin-ai-insight h2{font-size:14px;margin:4px 0 6px;position:relative}
.admin-ai-insight p{font-size:9px;line-height:1.65;color:var(--muted);margin:0;position:relative}
.admin-ai-insight p b{color:var(--red)}
.admin-ai-insight a{display:inline-block;font-size:8px;color:var(--red);font-weight:900;margin-top:10px}
.admin-segment-summary{display:grid;gap:9px}
.admin-segment-summary>.card{padding:14px}
.admin-segment-summary>.card>span{display:block;font-size:7px;letter-spacing:.09em;color:var(--red);font-weight:900;margin-bottom:7px}
.admin-segment-summary>.card>div{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--line)}
.admin-segment-summary>.card>div:last-child{border-bottom:0}
.admin-segment-summary strong{font-size:10px}
.admin-segment-summary b{font-size:9px;color:var(--muted)}

/* marketing */
.admin-marketing-ai{padding:16px;display:grid;grid-template-columns:46px 1fr;gap:11px;background:#fffaf0;border-color:#f0dda8}
.admin-marketing-ai>div:nth-child(2)>span{font-size:7px;letter-spacing:.10em;color:#8a6800;font-weight:900}
.admin-marketing-ai h2{font-size:15px;margin:3px 0 5px}
.admin-marketing-ai p{font-size:9px;line-height:1.65;color:#70674c;margin:0 0 10px}
.admin-marketing-grid{display:grid;gap:11px}
.admin-target-builder,.admin-line-preview{padding:15px}
.admin-target-row{display:flex;justify-content:space-between;align-items:center;background:#f7f8fa;border-radius:10px;padding:9px 10px;margin-bottom:10px}
.admin-target-row span{font-size:8px;color:var(--muted)}
.admin-target-row strong{font-size:10px}
.admin-target-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.admin-target-fields label span{display:block;font-size:7px;color:var(--muted);margin-bottom:4px}
.admin-target-fields select{width:100%;height:37px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 8px;font-size:9px}
.admin-target-result{display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);padding-top:11px;margin-top:11px}
.admin-target-result>span{font-size:8px;color:var(--muted)}
.admin-target-result>strong{font-size:23px;margin-right:auto}
.admin-target-result>strong small{font-size:8px}
.admin-target-result button{border:0;background:var(--navy);color:#fff;border-radius:9px;padding:8px 10px;font-size:8px;font-weight:800}
.admin-line-bubble{position:relative;background:#eefaf2;border:1px solid #cdebd8;border-radius:16px;padding:14px;margin:10px 0 12px}
.admin-line-bubble:before{content:"";position:absolute;left:-7px;top:18px;width:14px;height:14px;background:#eefaf2;border-left:1px solid #cdebd8;border-bottom:1px solid #cdebd8;transform:rotate(45deg)}
.admin-line-bubble small{font-size:7px;color:#45805e}
.admin-line-bubble strong{display:block;font-size:12px;margin:4px 0}
.admin-line-bubble p{font-size:9px;line-height:1.6;color:#49705a;margin:0}
.admin-line-bubble span{display:block;background:#fff;color:#248453;text-align:center;border-radius:9px;padding:8px;margin-top:10px;font-size:8px;font-weight:900}
.admin-action-table{overflow:hidden}
.admin-action-table-row{display:grid;grid-template-columns:65px 1fr auto;gap:8px;align-items:center;padding:11px 12px;border-bottom:1px solid var(--line)}
.admin-action-table-row:last-child{border-bottom:0}
.admin-action-table-title strong{display:block;font-size:10px}
.admin-action-table-title small{font-size:7px;color:var(--muted)}
.admin-action-table-target{display:none}
.admin-action-table-row>.tag{display:none}
.admin-action-table-row>button{border:0;background:#f1f3f6;color:#657080;border-radius:8px;padding:7px 8px;font-size:7px;font-weight:800}

@media(min-width:760px){
  .admin-overview-head{flex-direction:row;align-items:flex-end;justify-content:space-between}
  .admin-kpi-grid{grid-template-columns:repeat(4,1fr)}
  .admin-store-cards{grid-template-columns:1fr 1fr}
  .admin-dashboard-columns{grid-template-columns:1fr 1fr}
  .admin-ai-grid{grid-template-columns:repeat(3,1fr)}
  .admin-segment-summary{grid-template-columns:repeat(3,1fr)}
  .admin-marketing-grid{grid-template-columns:1.15fr .85fr}
  .admin-detail-grid{grid-template-columns:1fr 1fr}
  .admin-detail-grid .wide{grid-column:1/-1}
}
@media(min-width:960px){
  .admin-scope-wrap{margin-bottom:22px}
  .admin-scope-label{display:flex;flex-direction:column;margin-right:auto}
  .admin-scope-label span{font-size:7px;letter-spacing:.11em;color:var(--muted);font-weight:900}
  .admin-scope-label strong{font-size:14px;margin-top:2px}
  .admin-store-switcher a{min-width:140px}
  .admin-customer-row{grid-template-columns:44px 130px 130px 1fr 70px 76px 52px 18px;gap:11px}
  .admin-customer-store,.admin-customer-car,.admin-customer-stamp,.admin-customer-line{display:block}
  .admin-customer-store span,.admin-customer-car span,.admin-customer-stamp span{display:block;font-size:6px;color:var(--muted)}
  .admin-customer-store strong,.admin-customer-car strong{display:block;font-size:10px;margin-top:2px}
  .admin-customer-car small{display:block;font-size:7px;color:var(--muted);margin-top:2px}
  .admin-customer-stamp strong{font-size:17px;color:var(--red)}
  .admin-customer-stamp strong small{font-size:7px;color:var(--muted)}
  .admin-action-table-row{grid-template-columns:72px 1.2fr 1fr 58px 48px}
  .admin-action-table-target{display:block}
  .admin-action-table-target span{display:block;font-size:6px;color:var(--muted)}
  .admin-action-table-target strong{font-size:8px}
  .admin-action-table-row>.tag{display:inline-block}
}


/* ==============================================================
   v0.1.16 Stamp lifecycle / real reward coupon
   ============================================================== */
.stamp-reward-link{display:inline-flex;color:var(--red);font-weight:900;background:#fff1f4;border-radius:999px;padding:4px 6px;font-size:6px}
.history-event{display:inline-block;width:max-content;font-style:normal;font-size:6px;font-weight:900;border-radius:999px;padding:3px 5px;margin-top:4px}
.history-event.reward{background:#fff4c8;color:#755900}
.history-event.new-card{background:#eaf1fb;color:#2f527e}

.coupon-tabs a{border:0;background:transparent;border-radius:10px;padding:9px;font-size:10px;color:#7c8490;font-weight:800;text-align:center}
.coupon-tabs a.active{background:#fff;color:var(--navy);box-shadow:0 3px 12px rgba(23,32,51,.07)}
.coupon-tabs a b{display:inline-grid;place-items:center;background:var(--red);color:#fff;min-width:18px;height:18px;border-radius:999px;font-size:8px;margin-left:3px}
.coupon-flash{margin-bottom:12px;border-radius:13px;background:#eaf9f1;border:1px solid #b9e9d2;color:#176a49;padding:10px 12px;font-size:9px;font-weight:800}
.reward-coupon-stack{grid-template-columns:1fr}
.reward-coupon-empty{padding:18px;display:grid;grid-template-columns:48px 1fr;gap:12px;align-items:center}
.reward-coupon-empty strong{font-size:12px}
.reward-coupon-empty p{font-size:9px;line-height:1.6;color:var(--muted);margin:4px 0 0}
.stamp-earned-ticket{border-top:4px solid var(--red)}
.stamp-earned-ticket.coupon-store-navy{border-top-color:var(--navy)}
.stamp-earned-ticket.is-used{filter:grayscale(.65);opacity:.78}
.reward-ticket-label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0 2px}
.reward-ticket-label>span{font-size:8px;letter-spacing:.08em;color:#7d8590;font-weight:800}
.reward-ticket-label>b{font-size:7px;background:#e9ecf1;color:#66707d;border-radius:999px;padding:4px 6px}
.reward-ticket-bottom>div em{display:block;font-style:normal;font-size:5px;color:#a3aab4;margin-top:2px}
.coupon-used-mark{font-size:9px;font-weight:900;letter-spacing:.12em;border:2px solid #858e99;color:#737c88;border-radius:8px;padding:7px 10px;transform:rotate(-5deg)}
.coupon-card-number{font-size:7px;letter-spacing:.10em;color:#7e8794;border:1px solid var(--line);border-radius:999px;padding:5px 7px;background:#fff}

.nfc-count-change>div em{display:block;font-style:normal;font-size:5px;color:#929aa5;margin-top:2px;letter-spacing:.07em}
.nfc-reward-issued{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;margin:13px 0 5px;padding:13px;border-radius:16px;background:linear-gradient(135deg,#fff7c9,#fabe00);color:var(--navy);box-shadow:0 9px 24px rgba(174,128,0,.16)}
.nfc-reward-value{display:flex;align-items:baseline;white-space:nowrap}
.nfc-reward-value small{font-size:12px;font-weight:900}
.nfc-reward-value strong{font-size:34px;letter-spacing:-.06em}
.nfc-reward-value span{font-size:8px;font-weight:900;margin-left:3px}
.nfc-reward-issued>div:last-child>small{display:block;font-size:6px;letter-spacing:.10em;font-weight:900}
.nfc-reward-issued>div:last-child>strong{display:block;font-size:11px;margin:2px 0}
.nfc-reward-issued>div:last-child>span{font-size:7px;font-weight:800}


/* ==============================================================
   v0.1.18 NFC / QR check-in entry
   ============================================================== */
.checkin-guide-card{cursor:default}
.nfc-orb{
  min-height:78px;
  height:78px;
  width:64px;
  flex-basis:64px;
  padding:7px 3px 6px;
  justify-content:center;
  gap:0;
}
.nfc-wave-icon{width:26px;height:19px;margin-top:4px;overflow:visible}
.nfc-wave-icon path,.nfc-wave-icon circle{
  fill:none;
  stroke:var(--navy);
  stroke-width:2.4;
  stroke-linecap:round;
  opacity:.78;
}
.nfc-wave-icon circle{fill:var(--navy);stroke:none}
.checkin-qr-fallback{
  position:relative;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  margin-top:9px;
}
.checkin-qr-fallback>span{
  font-size:8px;
  color:rgba(255,255,255,.74);
}
.qr-camera-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 9px;
  border:1px solid rgba(255,255,255,.30);
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#fff;
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
.qr-camera-btn strong{font-size:8px;white-space:nowrap}
.qr-camera-mini{
  width:18px;
  height:18px;
  flex:0 0 18px;
  display:grid;
  place-items:center;
  font-size:14px;
  line-height:1;
}

/* QR scanner */
.qr-scan-title{margin-bottom:13px}
.qr-scanner-card{padding:13px;overflow:hidden}
.qr-scanner-stage{
  position:relative;
  height:370px;
  border-radius:20px;
  overflow:hidden;
  background:linear-gradient(145deg,#17233b,#263a5b);
}
.qr-scanner-stage video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:.2s;
}
.qr-scanner-stage video.active{opacity:1}
.qr-scanner-placeholder{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#fff;
  text-align:center;
  padding:30px;
}
.qr-camera-symbol{
  width:64px;
  height:64px;
  border-radius:20px;
  display:grid;
  place-items:center;
  background:var(--yellow);
  color:var(--navy);
  margin-bottom:13px;
}
.qr-camera-symbol svg{
  width:31px;
  height:31px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
}
.qr-scanner-placeholder strong{font-size:15px}
.qr-scanner-placeholder span{font-size:9px;color:#bcc7d9;margin-top:5px}
.qr-scan-frame{
  position:absolute;
  left:50%;
  top:50%;
  width:220px;
  height:220px;
  transform:translate(-50%,-50%);
  pointer-events:none;
}
.qr-scan-frame:before{
  content:"";
  position:absolute;
  inset:8px;
  border:1px solid rgba(255,255,255,.26);
  border-radius:18px;
}
.qr-scan-frame i{
  position:absolute;
  width:42px;
  height:42px;
  border-color:var(--yellow);
  border-style:solid;
}
.qr-scan-frame i:nth-child(1){left:0;top:0;border-width:4px 0 0 4px;border-radius:13px 0 0}
.qr-scan-frame i:nth-child(2){right:0;top:0;border-width:4px 4px 0 0;border-radius:0 13px 0 0}
.qr-scan-frame i:nth-child(3){left:0;bottom:0;border-width:0 0 4px 4px;border-radius:0 0 0 13px}
.qr-scan-frame i:nth-child(4){right:0;bottom:0;border-width:0 4px 4px 0;border-radius:0 0 13px}
.qr-scanner-status{
  display:flex;
  align-items:center;
  gap:8px;
  margin:11px 2px;
  color:var(--muted);
}
.qr-scanner-status>span{
  width:8px;height:8px;border-radius:50%;background:#b9c0ca;flex:0 0 8px
}
.qr-scanner-status strong{font-size:9px;font-weight:700}
.qr-scanner-status.scanning>span{background:var(--yellow);box-shadow:0 0 0 5px rgba(250,190,0,.15)}
.qr-scanner-status.success>span{background:var(--green)}
.qr-scanner-status.success strong{color:var(--green)}
.qr-scanner-status.error>span{background:var(--red)}
.qr-scanner-status.error strong{color:var(--red)}
.qr-camera-stop{margin-top:7px}
.qr-scan-help{
  display:grid;
  grid-template-columns:24px 1fr;
  gap:8px;
  align-items:start;
  margin:14px 2px 0;
  color:var(--muted);
}
.qr-scan-help>span{
  width:22px;height:22px;border-radius:50%;
  display:grid;place-items:center;
  background:#e9edf3;color:#657080;
  font-size:9px;font-weight:900
}
.qr-scan-help p{font-size:8px;line-height:1.55;margin:3px 0 0}

@media(max-width:390px){
  .checkin-qr-fallback{justify-content:space-between}
  .qr-scanner-stage{height:330px}
  .qr-scan-frame{width:200px;height:200px}
}


/* ==============================================================
   v0.1.20 Android QR UI hardening
   ============================================================== */

/* Android Chrome/PWA text autosizing must not enlarge only this UI. */
.checkin-qr-fallback,
.checkin-qr-fallback *,
.qr-scanner-card,
.qr-scanner-card *{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

/* Home fallback: always a compact right-aligned row. */
.checkin-qr-fallback{
  min-height:34px;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-end !important;
  flex-wrap:nowrap !important;
  gap:8px !important;
  margin:8px 0 0 auto !important;
  padding:0 !important;
  white-space:nowrap !important;
}
.checkin-qr-fallback>span{
  display:block !important;
  flex:0 0 auto !important;
  margin:0 !important;
  padding:0 !important;
  font-size:8px !important;
  line-height:1 !important;
  white-space:nowrap !important;
  color:rgba(255,255,255,.78) !important;
}
.qr-camera-btn{
  flex:0 0 auto !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:32px !important;
  display:inline-flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  margin:0 !important;
  padding:7px 10px !important;
  border:1px solid rgba(255,255,255,.30) !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.12) !important;
  color:#fff !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}
.qr-camera-btn strong{
  display:block !important;
  flex:0 0 auto !important;
  margin:0 !important;
  padding:0 !important;
  font-size:8px !important;
  line-height:1 !important;
  font-weight:900 !important;
  white-space:nowrap !important;
}

/* CSS-only camera icon: no SVG/emoji rendering differences. */
.qr-camera-mini{
  position:relative !important;
  display:block !important;
  width:17px !important;
  height:13px !important;
  min-width:17px !important;
  max-width:17px !important;
  min-height:13px !important;
  max-height:13px !important;
  flex:0 0 17px !important;
  margin:0 !important;
  padding:0 !important;
  border:1.7px solid currentColor !important;
  border-radius:3px !important;
  box-sizing:border-box !important;
  font-size:0 !important;
  line-height:0 !important;
}
.qr-camera-mini:before{
  content:"" !important;
  position:absolute !important;
  left:3px !important;
  top:-4px !important;
  width:7px !important;
  height:4px !important;
  border:1.7px solid currentColor !important;
  border-bottom:0 !important;
  border-radius:2px 2px 0 0 !important;
  box-sizing:border-box !important;
}
.qr-camera-mini:after{
  content:"" !important;
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  width:5px !important;
  height:5px !important;
  border:1.5px solid currentColor !important;
  border-radius:50% !important;
  transform:translate(-50%,-50%) !important;
  box-sizing:border-box !important;
}
.qr-camera-mini i{display:none !important;}

/* Scanner page */
.qr-scanner-card{
  width:100% !important;
  max-width:100% !important;
  overflow:hidden !important;
}
.qr-scanner-stage{
  width:100% !important;
  height:360px !important;
  min-height:360px !important;
  max-height:360px !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}
.qr-scanner-placeholder{
  width:100% !important;
  height:100% !important;
  box-sizing:border-box !important;
  padding:28px 18px !important;
  overflow:hidden !important;
}
.qr-scanner-placeholder strong{
  font-size:14px !important;
  line-height:1.35 !important;
  white-space:normal !important;
}
.qr-scanner-placeholder span{
  font-size:8px !important;
  line-height:1.4 !important;
  white-space:normal !important;
}

/* CSS-only camera for scanner placeholder. */
.qr-camera-symbol{
  position:relative !important;
  width:58px !important;
  height:58px !important;
  min-width:58px !important;
  max-width:58px !important;
  min-height:58px !important;
  max-height:58px !important;
  flex:0 0 58px !important;
  margin:0 auto 13px !important;
  padding:0 !important;
  border-radius:18px !important;
  background:var(--yellow) !important;
  color:var(--navy) !important;
  display:grid !important;
  place-items:center !important;
  box-sizing:border-box !important;
  font-size:0 !important;
  line-height:0 !important;
  overflow:hidden !important;
}
.qr-camera-symbol:before{
  content:"" !important;
  position:absolute !important;
  left:14px !important;
  top:20px !important;
  width:30px !important;
  height:22px !important;
  border:2px solid currentColor !important;
  border-radius:5px !important;
  box-sizing:border-box !important;
}
.qr-camera-symbol:after{
  content:"" !important;
  position:absolute !important;
  left:50% !important;
  top:31px !important;
  width:10px !important;
  height:10px !important;
  border:2px solid currentColor !important;
  border-radius:50% !important;
  transform:translate(-50%,-50%) !important;
  box-sizing:border-box !important;
}
.qr-camera-symbol i{
  position:absolute !important;
  display:block !important;
  left:20px !important;
  top:15px !important;
  width:15px !important;
  height:7px !important;
  border:2px solid currentColor !important;
  border-bottom:0 !important;
  border-radius:3px 3px 0 0 !important;
  box-sizing:border-box !important;
}
.qr-camera-symbol svg{display:none !important;}

.qr-scan-frame{
  width:210px !important;
  height:210px !important;
  max-width:68vw !important;
  max-height:68vw !important;
}
.qr-scanner-status{
  min-height:24px !important;
  margin:10px 2px !important;
}
.qr-scanner-status strong{
  font-size:8px !important;
  line-height:1.35 !important;
}
.qr-camera-start,
.qr-camera-stop{
  min-height:42px !important;
  font-size:10px !important;
  line-height:1 !important;
}

/* Small Android widths */
@media(max-width:430px){
  .checkin-qr-fallback{
    justify-content:flex-end !important;
    gap:7px !important;
  }
  .checkin-qr-fallback>span{font-size:7px !important}
  .qr-camera-btn{
    min-height:30px !important;
    padding:6px 9px !important;
  }
  .qr-camera-btn strong{font-size:7px !important}
  .qr-scanner-stage{
    height:330px !important;
    min-height:330px !important;
    max-height:330px !important;
  }
  .qr-scan-frame{
    width:190px !important;
    height:190px !important;
  }
}


/* ==============================================================
   v0.1.21 QR footer + Android scanner reset
   ============================================================== */

/* Home: compact note only. QR action lives in footer. */
.checkin-qr-footer-note{
  position:relative;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  gap:6px;
  margin-top:8px;
  min-height:18px;
  color:rgba(255,255,255,.82);
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
.checkin-qr-footer-note span,
.checkin-qr-footer-note strong{
  margin:0;
  padding:0;
  white-space:nowrap;
  line-height:1.15;
}
.checkin-qr-footer-note span{font-size:7px;font-weight:500}
.checkin-qr-footer-note strong{font-size:8px;font-weight:900;color:#fff}

/* Footer center action is QR reader. */
body.mode-user .bottom-nav .nav-qr-main{
  transform:translateY(-12px);
  color:var(--red);
  font-weight:900;
}
body.mode-user .bottom-nav .nav-qr-main .nav-icon-wrap{
  width:54px;
  height:54px;
  border-radius:18px;
  background:var(--red);
  color:#fff;
  border:4px solid #fff;
  box-shadow:0 8px 22px rgba(230,0,45,.30);
  position:relative;
}
body.mode-user .bottom-nav .nav-qr-main .nav-icon-wrap:after{
  content:"";
  position:absolute;
  right:-2px;
  top:-2px;
  width:13px;
  height:13px;
  border-radius:50%;
  background:var(--yellow);
  border:2px solid #fff;
}
body.mode-user .bottom-nav .nav-qr-main .nav-icon{
  width:25px;
  height:25px;
  stroke-width:2.1;
}
body.mode-user .bottom-nav .nav-qr-main>span:last-child{
  margin-top:-1px;
  font-size:10px;
  letter-spacing:0;
}
body.mode-user .bottom-nav .nav-qr-main.active .nav-icon-wrap{
  background:#c90028;
  box-shadow:0 8px 24px rgba(230,0,45,.38);
}

/* Explicit hidden support: Android must not show stop button before start. */
.qr-camera-stop[hidden],
.qr-camera-start[hidden],
.qr-scanner-placeholder[hidden]{
  display:none !important;
}

/* Scanner page: hard reset. No decorative camera icon. */
.qr-scanner-card,
.qr-scanner-card *{
  -webkit-text-size-adjust:100% !important;
  text-size-adjust:100% !important;
  box-sizing:border-box;
}
.qr-scanner-card{
  width:100%;
  max-width:100%;
  padding:12px;
  overflow:hidden;
}
.qr-scanner-stage{
  position:relative;
  width:100%;
  height:340px;
  min-height:340px;
  max-height:340px;
  border-radius:18px;
  overflow:hidden;
  background:#17233b;
}
.qr-scanner-stage video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
}
.qr-scanner-stage video.active{opacity:1}
.qr-scanner-placeholder{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  padding:0;
  margin:0;
  color:#fff;
  background:linear-gradient(145deg,#17233b,#243a60);
  text-align:center;
}
.qr-placeholder-copy{
  position:absolute;
  left:18px;
  right:18px;
  bottom:34px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
}
.qr-placeholder-copy strong{
  font-size:12px !important;
  line-height:1.35 !important;
  font-weight:900 !important;
  color:#fff;
}
.qr-placeholder-copy span{
  font-size:8px !important;
  line-height:1.4 !important;
  color:#c5cedd;
}

/* Any camera-symbol remnants from older cached HTML must never render huge. */
.qr-camera-symbol,
.qr-camera-mini,
.qr-camera-symbol:before,
.qr-camera-symbol:after,
.qr-camera-mini:before,
.qr-camera-mini:after{
  display:none !important;
  width:0 !important;
  height:0 !important;
  max-width:0 !important;
  max-height:0 !important;
  overflow:hidden !important;
}

/* QR frame stays centered and bounded. */
.qr-scan-frame{
  position:absolute;
  left:50%;
  top:46%;
  width:190px !important;
  height:190px !important;
  max-width:58vw !important;
  max-height:58vw !important;
  transform:translate(-50%,-50%);
  pointer-events:none;
}
.qr-scan-frame:before{
  content:"";
  position:absolute;
  inset:7px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:16px;
}
.qr-scan-frame i{
  position:absolute;
  width:36px;
  height:36px;
  border-color:var(--yellow);
  border-style:solid;
}
.qr-scan-frame i:nth-child(1){left:0;top:0;border-width:4px 0 0 4px;border-radius:12px 0 0}
.qr-scan-frame i:nth-child(2){right:0;top:0;border-width:4px 4px 0 0;border-radius:0 12px 0 0}
.qr-scan-frame i:nth-child(3){left:0;bottom:0;border-width:0 0 4px 4px;border-radius:0 0 0 12px}
.qr-scan-frame i:nth-child(4){right:0;bottom:0;border-width:0 4px 4px 0;border-radius:0 0 12px}

.qr-scanner-status{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:24px;
  margin:9px 2px;
}
.qr-scanner-status strong{
  font-size:8px !important;
  line-height:1.35 !important;
  font-weight:700;
}
.qr-camera-start,
.qr-camera-stop{
  width:100%;
  min-height:42px;
  padding:10px 12px !important;
  font-size:10px !important;
  line-height:1 !important;
}
.qr-scan-help p{
  font-size:8px !important;
  line-height:1.55 !important;
}

/* Old QR-fallback UI is intentionally disabled if stale markup survives. */
.checkin-qr-fallback{display:none !important}

@media(max-width:430px){
  .checkin-qr-footer-note{gap:5px}
  .checkin-qr-footer-note span{font-size:6.5px}
  .checkin-qr-footer-note strong{font-size:7.5px}
  .qr-scanner-stage{
    height:310px;
    min-height:310px;
    max-height:310px;
  }
  .qr-scan-frame{
    width:170px !important;
    height:170px !important;
  }
}

@media(min-width:700px){
  .qr-scanner-stage{
    height:390px;
    min-height:390px;
    max-height:390px;
  }
  .qr-scan-frame{
    width:220px !important;
    height:220px !important;
  }
}


/* ==============================================================
   v0.1.22 NFC stamp press animation
   ============================================================== */
.nfc-live-card{
  transform-origin:center center;
  overflow:visible;
}

.nfc-live-card .checkin-rubber-slot.just-stamped{
  position:relative;
  isolation:isolate;
}

.nfc-live-card .checkin-rubber-slot.just-stamped:before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:54px;
  height:54px;
  border-radius:50%;
  transform:translate(-50%,-50%) scale(.45);
  background:rgba(194,20,49,.13);
  opacity:0;
  z-index:0;
  pointer-events:none;
}

.nfc-live-card.navy .checkin-rubber-slot.just-stamped:before{
  background:rgba(23,35,59,.12);
}

/* Newly earned imprint waits above the paper. */
.nfc-live-card .checkin-rubber-slot.just-stamped .checkin-rubber-imprint{
  position:relative;
  z-index:2;
  opacity:0;
  transform:
    translateY(-76px)
    scale(1.72)
    rotate(-13deg);
  filter:drop-shadow(0 18px 12px rgba(23,32,51,.22));
  will-change:transform,opacity,filter;
}

/* "Stamp comes down and presses onto the card." */
.nfc-live-card .checkin-rubber-slot.just-stamped .checkin-rubber-imprint.stamp-hit{
  animation:nfcRealStampPress .58s cubic-bezier(.22,.88,.30,1.18) forwards;
}

.nfc-live-card .checkin-rubber-slot.just-stamped.stamp-pressing:before{
  animation:nfcInkSpread .48s ease-out .24s both;
}

.nfc-live-card.stamp-paper-hit{
  animation:nfcPaperImpact .34s ease-out .25s both;
}

@keyframes nfcRealStampPress{
  0%{
    opacity:0;
    transform:translateY(-76px) scale(1.72) rotate(-13deg);
    filter:drop-shadow(0 18px 12px rgba(23,32,51,.22));
  }
  42%{
    opacity:1;
    transform:translateY(-7px) scale(1.22) rotate(-7deg);
    filter:drop-shadow(0 7px 5px rgba(23,32,51,.17));
  }
  58%{
    opacity:1;
    transform:translateY(3px) scale(.88) rotate(-4deg);
    filter:drop-shadow(0 1px 1px rgba(23,32,51,.08));
  }
  76%{
    transform:translateY(-2px) scale(1.07) rotate(-4deg);
  }
  100%{
    opacity:.92;
    transform:translateY(0) scale(1) rotate(-4deg);
    filter:none;
  }
}

@keyframes nfcInkSpread{
  0%{
    opacity:0;
    transform:translate(-50%,-50%) scale(.45);
  }
  35%{
    opacity:.42;
  }
  100%{
    opacity:0;
    transform:translate(-50%,-50%) scale(1.28);
  }
}

@keyframes nfcPaperImpact{
  0%,100%{transform:translateY(0) scale(1)}
  45%{transform:translateY(2px) scale(.995)}
  70%{transform:translateY(-1px) scale(1.002)}
}

/* NEW badge appears after the press, not before it. */
.nfc-live-card .checkin-rubber-slot.just-stamped:after{
  opacity:0;
  transform:translateY(-3px) scale(.8);
  transition:opacity .18s ease .62s, transform .18s ease .62s;
}
.nfc-live-card .checkin-rubber-slot.just-stamped.stamp-pressing:after{
  opacity:1;
  transform:translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce){
  .nfc-live-card .checkin-rubber-slot.just-stamped .checkin-rubber-imprint{
    opacity:.92;
    transform:rotate(-4deg);
    filter:none;
  }
  .nfc-live-card .checkin-rubber-slot.just-stamped .checkin-rubber-imprint.stamp-hit,
  .nfc-live-card .checkin-rubber-slot.just-stamped.stamp-pressing:before,
  .nfc-live-card.stamp-paper-hit{
    animation:none;
  }
}


/* ==============================================================
   v0.1.23 Stamp card layout unification
   ============================================================== */
.nfc-demo-panel .nfc-live-card.physical-stamp-card{
  width:100%;
  min-height:250px;
  margin:13px 0 0;
  padding:17px 16px 14px;
  text-align:left;
  border-radius:18px;
  overflow:visible;
}

.nfc-demo-panel .nfc-live-card .physical-card-head{
  padding-left:5px;
  border-bottom:0;
  padding-bottom:0;
}
.nfc-demo-panel .nfc-live-card .physical-card-head strong{
  font-size:11px;
  letter-spacing:.08em;
  margin-top:2px;
}
.nfc-demo-panel .nfc-live-card .physical-card-number{
  font-size:8px;
  letter-spacing:.12em;
  font-weight:400;
  border:1px solid #cdbd9f;
  border-radius:4px;
  padding:4px 5px;
  color:#877b67;
  background:rgba(255,255,255,.48);
}

.nfc-demo-panel .nfc-live-card .physical-store-name{
  margin:13px 0 10px;
  padding-left:5px;
}
.nfc-demo-panel .nfc-live-card .physical-store-name small{
  display:block;
  font-size:7px;
  color:#8e8474;
}
.nfc-demo-panel .nfc-live-card .physical-store-name strong{
  display:inline-block;
  font-size:19px;
  letter-spacing:-.02em;
  margin-top:1px;
}
.nfc-demo-panel .nfc-live-card .physical-store-name>span{
  display:inline-block;
  margin-left:6px;
  vertical-align:3px;
  padding:4px 6px;
  font-size:6px;
}

.nfc-demo-panel .nfc-live-card .rubber-stamp-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:6px;
  border-top:1px dashed #c9b998;
  border-bottom:1px dashed #c9b998;
  padding:12px 1px;
}
.nfc-demo-panel .nfc-live-card .rubber-stamp-slot{
  display:grid;
  place-items:center;
  min-width:0;
}
.nfc-demo-panel .nfc-live-card .rubber-stamp-empty,
.nfc-demo-panel .nfc-live-card .rubber-stamp-imprint{
  width:47px;
  max-width:100%;
  aspect-ratio:1;
}
.nfc-demo-panel .nfc-live-card .rubber-stamp-imprint>span{
  font-size:10px;
  line-height:1;
}
.nfc-demo-panel .nfc-live-card .rubber-stamp-imprint b{
  font-family:Georgia,"Times New Roman",serif;
  font-size:8px;
  line-height:1.15;
  letter-spacing:.03em;
}
.nfc-demo-panel .nfc-live-card .rubber-stamp-imprint small{
  font-size:5px;
  font-weight:900;
  letter-spacing:.07em;
}
.nfc-demo-panel .nfc-live-card .rubber-stamp-empty b{font-size:11px}
.nfc-demo-panel .nfc-live-card .rubber-stamp-empty small{
  font-size:5px;
  margin-top:1px;
  letter-spacing:.08em;
}

.nfc-demo-panel .nfc-live-card .physical-card-foot{
  padding:10px 5px 0;
  align-items:flex-end;
}
.nfc-demo-panel .nfc-live-card .physical-card-foot>div span{
  font-size:7px;
  letter-spacing:.12em;
}
.nfc-demo-panel .nfc-live-card .physical-card-foot>div strong{
  font-size:10px;
  margin-top:2px;
}
.nfc-demo-panel .nfc-live-card .physical-card-foot>small{
  font-size:6px;
}

/* Old check-in-only typography must not override the shared card. */
.nfc-demo-panel .nfc-live-card .checkin-paper-head,
.nfc-demo-panel .nfc-live-card .checkin-card-status{
  all:unset;
}

/* Keep press animation on the shared stamp component. */
.nfc-live-card .rubber-stamp-slot.just-stamped{
  position:relative;
  isolation:isolate;
}
.nfc-live-card .rubber-stamp-slot.just-stamped .rubber-stamp-imprint{
  position:relative;
  z-index:2;
}
.nfc-live-card .rubber-stamp-slot.just-stamped .rubber-stamp-imprint.stamp-hit{
  animation:nfcRealStampPress .58s cubic-bezier(.22,.88,.30,1.18) forwards;
}

@media(min-width:600px){
  .nfc-demo-panel .nfc-live-card .physical-store-name strong{font-size:22px}
  .nfc-demo-panel .nfc-live-card .rubber-stamp-empty,
  .nfc-demo-panel .nfc-live-card .rubber-stamp-imprint{width:58px}
}


/* ==============================================================
   v0.1.26 Restore NFC result-page layout
   ============================================================== */
.nfc-result-body{
  margin:0;
  background:#f5f7fa;
}

.nfc-demo-checkin{
  min-height:100vh;
  padding:14px;
  background:
    radial-gradient(circle at 50% -20%,rgba(250,190,0,.42),transparent 42%),
    linear-gradient(150deg,#e6002d,#99001e);
}

.nfc-demo-panel{
  width:min(100%,520px);
  margin:0 auto;
  padding:21px 17px 18px;
  border-radius:28px;
  background:#fff;
}

.nfc-demo-panel .checkin-brand{
  margin:-21px -17px 0;
  height:110px;
  border-radius:28px 28px 0 0;
}

.nfc-demo-panel .checkin-brand img{
  width:128px;
}

/* The store label that was unstyled on iPhone. */
.nfc-store-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  max-width:100%;
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 10px;
  background:#f8f9fb;
  color:var(--navy);
  white-space:nowrap;
}

.nfc-store-chip span{
  display:block;
  flex:0 0 auto;
  font-size:7px;
  line-height:1.2;
  color:var(--muted);
  font-weight:700;
}

.nfc-store-chip strong{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:9px;
  line-height:1.2;
  font-weight:900;
}

.nfc-result-copy .check-circle{
  width:72px;
  height:72px;
  margin:18px auto 12px;
  font-size:24px;
  background:#eaf9f1;
  box-shadow:0 8px 25px rgba(33,165,111,.14);
}

.nfc-result-copy .check-circle.already{
  font-size:30px;
  background:#f0f2f5;
  color:#66717f;
  box-shadow:none;
}

.nfc-result-copy h1{
  font-size:22px;
  line-height:1.34;
  margin:7px 0;
}

.nfc-result-copy p{
  font-size:10px;
  line-height:1.6;
  margin:0 auto;
  max-width:330px;
}

.nfc-count-change{
  display:grid;
  grid-template-columns:1fr 28px 1fr;
  align-items:center;
  gap:5px;
  margin:15px auto 4px;
  max-width:300px;
}

.nfc-count-change>div{
  background:#f4f6f8;
  border-radius:13px;
  padding:9px 8px;
  text-align:center;
}

.nfc-count-change>div.after{
  background:#fff1f4;
  border:1px solid #f1bac4;
}

.nfc-count-change span{
  display:block;
  font-size:6px;
  letter-spacing:.12em;
  color:var(--muted);
  font-weight:900;
}

.nfc-count-change strong{
  font-size:25px;
  line-height:1.05;
}

.nfc-count-change .after strong{
  color:var(--red);
}

.nfc-count-change strong small{
  font-size:7px;
  color:#89929e;
}

.nfc-count-change>b{
  font-size:18px;
  color:#b3bac4;
}

.nfc-live-card{
  margin-top:13px;
  box-shadow:0 12px 28px rgba(56,45,27,.10);
}

.nfc-success-note{
  display:grid;
  grid-template-columns:32px 1fr;
  gap:9px;
  text-align:left;
  align-items:center;
  margin-top:11px;
  background:#f5f8fc;
  border-radius:12px;
  padding:9px 10px;
}

.nfc-success-note>span{
  width:32px;
  height:32px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#eaf9f1;
  color:var(--green);
  font-weight:900;
}

.nfc-success-note strong{
  display:block;
  font-size:9px;
}

.nfc-success-note small{
  display:block;
  font-size:7px;
  color:var(--muted);
  margin-top:2px;
}

.nfc-demo-panel .checkin-home-btn{
  width:100%;
  margin:14px 0 0;
  font-size:10px;
  padding:12px;
}

/* iPhone Safari / NFC browser launch */
@supports (-webkit-touch-callout:none){
  .nfc-store-chip{
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
  }

  .nfc-store-chip span{
    font-size:7px !important;
  }

  .nfc-store-chip strong{
    font-size:9px !important;
  }
}

@media(min-width:700px){
  .nfc-demo-checkin{
    padding:28px;
  }

  .nfc-demo-panel{
    width:min(100%,520px);
    padding:28px 27px 25px;
  }

  .nfc-demo-panel .checkin-brand{
    margin:-28px -27px 0;
  }

  .nfc-demo-panel .checkin-brand img{
    width:145px;
  }

  .nfc-result-copy h1{
    font-size:27px;
  }

  .nfc-live-card{
    padding:17px;
  }
}


/* ==============================================================
   v0.1.27 NFC result cleanup
   ============================================================== */

/* Stable cross-platform store heading. */
.nfc-store-heading{
  margin:14px 0 2px;
  padding:0 2px 12px;
  border-bottom:1px solid var(--line);
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

.nfc-store-heading span{
  display:block;
  margin:0 0 7px;
  color:var(--red);
  font-size:7px !important;
  line-height:1;
  letter-spacing:.16em;
  font-weight:900;
}

.nfc-store-heading small{
  display:block;
  margin:0 0 3px;
  color:var(--muted);
  font-size:8px !important;
  line-height:1.3;
  font-weight:700;
}

.nfc-store-heading strong{
  display:block;
  margin:0;
  color:var(--navy);
  font-size:18px !important;
  line-height:1.25;
  font-weight:900;
  letter-spacing:-.03em;
}

/* Old store-chip / BEFORE-AFTER UI must never surface from cached markup. */
.nfc-store-chip,
.nfc-count-change{
  display:none !important;
}

/* With BEFORE/AFTER gone, pull the stamp card slightly closer to result copy. */
.nfc-result-copy + .nfc-reward-issued,
.nfc-result-copy + .nfc-live-card{
  margin-top:14px;
}

@supports (-webkit-touch-callout:none){
  .nfc-store-heading span{font-size:7px !important}
  .nfc-store-heading small{font-size:8px !important}
  .nfc-store-heading strong{font-size:18px !important}
}

@media(max-width:430px){
  .nfc-store-heading strong{
    font-size:17px !important;
  }
}
