/**
 * Spontydex "Night Feed": the drifting card-wall backdrop and the static app cards it is built
 * from (meetup, shared-bill and multi-stop cards, pills, avatars) plus the brand nav. Linked by
 * every page, the home page included; home.css and pages.css adjust it per page. The last section
 * dresses the cards as Discover's linked cards, for /discover and the home page's band, and holds
 * the preview sheet those cards open; the sheet's info parts (worker/src/pages/infoParts.js) are
 * also the meetup and happening detail pages' (body `share ev`).
 * Load AFTER theme.css.
 *
 * Markup each page needs:
 *   <div class="card-wall" aria-hidden="true"></div>   (filled by /scripts/cardwall.js)
 *   <div class="night-scrim" aria-hidden="true"></div>
 *   <nav class="site-nav">…</nav>
 * Also requires the MDI icon font stylesheet.
 */

/* ===== Keyframes ===== */
@keyframes feedUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* ===== Fixed card wall (site-wide backdrop) ===== */
.card-wall {
  position: fixed;
  inset: -12%;
  z-index: 0;
  display: flex;
  justify-content: center;
  gap: 22px;
  transform: rotate(-4deg) scale(1.08);
  pointer-events: none;
  opacity: 0.9;
}
.wall-col { width: 330px; flex-shrink: 0; overflow: hidden; }
.wall-track { display: flex; flex-direction: column; animation: feedUp 70s linear infinite; }
.wall-col:nth-child(2) .wall-track { animation-duration: 86s; animation-delay: -30s; }
.wall-col:nth-child(3) .wall-track { animation-duration: 62s; animation-delay: -14s; }
/* margin (not flex gap) so the -50% loop point lands exactly on the copy */
.wall-card { width: 330px; margin-bottom: 22px; }

/* Dark fill over the drifting card wall so foreground text stays readable.
   Mirrors the home page's flat rgba(0,0,0,0.6) hero/post-hero fill. */
.night-scrim {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.62);
  pointer-events: none;
}

