/* ==========================================================================
   Loyal Sathii — customer stamp card
   A wallet-style card app for the markup assets/js/app.js builds. Class names
   are that script's contract.

   Colour: a calm neutral canvas; the shop's two colours arrive from theme.css.
     --main / --on-main   the pass, the welcome header, the avatar
     --brand-ink          the main colour clamped dark enough to carry white
                          text, a thin bar or an icon on white — so primary
                          buttons and bars read for ANY main, pale ones too
     --accent             decoration only (the pass pattern, reward cues);
                          --accent-ink is the only accent used as text

   Order: tokens · shell · buttons · forms · welcome · alerts · page heads ·
   sections + rows · home · pass · next reward · panels · rewards · levels ·
   code screen · vault + receipts · history · inbox · profile · shop info ·
   spin · scratch · notices · nav · sheet · overlays · offline · motion
   ========================================================================== */

:root{
  --c-bg:#F3F3F6; --c-surface:#FFFFFF; --c-surface-2:#FAFAFB; --c-sunk:#EEEDF2;
  --c-line:#E6E5EB; --c-line-strong:#D3D1DB; --c-field:#8E8B9C;
  --c-ink:#17141F; --c-muted:#5F5C6B; --c-faint:#6F6C7C;
  --c-ok:#127A4B; --c-ok-bg:#E7F6EE; --c-warn:#8A5A00; --c-warn-bg:#FFF4D6;
  --c-bad:#B42318; --c-bad-bg:#FDECEA; --c-info:#1D4ED8; --c-info-bg:#EAF1FE;
  --c-r:10px; --c-r-lg:14px; --c-r-xl:20px;
  --c-shadow:0 12px 32px rgba(23,20,31,.14), 0 2px 6px rgba(23,20,31,.06);
  --c-pad:16px;
  --nav-h:68px;
  --cta-h:76px;
  --c-mono:ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  /* The primary action colour: the shop's main, made dark enough for white. */
  --act:var(--brand-ink, var(--main));
  --act-wash:color-mix(in oklab, var(--act) 10%, #fff);
}

/* --------------------------------------------------------------- shell --- */
/* <html> is the scroll container: no rubber-banding out from under the fixed
   nav, and no pull-to-refresh reloading the card mid-scan. */
html{ overflow-x:hidden; overscroll-behavior-y:none; background:var(--c-bg); }
html.sheet-open{ overflow:hidden; }
body{
  min-height:100vh; min-height:100dvh;
  background:var(--c-bg); color:var(--c-ink);
  font-size:15px; line-height:1.5;
  -webkit-tap-highlight-color:transparent;
}
img{ max-width:100%; }
/* One centred phone-width column on every screen size. The fixed bottom bar
   and the "Show my code" button use the same width, so they always line up. */
main{
  width:100%; max-width:var(--app-max, 480px);
  min-height:100vh; min-height:100dvh;
  margin:0 auto;
  padding-bottom:calc(var(--nav-h) + var(--safe-bottom, 0px) + 24px);
  position:relative;
  background:var(--c-bg);
}
#ck-app:has(> .welcome),
#ck-app:has(> .boot-screen){ padding-bottom:0; }
#ck-app:has(> .welcome){ background:var(--c-surface); }
#ck-app:has(.code-cta){ padding-bottom:calc(var(--nav-h) + var(--cta-h) + var(--safe-bottom, 0px) + 16px); }
#ck-app:has(> .offline-bar){ padding-bottom:32px; }
@media (min-width:540px){
  html, body{ background:color-mix(in oklab, var(--main) 8%, #E8E8ED); }
  main{ box-shadow:0 0 0 1px rgba(23,20,31,.06), 0 30px 80px -30px rgba(23,20,31,.30); }
}
button{ font-family:inherit; }
a{ color:var(--accent-ink); text-underline-offset:2px; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible{
  outline:2px solid var(--focus, var(--accent-ink)); outline-offset:2px;
}
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.muted{ color:var(--c-muted); }
.small{ font-size:13px; }
.grow{ flex:1; min-width:0; }
.row-between{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.row-between h4{ margin:0; }
.noscript{
  max-width:var(--app-max, 480px); margin:16px auto; padding:12px 16px; border-radius:var(--c-r);
  background:var(--c-bad-bg); color:var(--c-bad); font-size:14px;
}

/* The static shop bar from index.php. Every screen draws its own header now,
   so it only shows when the script never ran. */
.topbar{ display:none; }
body:has(#ck-app:empty) > .topbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  max-width:var(--app-max, 480px); margin:0 auto;
  background:var(--main); color:var(--on-main);
  padding:calc(var(--safe-top, 0px) + 14px) 16px 14px;
}
.topbar .brand{ font-size:16px; font-weight:650; line-height:1.25; }
.topbar .tagline{ margin-top:2px; font-size:13px; line-height:1.35; }
.chip{
  display:inline-flex; align-items:center; flex:none;
  padding:2px 8px; border-radius:999px;
  font-size:11px; font-weight:600; letter-spacing:.03em; line-height:1.5; white-space:nowrap;
  color:var(--on-main); background:color-mix(in oklab, var(--on-main) 16%, var(--main));
}

/* ------------------------------------------------------------- buttons --- */
.btn{
  display:flex; align-items:center; justify-content:center; gap:8px;
  width:100%; min-height:48px; padding:0 20px;
  border:0; border-radius:var(--c-r-lg);
  background:var(--act); color:#fff;
  font:600 15px/1.2 var(--font-body); text-align:center; text-decoration:none;
  cursor:pointer;
  transition:background-color .12s, transform .12s, box-shadow .12s;
}
.btn:hover{ background:color-mix(in oklab, var(--act) 86%, #000); }
.btn:active{ transform:scale(.98); }
.btn-lg{ min-height:54px; font-size:16px; border-radius:16px; }
.btn .icon{ width:20px; height:20px; }
.btn.gold{ background:var(--act); color:#fff; }
.btn.ghost,
.btn.outline{
  background:var(--c-surface); color:var(--c-ink);
  box-shadow:inset 0 0 0 1px var(--c-line-strong);
}
.btn.ghost:hover,
.btn.outline:hover{ background:var(--c-surface-2); box-shadow:inset 0 0 0 1px var(--c-field); }
.btn.danger{ background:var(--c-bad); color:#fff; }
.btn.danger:hover{ background:#8F1B13; }
.btn.small{
  display:inline-flex; width:auto; min-height:44px; padding:0 16px; font-size:14px; border-radius:var(--c-r);
}
.btn.more{ margin-top:12px; color:var(--c-muted); }
.btn.more:hover{ color:var(--c-ink); }
/* Only ever while something is in flight; never a "not yet valid" look. */
.btn[disabled]{ opacity:.6; cursor:progress; }
.btn[disabled]:active{ transform:none; }
.btn + .btn{ margin-top:12px; }

.icon-btn{
  display:inline-flex; align-items:center; gap:6px;
  min-height:44px; padding:0 8px; margin:0 -8px;
  border:0; border-radius:var(--c-r); background:none;
  color:var(--c-ink); font:600 14px/1.2 var(--font-body); cursor:pointer;
}
.icon-btn:hover{ background:var(--c-sunk); }
.icon-btn.link{ color:var(--accent-ink); }
.link-btn{
  padding:0; border:0; background:none; font:inherit; font-weight:600;
  color:var(--accent-ink); text-align:left; cursor:pointer;
  text-decoration:underline; text-underline-offset:2px;
}
.link-btn:hover{ text-decoration-thickness:2px; }
.btn.share-btn,
.btn.rate-review{ display:flex; width:fit-content; margin-inline:auto; }

/* --------------------------------------------------------------- forms --- */
.field{ margin-bottom:16px; }
.field label{ display:block; margin-bottom:6px; font-size:14px; font-weight:600; color:var(--c-ink); }
.field label .opt{ margin-left:6px; font-weight:400; color:var(--c-faint); }
input, select, textarea{
  width:100%; min-height:48px; padding:10px 14px;
  border:1px solid var(--c-field); border-radius:var(--c-r);
  background:var(--c-surface); color:var(--c-ink);
  font:400 16px/1.4 var(--font-body);  /* 16px: iOS does not zoom on focus */
}
select{
  padding-right:36px; appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235F5C6B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center;
}
input::placeholder{ color:#8D8A99; }
input:focus, select:focus, textarea:focus{
  outline:2px solid var(--focus, var(--accent-ink)); outline-offset:0; border-color:var(--focus, var(--accent-ink));
}
.field.bad input{ border-color:var(--c-bad); }
.field-err{ margin-top:6px; font-size:14px; font-weight:500; color:var(--c-bad); line-height:1.4; }
.hint{ margin:6px 0 0; font-size:13px; line-height:1.45; color:var(--c-faint); }
.details-form .field:last-of-type{ margin-bottom:12px; }
.bday-row{ display:flex; gap:8px; }
.bday-row select:first-child{ flex:1 1 0; min-width:0; }
.bday-row select:last-child{ flex:1.6 1 0; min-width:0; }
@media (max-width:300px){ .bday-row{ flex-direction:column; } }
.details-acts{ display:flex; align-items:center; gap:16px; }
.details-acts .btn{ margin-top:0; }

/* The phone field: a fixed +977 in front, the number itself large. */
.phone-in{
  display:flex; align-items:stretch;
  border:1px solid var(--c-field); border-radius:var(--c-r-lg);
  background:var(--c-surface); overflow:hidden;
}
.phone-cc{
  display:flex; align-items:center; flex:none;
  padding:0 12px 0 16px; border-right:1px solid var(--c-line);
  background:var(--c-surface-2);
  font-size:17px; font-weight:600; color:var(--c-ink); font-variant-numeric:tabular-nums;
}
.phone-in input{
  min-height:56px; border:0; border-radius:0; padding:0 14px;
  font-size:18px; letter-spacing:.03em; font-variant-numeric:tabular-nums;
}
.phone-in input:focus{ outline:none; }
.phone-in:focus-within{ outline:2px solid var(--focus, var(--accent-ink)); outline-offset:0; border-color:var(--focus, var(--accent-ink)); }
.field.bad .phone-in{ border-color:var(--c-bad); }
.field.bad .phone-in:focus-within{ outline-color:var(--c-bad); }
/* The error says it already; the standing hint would only repeat it. */
.field.bad .hint.live{ display:none; }

/* ------------------------------------------------------------- welcome --- */
.welcome{ display:flex; flex-direction:column; min-height:100vh; min-height:100dvh; }
.wl-hero{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  min-height:max(280px, 40vh); min-height:max(280px, 40dvh);
  padding:calc(var(--safe-top, 0px) + 36px) 24px 52px;
  background:var(--main); color:var(--on-main); text-align:center;
  position:relative; overflow:hidden; isolation:isolate;
}
/* The same quiet accent rings the pass carries. */
.wl-hero::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:repeating-radial-gradient(circle at 100% 0%,
    transparent 0 26px, color-mix(in srgb, var(--accent) 30%, transparent) 26px 27.5px);
  -webkit-mask-image:radial-gradient(circle at 100% 0%, #000 0, transparent 65%);
          mask-image:radial-gradient(circle at 100% 0%, #000 0, transparent 65%);
}
.has-cover .wl-hero{
  background-image:
    linear-gradient(to bottom,
      color-mix(in srgb, var(--main) 35%, transparent) 0%,
      color-mix(in srgb, var(--main) 94%, transparent) 100%),
    var(--cover-image);
  background-size:cover; background-position:center;
}
.has-cover .wl-hero::before{ display:none; }
.has-cover .wl-name, .has-cover .wl-tag{ text-shadow:0 1px 3px color-mix(in srgb, var(--main) 70%, transparent); }
.wl-logo{
  width:88px; height:88px; margin:0 0 18px;
  display:grid; place-items:center; overflow:hidden;
  border-radius:24px; background:var(--c-surface); color:var(--c-ink);
  box-shadow:0 10px 30px -8px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.04);
}
.wl-logo .hero-logo{ width:100%; height:100%; border-radius:0; box-shadow:none; object-fit:cover; }
.wl-name{ margin:0; font-size:28px; font-weight:700; line-height:1.2; letter-spacing:-.02em; text-wrap:balance; overflow-wrap:anywhere; }
.wl-tag{ margin:6px 0 0; max-width:32ch; font-size:15px; line-height:1.45; text-wrap:balance; }
.wl-sheet{
  flex:1; position:relative; z-index:1;
  margin-top:-24px; padding:28px 20px calc(var(--safe-bottom, 0px) + 32px);
  background:var(--c-surface); border-radius:24px 24px 0 0;
}
.welcome .login-head{ margin:0 0 20px; }
.welcome .login-head h2{ margin:0 0 4px; font-size:22px; font-weight:700; line-height:1.25; letter-spacing:-.015em; }
.welcome .login-head p{ margin:0; font-size:15px; line-height:1.5; color:var(--c-muted); }
.wl-sheet > .msg{ margin-bottom:16px; }
.wl-note{ margin-top:12px; text-align:center; }
.how{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:4px;
  margin:28px 0 0; padding:16px 8px; list-style:none;
  border-radius:var(--c-r-xl); background:var(--c-bg);
  counter-reset:how;
}
.how li{
  display:flex; flex-direction:column; align-items:center; gap:8px;
  font-size:13px; font-weight:600; line-height:1.3; text-align:center; color:var(--c-ink);
  position:relative;
}
/* A dotted path between the steps. */
.how li + li::before{
  content:""; position:absolute; top:20px; right:calc(50% + 26px); width:calc(100% - 48px);
  border-top:2px dotted var(--c-line-strong);
}
.how-ico{
  width:40px; height:40px; display:grid; place-items:center; border-radius:50%;
  background:var(--c-surface); color:var(--act);
  box-shadow:0 0 0 1px var(--c-line);
}
.how-ico .icon{ width:20px; height:20px; }
.wl-facts{ margin-top:16px; border-top:1px solid var(--c-line); }
.wl-facts > summary{
  display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:52px;
  list-style:none; cursor:pointer; font-size:14px; font-weight:600; color:var(--c-ink);
}
.wl-facts > summary::-webkit-details-marker{ display:none; }
.wl-facts .shop-info{ padding-bottom:8px; }

.step.in-right{ animation:ck-step-right .32s cubic-bezier(.16,1,.3,1) both; }
.step.in-left{ animation:ck-step-left .32s cubic-bezier(.16,1,.3,1) both; }
@keyframes ck-step-right{ from{ opacity:0; transform:translateX(20px); } to{ opacity:1; transform:none; } }
@keyframes ck-step-left{ from{ opacity:0; transform:translateX(-20px); } to{ opacity:1; transform:none; } }
.phone-confirm{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin-bottom:20px; padding:4px 12px 4px 16px;
  border-radius:var(--c-r-lg); background:var(--c-bg);
  font-size:14px;
}
.phone-confirm .pc-num{ display:inline-flex; align-items:center; gap:8px; min-width:0; color:var(--c-muted); }
.phone-confirm b{ color:var(--c-ink); font-size:16px; font-variant-numeric:tabular-nums; letter-spacing:.02em; }
.phone-confirm .icon-btn{ margin:0; }

/* Loading and boot errors: the shop's mark in the middle of the column. */
.boot-screen{
  min-height:100vh; min-height:100dvh;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  padding:24px 20px;
}
.boot-screen .wl-logo{ width:72px; height:72px; border-radius:20px; margin-bottom:8px; }
.boot-screen .msg{ width:100%; }
.boot-screen .btn{ max-width:320px; }

/* -------------------------------------------------------------- alerts --- */
.msg{
  margin-bottom:16px; padding:10px 14px;
  border:1px solid transparent; border-radius:var(--c-r);
  font-size:14px; line-height:1.45;
}
.msg.ok{   background:var(--c-ok-bg);   color:var(--c-ok);   border-color:color-mix(in srgb, var(--c-ok) 20%, transparent); }
.msg.err{  background:var(--c-bad-bg);  color:var(--c-bad);  border-color:color-mix(in srgb, var(--c-bad) 20%, transparent); }
.msg.warn{ background:var(--c-warn-bg); color:var(--c-warn); border-color:color-mix(in srgb, var(--c-warn) 20%, transparent); }
.msg.info{ background:var(--c-info-bg); color:var(--c-info); border-color:color-mix(in srgb, var(--c-info) 20%, transparent); }
.panel .msg, .group .msg{ margin:12px 0 0; }
.msg-slot{ margin:calc(var(--safe-top, 0px) + 12px) var(--c-pad) 0; }
.msg-slot .msg{ margin:0; }

/* ---------------------------------------------------------- page heads --- */
.page-head{ padding:calc(var(--safe-top, 0px) + 28px) calc(var(--c-pad) + 4px) 4px; }
.page-head h1{ margin:0; font-size:28px; font-weight:700; line-height:1.2; letter-spacing:-.02em; overflow-wrap:anywhere; }
.page-head p{ margin:4px 0 0; font-size:14px; line-height:1.45; color:var(--c-muted); }

/* ------------------------------------------------- sections and rows --- */
.sect{ margin-top:24px; }
.page-head + .sect, .me-stats + .sect{ margin-top:16px; }
.sect-title{
  margin:0 calc(var(--c-pad) + 4px) 8px;
  font-size:13px; font-weight:600; line-height:1.3; letter-spacing:.01em; color:var(--c-muted);
}
.group{
  margin:0 var(--c-pad);
  background:var(--c-surface); border:1px solid var(--c-line); border-radius:var(--c-r-xl);
  overflow:hidden;
}
.group.pad{ padding:8px 16px; }
.group.pad > .explain:last-child, .group.pad > .hint:last-child{ margin-bottom:8px; }

.lrow{
  position:relative;
  display:flex; align-items:center; gap:14px;
  width:100%; min-height:64px; padding:12px 14px 12px 16px;
  border:0; background:none; color:var(--c-ink);
  font:inherit; text-align:left; text-decoration:none; cursor:pointer;
}
.lrow + .lrow::before{
  content:""; position:absolute; top:0; right:0; left:66px; height:1px; background:var(--c-line);
}
div.lrow{ cursor:default; }
.lrow:hover{ background:var(--c-surface-2); }
.lrow:focus-visible{ outline-offset:-2px; border-radius:var(--c-r-xl); }
.lr-ico{
  width:36px; height:36px; flex:none; display:grid; place-items:center;
  border-radius:11px; background:var(--act-wash); color:var(--act);
}
.lr-ico .icon{ width:19px; height:19px; }
.lr-text{ flex:1; min-width:0; display:block; }
.lr-title{ display:block; font-size:15px; font-weight:600; line-height:1.3; }
.lr-sub{
  display:block; margin-top:2px; font-size:13px; line-height:1.35; color:var(--c-muted);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.lr-chev{ flex:none; display:grid; place-items:center; color:var(--c-faint); }
.lr-chev .icon{ width:18px; height:18px; }
.lrow.is-quiet .lr-ico{ background:var(--c-sunk); color:var(--c-muted); }
.count-badge{
  flex:none; min-width:22px; height:22px; padding:0 7px; border-radius:999px;
  background:var(--c-bad); color:#fff; font-size:12px; font-weight:700; line-height:22px; text-align:center;
}

/* ---------------------------------------------------------------- home --- */
.home-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:calc(var(--safe-top, 0px) + 20px) var(--c-pad) 14px calc(var(--c-pad) + 4px);
}
.hh-text{ min-width:0; }
.hh-text p{ margin:0; font-size:13px; font-weight:500; color:var(--c-muted); }
.hh-text h1{ margin:0; font-size:24px; font-weight:700; line-height:1.2; letter-spacing:-.02em; overflow-wrap:anywhere; }
.hh-bell{
  position:relative; flex:none;
  width:44px; height:44px; display:grid; place-items:center;
  border:1px solid var(--c-line); border-radius:50%;
  background:var(--c-surface); color:var(--c-ink); cursor:pointer;
}
.hh-bell:hover{ background:var(--c-surface-2); }
.hh-bell .icon{ width:20px; height:20px; }
.hh-dot{
  position:absolute; top:-3px; right:-3px;
  min-width:18px; height:18px; padding:0 5px; border-radius:999px;
  background:var(--c-bad); color:#fff; font-size:11px; font-weight:700; line-height:18px; text-align:center;
  box-shadow:0 0 0 2px var(--c-bg);
}

/* ---------------------------------------------------------------- pass --- */
/* A credit-card-shaped pass in the shop's colour. Text on it is --on-main
   at full strength (never faded), so it passes on any main. */
.pass{
  position:relative; isolation:isolate; overflow:hidden;
  margin:0 var(--c-pad);
  aspect-ratio:1.586;
  display:flex; flex-direction:column; justify-content:space-between; gap:12px;
  padding:16px 18px 16px;
  border-radius:20px;
  background:var(--main); color:var(--on-main);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--brand-ink) 22%, transparent),
    0 18px 32px -18px color-mix(in srgb, var(--brand-ink) 70%, transparent),
    0 2px 6px rgba(23,20,31,.08);
}
/* The accent pattern: fine rings rising from the lower right, fading out. */
.pass::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:repeating-radial-gradient(circle at 105% 110%,
    transparent 0 16px, color-mix(in srgb, var(--accent) 38%, transparent) 16px 17.5px);
  -webkit-mask-image:radial-gradient(circle at 100% 100%, #000 0, transparent 70%);
          mask-image:radial-gradient(circle at 100% 100%, #000 0, transparent 70%);
}
/* A soft sheen across the top, as on a printed card. */
.pass::after{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(160deg, rgba(255,255,255,.10), transparent 45%);
}
.pass-top{ display:flex; align-items:center; gap:10px; min-width:0; }
.pass-logo{
  width:36px; height:36px; flex:none; overflow:hidden;
  display:grid; place-items:center; border-radius:10px;
  background:var(--c-surface); color:var(--c-ink);
  box-shadow:0 0 0 1px color-mix(in srgb, var(--on-main) 25%, transparent);
}
.pass-logo .hero-logo{ width:100%; height:100%; object-fit:cover; display:block; }
.pass-logo .hero-logo.fallback{ display:grid; place-items:center; }
.pass-logo .icon{ width:20px; height:20px; }
.pass-shop{
  flex:1; min-width:0;
  font-size:15px; font-weight:650; line-height:1.25; letter-spacing:-.005em;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.pass-member{ flex:none; display:flex; flex-direction:column; align-items:flex-end; max-width:45%; text-align:right; }
.pm-label{ font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; line-height:1.3; }
.pm-name{ font-size:14px; font-weight:600; line-height:1.3; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* --cols comes from stampCols() in app.js: up to six on a line, 7–10 on two. */
.stamp-row{
  display:grid;
  grid-template-columns:repeat(var(--cols, 6), minmax(0, 1fr));
  justify-items:center; align-items:center; gap:10px 8px;
}
.stamp-circle{
  width:100%; max-width:52px; aspect-ratio:1;
  display:grid; place-items:center;
  border-radius:50%;
  border:2px solid color-mix(in srgb, var(--on-main) 42%, transparent);
  background:color-mix(in srgb, var(--on-main) 7%, transparent);
  color:var(--on-main);
}
.stamp-circle .icon{ width:48%; height:48%; stroke-width:2.5; }
.stamp-circle.filled{
  border-color:var(--on-main);
  background:var(--on-main); color:var(--main);
  box-shadow:0 3px 8px -2px rgba(0,0,0,.25);
}
.stamp-circle.next{
  border-style:dashed; border-color:var(--on-main);
  animation:ck-breathe 2.6s ease-in-out infinite;
}
.stamp-circle.goal{ border-style:solid; border-color:var(--on-main); }
.stamp-circle.goal .icon{ stroke-width:2; }
.stamp-circle.goal.filled{ box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 70%, transparent), 0 3px 8px -2px rgba(0,0,0,.25); }
.stamp-circle.pop{ animation:ck-pop .42s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes ck-breathe{
  0%, 100%{ box-shadow:0 0 0 0 color-mix(in srgb, var(--on-main) 0%, transparent); }
  50%     { box-shadow:0 0 0 5px color-mix(in srgb, var(--on-main) 22%, transparent); }
}
@keyframes ck-pop{
  0%  { transform:scale(.55); opacity:.2; }
  60% { transform:scale(1.1); opacity:1; }
  100%{ transform:scale(1); opacity:1; }
}
.pass-foot{ display:flex; align-items:flex-end; justify-content:space-between; gap:12px; }
.pass-count{ font-size:16px; font-weight:600; line-height:1; font-variant-numeric:tabular-nums; }
.pass-count b{ font-size:36px; font-weight:750; letter-spacing:-.03em; margin-right:2px; }
.pass-count small{
  display:block; margin-top:6px;
  font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
}
.pass-note{
  padding:5px 10px; border-radius:999px;
  background:color-mix(in srgb, var(--on-main) 16%, transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--on-main) 30%, transparent);
  font-size:12px; font-weight:650; white-space:nowrap;
}

/* --------------------------------------------------------- next reward --- */
.next-row{
  display:flex; align-items:center; gap:14px;
  width:calc(100% - 2 * var(--c-pad)); margin:12px var(--c-pad) 0;
  padding:14px 12px 14px 14px;
  border:1px solid var(--c-line); border-radius:var(--c-r-xl);
  background:var(--c-surface); color:var(--c-ink);
  font:inherit; text-align:left;
}
button.next-row{ cursor:pointer; }
button.next-row:hover{ background:var(--c-surface-2); }
.nr-ico{
  width:48px; height:48px; flex:none; overflow:hidden;
  display:grid; place-items:center; border-radius:14px;
  background:var(--accent-wash); color:var(--accent-ink);
}
.nr-ico .icon{ width:24px; height:24px; }
.reward-pic, .tier-pic{ width:100%; height:100%; object-fit:cover; display:block; border-radius:inherit; }
.nr-text{ flex:1; min-width:0; display:block; }
.nr-head{ display:block; font-size:15px; line-height:1.35; overflow-wrap:anywhere; }
.nr-head b{ font-weight:700; }
.nr-bar{ display:block; height:6px; margin-top:8px; border-radius:999px; background:var(--c-sunk); overflow:hidden; }
.nr-bar > span{ display:block; height:100%; border-radius:inherit; background:var(--act); transition:width .42s cubic-bezier(.16,1,.3,1); }
.nr-sub{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  margin-top:6px; font-size:13px; line-height:1.4; color:var(--c-muted);
}
.next-row.is-ready{ border-color:var(--accent-line); background:color-mix(in oklab, var(--accent) 6%, #fff); }
.next-row.is-ready .nr-ico{ background:var(--act); color:#fff; }

/* The streak, as one quiet line under the reward. */
.streak{
  display:flex; align-items:center; gap:12px;
  margin:8px var(--c-pad) 0; padding:10px 14px;
  border-radius:var(--c-r-lg); background:var(--c-surface); border:1px solid var(--c-line);
}
.streak-ico{
  width:32px; height:32px; flex:none; display:grid; place-items:center; border-radius:50%;
  background:var(--accent-wash); color:var(--accent-ink);
}
.streak-ico .icon{ width:16px; height:16px; }
.streak-text{ display:block; min-width:0; }
.streak-text b{ display:block; font-size:14px; font-weight:600; color:var(--c-ink); }
.streak-text span{ display:block; font-size:13px; line-height:1.4; color:var(--c-muted); }
.streak.is-due .streak-ico{ background:var(--c-surface); box-shadow:inset 0 0 0 1.5px var(--accent-ink); }

/* The one primary action on Home, held above the bottom bar. */
.code-cta{
  position:fixed; z-index:39; left:0; right:0; margin-inline:auto;
  width:100%; max-width:var(--app-max, 480px);
  bottom:calc(var(--nav-h) + var(--safe-bottom, 0px));
  padding:12px var(--c-pad) 12px;
  background:linear-gradient(to bottom, color-mix(in srgb, var(--c-bg) 0%, transparent), var(--c-bg) 35%);
}
.code-cta .btn{ box-shadow:0 10px 24px -10px color-mix(in srgb, var(--act) 80%, transparent); }

/* -------------------------------------------------------------- panels --- */
/* Feature cards that are not lists: the wheel, the birthday, an order. */
.panel{
  margin:12px var(--c-pad) 0;
  padding:16px;
  background:var(--c-surface);
  border:1px solid var(--c-line); border-radius:var(--c-r-xl);
}
.panel.centred{ text-align:center; }
.panel h4{
  display:flex; align-items:center; gap:6px;
  margin:0 0 10px; font-size:16px; font-weight:650; line-height:1.35; color:var(--c-ink);
}
.panel h4 .icon{ color:var(--accent-ink); }
.panel p{ line-height:1.5; }
.explain{ margin:12px 0 0; font-size:14px; line-height:1.5; color:var(--c-muted); }
.panel > .explain:last-child{ margin-bottom:0; }
.empty{
  display:flex; flex-direction:column; align-items:center; gap:4px;
  padding:20px 8px; text-align:center; font-size:14px; color:var(--c-muted);
}
.empty b{ font-size:15px; font-weight:600; color:var(--c-ink); }
.empty span:not(.empty-ico){ max-width:30ch; line-height:1.45; }
.empty-ico{
  width:48px; height:48px; margin-bottom:6px; display:grid; place-items:center; border-radius:50%;
  background:var(--c-sunk); color:var(--c-muted);
}
.empty-ico .icon{ width:22px; height:22px; }
.loading{ padding:24px 16px; text-align:center; font-size:14px; color:var(--c-muted); }
.spinner{
  width:24px; height:24px; margin:0 auto 10px; border-radius:50%;
  border:2.5px solid var(--c-line); border-top-color:var(--act);
  animation:ck-spin .9s linear infinite;
}
@keyframes ck-spin{ to{ transform:rotate(360deg); } }
.tz-note{ text-align:center; margin-top:16px; }

.info-row .dot,
.oq-ico{
  display:grid; place-items:center; flex:none; border-radius:50%;
  background:var(--c-sunk); color:var(--c-muted);
}

/* ------------------------------------------------------------- rewards --- */
/* Four states that must not be confused at a glance:
     locked   grey tile, a lock and how far, with a thin bar
     ready    solid tile in the shop colour, "Ready"
     saved    the accent: dashed voucher cards (vault)
     claimed  quiet grey receipt rows, "Collected"            */
.rewards-list{ display:flex; flex-direction:column; }
.reward-row{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 0; font-size:14px;
  border-top:1px solid var(--c-line);
}
.reward-row:first-child{ border-top:0; }
.tier{ display:flex; align-items:center; gap:12px; min-width:0; flex:1; }
.tier > span:not(.tier-ico){ min-width:0; flex:1; }
.tier-ico{
  width:42px; height:42px; flex:none; overflow:hidden;
  display:grid; place-items:center; border-radius:12px;
  background:var(--c-sunk); color:var(--c-muted);
}
.tier-title{ display:block; font-weight:600; color:var(--c-ink); overflow-wrap:anywhere; }
.tier-sub{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  margin-top:1px; font-size:13px; line-height:1.4; color:var(--c-muted); overflow-wrap:anywhere;
}
.tier-bar{ display:block; max-width:180px; height:4px; margin-top:7px; border-radius:999px; background:var(--c-sunk); overflow:hidden; }
.tier-bar > span{ display:block; height:100%; border-radius:inherit; background:var(--act); }
.reward-row.unlocked .tier-ico{ background:var(--act); color:#fff; }
.reward-row.is-goal .tier-title{ color:var(--accent-ink); }
.reward-row.has-ask{ flex-wrap:wrap; }
.goal-flag{
  display:inline-block; margin-left:6px; padding:1px 7px; border-radius:999px;
  background:var(--accent-wash); color:var(--accent-ink);
  font-size:11px; font-weight:600; vertical-align:1px;
}
.goal-star{
  flex:none; display:grid; place-items:center;
  width:44px; height:44px; margin:-8px -10px -8px -6px;
  border:0; border-radius:var(--c-r); background:none;
  color:var(--c-field); cursor:pointer;
}
.goal-star:hover{ color:var(--c-muted); background:var(--c-sunk); }
.goal-star.is-on{ color:var(--accent-ink); }
.goal-star.is-on .icon{ fill:currentColor; }

.badge{
  display:inline-flex; align-items:center; gap:4px; flex:none;
  padding:4px 10px; border-radius:999px;
  background:var(--act); color:#fff;
  font-size:12px; font-weight:650; white-space:nowrap;
}
.badge .icon{ width:13px; height:13px; }
.badge.muted{ background:var(--accent-wash); color:var(--accent-ink); }
.badge.quiet{ background:var(--c-sunk); color:var(--c-muted); font-weight:600; }

.ask-row{
  flex:1 0 100%;
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding-left:54px;
}
.ask-row .btn{ margin-top:0; }
.ask-said{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--c-ok); }
.ask-said .icon{ width:15px; height:15px; }

/* ---------------------------------------------------------------- levels --- */
.level-panel{
  margin:0 var(--c-pad) 12px; padding:16px;
  background:var(--c-surface); border:1px solid var(--c-line); border-radius:var(--c-r-xl);
}
.level-now{ margin:0 0 12px; }
.level-chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 12px; border-radius:999px;
  background:var(--act); color:#fff;
  font-size:14px; font-weight:650; white-space:nowrap;
}
.level-chip .icon{ width:14px; height:14px; fill:currentColor; }
.level-track{ height:8px; border-radius:999px; background:var(--c-sunk); overflow:hidden; }
.level-fill{ height:100%; border-radius:999px; background:var(--act); transition:width .42s cubic-bezier(.16,1,.3,1); }
.level-rungs{ display:flex; justify-content:space-between; gap:8px; margin-top:8px; }
.level-rung{ min-width:0; text-align:center; }
.level-rung:first-child{ text-align:left; }
.level-rung:last-child{ text-align:right; }
.level-rung b{ display:block; font-size:12px; font-weight:600; color:var(--c-muted); overflow-wrap:anywhere; }
.level-rung span{ display:block; font-size:12px; color:var(--c-faint); font-variant-numeric:tabular-nums; }
.level-rung.is-on b{ color:var(--c-ink); }
.level-panel .explain{ margin-bottom:0; }

/* --------------------------------------------------------- code screen --- */
.code-screen{ padding-bottom:8px; }
.code-head{
  padding:calc(var(--safe-top, 0px) + 28px) 20px 84px;
  background:var(--main); color:var(--on-main); text-align:center;
  position:relative; overflow:hidden; isolation:isolate;
}
.code-head::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:repeating-radial-gradient(circle at 50% -20%,
    transparent 0 22px, color-mix(in srgb, var(--accent) 26%, transparent) 22px 23.5px);
  -webkit-mask-image:linear-gradient(#000, transparent 85%); mask-image:linear-gradient(#000, transparent 85%);
}
.code-head h1{ margin:0; font-size:24px; font-weight:700; letter-spacing:-.02em; }
.code-head p{ margin:4px 0 0; font-size:15px; font-weight:500; }
.code-card{
  position:relative; margin:-64px var(--c-pad) 0;
  padding:24px 20px 20px; text-align:center;
  background:#fff; border-radius:24px;
  box-shadow:0 20px 40px -20px rgba(23,20,31,.35), 0 0 0 1px rgba(23,20,31,.05);
}
.qr-plaque{
  display:flex; justify-content:center;
  width:fit-content; max-width:100%; margin:0 auto; padding:10px;
  background:#fff; border-radius:var(--c-r-lg);
  overflow:hidden;
}
.qr-plaque img,
.qr-plaque canvas{ display:block; }
.qr-plaque.lg{ animation:ck-qr-in .24s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes ck-qr-in{ from{ opacity:0; transform:scale(.96); } to{ opacity:1; transform:none; } }
.qr-fallback{
  max-width:200px; padding:20px 12px;
  font-size:13px; line-height:1.4; color:var(--c-muted); text-align:center; word-break:break-all;
}
.pin-cap{
  margin-top:16px; padding-top:16px; border-top:1px dashed var(--c-line-strong);
  font-size:11px; font-weight:700; letter-spacing:.14em; color:var(--c-muted);
}
.pin-big{
  margin:4px 0 0;
  font-family:var(--c-mono); font-size:40px; font-weight:700; line-height:1.15;
  font-variant-numeric:tabular-nums; letter-spacing:.38em; padding-left:.38em;  /* balances the trailing tracking */
  color:var(--c-ink); overflow-wrap:anywhere;
}
.qr-timer{ display:flex; align-items:center; justify-content:center; gap:10px; margin-top:14px; }
.qr-ring{ width:28px; height:28px; flex:none; transform:rotate(-90deg); }
.qr-ring circle{ fill:none; stroke-width:4; }
.qr-ring-bg{ stroke:var(--c-sunk); }
.qr-ring-fill{
  stroke:var(--act); stroke-linecap:round;
  stroke-dasharray:100; stroke-dashoffset:0;
  transition:stroke-dashoffset 1s linear;
}
.countdown{ font-size:14px; font-weight:500; font-variant-numeric:tabular-nums; color:var(--c-muted); }
.code-tips{ margin:16px var(--c-pad) 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:8px; }
.code-tips li{
  display:flex; align-items:flex-start; gap:10px;
  font-size:14px; line-height:1.45; color:var(--c-muted);
}
.code-tips .icon{ flex:none; margin-top:3px; color:var(--act); }
.code-acts{
  display:flex; flex-direction:column; align-items:center; gap:4px;
  margin:16px var(--c-pad) 0;
}
.code-acts .btn{ margin:0; }

/* "Why does this change?" — folded help. */
.why{ font-size:14px; color:var(--c-muted); text-align:center; }
.why summary{
  display:inline-flex; align-items:center; gap:6px; min-height:44px;
  list-style:none; cursor:pointer;
  font-size:14px; font-weight:600; color:var(--accent-ink);
}
.why summary::-webkit-details-marker{ display:none; }
.why summary::after,
.si-hours > summary::after,
.danger-fold > summary::after,
.wl-facts > summary::after{
  content:""; width:6px; height:6px; margin-left:2px; flex:none;
  border-right:1.75px solid currentColor; border-bottom:1.75px solid currentColor;
  transform:rotate(45deg) translateY(-2px); transition:transform .2s;
}
.why[open] summary::after,
.si-hours[open] > summary::after,
.danger-fold[open] > summary::after,
.wl-facts[open] > summary::after{ transform:rotate(-135deg) translateY(-1px); }
.why p{ margin:0 0 4px; text-align:left; line-height:1.5; color:var(--c-muted); }

/* ------------------------------------------------ vault + receipts --- */
/* Saved rewards: voucher cards with a dashed accent edge, each with a QR. */
.vault-banner{ margin:20px var(--c-pad) 0; }
.vault-banner-head{
  display:flex; align-items:center; gap:8px; margin:0 4px 8px;
  font-size:13px; font-weight:600; line-height:1.3; color:var(--c-muted);
}
.vault-banner-head .icon{ width:18px; height:18px; color:var(--accent-ink); }
.vault-card{
  padding:16px 12px; text-align:center;
  background:var(--c-surface); border:1.5px dashed var(--accent-line); border-radius:var(--c-r-xl);
}
.vault-card + .vault-card{ margin-top:10px; }
.vault-panel .vault-card{ background:color-mix(in oklab, var(--accent) 5%, #fff); }
.vault-card-head{ display:flex; align-items:center; justify-content:center; gap:8px; min-width:0; }
.vault-ico{
  width:28px; height:28px; flex:none; display:grid; place-items:center; border-radius:8px;
  background:var(--accent-wash); color:var(--accent-ink);
}
.vault-ico .icon{ width:16px; height:16px; }
.vault-name{ min-width:0; font-size:16px; font-weight:650; overflow-wrap:anywhere; }
.vault-qr{
  width:132px; height:132px; margin:12px auto 8px; padding:8px;
  display:grid; place-items:center;
  background:#fff; border:1px solid var(--c-line); border-radius:var(--c-r);
}
.vault-qr canvas,
.vault-qr img{ display:block; width:100%; height:100%; }
.vault-code{
  display:inline-block; margin:4px 0 8px; padding:6px 12px 6px calc(12px + .24em);
  font-family:var(--c-mono); font-size:20px; font-weight:700; letter-spacing:.24em;
  font-variant-numeric:tabular-nums; color:var(--c-ink);
  background:var(--c-surface); border-radius:var(--c-r);
  box-shadow:inset 0 0 0 1px var(--c-line);
  overflow-wrap:anywhere;
}
.vault-facts{ display:flex; flex-direction:column; gap:2px; font-size:13px; line-height:1.4; color:var(--c-muted); }
.vault-fact{ display:inline-flex; align-items:center; justify-content:center; gap:4px; }
.vault-fact.forever{ color:var(--c-ok); }
.vault-fact.deadline{ color:var(--c-warn); font-weight:600; }
.vault-cta{
  display:flex; align-items:center; gap:8px; margin:12px 4px 0;
  font-size:14px; color:var(--c-muted); line-height:1.4;
}
.vault-cta .icon{ color:var(--accent-ink); }
.vault-panel .vault-cta{ margin:4px 0 12px; }
.vault-panel{ padding-bottom:16px; }
.vault-sub{ margin:8px 0; font-size:13px; font-weight:600; color:var(--c-ink); }
.vault-sub.muted{ margin-top:16px; color:var(--c-muted); }
.vault-past{ padding:10px 0; border-top:1px solid var(--c-line); }
.vp-top{ display:flex; justify-content:space-between; gap:12px; font-size:14px; }
.vp-top b{ min-width:0; font-weight:600; overflow-wrap:anywhere; }
.when{ flex:none; font-size:12px; color:var(--c-faint); white-space:nowrap; }

.rstatus{
  display:inline-flex; align-items:center; gap:4px; flex:none;
  padding:3px 9px; border-radius:999px;
  font-size:12px; font-weight:600; white-space:nowrap;
  background:var(--c-sunk); color:var(--c-muted);
}
.rstatus .icon{ width:13px; height:13px; }
.rstatus.waiting{ background:var(--accent-wash); color:var(--accent-ink); }
.rstatus.collected{ background:var(--c-sunk); color:var(--c-ink); }
.rstatus.void{ background:var(--c-sunk); color:var(--c-muted); text-decoration:line-through; text-decoration-thickness:1px; }
.redeem-row{ padding:12px 0; border-top:1px solid var(--c-line); }
.redeem-row:first-child{ border-top:0; }
.redeem-row.waiting .rtop b{ color:var(--accent-ink); }
.rtop{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; font-size:14px; }
.rtop b{ min-width:0; font-weight:600; overflow-wrap:anywhere; }
.code{
  display:inline-block; margin-top:8px; padding:3px 9px 3px calc(9px + .16em);
  font-family:var(--c-mono); font-size:13px; font-weight:600; letter-spacing:.16em;
  color:var(--c-muted); background:var(--c-surface-2);
  border:1px solid var(--c-line); border-radius:6px; overflow-wrap:anywhere;
}

/* ------------------------------------------------------------- history --- */
.day-head{
  padding:14px 0 4px;
  font-size:12px; font-weight:600; letter-spacing:.02em; color:var(--c-muted);
}
.day-head:first-child{ padding-top:6px; }
.history-item{
  display:flex; align-items:center; gap:12px;
  padding:10px 0; border-bottom:1px solid var(--c-line); font-size:14px;
}
.history-item:last-child,
.history-item:has(+ .day-head),
.history-item:has(+ .btn),
.history-item:has(+ .hint){ border-bottom:0; }
.h-ico{
  width:34px; height:34px; flex:none; display:grid; place-items:center; border-radius:50%;
  background:var(--act-wash); color:var(--act);
}
.history-item.is-redeem .h-ico{ background:var(--accent-wash); color:var(--accent-ink); }
.h-main{ flex:1; min-width:0; }
.h-label{ font-weight:600; overflow-wrap:anywhere; }
.h-meta{ margin-top:1px; font-size:12px; line-height:1.4; color:var(--c-faint); }
.h-delta{ flex:none; font-size:15px; font-weight:700; font-variant-numeric:tabular-nums; color:var(--c-ok); }
.h-delta.minus{ color:var(--c-bad); }

/* --------------------------------------------------------------- inbox --- */
.inbox-item{
  display:flex; gap:12px; padding:12px 0;
  border-bottom:1px solid var(--c-line); color:inherit; text-decoration:none;
}
.inbox-item:last-of-type{ border-bottom:0; }
.inbox-item .ico{
  width:36px; height:36px; flex:none; display:grid; place-items:center; border-radius:50%;
  background:var(--act-wash); color:var(--act);
}
.inbox-item .grow{ display:block; }
.m-title{ display:block; font-size:15px; font-weight:600; overflow-wrap:anywhere; }
.m-body{ display:block; margin-top:2px; font-size:14px; line-height:1.45; color:var(--c-muted); overflow-wrap:anywhere; }
.m-ago{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:4px; font-size:12px; color:var(--c-faint); }
.m-open{ display:inline-flex; align-items:center; gap:2px; font-weight:600; color:var(--accent-ink); }
.inbox-item.unread .m-title::after{
  content:""; display:inline-block; width:8px; height:8px; margin-left:8px;
  border-radius:50%; background:var(--c-bad); vertical-align:middle;
}
a.inbox-item:hover .m-title{ text-decoration:underline; }

/* ------------------------------------------------------------- profile --- */
.me-head{
  display:flex; align-items:center; gap:14px;
  padding:calc(var(--safe-top, 0px) + 28px) calc(var(--c-pad) + 4px) 4px;
}
.me-avatar{
  width:60px; height:60px; flex:none; display:grid; place-items:center; border-radius:50%;
  background:var(--main); color:var(--on-main);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--brand-ink) 25%, transparent);
  font-size:22px; font-weight:700; letter-spacing:.02em;
}
.me-id{ min-width:0; }
.me-id h1{ margin:0; font-size:24px; font-weight:700; line-height:1.2; letter-spacing:-.02em; overflow-wrap:anywhere; }
.me-id p{ margin:2px 0 0; font-size:14px; color:var(--c-muted); font-variant-numeric:tabular-nums; }
.me-stats{
  display:grid; grid-template-columns:repeat(3, minmax(0, 1fr));
  margin:16px var(--c-pad) 0;
  background:var(--c-surface); border:1px solid var(--c-line); border-radius:var(--c-r-xl);
}
.me-stats > span{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  padding:14px 6px; text-align:center;
  font-size:12px; line-height:1.3; color:var(--c-muted);
}
.me-stats > span + span{ border-left:1px solid var(--c-line); }
.me-stats b{ font-size:17px; font-weight:700; color:var(--c-ink); font-variant-numeric:tabular-nums; line-height:1.25; }
.me-stats > span:last-child b{ font-size:14px; }

.info-row{
  display:flex; align-items:center; gap:12px;
  padding:8px 0; font-size:14px; line-height:1.45;
}
.info-row .dot{ width:34px; height:34px; background:var(--act-wash); color:var(--act); }
.info-row .dot .icon{ width:17px; height:17px; }
.info-row .val{ font-weight:600; }
.info-row .none{ color:var(--c-faint); }
.info-row .icon-btn{ margin:0 -8px 0 0; }
.info-row a:not(.dir-link){ color:var(--c-ink); font-weight:600; }
.ev-when{ margin-top:1px; font-size:13px; font-weight:600; color:var(--accent-ink); }
.ev-body{ margin-top:2px; font-size:13px; color:var(--c-muted); }
.year-line{ margin:4px 0 6px; font-size:16px; font-weight:600; }

.prefs{ display:flex; flex-direction:column; }
.switch-row{ display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--c-line); }
.switch-row:last-child{ border-bottom:0; }
.switch-row.busy{ opacity:.6; }
.sw-text{ flex:1; min-width:0; cursor:pointer; }
.sw-title{ display:block; font-size:15px; font-weight:600; }
.sw-sub{ display:block; margin-top:1px; font-size:13px; line-height:1.4; color:var(--c-muted); }
/* A real checkbox, transparent over a drawn track, so the tap target, the
   keyboard and the screen reader all reach the input itself. */
.switch{ position:relative; flex:none; width:50px; height:30px; }
.switch input{
  position:absolute; inset:0; z-index:2; width:100%; height:100%; min-height:0;
  margin:0; padding:0; opacity:0; cursor:pointer;
}
.switch .sw-track{ position:absolute; inset:0; border-radius:999px; background:var(--c-line-strong); transition:background .2s; }
.switch .sw-knob{
  position:absolute; top:3px; left:3px; width:24px; height:24px; border-radius:50%;
  background:#fff; box-shadow:0 1px 3px rgba(23,20,31,.25); transition:transform .2s;
}
.switch input:checked ~ .sw-track{ background:var(--act); }
.switch input:checked ~ .sw-track .sw-knob{ transform:translateX(20px); }
.switch input:focus-visible ~ .sw-track{ outline:2px solid var(--focus, var(--accent-ink)); outline-offset:2px; }
.switch input:disabled{ cursor:default; }
.push-msg,
.push-btn{ margin-top:8px; }
.push-btn + .hint{ margin-bottom:8px; }

/* Your data: rights, not features — quiet, and delete is folded shut. */
.danger-fold{ margin-top:8px; padding-top:4px; border-top:1px solid var(--c-line); }
.danger-fold > summary{
  display:inline-flex; align-items:center; gap:6px; min-height:44px;
  list-style:none; cursor:pointer; font-size:14px; color:var(--c-muted);
}
.danger-fold > summary::-webkit-details-marker{ display:none; }
.danger-fold > summary:hover{ color:var(--c-ink); }
.danger-fold .field{ margin-top:12px; }
.danger-fold .btn.danger{ margin:8px 0; }

.refer-panel{ padding-bottom:16px; }
.refer-code{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin:12px 0 0; padding:8px 8px 8px 16px;
  border:1.5px dashed var(--accent-line); border-radius:var(--c-r-lg);
  background:color-mix(in oklab, var(--accent) 5%, #fff);
}
.refer-code-text{
  font-family:var(--c-mono); font-size:22px; font-weight:700; letter-spacing:.14em;
  color:var(--c-ink); user-select:all;
}
.refer-code .btn{ margin:0; }
.refer-count{ margin:8px 0 0; font-size:14px; color:var(--c-muted); }

.order-panel.is-ready{ border-color:var(--c-ok); box-shadow:inset 0 0 0 1px var(--c-ok); }
.order-items{ margin:0 0 6px; font-size:14px; color:var(--c-muted); }
.order-status{ margin:0 0 10px; }

.achievement{ text-align:center; }
.achievement h4{ justify-content:center; }
.achievement .btn.share-btn{ margin-top:12px; }

/* The install offer: one row, Add and a close. */
.install-row{
  display:flex; align-items:center; gap:12px;
  margin:12px var(--c-pad) 0; padding:10px 6px 10px 14px;
  background:var(--c-surface); border:1px solid var(--c-line); border-radius:var(--c-r-xl);
}
.ir-ico{
  width:36px; height:36px; flex:none; display:grid; place-items:center; border-radius:11px;
  background:var(--act-wash); color:var(--act);
}
.ir-title{ display:block; font-size:14px; font-weight:600; }
.ir-sub{ display:block; margin-top:1px; font-size:13px; line-height:1.35; color:var(--c-muted); }
.install-row .btn{ margin:0; min-height:40px; padding:0 14px; }
.ir-x{
  width:40px; height:44px; flex:none; display:grid; place-items:center;
  border:0; border-radius:var(--c-r); background:none; color:var(--c-faint); cursor:pointer;
}
.ir-x:hover{ background:var(--c-sunk); color:var(--c-ink); }

/* ----------------------------------------------------------- shop info --- */
.si-row{
  display:flex; align-items:flex-start; gap:12px;
  padding:8px 0; font-size:14px; line-height:1.45; color:var(--c-ink);
}
.si-row + .si-row{ border-top:1px solid var(--c-line); }
.si-row > .icon{ flex:none; margin-top:2px; width:17px; height:17px; color:var(--act); }
.si-row a:not(.dir-link){ color:var(--c-ink); font-weight:600; }
.si-row.is-open > .icon{ color:var(--c-ok); }
.si-row.is-open b{ color:var(--c-ok); }
.si-row.is-shut b{ color:var(--c-bad); }
.si-row.is-gold{ color:var(--accent-ink); font-weight:600; }
.si-row.is-gold > .icon{ color:var(--accent-ink); }
.si-today{ display:block; font-size:13px; color:var(--c-muted); }
.si-hours > summary{
  display:inline-flex; align-items:center; gap:6px; min-height:32px;
  list-style:none; cursor:pointer; font-size:13px; color:var(--accent-ink); font-weight:600;
}
.si-hours > summary::-webkit-details-marker{ display:none; }
.si-hlist{
  display:grid; grid-template-columns:auto 1fr; gap:2px 16px;
  padding-bottom:4px; font-size:13px; color:var(--c-muted);
}
.si-hrow{ display:contents; }
.si-hrow > span:last-child{ text-align:right; font-variant-numeric:tabular-nums; }
.si-hrow.is-today > span{ color:var(--c-ink); font-weight:600; }
.dir-link{
  display:inline-flex; align-items:center; gap:4px; margin-left:8px; vertical-align:baseline;
  font-size:13px; font-weight:600; color:var(--accent-ink); text-decoration:none; white-space:nowrap;
}
.dir-link .icon{ width:14px; height:14px; }
.dir-link:hover{ text-decoration:underline; }
.info-row .grow > .dir-link:first-child{ margin-left:0; }

.social-row{ display:grid; gap:8px; grid-template-columns:repeat(auto-fit, minmax(88px, 1fr)); padding:8px 0; }
.social-link{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  min-height:72px; padding:12px 8px;
  border-radius:var(--c-r-lg); background:var(--c-bg);
  color:var(--c-ink); text-decoration:none;
  font-size:13px; font-weight:600;
}
.social-link .icon{ width:22px; height:22px; color:var(--act); }
.social-link:hover{ background:var(--c-sunk); }

/* -------------------------------------------------------------- spin --- */
.spin-panel,
.scratch-panel{ text-align:center; }
.spin-panel h4,
.scratch-panel h4{ justify-content:center; }
.wheel-wrap{ position:relative; width:min(250px, 72vw); aspect-ratio:1; margin:16px auto 20px; }
.wheel-pointer{
  position:absolute; z-index:2; top:-8px; left:50%; transform:translateX(-50%);
  width:0; height:0;
  border-left:11px solid transparent; border-right:11px solid transparent;
  border-top:18px solid var(--c-ink);
}
/* Segments by rotation over a conic gradient: three prizes or twelve, the
   same markup. Alternating main and a lifted main keeps any shop's pair legible. */
.wheel{
  position:absolute; inset:0; border-radius:50%;
  background:repeating-conic-gradient(
    var(--main) 0deg calc(360deg / var(--n)),
    color-mix(in oklab, var(--main) 80%, var(--on-main)) calc(360deg / var(--n)) calc(720deg / var(--n)));
  box-shadow:0 0 0 5px var(--c-surface), 0 0 0 6px var(--c-line-strong), 0 12px 30px -12px rgba(23,20,31,.35);
  will-change:transform;
}
.wheel::after{
  content:""; position:absolute; inset:39%; border-radius:50%;
  background:var(--c-surface); box-shadow:0 0 0 1px var(--c-line-strong);
}
.wheel-seg{
  position:absolute; inset:0; pointer-events:none;
  transform:rotate(calc(var(--i) * var(--seg) + var(--seg) / 2));
}
.ws-ico{ position:absolute; top:9%; left:50%; transform:translateX(-50%); display:block; color:var(--on-main); }
.ws-ico .icon{ width:1.5em; height:1.5em; }
.ws-img{
  display:block; width:30px; height:30px; border-radius:50%; object-fit:cover;
  box-shadow:0 0 0 2px color-mix(in oklab, var(--on-main) 60%, transparent);
}
.spin-result{ min-height:4px; }
.spin-won{
  display:flex; flex-direction:column; align-items:center; gap:4px;
  margin-bottom:16px; padding:16px;
  border:1.5px dashed var(--accent-line); border-radius:var(--c-r-lg);
  background:color-mix(in oklab, var(--accent) 5%, #fff);
  animation:ck-won-in .42s cubic-bezier(.34,1.56,.64,1) both;
}
.sw-ico{ color:var(--accent-ink); }
.sw-img{ display:block; width:56px; height:56px; margin:0 auto; border-radius:50%; object-fit:cover; }
.spin-won strong{ font-size:16px; font-weight:650; color:var(--c-ink); }
.sw-code{ font-size:14px; color:var(--c-muted); }
.sw-code b{ font-family:var(--c-mono); letter-spacing:.08em; color:var(--c-ink); }
@keyframes ck-won-in{ from{ opacity:0; transform:scale(.92); } to{ opacity:1; transform:none; } }
.spin-prizes{ display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-top:12px; }
.sp-chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 10px; border-radius:999px;
  background:var(--c-bg);
  font-size:12px; color:var(--c-muted);
}
.sp-chip .icon{ color:var(--accent-ink); }
.sp-img{ width:20px; height:20px; border-radius:50%; object-fit:cover; }

/* ----------------------------------------------------------- scratch --- */
/* The foil is a <canvas> drawn and erased by app.js; the prize is ordinary
   markup underneath the whole time, so "Reveal it for me" and a screen
   reader both reach it without any rubbing. */
.scratch-wrap{
  position:relative; width:100%; aspect-ratio:16 / 9; margin:16px 0;
  border-radius:var(--c-r-lg); overflow:hidden;
  background:var(--main);
  touch-action:none; user-select:none;   /* a rub must not scroll the page */
}
.scratch-face{
  position:absolute; inset:0;
  display:grid; place-content:center; justify-items:center; gap:6px;
  padding:16px; text-align:center; color:var(--on-main);
}
.sf-ico{
  width:52px; height:52px; display:grid; place-items:center; border-radius:50%;
  background:var(--on-main); color:var(--main); overflow:hidden;
}
.sf-ico .sw-img{ width:100%; height:100%; }
.scratch-face strong{ font-size:18px; font-weight:650; line-height:1.25; }
.sf-code{ font-size:14px; }
.sf-code b{ font-family:var(--c-mono); letter-spacing:.06em; }
.scratch-foil{
  position:absolute; inset:0; display:block; width:100%; height:100%;
  cursor:grab; transition:opacity .42s;
}
.scratch-foil:active{ cursor:grabbing; }
.scratch-foil.is-gone{ opacity:0; pointer-events:none; }
.scratch-hint{
  position:absolute; left:50%; bottom:12px; transform:translateX(-50%);
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 12px; border-radius:999px;
  background:rgba(23,20,31,.72); color:#fff;
  font-size:12px; font-weight:600; white-space:nowrap; pointer-events:none;
  animation:ck-rub 1.8s ease-in-out infinite;
}
.scratch-hint.is-gone{ opacity:0; animation:none; }
@keyframes ck-rub{
  0%, 100%{ transform:translateX(-50%) translateY(0); }
  50%     { transform:translateX(-50%) translateY(-4px); }
}
.scratch-wrap.is-done .scratch-face{ animation:ck-won-in .42s cubic-bezier(.34,1.56,.64,1) both; }

/* ------------------------------------------------------------ notices --- */
/* "True right now, and you may want to act": stamps expiring, a reward asked for. */
.notice{
  display:flex; align-items:center; gap:12px;
  margin:12px var(--c-pad) 0; padding:10px 12px;
  border:1px solid var(--c-line); border-radius:var(--c-r-lg);
  background:var(--c-surface-2);
}
.nt-ico{ flex:none; display:grid; place-items:center; }
.nt-ico .icon{ width:20px; height:20px; }
.nt-text{ display:block; flex:1; min-width:0; }
.nt-text b{ display:block; font-size:14px; font-weight:600; }
.nt-text span{ display:block; margin-top:1px; font-size:13px; line-height:1.4; overflow-wrap:anywhere; }
.notice .icon-btn{ flex:none; margin:0 -4px 0 0; }
.notice.is-warn{ background:var(--c-warn-bg); border-color:color-mix(in srgb, var(--c-warn) 25%, transparent); color:var(--c-warn); }
.notice.is-ask{ background:var(--c-info-bg); border-color:color-mix(in srgb, var(--c-info) 22%, transparent); color:var(--c-info); }
.notice.is-ask .icon-btn.link{ color:inherit; text-decoration:underline; }

/* How was your visit — five real 44px+ buttons, number under the star. */
.rate-panel{ text-align:center; }
.rate-panel h4{ justify-content:center; }
.rate-panel .explain{ margin-top:0; }
.rate-stars{ display:flex; justify-content:center; gap:8px; margin:12px 0 4px; }
.rate-star{
  flex:1 1 0; max-width:64px; min-height:56px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  border:1px solid var(--c-line-strong); border-radius:var(--c-r-lg);
  background:var(--c-surface); color:var(--c-muted); cursor:pointer;
}
.rate-star .icon{ width:22px; height:22px; }
.rs-num{ font-size:12px; font-weight:600; }
.rate-star:hover:not(:disabled){ border-color:var(--accent-ink); background:var(--accent-wash); color:var(--accent-ink); }
.rate-star:disabled{ opacity:.5; cursor:default; }
.rate-panel.is-done .explain{ margin-bottom:12px; }

/* Birthday: the one panel allowed a little warmth, only when it is real. */
.treat{ display:flex; align-items:center; gap:14px; }
.treat-ico{
  width:44px; height:44px; flex:none; display:grid; place-items:center; border-radius:50%;
  background:var(--accent-wash); color:var(--accent-ink);
}
.treat-text{ display:block; min-width:0; }
.treat-head{ display:block; font-size:16px; font-weight:650; }
.treat-line{ display:block; margin-top:2px; font-size:14px; line-height:1.45; color:var(--c-muted); overflow-wrap:anywhere; }
.treat.is-today,
.treat.is-open{ border-color:var(--accent-line); }
.treat.is-today .treat-ico,
.treat.is-open .treat-ico{ background:var(--act); color:#fff; }

/* ---------------------------------------------------------- bottom nav --- */
.bottomnav{
  position:fixed; left:0; right:0; bottom:0; z-index:40;
  width:100%; max-width:var(--app-max, 480px); margin:0 auto;
  display:grid; grid-template-columns:repeat(5, 1fr); align-items:stretch;
  height:calc(var(--nav-h) + var(--safe-bottom, 0px));
  padding:0 4px var(--safe-bottom, 0px);
  background:color-mix(in srgb, var(--c-surface) 94%, transparent);
  -webkit-backdrop-filter:saturate(1.4) blur(12px); backdrop-filter:saturate(1.4) blur(12px);
  border-top:1px solid var(--c-line);
}
.navitem{
  position:relative;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  min-width:0; min-height:48px; padding:0 2px;
  border:0; background:none; color:var(--c-faint);
  font:500 11.5px/1.2 var(--font-body); cursor:pointer;
}
.navicon{ display:inline-flex; line-height:1; }
.navicon .icon{ width:23px; height:23px; }
.navlabel{ white-space:nowrap; }
.navitem.active-nav{ color:var(--act); font-weight:650; }
.navitem.active-nav .navicon .icon{ stroke-width:2.1; }
/* The code: a raised disc in the shop colour, the one thing that stands out. */
.navitem.center .navicon{
  width:52px; height:52px; margin-top:-22px;
  display:grid; place-items:center; border-radius:50%;
  background:var(--act); color:#fff;
  box-shadow:0 0 0 4px var(--c-surface), 0 8px 18px -6px color-mix(in srgb, var(--act) 75%, transparent);
}
.navitem.center .navicon .icon{ width:24px; height:24px; }
.navitem.center{ color:var(--c-ink); }
.navitem.center.active-nav{ color:var(--act); }
.nav-badge{
  position:absolute; top:6px; left:calc(50% + 6px);
  min-width:18px; height:18px; padding:0 5px; border-radius:999px;
  background:var(--c-bad); color:#fff;
  font-size:11px; font-weight:700; line-height:18px; text-align:center;
  box-shadow:0 0 0 2px var(--c-surface);
}
.navitem:active{ transform:scale(.96); }

/* --------------------------------------------------------------- sheet --- */
.sheet-bg{
  position:fixed; inset:0; z-index:80;
  background:rgba(23,20,31,.45);
  animation:ck-fade-in .2s ease both;
}
.sheet{
  position:fixed; z-index:81; left:0; right:0; bottom:0; margin-inline:auto;
  width:100%; max-width:var(--app-max, 480px); max-height:86vh; max-height:86dvh;
  overflow-y:auto; overscroll-behavior:contain;
  padding-bottom:calc(var(--safe-bottom, 0px) + 20px);
  background:var(--c-bg); border-radius:24px 24px 0 0;
  box-shadow:0 -12px 40px rgba(23,20,31,.2);
  animation:ck-sheet-in .32s cubic-bezier(.16,1,.3,1) both;
}
.sheet:focus{ outline:none; }
.sheet-head{
  position:sticky; top:0; z-index:1;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:18px var(--c-pad) 12px calc(var(--c-pad) + 4px);
  background:var(--c-bg);
}
.sheet-head::before{
  content:""; position:absolute; top:8px; left:50%; width:36px; height:4px; margin-left:-18px;
  border-radius:999px; background:var(--c-line-strong);
}
.sheet-head h2{ margin:0; font-size:20px; font-weight:700; letter-spacing:-.015em; overflow-wrap:anywhere; }
.sheet-x{
  width:40px; height:40px; flex:none; display:grid; place-items:center;
  border:0; border-radius:50%; background:var(--c-sunk); color:var(--c-ink); cursor:pointer;
}
.sheet-x:hover{ background:var(--c-line); }
.sheet-body .sect{ margin-top:16px; }
.sheet-body > .group + .sect, .sheet-body > .level-panel + .group{ margin-top:12px; }
@keyframes ck-sheet-in{ from{ transform:translateY(40px); opacity:0; } to{ transform:none; opacity:1; } }

/* ------------------------------------------------------------ overlays --- */
.toast-wrap{
  position:fixed; top:calc(var(--safe-top, 0px) + 12px); left:0; right:0; z-index:90;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  padding:0 16px; pointer-events:none;
}
.toast{
  max-width:min(100%, 440px); padding:12px 18px;
  border-radius:999px; background:var(--c-ink); color:#fff;
  font-size:14px; font-weight:500; line-height:1.4; text-align:center;
  box-shadow:var(--c-shadow);
  animation:ck-toast-in .32s cubic-bezier(.16,1,.3,1) both;
}
.toast.leaving{ animation:ck-toast-out .2s ease-in both; }
@keyframes ck-toast-in{ from{ transform:translateY(-12px); opacity:0; } to{ transform:none; opacity:1; } }
@keyframes ck-toast-out{ from{ transform:none; opacity:1; } to{ transform:translateY(-12px); opacity:0; } }

#ck-confetti{ position:fixed; inset:0; z-index:95; width:100%; height:100%; pointer-events:none; }
.celebrate{
  position:fixed; inset:0; z-index:92;
  display:flex; align-items:center; justify-content:center; padding:24px;
  background:rgba(23,20,31,.55);
  animation:ck-fade-in .24s ease both;
}
.celebrate .card{
  width:100%; max-width:340px; overflow:hidden;
  padding:0 20px 20px;
  background:var(--c-surface); border-radius:24px;
  text-align:center; box-shadow:var(--c-shadow);
  animation:ck-pop .42s cubic-bezier(.34,1.56,.64,1) both;
}
/* A band of the shop colour behind the gift, like the top of the pass. */
.celebrate .card::before{
  content:""; display:block; height:72px; margin:0 -20px;
  background:var(--main);
}
.celebrate .big{
  width:76px; height:76px; margin:-38px auto 14px;
  display:grid; place-items:center; border-radius:50%;
  background:var(--c-surface); color:var(--act);
  box-shadow:0 0 0 6px var(--c-surface), 0 8px 20px -6px rgba(23,20,31,.3);
}
.celebrate .big .icon{ width:34px; height:34px; }
.celebrate h3{ margin:0 0 8px; font-size:22px; font-weight:700; letter-spacing:-.015em; text-wrap:balance; }
.celebrate p{ margin:0 0 20px; font-size:15px; line-height:1.5; color:var(--c-muted); }
.celebrate .card .btn.share-btn{ margin-bottom:12px; }
@keyframes ck-fade-in{ from{ opacity:0; } to{ opacity:1; } }

/* ------------------------------------------------------------ offline --- */
/* A stale card that looks live is worse than none: the bar says so first. */
.offline-bar{
  display:flex; align-items:center; gap:12px;
  margin:calc(var(--safe-top, 0px) + 12px) var(--c-pad) 12px; padding:10px 14px;
  border:1px solid color-mix(in srgb, var(--c-warn) 25%, transparent); border-radius:var(--c-r-lg);
  background:var(--c-warn-bg); color:var(--c-warn);
}
.ob-ico{ flex:none; display:grid; place-items:center; }
.ob-ico .icon{ width:22px; height:22px; }
.ob-text{ display:block; min-width:0; }
.ob-text b{ display:block; font-size:14px; }
.ob-text span{ display:block; font-size:13px; line-height:1.4; }
.offline-bar ~ .pass{ filter:saturate(.75); }
.offline-qr{ text-align:center; }
.offline-qr h4{ justify-content:center; }
.oq-ico{ width:48px; height:48px; margin:0 auto 10px; }
.offline-qr .btn{ margin-top:16px; }

/* -------------------------------------------------------------- motion --- */
/* Only for moments the customer caused (a tap, a stamp landing); a poll
   re-render never animates. */
#ck-tabbody.tab-in{ animation:ck-tab-in .2s cubic-bezier(.33,1,.68,1) both; }
@keyframes ck-tab-in{ from{ opacity:0; transform:translate3d(0, 8px, 0); } to{ opacity:1; transform:none; } }

@media (max-width:359px){
  :root{ --c-pad:12px; }
  .stamp-row{ gap:8px 6px; }
  .pass{ padding:14px; }
  .pass-count b{ font-size:30px; }
  .pin-big{ font-size:32px; letter-spacing:.26em; padding-left:.26em; }
  .navlabel{ font-size:10.5px; }
  .how li{ font-size:12px; }
}

@media (prefers-reduced-motion:reduce){
  #ck-tabbody.tab-in, .step.in-right, .step.in-left,
  .stamp-circle.pop, .stamp-circle.next, .qr-plaque.lg,
  .celebrate, .celebrate .card, .toast, .spin-won, .scratch-hint,
  .scratch-wrap.is-done .scratch-face, .sheet, .sheet-bg{ animation:none !important; }
  .btn, .navitem, .scratch-foil, .level-fill, .nr-bar > span, .qr-ring-fill,
  .switch .sw-track, .switch .sw-knob, .wheel{ transition:none !important; }
  .btn:active, .navitem:active{ transform:none; }
}
