/* My Passport — the phone app view of the Passport (2026-10-27, v3: bottom tab bar, round stamps, dark map, after the second UX review). Night palette from lights.css.
 * 2026-10-30 (phone review): the sticky header really sticks (base.css's overflow-x: hidden on html/body had made body the scroll box), no smooth
 * scrolling, sheets and menu contain their scroll, 44 px targets, an update bar instead of the toast, map view sized to the screen, landscape.
 * 2026-10-30 (direction B, sl-cowork-outputs/passport-ux-redesign-2026-10-30): the stamp card leaves every tab for a Passport page of its own
 * (.pa-pass); the header pill is always there and opens it; a first-launch line (.pa-hero) instead of twelve empty circles; the perk is the row's
 * second line; a full-screen stamp moment (.pa-moment) with share and gallery; the update bar is gone (silent update at the next launch).
 * 2026-10-30 evening, simplified (BRIEF.md section 13): no pill, header camera, chips, photo mode or event cameras; the stamp moment is the perk
 * screen (.pa-moment-perk, readable at the counter) with the first-stamp email ask (.pa-moment-save); perks on the Passport page are buttons. */
:root { --pa-green: #9CD64A; --pa-radius: 14px; }
html { overscroll-behavior: none; -webkit-text-size-adjust: 100%; scroll-behavior: auto; overflow-x: visible; }   /* base.css: smooth + overflow-x hidden; both hurt here (2026-10-30) */
body.pa { overflow-x: visible; }
@supports (overflow-x: clip) { html, body.pa { overflow-x: clip; } }   /* clips like hidden without making body a scroll container, so position: sticky works */
body.pa { background: var(--night); color: var(--night-text); padding: 0; margin: 0; min-height: 100vh; min-height: 100dvh; padding-bottom: calc(5.75rem + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
body.pa a { color: var(--amber); }
body.pa [hidden] { display: none !important; }
body.pa button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.pa-head { display: flex; align-items: center; gap: 0.75rem; box-sizing: border-box; min-height: calc(60px + env(safe-area-inset-top)); padding: calc(0.6rem + env(safe-area-inset-top)) 1rem 0.4rem 1rem; position: sticky; top: 0; z-index: 20; background: var(--night); transition: box-shadow 0.2s; }
body.is-scrolled .pa-head { box-shadow: 0 1px 0 rgba(255,255,255,0.08), 0 6px 16px rgba(0,0,0,0.25); }
.pa-head-date { font-size: 0.8rem; color: var(--night-muted); white-space: nowrap; display: none; }
body.is-passport .pa-head-date { display: inline; }
.pa-brand { display: flex; align-items: center; min-width: 44px; min-height: 44px; margin-left: -0.5rem; padding: 0 0.5rem; }   /* a 44 px target around the 20 px mark (2026-10-30) */
.pa-brand img { height: 34px; width: auto; display: block; }
.pa-site { font-size: 0.8rem; font-weight: 600; color: var(--amber); text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; padding: 0 0.5rem; margin-right: -0.5rem; border-radius: 999px; }   /* 2026-11-07: the website, always in reach (BRIEF.md section 15 decision 9); opens in the browser from the installed app */
.pa-site:active { background: rgba(244,195,107,0.12); }
.pa-more { margin: 1.4rem 0 0.6rem; text-align: center; font-size: 0.92rem; line-height: 1.4; }
.pa-more a { color: var(--amber); display: inline-block; padding: 0.6rem 0.75rem; }
.pa-title { flex: 1; font-family: 'Adriano Etc', 'Courier New', monospace; font-weight: normal; font-size: 1.7rem; color: var(--warm-white); margin: 0; line-height: 1; letter-spacing: 0.01em; }

/* first launch (direction B): one line and the icon until the first stamp */
.pa-hero { display: grid; grid-template-columns: 64px 1fr auto; gap: 0 0.85rem; align-items: center; margin: 0.25rem 1rem 0; padding: 0.9rem 0.5rem 0.9rem 0.9rem; background: var(--night-2); border: 1px solid rgba(244,195,107,0.35); border-radius: var(--pa-radius); }
.pa-hero-icon { width: 64px; height: 64px; border-radius: 14px; display: block; }
.pa-hero-t { font-family: 'Adriano Etc', 'Courier New', monospace; font-size: 1.3rem; line-height: 1.15; color: var(--warm-white); }
.pa-hero-s { font-size: 0.86rem; line-height: 1.35; color: var(--night-muted); margin-top: 0.25rem; }
.pa-hero-x { align-self: start; margin: -0.5rem -0.2rem 0 0; font-size: 1.4rem; }


/* list */
#paMain { padding: 0.6rem 1rem 1rem; }
.pa-note { font-size: 0.9rem; color: var(--night-muted); margin: 0.25rem 0 0.75rem; line-height: 1.5; }
.pa-group { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin: 0.9rem 0 0.3rem; display: flex; justify-content: space-between; align-items: baseline; }
.pa-group small { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--night-muted); font-size: 0.82rem; }
.pa-group .pa-near { font: inherit; font-size: 0.82rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--amber); background: rgba(244,195,107,0.1); border: 1px solid rgba(244,195,107,0.4); border-radius: 999px; padding: 0.4rem 0.8rem; min-height: 40px; cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; }
.pa-list { list-style: none; margin: 0; padding: 0; }
.pa-row { border-top: 1px solid rgba(255,255,255,0.08); }
.pa-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.pa-row-main { display: grid; grid-template-columns: 60px 1fr auto; grid-template-rows: auto auto auto; gap: 0.1rem 0.75rem; align-items: center; width: 100%; text-align: left; background: none; border: 0; font: inherit; color: inherit; padding: 0.7rem 1.4rem 0.7rem 0; cursor: pointer; border-radius: 12px; position: relative; transition: transform 0.12s ease, background 0.12s ease; }
.pa-row button.pa-row-main::after { content: ''; position: absolute; right: 0.35rem; top: 50%; width: 8px; height: 8px; border-right: 2px solid rgba(255,255,255,0.45); border-top: 2px solid rgba(255,255,255,0.45); transform: translateY(-50%) rotate(45deg); }
.pa-row-main:active { transform: scale(0.985); background: rgba(255,255,255,0.04); }
.pa-thumb { grid-row: 1 / span 3; width: 60px; height: 60px; border-radius: 12px; overflow: hidden; position: relative; background: var(--night-2); display: grid; place-items: center; color: rgba(255,255,255,0.25); font-size: 1.4rem; font-style: normal; }
.pa-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.is-stamped .pa-thumb::after { content: ''; position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4v16M5 8l14 8M5 16l14-8' fill='none' stroke='%231B3A52' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 15px no-repeat; border: 2px solid var(--night); }   /* 2026-10-30: drawn, not U+2744 (a box on iOS) */
.is-stamped .pa-thumb img { filter: saturate(1.1); }
.pa-name { font-weight: 600; font-size: 1.05rem; color: var(--warm-white); line-height: 1.25; }
.pa-dist { grid-column: 3; grid-row: 1; font-size: 0.88rem; color: var(--night-muted); white-space: nowrap; }
.pa-meta { grid-column: 2 / span 2; grid-row: 3; font-size: 0.85rem; color: var(--night-muted); line-height: 1.35; }
.pa-meta .open { color: var(--pa-green); font-weight: 600; }
.pa-perk { grid-column: 2 / span 2; grid-row: 2; font-size: 0.94rem; color: var(--warm-white); line-height: 1.35; }
.pa-row.is-stamped .pa-perk { color: var(--night-text); }
.pa-perk b { color: var(--amber); font-weight: 600; }
/* Tonight rows: title, then time and venue underneath (the time used to sit in the nowrap right column and squeezed the title to a word a line) */

/* next-up card: the nearest stop still to find, when location is on */
.pa-next { display: grid; grid-template-columns: 84px 1fr; gap: 0.2rem 0.85rem; align-items: center; margin: 0.5rem 0 0.25rem; padding: 0.75rem; background: linear-gradient(135deg, rgba(244,195,107,0.16), rgba(244,195,107,0.05)); border: 1px solid rgba(244,195,107,0.45); border-radius: var(--pa-radius); cursor: pointer; transition: transform 0.12s ease; }
.pa-next:active { transform: scale(0.985); }
.pa-next .pa-thumb { grid-row: 1 / span 3; width: 84px; height: 84px; border-radius: 14px; }
.pa-next-k { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.pa-next .pa-name { font-size: 1.15rem; }
.pa-next .pa-meta { grid-column: 2; }

/* the Passport page (direction B) */
.pa-pass { padding-bottom: 0.5rem; }
.pp-card { padding: 1rem 0.6rem 0.9rem; background: var(--night-2); border: 1px solid rgba(244,195,107,0.35); border-radius: 18px; }
.pp-stamps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem 0.25rem; }
.pp-stamp { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.pp-slot { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.03); display: grid; place-items: center; color: rgba(230,238,247,0.3); font-size: 1.1rem; font-style: normal; transition: transform 0.25s ease; }
.pp-stamp.is-on .pp-slot { border: 3px solid var(--amber); background: rgba(244,195,107,0.14); color: var(--amber); font-family: 'Adriano Etc', 'Courier New', monospace; font-size: 1.9rem; box-shadow: 0 0 0 4px rgba(244,195,107,0.12); transform: rotate(var(--tilt, -6deg)); }
.pp-stamp.is-on:nth-child(odd) .pp-slot { --tilt: 7deg; } .pp-stamp.is-on:nth-child(3n) .pp-slot { --tilt: -4deg; }
.pp-stamp.just .pp-slot { animation: pa-pop 0.5s cubic-bezier(.2,1.4,.4,1); }
@keyframes pa-pop { 0% { transform: scale(1.8) rotate(-25deg); opacity: 0; } 60% { transform: scale(1.15) rotate(var(--tilt, -6deg)); opacity: 1; } 100% { transform: scale(1) rotate(var(--tilt, -6deg)); } }
.pp-name { font-size: 0.68rem; line-height: 1.2; color: var(--night-muted); max-width: 80px; }
.pp-stamp.is-on .pp-name { color: var(--warm-white); font-weight: 600; }
.pp-bar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; margin: 1rem 0.25rem 0.5rem; }
.pp-seg { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.12); }
.pp-seg.on { background: var(--amber); }
.pp-seg.ten { outline: 1.5px dashed rgba(244,195,107,0.7); outline-offset: 1px; }
.pp-line { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0 0.25rem; font-size: 0.85rem; color: var(--night-muted); }
.pp-line strong { color: var(--warm-white); font-weight: 700; } .pp-line em { font-style: normal; color: var(--amber); font-weight: 700; }
.pp-actions { display: grid; grid-template-columns: 1fr; gap: 0.6rem; margin-top: 0.75rem; }
.pp-actions .pa-btn { flex-direction: row; gap: 0.5rem; border-radius: 14px; font-size: 0.98rem; padding: 0.6rem 0.5rem; }
.pp-rule { font-size: 0.8rem; color: var(--night-muted); text-align: center; margin: 0.5rem 0 0; line-height: 1.4; }
.pp-k { display: flex; justify-content: space-between; align-items: baseline; margin: 1.1rem 0 0.1rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.pp-k small { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--night-muted); font-size: 0.8rem; }
.pp-perks { list-style: none; margin: 0; padding: 0; }
.pp-perks li { border-top: 1px solid rgba(255,255,255,0.08); } .pp-perks li:first-child { border-top: 0; }
.pp-perk { display: grid; grid-template-columns: 40px 1fr auto; gap: 0 0.65rem; align-items: center; width: 100%; min-height: 56px; padding: 0.5rem 0; font: inherit; text-align: left; background: transparent; border: 0; color: inherit; cursor: pointer; }
.pp-perk::after { content: '\203A'; grid-column: 3; grid-row: 1 / span 2; font-size: 1.4rem; color: var(--night-muted); }
.pp-perk b, .pp-perk span { grid-column: 2; }
.pp-perk .pa-thumb { grid-column: 1; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 10px; }
.pp-perk b { font-size: 0.92rem; font-weight: 600; color: var(--warm-white); } .pp-perk span { font-size: 0.85rem; color: var(--night-muted); }
.pp-paper { margin: 0.4rem 0 0; font-size: 0.85rem; color: var(--night-muted); text-align: center; }
.pp-paper .pa-link { padding: 0.5rem 0.3rem; }

