/* ECHIVO /horeca — groups.css · #groups "live map" (owner toggles groups → people walk in). OWNER: V2.
   Perf: the map is one pre-rendered raster on one 3D-tilted layer; pins are flat (painted once); only walkers,
   pings and the open card animate (WAAPI transform/opacity → compositor). Loops stop off-screen (groups.js). */
/* ============================================================ GROUPS · LIVE MAP */
#groups.lm { --lm-bg: #070b16; --lm-card: #0b0f1c; padding-bottom: clamp(72px, 10vh, 140px); }
#groups .hx-head { margin-bottom: clamp(26px, 4vh, 44px); }
#groups .eyebrow .lm-live { margin-right: 10px; }
#groups .lm-live { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); vertical-align: middle; }
#groups .lm-live::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--mint); opacity: 0; animation: lm-live 2.4s ease-out infinite; }
@keyframes lm-live { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.lp #groups .lm-note .lm-live::after { animation: none; }

/* ---------- group toggles (overlaid on the top of the map: the "fog" band) ---------- */
#groups .lm-bar { position: absolute; z-index: 3; left: 22px; top: 20px; right: calc(min(372px, 100% - 36px) + 46px); }
#groups .lm-bar__q { margin: 0 0 12px 2px; font-size: .72rem; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; color: rgba(243,241,236,.6); }
#groups .lm-chips { display: flex; flex-wrap: wrap; gap: 7px; }
#groups .lm-chip { --c: var(--gold); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 15px 6px 7px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font: 650 .88rem/1 var(--font); color: var(--text-2); background: rgba(14,19,36,.86); border: 1px solid rgba(255,255,255,.11);
  transition: background-color .3s, border-color .3s, color .3s, transform .35s cubic-bezier(.34,1.56,.64,1); -webkit-tap-highlight-color: transparent; }
#groups .lm-chip__ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); transition: background-color .3s, color .3s; }
#groups .lm-chip__ic svg { width: 17px; height: 17px; }
#groups .lm-chip:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); color: #fff; }
#groups .lm-chip:active { transform: scale(.95); }
#groups .lm-chip[aria-pressed="true"] { color: #fff; background: color-mix(in srgb, var(--c) 20%, rgba(10,14,28,.95)); border-color: color-mix(in srgb, var(--c) 70%, transparent); }
#groups .lm-chip[aria-pressed="true"] .lm-chip__ic { background: var(--c); color: #0b1020; }
#groups .lm-chip.is-pop { animation: lm-chip-pop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes lm-chip-pop { 40% { transform: scale(1.08); } }

/* ---------- stage ---------- */
#groups .lm-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
#groups .lm-stage { position: relative; height: clamp(500px, 76vh, 780px); border-radius: 34px; overflow: hidden; isolation: isolate; touch-action: pan-y;
  background: radial-gradient(90% 70% at 50% 75%, #141c36 0%, var(--lm-bg) 70%); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.05); }
@supports (height: 1svh) { #groups .lm-stage { height: clamp(500px, 76svh, 780px); } }
#groups .lm-world { position: absolute; inset: 0; }
#groups .lm-plane { position: absolute; left: -17%; width: 120%; top: 64%; aspect-ratio: 1340 / 1120; transform-origin: 50% 58%;
  transform: translateY(-58%) perspective(1500px) rotateX(46deg) rotateZ(-4deg); }
#groups .lm-plane picture, #groups .lm-plane__img { display: block; width: 100%; height: 100%; }
#groups .lm-plane__img { -webkit-mask-image: radial-gradient(ellipse 64% 62% at 50% 56%, #000 62%, transparent 100%); }
#groups .lm-a { position: absolute; width: 0; height: 0; }
#groups .lm-fog { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--lm-bg) 0%, rgba(7,11,22,.94) 16%, rgba(7,11,22,.45) 30%, transparent 44%),
              radial-gradient(120% 80% at 50% 100%, transparent 55%, rgba(5,7,13,.65) 100%),
              radial-gradient(40% 30% at 50% 66%, rgba(245,200,130,.10), transparent 70%); }
#groups .lm-layer, #groups .lm-pins { position: absolute; inset: 0; pointer-events: none; }

/* walkers (pooled; moved by WAAPI keyframes on transform/opacity only) */
#groups .lm-w { --c: var(--gold); position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 40% 35%, #fff 0 18%, var(--c) 45%); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent), 0 0 14px 2px var(--c); }
#groups .lm-w::before { content: ""; position: absolute; right: 4px; top: 50%; width: 38px; height: 3px; margin-top: -1.5px; border-radius: 3px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 75%, transparent)); }
#groups .lm-w--s { opacity: .9; } #groups .lm-w--s::before { display: none; } /* reduced motion: static dots */
.lp #groups .lm-w { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent), 0 0 8px var(--c); }

/* pins (positioned by JS: --x/--y = projected anchor, --s = depth scale) */
#groups .lm-mon, #groups .lm-pin, #groups .lm-slot { position: absolute; left: 0; top: 0; transform: translate(var(--x, -200px), var(--y, -200px)) scale(calc(var(--s, 1) * var(--lm-k, 1))); transform-origin: 50% 100%; }
#groups .lm-pin, #groups .lm-slot { pointer-events: auto; display: block; width: 48px; height: 56px; margin: -54px 0 0 -24px; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; -webkit-tap-highlight-color: transparent; }
#groups .lm-pin__dot, #groups .lm-slot__dot, #groups .lm-slot__plus { position: absolute; left: 4px; top: 4px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
#groups .lm-pin__dot { background: linear-gradient(160deg, #ffa274, #d9683f); border: 2.5px solid #ffe6d8; box-shadow: 0 8px 18px -4px rgba(0,0,0,.6);
  transition: box-shadow .4s, transform .45s cubic-bezier(.34,1.56,.64,1); }