/* ===== MeetupCard (static recreation of the app card) ===== */
.mcard {
  border-radius: 16px;
  border: 0.5px solid rgba(153, 246, 228, 0.12);
  background: rgba(8, 14, 16, 0.85);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.mcard-top-left { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.mcard-top-right { display: flex; align-items: center; gap: 6px; }
.mcard-countdown { font-size: 13px; font-weight: 600; line-height: 16px; color: #FBBF24; }
.mcard-title-row { display: flex; align-items: center; gap: 10px; }
.mcard-title { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 26px; color: #F7F9FA; }
.mcard-meta { display: flex; align-items: center; gap: 5px; font-size: 12.5px; line-height: 16px; color: #9ca3af; }
.mcard-meta .mdi { font-size: 14px; line-height: 1; }
.mcard-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.mcard-bottom { display: flex; align-items: center; justify-content: space-between; }
.sheet-hint { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sheet-handle { width: 22px; height: 3px; border-radius: 2px; background: #374151; }
.sheet-hint .mdi { font-size: 16px; line-height: 1; color: #9ca3af; }

/* ===== Wall: shared-bill and multi-stop cards (same look as the home page wall) ===== */
.receipt-edge { position: relative; border-bottom: none; border-radius: 16px 16px 0 0; background: #080F11; margin-bottom: 7px; }
.receipt-edge::after {
  content: '';
  position: absolute;
  left: -1px; right: -1px; top: 100%;
  height: 7px;
  background:
    linear-gradient(-135deg, #080F11 5px, transparent 0) 0 0 / 12px 7px repeat-x,
    linear-gradient(135deg, #080F11 5px, transparent 0) 0 0 / 12px 7px repeat-x;
}
.mcard--bill { gap: 10px; padding: 14px 16px 12px; }
.bill-head { display: flex; align-items: center; gap: 8px; }
.bill-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(45, 212, 191, 0.10); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bill-icon .mdi { font-size: 18px; line-height: 1; color: #2DD4BF; }
.bill-overline { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #CCFBF1; }
.bill-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.3px; color: #F7F9FA; }
.bill-sub { font-size: 13px; color: #6b7280; margin-top: -6px; }
.bill-cap { font-size: 12px; color: #6b7280; }
.bill-totals { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px dashed rgba(153, 246, 228, 0.18); }
.bill-mine { text-align: right; }
.bill-num { font-family: var(--font-display); font-variant-numeric: tabular-nums; color: #99F6E4; }
.bill-total { font-size: 21px; font-weight: 700; letter-spacing: -0.4px; }
.mini-rail { display: flex; flex-direction: column; }
.mini-rail > div { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0 0 14px 24px; }
.mini-rail > div:last-child { padding-bottom: 2px; }
.mini-rail > div::before { content: ''; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; border: 2px solid rgba(153, 246, 228, 0.5); background: #0B1416; z-index: 1; }
.mini-rail > div.is-on::before { border: none; background: #2DD4BF; box-shadow: 0 0 10px rgba(45, 212, 191, 0.65); }
.mini-rail > div::after { content: ''; position: absolute; left: 5px; top: 10px; bottom: -6px; width: 2px; background: rgba(153, 246, 228, 0.2); }
.mini-rail > div:last-child::after { display: none; }
.mini-rail b { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: #F7F9FA; }
.mini-rail span { font-size: 12.5px; color: #9ca3af; }

/* ===== Pills ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}
.pill .mdi { font-size: 12px; line-height: 1; }
.pill--group { background: rgba(45, 212, 191, 0.12); border: 1px solid rgba(45, 212, 191, 0.3); color: #2DD4BF; }
.pill--cat { background: #1f2937; color: #F7F9FA; }
/* "Official": an Event and its Official happening entry (components.officialPill). A dense fill, so
   it needs no frost over a card's photo, and one light that crosses it once on arrival. */
.pill--official { position: relative; overflow: hidden; background: linear-gradient(120deg, rgba(45, 212, 191, 0.24), rgba(129, 140, 248, 0.22)), #071816; border: 1px solid rgba(94, 234, 212, 0.55); color: #CCFBF1; font-weight: 600; }
.pill--official .ico { flex-shrink: 0; width: 12px; height: 12px; color: #5EEAD4; }
.pill--official::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(204, 251, 241, 0.42) 50%, transparent 70%); transform: translateX(-110%); animation: pill-shine 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both; pointer-events: none; }
.has-photo .pill.pill--official { -webkit-backdrop-filter: none; backdrop-filter: none; }
@keyframes pill-shine { to { transform: translateX(110%); } }

/* LIVE badge */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 12px;
  background: #EF4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 600;
  line-height: 12px;
}
.badge-live-dot { width: 6px; height: 6px; border-radius: 3px; background: #ffffff; }

/* ===== Avatars ===== */
.avatar-stack { display: flex; align-items: center; }
.avatar {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #121212;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #0b0f10;
  flex-shrink: 0;
}
.avatar + .avatar, .avatar + .avatar-more { margin-left: -8px; }
.avatar--host { border-color: #4ADE80; }
.avatar-crown {
  position: absolute;
  top: -5px;
  left: 50%;
  margin-left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: #4ADE80;
  border: 1px solid #121212;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.avatar-crown .mdi { font-size: 6px; line-height: 1; color: #000000; }
.avatar-more {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #374151;
  border: 1.5px solid #121212;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #ffffff;
  flex-shrink: 0;
}

/* ===== Top nav — sits at the top of the page and scrolls away (not pinned) ===== */
.site-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
/* The nav's glass bar, a dark frosted fill over a hairline: the home page's once it is stuck
   (home.css, toggled by home.js), Discover's from the start. */
.site-nav.is-stuck,
.share.discover .site-nav {
  background: rgba(6, 14, 13, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(153, 246, 228, 0.12);
}
.nav-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 62px; height: 62px; display: block; filter: drop-shadow(0 0 16px rgba(45, 212, 191, 0.55)); }
.nav-brand span { font-size: 31px; font-weight: 800; letter-spacing: -0.7px; color: #F7F9FA; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }
/* Same pill as the mobile login buttons / home-page store buttons. */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(10, 16, 18, 0.98);
  border: 0.5px solid rgba(153, 246, 228, 0.35);
  color: #F7F9FA;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.22);
}
.nav-cta .mdi { font-size: 14px; line-height: 1; color: #F7F9FA; }
@media (hover: hover) {
  .nav-cta:hover { transform: translateY(-1px); }
}
.nav-cta:hover {
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.32);
  color: #F7F9FA;
  text-decoration: none;
}

/* ===== Discover's linked cards =====
   The app cards above as Discover draws them, each a link to its page: on /discover (body
   `share discover`, share.css) and in the home page's preview band (.home-band, home.css), which
   does not load share.css. Each page's own looks stay in its stylesheet. The .mcard* rules reach
   only /discover's .main column and the band, so the card wall's cards keep their look. */
:is(.share.discover, .home-band) .d-card { background: linear-gradient(180deg, rgba(45, 212, 191, 0.06) 0%, rgba(8, 14, 16, 0.94) 42%); border: 1px solid rgba(153, 246, 228, 0.14); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
:is(.share.discover, .home-band) .d-card:hover { border-color: rgba(45, 212, 191, 0.5); color: var(--color-text-primary); box-shadow: 0 0 28px rgba(45, 212, 191, 0.14), 0 14px 34px rgba(0, 0, 0, 0.55); }
/* Every card is one size, picture or not and meetup or happening, as the app's meetup card
   (MEETUP_CARD_HEIGHT): at least this tall, with the app card's padding and corners. */
:is(.share.discover, .home-band) { --card-h: 196px; }
:is(.share.discover, .home-band) :is(.d-card, .hrow) { min-height: var(--card-h); padding: 12px 16px; border-radius: 16px; }
:is(.share.discover .main, .home-band) .mcard { min-width: 0; color: var(--color-text-primary); }
:is(.share.discover .main, .home-band) .mcard-top { flex-wrap: wrap; }
:is(.share.discover .main, .home-band) .mcard-top-left { min-width: 0; }
:is(.share.discover .main, .home-band) .mcard-title-row { align-items: flex-start; }
:is(.share.discover .main, .home-band) .mcard-title { min-width: 0; overflow-wrap: anywhere; }
:is(.share.discover .main, .home-band) .mcard-bottom { flex-wrap: wrap; gap: 10px; margin-top: auto; }
:is(.share.discover, .home-band) .meta { display: flex; align-items: center; gap: 5px; font-size: 12.5px; line-height: 16px; color: var(--color-text-secondary); overflow-wrap: anywhere; }
:is(.share.discover, .home-band) .meta > span { min-width: 0; }
:is(.share.discover, .home-band) .meta b { font-weight: 600; color: #e5e7eb; }
:is(.share.discover, .home-band) .meta .ico { width: 14px; height: 14px; flex-shrink: 0; }
/* No address yet: the pin is dashed and loses its dot (also on the detail pages' Where row) */
:is(.share.discover, .home-band, .share.ev) .place-open .ico path { stroke-dasharray: 2.6 2.6; }
:is(.share.discover, .home-band, .share.ev) .place-open .ico circle { display: none; }

/* Card pills: a long group name ellipsizes instead of widening the card */
:is(.share.discover .main, .home-band) .mcard-top-left > .pill { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
:is(.share.discover, .home-band) .pill-after { display: block; min-width: 0; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
:is(.share.discover, .home-band) .pill .ico { width: 11px; height: 11px; flex-shrink: 0; }
:is(.share.discover, .home-band) .pill-open { background: rgba(251, 191, 36, 0.10); border: 1px solid rgba(251, 191, 36, 0.32); color: var(--color-warning); }
:is(.share.discover, .home-band) .pill-open .ico { stroke-width: 2.4; }

/* A card with a picture (`has-photo`): Discover's cards (worker/src/pages/cardPhoto.js), the card
   wall (scripts/cardwall.js) and the home page's example cards. The photo or poster fills it under
   a scrim, as on the app's meetup card, with the pills on top and the text pinned to the bottom.
   The fill shows while the picture loads. */
.has-photo { position: relative; overflow: hidden; isolation: isolate; min-height: 196px; background: #080E10; }
.card-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
/* On Discover and the band, the skeleton's sweep (`.sk`) runs where the picture goes, under it, so
   a card whose picture is not drawn yet reads as loading instead of as an empty box: before a lazy
   poster arrives, and again after a fast scroll, when a phone has dropped a decoded picture that
   left the screen and draws it anew. The picture covers the sweep once drawn. */
:is(.share.discover, .home-band) .has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  transform: translateX(-100%);
  animation: sk-sweep 1.1s linear infinite;
}
@media (hover: hover) {
  .has-photo:hover .card-photo { transform: scale(1.03); }
}
.card-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.05) 30%, rgba(3, 16, 14, 0.74) 58%, rgba(3, 16, 14, 0.95) 100%); pointer-events: none; }
.mcard.has-photo .mcard-title-row { margin-top: auto; }
.has-photo .mcard-title { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.has-photo .mcard-meta { color: #d1d5db; }
.has-photo .pill { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* Not on the card wall: under the page's dim a pill's frost cannot be seen, and every pill there
   would be blurred again on each frame of the drift. */
.card-wall .pill { -webkit-backdrop-filter: none; backdrop-filter: none; }
.has-photo .pill--group { background: rgba(3, 16, 14, 0.62); }
.has-photo .pill--cat { background: rgba(0, 0, 0, 0.55); }
/* The categories as one line beside the faces, as on the app's card */
.mcard-catline { min-width: 0; margin: 0 auto 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 16px; color: #d1d5db; }
:is(.share.discover .main, .home-band) .has-photo .mcard-bottom { margin-top: 0; }
:is(.share.discover, .home-band) .has-photo .meta,
:is(.share.discover, .home-band) .has-photo .lbl,
:is(.share.discover, .home-band) .has-photo .strip-caps { color: #d1d5db; }
/* Pills on a photo: a dark glass backing so busy pictures never swallow them */
:is(.share.discover, .home-band) .has-photo :is(.type, .badge) { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
:is(.share.discover, .home-band) .has-photo .pill-open { background: rgba(28, 20, 2, 0.7); }
:is(.share.discover, .home-band) .has-photo .cell { background: rgba(255, 255, 255, 0.14); }
:is(.share.discover, .home-band) .has-photo .mcard-countdown { padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.62); }
:is(.share.discover, .home-band) .has-photo .badge { background: rgba(0, 0, 0, 0.55); }
:is(.share.discover, .home-band) .has-photo :is(.w-counts, .hrow-where) { color: #d1d5db; }
:is(.share.discover, .home-band) .has-photo :is(.w-title, .hrow-title) { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }

/* Type tags: the All view's cards, its legend and the preview sheet */
:is(.share.discover, .home-band) .type { display: inline-flex; align-items: center; gap: var(--spacing-xs); height: 22px; padding: 0 var(--spacing-sm); border-radius: var(--radius-full); font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; flex-shrink: 0; }
:is(.share.discover, .home-band) .type .ico { width: 12px; height: 12px; flex-shrink: 0; }
:is(.share.discover, .home-band) .type.is-meetup { background: rgba(45, 212, 191, 0.12); border: 1px solid rgba(45, 212, 191, 0.35); color: #5EEAD4; }
:is(.share.discover, .home-band) .type.is-hap { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.22); color: var(--color-text-primary); }

/* Who is in: avatar photos or letter circles tinted by position (at most four), the seats line,
   and seat pips. The faces and pips are the detail pages' too. */
:is(.share.discover, .home-band, .share.ev, .share .fl) img.avatar { object-fit: cover; background: var(--color-bg-subtle); }
:is(.share.discover, .home-band, .share.ev, .share .fl) .av-t0 { background: #5EEAD4; }
:is(.share.discover, .home-band, .share.ev, .share .fl) .av-t1 { background: #FDBA74; }
:is(.share.discover, .home-band, .share.ev, .share .fl) .av-t2 { background: #A5B4FC; }
:is(.share.discover, .home-band, .share.ev, .share .fl) .av-t3 { background: #F9A8D4; }
:is(.share.discover, .home-band) .lbl { margin-left: 10px; font-size: 12.5px; color: #c3cad2; }
:is(.share.discover, .home-band, .share.ev) .pips { display: flex; align-items: center; gap: var(--spacing-xs); flex-shrink: 0; }
:is(.share.discover, .home-band, .share.ev) .pip { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(45, 212, 191, 0.6); }
:is(.share.discover, .home-band, .share.ev) .pip.on { background: var(--color-primary); border-color: var(--color-primary); box-shadow: 0 0 6px rgba(45, 212, 191, 0.55); }

/* Undated card: the 28-day strip, its first and last dates, and the voting deadline (also the
   detail pages' "Date still open") */
:is(.share.discover, .home-band, .share.ev) .strip { display: grid; grid-template-columns: repeat(28, minmax(0, 1fr)); gap: 3px; }
:is(.share.discover, .home-band, .share.ev) .cell { height: 16px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); }
:is(.share.discover, .home-band, .share.ev) .cell.on { background: rgba(251, 191, 36, 0.85); }
:is(.share.discover, .home-band, .share.ev) .strip-caps { display: flex; justify-content: space-between; gap: var(--spacing-sm); margin-top: -4px; font-size: 11px; font-weight: 500; line-height: 14px; color: var(--color-text-secondary); }
:is(.share.discover, .home-band, .share.ev) .closes { font-size: 12.5px; font-weight: 600; line-height: 16px; color: var(--color-warning); white-space: nowrap; }
/* On a card the strip is thinner, so an undated card is the size of the others */
:is(.share.discover .main, .home-band) .mcard .cell { height: 10px; border-radius: 3px; }

/* ===== The cards' preview sheet (worker/src/pages/discoverPreview.js) =====
   A native <dialog> spanning the screen: its own scrim, then the sheet, a bottom sheet on a phone
   and a centred dialog from 900px. `is-in` brings it in, `is-out` (shorter)
   out before the script closes the dialog, `is-drag` follows a finger down the phone's top bar
   (the script sets --dp-y, the offset, and --dp-p, its share of the sheet's height). `is-scrolled`
   and `is-more` fade the body under the pinned bars. The <dialog> sits in the top layer, so no
   z-index on the page reaches it. */
html.dp-locked { overflow: hidden; scrollbar-gutter: stable; }
:is(.share.discover, .home-band) .dp { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: none; color: var(--color-text-primary); font-family: var(--font-family); line-height: 1.5; text-align: left; overflow: hidden; }
:is(.share.discover, .home-band) .dp::backdrop { background: transparent; }
:is(.share.discover, .home-band) .dp-scrim { position: absolute; inset: 0; background: rgba(1, 6, 7, 0.62); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.22s ease-out; }
:is(.share.discover, .home-band) .dp-sheet { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; max-height: 92vh; max-height: 92dvh; overflow: hidden; border: 1px solid rgba(153, 246, 228, 0.18); border-bottom: 0; border-radius: 20px 20px 0 0; background: linear-gradient(180deg, #0F1D1F 0%, #091213 260px, #070D0E 100%); box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.6), 0 0 48px rgba(45, 212, 191, 0.1), inset 0 1px 0 rgba(153, 246, 228, 0.08); transform: translateY(100%); transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1); }
/* The teal light in the sheet's corner, under its contents */
:is(.share.discover, .home-band) .dp-sheet::before { content: ''; position: absolute; top: -140px; left: -100px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(45, 212, 191, 0.16), transparent); pointer-events: none; }
:is(.share.discover, .home-band) .dp.is-in .dp-scrim { opacity: 1; }
:is(.share.discover, .home-band) .dp.is-in .dp-sheet { transform: none; }
:is(.share.discover, .home-band) .dp.is-out .dp-scrim,
:is(.share.discover, .home-band) .dp.is-out .dp-sheet { transition-duration: 0.16s; transition-timing-function: cubic-bezier(0.4, 0, 1, 1); }
:is(.share.discover, .home-band) .dp.is-drag .dp-sheet { transition: none; transform: translateY(var(--dp-y, 0px)); }
:is(.share.discover, .home-band) .dp.is-drag .dp-scrim { transition: none; opacity: calc(1 - var(--dp-p, 0) * 0.8); }

/* Top bar: copy link, then close at its far end; the grab handle above on a phone */
:is(.share.discover, .home-band) .dp-bar { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: var(--spacing-sm); padding: 22px 14px 10px; touch-action: none; transition: box-shadow 0.2s ease; }
:is(.share.discover, .home-band) .dp-bar::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 22px; background: linear-gradient(180deg, rgba(14, 27, 29, 0.96), rgba(14, 27, 29, 0)); opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
:is(.share.discover, .home-band) .dp.is-scrolled .dp-bar { box-shadow: inset 0 -1px 0 rgba(153, 246, 228, 0.1); }
:is(.share.discover, .home-band) .dp.is-scrolled .dp-bar::after { opacity: 1; }
:is(.share.discover, .home-band) .dp-handle { position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgba(255, 255, 255, 0.24); }
:is(.share.discover, .home-band) .dp-btn,
:is(.share.discover, .home-band) .dp-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; height: 36px; border-radius: var(--radius-full); border: 1px solid rgba(153, 246, 228, 0.2); background: rgba(255, 255, 255, 0.04); color: #e5e7eb; font-family: var(--font-family); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; -webkit-appearance: none; appearance: none; }
:is(.share.discover, .home-band) .dp-btn { width: 36px; padding: 0; }
:is(.share.discover, .home-band) .dp-pill { padding: 0 11px; }
:is(.share.discover, .home-band) .dp-btn:hover,
:is(.share.discover, .home-band) .dp-pill:hover { border-color: rgba(45, 212, 191, 0.55); background: rgba(45, 212, 191, 0.12); color: var(--color-text-primary); text-decoration: none; }
:is(.share.discover, .home-band) :is(.dp-btn, .dp-pill, .dp-cta, .dp-act, .dp-chip):focus-visible { outline: 2px solid rgba(94, 234, 212, 0.85); outline-offset: 2px; }
:is(.share.discover, .home-band) .dp-btn .ico,
:is(.share.discover, .home-band) .dp-pill .ico { display: block; width: 16px; height: 16px; }
:is(.share.discover, .home-band) .dp-lbl { display: none; }
:is(.share.discover, .home-band) .dp-copy-ok { display: none; }
:is(.share.discover, .home-band) .dp-copy.is-done { border-color: rgba(45, 212, 191, 0.65); background: rgba(45, 212, 191, 0.14); color: #5EEAD4; }
:is(.share.discover, .home-band) .dp-copy.is-done .dp-copy-ic { display: none; }
:is(.share.discover, .home-band) .dp-copy.is-done .dp-copy-ok { display: block; animation: dp-pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
:is(.share.discover, .home-band) .dp-close { margin-left: auto; }
/* Off-screen field for copying where the clipboard API is missing */
:is(.share.discover, .home-band) .dp-clip { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Body (scrolls) and footer (pinned) */
:is(.share.discover, .home-band) .dp-scroll { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 20px 28px; scrollbar-width: thin; scrollbar-color: rgba(153, 246, 228, 0.22) transparent; }
:is(.share.discover, .home-band) .dp-foot { position: relative; z-index: 2; flex: none; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid transparent; transition: border-color 0.2s ease; }
:is(.share.discover, .home-band) .dp-foot::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 32px; background: linear-gradient(180deg, rgba(7, 13, 14, 0), rgba(7, 13, 14, 0.94)); opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
:is(.share.discover, .home-band) .dp.is-more .dp-foot { border-top-color: rgba(153, 246, 228, 0.1); }
:is(.share.discover, .home-band) .dp.is-more .dp-foot::before { opacity: 1; }
/* The footer's ghost pill: the link to the page */
:is(.share.discover, .home-band) .dp-ctas { display: flex; gap: 8px; }
:is(.share.discover, .home-band) .dp-cta { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: var(--radius-full); border: 1px solid rgba(45, 212, 191, 0.55); background: transparent; color: var(--color-text-primary); font-family: var(--font-family); font-size: 16px; font-weight: 600; line-height: 22px; text-align: center; white-space: nowrap; box-shadow: 0 0 24px rgba(45, 212, 191, 0.16); }
:is(.share.discover, .home-band) .dp-cta { flex: 1 1 auto; }
:is(.share.discover, .home-band) .dp-cta > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
:is(.share.discover, .home-band) .dp-cta:hover { border-color: rgba(94, 234, 212, 0.85); background: rgba(45, 212, 191, 0.12); color: var(--color-text-primary); text-decoration: none; box-shadow: 0 0 32px rgba(45, 212, 191, 0.26); }
:is(.share.discover, .home-band) .dp-cta .ico { display: block; width: 18px; height: 18px; flex-shrink: 0; color: #5EEAD4; transition: transform 0.2s ease; }
:is(.share.discover, .home-band) .dp-cta:hover .ico { transform: translateX(3px); }

/* The item rises in on open */
:is(.share.discover, .home-band) .dp-main { animation: dp-rise 0.3s 0.05s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* Cover: the meetup's picture over its emoji, which breathes until the picture loads and stays
   as the cover without one (or when it fails) */
:is(.share.discover, .home-band) .dp-cover { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid rgba(153, 246, 228, 0.16); background: radial-gradient(120% 110% at 22% 12%, rgba(45, 212, 191, 0.36), rgba(45, 212, 191, 0.08) 55%, rgba(129, 140, 248, 0.12) 100%), #0A1517; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
:is(.share.discover, .home-band) .dp-emoji { font-size: 76px; line-height: 1; filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.5)); }
:is(.share.discover, .home-band) .dp-cover.has-img .dp-emoji { opacity: 0.3; animation: dp-breathe 1.2s ease-in-out infinite alternate; }
:is(.share.discover, .home-band) .dp-cover.is-ready .dp-emoji { animation: none; }
:is(.share.discover, .home-band) .dp-cover.is-failed .dp-emoji { opacity: 1; animation: none; }
:is(.share.discover, .home-band) .dp-cover-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
:is(.share.discover, .home-band) .dp-cover-img.is-loaded { opacity: 1; }
/* A happening's poster, whole over its blurred copy (posterBlock); the date leaf without one */
:is(.share.discover, .home-band) .dp-poster { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 300px; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid rgba(153, 246, 228, 0.16); background: radial-gradient(120% 110% at 22% 12%, rgba(45, 212, 191, 0.22), rgba(129, 140, 248, 0.1) 60%), #0A1517; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
:is(.share.discover, .home-band) .dp-poster .poster-blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(28px) brightness(0.6) saturate(1.2); transform: scale(1.3); opacity: 0; transition: opacity 0.35s ease; }
:is(.share.discover, .home-band) .dp-poster .poster-image { position: relative; display: block; width: auto; height: auto; max-width: calc(100% - 32px); max-height: calc(100% - 32px); object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55); opacity: 0; transform: scale(0.98); transition: opacity 0.35s ease, transform 0.35s ease; }
:is(.share.discover, .home-band) .dp-poster:not(.is-fallback)::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent); transform: translateX(-100%); animation: sk-sweep 1.1s linear infinite; }
:is(.share.discover, .home-band) .dp-poster .poster-blur.is-loaded { opacity: 1; }
:is(.share.discover, .home-band) .dp-poster .poster-image.is-loaded { opacity: 1; transform: none; }
:is(.share.discover, .home-band) .dp-poster.is-fallback { height: 200px; background: linear-gradient(160deg, rgba(45, 212, 191, 0.3), rgba(129, 140, 248, 0.24) 55%, rgba(8, 14, 16, 0.92)); border-color: rgba(45, 212, 191, 0.3); }
:is(.share.discover, .home-band) .dp-poster .poster-month { font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: 2px; text-transform: uppercase; color: var(--color-primary); }
:is(.share.discover, .home-band) .dp-poster .poster-day { font-family: var(--font-display); font-size: 68px; font-weight: 800; line-height: 1; color: var(--color-text-primary); }
:is(.share.discover, .home-band) .dp-poster .poster-weekday { margin-top: var(--spacing-xs); font-size: 13px; line-height: 1.4; letter-spacing: 1px; text-transform: uppercase; color: var(--color-text-secondary); }

/* Tags and title */
:is(.share.discover, .home-band) .dp-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
:is(.share.discover, .home-band) .dp-tags .type { height: 24px; }
:is(.share.discover, .home-band) .dp-tags .pill { padding: 3px 10px; font-size: 12px; }
/* A long group or happening name ellipsizes on its own line instead of widening the sheet */
:is(.share.discover, .home-band) .dp-tags > .pill--group,
:is(.share.discover, .home-band) .dp-tags > .pill--cat { display: block; min-width: 0; max-width: 100%; margin-left: 0; overflow: hidden; text-overflow: ellipsis; }
:is(.share.discover, .home-band) .dp-tags .happening-badges { display: contents; }
:is(.share.discover, .home-band) .dp-tags .badge { display: inline-flex; padding: 3px 10px; border-radius: var(--radius-full); border: 1px solid rgba(255, 255, 255, 0.22); font-size: 12px; font-weight: 600; line-height: 16px; color: #c3cad2; white-space: nowrap; }
:is(.share.discover, .home-band) .dp-tags .badge-price { border-color: rgba(45, 212, 191, 0.35); color: #5EEAD4; }
:is(.share.discover, .home-band) .dp-tags .badge-age { border-color: rgba(251, 191, 36, 0.4); color: var(--color-warning); }
:is(.share.discover, .home-band) .dp-live { display: inline-flex; align-items: center; gap: 6px; }
:is(.share.discover, .home-band) .dp-live .badge-live { padding: 4px 8px; font-size: 10px; }
:is(.share.discover, .home-band) .dp-title { margin: 12px 0 0; font-family: var(--font-display); font-size: 25px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--color-text-primary); overflow-wrap: anywhere; text-wrap: pretty; }
/* Hosted by: the hosts' faces and first names, under the title. From here to the facts, the info
   parts (worker/src/pages/infoParts.js) the meetup and happening detail pages share (`.share.ev`),
   except the sections' heading and who's in; share.css sizes them for those pages. */
:is(.share.discover, .home-band, .share.ev, .share .fl) .dp-by { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
:is(.share.discover, .home-band, .share.ev, .share .fl) .dp-by .avatar-stack { flex-shrink: 0; }
:is(.share.discover, .home-band, .share.ev, .share .fl) .dp-by .avatar { width: 26px; height: 26px; border: 2px solid #0B1517; font-size: 11px; }
:is(.share.discover, .home-band, .share.ev, .share .fl) .dp-by-t { margin: 0; min-width: 0; font-size: 14px; font-weight: 500; line-height: 20px; color: #c3cad2; overflow-wrap: anywhere; }
/* An organizer's by-line (infoParts.organizerBy): its logo, else a people glyph, in the faces' place */
:is(.share.discover, .home-band, .share.ev, .share .fl) .ev-org-logo { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(153, 246, 228, 0.25); background: #0c2a26; }
:is(.share.discover, .home-band, .share.ev, .share .fl) .ev-org { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(153, 246, 228, 0.25); background: rgba(45, 212, 191, 0.12); color: #5EEAD4; }
:is(.share.discover, .home-band, .share.ev, .share .fl) .ev-org .ico { width: 18px; height: 18px; }
:is(.share.discover, .home-band) .dp-by :is(.ev-org-logo, .ev-org) { width: 30px; height: 30px; }

/* Info rows: an icon tile beside one to two lines (centred on the tile), and anything under them
   (the directions), which grows the row downwards */
:is(.share.discover, .home-band, .share.ev) .dp-rows { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
:is(.share.discover, .home-band, .share.ev) .dp-row { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
:is(.share.discover, .home-band, .share.ev) .dp-ic { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-md); border: 1px solid rgba(153, 246, 228, 0.16); background: rgba(255, 255, 255, 0.04); color: #5EEAD4; }
:is(.share.discover, .home-band, .share.ev) .dp-ic .ico { display: block; width: 20px; height: 20px; }
:is(.share.discover, .home-band, .share.ev) .dp-ic.is-cal { flex-direction: column; justify-content: flex-start; overflow: hidden; }
:is(.share.discover, .home-band, .share.ev) .dp-ic.is-cal b { align-self: stretch; padding: 2px 0 1px; background: rgba(45, 212, 191, 0.16); font-size: 9.5px; font-weight: 700; line-height: 13px; letter-spacing: 0.1em; text-align: center; text-transform: uppercase; color: #5EEAD4; }
:is(.share.discover, .home-band, .share.ev) .dp-ic.is-cal i { flex: 1; display: flex; align-items: center; font-family: var(--font-display); font-size: 18px; font-style: normal; font-weight: 700; line-height: 1; color: var(--color-text-primary); }
:is(.share.discover, .home-band, .share.ev) .dp-ic.is-open { border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.08); color: var(--color-warning); }
:is(.share.discover, .home-band, .share.ev) .dp-ic.is-live { border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.08); }
:is(.share.discover, .home-band, .share.ev) .dp-ic.is-now { border-color: rgba(45, 212, 191, 0.4); background: rgba(45, 212, 191, 0.08); }
:is(.share.discover, .home-band, .share.ev) .dp-pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--color-error); box-shadow: 0 0 10px rgba(239, 68, 68, 0.8); }
:is(.share.discover, .home-band, .share.ev) .dp-pulse::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(239, 68, 68, 0.6); animation: dp-ping 1.6s ease-out infinite; }
:is(.share.discover, .home-band, .share.ev) .is-now .dp-pulse { background: var(--color-primary); box-shadow: 0 0 10px rgba(45, 212, 191, 0.8); }
:is(.share.discover, .home-band, .share.ev) .is-now .dp-pulse::after { border-color: rgba(45, 212, 191, 0.6); }
:is(.share.discover, .home-band, .share.ev) .dp-rt { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 44px; }
:is(.share.discover, .home-band, .share.ev) .dp-l1 { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 22px; color: var(--color-text-primary); overflow-wrap: anywhere; }
:is(.share.discover, .home-band, .share.ev) .dp-l2 { margin: 1px 0 0; font-size: 13.5px; line-height: 20px; color: #aab4bd; overflow-wrap: anywhere; }
/* Directions: small ghost pills under the venue */
:is(.share.discover, .home-band, .share.ev) .dp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
:is(.share.discover, .home-band, .share.ev) .dp-chip { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: var(--radius-full); border: 1px solid rgba(153, 246, 228, 0.2); background: rgba(255, 255, 255, 0.03); color: #d5dbe0; font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap; }
:is(.share.discover, .home-band, .share.ev) .dp-chip .ico { width: 12px; height: 12px; flex-shrink: 0; color: #5EEAD4; }
:is(.share.discover, .home-band, .share.ev) .dp-chip:hover { border-color: rgba(45, 212, 191, 0.55); background: rgba(45, 212, 191, 0.12); color: var(--color-text-primary); text-decoration: none; }
/* Actions under When and Where: tickets across the row, the two calendars side by side */
:is(.share.discover, .home-band, .share.ev) .dp-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
:is(.share.discover, .home-band, .share.ev) .dp-act { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; height: 42px; padding: 0 10px; border-radius: var(--radius-full); border: 1px solid rgba(153, 246, 228, 0.2); background: rgba(255, 255, 255, 0.04); color: #e5e7eb; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; }
:is(.share.discover, .home-band, .share.ev) .dp-act:hover { border-color: rgba(45, 212, 191, 0.55); background: rgba(45, 212, 191, 0.12); color: var(--color-text-primary); text-decoration: none; }
:is(.share.discover, .home-band, .share.ev) .dp-act-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
:is(.share.discover, .home-band, .share.ev) .dp-act .mdi { font-size: 17px; line-height: 1; }
:is(.share.discover, .home-band, .share.ev) .dp-act .ico { width: 15px; height: 15px; flex-shrink: 0; }
:is(.share.discover, .home-band, .share.ev) .dp-act.is-ticket { grid-column: 1 / -1; border-color: rgba(45, 212, 191, 0.5); color: var(--color-text-primary); }
:is(.share.discover, .home-band, .share.ev) .dp-act.is-ticket .ico { color: #5EEAD4; }
:is(.share.discover, .home-band, .share.ev) .dp-act.is-ticket .ico:last-child { width: 13px; height: 13px; opacity: 0.8; }
/* An undated meetup's window: the day strip, its dates and the deadline in an amber panel */
:is(.share.discover, .home-band, .share.ev) .dp-vote { display: flex; flex-direction: column; gap: var(--spacing-sm); padding: 12px; border-radius: var(--radius-md); border: 1px solid rgba(251, 191, 36, 0.2); background: rgba(251, 191, 36, 0.04); }

/* Sections: who's in, and the full description */
:is(.share.discover, .home-band, .share.ev) .dp-sec { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(153, 246, 228, 0.1); }
:is(.share.discover, .home-band) .dp-h { margin: 0 0 12px; font-family: var(--font-family); font-size: 11.5px; font-weight: 700; line-height: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: #5EEAD4; }
:is(.share.discover, .home-band) .dp-who { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
:is(.share.discover, .home-band) .dp-who .avatar { width: 34px; height: 34px; border: 2px solid #0B1517; font-size: 13px; }
:is(.share.discover, .home-band) .dp-who .avatar + .avatar { margin-left: -10px; }
:is(.share.discover, .home-band) .dp-seats { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 500; line-height: 20px; color: #d5dbe0; }
:is(.share.discover, .home-band) .dp-about { margin: 0; font-size: 15px; line-height: 1.65; color: #c9d1d8; white-space: pre-line; overflow-wrap: anywhere; }
/* A happening's quiet detail rows after About: the label, then the value (the organizer, the
   source page's link) */
:is(.share.discover, .home-band, .share.ev) .dp-facts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 0; }
:is(.share.discover, .home-band, .share.ev) .dp-fact { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
:is(.share.discover, .home-band, .share.ev) .dp-fact dt { flex: none; width: 88px; font-size: 13px; line-height: 20px; color: var(--color-text-secondary); }
:is(.share.discover, .home-band, .share.ev) .dp-fact dd { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 20px; color: #d5dbe0; overflow-wrap: anywhere; }
:is(.share.discover, .home-band, .share.ev) .dp-fact a { color: #5EEAD4; }
:is(.share.discover, .home-band, .share.ev) .dp-fact a:hover { color: var(--color-text-primary); }
:is(.share.discover, .home-band, .share.ev) .dp-fact .ico { display: inline-block; width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; }

@keyframes dp-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dp-breathe { from { transform: scale(0.97); } to { opacity: 0.55; transform: scale(1.04); } }
@keyframes dp-ping { from { opacity: 1; transform: scale(0.6); } to { opacity: 0; transform: scale(1.8); } }
@keyframes dp-pop { from { transform: scale(0.4); } to { transform: none; } }

/* From 400px the bar's pills carry their labels */
@media (min-width: 400px) {
  :is(.share.discover, .home-band) .dp-lbl { display: inline; }
}
/* From 900px: a dialog centred on the screen, as tall as its content up to the screen less a margin, rising in as it fades */
@media (min-width: 900px) {
  :is(.share.discover, .home-band) .dp-sheet { inset: 0; margin: auto; width: 560px; max-width: calc(100vw - 48px); height: fit-content; max-height: min(880px, calc(100vh - 48px)); max-height: min(880px, calc(100dvh - 48px)); border-bottom: 1px solid rgba(153, 246, 228, 0.18); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 72px rgba(45, 212, 191, 0.1), inset 0 1px 0 rgba(153, 246, 228, 0.08); opacity: 0; transform: translateY(16px) scale(0.97); transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease-out; }
  :is(.share.discover, .home-band) .dp.is-in .dp-sheet { opacity: 1; }
  :is(.share.discover, .home-band) .dp-handle { display: none; }
  :is(.share.discover, .home-band) .dp-bar { padding: 14px 18px 10px; touch-action: auto; }
  :is(.share.discover, .home-band) .dp-scroll { padding: 6px 28px 32px; }
  :is(.share.discover, .home-band) .dp-foot { padding: 14px 24px 20px; }
  :is(.share.discover, .home-band) .dp-title { font-size: 30px; line-height: 1.18; }
  :is(.share.discover, .home-band) .dp-poster { height: 340px; }
}

/* ===== The site's one spinner (components.SPINNER, the home page's band sheet included) =====
   A comet ring: a bright head fading to a clear tail, turning, with a soft teal glow around it (the
   glow sits on the wrapper so the ring's mask does not cut it). Pages show or hide it per button. */
.spin { display: inline-block; flex-shrink: 0; width: 18px; height: 18px; vertical-align: middle; filter: drop-shadow(0 0 4px rgba(45, 212, 191, 0.85)); }
.spin > i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(94, 234, 212, 0) 0deg, rgba(94, 234, 212, 0.14) 70deg, rgba(94, 234, 212, 0.7) 240deg, #CCFBF1 335deg, #FFFFFF 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: spin-turn 0.8s linear infinite;
}
@keyframes spin-turn { to { transform: rotate(360deg); } }

/* ===== Skeletons: what stands in for content while it loads, as the app's Skeleton draws it =====
   `.sk` is one placeholder block: a quiet fill with its own soft light sweeping across it, every
   block on the same 1.1 s linear loop, so a whole screen of them sweeps in step (the app's
   `skeleton.sweepMs` and `colors.skeleton`). A bar is as tall as the text it stands for and rounded
   to half that height, up to 8px; chips and faces are round. Size a block with its own class; the
   settle-up list (share.css `.settle-skeleton`) uses it too.

   `.sk-tx` is a bar for a line of text placed inside the element that holds that text, so it takes
   that text's font and line height: as tall as most letters, as wide as its `sk-w*` class in ems
   (Discover's skeletons, discoverLoading.js, draw the real cards' markup this way).

   `.sk-card` is a linked card loading on the home page's band: the cards' surface and height
   (`--card-h`) with blocks in the card's own layout. Shapes: `is-stack` (an app card: a chip on
   top, then the bottom-anchored title, two icon-led lines and the faces) and `is-row` (a happening
   row: the poster, then its lines). */
.sk { position: relative; display: block; flex-shrink: 0; overflow: hidden; border-radius: 8px; background: rgba(255, 255, 255, 0.06); }
.sk::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: translateX(-100%);
  animation: sk-sweep 1.1s linear infinite;
}
@keyframes sk-sweep { to { transform: translateX(100%); } }
.sk-card { position: relative; overflow: hidden; box-sizing: border-box; display: flex; min-height: var(--card-h, 196px); padding: 12px 16px; border-radius: 16px; border: 1px solid rgba(153, 246, 228, 0.12); background: linear-gradient(180deg, rgba(45, 212, 191, 0.06) 0%, rgba(45, 212, 191, 0) 42%), rgba(8, 14, 16, 0.94); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.sk-card.is-stack { flex-direction: column; }
.sk-card.is-row { align-items: center; gap: 16px; }
.sk-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sk-card.is-stack > .sk-text { flex: none; margin-top: auto; }
.sk-title { width: 72%; height: 18px; }
.sk-line { width: 54%; height: 13px; border-radius: 6px; }
.sk-line.is-short { width: 38%; }
.sk-line.is-tiny { width: 64px; height: 12px; }
.sk-meta { display: flex; align-items: center; gap: 6px; }
.sk-meta > .sk-line { flex: 0 1 auto; }
.sk-ic { width: 14px; height: 14px; border-radius: 4px; }
.sk-chip { width: 84px; height: 22px; border-radius: 999px; }
.sk-chip.is-short { width: 56px; }
.sk-foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.sk-faces { display: flex; align-items: center; }
.sk-faces > .sk { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(8, 14, 16, 0.94); }
.sk-faces > .sk + .sk { margin-left: -8px; }
.sk-thumb { width: 72px; height: 90px; }
.sk.sk-tx { display: inline-block; max-width: 100%; height: 0.8em; vertical-align: middle; border-radius: 0.4em; }
.sk-w1 { width: 1.2em; }
.sk-w3 { width: 3em; }
.sk-w4 { width: 4em; }
.sk-w5 { width: 5em; }
.sk-w8 { width: 8em; }
.sk-w9 { width: 9em; }
.sk-w10 { width: 10em; }
.sk-w11 { width: 11em; }
@media (prefers-reduced-motion: reduce) {
  .sk::after,
  :is(.share.discover, .home-band) .has-photo::before,
  :is(.share.discover, .home-band) .dp-poster::before { animation: none; }
}

/* ===== Flat glass: `html.flat`, which /scripts/cardwall.js sets on Android =====
   A frosted surface is blurred again on every frame in which anything behind it changed, and the
   card wall behind the page never stops drifting, so each one costs a blur pass per frame. Chrome
   on Android drops frames under that, so there nothing on any page is frosted, and each surface
   whose fill was thin gets a denser one: here for this file's, in home.css and share.css for
   theirs. `:where` keeps a fill at its own rule's weight, so a state's fill still wins. */
.flat *, .flat *::before, .flat *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
:where(.flat) .site-nav.is-stuck,
:where(.flat) .share.discover .site-nav { background: rgba(6, 14, 13, 0.94); }
:where(.flat) .has-photo .pill--group { background: rgba(3, 16, 14, 0.78); }
:where(.flat) .has-photo .pill--cat { background: rgba(0, 0, 0, 0.7); }
:where(.flat) :is(.share.discover, .home-band) .has-photo .badge { background: rgba(0, 0, 0, 0.7); }
:where(.flat) :is(.share.discover, .home-band) .has-photo .type.is-meetup { background: rgba(6, 34, 31, 0.84); }
:where(.flat) :is(.share.discover, .home-band) .has-photo .type.is-hap { background: rgba(22, 26, 27, 0.82); }
:where(.flat) :is(.share.discover, .home-band) .dp-scrim { background: rgba(1, 6, 7, 0.76); }

/* ===== Press: how every real control answers a tap, on every page (each links this file) =====
   Pressing sinks the control at once and lights it; letting go springs it back a little past its
   size before it settles. The press moves only `scale` and `filter`, which no control's own rules
   set, so it adds to a hover lift and no later stylesheet's hover undoes it. This section owns these
   controls' transitions as well, so their own rules declare none (a later `transition` would drop
   the spring). Three strengths: buttons and pills sink furthest and glow teal; cards and answer
   choices sink less, with a softer glow; text-like controls (tabs, text links, rows) sink a little
   and dim. Going down takes 90 ms on a firm curve; only the way back springs. Under a pointer
   that hovers, a linked card pops (grows 3% on the same spring) and a press still sinks it, since
   the press rules come later at the same weight. Hover changes of size or place (the card pop
   here, a button's `translateY` lift next to its control) sit in `@media (hover: hover)`: on a
   phone a hover sticks after the tap and would leave the control raised. */
.btn, .nav-cta, .btn-store, .store-btn, .ghost-btn, .hb-ghost, .modal-close,
.share.discover :is(.ghost, .appbar-cta, .fchip, .fpill),
:is(.share.discover, .home-band) :is(.dp-btn, .dp-pill, .dp-cta),
:is(.share.discover, .home-band, .share.ev) :is(.dp-chip, .dp-act),
.share :is(.chat-close, .settle-name), .share.ev :is(.ev-back, .ev-see-all, .ev-btn), .share.ev .fl-act .open-app-link,
:is(.share.discover, .home-band) .d-card, .home-band .hrow, .share.discover .live-card,
.share :is(.vault, .slot, .pay-qr, .pay-proof, .rsvp-face, .place-card), .share.ev .tk-event,
.share.discover :is(.tab, .clear, .rrow, .srow), .text-link, .way, .nf404 .nf404-cta, .share .teaser summary,
.share.ev :is(.tk-already, .tk-cancel) > summary {
  -webkit-tap-highlight-color: transparent;
  transition: scale 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease, opacity 0.3s ease, transform 0.25s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease, color 0.2s ease;
}
:is(.btn, .nav-cta, .btn-store, .store-btn, .ghost-btn, .hb-ghost, .modal-close,
  .share.discover :is(.ghost, .appbar-cta, .fchip, .fpill),
  :is(.share.discover, .home-band) :is(.dp-btn, .dp-pill, .dp-cta),
  :is(.share.discover, .home-band, .share.ev) :is(.dp-chip, .dp-act),
  .share :is(.chat-close, .settle-name), .share.ev :is(.ev-back, .ev-see-all, .ev-btn), .share.ev .fl-act .open-app-link):active {
  scale: 0.95;
  filter: brightness(1.18) drop-shadow(0 0 12px rgba(45, 212, 191, 0.55));
  transition-duration: 0.09s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
@media (hover: hover) {
  :is(:is(.share.discover, .home-band) .d-card, .home-band .hrow, .share.discover .live-card):hover { scale: 1.03; }
}
:is(:is(.share.discover, .home-band) .d-card, .home-band .hrow, .share.discover .live-card,
  .share :is(.vault, .slot, .pay-qr, .pay-proof), .share.ev .tk-event):active,
.share .rsvp-choice:active .rsvp-face, .share .place-option:active .place-card {
  scale: 0.982;
  filter: brightness(1.08) drop-shadow(0 0 18px rgba(45, 212, 191, 0.32));
  transition-duration: 0.09s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
:is(.share.discover :is(.tab, .clear, .rrow, .srow), .text-link, .way, .nf404 .nf404-cta, .share .teaser summary,
  .share.ev :is(.tk-already, .tk-cancel) > summary):active {
  scale: 0.97;
  opacity: 0.7;
  transition-duration: 0.09s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