/* buttons */
.pa-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; font: inherit; font-weight: 600; font-size: 1.05rem; line-height: 1.2; padding: 0.7rem 1rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; min-height: 50px; transition: transform 0.12s ease; }
.pa-btn small { font-weight: 500; font-size: 0.8rem; opacity: 0.8; }
.pa-btn:active { transform: scale(0.97); }
.pa-btn--amber { background: var(--amber); color: #1F2933; border-color: var(--amber); }
.pa-btn--ghost { background: transparent; color: var(--warm-white); border-color: rgba(255,255,255,0.35); }
.pa-btn[disabled] { opacity: 0.5; cursor: default; }
.pa-link { background: none; border: 0; font: inherit; font-weight: 600; color: var(--amber); text-decoration: underline; cursor: pointer; padding: 0.7rem 0.4rem; display: inline-block; min-height: 44px; box-sizing: border-box; }
.pa-x { background: none; border: 0; color: var(--night-muted); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.5rem; min-width: 44px; min-height: 44px; }

/* bottom tab bar (2026-10-27 v3; direction B 2026-10-30): Stops · Map · Stamp · Passport · More */
.pa-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr 1.25fr 1fr 1fr; align-items: end; padding: 0.35rem 0.25rem calc(0.4rem + env(safe-area-inset-bottom)); background: rgba(27,58,82,0.92); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-top: 1px solid rgba(255,255,255,0.1); }
.pa-tab { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; min-height: 50px; padding: 0.25rem 0; background: none; border: 0; font: inherit; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.01em; color: var(--night-muted); cursor: pointer; border-radius: 10px; transition: color 0.15s, transform 0.12s; }
.pa-tab svg { width: 26px; height: 26px; display: block; }
.pa-flake { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; }
.pa-tab.is-on { color: var(--warm-white); }
.pa-tab:active { transform: scale(0.94); }
.pa-tab--stamp { color: var(--warm-white); margin-top: -1.35rem; }
.pa-stamp-btn { width: 58px; height: 58px; border-radius: 50%; background: var(--amber); color: #1F2933; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,0.45), 0 0 0 4px var(--night); }
.pa-stamp-btn svg { width: 28px; height: 28px; }
.pa-tab--stamp:active .pa-stamp-btn { transform: scale(0.94); }

/* menu */
.pa-menu { position: fixed; inset: 0; z-index: 80; }
.pa-menu-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.5); animation: pa-fade 0.2s ease; touch-action: none; }
.pa-menu-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(84vw, 340px); background: var(--night-2); color: var(--night-text); padding: calc(0.75rem + env(safe-area-inset-top)) 0 calc(1rem + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; box-shadow: -10px 0 30px rgba(0,0,0,0.4); animation: pa-slide-in 0.22s cubic-bezier(.2,.8,.2,1); }
@keyframes pa-slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pa-fade { from { opacity: 0; } to { opacity: 1; } }
.pa-menu-x { position: absolute; top: calc(0.4rem + env(safe-area-inset-top)); right: 0.4rem; }
.pa-menu-brand { padding: 0.5rem 1.25rem 0.75rem; } .pa-menu-brand img { height: 44px; width: auto; }
.pa-menu-k { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); padding: 1rem 1.25rem 0.3rem; }
body.pa a.pa-menu-item { color: var(--warm-white); }
.pa-menu-item { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%; text-align: left; padding: 0.8rem 1.25rem; min-height: 48px; background: none; border: 0; font: inherit; font-size: 1.02rem; color: var(--warm-white); text-decoration: none; cursor: pointer; }
.pa-menu-item:active { background: rgba(255,255,255,0.06); }
.pa-menu-item small { color: var(--night-muted); font-size: 0.82rem; }
.pa-menu-item[disabled] { opacity: 0.5; }
.pa-switch { width: 42px; height: 26px; border-radius: 999px; background: rgba(255,255,255,0.2); position: relative; flex: 0 0 auto; transition: background 0.2s; }
.pa-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.pa-switch.is-on { background: var(--pa-green); } .pa-switch.is-on::after { transform: translateX(16px); }
.pa-menu-foot { padding: 1rem 1.25rem 0; font-size: 0.82rem; color: var(--night-muted); line-height: 1.5; }