#groups .lm-pin__dot::after, #groups .lm-slot__dot::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -5px; border: 5px solid transparent; border-top: 6px solid #ffe6d8; border-bottom: 0; }
#groups .lm-pin__dot svg { width: 20px; height: 20px; stroke-width: 2; }
#groups .lm-pin { transition: opacity .45s, filter .45s; }
#groups .lm-pin.is-dim { opacity: .42; filter: saturate(.4); }
#groups .lm-pin.is-lit .lm-pin__dot { box-shadow: 0 0 0 3px var(--c), 0 0 26px 4px color-mix(in srgb, var(--c) 60%, transparent), 0 8px 18px -4px rgba(0,0,0,.6); }
#groups .lm-pin:hover .lm-pin__dot, #groups .lm-pin.is-active .lm-pin__dot { transform: scale(1.12); }
#groups .lm-pin__ring { position: absolute; left: 4px; top: 4px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--rc, var(--gold)); opacity: 0; pointer-events: none; }
#groups .lm-pin__badge { position: absolute; left: 30px; top: -8px; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px;
  font: 800 .72rem/1 var(--font); letter-spacing: .02em; color: #0b1020; background: var(--c, var(--gold)); border: 1.5px solid rgba(255,255,255,.85); white-space: nowrap;
  transform: scale(0); transform-origin: 0 100%; transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
#groups .lm-pin.is-lit .lm-pin__badge { transform: scale(1); }
#groups .lm-pin__badge.is-gift { padding: 0 5px; }
#groups .lm-pin__badge.is-gift::before { content: ""; width: 13px; height: 13px; background: currentColor; -webkit-mask-size: contain; }
#groups .lm-pin__name { position: absolute; left: 50%; bottom: calc(100% + 8px); padding: 7px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  font: 750 .74rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(12,16,30,.92); border: 1px solid rgba(255,255,255,.12);
  opacity: 0; transform: translate(-50%, 6px) scale(.92); transition: opacity .3s, transform .4s cubic-bezier(.2,.8,.2,1); }
#groups [data-edge="l"] .lm-pin__name { left: 0; transform: translate(0, 6px) scale(.92); transform-origin: 0 100%; }
#groups [data-edge="r"] .lm-pin__name { left: auto; right: 0; transform: translate(0, 6px) scale(.92); transform-origin: 100% 100%; }
#groups .lm-pin.is-active .lm-pin__name, #groups .lm-slot.is-placed.is-active .lm-pin__name { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (hover: hover) and (pointer: fine) { #groups .lm-pin:hover .lm-pin__name, #groups .lm-slot.is-placed:hover .lm-pin__name { opacity: 1; transform: translate(-50%, 0) scale(1); } }
#groups [data-edge].is-active .lm-pin__name, #groups [data-edge]:hover .lm-pin__name { transform: none; }

/* monuments: golden photo pins (where the tourists already are) */
#groups .lm-mon { display: block; width: 42px; height: 42px; margin: -50px 0 0 -21px; }
#groups .lm-mon img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(245,200,130,.16), 0 10px 20px -6px rgba(0,0,0,.7); }
#groups .lm-mon::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -4px; border: 4px solid transparent; border-top: 6px solid var(--gold); border-bottom: 0; }
#groups .lm-mon--hero { width: 54px; height: 54px; margin: -64px 0 0 -27px; }
#groups .lm-mon--hero img { width: 54px; height: 54px; }
#groups .lm-mon__t { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; white-space: nowrap;
  font: 700 .7rem/1 var(--font); letter-spacing: .08em; color: var(--gold); background: rgba(12,16,30,.9); border: 1px solid rgba(245,200,130,.3); }
#groups .lm-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
#groups .lm-eq i { width: 2px; height: 10px; border-radius: 1px; background: currentColor; transform-origin: 50% 100%; animation: lm-eq 1.1s ease-in-out infinite; }
#groups .lm-eq i:nth-child(2) { animation-delay: -.35s; } #groups .lm-eq i:nth-child(3) { animation-delay: -.7s; }
@keyframes lm-eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.lp #groups .lm-eq i { animation: none; transform: scaleY(.7); }

/* "your venue here" */
#groups .lm-slot__plus { color: var(--gold); border: 2px dashed rgba(245,200,130,.85); background: rgba(245,200,130,.1); transition: opacity .3s, transform .4s; }
#groups .lm-slot__plus svg { width: 20px; height: 20px; stroke-width: 2.2; }
#groups .lm-slot::before { content: ""; position: absolute; left: 4px; top: 4px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(245,200,130,.7); opacity: 0; }
#groups .lm-slot.is-awake:not(.is-placed)::before { animation: lm-slot 2.6s cubic-bezier(.2,.7,.3,1) infinite; }
@keyframes lm-slot { 0% { transform: scale(.9); opacity: .8; } 60%, 100% { transform: scale(2); opacity: 0; } }
#groups .lm-slot__t { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  font: 750 .74rem/1 var(--font); letter-spacing: .06em; color: #1a1206; background: linear-gradient(180deg, #ffe0a8, var(--gold)); box-shadow: 0 6px 22px -6px rgba(245,200,130,.7);
  transition: opacity .3s, transform .3s; }
