/* shopper.css — PrismPass × HONMOKU shopper app.
   NÉANT quiet-luxury: full-bleed photography, white page, black ink, a thin
   high-contrast serif (Bodoni Moda) mixed with a clean sans (Jost), widely
   tracked small caps, square corners, hairline rules, one muted taupe reserved
   for the member bar. Radius 0 everywhere (phone frame + lock OS-chrome aside).
   No gradients, glows, shadows, emoji or accent colours. */

/* ---------- Self-hosted fonts (Latin subset; CJK via system fallback) ------ */
@font-face {
  font-family: "Bodoni Moda";
  src: url(/assets/fonts/bodoni-moda-latin.woff2) format("woff2");
  font-weight: 400 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url(/assets/fonts/jost-latin.woff2) format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}

:root {
  --paper: #FFFFFF;       /* page */
  --paper-2: #F4F3F1;     /* quiet neutral band */
  --ink: #0A0A0A;         /* text / primary */
  --ink-2: #5F5F5F;       /* secondary text (AA on white & paper-2) */
  --ink-3: #767676;       /* muted / inactive (>=3:1 non-text only) */
  --line: #D9D8D6;        /* hairline */
  --line-2: #ECEBE8;      /* faint fill */
  --member: #7E6A4E;      /* taupe — member bar ONLY (white text AA) */
  --member-soft: #A8946F;
  --tap: 44px;
  --serif: "Bodoni Moda", "Noto Serif JP", "Noto Serif CJK JP",
    "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans: "Jost", "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-size: 16px; line-height: 1.5;
}
button { font-family: inherit; }
a { color: var(--ink); }
img, svg { max-width: 100%; }

/* Serif display voice — only at display sizes */
h1, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: .005em; line-height: 1.12; }
h2, h3, h4 { font-family: var(--sans); font-weight: 500; letter-spacing: 0; }

/* Small, widely letter-spaced caps */
.caption, .eyebrow {
  font-family: var(--sans); font-size: 11px; text-transform: uppercase;
  letter-spacing: .22em; font-weight: 500; color: var(--ink-2); line-height: 1.5;
}
:lang(ja) .caption, :lang(ja) .eyebrow { letter-spacing: .08em; text-transform: none; font-size: 12px; }

/* Japanese typographic refinements (JLREQ) */
:lang(ja) { line-break: strict; word-break: auto-phrase; overflow-wrap: anywhere; line-height: 1.8; }
:lang(ja) h1, :lang(ja) .serif, :lang(ja) .etitle { font-feature-settings: "palt" 1; font-weight: 400; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Buttons — square, tracked caps ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 14px 22px; border-radius: 0; border: 1px solid transparent;
  font-family: var(--sans); font-size: 11.5px; font-weight: 500; cursor: pointer;
  text-transform: uppercase; letter-spacing: .22em; background: transparent; color: var(--ink);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
:lang(ja) .btn { letter-spacing: .08em; text-transform: none; font-size: 13.5px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #262626; border-color: #262626; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; min-height: 44px;
  text-decoration: underline; text-underline-offset: 3px; }
.btn-sm { min-height: 40px; padding: 10px 16px; font-size: 11px; letter-spacing: .18em; }
:lang(ja) .btn-sm { letter-spacing: .06em; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; cursor: default; pointer-events: none; }

.link-btn {
  background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px 2px; min-height: 36px;
  font-family: var(--sans); font-weight: 500; font-size: 11px; text-transform: uppercase;
  letter-spacing: .2em; text-decoration: none; border-bottom: 1px solid var(--ink); border-radius: 0; line-height: 1;
}
:lang(ja) .link-btn { letter-spacing: .06em; text-transform: none; font-size: 13px; }
.link-btn:hover { color: var(--ink-2); border-color: var(--ink-2); }
.link-row { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 0;
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  background: transparent; color: var(--ink-2); border: 1px solid var(--line);
}
:lang(ja) .pill { letter-spacing: .05em; text-transform: none; font-size: 11.5px; }
.pill-on { color: var(--ink); border-color: var(--ink); }

/* tracked-caps text tabs */
.texttabs { display: flex; gap: 20px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none;
  border-bottom: 1px solid var(--line); }
.texttabs::-webkit-scrollbar { display: none; }
.texttab { flex: 0 0 auto; border: 0; background: transparent; color: var(--ink-3); cursor: pointer;
  padding: 4px 0 8px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .2em;
  border-bottom: 1px solid transparent; margin-bottom: -1px; border-radius: 0; min-height: 32px; }
:lang(ja) .texttab { letter-spacing: .06em; text-transform: none; font-size: 13px; }
.texttab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* square photo thumbnail */
.thumb { width: 72px; height: 72px; flex: 0 0 auto; object-fit: cover; background: var(--paper-2); display: block; }

/* Section heads */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 32px 0 14px; gap: 12px; }
.section-head h2 { font-size: 11px; margin: 0; font-weight: 500; text-transform: uppercase; letter-spacing: .22em;
  color: var(--ink); font-family: var(--sans); }
:lang(ja) .section-head h2 { letter-spacing: .08em; text-transform: none; font-size: 13px; }
.muted { color: var(--ink-2); }
.small { font-size: 12px; }

.etitle { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.18; letter-spacing: .005em; }
:lang(ja) .etitle { font-weight: 400; }

.footnote { font-size: 12px; color: var(--ink-2); line-height: 1.65; padding: 20px; border-top: 1px solid var(--line); margin-top: 8px; }
.pad { padding: 0 20px; }

/* =========================================================================
   APP SHELL
   ========================================================================= */
.phone { position: relative; background: var(--paper); display: flex; flex-direction: column; overflow: hidden; }

