/* ========== MATCH QUIZ ==========
 *
 * The "find your match" modal. Linked by the pages that can open it rather
 * than by the app shell, the same split as bn_age-gate.css: it is one
 * button on the catalogue pages and the rest of the site has no use for
 * these rules.
 */

.mq-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /*
   * Height, not `inset: 0`.
   *
   * On a phone `inset: 0` on a fixed element resolves against the LARGEST
   * viewport — the one with the browser's URL bar and toolbar hidden — so
   * the overlay runs underneath both of them whenever they are showing.
   * dvh is the viewport as it actually is at this moment, and it is what
   * the rest of the site already uses: bn_age-gate.css, bn_chat.css and
   * six others. This file was the one that missed it.
   *
   * vh first, so a browser without dvh keeps the old behaviour rather
   * than no height at all.
   */
  height: 100vh;
  height: 100dvh;
  /* Over the sticky topbar the trigger lives in. The 18+ gate sits at
     1001 and is never open at the same time — it blocks the page until
     accepted, and this can only be opened by a button behind it. */
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: mq-fade 0.3s ease;
}

@keyframes mq-fade { from { opacity: 0; } to { opacity: 1; } }

@keyframes mq-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.mq {
  position: relative;
  width: 100%;
  max-width: 940px;
  /* Same reason as the overlay's height above. */
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #121212;
  border: 1px solid var(--neutral-700, #2e2e2e);
  border-radius: 18px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.7);
  animation: mq-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/*
 * Questions left, reel right.
 *
 * The left column carries `min-width: 0` because its option grid and the
 * result rows both contain text that will otherwise refuse to shrink below
 * its own content width and push the reel off the modal.
 */
.mq-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: 0;
}

.mq-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.mq-aside {
  position: relative;
  overflow: hidden;
  background: var(--neutral-900, #000);
  border-left: 1px solid var(--neutral-700, #2e2e2e);
}

/* ── the teaser reel ─────────────────────────────────────────────────── */

.mq-reel { position: absolute; inset: 0; }

.mq-reel-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  /* Crossfaded rather than swapped: every still is mounted, so the panel
     never shows its own background while the next file decodes. */
  transition: opacity 0.6s ease;
}

.mq-reel-media.on { opacity: 1; }

/*
 * A gradient over the reel, towards the questions.
 *
 * The left edge of a photograph against the left column's dark panel is a
 * hard seam, and the reel is decoration — it should not compete with the
 * question for attention.
 */
.mq-reel-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #121212 0%, rgba(18, 18, 18, 0.45) 22%, rgba(18, 18, 18, 0) 55%);
  pointer-events: none;
}