#groups .lm-slot:hover .lm-slot__plus { transform: scale(1.08) rotate(90deg); }
#groups .lm-slot__dot { opacity: 0; color: #1a1206; background: linear-gradient(160deg, #ffe3ad, #e9b25f); border: 2.5px solid #fff3d9; box-shadow: 0 0 0 3px rgba(245,200,130,.4), 0 0 30px 6px rgba(245,200,130,.45), 0 8px 18px -4px rgba(0,0,0,.6); }
#groups .lm-slot__dot::after { border-top-color: #fff3d9; }
#groups .lm-slot__dot svg { width: 20px; height: 20px; stroke-width: 2.1; }
#groups .lm-slot.is-placed .lm-slot__plus, #groups .lm-slot.is-placed .lm-slot__t { opacity: 0; transform: scale(.6); pointer-events: none; }
#groups .lm-slot.is-placed .lm-slot__dot { opacity: 1; }
#groups .lm-slot .lm-pin__name { color: var(--gold); border-color: rgba(245,200,130,.35); }
#groups .lm-plus { position: absolute; left: 0; top: 0; margin: -78px 0 0 -16px; width: 32px; text-align: center; font: 800 .85rem/1 var(--font); color: var(--c, var(--gold)); opacity: 0; pointer-events: none; }
#groups .lm-spark { position: absolute; left: 0; top: 0; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--gold); opacity: 0; pointer-events: none; }

/* overlays */
#groups .lm-note { position: absolute; left: 18px; bottom: 16px; z-index: 3; margin: 0; display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 999px;
  font: 700 .66rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: rgba(243,241,236,.62); background: rgba(7,11,22,.72); border: 1px solid rgba(255,255,255,.07); pointer-events: none; }
#groups .lm-hint { position: absolute; left: 18px; bottom: 58px; z-index: 3; margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  font: 700 .78rem/1 var(--font); color: #fff; background: rgba(12,16,30,.85); border: 1px solid rgba(255,255,255,.12); pointer-events: none;
  transition: opacity .5s, transform .5s; }
#groups .lm-hint svg { width: 16px; height: 16px; color: var(--gold); }
@media (min-width: 1024px) { #groups .lm-hint { display: none; } }
#groups .lm-stage.is-used .lm-hint { opacity: 0; transform: translateY(8px); }

/* ---------- offer card (app style: Taste → venue detail) ---------- */
#groups .lm-cards { position: absolute; z-index: 4; right: 18px; top: 18px; bottom: 18px; width: min(372px, calc(100% - 36px)); display: flex; align-items: center; pointer-events: none; }
#groups .lm-card { position: relative; width: 100%; max-height: 100%; display: flex; flex-direction: column; overflow: hidden; pointer-events: auto; border-radius: 28px;
  background: var(--lm-card); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 80px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.4); outline: none; }
#groups .lm-card[hidden] { display: none; }
#groups .lm-card:focus-visible { box-shadow: 0 0 0 2px var(--gold), 0 30px 80px -20px rgba(0,0,0,.85); }
#groups .lm-card__top { position: relative; flex: none; height: 116px; }
#groups .lm-card__top img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85) brightness(.8); }
#groups .lm-card__top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,28,.15), rgba(11,15,28,.2) 50%, var(--lm-card)); }
#groups .lm-card__x { position: absolute; z-index: 1; left: 12px; top: 12px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(10,12,20,.62); color: #fff; cursor: pointer; }
#groups .lm-card__x svg { width: 17px; height: 17px; stroke-width: 2.2; }
#groups .lm-card__ex { position: absolute; z-index: 1; right: 12px; top: 14px; padding: 6px 10px; border-radius: 999px; font: 700 .62rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); background: rgba(10,12,20,.62); border: 1px dashed rgba(255,255,255,.3); }
#groups .lm-card__partner { position: absolute; z-index: 1; left: 16px; bottom: -12px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px 8px 10px; border-radius: 999px;
  font: 750 .66rem/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: #1a1206; background: linear-gradient(100deg, #f8d9a2, #f5c882 55%, #e9b46a); box-shadow: 0 6px 24px -4px rgba(245,200,130,.55); }
#groups .lm-card__body { padding: 26px 20px 20px; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
#groups .lm-card__body::-webkit-scrollbar { display: none; }
#groups .lm-card__kind { margin: 0 0 8px; font: 750 .7rem/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta); }
#groups .lm-card__name { margin: 0; font-size: clamp(1.45rem, 2.1vw, 1.75rem); line-height: 1.02; letter-spacing: .01em; }
#groups .lm-card__tag { margin: 8px 0 0; font-size: .92rem; line-height: 1.35; color: var(--text-2); }
#groups .lm-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 12px 0 0; font-size: .82rem; color: var(--text-2); }
#groups .lm-eur { letter-spacing: .02em; color: rgba(255,255,255,.28); font-weight: 700; }
#groups .lm-eur b { color: #fff; }
#groups .lm-walk { display: inline-flex; align-items: center; gap: 4px; }
#groups .lm-walk::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask-size: contain; }
#groups .lm-open { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); font-weight: 650; }
#groups .lm-open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
#groups .lm-card__h { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; font: 750 .68rem/1 var(--font); letter-spacing: .22em; text-transform: uppercase; color: var(--text-2); }
#groups .lm-card__h::before { content: ""; width: 20px; height: 1px; background: currentColor; opacity: .6; }
#groups .lm-offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#groups .lm-offer { --c: var(--mint); position: relative; display: grid; grid-template-columns: 1fr 62px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, #10182b), #0d1424 70%); border: 1px solid color-mix(in srgb, var(--c) 26%, transparent);
  transition: opacity .35s, border-color .35s, box-shadow .35s; }
#groups .lm-offer[hidden] { display: none; }
#groups .lm-offer__main { padding: 12px 12px 12px 14px; min-width: 0; }
#groups .lm-gpill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; max-width: 100%;
  font: 750 .62rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 38%, transparent); }