/* map */
.pa-map { position: relative; isolation: isolate; z-index: 0; height: 58vh; height: 58dvh; min-height: 240px; border-radius: var(--pa-radius); overflow: hidden; margin: 0.25rem 0 0.75rem; background: #e8ecef; border: 1px solid rgba(255,255,255,0.18); }
.pa-map .leaflet-control-attribution { background: rgba(255,255,255,0.75); color: #555; font-size: 9px; } .pa-map .leaflet-control-attribution a { color: #2D5475; }
.pa-map .leaflet-popup-content-wrapper, .pa-map .leaflet-popup-tip { background: var(--night-2); color: var(--night-text); box-shadow: 0 4px 16px rgba(0,0,0,0.5); }
.pa-map .leaflet-popup-content { margin: 10px 14px; font-size: 0.92rem; line-height: 1.4; }
.pa-pin { width: 34px; height: 34px; border-radius: 50%; background: #4D7DB8; border: 2.5px solid #fff; color: #fff; font-size: 1.2rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.pa-pin.is-stamped { background: var(--amber); color: var(--night); border-color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.pa-pin.is-lit { background: rgba(34,70,95,0.9); border-color: rgba(255,255,255,0.5); color: rgba(255,255,255,0.85); width: 24px; height: 24px; font-size: 0.8rem; box-shadow: 0 2px 6px rgba(0,0,0,0.5); }
.pa-me { width: 16px; height: 16px; border-radius: 50%; background: #3B82F6; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(59,130,246,0.25); }
/* the tapped pin's card floats over the bottom of the map, so it is reachable without scrolling past the map (2026-10-27) */
body.is-map #paMain { position: relative; padding-bottom: 0; } body.pa.is-map { padding-bottom: 0; }   /* the map is sized to the room above the tab bar; no page scroll (2026-10-30) */
.pa-mapcard { display: grid; grid-template-columns: 56px 1fr auto; gap: 0.2rem 0.75rem; align-items: center; padding: 0.7rem 0.8rem; margin: 0; position: absolute; left: 1.6rem; right: 1.6rem; bottom: 1.6rem; z-index: 10; background: var(--night-2); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--pa-radius); box-shadow: 0 8px 24px rgba(0,0,0,0.5); cursor: pointer; animation: pa-up 0.22s ease; }
.pa-mapcard .pa-thumb { grid-row: 1 / span 2; }
.pa-mapcard .pa-dist { grid-column: 3; }

/* sheet */
.pa-sheet { position: fixed; inset: 0; z-index: 58; }   /* above the stamp moment (55), so the gallery form opens over it (2026-10-30) */
.pa-sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.55); animation: pa-fade 0.2s ease; touch-action: none; }
.pa-sheet-card { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90vh; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--night-2); color: var(--night-text); border-radius: 20px 20px 0 0; padding: 0.6rem 1rem calc(1.25rem + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0,0,0,0.4); animation: pa-up 0.26s cubic-bezier(.2,.8,.2,1); }
@keyframes pa-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.pa-sheet-card::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.25); margin: 0 auto 0.7rem; }
.pa-sheet-x { position: absolute; top: 0.35rem; right: 0.5rem; z-index: 2; background: rgba(255,255,255,0.1); border-radius: 50%; color: #fff; min-width: 44px; min-height: 44px; font-size: 1.35rem; padding: 0; }
.sh-photo { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 14px; margin: 1.4rem 0 0.75rem; display: block; background: var(--night); }
.sh-k { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); margin: 0 0 0.25rem; }
.sh-k.ok { color: var(--pa-green); }
.sh-name { font-family: 'Adriano Etc', 'Courier New', monospace; font-weight: normal; font-size: 1.8rem; color: var(--warm-white); margin: 0 0 0.2rem; line-height: 1.1; }
.sh-addr, .sh-short { margin: 0 0 0.4rem; color: var(--night-muted); font-size: 0.98rem; line-height: 1.5; }
.sh-short { color: var(--night-text); }
.sh-perk { background: rgba(244,195,107,0.08); border: 1px solid rgba(244,195,107,0.35); border-radius: 12px; padding: 0.8rem 0.9rem; margin: 0.75rem 0; }
.sh-perk small { display: block; font-size: 0.82rem; color: var(--night-muted); margin-top: 0.3rem; }
.sh-perk .sh-k { margin-bottom: 0.2rem; }
.sh-perk p { margin: 0; font-size: 1.05rem; color: var(--warm-white); line-height: 1.45; }
.sh-hours { font-size: 0.92rem; color: var(--pa-green); font-weight: 600; margin: 0.25rem 0 0.5rem; }
.sh-actions { display: grid; gap: 0.5rem; margin-top: 0.75rem; }
.sh-actions .pa-btn { width: 100%; }
.sh-alt { text-align: center; font-size: 0.92rem; margin: 0.1rem 0 0; }
.sh-links { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-top: 0.4rem; font-size: 0.95rem; }
.sh-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.2rem; }
.sh-form .form-group { margin: 0 0 0.75rem; }
.sh-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--night-muted); margin-bottom: 0.25rem; }
.sh-form input[type=text], .sh-form input[type=email], .sh-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; padding: 0.7rem 0.75rem; border-radius: 10px; border: 1px solid rgba(255,255,255,0.25); background: var(--night); color: var(--warm-white); }
.sh-form .check { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.9rem; color: var(--night-text); }
.sh-form .check input { margin-top: 0.25rem; }
.sh-status { font-size: 0.9rem; margin-top: 0.5rem; color: var(--amber); }

