:root{--deep:#123d34;--green:#1c634e;--dark:#102a24;--gold:#f3cb79;--ink:#19362b;--muted:#657a70;--soft:#f0f5f0;--line:#d8e5dc;--warn:#ffefc5}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:linear-gradient(#eaf1ec 0 270px,#f7f9f7 270px);font-family:system-ui,-apple-system,'Noto Sans JP',sans-serif}
main{max-width:540px;margin:0 auto;padding:20px 16px 55px}
header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 20px}
.logo{font-size:14px;font-weight:950;letter-spacing:.06em}.logo span{display:inline-grid;place-items:center;width:34px;height:34px;margin-right:8px;border-radius:10px;background:var(--deep);color:#fff}
.badge{font-size:11px;font-weight:950;letter-spacing:.04em;padding:7px 9px;border-radius:20px;background:var(--gold);color:#382a08;white-space:nowrap}
.card,.panel{background:white;border:1px solid var(--line);border-radius:18px;padding:18px;margin:16px 0;box-shadow:0 8px 22px #1d45310b}
.hero{background:linear-gradient(145deg,#205d4c,#0d342b);border:0;border-radius:23px;color:white;padding:24px 21px;box-shadow:0 14px 26px #153e3030}
.hero .eyebrow{font-size:12px;letter-spacing:.12em;color:#ffdf90;font-weight:950}
.hero .number{font-size:19px;font-weight:850;letter-spacing:.10em;margin:15px 0 3px}
.hero .member{font-size:21px;font-weight:850;margin:3px 0 20px}
.hero .meta{color:#c3e1d0;font-size:12px}
.hero .points{font-size:54px;font-weight:950;line-height:1.3;font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.hero .points small{font-size:20px;font-weight:650;letter-spacing:0}
.hero .foot{font-size:12px;color:#e2efe8;border-top:1px solid #ffffff40;padding-top:14px;margin-top:18px}
.demo-note{border:1px solid #e8c980;background:#fff5db;color:#63511e;border-radius:12px;padding:12px;font-size:12px;line-height:1.75;margin:16px 0}
h1{font-size:23px;line-height:1.4;margin:0 0 7px}h2{font-size:17px;margin:0 0 14px}h3{font-size:14px;margin:18px 0 6px}
p{line-height:1.7}p.sub,.hint{font-size:12px;color:var(--muted);line-height:1.75}.hint{margin:8px 0}
label{display:block;font-size:13px;font-weight:780;margin:12px 0}
input,select{font:inherit;min-height:46px;width:100%;margin-top:6px;padding:10px 12px;border:1px solid #b4c8ba;border-radius:10px;background:#fff;color:var(--ink)}
input:focus,select:focus,button:focus-visible,a:focus-visible{outline:3px solid #b8e7c9;outline-offset:2px}
.btn,button{border:0;border-radius:11px;background:var(--deep);color:white;padding:13px 15px;font:inherit;font-weight:780;font-size:14px;cursor:pointer}
.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-height:46px}
.btn-secondary{background:var(--soft);border:1px solid #c9daca;color:var(--deep)}
.btn-danger{background:#9e4836}
.btn-gold{background:var(--gold);color:#40310c}
button:disabled{opacity:.46;cursor:default}
.full{width:100%}.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.row>*{flex:1 1 130px}
.stack>*+*{margin-top:8px}.stat{font-size:17px;font-weight:850}.status{border-radius:11px;padding:11px 12px;background:#f0f6f1;border:1px solid #bddac9;font-size:13px;line-height:1.6}
.status[data-type='error']{background:#fff0ea;color:#823422;border-color:#e7b5a7}
.status[data-type='notice']{background:#fff7e4;color:#74591b;border-color:#ebd4a7}
.history-row{padding:13px 2px;border-top:1px solid #edf1eb;display:flex;gap:8px;justify-content:space-between;align-items:center}
.history-row .what{font-size:13px;font-weight:780}.history-row .when{font-size:11px;color:var(--muted);margin-top:5px}
.history-row .delta{white-space:nowrap;font-weight:900;font-size:15px;color:#217049}.history-row .delta.minus{color:#a65e41}
.store{padding:15px 0;border-top:1px solid #e6ede7;font-weight:800;font-size:14px}
.store span{float:right;color:var(--muted);font-size:11px;font-weight:500}
.mini{font-size:11px;color:var(--muted);line-height:1.6}.hidden,[hidden]{display:none!important}
.divider{border-top:1px solid #e1e9e3;margin:16px 0}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.grid .panel{margin:0}
.pill{display:inline-block;padding:5px 9px;border-radius:20px;background:#e7f2ea;font-weight:800;color:#155d40;font-size:12px}
footer{font-size:11px;color:var(--muted);text-align:center;margin:20px 0 0}
#scanDemo{font-size:17px;min-height:57px}
@media(max-width:370px){.hero .points{font-size:45px}.grid{grid-template-columns:1fr}}

.mini-inverse{font-size:11px;color:#e2f1e8;margin:5px 0;overflow-wrap:anywhere}
.issued-row{padding:14px 0;border-top:1px solid #e0e9e2}.issued-row .what{font-weight:850}.issued-row .when{font-size:12px;color:var(--muted);margin:3px 0}.issued-row .url{font-size:10px;overflow-wrap:anywhere;color:var(--muted);margin:5px 0 8px}.issued-row .row>*{flex:1 1 120px}