#groups .lm-gpill::before { content: ""; flex: none; width: 12px; height: 12px; background: currentColor; -webkit-mask-size: contain; }
#groups .lm-offer b { display: block; margin: 8px 0 3px; font-size: .95rem; line-height: 1.22; color: #fff; }
#groups .lm-offer small { display: block; font-size: .74rem; line-height: 1.3; color: rgba(243,241,236,.55); }
#groups .lm-offer__stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-left: 1.5px dashed rgba(255,255,255,.16); color: var(--c); }
#groups .lm-offer__stub::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask-size: contain; }
#groups .lm-offer__stub::after { content: ""; position: absolute; left: -8px; top: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--lm-card); }
#groups .lm-offer__stub small { font: 750 .56rem/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: rgba(243,241,236,.7); }
#groups .lm-card.has-sel .lm-offer:not(.is-match) { opacity: .5; }
#groups .lm-offer.is-match { border-color: color-mix(in srgb, var(--c) 75%, transparent); box-shadow: 0 10px 30px -14px var(--c), inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
#groups .lm-card--you .lm-card__kind { color: var(--gold); }
#groups .lm-none { margin: 2px 0 0; padding: 14px; border-radius: 16px; border: 1px dashed rgba(255,255,255,.16); font-size: .86rem; color: var(--text-2); }
#groups .lm-card--you.has-sel .lm-none { display: none; }
#groups .lm-cta { width: 100%; justify-content: center; margin-top: 14px; }
#groups .lm-cta svg { width: 18px; height: 18px; }

