/* ==================================================================
   Little Guide Macon: The Living Guide (prototype)
   Editorial, warm, cream paper + Little Guide red. Mobile first.
   Tokens copied from the Little Guide training site style guide.
   ================================================================== */
@font-face { font-family: 'Montserrat'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/montserrat-latin-400-normal.woff2?v=6dc9338') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 400; font-style: italic; font-display: swap; src: url('fonts/montserrat-latin-400-italic.woff2?v=6dc9338') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/montserrat-latin-500-normal.woff2?v=6dc9338') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/montserrat-latin-600-normal.woff2?v=6dc9338') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/montserrat-latin-700-normal.woff2?v=6dc9338') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-style: normal; font-display: swap; src: url('fonts/montserrat-latin-800-normal.woff2?v=6dc9338') format('woff2'); }
@font-face { font-family: 'Caveat'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/caveat-latin-600-normal.woff2?v=6dc9338') format('woff2'); }

:root {
  --red:        #EE3132;
  --red-deep:   #D2232A;
  --red-text:   #C81F25;
  --red-aa:     #C8221F;
  --red-wash:   #FDECEC;
  --slate:      #5C6B6B;
  --slate-wash: #EEF2F2;
  --ink:   #262626;
  --text:  #3A3A3A;
  --muted: #646868;
  --cream: #FBF7F2;
  --sand:  #F4EDE4;
  --sand-2:#EADFD2;
  --line:  rgba(64,64,64,.12);
  --line-2:rgba(64,64,64,.20);
  --white: #FFFFFF;
  --ok:    #2F7D3F;

  --c-eat: #D2232A; --c-experience: #1F6F93; --c-shop: #9A5B00;
  --c-services: #2F7D3F; --c-healthcare: #7B4B94; --c-stay: #4E5D5D;

  --font:  'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: Georgia, 'Iowan Old Style', 'Charter', 'Noto Serif', 'Times New Roman', serif;
  --hand:  'Caveat', 'Segoe Print', cursive;

  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --shadow-1: 0 1px 2px rgba(38,38,38,.06), 0 1px 1px rgba(38,38,38,.04);
  --shadow-2: 0 2px 4px rgba(38,38,38,.05), 0 12px 28px -10px rgba(38,38,38,.22);
  --shadow-3: 0 6px 14px rgba(38,38,38,.08), 0 28px 60px -18px rgba(38,38,38,.35);
  --header-h: 56px;
  --tabbar-h: 64px;
  --pad: 16px;
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .25 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='14' cy='14' r='7' fill='none' stroke='%23ffffff' stroke-opacity='.22' stroke-width='2'/%3E%3Ccircle cx='0' cy='0' r='3' fill='%23ffffff' fill-opacity='.18'/%3E%3Ccircle cx='28' cy='28' r='3' fill='%23ffffff' fill-opacity='.18'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream) var(--paper); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-text); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.015em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shell ---------- */
.app-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  display: flex; align-items: center; gap: 10px; padding: 0 var(--pad);
  background: rgba(251,247,242,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.app-header .back {
  width: 44px; height: 44px; margin-left: -10px; border: 0; background: none; border-radius: 50%;
  display: none; place-items: center; cursor: pointer; color: var(--ink);
}
.app-header.has-back .back { display: grid; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.brand img { height: 30px; width: auto; }
.brand .city { font-family: var(--font); font-weight: 800; letter-spacing: .28em; font-size: 12px; color: var(--slate); padding-top: 6px; }
.header-spacer { flex: 1; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--ink);
}
.icon-btn:hover { background: var(--sand); }

main#view { min-height: calc(100vh - var(--header-h)); padding-bottom: calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); }
.view-enter { animation: viewIn .38s cubic-bezier(.2,.7,.2,1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  box-shadow: 0 -8px 24px -18px rgba(38,38,38,.4);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .02em; min-height: 44px;
}
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--red-deep); }
.tabbar a.lucy-tab .lucy-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--red-deep); color: #fff; display: grid; place-items: center; font-family: var(--hand); font-size: 21px; line-height: 1; padding-bottom: 2px; }
.tabbar a.lucy-tab[aria-current="page"] .lucy-dot { box-shadow: 0 0 0 3px var(--red-wash); }