/* the stamp moment (direction B): a full screen over everything but the scanner and the toast */
.pa-moment { position: fixed; inset: 0; z-index: 55; background: var(--night); color: var(--night-text); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; animation: pa-fade 0.25s ease; }
.pa-moment-photo { position: absolute; left: 0; right: 0; top: 0; height: 46vh; height: 46dvh; background: var(--night-2) center / cover no-repeat; }
.pa-moment-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(27,58,82,0.15), rgba(27,58,82,0) 40%, var(--night) 100%); }
.pa-moment-x { position: absolute; top: calc(0.5rem + env(safe-area-inset-top)); right: 0.5rem; z-index: 2; background: rgba(27,58,82,0.7); border-radius: 50%; color: var(--warm-white); font-size: 1.35rem; padding: 0; }
.pa-moment-body { position: relative; min-height: 100vh; min-height: 100dvh; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; padding: 36vh 1.5rem calc(0.75rem + env(safe-area-inset-bottom)); }
.pa-moment-stamp { width: 128px; height: 128px; border-radius: 50%; border: 5px solid var(--amber); background: rgba(27,58,82,0.85); color: var(--amber); display: grid; place-items: center; font-family: 'Adriano Etc', 'Courier New', monospace; font-size: 4rem; box-shadow: 0 0 0 10px rgba(244,195,107,0.18), 0 10px 30px rgba(0,0,0,0.45); transform: rotate(-8deg); animation: pa-land 0.55s cubic-bezier(.2,1.4,.4,1); }
@keyframes pa-land { 0% { transform: scale(2.2) rotate(-30deg); opacity: 0; } 65% { transform: scale(0.96) rotate(-8deg); opacity: 1; } 100% { transform: scale(1) rotate(-8deg); } }
.pa-moment-k { margin-top: 1.2rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.pa-moment-name { font-family: 'Adriano Etc', 'Courier New', monospace; font-weight: normal; font-size: 1.85rem; line-height: 1.1; color: var(--warm-white); margin: 0.3rem 0 0; }
/* the perk screen (2026-10-30 evening): the perk is the biggest thing on it, so the person at the counter can read it */
.pa-moment-perk { width: 100%; box-sizing: border-box; margin: 1rem 0 0; padding: 0.9rem 1rem 1rem; border-radius: 16px; background: rgba(244,195,107,0.12); border: 2px solid var(--amber); }
.pa-moment-perk-k { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.pa-moment-perk strong { display: block; margin-top: 0.3rem; font-family: 'Adriano Etc', 'Courier New', monospace; font-weight: normal; font-size: 1.75rem; line-height: 1.15; color: var(--warm-white); }
.pa-moment-perk small { display: block; margin-top: 0.5rem; font-size: 0.85rem; line-height: 1.4; color: var(--night-text); }
/* the first-stamp email ask */
.pa-moment-save { width: 100%; margin: 1rem 0 0; text-align: left; }
.pa-moment-save label { display: block; font-size: 0.9rem; line-height: 1.4; color: var(--night-text); } .pa-moment-save label b { color: var(--warm-white); }
.pa-moment-saverow { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.pa-moment-saverow input { flex: 1; min-width: 0; box-sizing: border-box; font: inherit; font-size: 1rem; min-height: 48px; padding: 0.6rem 0.75rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.3); background: var(--night-2); color: var(--warm-white); }
.pa-moment-saverow .pa-btn { flex: 0 0 auto; flex-direction: row; min-height: 48px; padding: 0.5rem 1.1rem; border-radius: 12px; font-size: 1rem; }
.pa-moment-save small { display: block; margin-top: 0.45rem; font-size: 0.8rem; line-height: 1.4; color: var(--night-muted); }
.pa-moment .pp-bar { width: 100%; margin: 1.2rem 0 0.4rem; }
.pa-moment-line { margin: 0; font-size: 0.9rem; color: var(--night-muted); } .pa-moment-line strong { color: var(--warm-white); font-weight: 700; }
.pa-moment-actions { width: 100%; display: grid; gap: 0.5rem; margin-top: 1rem; }
.pa-moment-actions .pa-btn { width: 100%; flex-direction: row; gap: 0.6rem; border-radius: 14px; font-size: 1rem; }
.pa-moment-go { background: transparent; color: var(--night-muted); border-color: transparent; min-height: 44px; }
.pa-moment-foot { margin: 0.9rem 0 0; font-size: 0.85rem; line-height: 1.4; color: var(--night-muted); }
/* with the email ask, the photo gives up room so the ask sits near the fold */
.pa-moment.has-ask .pa-moment-photo { height: 34vh; height: 34dvh; } .pa-moment.has-ask .pa-moment-body { padding-top: 24vh; padding-top: 24dvh; }
@media (max-height: 640px) { .pa-moment-photo { height: 38vh; } .pa-moment-body { padding-top: 30vh; } .pa-moment-stamp { width: 96px; height: 96px; font-size: 3rem; } }


/* scanner */
.pa-scan { position: fixed; inset: 0; z-index: 60; background: #000; display: grid; place-items: center; touch-action: none; }
.pa-scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pa-scan-frame { position: relative; width: min(70vw, 300px); aspect-ratio: 1; border: 3px solid var(--amber); border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(0,0,0,0.45); }
.pa-scan-hint { position: absolute; top: calc(1.5rem + env(safe-area-inset-top)); left: 1rem; right: 1rem; text-align: center; color: #fff; font-weight: 600; text-shadow: 0 1px 4px #000; margin: 0; }
.pa-scan-close { position: absolute; bottom: calc(1.5rem + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.5); }

.pa-toast { position: fixed; left: 1rem; right: 1rem; bottom: calc(6rem + env(safe-area-inset-bottom)); z-index: 70; background: var(--warm-white); color: var(--night); padding: 0.85rem 1rem; border-radius: 14px; font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,0.4); line-height: 1.4; animation: pa-up 0.25s ease; }
.pa-toast small { display: block; font-weight: 500; color: #3a4a5a; }

@media (prefers-reduced-motion: reduce) { .pp-stamp.just .pp-slot, .pa-moment-stamp, .pa-moment, .pa-menu-panel, .pa-sheet-card, .pa-toast, .pa-menu-bg, .pa-sheet-bg { animation: none; } }
@media (min-width: 700px) { body.pa { max-width: 560px; margin: 0 auto; } .pa-tabs { left: 50%; transform: translateX(-50%); width: 560px; border-radius: 18px 18px 0 0; } }
.sh-hint { display: block; font-size: 0.82rem; color: var(--night-muted); margin-top: 0.3rem; }
.sh-form input[type=file] { width: 100%; font: inherit; font-size: 0.95rem; color: var(--night-text); padding: 0.5rem 0; }
.sh-form input[type=file]::file-selector-button { font: inherit; font-weight: 600; background: var(--warm-white); color: var(--night); border: 0; border-radius: 999px; padding: 0.5rem 0.9rem; margin-right: 0.6rem; }
.sh-more { margin: 0 0 0.75rem; } .sh-more summary { cursor: pointer; font-size: 0.9rem; color: var(--amber); }
.pa-locate, .pa-village { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.15); background: var(--night-2); color: var(--warm-white); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.45); margin: 10px 10px 0 0 !important; font: inherit; font-size: 0.72rem; font-weight: 700; }
.pa-village { width: auto; padding: 0 0.7rem; }
.pa-locate:active { transform: scale(0.95); }
.pa-map .leaflet-popup-content a { color: var(--amber); font-weight: 600; }

/* iOS coach card (2026-10-27) */
.pa-coach { position: fixed; inset: 0; z-index: 85; }
.pa-coach-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.55); animation: pa-fade 0.2s ease; touch-action: none; }
.pa-coach-card { position: absolute; left: 0.75rem; right: 0.75rem; bottom: calc(3.4rem + env(safe-area-inset-bottom)); background: var(--night-2); border-radius: 20px; padding: 1.25rem 1rem 1rem; text-align: center; box-shadow: 0 16px 48px rgba(0,0,0,0.45); animation: pa-up 0.3s cubic-bezier(.2,.8,.2,1); }
.pa-coach-x { position: absolute; top: 0.3rem; right: 0.3rem; }
.pa-coach-icon { width: 60px; height: 60px; border-radius: 14px; margin: 0 auto 0.6rem; display: block; box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
.pa-coach-card h2 { font-family: 'Adriano Etc', 'Courier New', monospace; font-weight: normal; font-size: 1.45rem; color: var(--warm-white); margin: 0 0 0.75rem; line-height: 1.1; text-wrap: balance; }
.pa-coach-steps { list-style: none; margin: 0 0 1rem; padding: 0; text-align: left; display: grid; gap: 0.6rem; }
.pa-coach-steps li { display: flex; gap: 0.7rem; align-items: center; font-size: 0.98rem; line-height: 1.4; color: var(--night-text); }
.pa-coach-steps b { color: var(--warm-white); }
.pa-coach-n { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--amber); color: var(--night); font-weight: 700; font-size: 0.9rem; display: grid; place-items: center; }
.pa-coach-share { vertical-align: -5px; color: #3B9CFF; background: #fff; border-radius: 6px; padding: 2px; margin: 0 2px; }
.pa-coach-plus { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--night-text); border-radius: 5px; font-size: 1rem; line-height: 1; vertical-align: -4px; margin-left: 2px; }
.pa-coach-card .pa-btn { width: 100%; }
.pa-coach-arrow { position: absolute; left: 50%; bottom: calc(0.6rem + env(safe-area-inset-bottom)); transform: translateX(-50%); color: var(--amber); font-size: 1.6rem; animation: pa-bob 1.1s ease-in-out infinite; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.pa-coach.is-chrome .pa-coach-arrow { left: auto; right: 1.1rem; transform: none; }
/* iOS 26 Safari: the \u2026 button sits at the bottom right (2026-10-30) */
.pa-coach.is-ios26 .pa-coach-arrow { left: auto; right: 1.9rem; transform: none; animation-name: pa-bob-r; }
@keyframes pa-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
.pa-coach.is-chrome .pa-coach-arrow { animation-name: pa-bob-r; } @keyframes pa-bob-r { 0%, 100% { transform: none; } 50% { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .pa-coach-arrow { animation: none; } }

/* short viewports (a phone on its side): the 12-slot grid gives its room to the list and the map */
@media (max-height: 520px) { .pa-hero { display: none; } .pa-map { min-height: 150px; } body.pa { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); } .pp-stamps { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 340px) { .pa-title { font-size: 1.5rem; } }