/* ---------- tablet + phone: one swipeable chip row, card = bottom sheet ---------- */
@media (max-width: 1023px) { /* V8-D2: was 1100; ≥1024 is the full-bleed desktop scene */
  #groups .lm-bar { left: 0; right: 0; top: 14px; }
  #groups .lm-bar__q { margin: 0 0 10px 18px; }
  #groups .lm-chips { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding: 0 16px; padding: 0 16px 4px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); }
  #groups .lm-chips::-webkit-scrollbar { display: none; }
  #groups .lm-chip { scroll-snap-align: start; }
  #groups .lm-plane { top: 70%; }
  #groups .lm-cards { left: 8px; right: 8px; bottom: 8px; top: 48%; width: auto; max-width: 480px; margin: 0 auto; align-items: flex-end; }
  #groups .lm-card { border-radius: 24px; }
  #groups .lm-card__top { height: 58px; }
  #groups .lm-card__x { top: 9px; left: 10px; width: 40px; height: 40px; }
  #groups .lm-card__ex { top: 13px; }
  #groups .lm-card__partner { left: 60px; bottom: auto; top: 13px; padding: 7px 11px 7px 9px; font-size: .6rem; }
  #groups .lm-card__body { padding: 12px 16px 16px; }
  #groups .lm-card__name { font-size: 1.3rem; }
  #groups .lm-card__tag { font-size: .86rem; margin-top: 5px; }
  #groups .lm-card__meta { margin-top: 8px; }
  #groups .lm-card__h { margin: 12px 0 8px; }
}
/* ---------- phone ---------- */
@media (max-width: 760px) {
  #groups .lm-chips { gap: 6px; }
  #groups .lm-chip { padding: 5px 13px 5px 6px; gap: 7px; font-size: .84rem; }
  #groups .lm-hint { left: 12px; bottom: 50px; }
  #groups .lm-chip__ic { width: 28px; height: 28px; }
  #groups .lm-wrap { padding: 0 10px; }
  #groups .lm-stage { height: clamp(470px, 66vh, 580px); border-radius: 28px; }
  @supports (height: 1svh) { #groups .lm-stage { height: clamp(470px, 66svh, 580px); } }
  #groups .lm-plane { left: -56%; width: 216%; top: 59%; transform: translateY(-58%) perspective(1100px) rotateX(36deg) rotateZ(-4deg); }
  #groups .lm-pin__dot, #groups .lm-slot__dot, #groups .lm-slot__plus, #groups .lm-pin__ring, #groups .lm-slot::before { width: 36px; height: 36px; left: 6px; top: 6px; }
  #groups .lm-pin__dot svg, #groups .lm-slot__dot svg { width: 18px; height: 18px; }
  #groups .lm-mon, #groups .lm-mon img { width: 34px; height: 34px; } #groups .lm-mon { margin: -42px 0 0 -17px; }
  #groups .lm-mon--hero, #groups .lm-mon--hero img { width: 44px; height: 44px; } #groups .lm-mon--hero { margin: -53px 0 0 -22px; }
  #groups .lm-note { left: 12px; bottom: 12px; font-size: .58rem; letter-spacing: .1em; }
  #groups .lm-offer { grid-template-columns: 1fr 54px; }
  #groups .lm-offer__main { padding: 10px 10px 10px 12px; }
  #groups .lm-offer b { font-size: .9rem; margin-top: 6px; }
}

/* reduced motion: final state, no loops */
.reduced-motion #groups .lm-live::after, .reduced-motion #groups .lm-eq i, .reduced-motion #groups .lm-slot::before { animation: none !important; }
.reduced-motion #groups .lm-chip, .reduced-motion #groups .lm-pin, .reduced-motion #groups .lm-pin__dot, .reduced-motion #groups .lm-pin__badge, .reduced-motion #groups .lm-offer { transition: none; }
.no-js #groups .lm-pins, .no-js #groups .lm-hint { display: none; }
.no-js #groups .lm-card[data-card="v1"] { display: flex; }

/* icon masks (data-URI SVG, no extra DOM) */
#groups .lm-offer[data-g="everyone"] .lm-gpill::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8z'/%3E%3Cpath d='M19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8z'/%3E%3C/svg%3E"); }
#groups .lm-offer[data-g="students"] .lm-gpill::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5z'/%3E%3Cpath d='M6 11v5c0 1.5 3 3 6 3s6-1.5 6-3v-5M22 9v5'/%3E%3C/svg%3E"); }
#groups .lm-offer[data-g="association_members"] .lm-gpill::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9' r='2.3'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6M15 14.5c3 0 6 1.8 6 5'/%3E%3C/svg%3E"); }
#groups .lm-offer[data-g="police"] .lm-gpill::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.3-7 10-4-1.7-7-5.5-7-10V6z'/%3E%3Cpath d='M12 8.5l1 2.1 2.3.3-1.7 1.6.4 2.3-2-1.1-2 1.1.4-2.3-1.7-1.6 2.3-.3z'/%3E%3C/svg%3E"); }
#groups .lm-offer[data-g="medical_staff"] .lm-gpill::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E"); }
#groups .lm-offer[data-g="teachers"] .lm-gpill::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5.5C5.5 4.5 8.5 4.5 12 6.5c3.5-2 6.5-2 9-1v13c-2.5-1-5.5-1-9 1-3.5-2-6.5-2-9-1z'/%3E%3Cpath d='M12 6.5v13'/%3E%3C/svg%3E"); }
#groups .lm-offer[data-g="military"] .lm-gpill::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3h8l-1.5 5h-5z'/%3E%3Ccircle cx='12' cy='15' r='5.5'/%3E%3Cpath d='M12 12.2l.9 1.8 2 .3-1.4 1.4.3 2-1.8-.9-1.8.9.3-2-1.4-1.4 2-.3z'/%3E%3C/svg%3E"); }
#groups .lm-offer[data-g="seniors"] .lm-gpill::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6.5' cy='14' r='3.5'/%3E%3Ccircle cx='17.5' cy='14' r='3.5'/%3E%3Cpath d='M10 14c.6-.8 1.3-1.2 2-1.2s1.4.4 2 1.2M3 14l1-6.5C4.3 6 5 5.5 6 5.5M21 14l-1-6.5c-.3-1.5-1-2-2-2'/%3E%3C/svg%3E"); }
#groups .lm-offer[data-g="families"] .lm-gpill::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 9.5V20h14V9.5'/%3E%3Ccircle cx='12' cy='12.5' r='1.6'/%3E%3Cpath d='M9 20v-2.5c0-1.6 1.3-2.8 3-2.8s3 1.2 3 2.8V20'/%3E%3C/svg%3E"); }
#groups .lm-offer__stub::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='9' width='16' height='11' rx='2'/%3E%3Cpath d='M3 9h18v-.5A1.5 1.5 0 0 0 19.5 7h-15A1.5 1.5 0 0 0 3 8.5zM12 7v13M12 7c-1.5-3-5.5-3.5-5.5-1S10 7 12 7zM12 7c1.5-3 5.5-3.5 5.5-1S14 7 12 7z'/%3E%3C/svg%3E"); }
#groups .lm-pin__badge.is-gift::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='9' width='16' height='11' rx='2'/%3E%3Cpath d='M3 9h18v-.5A1.5 1.5 0 0 0 19.5 7h-15A1.5 1.5 0 0 0 3 8.5zM12 7v13M12 7c-1.5-3-5.5-3.5-5.5-1S10 7 12 7zM12 7c1.5-3 5.5-3.5 5.5-1S14 7 12 7z'/%3E%3C/svg%3E"); }
#groups .lm-card__meta .lm-walk::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13.5' cy='4.5' r='1.9'/%3E%3Cpath d='M12.5 7.5L11 13.5 9 21M11 13.5l2.5 2.7.5 4.8M12.3 8.5L9.2 10.4 8 13M12.3 8.5l2.3 2.8 2.4.9'/%3E%3C/svg%3E"); }
#groups .lm-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* V5 (tap targets): far pins are scaled by depth (--s < 1), so the visible button shrinks to ~42px on phones.
   An invisible hit area, inverse-scaled, keeps the effective target >= 48x48 CSS px at any depth. */
#groups .lm-pin::before, #groups .lm-slot::before { content: ""; position: absolute; left: 50%; top: 50%; width: calc(48px / var(--s, 1)); height: calc(56px / var(--s, 1)); transform: translate(-50%, -50%); }

/* ============================================================ V8 (D2) · DESKTOP ≥ 1024: full-bleed cinematic scene
   The header and the map share one grid cell: the map is the whole viewport, the title sits over its dark top-left,
   the chips are a docked glass panel in the left column, the offer card is docked on the right. Phone/tablet unchanged.
   Plain CSS on purpose (works without the pin: reduced motion / lp desktops get the same full-bleed scene). */
@media (min-width: 1024px) {
  /* D4 (layout audit): --lm-gut = the page grid's left edge (same as .container: gutter, or centred --hx-max), so the title,
     chip dock and card dock line up with hero/about/how instead of sitting at x65 vs x120 (1920) / x72 vs x282 (2560).
     % resolves against the full-bleed section / stage width at each use site. */
  #groups.lm { --lm-side: clamp(330px, 25vw, 460px); --lm-gut: max(var(--gutter), (100% - var(--hx-max)) / 2); display: grid; grid-template-columns: minmax(0, 1fr); padding: 0; overflow: clip; }
  #groups.lm > .container, #groups.lm > .lm-wrap { grid-area: 1 / 1; }
  #groups.lm > .container { z-index: 5; max-width: none; margin: 0; padding: clamp(96px, 13vh, 150px) var(--lm-gut) 0; pointer-events: none; align-self: start; }
  #groups .hx-head { max-width: min(820px, 44vw); margin: 0; text-align: left; }
  #groups .hx-head .hx-lead { margin-left: 0; max-width: 34ch; }
  #groups .hx-head h2 { font-size: clamp(3rem, 5.4vw, 6.6rem); line-height: .94; }
  #groups .lm-wrap { max-width: none; margin: 0; padding: 0; }
  #groups .lm-stage { height: 100vh; height: 100svh; min-height: 640px; max-height: 1400px; border-radius: 0; border: 0; box-shadow: none;
    background: radial-gradient(80% 70% at 58% 66%, #16203d 0%, var(--lm-bg) 72%); }
  /* soft hand-off to the sections above/below (no hard box edge) */
  #groups .lm-stage::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, var(--night, #05070d) 0, transparent 14%, transparent 84%, var(--night, #05070d) 100%); }
  /* camera: the plane spans the viewport; anchors/pins follow it (groups.js measures on resize) */
  #groups .lm-plane { left: 6%; width: 100%; top: 55%; transform: translateY(-58%) perspective(1700px) rotateX(48deg) rotateZ(-4deg); }
  #groups .lm-plane__img { -webkit-mask-image: radial-gradient(ellipse 66% 60% at 50% 56%, #000 60%, transparent 100%); }
  #groups .lm-fog { background:
      linear-gradient(90deg, rgba(7,11,22,.92) 0%, rgba(7,11,22,.55) 26%, transparent 46%),
      linear-gradient(180deg, var(--lm-bg) 0%, rgba(7,11,22,.7) 18%, transparent 40%),
      radial-gradient(120% 90% at 50% 100%, transparent 55%, rgba(5,7,13,.7) 100%),
      radial-gradient(36% 30% at 56% 64%, rgba(245,200,130,.12), transparent 70%); }
  /* docked chip panel: left column under the title, grows upward from the bottom */
  #groups .lm-bar { left: var(--lm-gut); right: auto; width: min(560px, 38vw); top: auto; bottom: clamp(64px, 9vh, 110px);
    padding: 14px 16px 16px; border-radius: 26px; background: rgba(9,13,26,.62); border: 1px solid rgba(255,255,255,.09);
    -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06); }
  #groups .lm-bar__q { margin: 0 0 12px 4px; }
  #groups .lm-chips { gap: 8px; }
  #groups .lm-note { left: calc(var(--lm-gut) + 2px); bottom: clamp(18px, 3vh, 34px); }
  #groups .lm-cards { right: var(--lm-gut); top: clamp(92px, 12vh, 130px); bottom: clamp(56px, 8vh, 96px); width: var(--lm-side); align-items: center; }
  #groups .lm-card__top { height: clamp(116px, 15vh, 170px); }
  #groups .lm-card__body { padding: 28px 22px 22px; }
  #groups .lm-mon--hero .lm-mon__t { font-size: .76rem; }
}
@media (min-width: 1024px) and (max-height: 760px) {
  #groups .hx-head .hx-lead { display: none; }
  #groups .lm-bar { padding: 10px 12px 12px; }
  #groups .lm-bar__q { display: none; }
}
@media (min-width: 1024px) and (max-width: 1399px) {
  #groups .lm-chip { font-size: .84rem; padding: 5px 13px 5px 6px; gap: 7px; }
  #groups .lm-chip__ic { width: 28px; height: 28px; }
  #groups .lm-plane { left: 10%; }
}
@media (min-width: 1600px) {
  #groups.lm { --lm-k: 1.18; }
  #groups .lm-chip { min-height: 48px; font-size: .95rem; padding: 7px 18px 7px 8px; }
  #groups .lm-chip__ic { width: 34px; height: 34px; }
}
@media (min-width: 2200px) {
  #groups.lm { --lm-k: 1.4; }
  #groups .lm-bar { width: min(760px, 34vw); }
  #groups .lm-chip { font-size: 1.08rem; min-height: 54px; padding: 8px 20px 8px 9px; }
  #groups .lm-chip__ic { width: 38px; height: 38px; } #groups .lm-chip__ic svg { width: 20px; height: 20px; }
  #groups .lm-bar__q, #groups .lm-note { font-size: .82rem; }
}
.lp #groups .lm-bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(9,13,26,.9); }