/* ---------- common ---------- */
.wrap { padding: 0 var(--pad); }
.section { margin-top: 30px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 var(--pad); margin-bottom: 12px; }
.section-head h2 { font-size: 19px; font-weight: 800; }
.section-head a { font-size: 13px; font-weight: 700; color: var(--red-text); text-decoration: none; padding: 10px 0; }
.kicker { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--red-text); }
.hand { font-family: var(--hand); font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--red-deep); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .01em;
  box-shadow: 0 6px 16px -8px rgba(210,35,42,.7); transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #B81D24; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost:hover { background: var(--sand); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line-2); color: var(--ink); font-weight: 600; font-size: 14px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.chip:hover { border-color: var(--red); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px var(--pad) 12px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty .hand { font-size: 30px; color: var(--red-text); display: block; margin-bottom: 6px; }

/* ---------- home ---------- */
.masthead { position: relative; background: var(--red); color: #fff; padding: 26px var(--pad) 30px; overflow: hidden; isolation: isolate; }
.masthead::before { content: ""; position: absolute; inset: 0; background: var(--dots); opacity: .9; z-index: -1; }
.masthead::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 18px; background: var(--cream); border-radius: 18px 18px 0 0; }
.masthead .mast-top { display: flex; align-items: flex-end; gap: 12px; }
.masthead .mast-top img { height: 74px; width: auto; }
.masthead .mast-city { font-weight: 800; letter-spacing: .42em; font-size: 15px; padding-bottom: 4px; }
.masthead .mast-edition { margin-left: auto; text-align: right; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .92; line-height: 1.4; }
.masthead blockquote { margin: 22px 0 0; font-family: var(--hand); font-size: 33px; line-height: 1.02; letter-spacing: .005em; max-width: 15ch; }
.masthead blockquote cite { display: block; margin-top: 10px; font-family: var(--font); font-style: normal; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; opacity: .9; }
.search-box { position: relative; margin: 18px 0 0; z-index: 2; }
.search-box input {
  width: 100%; height: 52px; border-radius: 999px; border: 0; padding: 0 18px 0 48px;
  font: 500 16px var(--font); color: var(--ink); background: #fff; box-shadow: 0 10px 24px -12px rgba(0,0,0,.45);
}
.search-box input::placeholder { color: #7a7d7d; }
.search-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 var(--pad); }
.cat-tile {
  position: relative; aspect-ratio: 1 / .82; border-radius: var(--r); overflow: hidden; text-decoration: none;
  box-shadow: var(--shadow-2); background: var(--ink); isolation: isolate;
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .5s ease; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile .label {
  position: absolute; left: 0; bottom: 12px; background: var(--red); color: #fff; padding: 7px 12px 7px 12px;
  font-weight: 800; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.1;
}
.cat-tile .count { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 9px; }

.plan-card {
  width: 82%; max-width: 330px; border-radius: var(--r-lg); overflow: hidden; background: #fff; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-2); display: flex; flex-direction: column;
}
.plan-card .ph { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.plan-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.plan-card .ph .n { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--red-text); font-weight: 800; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.plan-card .body { padding: 14px 16px 18px; }
.plan-card h3 { font-size: 20px; font-weight: 800; }
.plan-card .k { font-family: var(--hand); font-size: 21px; color: var(--red-text); line-height: 1.1; margin-top: 3px; }

.feat-card { width: 64%; max-width: 250px; text-decoration: none; color: inherit; }
.feat-card .ph { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-2); }
.feat-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.feat-card h3 { font-size: 15.5px; font-weight: 700; margin-top: 10px; }
.feat-card p { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.star-corner { position: absolute; top: 0; left: 0; width: 44px; height: 44px; background: var(--red); clip-path: polygon(0 0, 100% 0, 0 100%); }
.star-corner::after { content: "★"; position: absolute; left: 7px; top: 3px; color: #fff; font-size: 13px; }

.promo {
  margin: 0 var(--pad); border-radius: var(--r-lg); padding: 20px; position: relative; overflow: hidden;
  text-decoration: none; display: block; color: inherit; isolation: isolate;
}
.promo h3 { font-size: 20px; font-weight: 800; }
.promo p { margin: 6px 0 14px; font-size: 14.5px; }
.promo.passport { background: var(--ink); color: #fff; }
.promo.passport h3 { color: #fff; }
.promo.passport .stamps-mini { display: flex; gap: 6px; margin-bottom: 14px; }
.promo.passport .stamps-mini span { width: 28px; height: 28px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.4); }
.promo.passport .stamps-mini span.on { border: 0; background: var(--red); box-shadow: inset 0 0 0 3px rgba(255,255,255,.25); }
.promo.passport::after { content: "LOVE LOCAL"; position: absolute; right: 16px; bottom: 24px; transform: rotate(-14deg); border: 3px solid rgba(238,49,50,.75); color: rgba(238,49,50,.85); font-weight: 800; letter-spacing: .14em; font-size: 13px; padding: 6px 10px; border-radius: 8px; z-index: -1; }
.promo.lucy { background: #fff; box-shadow: var(--shadow-2); display: flex; gap: 14px; align-items: center; }
.lucy-face { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--red-deep); color: #fff; display: grid; place-items: center; font-family: var(--hand); font-size: 36px; line-height: 1; padding-bottom: 4px; box-shadow: 0 0 0 4px var(--red-wash); }
.promo.lucy p { margin: 4px 0 0; color: var(--muted); }
.promo.lucy .go { margin-left: auto; color: var(--red-text); }
.foot-note { text-align: center; color: var(--muted); font-size: 12.5px; padding: 30px var(--pad) 0; }
.foot-note .tag { font-weight: 800; letter-spacing: .14em; color: var(--red-text); display: block; margin-bottom: 4px; }

/* ---------- lists of stories ---------- */
.cat-hero { position: relative; background: var(--red); color: #fff; padding: 26px var(--pad) 34px; overflow: hidden; isolation: isolate; }
.cat-hero::before { content: ""; position: absolute; inset: 0; background: var(--dots); z-index: -1; }
.cat-hero h1 { color: #fff; font-size: 40px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: .95; }
.cat-hero p { margin: 10px 0 0; font-size: 14px; opacity: .95; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px var(--pad); scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.story-list { display: grid; gap: 14px; padding: 4px var(--pad) 0; }
.story-card {
  display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; text-decoration: none; color: inherit;
  background: #fff; border-radius: var(--r); padding: 10px; box-shadow: var(--shadow-1); border: 1px solid var(--line);
}
.story-card .ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.story-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.story-card .meta { padding: 2px 4px 2px 0; min-width: 0; }
.story-card h3 { font-size: 16.5px; font-weight: 800; }
.story-card .cat { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red-text); margin-bottom: 4px; }
.story-card p { margin: 6px 0 0; font-family: var(--serif); font-size: 14px; line-height: 1.45; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-card .why { font-family: var(--serif); font-style: italic; }

/* ---------- story page ---------- */
.story-hero { position: relative; background: var(--ink); }
.story-hero img { width: 100%; aspect-ratio: 1150 / 1075; object-fit: cover; }
.story-hero .star-corner { width: 64px; height: 64px; }
.story-hero .star-corner::after { font-size: 18px; left: 10px; top: 5px; }
.story-head { position: relative; margin: -36px 12px 0; background: #fff; border-radius: var(--r-lg) var(--r-lg) var(--r) var(--r); padding: 20px 18px 16px; box-shadow: var(--shadow-2); }
.story-head h1 { font-size: 29px; font-weight: 800; margin-top: 6px; }
.story-head .featured-line { margin-top: 10px; font-family: var(--hand); font-size: 21px; color: var(--red-text); line-height: 1.1; }
.actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 16px; }
.actions .act {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 64px; padding: 6px 0;
  border: 0; background: none; cursor: pointer; text-decoration: none; color: var(--ink); font-size: 11.5px; font-weight: 700; border-radius: 12px;
}
.actions .act .ring { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--red-wash); color: var(--red-deep); transition: transform .15s ease, background .15s; }
.actions .act:hover .ring { background: #fbd9da; }
.actions .act:active .ring { transform: scale(.92); }
.actions .act.primary .ring { background: var(--red-deep); color: #fff; }
.actions .act[aria-pressed="true"] .ring { background: var(--red-deep); color: #fff; }
.actions .act[aria-disabled="true"] { opacity: .38; pointer-events: none; }
.story-body { padding: 26px 22px 6px; }
.story-body p { font-family: var(--serif); font-size: 18px; line-height: 1.7; color: #2b2b2b; margin: 0 0 1.05em; }
.story-body p:first-child::first-letter { float: left; font-family: var(--font); font-weight: 800; font-size: 58px; line-height: .86; color: var(--red); padding: 6px 8px 0 0; }
.contact-block { margin: 6px 16px 0; background: #fff; border-radius: var(--r); padding: 18px; border: 1px solid var(--line); }
.contact-block .cname { font-weight: 800; color: var(--red-text); font-size: 16px; }
.contact-block .cnote { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 2px; }
.contact-block .loc { margin-top: 8px; font-size: 14.5px; color: var(--ink); }
.contact-block .loc a { color: var(--ink); text-decoration-color: var(--line-2); }
.contact-block .loc a[href^="tel:"] { white-space: nowrap; }
.contact-block .socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.contact-block .socials a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--sand); color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.checkin-cta { margin: 16px 16px 0; border-radius: var(--r); background: var(--ink); color: #fff; padding: 16px; display: flex; align-items: center; gap: 14px; }
.checkin-cta .stamp-ico { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 2.5px dashed rgba(255,255,255,.55); display: grid; place-items: center; color: var(--red); }
.checkin-cta.done .stamp-ico { border: 0; background: var(--red); color: #fff; }
.checkin-cta .t { font-weight: 800; font-size: 15.5px; }
.checkin-cta .s { font-size: 12.5px; opacity: .8; margin-top: 2px; }
.checkin-cta .btn { margin-left: auto; flex: none; }
.folio { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 26px 16px 0; padding-top: 16px; border-top: 1px solid var(--line-2); }
.folio .site { flex-basis: 100%; font-size: 9.5px; font-weight: 800; letter-spacing: .32em; color: var(--red-text); }
.folio .txt { font-size: 12.5px; color: var(--muted); }
.folio .pg { margin-left: auto; font-weight: 800; color: var(--red-text); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 16px 0; }
.tags a { font-size: 12.5px; font-weight: 600; color: var(--slate); background: var(--slate-wash); padding: 0 12px; min-height: 34px; display: inline-flex; align-items: center; border-radius: 999px; text-decoration: none; }

/* ---------- plans ---------- */
.plan-hero { position: relative; color: #fff; isolation: isolate; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px var(--pad) 26px; }
.plan-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.plan-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,0) 20%, rgba(20,20,20,.82) 100%); z-index: -1; }
.plan-hero h1 { color: #fff; font-size: 34px; font-weight: 800; }
.plan-hero .k { font-family: var(--hand); font-size: 25px; color: #fff; }
.plan-intro { padding: 20px 22px 4px; font-family: var(--serif); font-size: 18px; line-height: 1.6; color: #2b2b2b; }
.timeline { list-style: none; margin: 10px 0 0; padding: 0 var(--pad) 0 calc(var(--pad) + 22px); position: relative; }
.timeline::before { content: ""; position: absolute; left: calc(var(--pad) + 7px); top: 18px; bottom: 30px; border-left: 2px dashed var(--red); opacity: .5; }
.timeline li { position: relative; margin: 0 0 14px; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--cream); }
.timeline .when { font-family: var(--hand); font-size: 22px; color: var(--red-text); line-height: 1; margin: 10px 0 6px; }

/* ---------- map ---------- */
.map-wrap { position: relative; }
#map { height: calc(100vh - var(--header-h) - var(--tabbar-h) - 64px); min-height: 380px; background: var(--sand); }
.map-filter { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--pad); scrollbar-width: none; background: var(--cream); border-bottom: 1px solid var(--line); }
.map-filter::-webkit-scrollbar { display: none; }
.map-filter .chip { min-height: 40px; font-size: 13px; padding: 0 12px; gap: 6px; }
.map-filter .chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.35); display: grid; place-items: center; }
.pin span { transform: rotate(45deg); color: #fff; font-size: 11px; font-weight: 800; }
.map-card { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 500; }
.map-card .story-card { box-shadow: var(--shadow-3); }
.map-card .close { position: absolute; top: -14px; right: -6px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 18px; }
.map-note { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 450; background: rgba(255,255,255,.95); border-radius: 12px; padding: 8px 12px; font-size: 12px; color: var(--muted); box-shadow: var(--shadow-1); }
.leaflet-container { font-family: var(--font); }

/* ---------- passport ---------- */
.passport-cover { position: relative; margin: 16px var(--pad) 0; border-radius: var(--r-lg); background: var(--ink); color: #fff; padding: 22px 20px 20px; overflow: hidden; isolation: isolate; }
.passport-cover::before { content: ""; position: absolute; inset: 0; background: var(--dots); opacity: .35; z-index: -1; }
.passport-cover .kicker { color: #ff8a8b; }
.passport-cover h1 { color: #fff; font-size: 27px; font-weight: 800; margin-top: 6px; }
.passport-cover p { margin: 8px 0 0; font-size: 14px; opacity: .88; }
.progress { margin-top: 16px; }
.progress .bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--red); border-radius: 999px; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.progress .lbl { display: flex; justify-content: space-between; margin-top: 8px; font-weight: 800; font-size: 15px; }
.progress .lbl .hand { font-size: 22px; font-weight: 600; color: #ff8a8b; line-height: 1; }
.stamp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px var(--pad) 0; }
.stamp-cell { position: relative; background: #fff; border-radius: var(--r); padding: 10px 10px 12px; text-align: center; border: 1.5px dashed var(--line-2); text-decoration: none; color: inherit; display: block; }
.stamp-cell .ph { position: relative; width: 84px; height: 84px; margin: 4px auto 8px; border-radius: 50%; overflow: hidden; filter: grayscale(1) contrast(.9); opacity: .55; }
.stamp-cell .ph img { width: 100%; height: 100%; object-fit: cover; }
.stamp-cell h3 { font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.stamp-cell .c { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin-top: 3px; }
.stamp-cell.on { border-style: solid; border-color: rgba(238,49,50,.4); }
.stamp-cell.on .ph { filter: none; opacity: 1; }
.stamp-cell .stamp-mark { position: absolute; top: 8px; right: 6px; width: 64px; height: 64px; transform: rotate(-16deg); color: var(--red); opacity: 0; }
.stamp-cell.on .stamp-mark { opacity: .92; }
.stamp-cell.just .stamp-mark { animation: stampIn .55s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes stampIn { 0% { opacity: 0; transform: scale(2.6) rotate(-30deg); } 60% { opacity: 1; transform: scale(.92) rotate(-14deg); } 100% { opacity: .92; transform: scale(1) rotate(-16deg); } }
.entered { margin: 16px var(--pad) 0; border-radius: var(--r-lg); background: var(--red); color: #fff; padding: 22px 20px; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.entered::before { content: ""; position: absolute; inset: 0; background: var(--dots); z-index: -1; }
.entered .hand { font-size: 34px; line-height: 1; }
.entered h2 { color: #fff; font-size: 22px; font-weight: 800; margin-top: 8px; }
.entered small { display: block; margin-top: 10px; font-size: 11.5px; opacity: .92; }
.how { margin: 22px var(--pad) 0; display: grid; gap: 10px; }
.how div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.how b.n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--red-wash); color: var(--red-deep); display: grid; place-items: center; font-size: 13px; }
.demo-reset { display: block; margin: 22px auto 0; background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; min-height: 44px; cursor: pointer; }

/* modal */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(20,20,20,.62); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { width: 100%; max-width: 480px; background: var(--cream); border-radius: 26px 26px 0 0; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); animation: sheetUp .32s cubic-bezier(.2,.8,.2,1) both; max-height: 92vh; overflow-y: auto; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.modal h2 { font-size: 21px; font-weight: 800; text-align: center; }
.modal .sub { text-align: center; color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.viewfinder { position: relative; width: 210px; height: 210px; margin: 20px auto; border-radius: 22px; background: #1d1d1d; display: grid; place-items: center; overflow: hidden; }
.viewfinder .qr-fake { width: 120px; height: 120px; background: #fff; padding: 8px; border-radius: 6px; }
.viewfinder .corner { position: absolute; width: 34px; height: 34px; border: 4px solid #fff; }
.viewfinder .tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.viewfinder .tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.viewfinder .bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.viewfinder .br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.viewfinder .scan { position: absolute; left: 20px; right: 20px; height: 3px; background: var(--red); box-shadow: 0 0 14px 3px rgba(238,49,50,.7); animation: scan 1.8s ease-in-out infinite alternate; }
@keyframes scan { from { top: 24px; } to { top: 182px; } }
.demo-label { display: block; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.big-stamp { width: 190px; height: 190px; margin: 18px auto 6px; color: var(--red); animation: stampIn .6s cubic-bezier(.3,1.6,.5,1) both; }

/* ---------- lucy ---------- */
.lucy-wrap { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h) - var(--tabbar-h) - 28px); }
.lucy-intro { display: flex; gap: 14px; align-items: center; padding: 18px var(--pad) 8px; }
.lucy-intro h1 { font-size: 22px; font-weight: 800; }
.lucy-intro p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.suggest { display: flex; gap: 8px; overflow-x: auto; padding: 14px var(--pad) 6px; scrollbar-width: none; }
.suggest::-webkit-scrollbar { display: none; }
.lucy-foot { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 8px; }

/* ---------- partner report ---------- */
.partner-bar { background: var(--slate); color: #fff; padding: 10px var(--pad); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.partner-bar a { color: #fff; margin-left: auto; letter-spacing: .04em; text-transform: none; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.report-bg { background: var(--sand); padding: 18px 12px 8px; }
.sample-badge {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px;
  background: repeating-linear-gradient(-45deg, #FFF3C4, #FFF3C4 12px, #FFE89A 12px, #FFE89A 24px); border: 2px solid #C99A00;
  color: #4A3A00; font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-align: center;
}
.email { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-2); }
.email-head { background: var(--red); color: #fff; padding: 18px 18px 20px; position: relative; isolation: isolate; }
.email-head::before { content: ""; position: absolute; inset: 0; background: var(--dots); z-index: -1; opacity: .8; }
.email-head img.logo { height: 38px; width: auto; }
.email-head .month { margin-top: 12px; font-weight: 800; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .95; }
.email-head h1 { color: #fff; font-size: 23px; font-weight: 800; margin-top: 4px; }
.email-body { padding: 18px; }
.email-body .hi { font-size: 15px; color: var(--ink); }
.summary { font-family: var(--serif); font-size: 16.5px; line-height: 1.6; color: #2b2b2b; margin: 8px 0 0; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.metric { border-radius: 14px; background: var(--cream); padding: 12px 12px 10px; border: 1px solid var(--line); }
.metric.hero { grid-column: 1 / -1; background: var(--ink); color: #fff; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 6px 14px; }
.metric .v { font-size: 27px; font-weight: 800; color: var(--ink); line-height: 1.05; font-variant-numeric: tabular-nums; }
.metric.hero .v { color: #fff; font-size: 40px; }
.metric .l { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 3px; line-height: 1.3; }
.metric.hero .l { color: rgba(255,255,255,.8); }
.metric .d { font-size: 11.5px; font-weight: 700; color: var(--ok); margin-top: 3px; }
.metric.hero .d { color: #8fe0a0; }
.metric.hero svg { grid-column: 1 / -1; width: 100%; height: 56px; margin-top: 6px; }
.metric.hero .spark-cap { grid-column: 1 / -1; font-size: 11px; color: rgba(255,255,255,.65); display: flex; justify-content: space-between; }
.found h3, .report-sec h3 { font-size: 15px; font-weight: 800; margin: 22px 0 10px; }
.found .row { display: grid; grid-template-columns: 96px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 8px; color: var(--ink); }
.found .row .track { height: 12px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.found .row .track i { display: block; height: 100%; border-radius: 999px; background: var(--red); }
.found .row b { text-align: right; font-variant-numeric: tabular-nums; }
.email-foot { padding: 14px 18px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.email-foot b { color: var(--red-text); letter-spacing: .12em; }

.kit-title { padding: 26px var(--pad) 0; }
.kit-title h2 { font-size: 21px; font-weight: 800; }
.kit-title p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.window { margin: 14px var(--pad) 0; border-radius: var(--r-lg); padding: 26px 18px; position: relative; overflow: hidden;
  background: linear-gradient(115deg, rgba(255,255,255,.10) 0 18%, rgba(255,255,255,0) 18% 40%, rgba(255,255,255,.07) 40% 46%, rgba(255,255,255,0) 46%), linear-gradient(160deg, #2f3a3d, #1b2224 70%);
  display: grid; place-items: center; }
.window::after { content: ""; position: absolute; inset: 10px; border: 6px solid #10171a; border-radius: 16px; pointer-events: none; }
.decal { width: 100%; max-width: 270px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
.share-card { margin: 14px var(--pad) 0; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-2); }
.share-card .ph { position: relative; aspect-ratio: 4/3.2; overflow: hidden; }
.share-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.share-card .ph .ribbon { position: absolute; left: 0; right: 0; top: 0; background: var(--red); color: #fff; padding: 12px 16px 14px; font-family: var(--hand); font-size: 27px; line-height: 1.05; }
.share-card .body { padding: 14px 16px 18px; }
.share-card h3 { font-size: 20px; font-weight: 800; }
.share-card p { font-family: var(--serif); font-size: 14.5px; color: var(--text); margin: 6px 0 12px; line-height: 1.5; }
.share-card .row { display: flex; align-items: center; gap: 10px; }
.share-card .row img { height: 30px; width: auto; }
.share-card .row .t { font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--red-text); }
.kit-actions { display: flex; gap: 10px; padding: 12px var(--pad) 0; flex-wrap: wrap; }
.partner-pick { padding: 16px var(--pad) 0; }
.partner-pick select { width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid var(--line-2); padding: 0 12px; font: 600 15px var(--font); background: #fff; color: var(--ink); }

/* ---------- welcome edition ---------- */
.welcome-banner { background: var(--ink); color: #fff; padding: 22px var(--pad) 26px; position: relative; overflow: hidden; isolation: isolate; }
.welcome-banner::before { content: ""; position: absolute; inset: 0; background: var(--dots); opacity: .3; z-index: -1; }
.welcome-banner .presented { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; }
.welcome-banner .presented .logo-sq { width: 22px; height: 22px; border-radius: 6px; background: #1F6F93; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.welcome-banner h1 { color: #fff; font-size: 34px; font-weight: 800; margin-top: 14px; }
.welcome-banner .hand { font-size: 26px; color: #ff8a8b; display: block; line-height: 1; margin-top: 4px; }
.welcome-banner p { margin: 10px 0 0; font-size: 14px; opacity: .88; }
.welcome-banner .agent { margin-top: 16px; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.08); border-radius: 14px; padding: 10px 12px; }
.welcome-banner .agent .av { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-weight: 800; }
.welcome-banner .agent small { display: block; font-size: 11.5px; opacity: .7; }
.days { list-style: none; padding: 0 var(--pad); margin: 14px 0 0; display: grid; gap: 12px; }
.days .day { font-family: var(--hand); font-size: 24px; color: var(--red-text); line-height: 1; margin-bottom: 6px; }

/* ---------- misc ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 120; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-3); animation: toastIn .25s ease both; max-width: calc(100% - 32px); text-align: center; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- participation tiers ---------- */
.card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 4px; }
.card-top .cat { margin-bottom: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  font-size: 10.5px; font-weight: 800; letter-spacing: .02em; line-height: 1.5;
  background: var(--red-wash); color: var(--red-aa);
}
.badge::before { content: "★"; font-size: 10px; line-height: 1; }
.badge-verified { background: var(--slate-wash); color: var(--slate); }
.badge-verified::before { content: "✓"; }
.badge-pick { background: var(--red-aa); color: #fff; }
.badge-line { margin-top: 8px; }
.badge-line .badge { font-size: 12px; padding: 3px 10px; }

.story-list .community-divider {
  display: flex; align-items: center; gap: 10px; margin: 14px 0 0;
  font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.community-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line-2); }
.listing-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 12px;
}
.row-id { min-width: 0; flex: 1 1 150px; padding: 4px 0; }
.row-name { font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 30px; }
.row-sub { font-size: 12px; color: var(--muted); line-height: 1.3; }
.row-acts { display: flex; flex-wrap: wrap; gap: 0 14px; }
.row-acts a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; color: var(--red-aa); text-decoration: none; white-space: nowrap; }

.biz-card {
  display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start;
  background: #fff; border-radius: var(--r); padding: 10px; box-shadow: var(--shadow-1); border: 1px solid var(--line);
}
.biz-card .ph { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.biz-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.biz-card .meta { min-width: 0; padding: 2px 4px 2px 0; }
.biz-card h3 { font-size: 16.5px; font-weight: 800; }
.biz-card h3 a { color: inherit; text-decoration: none; }
.biz-card .services { margin-top: 8px; }
.biz-card .biz-web { margin-top: 10px; }
.services { display: flex; flex-wrap: wrap; gap: 6px; }
.service-chip { font-size: 12px; font-weight: 600; color: var(--slate); background: var(--slate-wash); border-radius: 999px; padding: 3px 10px; }

.story-card.large { grid-template-columns: 1fr; gap: 12px; padding: 0 0 14px; overflow: hidden; border-color: rgba(200,34,31,.35); box-shadow: var(--shadow-2); }
.story-card.large .ph { aspect-ratio: 16 / 10; border-radius: 0; }
.story-card.large .meta { padding: 0 16px; }
.story-card.large h3 { font-size: 21px; }
.story-card.large p { font-size: 15px; -webkit-line-clamp: 4; }
.card-ribbon { position: absolute; left: 0; bottom: 12px; z-index: 1; background: var(--red-aa); color: #fff; padding: 6px 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.15; max-width: 88%; border-radius: 0 8px 8px 0; }

.presented-stack { display: grid; gap: 8px; padding: 0 var(--pad) 12px; }
.presented-banner { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: var(--r-sm); background: var(--ink); color: #fff; text-decoration: none; min-height: 56px; }
.presented-banner img { flex: none; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.pb-text { min-width: 0; display: flex; flex-direction: column; }
.pb-sub { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.pb-by { font-size: 14.5px; line-height: 1.25; }
.pb-by b { font-weight: 800; }

.apply-cta { display: block; margin: 22px var(--pad) 0; padding: 16px 18px; border-radius: var(--r); border: 1.5px dashed var(--line-2); background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.4; }
.apply-cta:hover { border-color: var(--red); }
.claim-cta { display: flex; align-items: center; justify-content: center; text-align: center; margin: 18px 16px 0; min-height: 52px; padding: 12px 20px; border-radius: 999px; background: var(--red-aa); color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; }
.claim-cta:hover { background: #AE1C1A; }

.story-head.plain { margin-top: 14px; }
.listing-sub { font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.map-mini { height: 180px; margin: 14px 16px 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--sand); z-index: 0; }
.hours { margin-top: 12px; font-size: 14px; color: var(--ink); }
.hours-t { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.gallery-strip { margin-top: 18px; }
.gallery-strip img { height: 180px; width: auto; max-width: 78%; border-radius: var(--r); object-fit: cover; box-shadow: var(--shadow-1); }
.services-block { padding: 18px 16px 0; }
.services-block h2 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.pin.pin-top { background: var(--red-aa); }
.pin.pin-rest { background: var(--slate); }

.splash { margin-top: 18px; }
.splash-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.splash-track::-webkit-scrollbar { display: none; }
.splash-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16 / 10; color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; }
.splash-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.splash-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,0) 35%, rgba(20,20,20,.82) 100%); z-index: -1; }
.splash-meta { position: absolute; left: var(--pad); right: var(--pad); bottom: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.splash-name { font-size: 25px; font-weight: 800; line-height: 1.1; letter-spacing: -.015em; }
.splash-sub { font-size: 13px; font-weight: 600; opacity: .92; }
.splash-ctrl { display: flex; justify-content: center; align-items: center; margin-top: 2px; }
.splash-dot { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.splash-dot i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.splash-dot[aria-current="true"] i { background: var(--red-aa); }
.splash-pause { width: 44px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.splash-pause[aria-pressed="true"] { color: var(--ink); }

@media (min-width: 600px) {
  .story-card.large .ph { aspect-ratio: 16 / 8; }
}

@media (min-width: 600px) {
  :root { --pad: 24px; }
  main#view, .app-header-inner { max-width: 640px; margin: 0 auto; }
  .stamp-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  body { background: var(--sand) var(--paper); }
  main#view { background: var(--cream); box-shadow: 0 0 0 1px var(--line), var(--shadow-2); }
  .tabbar { max-width: 640px; margin: 0 auto; border-radius: 18px 18px 0 0; }
  .app-header { max-width: 640px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.timeline .story-card p, .days .story-card p { -webkit-line-clamp: 5; }
.stop-note { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-soft, inherit); }
.suggested .story-list { padding-bottom: 4px; }

/* ---------- real check-in, proof page, counter card ---------- */
.checkin-result { padding: 40px var(--pad) 24px; text-align: center; }
.ck-working .hand, .ck-fail .hand { font-size: 34px; line-height: 1; display: block; }
.ck-ok h1, .ck-fail h1 { font-size: 24px; font-weight: 800; margin-top: 6px; }
.ck-ok .sub, .ck-fail p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }
.ck-fail .btn { margin: 18px 6px 0; }
.proof-note { margin: 0 12px 14px; padding: 16px; background: #fff; border-radius: 14px; font-size: 14.5px; text-align: center; box-shadow: var(--shadow-2); }
.since-badge { display: flex; align-items: center; justify-content: center; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 2px solid var(--red); color: var(--red-deep); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-align: center; }
.counter-card { display: none; }
@media print {
  @page { size: 4in 6in; margin: 0; }
  body.print-card header, body.print-card .tabbar, body.print-card #view > *:not(#counterSlot), body.print-card #counterSlot > *:not(.counter-card) { display: none !important; }
  body.print-card, body.print-card #view, body.print-card #counterSlot { background: #fff !important; margin: 0; padding: 0; }
  body.print-card .counter-card { display: flex !important; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-sizing: border-box; width: 4in; height: 6in; padding: .35in; gap: .12in; color: #262626; page-break-after: avoid; }
  .counter-card .cc-logo { height: .8in; width: auto; }
  .counter-card h2 { font-size: 24pt; font-weight: 800; line-height: 1.1; margin: 0; }
  .counter-card .cc-name { font-size: 16pt; font-weight: 700; color: #EE3132; }
  .counter-card .cc-qr svg { width: 2.4in; height: 2.4in; }
  .counter-card p { font-size: 10.5pt; margin: 0; }
  .counter-card .cc-tag { font-size: 9pt; font-weight: 800; letter-spacing: .2em; }
}
