
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --brand: #4F46E5; --green: #22C55E; --open: #34C759;
    --ink: #17151F; --muted: #8E8E93; --line: #E5E5EA;
    --col-x: max(14px, calc((100vw - 880px) / 2));   /* side margin of the shared centred column */
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  }
  html, body { height: 100%; }
  body { font-family: var(--font); color: var(--ink); background: #f0f0ee; overflow: hidden; -webkit-font-smoothing: antialiased; }
  button, input { font-family: inherit; }
  a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  #map { position: fixed; inset: 0; }
  .maplibregl-ctrl-attrib { font-size: 10px; }
  .maplibregl-ctrl-bottom-right { bottom: 0; }

  .card { background: #fff; border-radius: 22px; box-shadow: 0 6px 28px rgba(15,15,26,.18); }

  /* top stack: brand, search, filters (full width) */
  .top { position: fixed; z-index: 10; top: max(14px, env(safe-area-inset-top)); left: var(--col-x); right: var(--col-x); display: grid; gap: 10px; pointer-events: none; }
  .top > * { pointer-events: auto; min-width: 0; }
  .srow { display: flex; align-items: center; gap: 10px; }
  .srow .search { flex: 1; min-width: 0; }
  .logo { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); border: 1px solid var(--brand); box-shadow: 0 2px 10px rgba(0,0,0,.08); display: grid; place-items: center; }
  .logo img { width: 26px; height: 26px; }
  .search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 0 16px; height: 46px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
  .search svg { flex: none; width: 17px; height: 17px; color: var(--muted); }
  .search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 15px var(--font); color: var(--ink); }
  .search input::placeholder { color: var(--muted); }

  /* side-scrolling rows (filters, featured carousel) */
  .scroller { position: relative; }
  .row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
  .row::-webkit-scrollbar { display: none; }
  .row.drag { cursor: grabbing; scroll-snap-type: none !important; }
  .chips .row { padding: 2px 2px 6px; }
  .chips.can-l::before, .chips.can-r::after { content: ''; position: absolute; top: 0; bottom: 0; width: 36px; z-index: 2; pointer-events: none; }
  .chips.can-l::before { left: 0; background: linear-gradient(90deg, rgba(240,240,238,.95), rgba(240,240,238,0)); }
  .chips.can-r::after { right: 0; background: linear-gradient(270deg, rgba(240,240,238,.95), rgba(240,240,238,0)); }
  .arr { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.16); font-size: 18px; line-height: 1; color: var(--ink); cursor: pointer; display: none; }
  .arr.l { left: 4px; } .arr.r { right: 4px; }
  .can-l > .arr.l, .can-r > .arr.r { display: block; }
  @media (hover: none) { .arr { display: none !important; } }
  .chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 17px; background: #fff; color: #5B5B66; font: 600 13.5px var(--font); cursor: pointer; box-shadow: 0 1px 5px rgba(0,0,0,.08); white-space: nowrap; user-select: none; }
  .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
  .chip.now[aria-pressed="true"] { background: var(--green); border-color: var(--green); }
  .chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
  .chip.now[aria-pressed="true"] .dot { background: #fff; }

  .note { padding: 10px 14px; font-size: 13.5px; font-weight: 500; line-height: 1.4; color: #3a3a44; display: none; border-radius: 16px; }
  .note b { color: var(--ink); }
  .note a { color: var(--brand); font-weight: 700; text-decoration: none; }

  /* bottom stack: legend, featured carousel, CTA bar (stacked so nothing overlaps) */
  .bottom { position: fixed; z-index: 10; left: var(--col-x); right: var(--col-x); bottom: max(14px, env(safe-area-inset-bottom)); display: grid; gap: 10px; pointer-events: none; }
  .bottom > * { pointer-events: auto; min-width: 0; }
  .legend { justify-self: start; display: flex; gap: 14px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; color: #3a3a44; border-radius: 100px; }
  .legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
  .legend .p { background: var(--brand); } .legend .g { background: #888; }

  .feat .row { scroll-snap-type: x proximity; padding: 2px 2px 6px; }
  .feat.can-l::before, .feat.can-r::after { content: ''; position: absolute; top: 0; bottom: 0; width: 28px; z-index: 2; pointer-events: none; }
  .feat.can-l::before { left: 0; background: linear-gradient(90deg, rgba(240,240,238,.9), rgba(240,240,238,0)); }
  .feat.can-r::after { right: 0; background: linear-gradient(270deg, rgba(240,240,238,.9), rgba(240,240,238,0)); }
  .fcard { flex: none; scroll-snap-align: start; width: 292px; display: flex; gap: 12px; align-items: center; text-align: left; background: #fff; border: 2px solid transparent; border-radius: 20px; padding: 10px 14px 10px 10px; box-shadow: 0 4px 18px rgba(15,15,26,.16); cursor: pointer; color: var(--ink); }
  .fcard.active { border-color: var(--brand); }
  .fcard .ph { flex: none; width: 64px; height: 64px; border-radius: 14px; background: #EEEDFD center / cover no-repeat; display: grid; place-items: center; font-size: 26px; }
  .fcard .tx { min-width: 0; }
  .fcard b { display: block; font-size: 15.5px; letter-spacing: -.01em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fcard .m { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fcard .s { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: #3a3a44; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fcard .s.on { color: #1B6B3A; }
  .fcard .s i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--open); margin-right: 5px; }
  .fcard.more { background: var(--brand); color: #fff; box-shadow: 0 4px 18px rgba(79,70,229,.35); }
  .fcard.more .ph { background: rgba(255,255,255,.18); }
  .fcard.more .m { color: rgba(255,255,255,.82); }
  .fcard.more .s { color: #fff; }

  .bar { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 20px; }
  .bar .txt { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; color: #3a3a44; }
  .bar .txt b { display: block; color: var(--ink); font-size: 15.5px; letter-spacing: -.01em; }
  .btns { display: grid; grid-template-columns: repeat(2, 172px); gap: 8px; flex: none; }
  .sbtn { display: flex; align-items: center; justify-content: flex-start; gap: 9px; width: 100%; background: var(--ink); color: #fff; text-decoration: none; padding: 9px 14px; border-radius: 14px; font-weight: 700; font-size: 14px; white-space: nowrap; }
  .btns.pulse { animation: pulse 1.1s ease-out 1; }
  @keyframes pulse { 0% { transform: scale(1); } 25% { transform: scale(1.05); } 55% { transform: scale(.99); } 100% { transform: scale(1); } }
  .sbtn svg { width: 20px; height: 20px; flex: none; }
  .sbtn small { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; opacity: .7; line-height: 1.1; }
  .sbtn span { line-height: 1.15; display: block; }

  /* venue card: left panel on desktop, bottom sheet on phones */
  .venue { position: fixed; z-index: 12; left: var(--col-x); top: 190px; width: min(420px, calc(100vw - 28px)); overflow-y: auto; padding: 18px 20px 20px; transform: translateY(12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s; }
  .venue.open { transform: none; opacity: 1; pointer-events: auto; }
  .vhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
  .vhead .ph { flex: none; width: 56px; height: 56px; border-radius: 14px; background: center / cover no-repeat; }
  .vhead .nm { flex: 1; min-width: 0; }
  .venue h1, .venue h2 { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
  .meta { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
  .x { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #F2F2F7; color: #5B5B66; font-size: 16px; cursor: pointer; }
  .status { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 2px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
  .status i { width: 8px; height: 8px; border-radius: 50%; background: #C7C7CC; }
  .status.on { color: #1B6B3A; } .status.on i { background: var(--open); }
  .sp { border-top: 1px solid #F0F0F3; margin-top: 12px; padding-top: 12px; }
  .sp-title { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; font-weight: 700; font-size: 16px; }
  .sp-title span { font-weight: 500; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
  .sp-when { font-size: 13px; color: var(--muted); margin: 1px 0 8px; }
  .lock { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #F5F4FF; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; color: #3a3a44; }
  .lock a { color: var(--brand); font-weight: 700; text-decoration: none; white-space: nowrap; }
  .plain-copy { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: #3a3a44; }
  .follow { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--muted); text-align: center; }
  .cta { display: block; text-align: center; margin-top: 16px; background: var(--brand); color: #fff; font: 700 15px var(--font); padding: 13px; border-radius: 16px; text-decoration: none; }

  .crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
  .crumbs a { color: var(--brand); font-weight: 600; text-decoration: none; }
  .sp-title a.cat, .sp-when a.cat { font-weight: 600; font-size: 12.5px; color: var(--brand); text-decoration: none; white-space: nowrap; }
  .near-h { font-size: 15px; margin: 20px 0 8px; }
  .near { list-style: none; display: grid; gap: 8px; }
  .near li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
  .near a, .follow a, .guide .gl a, .guide .links a { color: var(--brand); font-weight: 600; text-decoration: none; }
  .near span { color: var(--muted); font-size: 13px; white-space: nowrap; }
  .guide .links { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; }
  a.chip { text-decoration: none; }

  /* soft prompt after a few pins (desktop) */
  .prompt { position: fixed; z-index: 14; right: var(--col-x); top: 160px; width: 380px; padding: 22px 22px 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s; }
  .prompt.open { transform: none; opacity: 1; pointer-events: auto; }
  .prompt h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 10px; padding-right: 26px; }
  .perks { list-style: none; margin-bottom: 16px; display: grid; gap: 8px; }
  .perks li { font-size: 14px; color: #3a3a44; line-height: 1.4; padding-left: 24px; position: relative; }
  .perks li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
  .prompt .btns { grid-template-columns: repeat(2, 1fr); }
  .prompt .x { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; font-size: 14px; }

  /* guide panel: static text in the page, revealed by the List chip */
  .guide { width: min(460px, calc(100vw - 28px)); transition: opacity .2s, transform .25s, visibility .25s; }
  .guide:not(.open) { visibility: hidden; }
  .guide .gi { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: #3a3a44; }
  .guide h3 { font-size: 15px; letter-spacing: -.01em; margin: 20px 0 8px; }
  .guide .gl { list-style: none; display: grid; gap: 10px; }
  .guide .gl li { font-size: 14px; line-height: 1.5; color: #3a3a44; }
  .guide .gl li b { color: var(--ink); }
  .guide .gl li span { color: var(--muted); font-size: 13px; }
  .guide .gl li p { margin: 1px 0 2px; }
  .guide .lk { background: none; border: 0; padding: 0; color: var(--brand); font: 700 13px var(--font); cursor: pointer; }
  .guide details { border-top: 1px solid #F0F0F3; padding: 10px 0; }
  .guide summary { font-weight: 700; font-size: 14.5px; cursor: pointer; }
  .guide details p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: #3a3a44; }
  .guide .home { display: block; margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); text-decoration: none; }
  .chip.list { font-weight: 700; }
  @media (max-width: 760px) {
    .top { left: 10px; right: 10px; gap: 8px; }
    .bottom { left: 10px; right: 10px; gap: 8px; }
    .bar { padding: 10px 10px 10px 16px; }
    .bar { flex-direction: column; align-items: stretch; gap: 8px; }
    .bar .btns { grid-template-columns: 1fr 1fr; width: 100%; }
    .sbtn { justify-content: center; padding: 8px 10px; }
    .bar .sub2 { display: none; }
    .bar .txt { font-size: 13px; }
    .bar .txt b { font-size: 14.5px; }
    .fcard { width: 262px; }
    .venue { bottom: 150px; max-height: 55vh; left: 10px; right: 10px; top: auto !important; width: auto; border-radius: 24px; padding: 14px 18px 18px; transform: translateY(14px); }
    .venue.open { transform: none; }
    .sheet-open .legend, .sheet-open .feat { display: none; }
    .prompt { display: none; }
  }