/* ============================================================ V9-A4 · "who benefits": both sides of the deal
   .lm-gain = the two-sided ledger (they get the perk / you get the guests). Phone/tablet: static row under the stage.
   Desktop ≥ 1024: docked inside the chip panel (moved there by groups.js). .lm-card__gain = the venue's side on each card.
   Static paint only: the dots swap on toggle, one tiny WAAPI pulse on the "you" cell (throttled, off on lowPower). */
#groups .lm-gain { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 8px; max-width: 720px; margin: 12px auto 0; }
#groups .lm-gain__c { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 12px 12px 12px 10px; border-radius: 18px; background: rgba(14,19,36,.86); border: 1px solid rgba(255,255,255,.09); }
#groups .lm-gain__c--you { background: linear-gradient(135deg, rgba(245,200,130,.13), rgba(14,19,36,.9) 70%); border-color: rgba(245,200,130,.3); }
#groups .lm-gain__ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--mint); background: rgba(94,230,181,.13); }
#groups .lm-gain__c--you .lm-gain__ic { color: #1a1206; background: var(--gold); }
#groups .lm-gain__ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#groups .lm-gain p { margin: 0; min-width: 0; }
#groups .lm-gain small { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: 1px 0 5px; font: 750 .62rem/1.1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: rgba(243,241,236,.6); }
#groups .lm-gain__c--you small { color: var(--gold); }
#groups .lm-gain b { display: block; font-size: .86rem; line-height: 1.28; font-weight: 650; color: #fff; }
#groups .lm-gain__dots { display: inline-flex; }
#groups .lm-gain__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); border: 1.5px solid #0e1324; margin-left: -3px; }
#groups .lm-gain__dots i:first-child { margin-left: 0; }
#groups .lm-gain__who { letter-spacing: .08em; color: rgba(243,241,236,.85); }
#groups .lm-gain__who:empty::before { content: attr(data-empty); color: rgba(243,241,236,.42); }
#groups .lm-gain__x { align-self: center; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--gold); border: 1px solid rgba(245,200,130,.3); background: rgba(9,13,26,.8); }
#groups .lm-gain__x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* card: the venue's side of the deal */
#groups .lm-card__gain { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 10px 12px; border-radius: 14px; font-size: .86rem; line-height: 1.3; font-weight: 650; color: #fff;
  background: linear-gradient(100deg, rgba(245,200,130,.16), rgba(245,200,130,.04)); border: 1px solid rgba(245,200,130,.28); }
