:root{
  --green:#3FA65F; --ink:#2B2D30; --bg:#F7F4EE; --surface:#FFFFFF; --muted:#5d6066; --line:#e6e1d8; --danger:#c0392b;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark){
  :root{ --green:#4CC274; --ink:#EDEBE6; --bg:#141516; --surface:#222426; --muted:#b5b2ab; --line:#33363a; --danger:#ff6b5e; }
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.45 Nunito,system-ui,-apple-system,sans-serif;-webkit-tap-highlight-color:transparent}
body{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
.hidden{display:none !important}
.top{display:flex;align-items:center;justify-content:center;gap:12px;padding:calc(18px + env(safe-area-inset-top)) 16px 8px}
.logo{width:52px;height:60px;object-fit:contain}
.brand{display:flex;flex-direction:column;line-height:.95;font-weight:900;font-size:26px;letter-spacing:.5px}
.brand small{font-size:9px;letter-spacing:1.2px;color:var(--green);font-weight:800;margin-top:4px}
main{max-width:560px;margin:0 auto;padding:8px 16px 16px}
.tab{display:none}.tab.active{display:block}
.card{background:var(--surface);border-radius:18px;padding:18px;margin:12px 0;box-shadow:0 2px 10px rgba(0,0,0,.05)}
.card.center{text-align:center}
.card.muted{color:var(--muted);text-align:center}
h2{font-size:21px;margin:0;font-weight:900}
h3{font-size:17px;margin:0 0 6px;font-weight:800}
.section-title{margin:22px 4px 0}
.hint{color:var(--muted);font-size:14px;margin:6px 0 0}
.strong{font-weight:800;margin:10px 0 0}
.row-between{display:flex;justify-content:space-between;align-items:center;gap:8px}
.row-gap{display:flex;gap:10px;margin-top:12px}.row-gap.end{justify-content:flex-end}
.count{color:var(--green);font-weight:900;font-size:20px}
.stamps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:16px 0 4px}
.stamp{aspect-ratio:1;border-radius:50%;border:2px dashed var(--line);display:flex;align-items:center;justify-content:center;color:var(--muted)}
.stamp svg{width:46%;height:46%}
.stamp.on{background:var(--green);border:2px solid var(--green);color:#fff}
.stamp.gift{border-style:solid}
.qr{display:inline-block;background:#fff;padding:14px;border-radius:16px}
.qr img,.qr svg{display:block;width:220px;height:220px}
.btn{appearance:none;border:0;border-radius:12px;background:var(--green);color:#fff;font:inherit;font-weight:800;min-height:48px;padding:0 18px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin-top:10px}
.btn svg{width:20px;height:20px}
.btn:disabled{opacity:.6}
.btn-apple{background:var(--ink);color:var(--bg)}
.btn-google{background:var(--surface);color:var(--ink);border:1.5px solid var(--line)}
.btn-ghost{background:transparent;color:var(--ink);border:1.5px solid var(--line)}
.row-gap .btn{margin-top:0}
.ok{display:flex;align-items:center;gap:10px;color:var(--green);font-weight:800;margin:0}
.ok svg{width:24px;height:24px;flex:none}
.link-danger{display:block;margin:18px auto 4px;background:none;border:0;color:var(--danger);font:inherit;font-size:14px;font-weight:700;min-height:44px;cursor:pointer}
.chips{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 8px;scrollbar-width:none;position:sticky;top:0;background:var(--bg);z-index:2}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;border:1.5px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:8px 14px;font:inherit;font-weight:700;font-size:14px;cursor:pointer;min-height:40px}
.cat{scroll-margin-top:64px}
.cat h2{margin:18px 4px 0}
.item{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.item:last-child{border-bottom:0}
.item .name{font-weight:800}
.item .desc{color:var(--muted);font-size:14px}
.price{color:var(--green);font-weight:900;white-space:nowrap}
.tag{display:inline-block;font-size:11px;font-weight:800;color:var(--green);border:1.5px solid var(--green);border-radius:6px;padding:0 5px;margin-left:6px;vertical-align:2px}
.hrow{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);gap:10px}
.hrow:last-child{border-bottom:0}
.hrow.today{font-weight:900}
.today-tag{font-size:11px;font-weight:800;background:var(--green);color:#fff;border-radius:6px;padding:1px 6px;margin-left:6px}
.badge{font-size:12px;font-weight:800;border-radius:999px;padding:4px 10px;background:var(--line);color:var(--muted)}
.badge.open{background:var(--green);color:#fff}
.note{background:rgba(63,166,95,.12);border-radius:12px;padding:10px 12px;margin:12px 0 0;font-weight:700}
.promo{display:flex;gap:14px;align-items:flex-start}
.promo .ic{width:46px;height:46px;border-radius:12px;background:var(--green);flex:none;display:flex;align-items:center;justify-content:center;color:#fff}
.promo .ic svg{width:24px;height:24px}
.promo .sub{color:var(--green);font-weight:800}
.promo .until{font-size:13px;color:var(--muted);margin-top:4px}
.install{border:1.5px solid var(--green)}
.foot{display:flex;flex-direction:column;align-items:center;gap:8px;margin:26px 0 8px;font-size:13px;color:var(--muted)}
.foot a{color:var(--muted);font-weight:700}
.powered{display:flex;align-items:center;gap:6px}
.powered img{height:14px;background:#fff;border-radius:4px;padding:2px 4px}
.tabbar{position:fixed;left:0;right:0;bottom:0;display:flex;justify-content:space-around;background:var(--surface);border-top:1px solid var(--line);padding:6px 8px calc(6px + env(safe-area-inset-bottom));z-index:5}
.tabbar button{flex:1;max-width:160px;background:none;border:0;color:var(--muted);font:inherit;font-size:12px;font-weight:700;display:flex;flex-direction:column;align-items:center;gap:2px;min-height:52px;cursor:pointer;border-radius:12px}
.tabbar button svg{width:26px;height:26px}
.tabbar button.active{color:var(--green)}
dialog{border:0;border-radius:18px;padding:20px;max-width:340px;width:calc(100% - 40px);background:var(--surface);color:var(--ink)}
dialog::backdrop{background:rgba(0,0,0,.4)}
.toast{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:12px;font-weight:700;font-size:14px;z-index:9;max-width:90%}
button:focus-visible,a:focus-visible{outline:3px solid var(--green);outline-offset:2px}