.app-header {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 14px 18px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.hdr-left { display: flex; align-items: center; gap: 12px; }
.hdr-mark { display: block; height: 24px; width: auto; flex: 0 0 auto; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand .wordmark { font-family: var(--sans); font-weight: 500; font-size: 16px; letter-spacing: .34em;
  text-transform: uppercase; color: var(--ink); }
.brand .by { font-family: var(--sans); font-size: 11px; color: var(--ink-2); font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
:lang(ja) .brand .by { letter-spacing: .06em; font-size: 11px; }
.header-right { display: flex; align-items: center; gap: 12px; }
.demo-pill { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-2); border: 1px solid var(--line); padding: 4px 8px; }
:lang(ja) .demo-pill { letter-spacing: .08em; }

.lang-toggle { display: inline-flex; gap: 10px; }
.lang-toggle button { border: 0; background: transparent; padding: 6px 1px; min-height: 32px;
  font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--ink-3); cursor: pointer;
  letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid transparent; border-radius: 0; }
.lang-toggle button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.app-main { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 0 112px; }
.app-main.no-tabbar { padding-bottom: 24px; }
.app-main.full { padding-bottom: 0; }

/* Bottom tab bar */
.tabbar { position: absolute; bottom: 0; left: 0; right: 0; z-index: 25; display: flex;
  background: rgba(255,255,255,.98); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  padding: 0 6px calc(6px + env(safe-area-inset-bottom)); }
.tabbar button { flex: 1; border: 0; background: transparent; cursor: pointer; display: flex;
  flex-direction: column; align-items: center; gap: 5px; padding: 13px 2px 7px; min-height: 56px;
  color: var(--ink-3); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em;
  border-radius: 0; border-top: 1px solid transparent; margin-top: -1px; }
:lang(ja) .tabbar button { letter-spacing: .03em; text-transform: none; font-size: 11px; }
.tabbar button svg { width: 22px; height: 22px; stroke-width: 1.25; }
.tabbar button[aria-current="page"] { color: var(--ink); border-top-color: var(--ink); }

/* =========================================================================
   FULL-BLEED PHOTO HERO (shared)
   ========================================================================= */
.photo-hero { position: relative; width: 100%; display: block; overflow: hidden; background: var(--paper-2); }
.photo-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Fixed, compact hero heights (no vh — same on mobile and in the desktop frame) */
.photo-hero.h-today { height: 240px; }
.photo-hero.h-head { height: 160px; }
.photo-hero.h-strip { height: 72px; }
.hero-cap { background: var(--paper); padding: 20px; }
.hero-cap .eyebrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-cap h2, .hero-cap h3 { margin: 10px 0 10px; font-family: var(--serif); font-weight: 500;
  font-size: 26px; line-height: 1.14; }
:lang(ja) .hero-cap h2, :lang(ja) .hero-cap h3 { font-weight: 400; }
.hero-cap .meta { font-size: 13px; color: var(--ink-2); margin-bottom: 18px; display: flex; gap: 12px; flex-wrap: wrap; }

/* page head (title under a short hero) */
.page-head { padding: 22px 20px 4px; }
.page-head h1 { font-size: 30px; margin: 10px 0 0; }
.page-head.big h1 { font-size: 34px; }
/* compact variant — map, so the floor tabs + plan stay above the fold */
.page-head.compact { padding: 13px 20px 2px; }
.page-head.compact h1 { font-size: 24px; margin: 6px 0 0; }

.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); display: inline-block;
  animation: pulse 1.8s infinite; flex: 0 0 auto; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* =========================================================================
   MEMBER BAR (taupe)
   ========================================================================= */