#groups .lm-card__gain > svg { flex: none; width: 28px; height: 28px; padding: 6px; border-radius: 50%; color: #1a1206; background: var(--gold); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#groups .lm-card__gain small { display: block; margin-bottom: 3px; font: 750 .6rem/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 1023px) {
  #groups .lm-card__gain { margin-top: 10px; padding: 8px 10px; font-size: .82rem; }
}
@media (max-width: 760px) {
  #groups .lm-gain { grid-template-columns: 1fr 1fr; margin-top: 10px; gap: 8px; }
  #groups .lm-gain__x { display: none; }
  #groups .lm-gain__c { flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; }
  #groups .lm-gain__ic { width: 28px; height: 28px; }
  #groups .lm-gain small { margin-bottom: 6px; letter-spacing: .14em; }
  #groups .lm-gain b { font-size: .84rem; }
  #groups .lm-card__gain { gap: 9px; margin-top: 8px; padding: 7px 10px; font-size: .8rem; line-height: 1.25; }
  #groups .lm-card__gain > svg { width: 24px; height: 24px; padding: 5px; }
  #groups .lm-card__gain small { margin-bottom: 2px; font-size: .56rem; }
}
@media (min-width: 1024px) {
  #groups .lm-bar .lm-gain { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); max-width: none; gap: 6px; }
  #groups .lm-bar .lm-gain__c { padding: 10px 10px 10px 9px; border-radius: 16px; }
  #groups .lm-bar .lm-gain b { font-size: .82rem; }
  #groups .lm-bar .lm-gain__ic { width: 28px; height: 28px; }
  #groups .lm-bar .lm-gain__x { width: 24px; height: 24px; }
}
@media (min-width: 1024px) and (max-height: 760px) {
  #groups .lm-bar .lm-gain { margin-top: 10px; padding-top: 10px; }
  #groups .lm-bar .lm-gain__c { padding: 8px; }
}
@media (min-width: 1600px) { #groups .lm-bar .lm-gain b { font-size: .9rem; } }
@media (min-width: 2200px) { #groups .lm-bar .lm-gain b { font-size: 1rem; } #groups .lm-gain small { font-size: .72rem; } }

/* ============================================================ V10-F3 · robustness + polish (chips, card, ledger, walkers)
   Robustness: every <svg> in #groups also carries width/height attributes (template); the
   rule set below never relies on intrinsic svg size, so a late/stale stylesheet can no longer paint a viewport-sized
   icon (founder bug, 31 Oct: v8-cached groups.css had no .lm-card__gain/.lm-gain rules).
   Motion: toggle-time transitions only (transform/opacity, one paint per click); no new loops; .lp/.reduced-motion get
   the end state. */
#groups .lm-chip__ic svg, #groups .lm-gain__ic svg, #groups .lm-card__gain > svg, #groups .lm-pin__dot svg { flex: none; }

/* ---------- chip select: the colour fills the icon disc from the centre, a soft halo under the chip ---------- */
#groups .lm-chip { transition: background-color .35s, border-color .35s, color .3s, box-shadow .45s, transform .5s cubic-bezier(.16,1,.3,1); }
#groups .lm-chip__ic { position: relative; isolation: isolate; overflow: hidden; }
#groups .lm-chip__ic::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--c); transform: scale(0); transition: transform .5s cubic-bezier(.16,1,.3,1); }
#groups .lm-chip__ic svg { position: relative; transition: transform .6s cubic-bezier(.16,1,.3,1); }
#groups .lm-chip[aria-pressed="true"] { box-shadow: 0 10px 26px -14px var(--c), inset 0 1px 0 rgba(255,255,255,.08); }
#groups .lm-chip[aria-pressed="true"] .lm-chip__ic { background: color-mix(in srgb, var(--c) 15%, transparent); }
#groups .lm-chip[aria-pressed="true"] .lm-chip__ic::before { transform: scale(1); }
#groups .lm-chip[aria-pressed="true"] .lm-chip__ic svg { transform: rotate(-8deg); }
#groups .lm-chip:active { transform: scale(.97); }
#groups .lm-chip.is-pop { animation: lm-chip-pop2 .55s cubic-bezier(.16,1,.3,1); }
@keyframes lm-chip-pop2 { 40% { transform: scale(1.03); } }
#groups .lm-chip:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }

/* ---------- card: the venue's side of the deal, as a premium gold ticket ---------- */
#groups .lm-card { box-shadow: 0 34px 90px -24px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.07); }
#groups .lm-card__top img { transform-origin: 50% 30%; }
#groups .lm-card__gain { position: relative; overflow: hidden; align-items: center; gap: 12px; padding: 11px 14px 11px 11px; border-radius: 16px; border: 1px solid transparent;
  background: linear-gradient(105deg, rgba(42,33,20,.96), rgba(17,19,30,.96) 72%) padding-box,
              linear-gradient(105deg, rgba(255,224,168,.75), rgba(245,200,130,.22) 45%, rgba(245,200,130,.08)) border-box;
  box-shadow: 0 14px 30px -20px rgba(245,200,130,.55); }
#groups .lm-card__gain > svg { box-shadow: 0 0 0 3px rgba(245,200,130,.18), 0 6px 16px -6px rgba(245,200,130,.7); stroke-width: 1.75; background: linear-gradient(160deg, #ffe3ad, #e9b25f); }
#groups .lm-card__gain > span { display: block; min-width: 0; }
#groups .lm-card__gain small { margin-bottom: 4px; }
#groups .lm-card__gv { display: block; font-weight: 650; line-height: 1.28; color: #fff; text-wrap: pretty; }
#groups .lm-card__gain::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 46%; pointer-events: none; opacity: 0; transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,236,200,.16), transparent); }
#groups .lm-card.is-in .lm-card__gain::after { animation: lm-sheen 1.1s .42s cubic-bezier(.4,0,.2,1) both; }
@keyframes lm-sheen { 0% { opacity: 1; transform: translateX(-120%) skewX(-18deg); } 100% { opacity: 1; transform: translateX(260%) skewX(-18deg); } }
.lp #groups .lm-card.is-in .lm-card__gain::after, .reduced-motion #groups .lm-card.is-in .lm-card__gain::after { animation: none; }
/* offers: a lit accent bar on the matching ticket */
#groups .lm-offer::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); box-shadow: 0 0 12px var(--c);
  transform: scaleY(0); transition: transform .5s cubic-bezier(.16,1,.3,1); }
