/* ============================================================
   min — the activity card  (/c/ hero coverflow)
   ------------------------------------------------------------
   min's live offer, as designed in Figma: min-app › 11 Offer card,
   node 2730:969 ("Offer card"). Measurements are Figma's, laid
   out with flex/grid instead of absolute positions:

       ┌───────────────────────────────┐ 354 x 542, radius 40
       │ group activity  16:20  live now│ header, 59px
       │ ┌───────────────────────────┐ │
       │ │ photo 334 x 261, radius 30│ │ title / venue / time /
       │ │ ░░ scrim ░░ title …       │ │ blurb on a dark scrim
       │ └───────────────────────────┘ │
       │ ┌─────────────┐ ┌───────────┐ │ two resin panels,
       │ │ who's going │ │ the items │ │ 163 x 203, radius 30
       │ └─────────────┘ └───────────┘ │
       └───────────────────────────────┘

   Two departures from the file, both for the coverflow:
   • The card's fill in Figma is a translucent milk (~50%). Side
     cards sit behind the front one here and showed through it, so
     the same gradients are laid over a solid cream that matches
     how the card reads on the Figma canvas.
   • The item thumbnails are empty in the file (placeholders for
     item photos); here each carries an emoji, so the cards differ.

   Type is SF Pro Rounded in the file: ui-rounded gets the real
   thing on Apple devices, Nunito (the site's face) elsewhere.
   ============================================================ */

.acard {
  --acard-ink: #23211e;
  --acard-soft: #6d6861;
  --acard-milk: linear-gradient(180deg, rgba(255, 251, 243, 0.35) 0%, rgba(255, 251, 243, 0.14) 100%),
                linear-gradient(90deg, rgba(255, 251, 241, 0.27) 0%, rgba(255, 251, 241, 0.27) 100%);
  box-sizing: border-box;
  position: relative;
  width: 354px;
  padding: 0 10px 10px;
  border-radius: 40px;
  background: var(--acard-milk), #ece8e2;
  /* No drawn border: the edge is a lit top rim and a faint shade along
     the bottom, inside; outside, a tight contact shadow plus a wide,
     soft one, so the card sits on the page instead of hovering in a
     grey cloud. */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(120, 108, 94, 0.12),
    0 1px 2px rgba(20, 16, 12, 0.10),
    0 12px 32px -8px rgba(20, 16, 12, 0.32);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  color: var(--acard-ink);
  line-height: normal;
  text-align: left;
}
.acard p { margin: 0; }

/* ---- header: kind · live timer · status ---------------------- */
.acard__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  height: 60px;
  padding: 0 8px 8px;
  box-sizing: border-box;
  color: var(--acard-soft);
  font-weight: 600;
}
/* "starts in" small over the clock; the clock counts down live
   (offer-countdown.js). Tabular figures so the digits don't jitter. */
.acard__time { display: grid; justify-items: center; text-align: center; }
.acard__in { font-size: 11px; line-height: 1; opacity: 0.7; letter-spacing: 0.01em; }
.acard__clock {
  margin-top: 3px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.acard__kind,
.acard__status { margin-bottom: 4px; font-size: 13px; opacity: 0.7; white-space: nowrap; }
.acard__status { text-align: right; }

/* ---- the photo, with its words on a scrim --------------------- */
.acard__photo {
  position: relative;
  height: 261px;
  border-radius: 30px;
  overflow: hidden;
  /* no border: a hard 1px line left a dark seam along the bottom */
  box-shadow: 0 1px 2px rgba(20, 16, 12, 0.12), 0 4px 12px -4px rgba(20, 16, 12, 0.18);
  isolation: isolate;
}
.acard__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
/* The photo's own fade, then the text scrim over its lower 150px,
   then the warm/violet inner glow on top of both. */
.acard__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(27, 26, 24, 0) 0%, rgba(27, 26, 24, 0.74) 70%, rgba(27, 26, 24, 0.82) 100%) bottom / 100% 150px no-repeat,
    linear-gradient(180deg, rgba(27, 26, 24, 0) 42%, rgba(27, 26, 24, 0.84) 100%);
}
.acard__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset -10px -12px 34px rgba(255, 206, 148, 0.4),
    inset 10px 12px 34px rgba(201, 168, 224, 0.42),
    inset 0 0 24px 2px rgba(244, 237, 227, 0.5);
}
.acard__words {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 8px;
  padding: 0 15px 12px;
  color: #fff;
}
.acard__title { grid-column: 1 / -1; font-size: 20px; font-weight: 600; }
.acard__venue { font-size: 15px; }
.acard__length { align-self: end; font-size: 13px; text-align: right; white-space: nowrap; }
.acard__blurb { grid-column: 1 / -1; margin-top: 4px !important; font-size: 13px; line-height: 16px; }