.mq-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  color: var(--neutral-400, #9e9e9e);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--neutral-700, #2e2e2e);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.mq-close:hover { color: #fff; border-color: var(--neutral-600, #4b4b4b); }

.mq-progress { height: 3px; background: var(--neutral-700, #2e2e2e); flex: 0 0 auto; }

.mq-progress-fill {
  height: 100%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, var(--purple-400, #cc95ff), var(--purple-300, #dfbcff));
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── a question ──────────────────────────────────────────────────────── */

.mq-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* No bottom padding: the sticky nav below carries it instead. `bottom: 0`
     resolves against the padding box, so 24px of padding here left the bar
     24px short of the scrollport and the last row slid through the gap. */
  padding: 32px 28px 0;
  overflow-y: auto;
  animation: mq-slide 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mq-body.is-back { animation-name: mq-slide-back; }

@keyframes mq-slide {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: none; }
}

@keyframes mq-slide-back {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: none; }
}

/*
 * The scrollbars, in the same treatment as the chat panels.
 *
 * The default one is a light grey slab against a near-black panel and it
 * sat right on the seam between the questions and the reel, which read as
 * a gap in the modal rather than as a scrollbar. 4px, transparent track,
 * neutral thumb — see bn_chat.css, which does this for .chat-messages and
 * friends for the same reason.
 */
.mq-body::-webkit-scrollbar,
.mq-overlay::-webkit-scrollbar { width: 4px; }

.mq-body::-webkit-scrollbar-track,
.mq-overlay::-webkit-scrollbar-track { background: transparent; }

.mq-body::-webkit-scrollbar-thumb,
.mq-overlay::-webkit-scrollbar-thumb {
  background: var(--neutral-700, #2e2e2e);
  border-radius: 4px;
}

/* Firefox, which has no pseudo-elements for this. */
.mq-body,
.mq-overlay {
  scrollbar-width: thin;
  scrollbar-color: var(--neutral-700, #2e2e2e) transparent;
}

.mq-step-num {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--purple-400, #cc95ff);
}

.mq-h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.mq-h2 span { color: var(--purple-400, #cc95ff); }

.mq-sub {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.5;
  /*
   * --neutral-400, like every other sheet's subtitle.
   *
   * This file was built from a mockup whose greys are its own, and #555
   * is darker than --neutral-500. Against #121212 that is the shade the
   * app uses for DISABLED text, so the descriptions read as switched off
   * next to the Spicy sheet's.
   */
  color: var(--neutral-400, #9e9e9e);
}

/* ── options ─────────────────────────────────────────────────────────── */

.mq-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Three options in a row of three; four as two-by-two. auto-fit would
   give 3+1 for the four-option steps, which reads as a dropped card. */
.mq-options[data-count="3"] { grid-template-columns: repeat(3, 1fr); }

.mq-opt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  text-align: left;
  /* .cm-plan's construction: --neutral-800 on a 1px --neutral-700 hairline.
     The 2px border and 14px radius it had were the mockup's. */
  background: var(--neutral-800, #131313);
  border: 1px solid var(--neutral-700, #2e2e2e);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.mq-opt:hover { border-color: var(--neutral-600, #4b4b4b); }

/*
 * A tint and a border, not a filled purple tile.
 *
 * .cm-plan.is-picked does exactly this, and the reason holds here: the
 * chosen card used --purple-900 with purple label AND purple description,
 * so three of the four options looked unavailable rather than one looking
 * chosen. The border is the selection; the text stays as it was.
 */
.mq-opt.on {
  border-color: var(--purple-400, #cc95ff);
  background: rgba(204, 149, 255, 0.08);
}

.mq-opt-icon {
  color: var(--purple-400, #cc95ff);
  line-height: 0;
  transition: transform 0.2s;
}

.mq-opt.on .mq-opt-icon { transform: scale(1.1); }

/*
 * The photograph options (the build question).
 *
 * Fixed ratio with the image absolutely filling it, not `height: 100%`.
 * `aspect-ratio` only states a PREFERRED height and in-flow content can
 * push past it, so one file with a different intrinsic ratio would
 * stretch its own tile and drop that option's label a line below its
 * neighbours' — the same bug the result cards had.
 */
.mq-opt-photo {
  position: relative;
  display: block;
  width: 100%;
  /*
   * Square, because the source is square.
   *
   * The wizard's files are all 328x328 and framed to show the whole
   * figure, so a 4:3 tile cropped away the top and bottom of every one —
   * which on THIS question is the information: with only the chest left,
   * Slim and Average were indistinguishable and the photo was decoration.
   */
  aspect-ratio: 1 / 1;
  margin-bottom: 4px;
  overflow: hidden;
  background: #111;
  border-radius: 9px;
}

/*
 * `cover` by default, `contain` for the build question.
 *
 * Not a style preference — the two photo sets are shaped differently and
 * measuring them is the only way to know:
 *
 *   BodyType  all 328x328, framed to the whole figure. A square tile is
 *             its own ratio, so `contain` crops nothing. `cover` here was
 *             the earlier bug: it cut the hips, which on a question about
 *             build is the entire point.
 *   the style tiles  832x1216, 896x1152 and 450x788 — portrait, and three
 *             different ratios. `contain` letterboxes them to three
 *             different widths in a row, so these need cropping to one
 *             shape, biased up to keep the face.
 */
.mq-opt-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}

.mq-options[data-step="look"] .mq-opt-photo img {
  object-fit: contain;
  object-position: center;
}

/*
 * The build tiles are shorter than the square they started as.
 *
 * A square tile in a 266px column is a 266px photograph, which made that
 * one step twice the height of every other. Because these are `contain`,
 * a shorter box shrinks the figure instead of cropping it — so the whole
 * silhouette is still there, which is the one thing that must not be lost
 * on this question. A `cover` tile could not be shortened this way.
 */
.mq-options[data-step="look"] .mq-opt-photo {
  aspect-ratio: auto;
  /*
   * 110px, which is what makes all four fit a 720px-tall window.
   *
   * Measured rather than chosen: at 150px the body overflowed by 68px on
   * a 1280x720 laptop and the bottom row sat 48px under the sticky nav.
   * Four options is two rows, so every pixel here costs two — 40px off the
   * photo buys 80px back, which clears it with room to spare. It still
   * fits at 900px tall, where nothing was wrong.
   */
  height: 110px;
}

.mq-opt-label { font-size: 15px; font-weight: 600; color: #fff; }
.mq-opt-desc { font-size: 12px; line-height: 1.4; color: var(--neutral-400, #9e9e9e); }

.mq-multi-hint {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-align: center;
  color: var(--neutral-500, #777);
}

/* ── navigation ──────────────────────────────────────────────────────── */

/*
 * Pinned to the bottom of the scroll, not carried along by it.
 *
 * The shortlist is six rows and the body scrolls, which put "Start chat"
 * — the whole point of the screen — below the fold behind a scroll nobody
 * was told to make. Sticky keeps one DOM structure and one source of
 * truth for the buttons.
 *
 * The negative margins bleed the bar to the body's padding edges so the
 * rows pass UNDER an opaque strip rather than beside it; without them the
 * panel background stops 28px short and content slides through the gap.
 */
.mq-nav {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px -28px 0;
  /*
   * The extra bottom inset is for standalone/PWA, where there is no
   * browser toolbar over the home indicator and these buttons would sit
   * under it. In an ordinary tab env() is 0 and this is just 24px.
   */
  padding: 16px 28px calc(24px + env(safe-area-inset-bottom, 0px));
  background: #121212;
  border-top: 1px solid var(--neutral-700, #2e2e2e);
}

.mq-back {
  padding: 10px 20px;
  font-size: 13px;
  font-family: inherit;
  /* .cm-btn-ghost: a filled neutral, no outline. An outlined transparent
     button is a treatment this app uses nowhere else. */
  color: var(--neutral-400, #9e9e9e);
  background: var(--neutral-800, #131313);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.mq-back:hover:not(:disabled) { color: #fff; }
.mq-back:disabled { opacity: 0; pointer-events: none; }

.mq-next {
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  /*
   * White, not purple — .cm-btn-primary's reasoning, which applies here
   * harder than it does there.
   *
   * Purple is this modal's accent: the step number, the highlighted word
   * in the headline, the chosen card's border, the match percentage, the
   * tags, the "Best match" flag. A purple button is one more purple thing
   * rather than the one thing that moves you forward.
   */
  color: #000;
  background: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: filter 0.2s, background 0.2s;
}

.mq-next:hover:not(:disabled) { filter: brightness(0.94); }
.mq-next:disabled {
  background: var(--neutral-700, #2e2e2e);
  color: var(--neutral-500, #777);
  cursor: default;
  filter: none;
}

/* "Chat with your best match" is a real link, so it needs the button's
   look without an anchor's text defaults. */
.mq-next-link { text-decoration: none; display: inline-block; }

.mq-link {
  padding: 0;
  font: inherit;
  color: var(--purple-400, #cc95ff);
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
}

/* ── results ─────────────────────────────────────────────────────────── */

.mq-results { animation-name: mq-rise; }

@keyframes mq-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.mq-results-head { text-align: center; margin-bottom: 16px; }
.mq-results-head .mq-sub { margin-bottom: 0; }

.mq-note { margin: 0 0 12px; font-size: 13px; color: var(--neutral-400, #9e9e9e); }

.mq-match-list { display: flex; flex-direction: column; gap: 12px; }

.mq-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 16px;
  overflow: hidden;
  text-align: left;
  font: inherit;
  background: var(--neutral-800, #131313);
  border: 1px solid var(--neutral-700, #2e2e2e);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}

.mq-row.is-picked {
  border-color: var(--purple-400, #cc95ff);
  background: rgba(204, 149, 255, 0.08);
}

/* A full shortlist greys out what is not in it, so a click that would do
   nothing looks like it would do nothing. */
.mq-row:disabled { opacity: 0.38; cursor: default; }
.mq-row:disabled:hover { border-color: var(--neutral-700, #2e2e2e); }

/* The pick's position, which is also the answer to "which chat do I land
   in" — 1 is the one that opens. */
.mq-pick-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: rgba(31, 16, 45, 0.78);
}

.mq-row:hover { border-color: var(--purple-400, #cc95ff); }
.mq-row.is-best {
  border-color: var(--purple-400, #cc95ff);
  background: rgba(204, 149, 255, 0.08);
}

.mq-row.is-best::before {
  content: 'Best match';
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  /* Tinted, like .cm-plan-tag's "Popular" — the app's one existing badge.
     Filled --purple-400 was the last solid block of accent in here and it
     out-shouted the 100% beside it. */
  color: var(--purple-400, #cc95ff);
  background: rgba(204, 149, 255, 0.16);
  border-radius: 0 0 0 10px;
}

/* The badge sits where the percentage does, so the first row gives it
   room rather than printing one on top of the other. */
.mq-row.is-best .mq-row-score { padding-top: 14px; }

.mq-avatar {
  /* The pick number is `inset: 0` inside this. Without a positioned
     ancestor here it resolved against .mq-row instead and covered the
     whole row — the number floated over the tags and its scrim dimmed
     everything underneath, which read as the row being disabled. */
  position: relative;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-800, #432362), var(--purple-900, #1f102d));
}

.mq-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* A 64px square out of a portrait: take it from the top, or the crop
     lands on her chest and every row looks the same. */
  object-position: top;
  display: block;
}

.mq-row-info { min-width: 0; }
.mq-row-name { margin: 0; font-size: 16px; font-weight: 700; color: #fff; }

.mq-row-meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--neutral-400, #9e9e9e);
  text-transform: capitalize;
}

.mq-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.mq-row-tags li {
  padding: 2px 8px;
  font-size: 10px;
  white-space: nowrap;
  color: var(--purple-400, #cc95ff);
  background: var(--purple-900, #1f102d);
  border: 1px solid var(--purple-800, #432362);
  border-radius: 6px;
}

.mq-row-score { text-align: center; }
.mq-row-pct { margin: 0; font-size: 28px; font-weight: 800; line-height: 1; color: var(--purple-400, #cc95ff); }
.mq-row-pct-label { margin: 2px 0 0; font-size: 10px; color: var(--neutral-500, #777); }

.mq-row-reason {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  padding-top: 8px;
  font-size: 12px;
  font-style: italic;
  line-height: 1.4;
  color: var(--neutral-400, #9e9e9e);
  border-top: 1px solid var(--neutral-700, #2e2e2e);
}

.mq-results-nav { margin-top: 16px; }

.mq-results-nav .mq-back,
.mq-results-nav .mq-next {
  flex: 1;
  padding: 12px;
  text-align: center;
}

/* ── small screens ───────────────────────────────────────────────────── */

/*
 * The reel goes before the questions do.
 *
 * Below this the left column would be under ~380px, which is where the
 * two-up option cards stop fitting their descriptions. The reel is
 * decoration; the questions are the product.
 */
@media (max-width: 820px) {
  .mq { max-width: 520px; }
  .mq-split { grid-template-columns: minmax(0, 1fr); }
  .mq-aside { display: none; }
}

@media (max-width: 520px) {
  /*
   * A bottom sheet, pushed down by an auto margin rather than by
   * `align-items: flex-end`.
   *
   * They look the same until the sheet is taller than the overlay. A
   * flex item aligned to the end overflows past the container's START
   * edge, and that overflow cannot be scrolled to — the scrollport's
   * origin is above it — so the heading at the top of the sheet is
   * clipped with no way to reach it. An auto margin does not have that
   * problem: it yields to the overflow and the top stays reachable.
   *
   * With the dvh caps above the sheet should never be taller than the
   * overlay, but "should never" is how it was cut off on a real phone
   * in the first place.
   */
  .mq-overlay { padding: 0; align-items: flex-start; }

  /* Three across is 104px a card on a 375px phone, which is a photo and
     two lines of description in a column too narrow for either. Two, and
     the odd one sits below — which is what the mockup did. */
  .mq-options[data-count="3"] { grid-template-columns: 1fr 1fr; }

  .mq {
    max-width: 100%;
    max-height: 94vh;
    max-height: 94dvh;
    margin-top: auto;
    border-bottom: none;
    border-radius: 16px 16px 0 0;
  }

  .mq-body { padding: 24px 20px 0; }
  .mq-nav { margin: 20px -20px 0; padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .mq-h2 { font-size: 20px; }
  .mq-opt { padding: 14px 12px; }
  .mq-row { grid-template-columns: 50px 1fr auto; gap: 10px; padding: 12px; }
  .mq-avatar { width: 50px; height: 50px; }
  .mq-row-pct { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .mq-overlay,
  .mq,
  .mq-body,
  .mq-results { animation: none; }

  .mq-progress-fill { transition: none; }

  /* teaserMedia.js already drops to stills here; this is the crossfade
     between them. */
  .mq-reel-media { transition: none; }
}

/* ── the trigger in the topbar ───────────────────────────────────────── */

/*
 * Built from .credits-box's arithmetic, not from a measured height.
 *
 * The outlined purple pill this replaced was the only thing in the topbar
 * with that treatment and read as something bolted on. Its neighbours are
 * all the same construction — radius 10, 4px of padding, one inset tile
 * doing the work — so matching the construction makes the heights agree
 * by sharing the same sum (4 + 32 + 4) rather than by a number that has
 * to be re-measured whenever the credits pill changes.
 *
 * Mirrored, though: the tile is on the LEFT here, where .credits-box puts
 * its white button on the right.
 */
.topbar-match {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  /*
   * -4px, because this button straddles two different gaps.
   *
   * It is the last thing in .topbar-left, so the space to its right is
   * .topbar's gap of 16 — while .credits-box and .profile-box beside it
   * are separated by .topbar-right's gap of 12. Measured: 16 and 12. The
   * button looked further from the row than the row is from itself.
   *
   * Taken here rather than by changing either gap: .topbar's 16 also sets
   * the back-button-to-title spacing on every page with a header, and
   * .topbar-right's 12 is the one that looks right.
   */
  margin-right: -4px;
  /*
   * 40px: .credits-box's own height, which is 4 + 4 of padding, 2 of
   * border and the 30px button inside it. At .btn-buy's 30 this matched
   * the white pill INSIDE the box rather than the box, so it sat 10px
   * shorter than both things beside it and looked squeezed.
   *
   * (.profile-box is 42 — 4 + 4 + 2 + a 32px avatar — so the two
   * neighbours do not agree with each other either. 40 is the one that
   * is adjacent and the one that repeats.)
   *
   * min-height rather than vertical padding, so the height is a number
   * that holds. Padding arithmetic only lands on 40 while the label's
   * line box is exactly 14px, and that is a function of the font — one
   * size or family change and this is quietly 38 again.
   */
  min-height: 40px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  /*
   * Dark with a hairline, which is .credits-box's and .profile-box's own
   * treatment — the two things it sits beside — rather than a second
   * white pill competing with "Buy Credits" for the eye.
   *
   * --neutral-800 and not #000: the page behind it IS #000, so pure black
   * leaves only the border and the button reads as a hole punched in the
   * bar. One step up is what makes it a surface.
   */
  background: var(--neutral-800, #131313);
  border: 1px solid var(--neutral-700, #2e2e2e);
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.topbar-match:hover {
  transform: translateY(-1px);
  /* The purple, not a white glow — that one was lifted straight off the
     white pill and on a dark button it just looks like fog. */
  border-color: var(--purple-800, #432362);
  box-shadow: 0 6px 18px rgba(204, 149, 255, 0.18);
}

.topbar-match:focus-visible {
  outline: 2px solid var(--purple-400, #cc95ff);
  outline-offset: 2px;
}

/*
 * Filled, not stroked: a heart outline this small is mostly gap. Straight
 * on the white, with no tile behind it — the accent does the work.
 *
 * 14px and an explicit block, so it sits inside the 12px text's line box
 * instead of pushing the button taller than the one beside it. An inline
 * svg also carries a descender gap, which is what `display: block` drops.
 */
.topbar-match svg {
  flex: 0 0 auto;
  display: block;
  width: 14px;
  height: 14px;
  fill: var(--purple-400, #cc95ff);
}

/* .credits-box drops to 35 here — bn_style.css tightens both .btn-buy's
   padding and its type at this width — so this follows it down. Measured,
   not derived: the first guess from the padding alone was 38. */
@media (max-width: 768px) {
  .topbar-match {
    min-height: 35px;
    /*
     * No pull here. Below this .credits-box takes `margin-left: auto`, so
     * what is to the right of this button is leftover space rather than a
     * gap, and -4px would just move the button into it.
     */
    margin-right: 0;
  }
}

@media (max-width: 520px) {
  /* The heart alone, so the trigger stays a tap target without the label
     pushing the page heading off its line. */
  .topbar-match { margin-left: 8px; padding: 0 11px; }
  .topbar-match .topbar-match-label { display: none; }
}