#groups .lm-offer.is-match::before { transform: scaleY(1); }
#groups .lm-offer { transition: opacity .35s, border-color .35s, box-shadow .35s, transform .5s cubic-bezier(.16,1,.3,1); }
#groups .lm-card.has-sel .lm-offer:not(.is-match) { transform: scale(.985); }
#groups .lm-card__x { transition: background-color .25s, transform .5s cubic-bezier(.16,1,.3,1); }
#groups .lm-card__x:hover { background: rgba(10,12,20,.85); transform: rotate(90deg); }
#groups .lm-card__x:active { transform: scale(.97); }

/* ---------- ledger: "they get ⇄ you get", one exchange, two sides ---------- */
#groups .lm-gain { position: relative; }
#groups .lm-gain__c { position: relative; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); transition: border-color .4s, background-color .4s; }
#groups .lm-gain__c--them { border-color: rgba(94,230,181,.16); background: linear-gradient(135deg, rgba(94,230,181,.08), rgba(14,19,36,.9) 62%); }
#groups .lm-gain.has-sel .lm-gain__c--them { border-color: rgba(94,230,181,.3); }
#groups .lm-gain__c--you { background: linear-gradient(135deg, rgba(245,200,130,.16), rgba(14,19,36,.92) 66%); }
#groups .lm-gain__ic svg, #groups .lm-gain__x svg { stroke-width: 1.75; }
#groups .lm-gain__ic { box-shadow: 0 0 0 3px rgba(94,230,181,.07); }
#groups .lm-gain__c--you .lm-gain__ic { background: linear-gradient(160deg, #ffe3ad, #e9b25f); box-shadow: 0 0 0 3px rgba(245,200,130,.16), 0 6px 16px -6px rgba(245,200,130,.7); }
#groups .lm-gain__x { position: relative; z-index: 1; color: var(--gold); background: radial-gradient(circle at 50% 35%, #1b2236, #0a0e1b); box-shadow: 0 6px 16px -6px rgba(0,0,0,.8);
  transition: transform .7s cubic-bezier(.16,1,.3,1); }
#groups .lm-gain.is-flip .lm-gain__x { transform: rotate(180deg); }
#groups .lm-gain__x::before { content: ""; position: absolute; z-index: -1; left: -10px; right: -10px; top: 50%; height: 1px; background: linear-gradient(90deg, rgba(94,230,181,.55), rgba(245,200,130,.7)); }
#groups .lm-gain__dots i { transform-origin: 50% 50%; }
#groups .lm-gain__who { display: inline-block; }
@media (max-width: 760px) {
  /* phone: the exchange disc sits on the seam between the two cells */
  #groups .lm-gain__x { display: grid; position: absolute; left: 50%; top: 26px; width: 26px; height: 26px; margin-left: -13px; }
  #groups .lm-gain__x::before { display: none; }
  #groups .lm-gain__x svg { width: 13px; height: 13px; }
  #groups .lm-gain__who { flex-basis: 100%; letter-spacing: .1em; line-height: 1.3; }
}
.reduced-motion #groups .lm-chip__ic::before, .reduced-motion #groups .lm-chip__ic svg, .reduced-motion #groups .lm-offer::before, .reduced-motion #groups .lm-gain__x, .reduced-motion #groups .lm-card__x { transition: none; }
/* V10-F3b (F7 items 1+2): v2/v3 anchors moved toward the middle for the desktop dock + card (template); on phone/tablet the
   sheet and the hint pill own the bottom, so v3 keeps its v9 spot there. (!important: anchors are inline styles.) */
@media (max-width: 1023px) { #groups .lm-a[data-a="v3"] { left: 64% !important; top: 82% !important; } }