/* ---- the two resin panels ------------------------------------ */
.acard__panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
/* A soft pebble: one surface, lighter at the top, with a lit top rim,
   a hairline edge and a gentle two-step shadow. (It used to sit on a
   darker 6.5px "body" peeking out below, which read as a heavy grey
   frame.) */
.acard__panel {
  position: relative;
  height: 199px;
  border-radius: 28px;
  background: linear-gradient(180deg, #faf6ef 0%, #ebe5dc 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(120, 108, 94, 0.08),
    0 1px 2px rgba(20, 16, 12, 0.08),
    0 6px 14px -6px rgba(20, 16, 12, 0.22);
}

/* who's going */
.acard__who { display: flex; flex-direction: column; padding: 18px 0 0; }
.acard__people { list-style: none; margin: 0; padding: 0 0 0 16px; display: grid; gap: 10px; }
.acard__person { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: start; }
.acard__name { font-size: 17px; font-weight: 500; line-height: 20px; }
/* What this person has in common with you: two short pills under the
   name, tinted warm so they read as shared, not as profile labels. */
.acard__common { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.acard__common span {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  color: #7a5a3e;
  background: rgba(251, 205, 159, 0.38);
  box-shadow: inset 0 0 0 0.75px rgba(170, 120, 74, 0.18);
}

/* The portrait pebble: a white glass tile, the avatar fading out at
   the collar (the mask), a soft inner rim over the top. */
.acard__pebble {
  position: relative;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  border: 1.146px solid rgba(255, 255, 255, 0.95);
  border-radius: 14.667px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.294) 0%, rgba(255, 255, 255, 0) 62%),
    rgba(255, 255, 255, 0.3);
  box-shadow: 0 2.75px 8.25px rgba(58, 49, 40, 0.2), 0 0 9.167px rgba(255, 243, 220, 0.65);
}
.acard__pebble img {
  position: absolute;
  left: 0.69px; top: 0.69px;
  width: 40.333px;
  height: 44px;
  object-fit: contain;
  -webkit-mask: url("/assets/img/offers/avatar-mask.svg") 0 0 / 100% 100% no-repeat;
  mask: url("/assets/img/offers/avatar-mask.svg") 0 0 / 100% 100% no-repeat;
}
.acard__pebble::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1.375px 1.833px rgba(255, 255, 255, 0.9), inset 0 0 4.583px 1.833px rgba(255, 255, 255, 0.95);
}

.acard__spots { display: flex; justify-content: center; gap: 12px; margin-top: auto; }
.acard__spots img { display: block; }
.acard__filled {
  margin: 14px 0 17px !important;
  font-size: 13px;
  font-weight: 500;
  color: #2e2b29;
  text-align: center;
}
/* Solo: no group to wait for, so the panel says so instead. */
.acard__solo { display: grid; align-content: center; justify-items: center; gap: 6px; height: 100%; padding: 0 14px; text-align: center; box-sizing: border-box; }
.acard__solo b { font-size: 17px; font-weight: 500; }
.acard__solo span { font-size: 13px; color: var(--acard-soft); line-height: 16px; }
.acard__who--solo { padding: 0; }

/* the items */
.acard__items { list-style: none; margin: 0; padding: 44px 10px 0 12px; display: flex; flex-direction: column; gap: 21.5px; }
.acard__item { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; align-items: center; font-size: 13px; font-weight: 500; }
.acard__thumb {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e8e3db;
  font-size: 20px;
}
.acard__price { color: var(--acard-soft); }
.acard__price s { color: rgba(109, 104, 97, 0.6); }
.acard__price b { font-weight: 500; color: var(--acard-ink); }