.member-bar { background: var(--member); color: #fff; padding: 15px 20px; }
.member-bar .mb-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.member-bar .mb-ey { font-size: 11px; text-transform: uppercase; letter-spacing: .2em; font-weight: 500; opacity: .95; }
:lang(ja) .member-bar .mb-ey { letter-spacing: .06em; text-transform: none; font-size: 12px; }
.member-bar .mb-pts { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.member-bar .mb-line { font-size: 12.5px; margin-top: 5px; opacity: .95; }
.member-bar .mb-track { height: 1px; background: rgba(255,255,255,.4); margin: 11px 0 0; position: relative; }
.member-bar .mb-fill { position: absolute; left: 0; top: 0; height: 1px; background: #fff; }
.member-bar a, .member-bar .mb-link { color: #fff; }

/* slim unlock bar (pre-save) */
.unlock-bar { display: flex; align-items: center; gap: 12px; justify-content: space-between;
  background: var(--ink); color: #fff; padding: 11px 20px; }
.unlock-bar span { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; flex: 1; }
:lang(ja) .unlock-bar span { letter-spacing: .04em; text-transform: none; font-size: 12.5px; }
.unlock-bar .btn { min-height: 38px; background: #fff; color: var(--ink); border-color: #fff; white-space: nowrap; }

/* =========================================================================
   LOCK SCREEN
   ========================================================================= */
.lock { position: relative; height: 100%; min-height: 560px; background: #0b0d10; color: #fff; overflow: hidden;
  display: flex; flex-direction: column; }
.lock-bg { position: absolute; inset: 0; z-index: 0; }
.lock-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.52); }
.lock-inner { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%;
  padding: 40px 18px 22px; }
.lock-clock { text-align: center; margin-top: 18px; }
.lock-clock .ldate { font-size: 13px; letter-spacing: .08em; color: rgba(255,255,255,.88); }
:lang(ja) .lock-clock .ldate { letter-spacing: .04em; }
.lock-clock .ltime { font-family: var(--serif); font-weight: 400; font-size: 76px; line-height: 1; margin-top: 4px;
  letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.lock-near { text-align: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.72); margin-top: 10px; }
:lang(ja) .lock-near { letter-spacing: .04em; text-transform: none; font-size: 12px; }
.lock-cards { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
/* OS-chrome notification card — iOS-like radius allowed here only */
.os-card { background: rgba(244,243,241,.86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: 16px; padding: 13px 15px; color: var(--ink); text-align: left; cursor: pointer; border: 0;
  width: 100%; display: block; }
.os-card .oc-head { display: flex; align-items: center; gap: 9px; }
.os-card .oc-app { width: 20px; height: 20px; border-radius: 5px; overflow: hidden; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 12px; flex: 0 0 auto; }
.os-card .oc-app img, .lockbanner .lb-icon img { display: block; width: 100%; height: 100%; }
.os-card .oc-name { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: none; color: var(--ink-2); }
:lang(ja) .os-card .oc-name { letter-spacing: .03em; text-transform: none; font-size: 12px; }
.os-card .oc-time { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.os-card .oc-title { font-size: 14.5px; font-weight: 600; margin-top: 7px; }
.os-card .oc-body { font-size: 13.5px; margin-top: 3px; color: #1c1c1c; }
.os-card .oc-hint { font-size: 11px; color: var(--ink-3); margin-top: 8px; letter-spacing: .08em; text-transform: uppercase; }
:lang(ja) .os-card .oc-hint { letter-spacing: .03em; text-transform: none; font-size: 12px; }
.os-card.wallet .oc-wallet { display: flex; align-items: center; gap: 12px; }
.os-card.wallet .ow-txt { flex: 1; }
.os-card.wallet .ow-title { font-size: 13.5px; font-weight: 600; }
.os-card.wallet .ow-sub { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.os-card.wallet .ow-qr { width: 42px; height: 42px; flex: 0 0 auto; background: #fff; border-radius: 6px; padding: 3px; }
.os-card.wallet .ow-qr svg { display: block; width: 100%; height: 100%; }
.lock-stations { display: flex; gap: 8px; justify-content: center; margin: 14px 0 6px; flex-wrap: wrap; }
.lock-stations button { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: #fff;
  padding: 7px 12px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; border-radius: 0; min-height: 36px; }
:lang(ja) .lock-stations button { letter-spacing: .03em; text-transform: none; font-size: 12px; }
.lock-stations button[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.lock-foot { font-size: 11px; line-height: 1.6; color: rgba(255,255,255,.66); margin-top: 12px; text-align: center; }
:lang(ja) .lock-foot { font-size: 12px; }

/* =========================================================================
   WELCOME
   ========================================================================= */
.welcome { display: flex; flex-direction: column; min-height: 100%; }
/* ≈46% of the phone; headline, CTA and both links stay above the fold */
.welcome .photo-hero { height: 46vh; min-height: 300px; max-height: 400px; flex: 0 0 auto; }
.welcome-sheet { padding: 20px 20px 22px; display: flex; flex-direction: column; }
.welcome-sheet h1 { font-size: 32px; margin: 10px 0 12px; }
.welcome-reassure { color: var(--ink-2); font-size: 14px; margin: 0 0 18px; }
.welcome-sheet .btn-primary { margin-bottom: 16px; }
.welcome-consent { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2); line-height: 1.6; }

/* =========================================================================
   TODAY
   ========================================================================= */
.rain-banner { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 14px 20px; display: flex; gap: 14px; align-items: center; }
.rain-banner .rb-txt { flex: 1; }
.rain-banner .rb-ey { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
:lang(ja) .rain-banner .rb-ey { letter-spacing: .04em; text-transform: none; font-size: 12px; }
.rain-banner .rb-title { font-family: var(--serif); font-size: 17px; margin-top: 4px; }

.soon-row { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); cursor: pointer; }
.soon-row .soon-body { min-width: 0; flex: 1; }
.soon-row .soon-body .eyebrow { margin-bottom: 7px; }
.soon-row .soon-body h4 { margin: 0; }
.soon-row .soon-go { color: var(--ink-3); flex: 0 0 auto; }
.soon-row .soon-go svg { width: 20px; height: 20px; }

/* highlights scroller */
.hl-scroller { display: flex; gap: 14px; overflow-x: auto; padding: 2px 20px 6px; scrollbar-width: none; }
.hl-scroller::-webkit-scrollbar { display: none; }
.hl-tile { flex: 0 0 72%; max-width: 280px; text-align: left; background: transparent; border: 0; padding: 0; cursor: pointer; }
.hl-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); display: block; }
.hl-tile .hl-cap { padding: 12px 0 2px; }
.hl-tile .hl-cap h4 { margin: 8px 0 6px; font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.2; }
.hl-tile .countdown { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  font-variant-numeric: tabular-nums; }
:lang(ja) .hl-tile .countdown { letter-spacing: .04em; text-transform: none; font-size: 12px; }

/* explore hairline rows */
.explore-list { padding: 0 20px; }
.explore-row { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line);
  width: 100%; text-align: left; background: transparent; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; }
.explore-row .er-body { flex: 1; min-width: 0; }
.explore-row .er-title { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.2; }
:lang(ja) .explore-row .er-title { font-weight: 400; }
.explore-row .er-cap { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.explore-row .er-go { color: var(--ink-3); flex: 0 0 auto; }
.explore-row .er-go svg { width: 20px; height: 20px; }

/* generic hairline list row (coupons / directory / nearby) */
.row { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.row.used, .row.expired { opacity: .5; }
.r-main { display: flex; gap: 16px; align-items: center; flex: 1 1 auto; min-width: 0; text-align: left;
  background: transparent; border: 0; padding: 0; cursor: pointer; }
.row .r-body { flex: 1 1 auto; min-width: 0; }
.row .r-body .eyebrow { margin-bottom: 6px; }
.row .r-body h4 { margin: 0 0 7px; }
.row .r-meta { font-size: 11.5px; color: var(--ink-2); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
:lang(ja) .row .r-meta { font-size: 12px; }
.row .r-cta { flex: 0 0 auto; }
.list { padding: 0 20px; }

/* =========================================================================
   EVENTS
   ========================================================================= */
.week-strip { display: flex; gap: 0; padding: 16px 12px 14px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.week-strip::-webkit-scrollbar { display: none; }
.wk-day { flex: 1 0 auto; min-width: 46px; background: transparent; border: 0; cursor: pointer; padding: 8px 4px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink-2); border-radius: 0; }
.wk-day .wd-name { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
:lang(ja) .wk-day .wd-name { letter-spacing: .02em; font-size: 12px; }
.wk-day .wd-num { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.wk-day .wd-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.wk-day .wd-dot.has { background: var(--ink); }
.wk-day[aria-pressed="true"] { color: var(--ink); }
.wk-day[aria-pressed="true"] .wd-num { border-bottom: 1.5px solid var(--ink); }
.wk-day .wd-today { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
:lang(ja) .wk-day .wd-today { letter-spacing: .02em; text-transform: none; font-size: 11px; }

.ev-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid var(--line); }
.ev-time { font-size: 11px; font-weight: 500; color: var(--ink-2); padding-top: 4px; letter-spacing: .1em;
  font-variant-numeric: tabular-nums; }
.ev-body { min-width: 0; }
.ev-body h4 { margin: 0 0 8px; }
/* category + place as plain tracked caps (no chips) */
.ev-body .ev-meta { font-size: 11px; color: var(--ink-2); letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
:lang(ja) .ev-body .ev-meta { letter-spacing: .06em; text-transform: none; font-size: 12px; }
/* now / soon markers — plain text, NOW = black dot + word */
.ev-mark { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 11px;
  font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
:lang(ja) .ev-mark { letter-spacing: .06em; text-transform: none; font-size: 12px; }
.ev-mark.soon { color: var(--ink-2); }
.remind-btn { flex: 0 0 auto; border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  cursor: pointer; border-radius: 0; font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 10px; min-height: 40px; min-width: 40px; }
:lang(ja) .remind-btn { letter-spacing: .03em; text-transform: none; font-size: 11px; }
.remind-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* =========================================================================
   MAP
   ========================================================================= */
.map-search { padding: 14px 20px 0; position: relative; }
.map-search input { width: 100%; font-family: var(--sans); font-size: 14px; padding: 12px 13px 12px 38px;
  border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); min-height: 46px; }
.map-search input:focus { border-color: var(--ink); outline: none; }
.map-search .ms-ic { position: absolute; left: 32px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.map-search .ms-ic svg { width: 17px; height: 17px; }
.search-results { padding: 0 20px; }

.floor-tabs { display: flex; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.floor-tabs::-webkit-scrollbar { display: none; }
.floor-tab { flex: 0 0 auto; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer;
  padding: 9px 13px; border-radius: 0; min-height: 44px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.floor-tab .ft-n { font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.floor-tab .ft-name { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
:lang(ja) .floor-tab .ft-name { letter-spacing: .02em; text-transform: none; font-size: 11px; }
.floor-tab[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.floor-tab[aria-pressed="true"] .ft-name { color: var(--ink-2); }

.floorplan { padding: 16px 14px 6px; }
.floorplan svg { width: 100%; height: auto; display: block; }
.fp-slot { cursor: pointer; }
.fp-slot:focus-visible { outline: none; }
.route-line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 5 6; animation: dash 1.1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }

.map-steps { padding: 0 20px; }
.map-steps-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 8px; }
.map-step { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.map-step .ms-n { font-family: var(--serif); font-size: 16px; color: var(--ink-2); flex: 0 0 24px; }

.store-panel { padding: 0 20px 8px; }
.store-panel .sp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 18px 0 14px; border-top: 1px solid var(--line); }
.store-panel h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 23px; }
.store-panel .sp-sub { font-size: 11px; color: var(--ink-2); letter-spacing: .12em; text-transform: uppercase; margin-top: 5px; }
:lang(ja) .store-panel .sp-sub { letter-spacing: .04em; text-transform: none; font-size: 12px; }
.store-panel .sp-blurb { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin: 0 0 16px; }
.store-panel .sp-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* directory */
.dir-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0;
  border-bottom: 1px solid var(--line); width: 100%; text-align: left; background: transparent; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.dir-row .dr-name { font-size: 15px; }
.dir-row .dr-meta { font-size: 11px; color: var(--ink-2); letter-spacing: .06em; margin-top: 3px; text-transform: uppercase; }
:lang(ja) .dir-row .dr-meta { letter-spacing: .02em; text-transform: none; font-size: 12px; }
.dir-row[aria-current="true"] { background: var(--paper-2); }
.dir-row .dr-right { font-size: 11px; color: var(--ink-3); text-align: right; letter-spacing: .06em; }

/* =========================================================================
   SCAN / STAMP OVERLAYS (full phone)
   ========================================================================= */
.overlay { position: absolute; inset: 0; z-index: 90; background: var(--ink); color: #fff; display: flex;
  flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; animation: fade-in .2s ease; }
.overlay .ov-scan { width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.3); position: relative; margin-bottom: 26px; }
.overlay .ov-scan svg { width: 100%; height: 100%; display: block; opacity: .9; }
.overlay .ov-scanline { position: absolute; left: 6px; right: 6px; height: 2px; background: #fff; top: 6px;
  animation: scanline 1.3s ease-in-out infinite; }
@keyframes scanline { 0%,100% { top: 6px; } 50% { top: calc(100% - 8px); } }
.overlay .ov-label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.8); }
:lang(ja) .overlay .ov-label { letter-spacing: .08em; text-transform: none; font-size: 13px; }
/* stamp success */
.ov-stamp-mark { width: 120px; height: 120px; border-radius: 50%; border: 2px solid #fff; display: flex;
  align-items: center; justify-content: center; margin-bottom: 24px; animation: stamp-pop .45s cubic-bezier(.2,1.4,.5,1); }
.ov-stamp-mark svg { width: 54px; height: 54px; }
@keyframes stamp-pop { 0% { transform: scale(.3); } 100% { transform: scale(1); } }
.overlay .ov-title { font-family: var(--serif); font-size: 30px; margin: 0 0 8px; }
.overlay .ov-sub { font-size: 13px; color: rgba(255,255,255,.82); letter-spacing: .1em; text-transform: uppercase; }
:lang(ja) .overlay .ov-sub { letter-spacing: .04em; text-transform: none; }
.overlay .ov-pts { margin-top: 18px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.35); padding: 8px 14px; }
:lang(ja) .overlay .ov-pts { letter-spacing: .06em; text-transform: none; font-size: 13px; }

/* =========================================================================
   OFFERS / REDEEM
   ========================================================================= */
.offer-detail-photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: var(--paper-2); }
.redeem-meta { font-size: 12px; color: var(--ink-2); }

/* full-screen redeem */
.redeem { position: absolute; inset: 0; z-index: 88; background: var(--paper); display: flex; flex-direction: column;
  overflow-y: auto; animation: sheet-up .3s cubic-bezier(.2,1,.3,1); }
.redeem-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.redeem-top .rt-title { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
:lang(ja) .redeem-top .rt-title { letter-spacing: .06em; text-transform: none; font-size: 12px; }
.redeem-top button { background: transparent; border: 0; cursor: pointer; color: var(--ink); padding: 6px; }
.redeem-top button svg { width: 22px; height: 22px; }
.redeem-body { padding: 22px 20px 10px; text-align: center; }
.redeem-body .rb-ey { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
:lang(ja) .redeem-body .rb-ey { letter-spacing: .05em; text-transform: none; font-size: 12px; }
.redeem-body h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 10px 0 6px; }
.redeem-body .rb-store { font-size: 12px; color: var(--ink-2); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 22px; }
:lang(ja) .redeem-body .rb-store { letter-spacing: .03em; text-transform: none; }
.redeem-qr { width: 190px; height: 190px; margin: 0 auto 18px; border: 1px solid var(--line); padding: 12px; }
.redeem-qr svg { width: 100%; height: 100%; display: block; }
.redeem-clock { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 15px; letter-spacing: .14em;
  color: var(--ink); font-variant-numeric: tabular-nums; }
.redeem-expiry { font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.redeem-foot { padding: 20px; border-top: 1px solid var(--line); }

/* staff confirm */
.staff { background: var(--paper-2); padding: 22px 20px 26px; border-top: 1px solid var(--ink); }
.staff .st-ey { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); text-align: center; }
:lang(ja) .staff .st-ey { letter-spacing: .06em; text-transform: none; font-size: 12px; }
.staff .st-store { text-align: center; font-family: var(--serif); font-size: 19px; margin: 8px 0 18px; }
.hold-btn { position: relative; width: 100%; min-height: 64px; border: 1px solid var(--ink); background: transparent;
  color: var(--ink); cursor: pointer; overflow: hidden; border-radius: 0; font-family: var(--sans);
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; touch-action: none; }
:lang(ja) .hold-btn { letter-spacing: .06em; text-transform: none; font-size: 14px; }
.hold-btn .hb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); z-index: 0; }
.hold-btn .hb-label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  height: 100%; mix-blend-mode: difference; color: #fff; }
.staff .st-hint { font-size: 11px; color: var(--ink-2); text-align: center; margin-top: 12px; }

/* redeemed success */
.redeemed-done { text-align: center; padding: 40px 20px; }
.redeemed-done .rd-mark { width: 92px; height: 92px; border-radius: 50%; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 22px; animation: stamp-pop .45s cubic-bezier(.2,1.4,.5,1); }
.redeemed-done .rd-mark svg { width: 42px; height: 42px; }
.redeemed-done h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0 0 6px; }
.redeemed-done .rd-sub { font-size: 13px; color: var(--ink-2); }
.redeemed-done .rd-pts { margin-top: 18px; display: inline-block; border: 1px solid var(--ink); padding: 9px 16px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
:lang(ja) .redeemed-done .rd-pts { letter-spacing: .05em; text-transform: none; font-size: 13px; }

/* =========================================================================
   CLUB
   ========================================================================= */
.club-pts { padding: 26px 20px 6px; text-align: center; }
.club-pts .cp-num { font-family: var(--serif); font-weight: 500; font-size: 72px; line-height: 1; }
.club-pts .cp-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }
:lang(ja) .club-pts .cp-label { letter-spacing: .06em; text-transform: none; font-size: 12px; }
.tier-ladder { padding: 10px 20px 0; }
.tl-track { position: relative; height: 1px; background: var(--line); margin: 30px 0 8px; }
.tl-fill { position: absolute; left: 0; top: 0; height: 1px; background: var(--ink); }
.tl-marks { display: flex; justify-content: space-between; position: relative; }
.tl-mark { position: relative; text-align: center; flex: 0 0 auto; }
.tl-mark .tlm-dot { width: 9px; height: 9px; border: 1px solid var(--ink); background: var(--paper); margin: -18px auto 8px;
  transform: rotate(45deg); }
.tl-mark.done .tlm-dot { background: var(--ink); }
.tl-mark .tlm-name { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
:lang(ja) .tl-mark .tlm-name { letter-spacing: .04em; text-transform: none; font-size: 12px; }
.tl-mark .tlm-at { font-size: 11px; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.club-nudge { text-align: center; font-size: 13px; color: var(--ink-2); padding: 18px 20px 4px; }

.earn-list, .ledger-list { padding: 0 20px; }
.earn-row, .ledger-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line); }
.earn-row .el-label, .ledger-row .lr-label { font-size: 14px; }
.earn-row .el-pts { font-size: 12px; color: var(--ink-2); letter-spacing: .08em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-row .lr-time { font-size: 11px; color: var(--ink-2); letter-spacing: .08em; min-width: 54px; font-variant-numeric: tabular-nums; }
.ledger-row .lr-body { flex: 1; }
.ledger-row .lr-pts { font-family: var(--serif); font-size: 15px; white-space: nowrap; }
.benefit-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.benefit-row .br-tier { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
:lang(ja) .benefit-row .br-tier { letter-spacing: .05em; text-transform: none; font-size: 12px; }
.benefit-row .br-perk { font-size: 14px; margin-top: 5px; }

/* =========================================================================
   RALLY
   ========================================================================= */
.rally-progress { padding: 20px 20px 6px; text-align: center; }
.rally-progress .rp-num { font-family: var(--serif); font-size: 40px; }
.rally-progress .rp-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
:lang(ja) .rally-progress .rp-label { letter-spacing: .06em; text-transform: none; font-size: 12px; }
/* 2-column stamp grid — big serif numerals, legible floor names, clear states */
.stamp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 20px 6px; }
.stamp-cell { display: flex; flex-direction: row; align-items: center; gap: 14px; text-align: left;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  padding: 16px 15px; min-height: 98px; border-radius: 0; }
.stamp-cell.full { grid-column: 1 / -1; }
.stamp-cell .sc-num { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1; color: var(--ink); flex: 0 0 auto; }
:lang(ja) .stamp-cell .sc-num { font-weight: 400; }
.stamp-cell .sc-info { min-width: 0; flex: 1; }
.stamp-cell .sc-name { font-size: 13px; line-height: 1.25; color: inherit; }
.stamp-cell .sc-cta { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-top: 8px; }
:lang(ja) .stamp-cell .sc-cta { letter-spacing: .05em; text-transform: none; font-size: 12px; }
.stamp-cell.done { background: var(--ink); color: #fff; border-color: var(--ink); cursor: default; }
.stamp-cell.done .sc-num { color: #fff; }
.stamp-cell .sc-ring { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #fff;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  animation: stamp-pop .45s cubic-bezier(.2,1.4,.5,1); }
.stamp-cell .sc-ring svg { width: 16px; height: 16px; }
.stamp-cell .sc-ring-open { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); flex: 0 0 auto; }
.stamp-cell .sc-stamped { font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.85); margin-top: 8px; display: flex; align-items: center; gap: 8px; }
:lang(ja) .stamp-cell .sc-stamped { letter-spacing: .05em; text-transform: none; font-size: 12px; }

.reward-block { margin: 18px 20px 6px; border: 1px solid var(--line); padding: 24px 20px; }
.reward-block.ready { border-color: var(--ink); }
.reward-block .rw-ey { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
:lang(ja) .reward-block .rw-ey { letter-spacing: .05em; text-transform: none; font-size: 12px; }
.reward-block .rw-txt { font-family: var(--serif); font-size: 21px; margin: 10px 0 18px; line-height: 1.3; }
.reward-block .rw-claimed { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink); }
:lang(ja) .reward-block .rw-claimed { letter-spacing: .04em; text-transform: none; font-size: 13px; }
.reward-block .rw-claimed svg { width: 18px; height: 18px; }

/* kids card — 4 stamps (reuses .stamp-cell) */
.kids-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 20px 6px; }
.kids-today { margin: 6px 20px; padding: 14px 16px; border: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.kids-today .kt-time { font-family: var(--serif); font-size: 16px; }
.kids-today .kt-txt { font-size: 13px; }

/* =========================================================================
   SELFIE
   ========================================================================= */
.spot-row { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spot-row .sr-body { flex: 1; min-width: 0; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px 2px 0; }
.gal-item { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--paper-2); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-item .gi-cap { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.94);
  padding: 8px 10px; font-size: 11.5px; color: var(--ink); display: flex; justify-content: space-between; gap: 8px; }
:lang(ja) .gal-item .gi-cap { font-size: 12px; }
.gal-item .gi-by { font-weight: 500; }
/* featured label — solid white, legible (≥11px) */
.gal-item .gi-badge { position: absolute; top: 0; left: 0; right: 0; background: #fff; color: var(--ink);
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; padding: 7px 9px; text-align: center; line-height: 1.3; }
:lang(ja) .gal-item .gi-badge { letter-spacing: .02em; text-transform: none; font-size: 12px; }
.gal-item .gi-review { position: absolute; top: 0; left: 0; right: 0; background: var(--ink); color: #fff;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; padding: 7px 9px; text-align: center; }
:lang(ja) .gal-item .gi-review { letter-spacing: .02em; text-transform: none; font-size: 12px; }

/* photo pick grid in share sheet */
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 16px; }
.pick-grid button { border: 1px solid var(--line); background: transparent; padding: 0; cursor: pointer; aspect-ratio: 1/1; overflow: hidden; }
.pick-grid button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-grid button[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: -2px; }

/* =========================================================================
   FOUNDING / FORMS
   ========================================================================= */
.benefits { padding: 0 20px; }
.benefit { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.benefit .bn-n { font-family: var(--serif); font-size: 20px; color: var(--ink-2); flex: 0 0 26px; }
.benefit .bn-txt { font-size: 14px; line-height: 1.5; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 11px; font-weight: 500; color: var(--ink-2); text-transform: uppercase; letter-spacing: .14em; }
:lang(ja) .field label { text-transform: none; letter-spacing: .04em; font-size: 12px; }
.field input, .field select, .field textarea { font-family: var(--sans); font-size: 15px; padding: 12px 13px;
  border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); min-height: 46px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field textarea { min-height: 76px; resize: vertical; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin: 4px 0 18px; line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; accent-color: #0A0A0A; }
.form-note { font-size: 12px; color: var(--ink-2); margin: 4px 0 16px; line-height: 1.6; }
.founding-done { text-align: center; padding: 40px 20px; }
.founding-done .fd-no { font-family: var(--serif); font-size: 28px; margin: 14px 0 8px; }
.founding-done .fd-ey { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
:lang(ja) .founding-done .fd-ey { letter-spacing: .06em; text-transform: none; }

/* =========================================================================
   PASS
   ========================================================================= */
.pass-card { padding: 0 0 4px; }
/* compact strip; show the model's head & shoulders (head sits near the top) */
.pass-strip { height: 210px; }
.pass-strip img { object-position: 50% 12%; }
.pass-sheet { padding: 20px 20px 4px; }
.pass-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.pass-head .ph-brand { font-size: 14px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; }
.pass-head .ph-tier { font-size: 11px; color: var(--ink-2); letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
:lang(ja) .pass-head .ph-tier { letter-spacing: .04em; text-transform: none; font-size: 12px; }
.pass-head .ph-pts { font-family: var(--serif); font-weight: 500; font-size: 26px; text-align: right; }

.rotator { padding: 18px 0; border-bottom: 1px solid var(--line); }
.rotator .label { display: block; margin-bottom: 6px; }
.rot-slide { min-height: 56px; transition: opacity .25s ease; }
.rot-slide h3 { margin: 6px 0 6px; font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.16; }
.rot-slide .exp { font-size: 12px; color: var(--ink-2); }
.rot-slide.fade-out { opacity: 0; }
.rot-ctl { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 16px; }
.rot-dots { display: flex; gap: 7px; }
.rot-dots button { width: 6px; height: 6px; border-radius: 0; border: 1px solid var(--ink); background: transparent;
  cursor: pointer; padding: 0; min-height: 6px; }
.rot-dots button[aria-current="true"] { background: var(--ink); width: 16px; }
.rot-arrows button { width: 40px; height: 40px; border-radius: 0; border: 1px solid var(--line); background: transparent;
  color: var(--ink); cursor: pointer; font-size: 15px; margin-left: 8px; }
.pass-qr-block { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pass-qr-block .pqr { width: 76px; height: 76px; background: var(--paper); flex: 0 0 auto; }
.pass-qr-block .pqr svg { width: 100%; height: 100%; display: block; }
.pass-qr-block .pqr-txt .eyebrow { margin-bottom: 4px; }
.pass-qr-block .pqr-txt .val { font-size: 13px; font-variant-numeric: tabular-nums; }

/* parking */
.parking { padding: 20px 0; border-bottom: 1px solid var(--line); }
.parking .pk-photo { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--paper-2); margin-bottom: 14px; }
.parking h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; font-size: 20px; }
.parking .pk-sub { font-size: 13px; color: var(--ink-2); margin: 0 0 14px; }
.parking .pk-valid { font-size: 13px; border: 1px solid var(--ink); padding: 12px 14px; margin-bottom: 14px; }
.parking .pk-valid b { font-variant-numeric: tabular-nums; }

/* notifications */
.notif-list { display: flex; flex-direction: column; }
.notif { display: flex; flex-direction: column; padding: 15px 0; border-bottom: 1px solid var(--line); }
.notif .ntitle { font-size: 11px; color: var(--ink-2); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; display: flex; justify-content: space-between; gap: 10px; }
:lang(ja) .notif .ntitle { text-transform: none; letter-spacing: .04em; font-size: 12px; }
.notif .ntime { color: var(--ink-3); letter-spacing: .06em; }
.notif .nbody { font-size: 14px; margin-top: 5px; }
.notif.pushed { padding-left: 12px; border-left: 1px solid var(--ink); }

.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.settings-row .sr-label { font-size: 14px; }
.switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; background: transparent; border: 1px solid var(--line); transition: border-color .2s; }
.switch .thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--ink-3); transition: transform .2s, background .2s; }
.switch input:checked + .track { border-color: var(--ink); }
.switch input:checked + .track + .thumb { transform: translateX(20px); background: var(--ink); }

.demo-tools { padding: 8px 0; }
.demo-tools .dt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.demo-tools .dt-row .dt-label { font-size: 13px; }

/* =========================================================================
   TOASTS + BANNERS (scoped to phone)
   ========================================================================= */
#toast-root { position: absolute; left: 0; right: 0; bottom: 84px; z-index: 60; display: flex; flex-direction: column;
  align-items: center; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 0; font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em; max-width: 92%; text-align: center;
  animation: toast-in .3s ease, toast-out .3s ease 2.4s forwards; }
:lang(ja) .toast { letter-spacing: .04em; text-transform: none; font-size: 13px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

#banner-root { position: absolute; top: 0; left: 0; right: 0; z-index: 70; padding: 8px; pointer-events: none; }
.lockbanner { background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 15px; display: flex; gap: 13px; align-items: flex-start; pointer-events: auto;
  animation: banner-drop .4s cubic-bezier(.2,1,.3,1); }
.lockbanner.hide { animation: banner-up .35s ease forwards; }
@keyframes banner-drop { from { opacity: 0; transform: translateY(-110%); } to { opacity: 1; transform: none; } }
@keyframes banner-up { to { opacity: 0; transform: translateY(-110%); } }
.lockbanner .lb-icon { width: 32px; height: 32px; border-radius: 7px; overflow: hidden; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 500; flex: 0 0 auto; }
.lockbanner .lb-title { font-size: 11px; font-weight: 600; color: var(--ink-2); text-transform: none; letter-spacing: .1em; }
:lang(ja) .lockbanner .lb-title { text-transform: none; letter-spacing: .03em; font-size: 12px; }
.lockbanner .lb-body { font-size: 13.5px; margin-top: 3px; }
.lockbanner .lb-time { font-size: 11px; color: var(--ink-3); margin-left: auto; letter-spacing: .08em; flex: 0 0 auto; }

/* =========================================================================
   BOTTOM SHEET / MODAL
   ========================================================================= */
.sheet-backdrop { position: absolute; inset: 0; z-index: 80; background: rgba(10,10,10,.42); display: flex;
  align-items: flex-end; animation: fade-in .2s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sheet { width: 100%; background: var(--paper); border-radius: 0; padding: 24px 20px 26px; border-top: 1px solid var(--ink);
  animation: sheet-up .32s cubic-bezier(.2,1,.3,1); max-height: 92%; overflow-y: auto; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.sheet h2 { margin: 0 0 12px; font-family: var(--serif); font-weight: 500; font-size: 27px; }
.sheet h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.sheet-bullets { list-style: none; padding: 0; margin: 14px 0 20px; display: flex; flex-direction: column; gap: 14px; }
.sheet-bullets li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.sheet-bullets .bdot { color: var(--ink); flex: 0 0 auto; margin-top: 2px; }
.sheet-bullets .bdot svg { width: 15px; height: 15px; }
.sheet-note { font-size: 12px; color: var(--ink-2); margin-top: 14px; line-height: 1.6; }
.sheet-photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: var(--paper-2); margin: 0 0 16px; }
.sheet .sheet-qr { width: 170px; height: 170px; margin: 6px auto 14px; border: 1px solid var(--line); padding: 12px; }
.sheet .sheet-qr svg { width: 100%; height: 100%; display: block; }
.sheet-actions { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }

/* Wallet badges — official SVGs untouched */
.wallet-badges { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 10px 0 2px; }
.badge-link { display: inline-flex; padding: 0; }
.badge-link img { height: 52px; width: auto; display: block; }

/* =========================================================================
   DESKTOP: phone frame + side panel
   ========================================================================= */
@media (min-width: 900px) {
  .stage { display: flex; align-items: center; justify-content: center; gap: 48px; padding: 24px;
    min-height: 100vh; background: var(--paper-2); }
  /* phone frame height ~ min(844px, viewport - 48px) so it always fits */
  .phone-frame { width: 390px; height: min(844px, calc(100vh - 48px)); flex: 0 0 auto;
    background: #0A0A0A; border-radius: 46px; padding: 11px; }
  .phone { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; }
  .sidepanel { width: 330px; flex: 0 0 auto; align-self: center;
    max-height: min(844px, calc(100vh - 48px)); overflow-y: auto; }
}
@media (max-width: 899px) {
  .stage { min-height: 100vh; }
  /* Fixed-height phone so .app-main is the only scroller and the tab bar +
     full-phone overlays stay pinned to the viewport, not the document. */
  .phone-frame { width: 100%; height: 100vh; height: 100dvh; }
  .phone { height: 100%; min-height: 0; }
  .sidepanel { display: none; }
}

/* Side panel — plain white column, hairlines */
.sidepanel { color: var(--ink); }
.sp-logo { display: block; height: 26px; width: auto; margin: 0 0 16px; }
.pp-word { text-transform: none; letter-spacing: .06em; font-weight: 600; }
.pass-brandrow { display: flex; padding-bottom: 14px; }
.pass-brandrow img { display: block; height: 16px; width: auto; }
.sp-title { font-size: 11px; margin: 0 0 6px; font-weight: 500; text-transform: uppercase; letter-spacing: .22em; font-family: var(--sans); line-height: 1.5; }
.sp-sub { color: var(--ink-2); font-size: 12px; margin: 0 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.sp-journey { list-style: none; padding: 0; margin: 0 0 20px; counter-reset: jx; }
.sp-journey li { margin: 0; }
.sp-journey button { display: flex; gap: 12px; align-items: baseline; width: 100%; text-align: left; background: transparent;
  border: 0; border-bottom: 1px solid var(--line); cursor: pointer; padding: 13px 2px; color: var(--ink); }
.sp-journey button:hover { background: var(--paper-2); }
.sp-journey .jx-n { font-family: var(--serif); font-size: 15px; color: var(--ink-2); flex: 0 0 22px; font-variant-numeric: tabular-nums; }
.sp-journey .jx-txt { font-size: 13.5px; }
.sp-journey button[aria-current="true"] .jx-txt { border-bottom: 1px solid var(--ink); }
.sp-controls { border-top: 1px solid var(--line); padding-top: 18px; }
.sp-ctl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sp-ctl-row .spc-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
:lang(ja) .sp-ctl-row .spc-label { letter-spacing: .04em; text-transform: none; font-size: 12.5px; }
.sp-seg { display: inline-flex; gap: 6px; }
.sp-seg button { border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 7px 10px; min-height: 36px; border-radius: 0; }
:lang(ja) .sp-seg button { letter-spacing: .02em; text-transform: none; font-size: 12px; }
.sp-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sp-open { display: block; margin: 18px 0 0; width: 100%; text-align: left; }
.sp-note { font-size: 11.5px; color: var(--ink-2); line-height: 1.65; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .dot-live { animation: none; }
}
.fp-svg text, .fp-svg line, .fp-svg path:not([data-store]) { pointer-events: none; }
